aeba430163ecdcf2da534ecde841c8dfdaf85c72
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2
3         PR tdep/9390
4         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
5         typo when using logical AND to determine instruction type.
6
7 2014-10-09  Yao Qi  <yao@codesourcery.com>
8
9         * infrun.c (handle_signal_stop): Remove local variable
10         'printed'.
11
12 2014-10-08  Stan Shebs  <stan@codesourcery.com>
13
14         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
15
16 2014-10-08  Gary Benson  <gbenson@redhat.com>
17
18         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
19
20 2014-10-08  Gary Benson  <gbenson@redhat.com>
21
22         * common/common-defs.h: Include common-exceptions.h.
23         * exceptions.h: Do not include common-exceptions.h.
24
25 2014-10-08  Gary Benson  <gbenson@redhat.com>
26
27         * common/common-defs.h: Include cleanups.h.
28         * common/common-exceptions.c: Do not include cleanups.h.
29         * utils.h: Likewise.
30
31 2014-10-08  Gary Benson  <gbenson@redhat.com>
32
33         * ada-lang.c: Do not include exceptions.h.
34         * ada-valprint.c: Likewise.
35         * amd64-tdep.c: Likewise.
36         * auto-load.c: Likewise.
37         * block.c: Likewise.
38         * break-catch-throw.c: Likewise.
39         * breakpoint.c: Likewise.
40         * btrace.c: Likewise.
41         * c-lang.c: Likewise.
42         * cli/cli-cmds.c: Likewise.
43         * cli/cli-interp.c: Likewise.
44         * cli/cli-script.c: Likewise.
45         * completer.c: Likewise.
46         * corefile.c: Likewise.
47         * corelow.c: Likewise.
48         * cp-abi.c: Likewise.
49         * cp-support.c: Likewise.
50         * cp-valprint.c: Likewise.
51         * darwin-nat.c: Likewise.
52         * dwarf2-frame-tailcall.c: Likewise.
53         * dwarf2-frame.c: Likewise.
54         * dwarf2loc.c: Likewise.
55         * dwarf2read.c: Likewise.
56         * eval.c: Likewise.
57         * event-loop.c: Likewise.
58         * event-top.c: Likewise.
59         * f-valprint.c: Likewise.
60         * frame-unwind.c: Likewise.
61         * frame.c: Likewise.
62         * gdbtypes.c: Likewise.
63         * gnu-v2-abi.c: Likewise.
64         * gnu-v3-abi.c: Likewise.
65         * guile/scm-auto-load.c: Likewise.
66         * guile/scm-breakpoint.c: Likewise.
67         * guile/scm-cmd.c: Likewise.
68         * guile/scm-frame.c: Likewise.
69         * guile/scm-lazy-string.c: Likewise.
70         * guile/scm-param.c: Likewise.
71         * guile/scm-symbol.c: Likewise.
72         * guile/scm-type.c: Likewise.
73         * hppa-hpux-tdep.c: Likewise.
74         * i386-tdep.c: Likewise.
75         * inf-loop.c: Likewise.
76         * infcall.c: Likewise.
77         * infcmd.c: Likewise.
78         * infrun.c: Likewise.
79         * interps.c: Likewise.
80         * interps.h: Likewise.
81         * jit.c: Likewise.
82         * linespec.c: Likewise.
83         * linux-nat.c: Likewise.
84         * linux-thread-db.c: Likewise.
85         * m32r-rom.c: Likewise.
86         * main.c: Likewise.
87         * memory-map.c: Likewise.
88         * mi/mi-cmd-break.c: Likewise.
89         * mi/mi-cmd-stack.c: Likewise.
90         * mi/mi-interp.c: Likewise.
91         * mi/mi-main.c: Likewise.
92         * monitor.c: Likewise.
93         * nto-procfs.c: Likewise.
94         * objc-lang.c: Likewise.
95         * p-valprint.c: Likewise.
96         * parse.c: Likewise.
97         * ppc-linux-tdep.c: Likewise.
98         * printcmd.c: Likewise.
99         * probe.c: Likewise.
100         * python/py-auto-load.c: Likewise.
101         * python/py-breakpoint.c: Likewise.
102         * python/py-cmd.c: Likewise.
103         * python/py-finishbreakpoint.c: Likewise.
104         * python/py-frame.c: Likewise.
105         * python/py-framefilter.c: Likewise.
106         * python/py-function.c: Likewise.
107         * python/py-gdb-readline.c: Likewise.
108         * python/py-inferior.c: Likewise.
109         * python/py-infthread.c: Likewise.
110         * python/py-lazy-string.c: Likewise.
111         * python/py-linetable.c: Likewise.
112         * python/py-param.c: Likewise.
113         * python/py-prettyprint.c: Likewise.
114         * python/py-symbol.c: Likewise.
115         * python/py-type.c: Likewise.
116         * python/py-value.c: Likewise.
117         * python/python-internal.h: Likewise.
118         * python/python.c: Likewise.
119         * record-btrace.c: Likewise.
120         * record-full.c: Likewise.
121         * regcache.c: Likewise.
122         * remote-fileio.c: Likewise.
123         * remote-mips.c: Likewise.
124         * remote.c: Likewise.
125         * rs6000-aix-tdep.c: Likewise.
126         * rs6000-nat.c: Likewise.
127         * skip.c: Likewise.
128         * solib-darwin.c: Likewise.
129         * solib-dsbt.c: Likewise.
130         * solib-frv.c: Likewise.
131         * solib-ia64-hpux.c: Likewise.
132         * solib-spu.c: Likewise.
133         * solib-svr4.c: Likewise.
134         * solib.c: Likewise.
135         * spu-tdep.c: Likewise.
136         * stack.c: Likewise.
137         * stap-probe.c: Likewise.
138         * symfile-mem.c: Likewise.
139         * symmisc.c: Likewise.
140         * target.c: Likewise.
141         * thread.c: Likewise.
142         * top.c: Likewise.
143         * tracepoint.c: Likewise.
144         * tui/tui-interp.c: Likewise.
145         * typeprint.c: Likewise.
146         * utils.c: Likewise.
147         * valarith.c: Likewise.
148         * valops.c: Likewise.
149         * valprint.c: Likewise.
150         * value.c: Likewise.
151         * varobj.c: Likewise.
152         * windows-nat.c: Likewise.
153         * xml-support.c: Likewise.
154
155 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
156
157         * mips-tdep.c (add_offset_16): Rewrite to implement what the
158         name implies.
159         (extended_mips16_next_pc): Update accordingly.
160
161 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
162
163         * mips-tdep.c (mips16_instruction_is_compact_branch): New
164         function.
165         (micromips_instruction_is_compact_branch): Likewise.
166         (mips16_scan_prologue): Terminate scanning upon seeing a branch
167         or a compact jump, reaching a jump delay slot, or seeing a
168         second non-prologue instruction.
169         (micromips_scan_prologue): Also terminate scanning upon seeing a
170         compact branch or jump, or reaching a branch or jump delay slot.
171         (mips32_scan_prologue): Terminate scanning upon reaching a branch
172         or jump delay slot, or seeing a second non-prologue instruction.
173         (mips32_instruction_has_delay_slot): Retain instruction
174         examination code only, update arguments accordingly and move
175         instruction fetch pieces to...
176         (mips32_insn_at_pc_has_delay_slot): ... this new function.
177         (micromips_instruction_has_delay_slot): Likewise and to...
178         (micromips_insn_at_pc_has_delay_slot): ... this new function.
179         (mips16_instruction_has_delay_slot): Likewise and to...
180         (mips16_insn_at_pc_has_delay_slot): ... this new function.
181         (mips_single_step_through_delay): Update accordingly.
182         (mips_adjust_breakpoint_address): Likewise.
183
184 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
185
186         * mips-tdep.c (micromips_instruction_has_delay_slot): When
187         !mustbe32 also return 1 for 32-bit instructions.
188         (mips16_instruction_has_delay_slot): Likewise.  Add an
189         explanatory comment.
190
191 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
192
193         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
194         symbols special.
195
196 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
197
198         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
199         update comments.
200         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
201         for the breakpoint's address.  Don't preinitialize `placed_size'.
202         (insert_bp_location): Set `reqstd_address' rather than
203         `placed_address'.
204         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
205         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
206         address.
207         (bkpt_remove_location): Likewise.
208         (deprecated_insert_raw_breakpoint): Likewise.
209         (deprecated_remove_raw_breakpoint): Likewise.
210         (find_single_step_breakpoint): Likewise.
211         * mem-break.c (default_memory_insert_breakpoint): Use
212         `reqstd_address' for the breakpoint's address.  Don't set
213         `placed_address' or `placed_size' if breakpoint contents couldn't
214         have been determined.
215         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
216         the breakpoint's address.
217         (remote_insert_hw_breakpoint): Likewise.  Don't set
218         `placed_address' or `placed_size' if breakpoint couldn't have been
219         set.
220         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
221         `reqstd_address' for the breakpoint's address.
222         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
223         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
224         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
225         * microblaze-linux-tdep.c
226         (microblaze_linux_memory_remove_breakpoint): Likewise.
227         * monitor.c (monitor_insert_breakpoint): Likewise.
228         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
229         (procfs_insert_hw_breakpoint): Likewise.
230         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
231         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
232         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
233         * remote-mips.c (mips_insert_breakpoint): Likewise.
234         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
235
236 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
237
238         * valops.c (value_assign): Check for bit field assignments
239         before calling architecture-specific register value
240         conversion functions.
241
242 2014-10-03  Pierre Muller  <muller@sourceware.org>
243
244         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
245
246 2014-10-02  Pedro Alves  <palves@redhat.com>
247
248         * breakpoint.c (breakpoints_should_be_inserted_now): Use
249         threads_are_executing.
250         * breakpoint.h (breakpoints_should_be_inserted_now): Add
251         describing comment.
252         * gdbthread.h (threads_are_executing): Declare.
253         (handle_signal_stop) <random signals>: Don't print about the
254         signal here if stopping.
255         (end_stepping_range): Don't notify observers here.
256         (normal_stop): Update the thread list.  If stopped by a random
257         signal or a stepping range ended, notify observers.
258         * thread.c (threads_executing): New global.
259         (init_thread_list): Clear 'threads_executing'.
260         (set_executing): Set or clear 'threads_executing'.
261         (threads_are_executing): New function.
262         (update_threads_executing): New function.
263         (update_thread_list): Use it.
264
265 2014-10-02  Pedro Alves  <palves@redhat.com>
266
267         PR breakpoints/17431
268         * breakpoint.c (update_breakpoints_after_exec): Don't create
269         overlay, longjmp, std terminate nor exception breakpoints here.
270
271 2014-10-02  Pedro Alves  <palves@redhat.com>
272
273         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
274         Adjust comments.
275         * inferior.c (find_inferior_for_program_space): Give preference to
276         the current inferior.
277         * inferior.h (find_inferior_for_program_space): Update comment.
278         * progspace.c (switch_to_program_space_and_thread): Prefer the
279         current inferior if it's bound to the program space requested.  If
280         the inferior found doesn't have a PID yet, don't bother looking up
281         a thread.
282         * progspace.h (switch_to_program_space_and_thread): Adjust
283         comment.
284         * thread.c (any_thread_of_process, any_live_thread_of_process):
285         Give preference to the current thread.
286
287 2014-10-01  Pedro Alves  <palves@redhat.com>
288
289         * breakpoint.c (insert_bp_location): Error out if inserting a
290         software breakpoint at a read-only address.
291         * target.c (memory_xfer_check_region): New function, factored out
292         from ...
293         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
294         ULONGEST.
295         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
296         against the memory region attributes.
297
298 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
299
300         * NEWS: Announce new exit-code field in -list-thread-groups
301         output.
302         * inferior.c (exit_inferior_1): Don't clear exit code.
303         (inferior_appeared): Clear exit code.
304         * mi/mi-main.c (print_one_inferior): Add printing of the exit
305         code.
306
307 2014-10-01  Pedro Alves  <palves@redhat.com>
308
309         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
310         GENERATED" along with emacs/vi read-only markers.
311         * regformats/aarch64.dat: Regenerate.
312         * regformats/arm-with-iwmmxt.dat: Regenerate.
313         * regformats/arm-with-neon.dat: Regenerate.
314         * regformats/arm-with-vfpv2.dat: Regenerate.
315         * regformats/arm-with-vfpv3.dat: Regenerate.
316         * regformats/i386/amd64-avx-linux.dat: Regenerate.
317         * regformats/i386/amd64-avx.dat: Regenerate.
318         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
319         * regformats/i386/amd64-avx512.dat: Regenerate.
320         * regformats/i386/amd64-linux.dat: Regenerate.
321         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
322         * regformats/i386/amd64-mpx.dat: Regenerate.
323         * regformats/i386/amd64.dat: Regenerate.
324         * regformats/i386/i386-avx-linux.dat: Regenerate.
325         * regformats/i386/i386-avx.dat: Regenerate.
326         * regformats/i386/i386-avx512-linux.dat: Regenerate.
327         * regformats/i386/i386-avx512.dat: Regenerate.
328         * regformats/i386/i386-linux.dat: Regenerate.
329         * regformats/i386/i386-mmx-linux.dat: Regenerate.
330         * regformats/i386/i386-mmx.dat: Regenerate.
331         * regformats/i386/i386-mpx-linux.dat: Regenerate.
332         * regformats/i386/i386-mpx.dat: Regenerate.
333         * regformats/i386/i386.dat: Regenerate.
334         * regformats/i386/x32-avx-linux.dat: Regenerate.
335         * regformats/i386/x32-avx.dat: Regenerate.
336         * regformats/i386/x32-avx512-linux.dat: Regenerate.
337         * regformats/i386/x32-avx512.dat: Regenerate.
338         * regformats/i386/x32-linux.dat: Regenerate.
339         * regformats/i386/x32.dat: Regenerate.
340         * regformats/microblaze-with-stack-protect.dat: Regenerate.
341         * regformats/mips-dsp-linux.dat: Regenerate.
342         * regformats/mips-linux.dat: Regenerate.
343         * regformats/mips64-dsp-linux.dat: Regenerate.
344         * regformats/mips64-linux.dat: Regenerate.
345         * regformats/nios2-linux.dat: Regenerate.
346         * regformats/rs6000/powerpc-32.dat: Regenerate.
347         * regformats/rs6000/powerpc-32l.dat: Regenerate.
348         * regformats/rs6000/powerpc-64l.dat: Regenerate.
349         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
350         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
351         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
352         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
353         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
354         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
355         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
356         * regformats/s390-linux32.dat: Regenerate.
357         * regformats/s390-linux32v1.dat: Regenerate.
358         * regformats/s390-linux32v2.dat: Regenerate.
359         * regformats/s390-linux64.dat: Regenerate.
360         * regformats/s390-linux64v1.dat: Regenerate.
361         * regformats/s390-linux64v2.dat: Regenerate.
362         * regformats/s390-te-linux64.dat: Regenerate.
363         * regformats/s390x-linux64.dat: Regenerate.
364         * regformats/s390x-linux64v1.dat: Regenerate.
365         * regformats/s390x-linux64v2.dat: Regenerate.
366         * regformats/s390x-te-linux64.dat: Regenerate.
367         * regformats/tic6x-c62x-linux.dat: Regenerate.
368         * regformats/tic6x-c62x.dat: Regenerate.
369         * regformats/tic6x-c64x-linux.dat: Regenerate.
370         * regformats/tic6x-c64x.dat: Regenerate.
371         * regformats/tic6x-c64xp-linux.dat: Regenerate.
372         * regformats/tic6x-c64xp.dat: Regenerate.
373
374 2014-10-01  Pedro Alves  <palves@redhat.com>
375
376         * features/Makefile: Update comments.
377         (XMLTOC): List all xml files we build C files from.
378         (clean-cfiles): New rule.
379
380 2014-10-01  Pedro Alves  <palves@redhat.com>
381
382         * features/i386/amd64-avx512-linux.c: Regenerate.
383         * features/i386/amd64-avx512.c: Regenerate.
384         * features/i386/x32-avx512-linux.c: Regenerate.
385         * features/i386/x32-avx512.c: Regenerate.
386
387 2014-10-01  Pedro Alves  <palves@redhat.com>
388
389         * features/Makefile (WHICH): Remove arm-with-m,
390         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
391
392 2014-10-01  Pedro Alves  <palves@redhat.com>
393
394         * features/Makefile (clean): New rule.
395
396 2014-10-01  Pedro Alves  <palves@redhat.com>
397
398         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
399         (zmm14h): Add missing end quotes.
400
401 2014-10-01  Pedro Alves  <palves@redhat.com>
402
403         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
404         * features/aarch64.c: Regenerate.
405
406 2014-09-30  Don Breazeal  <donb@codesourcery.com>
407
408         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
409         code so as to work with follow_fork_inferior.
410         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
411         (inf_ttrace_create_inferior): Remove reference to
412         inf_ttrace_vfork_ppid.
413         (inf_ttrace_attach): Ditto.
414         (inf_ttrace_detach): Ditto.
415         (inf_ttrace_kill): Use current_inferior instead of
416         inf_ttrace_vfork_ppid.
417         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
418         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
419         inferior away from the parent.
420         * infrun.c (follow_fork): Call follow_fork_inferior instead of
421         target_follow_fork.
422         (follow_fork_inferior): New function.
423         (follow_inferior_reset_breakpoints): Make function static.
424         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
425         * linux-nat.c (linux_child_follow_fork): Move target-independent
426         code to infrun.c:follow_fork_inferior.
427
428 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
429
430         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
431         * gdbarch.c: Regenerate.
432         * gdbarch.h: Likewise.
433         * corelow.c (sniff_core_bfd): Drop presence check for deleted
434         gdbarch method 'regset_from_core_section'.
435         (get_core_register_section): Remove handling for the case that
436         regset == NULL and regset_from_core_section is defined.
437         (get_core_registers): Drop check for deleted method.
438         * procfs.c (procfs_do_thread_registers): Adjust comment.
439
440 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
441
442         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
443         (linux_nat_make_corefile_notes): Remove.
444         (linux_target_install_ops): Do not set target method
445         'make_corefile_notes'.
446         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
447         Remove field.
448         (linux_corefile_thread_callback): Instead of args->collect, call
449         linux_collect_thread_registers.
450         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
451         NULL unless there is a regset iterator.
452         (linux_make_corefile_notes_1): Remove.
453         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
454         by linux_make_corefile_notes.
455         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
456
457 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
458
459         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
460         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
461         Remove.
462         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
463
464 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
465
466         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
467         (xtensa_iterate_over_regset_sections): New.
468         (xtensa_gdbarch_init): Adjust gdbarch initialization.
469
470 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
471
472         * vax-tdep.c (vax_regset_from_core_section): Remove.
473         (vax_iterate_over_regset_sections): New.
474         (vax_gdbarch_init): Adjust gdbarch initialization.
475
476 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
477
478         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
479         (tilegx_regset_from_core_section): Remove.
480         (tilegx_iterate_over_regset_sections): New.
481         (tilegx_linux_init_abi): Adjust gdbarch initialization.
482
483 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
484
485         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
486         (sparc_iterate_over_regset_sections): New.
487         (sparc32_gdbarch_init): Adjust gdbarch initialization.
488         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
489         targets.
490         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
491         (sparc64fbsd_init_abi): Call fbsd_init_abi.
492         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
493         target method 'make_corefile_notes'.
494
495 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
496
497         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
498         'sizeof_gregset' and 'sizeof_fpregset'.
499         * sh-tdep.c (sh_regset_from_core_section): Remove.
500         (sh_iterate_over_regset_sections): New.
501         (sh_gdbarch_init): Adjust gdbarch initialization.
502         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
503         sizeof_fpregset.
504         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
505         'sizeof_gregset'.
506
507 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
508
509         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
510         (score7_linux_iterate_over_regset_sections): New.
511         (score_gdbarch_init): Adjust gdbarch initialization.
512
513 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
514
515         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
516         FreeBSD targets.
517         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
518         method 'make_corefile_notes'.
519         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
520         (ppcfbsd_regset_from_core_section): Remove.
521         (ppcfbsd_iterate_over_regset_sections): New.
522         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
523         initialization.
524         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
525         (ppcnbsd_iterate_over_regset_sections): New.
526         (ppcnbsd_init_abi): Adjust.
527         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
528         (ppcobsd_iterate_over_regset_sections): New.
529         (ppcobsd_init_abi): Adjust.
530         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
531         (rs6000_aix_iterate_over_regset_sections): New.
532         (rs6000_aix_init_osabi): Adjust.
533
534 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
535
536         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
537         (nios2_regset_from_core_section): Remove.
538         (nios2_iterate_over_regset_sections): New.
539         (nios2_linux_init_abi): Adjust gdbarch initialization.
540
541 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
542
543         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
544         (am33_iterate_over_regset_sections): New.
545         (am33_linux_init_osabi): Adjust gdbarch initialization.
546
547 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
548
549         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
550         (mips_linux_iterate_over_regset_sections): New.
551         (mips_linux_init_abi): Adjust gdbarch initialization.
552         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
553         (mips64obsd_iterate_over_regset_sections): New.
554         (mips64obsd_init_abi): Adjust.
555         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
556         (mipsnbsd_iterate_over_regset_sections): New.
557         (mipsnbsd_init_abi): Adjust.
558
559 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
560
561         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
562         (m88k_iterate_over_regset_sections): New.
563         (m88k_gdbarch_init): Adjust gdbarch initialization.
564
565 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
566
567         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
568         (ia64_linux_iterate_over_regset_sections): New.
569         (ia64_linux_init_abi): Adjust gdbarch initialization.
570
571 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
572
573         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
574         (m68kbsd_iterate_over_regset_sections): New.
575         (m68kbsd_init_abi): Adjust gdbarch initialization.
576         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
577         (m68k_linux_iterate_over_regset_sections): New.
578         (m68k_linux_init_abi): Adjust gdbarch initialization.
579
580 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
581
582         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
583         (m32r_linux_regset_from_core_section): Remove.
584         (m32r_linux_iterate_over_regset_sections): New.
585         (m32r_linux_init_abi): Adjust gdbarch initialization.
586
587 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
588
589         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
590         (amd64obsd_iterate_over_regset_sections): New.
591         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
592         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
593         Remove.
594         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
595         regset_from_core_section initialization.
596         * i386-tdep.c (i386_regset_from_core_section): Remove.
597         (i386_iterate_over_regset_sections): New.
598         (i386_gdbarch_init): Adjust gdbarch initialization.
599         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
600         (i386_iterate_over_regset_sections): New prototype.
601         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
602         Remove.
603         (i386obsd_aout_iterate_over_regset_sections): New.
604         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
605         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
606         targets.
607         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
608         (amd64fbsd_init_abi): Call fbsd_init_abi.
609         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
610         (i386fbsd4_init_abi): Call fbsd_init_abi.
611         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
612         target method 'make_corefile_notes'.
613         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
614
615 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
616
617         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
618         (hppa_hpux_iterate_over_regset_sections): New.
619         (hppa_hpux_init_abi): Adjust gdbarch initialization.
620         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
621         (hppa_linux_iterate_over_regset_sections): New.
622         (hppa_linux_init_abi): Adjust.
623         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
624         (hppanbsd_iterate_over_regset_sections): New.
625         (hppanbsd_init_abi): Adjust.
626         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
627         (hppaobsd_iterate_over_regset_sections): New.
628         (hppaobsd_init_abi): Adjust.
629
630 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
631
632         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
633         (frv_linux_iterate_over_regset_sections): New.
634         (frv_linux_init_abi): Adjust gdbarch initialization.
635
636 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
637
638         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
639         (armbsd_iterate_over_regset_sections): New prototype.
640         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
641         (armbsd_iterate_over_regset_sections): New.
642         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
643         initialization.
644
645 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
646
647         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
648         (alpha_linux_iterate_over_regset_sections): New.
649         (alpha_linux_init_abi): Adjust gdbarch initialization.
650         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
651         prototype.
652         (alphanbsd_iterate_over_regset_sections): New prototype.
653
654 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
655
656         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
657         Remove.
658         (aarch64_linux_iterate_over_regset_sections): New.
659         (aarch64_linux_init_abi): Adjust gdbarch initialization.
660
661 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
662
663         * fbsd-tdep.c: New file.
664         * fbsd-tdep.h: New file.
665         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
666         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
667         (ALLDEPFILES): Add fbsd-tdep.c.
668
669 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
670
671         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
672         parameter.
673         * gdbarch.h: Regenerate.
674         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
675         iterator.
676         (get_core_register_section): Add parameter 'regset' and use it, if
677         set.  Add parameter 'min_size' and verify the bfd section size
678         against it.
679         (get_core_registers_cb): Add parameter 'regset' and pass it to
680         get_core_register section.  For the "standard" register sections
681         ".reg" and ".reg2", set an appropriate default for human_name.
682         (get_core_registers): Don't abort when the gdbarch has an iterator
683         but no regset_from_core_section.  Add NULL/0 for parameters
684         'regset'/'min_size' in calls to get_core_register_section.
685         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
686         'regset' and use it instead of calling the
687         regset_from_core_section gdbarch method.
688         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
689         * i386-tdep.c (i386_supply_xstateregset)
690         (i386_collect_xstateregset, i386_xstateregset): Moved to
691         i386-linux-tdep.c.
692         (i386_regset_from_core_section): Drop handling for .reg-xfp and
693         .reg-xstate.
694         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
695         core file support only if the regset iterator hasn't been set.
696         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
697         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
698         Moved from i386-tdep.c and renamed to *_linux*.
699         (i386_linux_iterate_over_regset_sections): Add regset parameter to
700         each callback invocation.  Allow any .reg-xstate size when reading
701         from a core file.
702         * amd64-tdep.c (amd64_supply_xstateregset)
703         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
704         amd64-linux-tdep.c.
705         (amd64_regset_from_core_section): Remove.
706         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
707         install an amd64-specific regset_from_core_section gdbarch method.
708         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
709         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
710         Moved from amd64-tdep.c and renamed to *_linux*.
711         (amd64_linux_iterate_over_regset_sections): Add regset parameter
712         to each callback invocation.  Allow any .reg-xstate size when
713         reading from a core file.
714         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
715         (arm_linux_iterate_over_regset_sections): Add regset parameter to
716         each callback invocation.
717         (arm_linux_init_abi): No longer set the regset_from_core_section
718         gdbarch method.
719         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
720         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
721         each callback invocation.
722         (ppc_linux_init_abi): No longer set the regset_from_core_section
723         gdbarch method.
724         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
725         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
726         (s390_regset_from_core_section): Remove.
727         (s390_iterate_over_regset_sections): Add regset parameter to each
728         callback invocation.
729         (s390_gdbarch_init): No longer set the regset_from_core_section
730         gdbarch method.  Drop initialization of deleted tdep fields.
731
732 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
733
734         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
735         (amd64_linux_iterate_over_regset_sections): New.
736         (amd64_linux_init_abi_common): Don't install the regset section
737         list, but the new iterator in gdbarch.
738         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
739         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
740         (arm_linux_iterate_over_regset_sections): ...here.  New function.
741         (arm_linux_init_abi): Set iterator instead of section list.
742         * corelow.c (get_core_registers_cb): New function, logic moved
743         from...
744         (get_core_registers): ...loop body here.  Use new iterator method
745         instead of walking through the regset section list.
746         * gdbarch.sh: Remove 'core_regset_sections'.  New method
747         'iterate_over_regset_sections'.  New typedef
748         'iterate_over_regset_sections_cb'.
749         * gdbarch.c: Regenerate.
750         * gdbarch.h: Likewise.
751         * i386-linux-tdep.c (i386_linux_regset_sections)
752         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
753         Remove.
754         (i386_linux_iterate_over_regset_sections): New.
755         (i386_linux_init_abi): Don't choose a regset section list, but
756         install new iterator in gdbarch.
757         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
758         (linux_collect_regset_section_cb): New function, logic moved
759         from...
760         (linux_collect_thread_registers): ...loop body here.  Use iterator
761         method instead of walking through list.
762         (linux_make_corefile_notes_1): Check for presence of iterator
763         method instead of regset section list.
764         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
765         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
766         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
767         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
768         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
769         (ppc_linux_init_abi): Don't choose from above regset section
770         lists, but install new iterator in gdbarch.
771         * regset.h (struct core_regset_section): Remove.
772         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
773         have_linux_v1, have_linux_v2, and have_tdb.
774         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
775         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
776         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
777         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
778         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
779         (s390_iterate_over_regset_sections): ...here.  New function.  Use
780         new tdep fields.
781         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
782         regset section lists, but install new iterator.
783
784 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
785
786         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
787
788 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
789
790         * progspace.c (print_program_space): Don't prune program spaces
791         before printing them.
792
793 2014-09-25  Pedro Alves  <palves@redhat.com>
794
795         * infrun.c (user_visible_resume_ptid): Don't check
796         singlestep_breakpoints_inserted_p.
797
798 2014-09-25  Pedro Alves  <palves@redhat.com>
799
800         * breakpoint.c (should_be_inserted): Add debug output.
801
802 2014-09-25  Pedro Alves  <palves@redhat.com>
803
804         * infrun.c (stepping_past_instruction_at)
805         (clear_exit_convenience_vars): Point at infrun.h instead of
806         inferior.h.
807         (handle_signal_stop): Fix typo.
808
809 2014-09-24  Yao Qi  <yao@codesourcery.com>
810
811         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
812         bitmask.
813
814 2014-09-22  Gary Benson  <gbenson@redhat.com>
815
816         * target.c (target_stop): Updated comment.
817
818 2014-09-22  Gary Benson  <gbenson@redhat.com>
819
820         * target/target.h (target_stop_ptid): Renamed as...
821         (target_stop_and_wait): New function.  Updated comment.
822         All uses updated.
823         (target_continue_ptid): Renamed as...
824         (target_continue_no_signal): New function.  Updated comment.
825         All uses updated.
826
827 2014-09-22  Pedro Alves  <palves@redhat.com>
828
829         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
830         and "auto" merged.
831         * breakpoint.c (enum ugll_insert_mode): New enum.
832         (always_inserted_mode): Now a plain boolean.
833         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
834         (breakpoints_always_inserted_mode): Delete.
835         (breakpoints_should_be_inserted_now): New function.
836         (insert_breakpoints): Pass UGLL_INSERT to
837         update_global_location_list instead of calling
838         insert_breakpoint_locations manually.
839         (create_solib_event_breakpoint_1): New, factored out from ...
840         (create_solib_event_breakpoint): ... this.
841         (create_and_insert_solib_event_breakpoint): Use
842         create_solib_event_breakpoint_1 instead of calling
843         insert_breakpoint_locations manually.
844         (update_global_location_list): Change parameter type from boolean
845         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
846         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
847         (update_global_location_list_nothrow): Change parameter type from
848         boolean to enum ugll_insert_mode.
849         (_initialize_breakpoint): "breakpoint always-inserted" option is
850         now a boolean command.  Update help text.
851         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
852         (breakpoints_should_be_inserted_now): New declaration.
853         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
854         Remove breakpoints_always_inserted_mode check.
855         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
856         * remote.c (remote_start_remote): Likewise.
857
858 2014-09-22  Pedro Alves  <palves@redhat.com>
859
860         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
861         (insert_breakpoints): Don't call insert_breakpoint_locations here.
862         Instead, pass UGLL_INSERT to update_global_location_list.
863         (update_global_location_list): Change parameter type from boolean
864         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
865         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
866         (create_solib_event_breakpoint_1): New, factored out from ...
867         (create_solib_event_breakpoint): ... this.
868         (create_and_insert_solib_event_breakpoint): Use
869         create_solib_event_breakpoint_1 instead of calling
870         insert_breakpoint_locations manually.
871         (update_global_location_list): Handle UGLL_INSERT.
872
873 2014-09-22  Pedro Alves  <palves@redhat.com>
874
875         * breakpoint.c (enum ugll_insert_mode): New enum.
876         (update_global_location_list)
877         (update_global_location_list_nothrow): Change parameter type from
878         boolean to enum ugll_insert_mode.  All callers adjusted.
879
880 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
881
882         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
883         SystemTap support in GDB.
884
885 2014-09-19  Don Breazeal  <donb@codesourcery.com>
886
887         * linux-nat.c (linux_handle_extended_wait): Call
888         linux_ptrace_get_extended_event.
889         (wait_lwp): Call linux_is_extended_waitstatus.
890         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
891         and linux_is_extended_waitstatus.
892         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
893         linux_ptrace_get_extended_event.
894         (linux_ptrace_get_extended_event): New function.
895         (linux_is_extended_waitstatus): New function.
896         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
897         (linux_is_extended_waitstatus): New declarations.
898
899 2014-09-19  Yao Qi  <yao@codesourcery.com>
900
901         * dwarf2read.c (dwarf_decode_lines): Update declaration.
902         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
903         comments.  Callers update.
904         (dwarf_decode_lines): Likewise.
905         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
906         comments.  Skip the line table if  'lowpc' is greater than
907         'address'.  Don't check
908         dwarf2_per_objfile->has_section_at_zero.
909
910 2014-09-18  Doug Evans  <dje@google.com>
911
912         * NEWS: Mention new "producer" attribute of gdb.Symtab.
913         * python/py-symtab.c (stpy_get_producer): New function.
914         (symtab_object_getset): Add "producer" attribute.
915
916 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
917
918         PR gdb/17384
919         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
920         (do_captured_read_memory_integer): Remove.
921         (safe_read_memory_integer): Use target_read_memory directly instead
922         of catching errors in do_captured_read_memory_integer.
923
924 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
925
926         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
927         not gdb/doc.
928
929 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
930
931         * objc-lang.c (find_implementation_from_class): Remove dead code.
932
933 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
934
935         PR cli/7233
936         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
937         "fprintf_unfiltered (gdb_stdlog...)".
938
939 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
940
941         PR breakpoints/12526
942         * breakpoint.h (struct watchpoint): New fields val_bitpos and
943         val_bitsize.
944         * breakpoint.c (watch_command_1): Use these fields to retain
945         bitfield information.
946         (extract_bitfield_from_watchpoint_value): New function.
947         (watchpoint_check): Use it.
948         (update_watchpoint): Use it.  Optimize the address and length of a
949         HW watchpoint pointing to a bitfield.
950         * value.h (unpack_value_bitfield): New prototype.
951         * value.c (unpack_value_bitfield): Make extern.
952
953 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
954
955         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
956         x86-dregs.o.
957         * gnu-nat.c (inf_threads): New function.
958         * gnu-nat.h (inf_threads_ftype): New typedef.
959         (inf_threads): New declaration.
960         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
961         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
962         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
963         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
964         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
965         (i386_gnu_dr_get_control): New functions.
966         (reg_addr): New structure.
967         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
968         i386 debugging register hooks.
969         * NEWS: Mention this.
970
971 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
972
973         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
974         vector data transfer instructions.
975         (arm_record_coproc_data_proc): Updated.
976
977 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
978
979         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
980         arm_record_exreg_ld_st_insn.
981         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
982         load/store insns.
983
984 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
985
986         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
987         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
988         processing instructions.
989
990 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
991
992         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
993         for advance SIMD struct ld/st insn.
994         (thumb2_record_decode_insn_handler): Replace stub handler with
995         thumb2_record_asimd_struct_ld_st.
996
997 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
998
999         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1000         for asimd, vfp and coprocessor insns.
1001         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1002         and coprocessor insns.
1003         (thumb2_record_coproc_insn): New function.
1004         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1005         handlers.
1006         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1007         opcode 110 insns.
1008
1009 2014-09-13  Doug Evans  <xdje42@gmail.com>
1010
1011         * NEWS: Mention new "queue-signal" command.
1012         * infcmd.c (queue_signal_command): New function.
1013         (_initialize_infcmd): Add new queue-signal command.
1014
1015 2014-09-13  Doug Evans  <xdje42@gmail.com>
1016
1017         * linux-nat.c (wait_lwp): Add debugging printf.
1018         (linux_nat_wait_1): Ditto.
1019
1020 2014-09-12  Pedro Alves  <palves@redhat.com>
1021
1022         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1023         (create_and_insert_solib_event_breakpoint): New functions.
1024         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1025         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1026         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1027         (remove_dbx_link_breakpoint): Delete function.
1028         (insert_dbx_link_bpt_in_file): Use
1029         create_and_insert_solib_event_breakpoint instead of
1030         deprecated_insert_raw_breakpoint.
1031         (procfs_wait): Don't check whether we hit __dbx_link here.
1032         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1033         here.
1034         * solib-irix.c (base_breakpoint): Delete global.
1035         (disable_break): Delete function.
1036         (enable_break): Use create_solib_event_breakpoint
1037         instead of deprecated_insert_raw_breakpoint.
1038         (irix_solib_handle_event): New function.
1039         (irix_solib_create_inferior_hook): Don't run the target or disable
1040         the mapping-complete breakpoint here.
1041         (_initialize_irix_solib): Install irix_solib_handle_event as
1042         so_ops->handle_event hook.
1043
1044 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1045             Ulrich Weigand  <uweigand@de.ibm.com>
1046
1047         PR tdep/17379
1048         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1049         instead of read_memory_unsigned_integer.
1050
1051 2014-09-12  Gary Benson  <gbenson@redhat.com>
1052
1053         * nat/linux-waitpid.c: Include common-defs.h.
1054         [GDBSERVER]: Add FIXME comment.
1055         [!GDBSERVER]: Don't include defs.h or signal.h.
1056         (linux_debug) [!GDBSERVER]: Remove empty block.
1057
1058 2014-09-12  Gary Benson  <gbenson@redhat.com>
1059
1060         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1061         Don't include defs.h or server.h.
1062
1063 2014-09-12  Gary Benson  <gbenson@redhat.com>
1064
1065         * nat/linux-btrace.c: Include common-defs.h.
1066         Don't include defs.h, server.h or gdbthread.h.
1067         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1068
1069 2014-09-12  Gary Benson  <gbenson@redhat.com>
1070
1071         * common/agent.c: Include common-defs.h.
1072         Don't include defs.h or server.h.
1073         * common/buffer.c: Likewise.
1074         * common/common-debug.c: Likewise.
1075         * common/common-utils.c: Likewise.
1076         * common/errors.c: Likewise.
1077         * common/filestuff.c: Likewise.
1078         * common/format.c: Likewise.
1079         * common/gdb_vecs.c: Likewise.
1080         * common/print-utils.c: Likewise.
1081         * common/ptid.c: Likewise.
1082         * common/rsp-low.c: Likewise.
1083         * common/signals.c: Likewise.
1084         * common/vec.c: Likewise.
1085         * common/xml-utils.c: Likewise.
1086         * nat/linux-osdata.c: Likewise.
1087         * nat/linux-procfs.c: Likewise.
1088         * nat/linux-ptrace.c: Likewise.
1089         * nat/mips-linux-watch.c: Likewise.
1090         * target/waitstatus.c: Likewise.
1091
1092 2014-09-12  Tom Tromey  <tromey@redhat.com>
1093             Gary Benson  <gbenson@redhat.com>
1094
1095         * common/common-regcache.h: New file.
1096         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1097         * regcache.h: Include common-regcache.h.
1098         (regcache_read_pc): Don't declare.
1099         * regcache.c (get_thread_regcache_for_ptid): New function.
1100         * nat/linux-btrace.c: Don't include regcache.h.
1101         Include common-regcache.h.
1102         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1103
1104 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1105
1106         * regcache.h (struct regset): Declare.
1107
1108 2014-09-11  Pedro Alves  <palves@redhat.com>
1109
1110         PR gdb/17347
1111         * main.c: Include "infrun.h".
1112         (catch_command_errors, catch_command_errors_const): Wait for the
1113         foreground command to complete.
1114         * top.c (maybe_wait_sync_command_done): New function, factored out
1115         from ...
1116         (maybe_wait_sync_command_done): ... here.
1117         * top.h (maybe_wait_sync_command_done): New declaration.
1118
1119 2014-09-11  Tom Tromey  <tromey@redhat.com>
1120             Gary Benson  <gbenson@redhat.com>
1121
1122         * common/symbol.h: New file.
1123         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1124         * minsyms.c (find_minimal_symbol_address): New function.
1125         * common/agent.c: Include common/symbol.h.
1126         [!GDBSERVER]: Don't include objfiles.h.
1127         (agent_look_up_symbols): Use find_minimal_symbol_address.
1128
1129 2014-09-11  Gary Benson  <gbenson@redhat.com>
1130
1131         * target/target.h (target_stop_ptid, target_continue_ptid):
1132         Declare.
1133         * target.c (target_stop_ptid, target_continue_ptid): New
1134         functions.
1135         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1136         (agent_run_command): Always use target_stop_ptid and
1137         target_continue_ptid.
1138
1139 2014-09-11  Tom Tromey  <tromey@redhat.com>
1140             Gary Benson  <gbenson@redhat.com>
1141
1142         * target/target.h: New file.
1143         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1144         * target.h: Include target/target.h.
1145         (target_read_memory, target_write_memory): Don't declare.
1146         * target.c (target_read_uint32): New function.
1147         * common/agent.c: Include target/target.h.
1148         [!GDBSERVER]: Don't include target.h.
1149         (helper_thread_id): Type changed to uint32_t.
1150         (agent_get_helper_thread_id): Use target_read_uint32.
1151         (agent_run_command): Always use target_read_memory and
1152         target_write_memory.
1153         (agent_capability): Type changed to uint32_t.
1154         (agent_capability_check): Use target_read_uint32.
1155
1156 2014-09-11  Gary Benson  <gbenson@redhat.com>
1157
1158         * common/common-debug.h (show_debug_regs): Declare.
1159         * common/common-debug.c (show_debug_regs): Define.
1160         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
1161         all uses with show_debug_regs.  Replace all uses that considered
1162         debug_hw_points as a multi-value integer with straight boolean
1163         uses.
1164         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
1165         with show_debug_regs.
1166         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
1167         all uses with show_debug_regs.
1168         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
1169         uses with show_debug_regs.
1170
1171 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1172
1173         * findvar.c (address_from_register): Handle targets requiring
1174         a special conversion routine even for plain pointer types.
1175
1176 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1177
1178         * rs6000-nat.c (exec_one_dummy_insn): Remove.
1179         (store_register): Do not call exec_one_dummy_insn.
1180
1181 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1182
1183         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1184         dereference it first.  Use value_enclosing_type instead of
1185         value_type.
1186         (ada_array_length): Likewise.
1187
1188 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1189
1190         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1191         Adjust function implementation and documentation accordingly.
1192         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1193         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1194         Update call to ada_value_ptr_subscript.
1195
1196 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1197
1198         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1199         instead of VAL's type.
1200
1201 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1202
1203         * amd64-linux-nat.c: Add <sys/uio.h> #include.
1204
1205 2014-09-09  Doug Evans  <xdje42@gmail.com>
1206
1207         PR guile/17367
1208         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1209         last parameter to pkg-config, not first.
1210         * configure.ac: Pass --with-guile provided pkg-config path to
1211         GDB_GUILE_PROGRAM_NAMES.
1212         * configure: Regenerate.
1213
1214 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1215
1216         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1217         Bertazi".
1218
1219 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1220
1221         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1222         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1223         the list of sections determining GDB_OSABI_IRIX.
1224
1225 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1226
1227         * MAINTAINERS (Write After Approval): Add "James Hogan".
1228
1229 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1230
1231         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1232
1233 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
1234
1235         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1236
1237 2014-09-08  Doug Evans  <xdje42@gmail.com>
1238
1239         PR 17247
1240         * guile.c: #include <signal.h>.
1241         (_initialize_guile): Block SIGCHLD while initializing Guile.
1242
1243         Replaces the following, which is reverted.
1244
1245         2014-07-26  Doug Evans  <xdje42@gmail.com>
1246
1247         PR 17185
1248         * configure.ac: Add check for header gc/gc.h.
1249         Add check for function setenv.
1250         * configure: Regenerate.
1251         * config.in: Regenerate.
1252         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1253
1254 2014-09-08  Doug Evans  <xdje42@gmail.com>
1255
1256         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1257         with named constant.  Fix style of pointer comparison.
1258         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1259
1260 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1261
1262         PR gdb/17035
1263         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1264         decide whether we display the command on "show user".
1265         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1266         printing command name.
1267         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1268         * cli/cli-decode.c (cli_user_command_p): Create helper function
1269         to verify whether cmd_list_element is a user-defined command.
1270
1271 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1272
1273         PR python/17355
1274         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1275         Fix goto out of TRY_CATCH.
1276
1277 2014-09-06  Doug Evans  <xdje42@gmail.com>
1278             Tom Tromey  <tromey@redhat.com>
1279
1280         PR 15276
1281         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1282         $_any_caller_matches.
1283         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1284         * python/lib/gdb/function/caller_is.py: New file.
1285
1286 2014-09-06  Doug Evans  <xdje42@gmail.com>
1287
1288         * infcmd.c (program_info): Fix typo.
1289
1290 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1291
1292         PR gdb/17235
1293         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1294         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1295         subexpressions on SDT probes.
1296
1297 2014-09-04  Pedro Alves  <palves@redhat.com>
1298
1299         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1300         the input is only one character long.
1301
1302 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1303
1304         PR fortran/17237
1305         * f-valprint.c (f_val_print): Specify the correct print option to
1306         use when printing integer values.
1307
1308 2014-09-04  Gary Benson  <gbenson@redhat.com>
1309
1310         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1311         Remove code to cope with LWPs wrapped as PIDs.
1312         Add assertions to ensure no wrapped LWPs are passed.
1313
1314 2014-09-04  Pedro Alves  <palves@redhat.com>
1315
1316         * value.c (value_ranges_copy_adjusted): New function, factored out
1317         from ...
1318         (value_contents_copy_raw): ... here.
1319         (unpack_value_bits_as_long_1): Rename back to ...
1320         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1321         'result' parameters.  Change return type to LONGEST.
1322         (unpack_value_bits_as_long): Delete.
1323         (unpack_value_field_as_long_1): Delete.
1324         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1325         (unpack_value_bitfield): New function.
1326         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1327         (value_fetch_lazy): Use unpack_value_bitfield.
1328         * value.h (unpack_value_bits_as_long): Delete declaration.
1329
1330 2014-09-03  Sasha Smundak  <asmundak@google.com>
1331
1332         * python/py-frame.c (frapy_read_register): New function.
1333
1334 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1335
1336         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1337         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1338
1339 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1340
1341         PR python/16699
1342         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1343         function.
1344         (add_cmd): Set "completer_handle_brkchars" to NULL.
1345         * cli/cli-decode.h (struct cmd_list_element)
1346         <completer_handle_brkchars>: New field.
1347         * command.h (completer_ftype_void): New typedef.
1348         (set_cmd_completer_handle_brkchars): New prototype.
1349         * completer.c (set_gdb_completion_word_break_characters): New
1350         function.
1351         (complete_line_internal): Call "completer_handle_brkchars"
1352         callback from command.
1353         * completer.h: Include "command.h".
1354         (set_gdb_completion_word_break_characters): New prototype.
1355         * python/py-cmd.c (cmdpy_completer_helper): New function.
1356         (cmdpy_completer_handle_brkchars): New function.
1357         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1358         (cmdpy_init): Set completer_handle_brkchars to
1359         cmdpy_completer_handle_brkchars.
1360
1361 2014-09-03  Gary Benson  <gbenson@redhat.com>
1362
1363         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1364         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1365         Loop conditions changed to equivalent form.
1366         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1367         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1368         ALL_DEBUG_ADDRESS_REGISTERS.
1369
1370 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1371
1372         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1373         description fix.
1374
1375 2014-09-02  Doug Evans  <dje@google.com>
1376
1377         * typeprint.c (find_global_typedef): Fix comment.
1378
1379 2014-09-02  Gary Benson  <gbenson@redhat.com>
1380
1381         * i386-nat.h: Renamed as...
1382         * x86-nat.h: New file.  All type, function and variable name
1383         prefixes changed from "i386_" to "x86_".  All references updated.
1384         * i386-nat.c: Renamed as...
1385         * x86-nat.c: New file.  All type, function and variable name
1386         prefixes changed from "i386_" to "x86_".  All references updated.
1387         * common/i386-xstate.h: Renamed as...
1388         * common/x86-xstate.h: New file.  All type, function and variable
1389         name prefixes changed from "i386_" to "x86_".  All references
1390         updated.
1391         * nat/i386-cpuid.h: Renamed as...
1392         * nat/x86-cpuid.h: New file.  All type, function and variable name
1393         prefixes changed from "i386_" to "x86_".  All references updated.
1394         * nat/i386-gcc-cpuid.h: Renamed as...
1395         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1396         name prefixes changed from "i386_" to "x86_".  All references
1397         updated.
1398         * nat/i386-dregs.h: Renamed as...
1399         * nat/x86-dregs.h: New file.  All type, function and variable name
1400         prefixes changed from "i386_" to "x86_".  All references updated.
1401         * nat/i386-dregs.c: Renamed as...
1402         * nat/x86-dregs.c: New file.  All type, function and variable name
1403         prefixes changed from "i386_" to "x86_".  All references updated.
1404
1405 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1406
1407         * varobj.c (_initialize_varobj): Move to the end of file.
1408
1409 2014-08-29  Gary Benson  <gbenson@redhat.com>
1410
1411         * common/common-exceptions.h: New file.
1412         * common/common-exceptions.c: Likewise.
1413         * Makefile.in (SFILES): Add common/common-exceptions.c.
1414         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1415         (COMMON_OBS): Add common-exceptions.o.
1416         (common-exceptions.o): New rule.
1417         * exceptions.h (common-exceptions.h): Include.
1418         (gdb_setjmp.h): Do not include.
1419         (return_reason): Moved to common-exceptions.h.
1420         (enum return_reason): Likewise.
1421         (RETURN_MASK): Likewise.
1422         (typedef return_mask): Likewise.
1423         (enum errors): Likewise.
1424         (struct gdb_exception): Likewise.
1425         (exceptions_state_mc_init): Likewise.
1426         (exceptions_state_mc_action_iter): Likewise.
1427         (exceptions_state_mc_action_iter_1): Likewise.
1428         (TRY_CATCH): Likewise.
1429         (throw_exception): Likewise.
1430         (throw_verror): Likewise.
1431         (throw_vquit): Likewise.
1432         (throw_error): Likewise.
1433         (throw_quit): Likewise.
1434         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1435         (enum catcher_action): Likewise.
1436         (struct catcher): Likewise.
1437         (current_catcher): Likewise.
1438         (catcher_list_size): Likewise.
1439         (exceptions_state_mc_init): Likewise.
1440         (catcher_pop): Likewise.
1441         (exceptions_state_mc): Likewise.
1442         (exceptions_state_mc_action_iter): Likewise.
1443         (exceptions_state_mc_action_iter_1): Likewise.
1444         (throw_exception): Likewise.
1445         (exception_messages): Likewise.
1446         (exception_messages_size): Likewise.
1447         (throw_it): Likewise.
1448         (throw_verror): Likewise.
1449         (throw_vquit): Likewise.
1450         (throw_error): Likewise.
1451         (throw_quit): Likewise.
1452         (prepare_to_throw_exception): New function.
1453
1454 2014-08-29  Gary Benson  <gbenson@redhat.com>
1455
1456         * common/gdb_setjmp.h: New file.
1457         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1458         * configure.ac: Move sigsetjmp check...
1459         * common/common.m4: ...here.
1460         * configure: Regenerate.
1461         * cp-support.c (SIGJMP_BUF): Delete.
1462         (SIGSETJMP): Likewise.
1463         (SIGLONGJMP): Likewise.
1464         * exceptions.h (gdb_setjmp.h): Include.
1465         (setjmp.h): Do not include.
1466         (EXCEPTIONS_SIGJMP_BUF): Delete.
1467         (EXCEPTIONS_SIGSETJMP): Likewise.
1468         (EXCEPTIONS_SIGLONGJMP): Likewise.
1469         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1470         from gdb_setjmp.h.
1471         * exceptions.c: Likewise.
1472
1473 2014-08-29  Gary Benson  <gbenson@redhat.com>
1474
1475         * cleanups.h: Moved to...
1476         * common/cleanups.h: New file.
1477         * cleanups.c: Moved to...
1478         * common/cleanups.c: New file.  Include common-defs.h and
1479         cleanups.h.  Do not include defs.h.
1480         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1481         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1482         (cleanups.o): New rule.
1483
1484 2014-08-29  Gary Benson  <gbenson@redhat.com>
1485
1486         * common/errors.h (internal_warning): New declaration.
1487         (internal_vwarning): Likewise.
1488         * common/errors.c (internal_warning): New function.
1489         * utils.h (internal_warning): Don't declare.
1490         (internal_vwarning): Likewise.
1491         * utils.c (internal_warning): Removed.
1492
1493 2014-08-29  Gary Benson  <gbenson@redhat.com>
1494
1495         * main.c (captured_main): Use warning during startup.
1496         Prefix startup warning messages with command name.
1497
1498 2014-08-29  Gary Benson  <gbenson@redhat.com>
1499
1500         * main.c (captured_main): Handle usage errors with error.
1501
1502 2014-08-29  Gary Benson  <gbenson@redhat.com>
1503
1504         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1505         exit pair with a call to error.  Wrap the message with _().
1506
1507 2014-08-29  Gary Benson  <gbenson@redhat.com>
1508
1509         * main.c (captured_main): Replace a fprintf/exit
1510         pair with a call to error.  Wrap the message with _().
1511
1512 2014-08-29  Gary Benson  <gbenson@redhat.com>
1513
1514         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1515         pairs with calls to error.  Wrap the message with _().
1516
1517 2014-08-29  Gary Benson  <gbenson@redhat.com>
1518
1519         * utils.c (vwarning): Protect calls to target_terminal_ours
1520         and wrap_here.
1521
1522 2014-08-29  Gary Benson  <gbenson@redhat.com>
1523
1524         * exceptions.c (print_flush): Protect calls to
1525         target_terminal_ours and wrap_here.
1526
1527 2014-08-29  Gary Benson  <gbenson@redhat.com>
1528
1529         * utils.h (filtered_printing_initialized): New declaration.
1530         * utils.c (abort_with_message): New function.
1531         (internal_vproblem): Use abort_with_message for first level
1532         recursive internal problems, and if gdb_stderr is not set up.
1533         Protect calls to target_terminal_ours, begin_line and query.
1534
1535 2014-08-28  Doug Evans  <dje@google.com>
1536
1537         * symtab.c (in_prologue): Move definition to better spot.
1538         (skip_prologue_using_sal): Ditto.
1539
1540 2014-08-28  Doug Evans  <dje@google.com>
1541
1542         * symtab.c (find_function_start_sal): Move definition to better spot.
1543
1544 2014-08-28  Yao Qi  <yao@codesourcery.com>
1545
1546         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1547         found_stack_adjust in forward scan.  Remove condition check
1548         on found_stack_adjust which is always true.  Indent the code.
1549
1550 2014-08-28  Yao Qi  <yao@codesourcery.com>
1551
1552         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1553         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1554         (dwarf_decode_lines): Remove argument
1555         want_line_info.  Remove condition check on want_line_info.
1556         Callers update.
1557
1558 2014-08-27  Doug Evans  <dje@google.com>
1559
1560         * dwarf2read.c (dwarf_record_line): Fix typo.
1561
1562 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1563
1564         * target.h (struct target_ops::to_terminal_save_ours): Remove
1565         declaration.
1566         (target_terminal_save_ours): Remove macro.
1567         * target-delegates.c: Regenerate.
1568         * inf-child.c (inf_child_target): Don't set the nonexistent
1569         field to_terminal_save_ours.
1570         * inferior.h (child_terminal_save_ours): Remove declaration.
1571         * terminal.h (gdb_save_tty_state): New declaration.
1572         * inflow.c (child_terminal_save_ours): Rename to ...
1573         (gdb_save_tty_state): ... this.
1574         * tui/tui.c: Include terminal.h.
1575         (tui_enable): Use gdb_save_tty_state instead of
1576         target_terminal_save_ours.
1577         (tui_disable): Likewise.
1578
1579 2014-08-25  Doug Evans  <dje@google.com>
1580
1581         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1582         Pass NULL instead of 0 for context pointer.
1583
1584 2014-08-25  Yao Qi  <yao@codesourcery.com>
1585
1586         * dwarf2read.c: Fix grammatical error.
1587
1588 2014-08-24  Yao Qi  <yao@codesourcery.com>
1589
1590         * dwarf2read.c (scan_partial_symbols):  Update comments.
1591         Rename argument 'need_pc' with 'set_addrmap'.
1592         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1593         'set_addrmap'.
1594         (add_partial_module): Likewise.
1595         (add_partial_subprogram): Likewise.  Update comments.
1596         (dwarf2_name): Fix typo.
1597
1598 2014-08-22  Doug Evans  <dje@google.com>
1599
1600         PR 17276
1601         * dwarf2read.c (dwarf_record_line_p): New function.
1602         (dwarf_decode_lines_1): Ignore subsequent line number entries
1603         for the same line if any entry had a non-zero discriminator.
1604
1605 2014-08-22  Doug Evans  <dje@google.com>
1606
1607         * buildsym.h (record_line_ftype): New typedef.
1608         (record_line): Use it.
1609         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1610         (dwarf_decode_lines_1): Call them.
1611
1612 2014-08-22  Yao Qi  <yao@codesourcery.com>
1613
1614         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1615         (ctf_end): Remove code.
1616
1617 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1618
1619         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1620         (linux_make_corefile_notes): call update_thread_list, protected against
1621         exceptions.
1622
1623 2014-08-21  Pedro Alves  <palves@redhat.com>
1624
1625         * infcmd.c (attach_command): Remove comment.
1626
1627 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1628
1629         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1630         unsigned LONGEST to ULONGEST.
1631
1632 2014-08-20  Pedro Alves  <palves@redhat.com>
1633
1634         * Makefile.in (check-read1): New rule.
1635
1636 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1637
1638         * value.c (value_from_contents_and_address): Strip resolved_type's
1639         typedef layers before checking its TYPE_DATA_LOCATION.
1640
1641 2014-08-20  Pedro Alves  <palves@redhat.com>
1642
1643         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1644
1645 2014-08-20  Yao Qi  <yao@codesourcery.com>
1646
1647         * amd64-tdep.c (amd64_classify): Add a blank line after the
1648         example.  Move "*/" to a new line.
1649         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1650         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1651         * dwarf2read.c (psymtab_include_file_name): Likewise.
1652
1653 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1654             Pedro Alves  <palves@redhat.com>
1655
1656         PR symtab/14604
1657         PR symtab/14605
1658         * ada-lang.c (coerce_unspec_val_to_type): Use
1659         value_contents_copy_raw.
1660         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1661         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1662         * cp-valprint.c (cp_print_value_fields): Let the common printing
1663         code handle optimized out values.
1664         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1665         * d-valprint.c (dynamic_array_type): Use
1666         value_bits_any_optimized_out.
1667         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1668         check_any_valid fields.
1669         (check_pieced_value_bits): Delete and inline ...
1670         (check_pieced_synthetic_pointer): ... here.
1671         (check_pieced_value_validity): Delete.
1672         (check_pieced_value_invalid): Delete.
1673         (pieced_value_funcs): Remove check_validity and check_any_valid
1674         fields.
1675         (read_pieced_value): Use mark_value_bits_optimized_out.
1676         (write_pieced_value): Switch to use
1677         mark_value_bytes_optimized_out.
1678         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1679         of assuming the whole value is optimized out.
1680         * findvar.c (read_frame_register_value): Remove special handling
1681         of optimized out registers.
1682         (value_from_register): Use mark_value_bytes_optimized_out.
1683         * frame-unwind.c (frame_unwind_got_optimized): Use
1684         mark_value_bytes_optimized_out.
1685         * jv-valprint.c (java_value_print): Adjust.
1686         (java_print_value_fields): Let the common printing code handle
1687         optimized out values.
1688         * mips-tdep.c (mips_print_register): Remove special handling of
1689         optimized out registers.
1690         * opencl-lang.c (lval_func_check_validity): Delete.
1691         (lval_func_check_any_valid): Delete.
1692         (opencl_value_funcs): Remove check_validity and check_any_valid
1693         fields.
1694         * p-valprint.c (pascal_object_print_value_fields): Let the common
1695         printing code handle optimized out values.
1696         * stack.c (read_frame_arg): Remove special handling of optimized
1697         out values.  Fetch both VAL and ENTRYVAL before comparing
1698         contents.  Adjust to value_available_contents_eq rename.
1699         * valprint.c (valprint_check_validity)
1700         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1701         (val_print_array_elements): Adjust.
1702         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1703         (value_bits_any_optimized_out): New function.
1704         (value_entirely_covered_by_range_vector): New function, factored
1705         out from value_entirely_unavailable.
1706         (value_entirely_unavailable): Reimplement.
1707         (value_entirely_optimized_out): New function.
1708         (insert_into_bit_range_vector): New function, factored out from
1709         mark_value_bits_unavailable.
1710         (mark_value_bits_unavailable): Reimplement.
1711         (struct ranges_and_idx): New struct.
1712         (find_first_range_overlap_and_match): New function, factored out
1713         from value_available_contents_bits_eq.
1714         (value_available_contents_bits_eq): Rename to ...
1715         (value_contents_bits_eq): ... this.  Check both unavailable
1716         contents and optimized out contents.
1717         (value_available_contents_eq): Rename to ...
1718         (value_contents_eq): ... this.
1719         (allocate_value_lazy): Remove reference to the old optimized_out
1720         boolean.
1721         (allocate_optimized_out_value): Use
1722         mark_value_bytes_optimized_out.
1723         (require_not_optimized_out): Adjust to check whether the
1724         optimized_out vec is empty.
1725         (ranges_copy_adjusted): New function, factored out from
1726         value_contents_copy_raw.
1727         (value_contents_copy_raw): Also copy the optimized out ranges.
1728         Assert the destination ranges aren't optimized out.
1729         (value_contents_copy): Update comment, remove call to
1730         require_not_optimized_out.
1731         (value_contents_equal): Adjust to check whether the optimized_out
1732         vec is empty.
1733         (set_value_optimized_out, value_optimized_out_const): Delete.
1734         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1735         New functions.
1736         (value_entirely_optimized_out, value_bits_valid): Delete.
1737         (value_copy): Take a VEC copy of the 'optimized_out' field.
1738         (value_primitive_field): Remove special handling of optimized out.
1739         (value_fetch_lazy): Assert that lazy values have no unavailable
1740         regions.  Use value_bits_any_optimized_out.  Remove some special
1741         handling for optimized out values.
1742         * value.h: Add intro comment about <optimized out> and
1743         <unavailable>.
1744         (struct lval_funcs): Remove check_validity and check_any_valid
1745         fields.
1746         (set_value_optimized_out, value_optimized_out_const): Remove.
1747         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1748         New declarations.
1749         (value_bits_any_optimized_out): New declaration.
1750         (value_bits_valid): Delete declaration.
1751         (value_available_contents_eq): Rename to ...
1752         (value_contents_eq): ... this, and extend comments.
1753
1754 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1755
1756         Fix -fsanitize=address on unreadable inferior strings.
1757         * valprint.c (val_print_string): Fix access before BUFFER.
1758
1759 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1760
1761         * target.c (target_struct_size): Remove.
1762         (target_struct_allocsize): Remove.
1763         (DEFAULT_ALLOCSIZE): Remove.
1764         (target_ops_p): New typedef.
1765         (DEF_VEC_P (target_ops_p)): New vector type.
1766         (target_structs): Change type to VEC (target_ops_p).
1767         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1768         (find_default_run_target): Rewrite for loop following changes to
1769         target_structs.
1770
1771 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1772
1773         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1774         Adjust code accordingly.  Adjust function description comment.
1775
1776 2014-08-19  Yao Qi  <yao@codesourcery.com>
1777
1778         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1779         types.
1780
1781 2014-08-19  Alan Modra  <amodra@gmail.com>
1782
1783         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1784         * config.in: Regenerate.
1785         * configure: Regenerate.
1786
1787 2014-08-19  Tom Tromey  <tromey@redhat.com>
1788             Gary Benson  <gbenson@redhat.com>
1789
1790         * common/common-debug.h: New file.
1791         * common/common-debug.c: Likewise.
1792         * debug.c: Likewise.
1793         * Makefile.in (SFILES): Add common/common-debug.c.
1794         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1795         (COMMON_OBS): Add common-debug.o and debug.o.
1796         (common-debug.o): New rule.
1797         * common/common-defs.h: Include common-debug.h.
1798         * common/agent.c (debug_agent_printf): New function.
1799         (DEBUG_AGENT): Redefine.
1800         * nat/i386-dregs.c (debug_printf): Undefine.
1801
1802 2014-08-19  Gary Benson  <gbenson@redhat.com>
1803
1804         * common/common-defs.h: Include print-utils.h.
1805         * utils.h: Do not include print-utils.h.
1806
1807 2014-08-19  Tom Tromey  <tromey@redhat.com>
1808             Gary Benson  <gbenson@redhat.com>
1809
1810         * common/common-types.h: New file.
1811         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1812         * common/common-defs.h: Include common-types.h.
1813         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1814         (ULONGEST): Remove.
1815
1816 2014-08-19  Tom Tromey  <tromey@redhat.com>
1817             Gary Benson  <gbenson@redhat.com>
1818
1819         * common/errors.h: New file.
1820         * common/errors.c: Likewise.
1821         * Makefile.in (SFILES): Add common/errors.c.
1822         (HFILES_NO_SRCDIR): Add common/errors.h.
1823         (COMMON_OBS): Add errors.o.
1824         (errors.o): New rule.
1825         * common/common-defs.h: Include errors.h.
1826         * utils.h (perror_with_name, error, verror, warning, vwarning):
1827         Don't declare.
1828         * common/common-utils.h: (malloc_failure, internal_error):
1829         Likewise.
1830
1831 2014-08-19  Gary Benson  <gbenson@redhat.com>
1832
1833         * utils.c (internal_vproblem): Always print the message.
1834
1835 2014-08-18  Doug Evans  <dje@google.com>
1836
1837         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1838
1839 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1840
1841         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1842         Return 0 if TYPE is dynamic.
1843         (print_range): Add handling of dynamic ranges.
1844
1845 2014-08-18  Keven Boell  <keven.boell@intel.com>
1846             Joel Brobecker  <brobecker@adacore.com>
1847
1848         * gdbtypes.h (struct main_type): Add field "data_location".
1849         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1850         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1851         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1852         a dynamic data location.
1853         (resolve_dynamic_type): Add DW_AT_data_location handling.
1854         (copy_recursive, copy_type): Copy the data_location information
1855         when present.
1856         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1857         * value.c (value_from_contents_and_address): Add
1858         DW_AT_data_location handling.
1859
1860 2014-08-18  Keven Boell  <keven.boell@intel.com>
1861             Joel Brobecker  <brobecker@adacore.com>
1862
1863         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1864         field "get_object_address".
1865         * dwarf2expr.c (execute_stack_op): Add handling for
1866         DW_OP_push_object_address.
1867         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1868         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1869         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1870         (dwarf_expr_get_obj_addr): New function.
1871         (dwarf_expr_ctx_funcs): Add get_object_address field.
1872         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1873         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1874         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1875         (needs_get_obj_addr): New function.
1876         (needs_frame_ctx_funcs): Add get_object_address field.
1877         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1878         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1879         (resolve_dynamic_array): Likewise.
1880
1881 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1882
1883         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1884         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1885         fixed value for records and unions for which some GNAT encodings
1886         are present.
1887
1888 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1889
1890         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1891         rewrite to avoid "else if" and "else" constructs.  Should be
1892         a no-op in practice.
1893
1894 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1895
1896         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1897         of lexical block.
1898
1899 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1900
1901         PR c++/17132
1902         * eval.c: Update all calls to find_overload_match.
1903         * valarith.c: Likewise.
1904         (value_user_defined_cpp_op, value_user_defined_op): New
1905         argument NOSIDE.  Update all callers.
1906         * valops.c (find_overload_match): New argument NOSIDE.
1907         * value.h (find_overload_match): Update signature.
1908
1909 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1910
1911         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1912         'items' methods instead of 'iteritems' method on dictionaries.
1913
1914 2014-08-15  Doug Evans  <dje@google.com>
1915
1916         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1917         closer to use.
1918
1919 2014-08-15  Doug Evans  <dje@google.com>
1920
1921         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1922
1923 2014-08-15  Doug Evans  <dje@google.com>
1924
1925         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1926
1927 2014-08-15  Doug Evans  <dje@google.com>
1928
1929         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1930         unused.
1931
1932 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1933
1934         * dcache.h: Include target.h, to avoid compile time warnings.
1935
1936 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1937
1938         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1939         frame_info" partial declaration.
1940         * gdbarch.h: Regenerate.
1941
1942 2014-08-15  Yao Qi  <yao@codesourcery.com>
1943
1944         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1945         Add parameter 'decode_for_pst_p'.  Callers update.
1946
1947 2014-08-13  Yao Qi  <yao@codesourcery.com>
1948
1949         PR build/17104
1950         * configure.ac: Use local variable 'pos'.
1951         * configure: Regenerated.
1952
1953 2014-08-11  Doug Evans  <dje@google.com>
1954
1955         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1956         message, it is redundant with "Reading symbols from ..." message.
1957
1958 2014-08-10  Doug Evans  <xdje42@gmail.com>
1959
1960         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1961
1962 2014-08-09  Yao Qi  <yao@codesourcery.com>
1963
1964         PR remote/9053
1965         * remote.c (remote_xfer_partial): Remove dead code.
1966
1967 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1968
1969         * ia64-linux-tdep.c: Include "regset.h".
1970         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1971         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1972         (ia64_linux_supply_fpregset): New function.
1973         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1974         (ia64_linux_regset_from_core_section): New function.
1975         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1976         method.
1977
1978 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1979
1980         * m68klinux-tdep.c: Include "regset.h".
1981         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1982         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1983         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1984         (m68k_linux_regset_from_core_section): New function.
1985         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1986         method.
1987
1988 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1989
1990         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1991         function.  Move logic to...
1992         (tilegx_linux_regmap): ... this new register map.
1993         (tilegx_linux_regset): Refer to register map, replace supply
1994         method by regcache_supply_regset, and add collect method.
1995         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1996         TILEGX_FIRST_EASY_REGNUM.
1997
1998 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1999
2000         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2001         that calls regcache_supply_regset and handles the EPC register
2002         separately.  Move main logic to...
2003         (score7_linux_gregmap): ... this new register map.
2004         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2005         (score7_linux_gregset): Refer to register map.  Add collect method.
2006         (score7_linux_regset_from_core_section): Replace
2007         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2008         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2009         (struct regset): Delete unused forward declaraction.
2010         (struct pt_regs): Delete structure definition.
2011         (elf_gregset_t): Delete typedef.
2012
2013 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2014
2015         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2016         (nios2_core_regset): Add collect method.
2017
2018 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2019
2020         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2021         platform-independent and don't write to read-only input buffer.
2022         (m32r_linux_collect_gregset): New function.
2023         (m32r_linux_gregset): Add collect method.
2024
2025 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2026
2027         * hppa-linux-tdep.c (greg_map): Rename to...
2028         (hppa_linux_gregmap): ... this.  Also convert to
2029         regcache_map_entry format.
2030         (hppa_linux_supply_regset): Delete function.
2031         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2032         (hppa_linux_fpregmap): ... this new register map.
2033         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2034         register map, replace supply method by regcache_supply_regset, and
2035         add collect method regcache_collect_regset.
2036
2037 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2038
2039         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2040         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2041         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2042         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2043         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2044         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2045         (frv_linux_supply_gregset): Replace main logic by call to
2046         regcache_supply_regset, but keep clearing gr32-gr63.
2047         (frv_linux_supply_fpregset): Delete function.
2048         (frv_linux_gregset): Refer to appropriate register map and add
2049         regcache_collect_regset as the collect method.
2050         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2051         by regcache_supply_regset.
2052
2053 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2054
2055         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2056         by call to alpha_supply_int_regs.
2057         (alpha_linux_collect_gregset): New function.
2058         (alpha_linux_supply_fpregset): Replace logic by call to
2059         alpha_supply_fp_regs.
2060         (alpha_linux_collect_fpregset): New function.
2061         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2062
2063 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2064
2065         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2066         by call to regcache_collect_regset.
2067         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2068         instead of aarch64_linux_supply_gregset/_fpregset.
2069         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2070         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2071         header file instead.
2072         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2073         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2074         functions.  Move logic to ...
2075         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2076         register maps.
2077         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2078         refer to new register maps, replace *_regset_from_core by
2079         regcache_supply_regset, and also use regcache_collect_regset.
2080         * aarch64-linux-tdep.h: Include "regset.h".
2081         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2082         Delete prototypes.
2083         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2084         macros, moved from C source file.
2085         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2086         variable declarations.
2087
2088 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2089
2090         * s390-linux-nat.c: Include "regset.h".
2091         (regmap_gregset): Delete macro.
2092         (s390_64_regmap_gregset): New register map for
2093         regcache_supply/_collect_regset.
2094         (s390_64_gregset): New regset.
2095         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2096         (regmap_fpregset): Delete macro.
2097         (s390_native_supply, s390_native_collect): Delete functions.
2098         (supply_gregset, fill_gregset): Replace s390-specific regmap
2099         handling by a call to regcache_supply/_collect_regset.
2100         (supply_fpregset, fill_fpregset): Call regcache_supply/
2101         _collect_regset instead of s390_native_supply/_collect.
2102         (fetch_regset, store_regset): Likewise.  Also change the last
2103         parameter to a regset instead of a regmap.
2104         (s390_linux_fetch_inferior_registers)
2105         (390_linux_store_inferior_registers): Adjust last parameter in
2106         calls to fetch_regset and store_regset.
2107         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2108         (s390_gregmap): ... this.  Also make static const and convert to
2109         regcache_map_entry format.
2110         (s390x_regmap_gregset): Delete.
2111         (s390_regmap_fpregset): Rename to...
2112         (s390_fpregmap): ... this.  Make static const and convert to
2113         regcache_map_entry format.
2114         (s390_regmap_upper, s390_regmap_last_break)
2115         (s390x_regmap_last_break, s390_regmap_system_call)
2116         (s390_regmap_tdb): Likewise.
2117         (s390_supply_regset, s390_collect_regset): Remove functions.
2118         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2119         s390_supply_regset.
2120         (s390_gregset, s390_fpregset, s390_upper_regset)
2121         (s390_last_break_regset, s390x_last_break_regset)
2122         (s390_system_call_regset, s390_tdb_regset): Make global and
2123         replace s390_supply/_collect_regset by regcache_supply/
2124         _collect_regset.
2125         (s390x_gregset): Delete.
2126         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2127         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2128         (s390_regmap_fpregset, s390_regmap_last_break)
2129         (s390x_regmap_last_break, s390_regmap_system_call)
2130         (s390_regmap_tdb): Delete global variable declarations.
2131         (s390_gregset, s390_fpregset, s390_last_break_regset)
2132         (s390x_last_break_regset, s390_system_call_regset)
2133         (s390_tdb_regset): New global variable declarations.
2134
2135 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2136
2137         * regcache.c: Include "regset.h".
2138         (regcache_transfer_regset): New local function.
2139         (regcache_supply_regset, regcache_collect_regset): New functions.
2140         * regcache.h (struct regcache_map_entry): New structure.
2141         (REGCACHE_MAP_SKIP): New enum value.
2142         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2143
2144 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2145
2146         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2147         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2148         (ppc_linux_collect_gregset ): Likewise.
2149         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2150         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2151         (ppc_collect_vrregset): Likewise.
2152         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2153         Likewise.
2154
2155 2014-08-07  Yao Qi  <yao@codesourcery.com>
2156
2157         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2158         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2159         * remote.c (remote_read_bytes): Likewise.
2160
2161 2014-08-07  Yao Qi  <yao@codesourcery.com>
2162
2163         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2164
2165 2014-08-07  Yao Qi  <yao@codesourcery.com>
2166
2167         PR remote/17230
2168         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2169         TARGET_XFER_OK instead of 0.
2170
2171 2014-08-07  Gary Benson  <gbenson@redhat.com>
2172
2173         * common/common-defs.h: Include errno.h.
2174         * defs.h: Do not include errno.h.
2175         * ada-typeprint.c: Likewise.
2176         * c-typeprint.c: Likewise.
2177         * core-regset.c: Likewise.
2178         * corefile.c: Likewise.
2179         * corelow.c: Likewise.
2180         * event-loop.c: Likewise.
2181         * f-typeprint.c: Likewise.
2182         * gnu-nat.c: Likewise.
2183         * go32-nat.c: Likewise.
2184         * i386gnu-nat.c: Likewise.
2185         * m2-typeprint.c: Likewise.
2186         * nat/linux-btrace.c: Likewise.
2187         * p-typeprint.c: Likewise.
2188         * procfs.c: Likewise.
2189         * remote-sim.c: Likewise.
2190         * rs6000-nat.c: Likewise.
2191         * target.c: Likewise.
2192         * typeprint.c: Likewise.
2193         * ui-file.c: Likewise.
2194         * valops.c: Likewise.
2195         * valprint.c: Likewise.
2196
2197 2014-08-07  Gary Benson  <gbenson@redhat.com>
2198
2199         * common/common-defs.h: Include string.h.
2200         * aarch64-tdep.c: Do not include string.h.
2201         * ada-exp.y: Likewise.
2202         * ada-lang.c: Likewise.
2203         * ada-lex.l: Likewise.
2204         * ada-typeprint.c: Likewise.
2205         * ada-valprint.c: Likewise.
2206         * aix-thread.c: Likewise.
2207         * alpha-linux-tdep.c: Likewise.
2208         * alpha-mdebug-tdep.c: Likewise.
2209         * alpha-nat.c: Likewise.
2210         * alpha-osf1-tdep.c: Likewise.
2211         * alpha-tdep.c: Likewise.
2212         * alphanbsd-tdep.c: Likewise.
2213         * amd64-dicos-tdep.c: Likewise.
2214         * amd64-linux-tdep.c: Likewise.
2215         * amd64-nat.c: Likewise.
2216         * amd64-sol2-tdep.c: Likewise.
2217         * amd64fbsd-tdep.c: Likewise.
2218         * amd64obsd-tdep.c: Likewise.
2219         * arch-utils.c: Likewise.
2220         * arm-linux-nat.c: Likewise.
2221         * arm-linux-tdep.c: Likewise.
2222         * arm-tdep.c: Likewise.
2223         * arm-wince-tdep.c: Likewise.
2224         * armbsd-tdep.c: Likewise.
2225         * armnbsd-nat.c: Likewise.
2226         * armnbsd-tdep.c: Likewise.
2227         * armobsd-tdep.c: Likewise.
2228         * avr-tdep.c: Likewise.
2229         * ax-gdb.c: Likewise.
2230         * ax-general.c: Likewise.
2231         * bcache.c: Likewise.
2232         * bfin-tdep.c: Likewise.
2233         * breakpoint.c: Likewise.
2234         * build-id.c: Likewise.
2235         * buildsym.c: Likewise.
2236         * c-exp.y: Likewise.
2237         * c-lang.c: Likewise.
2238         * c-typeprint.c: Likewise.
2239         * c-valprint.c: Likewise.
2240         * charset.c: Likewise.
2241         * cli-out.c: Likewise.
2242         * cli/cli-cmds.c: Likewise.
2243         * cli/cli-decode.c: Likewise.
2244         * cli/cli-dump.c: Likewise.
2245         * cli/cli-interp.c: Likewise.
2246         * cli/cli-logging.c: Likewise.
2247         * cli/cli-script.c: Likewise.
2248         * cli/cli-setshow.c: Likewise.
2249         * cli/cli-utils.c: Likewise.
2250         * coffread.c: Likewise.
2251         * common/agent.c: Likewise.
2252         * common/buffer.c: Likewise.
2253         * common/buffer.h: Likewise.
2254         * common/common-utils.c: Likewise.
2255         * common/filestuff.c: Likewise.
2256         * common/filestuff.c: Likewise.
2257         * common/format.c: Likewise.
2258         * common/print-utils.c: Likewise.
2259         * common/rsp-low.c: Likewise.
2260         * common/signals.c: Likewise.
2261         * common/vec.h: Likewise.
2262         * common/xml-utils.c: Likewise.
2263         * core-regset.c: Likewise.
2264         * corefile.c: Likewise.
2265         * corelow.c: Likewise.
2266         * cp-abi.c: Likewise.
2267         * cp-name-parser.y: Likewise.
2268         * cp-support.c: Likewise.
2269         * cp-valprint.c: Likewise.
2270         * cris-tdep.c: Likewise.
2271         * d-exp.y: Likewise.
2272         * darwin-nat.c: Likewise.
2273         * dbxread.c: Likewise.
2274         * dcache.c: Likewise.
2275         * demangle.c: Likewise.
2276         * dicos-tdep.c: Likewise.
2277         * disasm.c: Likewise.
2278         * doublest.c: Likewise.
2279         * dsrec.c: Likewise.
2280         * dummy-frame.c: Likewise.
2281         * dwarf2-frame.c: Likewise.
2282         * dwarf2loc.c: Likewise.
2283         * dwarf2read.c: Likewise.
2284         * elfread.c: Likewise.
2285         * environ.c: Likewise.
2286         * eval.c: Likewise.
2287         * event-loop.c: Likewise.
2288         * exceptions.c: Likewise.
2289         * exec.c: Likewise.
2290         * expprint.c: Likewise.
2291         * f-exp.y: Likewise.
2292         * f-lang.c: Likewise.
2293         * f-typeprint.c: Likewise.
2294         * f-valprint.c: Likewise.
2295         * fbsd-nat.c: Likewise.
2296         * findcmd.c: Likewise.
2297         * findvar.c: Likewise.
2298         * fork-child.c: Likewise.
2299         * frame.c: Likewise.
2300         * frv-linux-tdep.c: Likewise.
2301         * frv-tdep.c: Likewise.
2302         * gdb.c: Likewise.
2303         * gdb_bfd.c: Likewise.
2304         * gdbarch.c: Likewise.
2305         * gdbarch.sh: Likewise.
2306         * gdbtypes.c: Likewise.
2307         * gnu-nat.c: Likewise.
2308         * gnu-v2-abi.c: Likewise.
2309         * gnu-v3-abi.c: Likewise.
2310         * go-exp.y: Likewise.
2311         * go-lang.c: Likewise.
2312         * go32-nat.c: Likewise.
2313         * guile/guile.c: Likewise.
2314         * guile/scm-auto-load.c: Likewise.
2315         * hppa-hpux-tdep.c: Likewise.
2316         * hppa-linux-nat.c: Likewise.
2317         * hppanbsd-tdep.c: Likewise.
2318         * hppaobsd-tdep.c: Likewise.
2319         * i386-cygwin-tdep.c: Likewise.
2320         * i386-dicos-tdep.c: Likewise.
2321         * i386-linux-tdep.c: Likewise.
2322         * i386-nto-tdep.c: Likewise.
2323         * i386-sol2-tdep.c: Likewise.
2324         * i386-tdep.c: Likewise.
2325         * i386bsd-tdep.c: Likewise.
2326         * i386gnu-nat.c: Likewise.
2327         * i386nbsd-tdep.c: Likewise.
2328         * i386obsd-tdep.c: Likewise.
2329         * i387-tdep.c: Likewise.
2330         * ia64-libunwind-tdep.c: Likewise.
2331         * ia64-linux-nat.c: Likewise.
2332         * inf-child.c: Likewise.
2333         * inf-ptrace.c: Likewise.
2334         * inf-ttrace.c: Likewise.
2335         * infcall.c: Likewise.
2336         * infcmd.c: Likewise.
2337         * inflow.c: Likewise.
2338         * infrun.c: Likewise.
2339         * interps.c: Likewise.
2340         * iq2000-tdep.c: Likewise.
2341         * irix5-nat.c: Likewise.
2342         * jv-exp.y: Likewise.
2343         * jv-lang.c: Likewise.
2344         * jv-typeprint.c: Likewise.
2345         * jv-valprint.c: Likewise.
2346         * language.c: Likewise.
2347         * linux-fork.c: Likewise.
2348         * linux-nat.c: Likewise.
2349         * lm32-tdep.c: Likewise.
2350         * m2-exp.y: Likewise.
2351         * m2-typeprint.c: Likewise.
2352         * m32c-tdep.c: Likewise.
2353         * m32r-linux-nat.c: Likewise.
2354         * m32r-linux-tdep.c: Likewise.
2355         * m32r-rom.c: Likewise.
2356         * m32r-tdep.c: Likewise.
2357         * m68hc11-tdep.c: Likewise.
2358         * m68k-tdep.c: Likewise.
2359         * m68kbsd-tdep.c: Likewise.
2360         * m68klinux-nat.c: Likewise.
2361         * m68klinux-tdep.c: Likewise.
2362         * m88k-tdep.c: Likewise.
2363         * machoread.c: Likewise.
2364         * macrocmd.c: Likewise.
2365         * main.c: Likewise.
2366         * mdebugread.c: Likewise.
2367         * mem-break.c: Likewise.
2368         * memattr.c: Likewise.
2369         * memory-map.c: Likewise.
2370         * mep-tdep.c: Likewise.
2371         * mi/mi-cmd-break.c: Likewise.
2372         * mi/mi-cmd-disas.c: Likewise.
2373         * mi/mi-cmd-env.c: Likewise.
2374         * mi/mi-cmd-stack.c: Likewise.
2375         * mi/mi-cmd-var.c: Likewise.
2376         * mi/mi-cmds.c: Likewise.
2377         * mi/mi-console.c: Likewise.
2378         * mi/mi-getopt.c: Likewise.
2379         * mi/mi-interp.c: Likewise.
2380         * mi/mi-main.c: Likewise.
2381         * mi/mi-parse.c: Likewise.
2382         * microblaze-rom.c: Likewise.
2383         * microblaze-tdep.c: Likewise.
2384         * mingw-hdep.c: Likewise.
2385         * minidebug.c: Likewise.
2386         * minsyms.c: Likewise.
2387         * mips-irix-tdep.c: Likewise.
2388         * mips-linux-tdep.c: Likewise.
2389         * mips-tdep.c: Likewise.
2390         * mips64obsd-tdep.c: Likewise.
2391         * mipsnbsd-tdep.c: Likewise.
2392         * mipsread.c: Likewise.
2393         * mn10300-linux-tdep.c: Likewise.
2394         * mn10300-tdep.c: Likewise.
2395         * monitor.c: Likewise.
2396         * moxie-tdep.c: Likewise.
2397         * mt-tdep.c: Likewise.
2398         * nat/linux-btrace.c: Likewise.
2399         * nat/linux-osdata.c: Likewise.
2400         * nat/linux-procfs.c: Likewise.
2401         * nat/linux-ptrace.c: Likewise.
2402         * nat/linux-waitpid.c: Likewise.
2403         * nbsd-tdep.c: Likewise.
2404         * nios2-linux-tdep.c: Likewise.
2405         * nto-procfs.c: Likewise.
2406         * nto-tdep.c: Likewise.
2407         * objc-lang.c: Likewise.
2408         * objfiles.c: Likewise.
2409         * opencl-lang.c: Likewise.
2410         * osabi.c: Likewise.
2411         * osdata.c: Likewise.
2412         * p-exp.y: Likewise.
2413         * p-lang.c: Likewise.
2414         * p-typeprint.c: Likewise.
2415         * parse.c: Likewise.
2416         * posix-hdep.c: Likewise.
2417         * ppc-linux-nat.c: Likewise.
2418         * ppc-sysv-tdep.c: Likewise.
2419         * ppcfbsd-tdep.c: Likewise.
2420         * ppcnbsd-tdep.c: Likewise.
2421         * ppcobsd-tdep.c: Likewise.
2422         * printcmd.c: Likewise.
2423         * procfs.c: Likewise.
2424         * prologue-value.c: Likewise.
2425         * python/py-auto-load.c: Likewise.
2426         * python/py-gdb-readline.c: Likewise.
2427         * ravenscar-thread.c: Likewise.
2428         * regcache.c: Likewise.
2429         * registry.c: Likewise.
2430         * remote-fileio.c: Likewise.
2431         * remote-m32r-sdi.c: Likewise.
2432         * remote-mips.c: Likewise.
2433         * remote-notif.c: Likewise.
2434         * remote-sim.c: Likewise.
2435         * remote.c: Likewise.
2436         * reverse.c: Likewise.
2437         * rs6000-aix-tdep.c: Likewise.
2438         * ser-base.c: Likewise.
2439         * ser-go32.c: Likewise.
2440         * ser-mingw.c: Likewise.
2441         * ser-pipe.c: Likewise.
2442         * ser-tcp.c: Likewise.
2443         * ser-unix.c: Likewise.
2444         * serial.c: Likewise.
2445         * sh-tdep.c: Likewise.
2446         * sh64-tdep.c: Likewise.
2447         * shnbsd-tdep.c: Likewise.
2448         * skip.c: Likewise.
2449         * sol-thread.c: Likewise.
2450         * solib-dsbt.c: Likewise.
2451         * solib-frv.c: Likewise.
2452         * solib-osf.c: Likewise.
2453         * solib-som.c: Likewise.
2454         * solib-spu.c: Likewise.
2455         * solib-target.c: Likewise.
2456         * solib.c: Likewise.
2457         * somread.c: Likewise.
2458         * source.c: Likewise.
2459         * sparc-nat.c: Likewise.
2460         * sparc-sol2-tdep.c: Likewise.
2461         * sparc-tdep.c: Likewise.
2462         * sparc64-tdep.c: Likewise.
2463         * sparc64fbsd-tdep.c: Likewise.
2464         * sparc64nbsd-tdep.c: Likewise.
2465         * sparcnbsd-tdep.c: Likewise.
2466         * spu-linux-nat.c: Likewise.
2467         * spu-multiarch.c: Likewise.
2468         * spu-tdep.c: Likewise.
2469         * stabsread.c: Likewise.
2470         * stack.c: Likewise.
2471         * std-regs.c: Likewise.
2472         * symfile.c: Likewise.
2473         * symmisc.c: Likewise.
2474         * symtab.c: Likewise.
2475         * target.c: Likewise.
2476         * thread.c: Likewise.
2477         * tilegx-linux-nat.c: Likewise.
2478         * tilegx-tdep.c: Likewise.
2479         * top.c: Likewise.
2480         * tracepoint.c: Likewise.
2481         * tui/tui-command.c: Likewise.
2482         * tui/tui-data.c: Likewise.
2483         * tui/tui-disasm.c: Likewise.
2484         * tui/tui-file.c: Likewise.
2485         * tui/tui-layout.c: Likewise.
2486         * tui/tui-out.c: Likewise.
2487         * tui/tui-regs.c: Likewise.
2488         * tui/tui-source.c: Likewise.
2489         * tui/tui-stack.c: Likewise.
2490         * tui/tui-win.c: Likewise.
2491         * tui/tui-windata.c: Likewise.
2492         * tui/tui-winsource.c: Likewise.
2493         * typeprint.c: Likewise.
2494         * ui-file.c: Likewise.
2495         * ui-out.c: Likewise.
2496         * user-regs.c: Likewise.
2497         * utils.c: Likewise.
2498         * v850-tdep.c: Likewise.
2499         * valarith.c: Likewise.
2500         * valops.c: Likewise.
2501         * valprint.c: Likewise.
2502         * value.c: Likewise.
2503         * varobj.c: Likewise.
2504         * vax-tdep.c: Likewise.
2505         * vaxnbsd-tdep.c: Likewise.
2506         * vaxobsd-tdep.c: Likewise.
2507         * windows-nat.c: Likewise.
2508         * xcoffread.c: Likewise.
2509         * xml-support.c: Likewise.
2510         * xstormy16-tdep.c: Likewise.
2511         * xtensa-linux-nat.c: Likewise.
2512
2513 2014-08-07  Gary Benson  <gbenson@redhat.com>
2514
2515         * common/common-defs.h: Include gdb_assert.h.
2516         * aarch64-tdep.c: Do not include gdb_assert.h.
2517         * addrmap.c: Likewise.
2518         * aix-thread.c: Likewise.
2519         * alpha-linux-tdep.c: Likewise.
2520         * alpha-mdebug-tdep.c: Likewise.
2521         * alphanbsd-tdep.c: Likewise.
2522         * amd64-nat.c: Likewise.
2523         * amd64-tdep.c: Likewise.
2524         * amd64bsd-nat.c: Likewise.
2525         * amd64fbsd-nat.c: Likewise.
2526         * amd64fbsd-tdep.c: Likewise.
2527         * amd64nbsd-nat.c: Likewise.
2528         * amd64nbsd-tdep.c: Likewise.
2529         * amd64obsd-nat.c: Likewise.
2530         * amd64obsd-tdep.c: Likewise.
2531         * arch-utils.c: Likewise.
2532         * arm-tdep.c: Likewise.
2533         * armbsd-tdep.c: Likewise.
2534         * auxv.c: Likewise.
2535         * bcache.c: Likewise.
2536         * bfin-tdep.c: Likewise.
2537         * blockframe.c: Likewise.
2538         * breakpoint.c: Likewise.
2539         * bsd-kvm.c: Likewise.
2540         * bsd-uthread.c: Likewise.
2541         * buildsym.c: Likewise.
2542         * c-exp.y: Likewise.
2543         * c-lang.c: Likewise.
2544         * charset.c: Likewise.
2545         * cleanups.c: Likewise.
2546         * cli-out.c: Likewise.
2547         * cli/cli-decode.c: Likewise.
2548         * cli/cli-dump.c: Likewise.
2549         * cli/cli-logging.c: Likewise.
2550         * cli/cli-script.c: Likewise.
2551         * cli/cli-utils.c: Likewise.
2552         * coffread.c: Likewise.
2553         * common/common-utils.c: Likewise.
2554         * common/queue.h: Likewise.
2555         * common/signals.c: Likewise.
2556         * common/vec.h: Likewise.
2557         * complaints.c: Likewise.
2558         * completer.c: Likewise.
2559         * corelow.c: Likewise.
2560         * cp-abi.c: Likewise.
2561         * cp-name-parser.y: Likewise.
2562         * cp-namespace.c: Likewise.
2563         * cp-support.c: Likewise.
2564         * cris-tdep.c: Likewise.
2565         * dbxread.c: Likewise.
2566         * dictionary.c: Likewise.
2567         * doublest.c: Likewise.
2568         * dsrec.c: Likewise.
2569         * dummy-frame.c: Likewise.
2570         * dwarf2-frame-tailcall.c: Likewise.
2571         * dwarf2-frame.c: Likewise.
2572         * dwarf2expr.c: Likewise.
2573         * dwarf2loc.c: Likewise.
2574         * dwarf2read.c: Likewise.
2575         * eval.c: Likewise.
2576         * event-loop.c: Likewise.
2577         * exceptions.c: Likewise.
2578         * expprint.c: Likewise.
2579         * f-valprint.c: Likewise.
2580         * fbsd-nat.c: Likewise.
2581         * findvar.c: Likewise.
2582         * frame-unwind.c: Likewise.
2583         * frame.c: Likewise.
2584         * frv-tdep.c: Likewise.
2585         * gcore.c: Likewise.
2586         * gdb-dlfcn.c: Likewise.
2587         * gdb_bfd.c: Likewise.
2588         * gdbarch.c: Likewise.
2589         * gdbarch.sh: Likewise.
2590         * gdbtypes.c: Likewise.
2591         * gnu-nat.c: Likewise.
2592         * gnu-v3-abi.c: Likewise.
2593         * go-lang.c: Likewise.
2594         * guile/scm-exception.c: Likewise.
2595         * guile/scm-gsmob.c: Likewise.
2596         * guile/scm-lazy-string.c: Likewise.
2597         * guile/scm-math.c: Likewise.
2598         * guile/scm-pretty-print.c: Likewise.
2599         * guile/scm-safe-call.c: Likewise.
2600         * guile/scm-utils.c: Likewise.
2601         * guile/scm-value.c: Likewise.
2602         * h8300-tdep.c: Likewise.
2603         * hppa-hpux-nat.c: Likewise.
2604         * hppa-tdep.c: Likewise.
2605         * hppanbsd-tdep.c: Likewise.
2606         * hppaobsd-tdep.c: Likewise.
2607         * i386-darwin-nat.c: Likewise.
2608         * i386-darwin-tdep.c: Likewise.
2609         * i386-nto-tdep.c: Likewise.
2610         * i386-tdep.c: Likewise.
2611         * i386bsd-nat.c: Likewise.
2612         * i386fbsd-tdep.c: Likewise.
2613         * i386gnu-nat.c: Likewise.
2614         * i386nbsd-tdep.c: Likewise.
2615         * i386obsd-tdep.c: Likewise.
2616         * i387-tdep.c: Likewise.
2617         * ia64-libunwind-tdep.c: Likewise.
2618         * ia64-tdep.c: Likewise.
2619         * inf-ptrace.c: Likewise.
2620         * inf-ttrace.c: Likewise.
2621         * infcall.c: Likewise.
2622         * infcmd.c: Likewise.
2623         * infrun.c: Likewise.
2624         * inline-frame.c: Likewise.
2625         * interps.c: Likewise.
2626         * jv-lang.c: Likewise.
2627         * jv-typeprint.c: Likewise.
2628         * linux-fork.c: Likewise.
2629         * linux-nat.c: Likewise.
2630         * linux-thread-db.c: Likewise.
2631         * m32c-tdep.c: Likewise.
2632         * m32r-linux-nat.c: Likewise.
2633         * m32r-tdep.c: Likewise.
2634         * m68k-tdep.c: Likewise.
2635         * m68kbsd-nat.c: Likewise.
2636         * m68kbsd-tdep.c: Likewise.
2637         * m88k-tdep.c: Likewise.
2638         * machoread.c: Likewise.
2639         * macroexp.c: Likewise.
2640         * macrotab.c: Likewise.
2641         * maint.c: Likewise.
2642         * mdebugread.c: Likewise.
2643         * memory-map.c: Likewise.
2644         * mep-tdep.c: Likewise.
2645         * mi/mi-common.c: Likewise.
2646         * microblaze-tdep.c: Likewise.
2647         * mingw-hdep.c: Likewise.
2648         * mips-linux-nat.c: Likewise.
2649         * mips-linux-tdep.c: Likewise.
2650         * mips-tdep.c: Likewise.
2651         * mips64obsd-tdep.c: Likewise.
2652         * mipsnbsd-tdep.c: Likewise.
2653         * mn10300-linux-tdep.c: Likewise.
2654         * mn10300-tdep.c: Likewise.
2655         * moxie-tdep.c: Likewise.
2656         * mt-tdep.c: Likewise.
2657         * nat/linux-btrace.c: Likewise.
2658         * nat/linux-osdata.c: Likewise.
2659         * nat/linux-ptrace.c: Likewise.
2660         * nat/mips-linux-watch.c: Likewise.
2661         * nios2-linux-tdep.c: Likewise.
2662         * nios2-tdep.c: Likewise.
2663         * objc-lang.c: Likewise.
2664         * objfiles.c: Likewise.
2665         * obsd-nat.c: Likewise.
2666         * opencl-lang.c: Likewise.
2667         * osabi.c: Likewise.
2668         * parse.c: Likewise.
2669         * ppc-linux-nat.c: Likewise.
2670         * ppc-sysv-tdep.c: Likewise.
2671         * ppcfbsd-nat.c: Likewise.
2672         * ppcfbsd-tdep.c: Likewise.
2673         * ppcnbsd-nat.c: Likewise.
2674         * ppcnbsd-tdep.c: Likewise.
2675         * ppcobsd-nat.c: Likewise.
2676         * ppcobsd-tdep.c: Likewise.
2677         * printcmd.c: Likewise.
2678         * procfs.c: Likewise.
2679         * prologue-value.c: Likewise.
2680         * psymtab.c: Likewise.
2681         * python/py-lazy-string.c: Likewise.
2682         * python/py-value.c: Likewise.
2683         * regcache.c: Likewise.
2684         * reggroups.c: Likewise.
2685         * registry.c: Likewise.
2686         * remote-sim.c: Likewise.
2687         * remote.c: Likewise.
2688         * rs6000-aix-tdep.c: Likewise.
2689         * rs6000-tdep.c: Likewise.
2690         * s390-linux-tdep.c: Likewise.
2691         * score-tdep.c: Likewise.
2692         * ser-base.c: Likewise.
2693         * ser-mingw.c: Likewise.
2694         * sh-tdep.c: Likewise.
2695         * sh64-tdep.c: Likewise.
2696         * solib-darwin.c: Likewise.
2697         * solib-spu.c: Likewise.
2698         * solib-svr4.c: Likewise.
2699         * source.c: Likewise.
2700         * sparc-nat.c: Likewise.
2701         * sparc-sol2-tdep.c: Likewise.
2702         * sparc-tdep.c: Likewise.
2703         * sparc64-sol2-tdep.c: Likewise.
2704         * sparc64-tdep.c: Likewise.
2705         * sparc64fbsd-tdep.c: Likewise.
2706         * sparc64nbsd-tdep.c: Likewise.
2707         * sparc64obsd-tdep.c: Likewise.
2708         * sparcnbsd-tdep.c: Likewise.
2709         * sparcobsd-tdep.c: Likewise.
2710         * spu-multiarch.c: Likewise.
2711         * spu-tdep.c: Likewise.
2712         * stabsread.c: Likewise.
2713         * stack.c: Likewise.
2714         * symfile.c: Likewise.
2715         * symtab.c: Likewise.
2716         * target-descriptions.c: Likewise.
2717         * target-memory.c: Likewise.
2718         * target.c: Likewise.
2719         * tic6x-linux-tdep.c: Likewise.
2720         * tic6x-tdep.c: Likewise.
2721         * tilegx-linux-nat.c: Likewise.
2722         * tilegx-tdep.c: Likewise.
2723         * top.c: Likewise.
2724         * tramp-frame.c: Likewise.
2725         * tui/tui-out.c: Likewise.
2726         * tui/tui-winsource.c: Likewise.
2727         * ui-out.c: Likewise.
2728         * user-regs.c: Likewise.
2729         * utils.c: Likewise.
2730         * v850-tdep.c: Likewise.
2731         * valops.c: Likewise.
2732         * value.c: Likewise.
2733         * varobj.c: Likewise.
2734         * vax-nat.c: Likewise.
2735         * xml-syscall.c: Likewise.
2736         * xml-tdesc.c: Likewise.
2737         * xstormy16-tdep.c: Likewise.
2738         * xtensa-linux-nat.c: Likewise.
2739         * xtensa-tdep.c: Likewise.
2740
2741 2014-08-07  Gary Benson  <gbenson@redhat.com>
2742
2743         * common/common-defs.h: Include common-utils.h.
2744         * defs.h: Do not include common-utils.h.
2745         * common/gdb_assert.h: Likewise.
2746         * darwin-nat.h: Likewise.
2747         * nat/linux-btrace.c: Likewise.
2748         * target/waitstatus.h: Likewise.
2749
2750 2014-08-07  Gary Benson  <gbenson@redhat.com>
2751
2752         * common/common-defs.h: Include ptid.h.
2753         * defs.h: Do not include ptid.h.
2754         * inferior.h: Likewise.
2755         * infrun.h: Likewise.
2756         * nat/linux-btrace.h: Likewise.
2757         * nat/linux-osdata.h: Likewise.
2758         * target/waitstatus.h: Likewise.
2759
2760 2014-08-07  Gary Benson  <gbenson@redhat.com>
2761
2762         * common/common-defs.h: Include gdb_locale.h.
2763         * defs.h: Do not include gdb_locale.h.
2764
2765 2014-08-07  Gary Benson  <gbenson@redhat.com>
2766
2767         * common/common-defs.h: Include gdb/signals.h.
2768         * defs.h: Do not include gdb/signals.h.
2769
2770 2014-08-07  Gary Benson  <gbenson@redhat.com>
2771
2772         * common/common-defs.h: Include pathmax.h.
2773         * defs.h: Do not include pathmax.h.
2774
2775 2014-08-07  Gary Benson  <gbenson@redhat.com>
2776
2777         * common/common-defs.h: Include libiberty.h.
2778         * defs.h: Do not include libiberty.h.
2779         * common/queue.h: Likewise.
2780         * cp-name-parser.y: Likewise.
2781         * mi/mi-cmd-catch.c: Likewise.
2782         * python/python.c: Likewise.
2783
2784 2014-08-07  Gary Benson  <gbenson@redhat.com>
2785
2786         * common/common-defs.h: Include ansidecl.h.
2787         * defs.h: Do not include ansidecl.h.
2788         * common/buffer.h: Likewise.
2789         * common/common-utils.h: Likewise.
2790
2791 2014-08-07  Gary Benson  <gbenson@redhat.com>
2792
2793         * common/common-defs.h: Include stddef.h.
2794         * defs.h: Do not include stddef.h.
2795         * common/common-utils.h: Likewise.
2796         * amd64fbsd-nat.c: Likewise.
2797         * bcache.c: Likewise.
2798         * charset.c: Likewise.
2799         * common/buffer.h: Likewise.
2800         * common/vec.h: Likewise.
2801         * i386bsd-nat.c: Likewise.
2802         * nat/linux-btrace.h: Likewise.
2803         * ppcfbsd-nat.c: Likewise.
2804         * ppcnbsd-tdep.h: Likewise.
2805         * ppcobsd-nat.c: Likewise.
2806         * ppcobsd-tdep.h: Likewise.
2807         * python/py-gdb-readline.c: Likewise.
2808
2809 2014-08-07  Gary Benson  <gbenson@redhat.com>
2810
2811         * common/common-defs.h: Include stdarg.h.
2812         * defs.h: Do not include stdarg.h.
2813         * ada-lang.c: Likewise.
2814         * common/common-utils.h: Likewise.
2815         * guile/scm-string.c: Likewise.
2816         * guile/scm-utils.c: Likewise.
2817         * m32c-tdep.c: Likewise.
2818
2819 2014-08-07  Gary Benson  <gbenson@redhat.com>
2820
2821         * common/common-defs.h: Include stdlib.h.
2822         * defs.h: Do not include stdlib.h.
2823         * addrmap.c: Likewise.
2824         * bcache.c: Likewise.
2825         * common/buffer.c: Likewise.
2826         * common/common-utils.c: Likewise.
2827         * cp-name-parser.y: Likewise.
2828         * go32-nat.c: Likewise.
2829         * mn10300-linux-tdep.c: Likewise.
2830         * nat/linux-osdata.c: Likewise.
2831         * tui/tui.c: Likewise.
2832         * windows-nat.c: Likewise.
2833
2834 2014-08-07  Gary Benson  <gbenson@redhat.com>
2835
2836         * common/common-defs.h: Include stdio.h.
2837         * defs.h: Do not include stdio.h.
2838         * ada-lang.c: Likewise.
2839         * common/buffer.c: Likewise.
2840         * common/common-utils.c: Likewise.
2841         * cp-name-parser.y: Likewise.
2842         * gnu-nat.c: Likewise.
2843         * go32-nat.c: Likewise.
2844         * i386gnu-nat.c: Likewise.
2845         * proc-api.c: Likewise.
2846         * proc-events.c: Likewise.
2847         * proc-flags.c: Likewise.
2848         * proc-why.c: Likewise.
2849         * python/python-internal.h: Likewise.
2850         * target-memory.c: Likewise.
2851         * tui/tui-io.c: Likewise.
2852         * tui/tui.c: Likewise.
2853
2854 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2855
2856         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2857         (scan_dyntag_auxv): Same.
2858
2859 2014-08-06  Yao Qi  <yao@codesourcery.com>
2860
2861         * amd64-linux-nat.c: Remove duplicated include
2862         "x86-linux-nat.h".
2863         * i386-linux-nat.c: Likewise.
2864
2865 2014-08-06  Yao Qi  <yao@codesourcery.com>
2866
2867         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2868         operand" with "Special opcode" in comments.
2869
2870 2014-08-05  Gary Benson  <gbenson@redhat.com>
2871
2872         * interps.c (initialize_interps): Remove prototype.
2873         (interpreter_initialized): Remove static global.
2874         (interp_add): Do not call initialize_interps.
2875         (initialize_interps): Remove function.
2876
2877 2014-08-05  Gary Benson  <gbenson@redhat.com>
2878
2879         * utils.c (vwarning): Remove spurious va_end.
2880
2881 2014-08-05  Alan Modra  <amodra@gmail.com>
2882
2883         * charset.c (convert_between_encodings): Cast result of obstack_base.
2884         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2885         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2886         (read_unwind_info): Use size_t for some locals.
2887         * jit.c (finalize_symtab): Likewise.
2888         * utils.c (hashtab_obstack_allocate): Likewise.
2889         * symmisc.c (print_objfile_statistics): Update format strings.
2890
2891 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2892
2893         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2894         (Changes in GDB 7.8): ... here.
2895
2896 2014-08-04  Tom Tromey  <tromey@redhat.com>
2897
2898         * target.c (set_targetdebug): New function.
2899         (initialize_targets): Pass set_targetdebug when creating "set
2900         debug target".
2901
2902 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2903
2904         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2905         if detecting a variable-sized field that is not the last field.
2906         Fix struct type length computation.
2907
2908 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2909
2910         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2911         Add debug trace.
2912
2913 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2914
2915         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2916         Remove "+ 8" offset in computation of CHAIN_VMA.
2917
2918 2014-07-31  Doug Evans  <dje@google.com>
2919
2920         * inflow.c (child_terminal_inferior): Add comment.
2921         (child_terminal_ours_for_output): Add comment.
2922         (child_terminal_ours): Add comment.
2923         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2924         (linux_nat_terminal_ours): Add comment.
2925
2926 2014-07-31  Gary Benson  <gbenson@redhat.com>
2927
2928         * common/btrace-common.h: Do not include defs.h or server.h.
2929         * nat/mips-linux-watch.h: Likewise.
2930         * gdb-dlfcn.h: Do not include defs.h.
2931         * tracefile.h: Likewise.
2932
2933 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2934
2935         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2936
2937 2014-07-30  Tom Tromey  <tromey@redhat.com>
2938
2939         * bsd-kvm.c (bsd_kvm_open): Constify.
2940         * corelow.c (core_open): Constify.
2941         * ctf.c (ctf_open): Constify.
2942         * dbug-rom.c (dbug_open): Constify.
2943         * exec.c (exec_open): Constify.
2944         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2945         * microblaze-rom.c (picobug_open): Constify.
2946         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2947         Constify.
2948         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2949         * record-btrace.c (record_btrace_open): Constify.
2950         * record-full.c (record_full_core_open_1, record_full_open_1)
2951         (record_full_open): Constify.
2952         * remote-m32r-sdi.c (m32r_open): Constify.
2953         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2954         (rockhopper_open, lsi_open): Constify.
2955         * remote-sim.c (gdbsim_open): Constify.
2956         * remote.c (remote_open, extended_remote_open, remote_open_1):
2957         Constify.
2958         * target.h (struct target_ops) <to_open>: Make "arg" const.
2959         * tracefile-tfile.c (tfile_open): Constify.
2960
2961 2014-07-30  Tom Tromey  <tromey@redhat.com>
2962
2963         * breakpoint.c (map_breakpoint_numbers): Update.
2964         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2965         (get_number_const): New function.
2966         (get_number): Rewrite using get_number_const.
2967         (init_number_or_range): Make "string" const.
2968         (number_is_in_list): Make "list" const.
2969         * cli/cli-utils.h (get_number_const): Declare.
2970         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2971         (init_number_or_range, number_is_in_list): Update.
2972         * printcmd.c (map_display_numbers): Update.
2973         * value.c (value_from_history_ref): Constify.
2974         * value.h (value_from_history_ref): Update.
2975
2976 2014-07-30  Tom Tromey  <tromey@redhat.com>
2977
2978         * corefile.c (hook_type, call_extra_exec_file_hooks)
2979         (specify_exec_file_hook): Constify.
2980         * exec.c (exec_file_attach): Make "filename" const.
2981         * gdbcore.h (deprecated_exec_file_display_hook)
2982         (specify_exec_file_hook, exec_file_attach): Constify.
2983         * main.c (captured_main): Use catch_command_errors_const.
2984
2985 2014-07-30  Tom Tromey  <tromey@redhat.com>
2986
2987         * target.c (open_target): New function.
2988         (add_target_with_completer, add_deprecated_target_alias): Use
2989         set_cmd_sfunc, set_cmd_context.
2990         (debug_to_open): Remove.
2991         (setup_target_debug): Update.
2992
2993 2014-07-30  Yao Qi  <yao@codesourcery.com>
2994
2995         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2996         comments.
2997         * parse.c (exp_iterate): Update comments.
2998
2999 2014-07-30  Gary Benson  <gbenson@redhat.com>
3000
3001         * common/common-defs.h: New file.
3002         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3003         * defs.h: Include common-defs.h.
3004         Do not include config.h or build-gnulib/config.h.
3005
3006 2014-07-30  Gary Benson  <gbenson@redhat.com>
3007
3008         * common/common-utils.h: Do not include config.h.
3009         * nat/linux-btrace.h: Likewise.
3010
3011 2014-07-30  Gary Benson  <gbenson@redhat.com>
3012
3013         * btrace.c: Include defs.h.
3014         * common/ptid.c: Include defs.h or server.h as appropriate.
3015         * nat/mips-linux-watch.c: Likewise.
3016
3017 2014-07-29  Tom Tromey  <tromey@redhat.com>
3018
3019         * target.c (target_is_pushed): Simplify.
3020
3021 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3022
3023         GDB 7.8 released.
3024
3025 2014-07-29  Yao Qi  <yao@codesourcery.com>
3026
3027         PR gdb/17206
3028         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3029
3030 2014-07-28  Doug Evans  <xdje42@gmail.com>
3031
3032         PR guile/17203
3033         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3034         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3035         parameters.
3036
3037 2014-07-28  Will Newton  <will.newton@linaro.org>
3038
3039         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3040         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3041         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3042         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3043         (THUMB2_EABI_SYSCALL): Likewise.
3044         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3045         struct tramp_frame.
3046         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3047         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3048
3049 2014-07-27  Doug Evans  <xdje42@gmail.com>
3050
3051         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3052
3053 2014-07-27  Doug Evans  <xdje42@gmail.com>
3054
3055         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3056
3057 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3058             Doug Evans  <xdje42@gmail.com>
3059
3060         PR guile/17146
3061         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3062         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3063         * configure.ac: Try to use guild to compile an scm file, if it fails
3064         then disable guile support.
3065         * configure: Regenerate.
3066         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3067         GUILE_FILE_LIST.
3068         (GUILE_COMPILED_FILES): New variable.
3069         (GUILE_FILES) Update.
3070         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3071         (stamp-guile): Compile scm files.
3072         * guile/guile.c (boot_guile_support): New function.
3073         (standard_throw_args_p): New function.
3074         (print_standard_throw_error, print_throw_error): New functions.
3075         (handle_boot_error): New function.
3076         (initialize_scheme_side): Rewrite to call boot_guile_support.
3077         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3078         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3079
3080 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3081             Doug Evans  <xdje42@gmail.com>
3082
3083         PR guile/17146
3084         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3085         * guile/lib/gdb/support.scm: New file.
3086         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3087         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3088         All uses updated.
3089         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3090         All uses updated.
3091         (%assert-type): Ditto, and renamed to assert-type.
3092         (%exception-print-style): Delete.
3093
3094 2014-07-26  Doug Evans  <xdje42@gmail.com>
3095
3096         PR build/17105
3097         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3098         * configure: Regenerate.
3099         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3100         PYTHON_FILES.
3101         (PYTHON_FILES): New variable.
3102         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3103         (GUILE_FILES): New variable.
3104         (stamp-python, install-python, uninstall-python): Handle empty
3105         file list.
3106         (stamp-guile, install-guile, uninstall-guile): Ditto.
3107
3108 2014-07-26  Doug Evans  <xdje42@gmail.com>
3109
3110         PR guile/17177
3111         * guile/lib/gdb.scm (pretty-printers): Export.
3112         (set-pretty-printers!): Export.
3113         * guile/lib/gdb/printing.scm (gdb module): Update.
3114         (prepend-pretty-printer!, append-pretty-printer!): Update.
3115         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3116         (pretty_printer_list_var): Delete.
3117         (pretty_printer_list): New static global.
3118         (gdbscm_pretty_printers): New function.
3119         (gdbscm_set_pretty_printers_x): New function.
3120         (ppscm_find_pretty_printer_from_gdb): Update.
3121         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3122         (gdbscm_initialize_pretty_printers): Update.
3123
3124 2014-07-26  Doug Evans  <xdje42@gmail.com>
3125
3126         PR 17185
3127         * configure.ac: Add check for header gc/gc.h.
3128         Add check for function setenv.
3129         * configure: Regenerate.
3130         * config.in: Regenerate.
3131         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3132
3133 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3134
3135         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3136         variation in gdbarch matching.
3137
3138 2014-07-25  Tom Tromey  <tromey@redhat.com>
3139
3140         * exec.c (using_exec_ops): Remove.
3141         (exec_close_1): Update.  Remove extraneous block, reindent.
3142         (add_target_sections): Use target_is_pushed.
3143
3144 2014-07-25  Pedro Alves  <palves@redhat.com>
3145
3146         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3147         * monitor.c (monitor_create_inferior): Likewise.
3148         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3149         * remote-sim.c (gdbsim_create_inferior): Likewise.
3150         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3151         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3152         * windows-nat.c (do_initial_windows_stuff): Likewise.
3153
3154 2014-07-25  Pedro Alves  <palves@redhat.com>
3155
3156         * NEWS: Mention signal passing and "signal" command changes.
3157         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3158         comment.
3159         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3160         call.
3161         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3162         * infcmd.c (proceed_thread_callback, continue_1, step_once)
3163         (jump_command): Adjust clear_proceed_status call.
3164         (signal_command): Warn if other thread that are resumed have
3165         signals that will be delivered.  Adjust clear_proceed_status call.
3166         (until_next_command, finish_command)
3167         (proceed_after_attach_callback, attach_command_post_wait)
3168         (attach_command): Adjust clear_proceed_status call.
3169         * infrun.c (proceed_after_vfork_done): Likewise.
3170         (proceed_after_attach_callback): Adjust comment.
3171         (clear_proceed_status_thread): Clear stop_signal if not in pass
3172         state.
3173         (clear_proceed_status_callback): Delete.
3174         (clear_proceed_status): New 'step' parameter.  Only clear the
3175         proceed status of threads the command being prepared is about to
3176         resume.
3177         (proceed): If passed in an explicit signal, override stop_signal
3178         with it.  Don't pass the last stop signal to the thread we're
3179         resuming.
3180         (init_wait_for_inferior): Adjust clear_proceed_status call.
3181         (switch_back_to_stepped_thread): Clear the signal if it should not
3182         be passed.
3183         * infrun.h (clear_proceed_status): New 'step' parameter.
3184         (user_visible_resume_ptid): Add comment.
3185         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3186         signal is in pass state.
3187         * remote.c (append_pending_thread_resumptions): Likewise.
3188         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3189
3190 2014-07-25  Tom Tromey  <tromey@redhat.com>
3191
3192         * target.h (target_stopped_data_address)
3193         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
3194         parentheses.
3195
3196 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
3197
3198         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3199         comments.
3200         (avr_pointer_to_address): Likewise.
3201
3202 2014-07-24  Tom Tromey  <tromey@redhat.com>
3203
3204         * monitor.c (compile_pattern): Update.
3205         * target.h (struct target_ops) <to_shortname, to_longname,
3206         to_doc>: Now const.
3207
3208 2014-07-24  Tom Tromey  <tromey@redhat.com>
3209
3210         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3211         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3212         (add_info_alias, add_com): Make "doc" const.
3213         (print_doc_line): Make "str" const.
3214         (delete_cmd): Update.
3215         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3216         (print_doc_line): Update.
3217         * cli/cli-script.c (document_command): Update.
3218         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3219         (add_com, add_info, add_info_alias): Update.
3220         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3221         * python/py-cmd.c (cmdpy_destroyer): Update.
3222
3223 2014-07-24  Tom Tromey  <tromey@redhat.com>
3224
3225         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3226         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3227         (help_cmd_list): Constify.
3228         (lookup_cmd): Update.
3229         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3230         const.
3231         (help_cmd_list, apropos_cmd): Update.
3232         * cli/cli-script.c (show_user): Update.
3233         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3234         * cli/cli-setshow.h (cmd_show_list): Update.
3235         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3236         (cmd_show_list): Update.
3237         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3238         * python/py-cmd.c (cmdpy_destroyer): Update.
3239
3240 2014-07-24  Tom Tromey  <tromey@redhat.com>
3241
3242         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3243         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3244         const.
3245         * command.h (deprecate_cmd): Update.
3246         * maint.c (maintenance_do_deprecate): Add casts.
3247
3248 2014-07-24  Tom Tromey  <tromey@redhat.com>
3249
3250         * cli/cli-decode.c (help_cmd): Make parameter "const".
3251         * cli/cli-decode.h (help_cmd): Update.
3252
3253 2014-07-24  Tom Tromey  <tromey@redhat.com>
3254
3255         * stack.c (up_silently_base, down_silently_base): Make argument
3256         const.
3257
3258 2014-07-24  Tom Tromey  <tromey@redhat.com>
3259
3260         * solib.c (solib_add): Make "pattern" const.
3261         * solib.h (solib_add): Update.
3262
3263 2014-07-24  Tom Tromey  <tromey@redhat.com>
3264
3265         * remote.c (remote_serial_open, print_packet, putpkt)
3266         (putpkt_binary): Constify.
3267         * remote.h (putpkt): Update.
3268
3269 2014-07-24  Tom Tromey  <tromey@redhat.com>
3270
3271         * monitor.c (monitor_open): Make "args" const.
3272         * monitor.h (monitor_open): Update.
3273
3274 2014-07-24  Tom Tromey  <tromey@redhat.com>
3275
3276         * maint.c (match_bfd_flags): Make "string" const.
3277         (print_bfd_section_info): Remove casts.
3278         (print_objfile_section_info): Make "string" const.
3279
3280 2014-07-24  Tom Tromey  <tromey@redhat.com>
3281
3282         * inf-child.c (inf_child_open_target): Make "arg" const.
3283         * inf-child.h (inf_child_open_target): Update.
3284
3285 2014-07-24  Tom Tromey  <tromey@redhat.com>
3286
3287         * environ.c (unset_in_environ): Make "var" const.
3288         * environ.h (unset_in_environ): Update.
3289
3290 2014-07-24  Tom Tromey  <tromey@redhat.com>
3291
3292         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3293         Make "cmd" const.
3294         (scan_filename_with_cleanup): Likewise.
3295         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3296         Make arguments const.
3297         (restore_command): Update.
3298
3299 2014-07-24  Pedro Alves  <palves@redhat.com>
3300
3301         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3302
3303 2014-07-24  Tom Tromey  <tromey@redhat.com>
3304             Gary Benson  <gbenson@redhat.com>
3305
3306         * nat/linux-ptrace.c (additional_flags): New global.
3307         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3308         additional_flags; don't check GDBSERVER.
3309         (linux_ptrace_set_additional_flags): New function.
3310         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3311         Declare.
3312         * linux-nat.c (_initialize_linux_nat): Call
3313         linux_ptrace_set_additional_flags.
3314
3315 2014-07-24  Tom Tromey  <tromey@redhat.com>
3316
3317         * make-target-delegates (munge_type, write_debugmethod): New
3318         functions.
3319         (debug_names): New global.
3320         ($TARGET_DEBUG_PRINTER): New global.
3321         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3322         name.
3323         Write debug methods.  Generate init_debug_target.
3324         * target-debug.h: New file.
3325         * target-delegates.c: Rebuild.
3326         * target.c: Include target-debug.h.
3327         (debug_target): Hoist definition.
3328         (target_kill, target_get_section_table, target_memory_map)
3329         (target_flash_erase, target_flash_done, target_detach)
3330         (target_disconnect, target_wait, target_resume)
3331         (target_pass_signals, target_program_signals, target_follow_fork)
3332         (target_mourn_inferior, target_search_memory)
3333         (target_thread_address_space, target_close)
3334         (target_find_new_threads, target_core_of_thread)
3335         (target_verify_memory, target_insert_mask_watchpoint)
3336         (target_remove_mask_watchpoint): Remove targetdebug code.
3337         (debug_to_post_attach, debug_to_prepare_to_store)
3338         (debug_to_files_info, debug_to_insert_breakpoint)
3339         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3340         (debug_to_region_ok_for_hw_watchpoint)
3341         (debug_to_can_accel_watchpoint_condition)
3342         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3343         (debug_to_watchpoint_addr_within_range)
3344         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3345         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3346         (debug_to_terminal_init, debug_to_terminal_inferior)
3347         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3348         (debug_to_terminal_save_ours, debug_to_terminal_info)
3349         (debug_to_load, debug_to_post_startup_inferior)
3350         (debug_to_insert_fork_catchpoint)
3351         (debug_to_remove_fork_catchpoint)
3352         (debug_to_insert_vfork_catchpoint)
3353         (debug_to_remove_vfork_catchpoint)
3354         (debug_to_insert_exec_catchpoint)
3355         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3356         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3357         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3358         (setup_target_debug): Call init_debug_target.
3359         * target.h (TARGET_DEBUG_PRINTER): New macro.
3360         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3361         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3362
3363 2014-07-24  Gary Benson  <gbenson@redhat.com>
3364
3365         * exceptions.h (throw_vfatal): Renamed to...
3366         (throw_vquit): New declaration.
3367         (throw_quit): Likewise.
3368         * exceptions.c (throw_vfatal): Renamed to...
3369         (throw_vquit): New function.
3370         (throw_quit): Likewise.
3371         (throw_error): Call throw_verror rather than throw_it.
3372         * utils.h (vfatal): Removed.
3373         (fatal): Likewise.
3374         * utils.c (vfatal): Removed.
3375         (fatal): Likewise.
3376         (internal_verror): Replaced call to fatal with call to throw_quit.
3377         (quit): Replaced calls to fatal with calls to throw_quit.
3378
3379 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3380
3381         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3382         target_read_code.
3383
3384 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3385
3386         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3387         less than zero in conditional expression.
3388
3389 2014-07-23  Tom Tromey  <tromey@redhat.com>
3390
3391         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3392         ($INTRO_PART): Don't match whitespace.
3393         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3394         argument matching.
3395         ($METHOD): Add $METHOD_TRAILER.
3396         (trim): Rewrite.
3397         (scan_target_h): New sub.
3398         Change main loop not to collect state.
3399         * target-delegates.c: Rebuild.
3400
3401 2014-07-23  Gary Benson  <gbenson@redhat.com>
3402
3403         * cp-support.c (gdb_demangle): Fix build on systems without
3404         sigaltstack.
3405
3406 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3407
3408         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3409         for reference entry value target data value.
3410
3411 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3412
3413         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3414         value_available_contents_eq.
3415
3416 2014-07-22  Pedro Alves  <palves@redhat.com>
3417
3418         * value.c (allocate_optimized_out_value): Don't mark value as
3419         non-lazy.
3420
3421 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3422
3423         * MAINTAINERS (Write After Approval): Update my email address.
3424
3425 2014-07-20  Doug Evans  <dje@google.com>
3426
3427         PR server/17147
3428         * remote.c (putpkt_binary): Add text to error message.
3429
3430 2014-07-20  Yao Qi  <yao@codesourcery.com>
3431
3432         * eval.c: Remove "Chill" from comments.
3433         * gdbtypes.h: Likewise.
3434         * symtab.h: Likewise.
3435
3436 2014-07-20  Yao Qi  <yao@codesourcery.com>
3437
3438         * std-operator.def: Update comments to TERNOP_SLICE.
3439
3440 2014-07-20  Yao Qi  <yao@codesourcery.com>
3441
3442         * std-operator.def: Remove BINOP_RANGE.
3443         * breakpoint.c (watchpoint_exp_is_const): Update.
3444         * expprint.c (dump_subexp_body_standard): Likewise.
3445         * eval.c (init_array_element): Remove dead code.
3446         (evaluate_subexp_standard): Likewise.
3447
3448 2014-07-20  Yao Qi  <yao@codesourcery.com>
3449
3450         * std-operator.def: Remove BINOP_IN.
3451         * breakpoint.c (watchpoint_exp_is_const): Update.
3452         * eval.c (evaluate_subexp_standard): Likewise.
3453         * expprint.c (dump_subexp_body_standard): Likewise.
3454
3455 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3456
3457         * microblaze-tdep.c (microblaze_register_names): Add
3458         the rshr and rslr register names.
3459         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3460         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3461         Use of tdesc_numbered_register. Use of
3462         microblaze_register_g_packet_guesses. Use of
3463         tdesc_use_registers. Use of set_gdbarch_register_type.
3464         (microblaze_register_g_packet_guesses): New.
3465         * microblaze-tdep.h (microblaze_reg_num): Add
3466         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3467         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3468         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3469         * features/microblaze-core.xml: New file.
3470         * features/microblaze-stack-protect.xml: New file.
3471         * features/microblaze-with-stack-protect.c: New file.
3472         * features/microblaze-with-stack-protect.xml: New file.
3473         * features/microblaze.xml: New file.
3474         * features/microblaze.c: New file.
3475         * features/Makefile (microblaze-with-stack-protect): Add
3476         microblaze-with-stack-protect microblaze and microblaze-expedite.
3477         * regformats/microblaze-with-stack-protect.dat: New file.
3478         * regformats/microblaze.dat: New file.
3479         * doc/gdb.texinfo (MicroBlaze Features): Added.
3480
3481 2014-07-18  Tom Tromey  <tromey@redhat.com>
3482
3483         * exec.c (exec_ops): Now static.
3484         * exec.h (exec_ops): Don't declare.
3485
3486 2014-07-18  Tom Tromey  <tromey@redhat.com>
3487
3488         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3489         to find_target_beneath.
3490         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3491         find_target_beneath.
3492         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3493
3494 2014-07-18  Tom Tromey  <tromey@redhat.com>
3495
3496         PR gdb/17130:
3497         * utils.c (quit): Use target_supports_terminal_ours.
3498         * target.h (target_supports_terminal_ours): Declare.
3499         * target.c (target_supports_delete_record): Don't check
3500         to_delete_record against NULL.
3501         (target_supports_terminal_ours): New function.
3502
3503 2014-07-18  Tom Tromey  <tromey@redhat.com>
3504
3505         PR gdb/17130:
3506         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3507         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3508         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3509         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3510         * windows-nat.c (windows_xfer_partial): Always delegate.
3511         * record-btrace.c (record_btrace_xfer_partial): Simplify
3512         delegation.
3513         (record_btrace_fetch_registers, record_btrace_store_registers)
3514         (record_btrace_prepare_to_store, record_btrace_resume)
3515         (record_btrace_wait, record_btrace_find_new_threads)
3516         (record_btrace_thread_alive): Likewise.
3517         * procfs.c (procfs_xfer_partial): Always delegate.
3518         * corelow.c (core_xfer_partial): Always delegate.
3519         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3520
3521 2014-07-18  Tom Tromey  <tromey@redhat.com>
3522
3523         * exec.c (exec_make_note_section): Move earlier.
3524
3525 2014-07-17  Doug Evans  <dje@google.com>
3526
3527         PR gdb/17170
3528         * maint.c (count_symtabs_and_blocks): Handle NULL
3529         current_program_space.
3530         (report_command_stats): Check global enabled flag in addition to
3531         recorded enabled flag.
3532         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3533
3534 2014-07-16  Pedro Alves  <palves@redhat.com>
3535
3536         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3537
3538 2014-07-16  Tom Tromey  <tromey@redhat.com>
3539
3540         * target.h (struct target_ops) <to_delete_record>: Reformat
3541         comment.
3542
3543 2014-07-16  Tom Tromey  <tromey@redhat.com>
3544
3545         * target-delegates.c: Rebuild.
3546
3547 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3548
3549         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3550         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3551         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3552         (avr_pointer_to_address): Likewise.
3553         (avr_address_class_type_flags): New function.
3554         (avr_address_class_type_flags_to_name): Likewise.
3555         (avr_address_class_name_to_type_flags): Likewise.
3556         (avr_gdbarch_init): Set address_class_type_flags,
3557         address_class_type_flags_to_name and
3558         address_class_name_to_type_flags.
3559
3560 2014-07-15  Pedro Alves  <palves@redhat.com>
3561
3562         * linux-nat.c (kill_callback): Save errno and work with saved
3563         copy.
3564
3565 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3566
3567         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3568
3569 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3570
3571         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3572         breakpoint support correctly.
3573
3574 2014-07-14  Pedro Alves  <palves@redhat.com>
3575
3576         * utils.c (prompt_for_continue): Call target_terminal_ours.
3577
3578 2014-07-14  Pedro Alves  <palves@redhat.com>
3579
3580         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3581         catch_errors.  Don't re-enable stdin or notify observers where,
3582         and rethrow error.
3583         (fetch_inferior_event_wrapper): Delete.
3584
3585 2014-07-14  Pedro Alves  <palves@redhat.com>
3586
3587         PR gdb/17072
3588         * top.c: Include "inf-loop.h".
3589         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3590         field.
3591         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3592         was async before.
3593         (gdb_readline_wrapper): Store whether the target is async, and
3594         make it sync.
3595
3596 2014-07-14  Pedro Alves  <palves@redhat.com>
3597
3598         PR gdb/17072
3599         * top.c (gdb_readline_wrapper_line): Tweak comment.
3600         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3601         the input handler callback.
3602
3603 2014-07-14  Pedro Alves  <palves@redhat.com>
3604
3605         PR gdb/17072
3606         * main.c: Include event-top.h.
3607         (handle_command_errors): New function.
3608         (catch_command_errors, catch_command_errors_const): Use it.
3609
3610 2014-07-14  Pedro Alves  <palves@redhat.com>
3611
3612         * exceptions.c (catch_command_errors, catch_command_errors_const):
3613         Moved to main.c.
3614         * exceptions.h (catch_command_errors_ftype)
3615         (catch_command_errors_const_ftype): Moved to main.c.
3616         (catch_command_errors, catch_command_errors_const): Delete
3617         declarations.
3618         * main.c (catch_command_errors_ftype)
3619         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3620         (catch_command_errors, catch_command_errors_const)): Moved here
3621         from exceptions.c and make static.
3622
3623 2014-07-14  Pedro Alves  <palves@redhat.com>
3624
3625         * exceptions.c (print_any_exception): Delete.
3626         (catch_exceptions_with_msg): Use exception_print instead of
3627         print_any_exception.
3628         (catch_errors): Use exception_fprintf instead of
3629         print_any_exception.
3630         (catch_command_errors, catch_command_errors_const): Use
3631         exception_print instead of print_any_exception.
3632
3633 2014-07-14  Pedro Alves  <palves@redhat.com>
3634
3635         * infcall.c (run_inferior_call): Set 'sync_execution' while
3636         running the inferior call.
3637
3638 2014-07-14  Pedro Alves  <palves@redhat.com>
3639
3640         * value.c (value_contents_equal): Delete function.
3641         * value.h (value_contents_equal): Delete declaration.
3642
3643 2014-07-14  Tom Tromey  <tromey@redhat.com>
3644
3645         PR exp/17106:
3646         * gdbtypes.c (is_dynamic_type_internal): New function, from
3647         is_dynamic_type.
3648         (is_dynamic_type): Rewrite.
3649         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3650         (resolve_dynamic_struct): Likewise.
3651         (resolve_dynamic_type_internal): New function, from
3652         resolve_dynamic_type.
3653         (resolve_dynamic_type): Rewrite.
3654
3655 2014-07-14  Tom Tromey  <tromey@redhat.com>
3656
3657         * target.c (target_require_runnable): Also check record_stratum.
3658         Update comment.
3659
3660 2014-07-11  Yao Qi  <yao@codesourcery.com>
3661
3662         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3663         thumb_instruction_restores_sp return true.
3664
3665 2014-07-11  Yao Qi  <yao@codesourcery.com>
3666
3667         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3668         (thumb_in_function_epilogue_p): Call
3669         thumb_instruction_restores_sp.
3670
3671 2014-07-11  Yao Qi  <yao@codesourcery.com>
3672
3673         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3674         'add sp, #imm'.
3675         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3676
3677 2014-07-11  Gary Benson  <gbenson@redhat.com>
3678
3679         * amd64-linux-nat.c (gdbcore.h): Remove include.
3680         (regset.h): Likewise.
3681         (nat/linux-btrace.h): Likewise.
3682         (btrace.h): Likewise.
3683         (gdb_assert.h): Likewise.
3684         (string.h): Likewise.
3685         (sys/uio.h): Likewise.
3686         (sys/debugreg.h): Likewise.
3687         (sys/syscall.h): Likewise.
3688         (sys/procfs.h): Likewise.
3689         (sys/user.h): Likewise.
3690         (asm/ptrace.h): Likewise.
3691         (i386-nat.h): Likewise.
3692         * i386-linux-nat.c (i386-nat.h): Likewise.
3693         (regset.h): Likewise.
3694         (target.h): Likewise.
3695         (linux-nat.h): Likewise.
3696         (nat/linux-btrace.h): Likewise.
3697         (btrace.h): Likewise.
3698         (gdb_assert.h): Likewise.
3699         (string.h): Likewise.
3700         (sys/uio.h): Likewise.
3701         (sys/user.h): Likewise.
3702         (sys/procfs.h): Likewise.
3703         (sys/reg.h): Likewise.
3704         (sys/debugreg.h): Likewise.
3705         (ORIG_EAX): Remove definition.
3706
3707 2014-07-11  Gary Benson  <gbenson@redhat.com>
3708
3709         * i386-linux-nat.h: New file.
3710         * x86-linux-nat.h: Likewise.
3711         * x86-linux-nat.c: Likewise.
3712         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3713         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3714         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3715         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3716         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3717         (PTRACE_SETREGSET): Likewise.
3718         (arch_lwp_info): Now in x86-linux-nat.c.
3719         (have_ptrace_getregset): Now in x86-linux-nat.h.
3720         (x86_linux_dr_get): Now in x86-linux-nat.c.
3721         (x86_linux_dr_set): Likewise.
3722         (x86_linux_dr_get_addr): Likewise.
3723         (x86_linux_dr_get_control): Likewise.
3724         (x86_linux_dr_get_status): Likewise.
3725         (update_debug_registers_callback): Likewise.
3726         (x86_linux_dr_set_control): Likewise.
3727         (x86_linux_dr_set_addr): Likewise.
3728         (x86_linux_prepare_to_resume): Likewise.
3729         (x86_linux_new_thread): Likewise.
3730         (x86_linux_new_fork): Likewise.
3731         (x86_linux_get_thread_area): Likewise.
3732         (super_post_startup_inferior): Likewise.
3733         (x86_linux_child_post_startup_inferior): Likewise.
3734         (AMD64_LINUX_USER64_CS): Likewise.
3735         (AMD64_LINUX_X32_DS): Likewise.
3736         (x86_linux_read_description): Likewise.
3737         (x86_linux_enable_btrace): Likewise.
3738         (x86_linux_disable_btrace): Likewise.
3739         (x86_linux_teardown_btrace): Likewise.
3740         (x86_linux_read_btrace): Likewise.
3741         (x86_linux_create_target): Likewise.
3742         (x86_linux_add_target): Likewise.
3743         * i386-linux-nat.c (x86-linux-nat.h): New include.
3744         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3745         (PTRACE_SETREGSET): Likewise.
3746         (arch_lwp_info): Now in x86-linux-nat.c.
3747         (have_ptrace_getregset): Now in x86-linux-nat.h.
3748         (x86_linux_dr_get): Now in x86-linux-nat.c.
3749         (x86_linux_dr_set): Likewise.
3750         (x86_linux_dr_get_addr): Likewise.
3751         (x86_linux_dr_get_control): Likewise.
3752         (x86_linux_dr_get_status): Likewise.
3753         (update_debug_registers_callback): Likewise.
3754         (x86_linux_dr_set_control): Likewise.
3755         (x86_linux_dr_set_addr): Likewise.
3756         (x86_linux_prepare_to_resume): Likewise.
3757         (x86_linux_new_thread): Likewise.
3758         (x86_linux_new_fork): Likewise.
3759         (x86_linux_get_thread_area): Likewise.
3760         (super_post_startup_inferior): Likewise.
3761         (x86_linux_child_post_startup_inferior): Likewise.
3762         (AMD64_LINUX_USER64_CS): Likewise.
3763         (AMD64_LINUX_X32_DS): Likewise.
3764         (x86_linux_read_description): Likewise.
3765         (x86_linux_enable_btrace): Likewise.
3766         (x86_linux_disable_btrace): Likewise.
3767         (x86_linux_teardown_btrace): Likewise.
3768         (x86_linux_read_btrace): Likewise.
3769         (x86_linux_create_target): Likewise.
3770         (x86_linux_add_target): Likewise.
3771
3772 2014-07-11  Gary Benson  <gbenson@redhat.com>
3773
3774         * amd64-linux-nat.c: Comment and whitespace changes.
3775         * i386-linux-nat.c: Comment and whitespace changes.
3776
3777 2014-07-11  Gary Benson  <gbenson@redhat.com>
3778
3779         * amd64-linux-nat.c (x86_linux_create_target): New function.
3780         (x86_linux_add_target): Likewise.
3781         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3782         * i386-linux-nat.c (x86_linux_create_target): New function.
3783         (x86_linux_add_target): Likewise.
3784         (_initialize_i386_linux_nat): Delegate to the above new functions.
3785
3786 2014-07-11  Gary Benson  <gbenson@redhat.com>
3787
3788         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3789         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3790         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3791         (ps_get_thread_area): Delegate to the above.
3792
3793 2014-07-11  Gary Benson  <gbenson@redhat.com>
3794
3795         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3796         x86_linux_read_description.  All uses updated.  amd64-specific
3797         code conditionalized.  Conditionalized i386-specific code added.
3798         Redundant cast removed.
3799         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3800         x86_linux_read_description.  All uses updated.  i386-specific
3801         code conditionalized.  Conditionalized amd64-specific code added.
3802         One sizeof replaced with the actual type it is describing.
3803
3804 2014-07-11  Gary Benson  <gbenson@redhat.com>
3805
3806         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3807         x86_linux_dr_get.  All uses updated.
3808         (amd64_linux_dr_set): Renamed to
3809         x86_linux_dr_set.  All uses updated.
3810         (amd64_linux_dr_get_addr): Renamed to
3811         x86_linux_dr_get_addr.  All uses updated.
3812         (amd64_linux_dr_get_control): Renamed to
3813         x86_linux_dr_get_control.  All uses updated.
3814         (amd64_linux_dr_get_status): Renamed to
3815         x86_linux_dr_get_status.  All uses updated.
3816         (amd64_linux_dr_set_control): Renamed to
3817         x86_linux_dr_set_control.  All uses updated.
3818         (amd64_linux_dr_set_addr): Renamed to
3819         x86_linux_dr_set_addr.  All uses updated.
3820         (amd64_linux_prepare_to_resume): Renamed to
3821         x86_linux_prepare_to_resume.  All uses updated.
3822         (amd64_linux_new_thread): Renamed to
3823         x86_linux_new_thread.  All uses updated.
3824         (amd64_linux_new_fork): Renamed to
3825         x86_linux_new_fork.  All uses updated.
3826         (amd64_linux_child_post_startup_inferior): Renamed to
3827         x86_linux_child_post_startup_inferior.  All uses updated.
3828         (amd64_linux_enable_btrace): Renamed to
3829         x86_linux_enable_btrace.  All uses updated.
3830         (amd64_linux_disable_btrace): Renamed to
3831         x86_linux_disable_btrace.  All uses updated.
3832         (amd64_linux_teardown_btrace): Renamed to
3833         x86_linux_teardown_btrace.  All uses updated.
3834         (amd64_linux_read_btrace): Renamed to
3835         x86_linux_read_btrace.  All uses updated.
3836         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3837         x86_linux_dr_get.  All uses updated.
3838         (i386_linux_dr_set): Renamed to
3839         x86_linux_dr_set.  All uses updated.
3840         (i386_linux_dr_get_addr): Renamed to
3841         x86_linux_dr_get_addr.  All uses updated.
3842         (i386_linux_dr_get_control): Renamed to
3843         x86_linux_dr_get_control.  All uses updated.
3844         (i386_linux_dr_get_status): Renamed to
3845         x86_linux_dr_get_status.  All uses updated.
3846         (i386_linux_dr_set_control): Renamed to
3847         x86_linux_dr_set_control.  All uses updated.
3848         (i386_linux_dr_set_addr): Renamed to
3849         x86_linux_dr_set_addr.  All uses updated.
3850         (i386_linux_prepare_to_resume): Renamed to
3851         x86_linux_prepare_to_resume.  All uses updated.
3852         (i386_linux_new_thread): Renamed to
3853         x86_linux_new_thread.  All uses updated.
3854         (i386_linux_new_fork): Renamed to
3855         x86_linux_new_fork.  All uses updated.
3856         (i386_linux_child_post_startup_inferior): Renamed to
3857         x86_linux_child_post_startup_inferior.  All uses updated.
3858         (i386_linux_enable_btrace): Renamed to
3859         x86_linux_enable_btrace.  All uses updated.
3860         (i386_linux_disable_btrace): Renamed to
3861         x86_linux_disable_btrace.  All uses updated.
3862         (i386_linux_teardown_btrace): Renamed to
3863         x86_linux_teardown_btrace.  All uses updated.
3864         (i386_linux_read_btrace): Renamed to
3865         x86_linux_read_btrace.  All uses updated.
3866
3867 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3868
3869         * remote.c (extended_remote_post_attach): New function.
3870         (init_extended_remote_ops): Install it as to_post_attach method.
3871
3872 2014-07-09  Pedro Alves  <palves@redhat.com>
3873
3874         * infcmd.c (attach_command_post_wait): Don't call
3875         target_terminal_inferior here.
3876         (attach_command): Call it here instead.
3877
3878 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3879
3880         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3881         field.
3882         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3883         from varobj.c, with additional checks.
3884         (c_varobj_ops): Fill in is_path_expr_parent field.
3885         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3886         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3887         field.
3888         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3889         ops method.
3890         (varobj_default_is_path_expr_parent): New function.
3891         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3892         (varobj_default_is_path_expr_parent): Declare new function.
3893
3894 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3895
3896         * infcmd.c (finish_backward): Turn internal error into normal error.
3897
3898 2014-07-07  Pedro Alves  <palves@redhat.com>
3899
3900         PR gdb/17096
3901         * remote.c (async_handle_remote_sigint)
3902         (async_handle_remote_sigint_twice): Call
3903         gdb_call_async_signal_handler instead of
3904         mark_async_signal_handler.
3905
3906 2014-07-07  Tom Tromey  <tromey@redhat.com>
3907
3908         * target-delegates.c: Rebuild.
3909         * target.c (target_info_record): Remove.
3910         * record.c (info_record_command): Unconditionally call
3911         to_info_record.
3912         * target.h (struct target_ops) <to_info_record>: Use
3913         TARGET_DEFAULT_IGNORE.
3914         (target_info_record): Remove.
3915
3916 2014-07-07  Tom Tromey  <tromey@redhat.com>
3917
3918         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3919         TARGET_DEFAULT_NORETURN.
3920         * target.c (generic_tls_error): New function.
3921         (target_translate_tls_address): Don't search target stack.
3922         * target-delegates.c: Rebuild.
3923         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3924         stack.
3925         * linux-thread-db.c (thread_db_get_thread_local_address):
3926         Unconditionally call beneath target.
3927
3928 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3929
3930         * cli/cli-logging.c (pop_output_files): Assign targerr to
3931         gdb_stdtargerr.
3932
3933 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3934
3935         * MAINTAINERS (Write After Approval): Update my email address.
3936
3937 2014-07-02  Gary Benson  <gbenson@redhat.com>
3938
3939         * proc-service.c (ps_xfer_memory): Update comment.
3940         (ps_pstop): Remove unused function.
3941         (ps_pcontinue): Likewise.
3942         (ps_lstop): Likewise.
3943         (ps_lcontinue): Likewise.
3944         (ps_lgetxregsize): Likewise.
3945         (ps_lgetxregs): Likewise.
3946         (ps_lsetxregs): Likewise.
3947         (ps_plog): Likewise.
3948         (ps_ptread): Likewise.
3949         (ps_ptwrite): Likewise.
3950
3951 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3952
3953         * dwarf2read.c (add_array_cv_type): New function.
3954         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3955         (read_tag_volatile_type): Likewise.
3956
3957 2014-07-01  Tom Tromey  <tromey@redhat.com>
3958
3959         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3960         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3961         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3962         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3963         * command.h (cmd_cfunc_ftype): Move earlier.
3964         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3965         (add_com, add_info): Use cmd_cfunc_ftype.
3966
3967 2014-06-30  Tom Tromey  <tromey@redhat.com>
3968
3969         * symtab.c (operator_chars): Make parameters and return type
3970         const.
3971         (file_matches): Make "files" const.
3972         (struct search_symbols_data) <files>: Now const.
3973         (search_symbols): Make "regexp" and "files" parameters const.
3974         Update.
3975         (symtab_symbol_info): Remove cast.
3976         (rbreak_command): Update.
3977         * symtab.h (search_symbols): Update.
3978
3979 2014-06-27  Yao Qi  <yao@codesourcery.com>
3980
3981         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3982         Change parameter type to 'struct thread_info *'.  Caller
3983         updated.
3984         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3985         Update declaration.
3986         * dummy-frame.c (struct dummy_frame_id): New.
3987         (dummy_frame_id_eq): New function.
3988         (struct dummy_frame) <id>: Change its type to 'struct
3989         dummy_frame_id'.
3990         (dummy_frame_push): Add parameter ptid and save it in
3991         dummy_frame_id.
3992         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3993         inferior_ptid.
3994         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3995         to inferior_ptid.
3996         (lookup_dummy_frame): Change parameter type to 'struct
3997         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3998         instead of frame_id_eq.
3999         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4000         Update comments.  Compose dummy_frame_id and pass it to
4001         lookup_dummy_frame.
4002         (dummy_frame_discard): Add parameter ptid.
4003         (dummy_frame_sniffer): Compose dummy_frame_id and call
4004         dummy_frame_id_eq instead of frame_id_eq.
4005         (fprint_dummy_frames): Print ptid.
4006         * dummy-frame.h: Remove comments.
4007         (dummy_frame_push): Add ptid in declaration.
4008         (dummy_frame_pop, dummy_frame_discard): Likewise.
4009
4010 2014-06-26  Tom Tromey  <tromey@redhat.com>
4011
4012         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4013         * command.h (error_no_arg): Update.
4014
4015 2014-06-26  Tom Tromey  <tromey@redhat.com>
4016
4017         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4018         (do_show_command): Make "arg" const.
4019         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4020
4021 2014-06-26  Tom Tromey  <tromey@redhat.com>
4022
4023         * record-full.c (record_full_get_bookmark): Make "args" const.
4024         (record_full_goto_bookmark): Make "raw_bookmark" const.
4025         * record.c (record_goto): New function.
4026         (cmd_record_goto): Use it.  Now static.
4027         * record.h (record_goto): Declare.
4028         (cmd_record_goto): Remove declaration.
4029         * target-delegates.c: Rebuild.
4030         * target.h (struct target_ops) <to_get_bookmark,
4031         to_goto_bookmark>: Make parameter const.
4032
4033 2014-06-26  Tom Tromey  <tromey@redhat.com>
4034
4035         * defs.h (generic_load): Update.
4036         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4037         * monitor.c (monitor_load): Make "args" const.
4038         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4039         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4040         const.
4041         (mips_load): Make "file" const.
4042         * remote-sim.c (gdbsim_load): Make "args" const.
4043         * remote.c (remote_load): Make "name" const.
4044         * symfile.c (generic_load): Make "args" const.
4045         * target-delegates.c: Rebuild.
4046         * target.c (target_load): Make "arg" const.
4047         (debug_to_load): Make "args" const.
4048         * target.h (struct target_ops) <to_load>: Make parameter const.
4049         (target_load): Update.
4050
4051 2014-06-26  Tom Tromey  <tromey@redhat.com>
4052
4053         PR symtab/16902:
4054         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4055         (dwarf2_physname, read_partial_die)
4056         (guess_partial_die_structure_name, fixup_partial_die)
4057         (guess_full_die_structure_name, anonymous_struct_prefix)
4058         (dwarf2_name): Use per-BFD obstack.
4059
4060 2014-06-26  Yao Qi  <yao@codesourcery.com>
4061
4062         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4063         dummyframe and this_id into inner block below.
4064
4065 2014-06-26  Yao Qi  <yao@codesourcery.com>
4066
4067         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4068         with "signal_pass[0]" in the initialization of signal_pass.
4069
4070 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4071
4072         * record-btrace.c (record_btrace_generating_corefile)
4073         (record_btrace_prepare_to_generate_core)
4074         (record_btrace_done_generating_core): New.
4075         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4076         (record_btrace_store_registers, record_btrace_prepare_to_store):
4077         Forward request when generating a core file.
4078         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4079         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4080         to_done_generating_core.
4081
4082 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4083
4084         * target.h (target_ops) <to_prepare_to_generate_core>
4085         <to_done_generating_core>: New.
4086         (target_prepare_to_generate_core, target_done_generating_core): New.
4087         * target.c (target_prepare_to_generate_core)
4088         (target_done_generating_core): New.
4089         * target-delegates.c: Regenerate.
4090         * gcore.c: (write_gcore_file): Rename to ...
4091         (write_gcore_file_1): ...this.
4092         (write_gcore_file): Call target_prepare_to_generate_core
4093         and target_done_generating_core.
4094
4095 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4096
4097         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4098         * gcore.c (write_gcore_file): Free memory returned from
4099         make_corefile_notes.
4100         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4101         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4102
4103 2014-06-24  Yao Qi  <yao@codesourcery.com>
4104
4105         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4106         (arm_linux_init_abi): Set skip_trampoline_code with
4107         gdbarch_skip_trampoline_code instead of
4108         find_solib_trampoline_target.
4109
4110 2014-06-24  Yao Qi  <yao@codesourcery.com>
4111
4112         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4113         arm_skip_bx_reg returns non-zero.
4114
4115 2014-06-24  Yao Qi  <yao@codesourcery.com>
4116
4117         * arm-tdep.c (arm_skip_bx_reg): New function.
4118         (arm_skip_stub): Call arm_skip_bx_reg.
4119
4120 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4121
4122         * MAINTAINERS: Add myself as write-after-approval maintainer.
4123
4124 2014-06-23  Pedro Alves  <palves@redhat.com>
4125
4126         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4127         DR_CONTROL before setting DR0..DR3.
4128         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4129         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4130         bits of DR_CONTROL related to the debug register slot being
4131         disabled.  If all slots are vacant, clear local slowdown as well,
4132         and assert DR_CONTROL is 0.
4133
4134 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4135
4136         * python/lib/gdb/command/xmethods.py
4137         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4138         current progspace only if the string "progspace" matches LOCUS_RE.
4139
4140 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4141
4142         Fix --with-system-readline with readline-6.3 patch 5.
4143         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4144         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4145         types.
4146
4147 2014-06-20  Tom Tromey  <tromey@redhat.com>
4148
4149         * dwarf2read.c (dw2_get_real_path): Use correct type in
4150         OBSTACK_CALLOC.
4151         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4152
4153 2014-06-20  Gary Benson  <gbenson@redhat.com>
4154
4155         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4156         * common/glibc_thread_db.h: Likewise.
4157         * common/i386-cpuid.h: Likewise.
4158         * common/i386-gcc-cpuid.h: Likewise.
4159         * common/linux-btrace.h: Likewise.
4160         * common/linux-osdata.h: Likewise.
4161         * common/linux-procfs.h: Likewise.
4162         * common/linux-ptrace.h: Likewise.
4163         * common/mips-linux-watch.h: Likewise.
4164         * common/linux-btrace.c: Moved to nat.
4165         * common/linux-osdata.c: Likewise.
4166         * common/linux-procfs.c: Likewise.
4167         * common/linux-ptrace.c: Likewise.
4168         * common/mips-linux-watch.c: Likewise.
4169         * nat/gdb_thread_db.h: Moved from common.
4170         * nat/glibc_thread_db.h: Likewise.
4171         * nat/i386-cpuid.h: Likewise.
4172         * nat/i386-gcc-cpuid.h: Likewise.
4173         * nat/linux-btrace.c: Likewise.
4174         * nat/linux-btrace.h: Likewise.
4175         * nat/linux-osdata.c: Likewise.
4176         * nat/linux-osdata.h: Likewise.
4177         * nat/linux-procfs.c: Likewise.
4178         * nat/linux-procfs.h: Likewise.
4179         * nat/linux-ptrace.c: Likewise.
4180         * nat/linux-ptrace.h: Likewise.
4181         * nat/mips-linux-watch.c: Likewise.
4182         * nat/mips-linux-watch.h: Likewise.
4183         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4184         (object file files): Reordered.
4185         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4186         of glibc_thread_db.h.
4187
4188 2014-06-20  Gary Benson  <gbenson@redhat.com>
4189
4190         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4191         (i386_dr_low_type): Moved to nat/i386-dregs.h.
4192         (i386_dr_low): Likewise.
4193         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4194         (i386_dr_low_set_addr): Likewise.
4195         (i386_dr_low_get_addr): Likewise.
4196         (i386_dr_low_can_set_control): Likewise.
4197         (i386_dr_low_set_control): Likewise.
4198         (i386_dr_low_get_control): Likewise.
4199         (i386_dr_low_get_status): Likewise.
4200         (i386_get_debug_register_length): Likewise.
4201         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4202         (i386_dr_low): Likewise.
4203         * nat/i386-dregs.c (i386-low.h): Remove include.
4204         (i386-nat.h): Likewise.
4205         (nat/i386-dregs.h): New include.
4206         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4207         (i386_dr_low_set_addr): Likewise.
4208         (i386_dr_low_get_addr): Likewise.
4209         (i386_dr_low_can_set_control): Likewise.
4210         (i386_dr_low_set_control): Likewise.
4211         (i386_dr_low_get_control): Likewise.
4212         (i386_dr_low_get_status): Likewise.
4213         (i386_get_debug_register_length): Likewise.
4214         (debug_hw_points): Likewise.
4215
4216 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
4217
4218         * Makefile.in (SFILES): Add d-exp.y.
4219         (YYFILES): Add d-exp.c.
4220         (YYOBJ): Add d-exp.o.
4221         (local-maintainer-clean): Delete d-exp.c.
4222         * d-exp.y: New file.
4223         * d-lang.h (d_parse): New declaration.
4224         (d_error): New declaration.
4225         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4226         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4227         PREC_ORDER operators.
4228         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4229
4230 2014-06-19  Yao Qi  <yao@codesourcery.com>
4231
4232         * gdbthread.h (any_running): Remove the declaration.
4233         * thread.c (any_running): Remove.
4234
4235 2014-06-19  Yao Qi  <yao@codesourcery.com>
4236
4237         * gdbthread.h (struct thread_info) <state>: Change its type to
4238         'enum thread_state'.  Update comments.
4239
4240 2014-06-19  Pedro Alves  <palves@redhat.com>
4241
4242         * gdbthread.h (ALL_THREADS): Delete.
4243         (ALL_NON_EXITED_THREADS): New macro.
4244         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4245         instead of ALL_THREADS.
4246         * infrun.c (find_thread_needs_step_over)
4247         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4248         instead of ALL_THREADS.
4249         * record-btrace.c (record_btrace_open)
4250         (record_btrace_stop_recording, record_btrace_close)
4251         (record_btrace_is_replaying, record_btrace_resume)
4252         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4253         * remote.c (append_pending_thread_resumptions): Likewise.
4254         * thread.c (thread_apply_all_command): Likewise.
4255
4256 2014-06-19  Gary Benson  <gbenson@redhat.com>
4257
4258         * i386-nat.c (i386_stopped_by_watchpoint):
4259         Use i386_dr_stopped_by_watchpoint.
4260         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4261         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4262
4263 2014-06-19  Gary Benson  <gbenson@redhat.com>
4264
4265         * nat/i386-dregs.c: New file.
4266         * Makefile.in (i386-dregs.o): New rule.
4267         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4268         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4269         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4270         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4271         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4272         * config/i386/go32.mh (NATDEPFILES): Likewise.
4273         * config/i386/linux.mh (NATDEPFILES): Likewise.
4274         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4275         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4276         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4277         * i386-nat.h (debug_hw_points): New declaration.
4278         * i386-nat.c (breakpoint.h): Remove include.
4279         (command.h): Likewise.
4280         (target.h): Likewise.
4281         (gdb_assert.h): Likewise.
4282         (debug_hw_points): Made nonstatic.
4283         (debug_printf): Now in i386-dregs.c.
4284         (TARGET_HAS_DR_LEN_8): Likewise.
4285         (DR_CONTROL_SHIFT): Likewise.
4286         (DR_CONTROL_SIZE): Likewise.
4287         (DR_RW_EXECUTE): Likewise.
4288         (DR_RW_WRITE): Likewise.
4289         (DR_RW_READ): Likewise.
4290         (DR_RW_IORW): Likewise.
4291         (DR_LEN_1): Likewise.
4292         (DR_LEN_2): Likewise.
4293         (DR_LEN_4): Likewise.
4294         (DR_LEN_8): Likewise.
4295         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4296         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4297         (DR_ENABLE_SIZE): Likewise.
4298         (DR_LOCAL_SLOWDOWN): Likewise.
4299         (DR_GLOBAL_SLOWDOWN): Likewise.
4300         (DR_CONTROL_RESERVED): Likewise.
4301         (I386_DR_CONTROL_MASK): Likewise.
4302         (I386_DR_VACANT): Likewise.
4303         (I386_DR_LOCAL_ENABLE): Likewise.
4304         (I386_DR_GLOBAL_ENABLE): Likewise.
4305         (I386_DR_DISABLE): Likewise.
4306         (I386_DR_SET_RW_LEN): Likewise.
4307         (I386_DR_GET_RW_LEN): Likewise.
4308         (I386_DR_WATCH_HIT): Likewise.
4309         (i386_wp_op_t): Likewise.
4310         (i386_show_dr): Likewise.
4311         (i386_length_and_rw_bits): Likewise.
4312         (i386_insert_aligned_watchpoint): Likewise.
4313         (i386_remove_aligned_watchpoint): Likewise.
4314         (i386_handle_nonaligned_watchpoint): Likewise.
4315         (i386_update_inferior_debug_regs): Likewise.
4316         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4317         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4318         (i386_region_ok_for_watchpoint):
4319         Use i386_dr_region_ok_for_watchpoint.
4320         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4321
4322 2014-06-19  Gary Benson  <gbenson@redhat.com>
4323
4324         * i386-nat.c (i386_insert_hw_breakpoint): Use
4325         i386_insert_watchpoint.
4326         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4327
4328 2014-06-19  Gary Benson  <gbenson@redhat.com>
4329
4330         * i386-nat.c (i386_dr_show): Renamed to
4331         i386_show_dr and made static.  All uses updated.
4332         (i386_dr_length_and_rw_bits): Renamed to
4333         i386_length_and_rw_bits and made static.
4334         All uses updated.
4335         (i386_dr_insert_aligned_watchpoint): Renamed to
4336         i386_insert_aligned_watchpoint and made static.
4337         All uses updated.
4338         (i386_dr_remove_aligned_watchpoint): Renamed to
4339         i386_remove_aligned_watchpoint and made static.
4340         All uses updated.
4341         (i386_dr_update_inferior_debug_regs): Renamed to
4342         i386_update_inferior_debug_regs and made static.
4343         All uses updated.
4344         * nat/i386-dregs.h (i386_dr_show): Removed.
4345         (i386_dr_length_and_rw_bits): Likewise.
4346         (i386_dr_insert_aligned_watchpoint): Likewise.
4347         (i386_dr_remove_aligned_watchpoint): Likewise.
4348         (i386_dr_update_inferior_debug_regs): Likewise.
4349
4350 2014-06-19  Gary Benson  <gbenson@redhat.com>
4351
4352         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4353         * configure: Regenerate.
4354         * config.in: Likewise.
4355         * main.c (signal.h): New include.
4356         (setup_alternate_signal_stack): New function.
4357         (captured_main): Call the above.
4358         * cp-support.c (signal.h): New include.
4359         (catch_demangler_crashes): New flag.
4360         (SIGJMP_BUF): New define.
4361         (SIGSETJMP): Likewise.
4362         (SIGLONGJMP): Likewise.
4363         (gdb_demangle_jmp_buf): New static global.
4364         (gdb_demangle_attempt_core_dump): Likewise.
4365         (gdb_demangle_signal_handler): New function.
4366         (gdb_demangle): If catch_demangler_crashes is set, install the
4367         above signal handler before calling bfd_demangle, and restore
4368         the original signal handler afterwards.  Display the offending
4369         symbol and call demangler_warning the first time a segmentation
4370         fault is caught.
4371         (_initialize_cp_support): New maint set/show command.
4372
4373 2014-06-19  Gary Benson  <gbenson@redhat.com>
4374
4375         * utils.h (resource_limit_kind): New enum.
4376         (can_dump_core): New declaration.
4377         (warn_cant_dump_core): Likewise.
4378         (dump_core): Likewise.
4379         * utils.c (dump_core): Made nonstatic.  Added new
4380         parameter "limit_kind".
4381         (can_dump_core): Made nonstatic. Moved printing code to...
4382         (warn_cant_dump_core): New function.
4383         (can_dump_core_warn): Likewise.
4384         (internal_vproblem): Replace calls to can_dump_core with
4385         calls to can_dump_core_warn.  Supply new argument to each.
4386
4387 2014-06-19  Gary Benson  <gbenson@redhat.com>
4388
4389         * utils.h (demangler_vwarning): New declaration.
4390         (demangler_warning): Likewise.
4391         * utils.c (struct internal_problem)
4392         <user_settable_should_quit>: New field.
4393         <user_settable_should_dump_core>: Likewise
4394         (internal_error_problem): Add values for above new fields.
4395         (internal_warning_problem): Likewise.
4396         (demangler_warning_problem): New static global.
4397         (demangler_vwarning): New function.
4398         (demangler_warning): Likewise.
4399         (add_internal_problem_command): Selectively add commands.
4400         (_initialize_utils): New internal problem command.
4401         * maint.c (maintenance_demangler_warning): New function.
4402         (_initialize_maint_cmds): New command.
4403
4404 2014-06-18  Tom Tromey  <tromey@redhat.com>
4405
4406         * f-valprint.c (info_common_command_for_block): Update.
4407         * symtab.h (struct general_symbol_info) <common_block>: Now
4408         const.
4409
4410 2014-06-18  Tom Tromey  <tromey@redhat.com>
4411
4412         * symtab.h (struct symtab) <blockvector>: Now const.
4413         * ada-lang.c (ada_add_global_exceptions): Update.
4414         * buildsym.c (augment_type_symtab): Update.
4415         * dwarf2read.c (dw2_lookup_symbol): Update.
4416         * jit.c (finalize_symtab): Update.
4417         * jv-lang.c (add_class_symtab_symbol): Update.
4418         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4419         Update.
4420         * objfiles.c (objfile_relocate1): Update.
4421         * psymtab.c (lookup_symbol_aux_psymtabs)
4422         (maintenance_check_psymtabs): Update.
4423         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4424         Update.
4425         * spu-tdep.c (spu_catch_start): Update.
4426         * symmisc.c (dump_symtab_1): Update.
4427         * symtab.c (lookup_global_symbol_from_objfile)
4428         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4429         (basic_lookup_transparent_type_quick)
4430         (basic_lookup_transparent_type, find_pc_sect_symtab)
4431         (find_pc_sect_line, search_symbols): Update.
4432         * block.c (find_block_in_blockvector): Make "bl" const.
4433         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4434         const.
4435         (blockvector_contains_pc): Make "bv" const.
4436         (block_for_pc_sect): Update.
4437         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4438         (blockvector_contains_pc): Update.
4439         * breakpoint.c (resolve_sal_pc): Update.
4440         * inline-frame.c (block_starting_point_at): Update.
4441
4442 2014-06-18  Tom Tromey  <tromey@redhat.com>
4443
4444         * completer.c (complete_line): Make "line_buffer" const.
4445         * completer.h (complete_line): Update.
4446
4447 2014-06-18  Tom Tromey  <tromey@redhat.com>
4448
4449         * symtab.c (add_macro_name): Remove unneeded cast.
4450
4451 2014-06-18  Tom Tromey  <tromey@redhat.com>
4452
4453         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4454         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4455
4456 2014-06-18  Tom Tromey  <tromey@redhat.com>
4457
4458         * probe.c (info_probes_for_ops): Make "arg" const.
4459         * probe.h (info_probes_for_ops): Update.
4460
4461 2014-06-18  Tom Tromey  <tromey@redhat.com>
4462
4463         * varobj.c (varobj_create): Update.
4464         * valops.c (value_of_this): Update.
4465         * tracepoint.c (add_local_symbols, scope_info): Update.
4466         * symtab.h (struct general_symbol_info) <block>: Now const.
4467         * symtab.c (skip_prologue_sal)
4468         (default_make_symbol_completion_list_break_on)
4469         (skip_prologue_using_sal): Update.
4470         * stack.h (iterate_over_block_locals)
4471         (iterate_over_block_local_vars): Update.
4472         * stack.c (print_frame_args): Update.
4473         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4474         parameter const.
4475         (get_selected_block): Make return type const.
4476         * python/py-frame.c (frapy_block): Update.
4477         * python/py-block.c (gdbpy_block_for_pc): Update.
4478         * p-exp.y (%union) <bval>: Now const.
4479         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4480         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4481         * m2-exp.y (%union) <bval>: Now const.
4482         * linespec.c (get_current_search_block): Make return type const.
4483         (create_sals_line_offset, find_label_symbols): Update.
4484         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4485         Update.
4486         (block_starting_point_at): Make "block" const.
4487         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4488         (check_exception_resume): Update.
4489         * guile/scm-frame.c (gdbscm_frame_block): Update.
4490         * guile/scm-block.c (gdbscm_lookup_block): Update.
4491         * frame.h (get_frame_block): Update.
4492         (get_selected_block): Make return type const.
4493         * frame.c (frame_id_inner): Update.
4494         * f-valprint.c (info_common_command_for_block)
4495         (info_common_command): Update.
4496         * dwarf2loc.c (dwarf2_find_location_expression)
4497         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4498         (locexpr_describe_location_piece): Update.
4499         * c-exp.y (%union) <bval>: Now const.
4500         * breakpoint.c (resolve_sal_pc): Update.
4501         * blockframe.c (get_frame_block):Make return type const.
4502         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4503         (block_innermost_frame): Update.
4504         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4505         (block_for_pc, block_for_pc_sect): Update.
4506         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4507         'pblock' const.
4508         (block_for_pc_sect, block_for_pc): Make return type const.
4509         * ax-gdb.c (gen_expr): Update.
4510         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4511         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4512         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4513         (ada_read_var_value): Update.
4514         * ada-exp.y (struct name_info) <block>: Now const.
4515         (%union): Likewise.
4516         (block_lookup): Constify.
4517
4518 2014-06-18  Gary Benson  <gbenson@redhat.com>
4519
4520         * nat/i386-dregs.h: New file.
4521         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4522         * i386-nat.h (i386-dregs.h): New include.
4523         (DR_FIRSTADDR): Now in i386-dregs.h.
4524         (DR_LASTADDR): Likewise.
4525         (DR_NADDR): Likewise.
4526         (DR_STATUS): Likewise.
4527         (DR_CONTROL): Likewise.
4528         (i386_debug_reg_state): Likewise.
4529         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4530
4531 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4532
4533         * breakpoint.c (set_longjmp_breakpoint): Call
4534         momentary_breakpoint_from_master with additional argument.
4535         (set_longjmp_breakpoint_for_call_dummy): Call
4536         momentary_breakpoint_from_master with additional argument.
4537         (set_std_terminate_breakpoint): Call
4538         momentary_breakpoint_from_master with additional argument.
4539         (momentary_breakpoint_from_master): Add argument to function
4540         definition and use it to initialize structure member flag.
4541         (clone_momentary_breakpoint): Call
4542         momentary_breakpoint_from_master with additional argument.
4543         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4544         member flags set in momentary_breakpoint_from_master.
4545
4546 2014-06-18  Gary Benson  <gbenson@redhat.com>
4547
4548         * i386-nat.c (i386_show_dr): Renamed to
4549         i386_dr_show and made nonstatic.  All uses updated.
4550         (i386_length_and_rw_bits): Renamed to
4551         i386_dr_length_and_rw_bits and made nonstatic.
4552         All uses updated.
4553         (i386_insert_aligned_watchpoint): Renamed to
4554         i386_dr_insert_aligned_watchpoint and made nonstatic.
4555         All uses updated.
4556         (i386_remove_aligned_watchpoint): Renamed to
4557         i386_dr_remove_aligned_watchpoint and made nonstatic.
4558         All uses updated.
4559         (i386_update_inferior_debug_regs): Renamed to
4560         i386_dr_update_inferior_debug_regs and made nonstatic.
4561         All uses updated.
4562
4563 2014-06-18  Gary Benson  <gbenson@redhat.com>
4564
4565         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4566         (i386_dr_low_can_set_control): Likewise.
4567         (i386_dr_low_set_addr): Likewise.
4568         (i386_dr_low_set_control): Likewise.
4569         (i386_dr_low_get_addr): Likewise.
4570         (i386_dr_low_get_status): Likewise.
4571         (i386_dr_low_get_control): Likewise.
4572         (i386_insert_aligned_watchpoint): Use new macros.
4573         (i386_update_inferior_debug_regs): Likewise.
4574         (i386_stopped_data_address): Likewise.
4575
4576 2014-06-18  Gary Benson  <gbenson@redhat.com>
4577
4578         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4579         New parameter.  All uses updated.
4580
4581 2014-06-18  Gary Benson  <gbenson@redhat.com>
4582
4583         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4584         All uses updated.
4585
4586 2014-06-18  Gary Benson  <gbenson@redhat.com>
4587
4588         * i386-nat.c (debug_printf): New macro.
4589         (i386_get_debug_register_length): Likewise.
4590         (TARGET_HAS_DR_LEN_8): Use above macro.
4591         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4592         and printf_unfiltered.  Use phex to format values.
4593
4594 2014-06-18  Gary Benson  <gbenson@redhat.com>
4595
4596         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4597         Make const.
4598
4599 2014-06-18  Gary Benson  <gbenson@redhat.com>
4600
4601         * i386-nat.c: Comment changes.
4602
4603 2014-06-18  Gary Benson  <gbenson@redhat.com>
4604
4605         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4606
4607 2014-06-18  Gary Benson  <gbenson@redhat.com>
4608
4609         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4610         (i386_insert_aligned_watchpoint): Likewise.
4611         (i386_remove_aligned_watchpoint): Likewise.
4612         (i386_handle_nonaligned_watchpoint): Likewise.
4613
4614 2014-06-18  Gary Benson  <gbenson@redhat.com>
4615
4616         * i386-nat.c: Whitespace changes.
4617
4618 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4619
4620         * MAINTAINERS: Update Roland McGrath's email address.
4621         Thanks to Sergio Durigan Junior for pointing out that he left
4622         Red Hat a while ago, and giving me a current address.
4623
4624 2014-06-17  Tom Tromey  <tromey@redhat.com>
4625
4626         * utils.h (savestring): Remove declaration.
4627
4628 2014-06-17  Tom Tromey  <tromey@redhat.com>
4629
4630         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4631
4632 2014-06-16  Keith Seitz  <keiths@redhat.com>
4633
4634         PR mi/15863
4635         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4636         to update the varobj if inferior_ptid is null_ptid.
4637
4638 2014-06-16  Tom Tromey  <tromey@redhat.com>
4639
4640         * target.h (struct target_ops) <to_info_proc>: Make parameter
4641         const.
4642         (target_info_proc): Update.
4643         * target.c (target_info_proc): Make "args" const.
4644         * procfs.c (procfs_info_proc): Update.
4645         * linux-tdep.c (linux_info_proc): Update.
4646         (linux_core_info_proc_mappings): Make "args" const.
4647         (linux_core_info_proc): Update.
4648         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4649         * gdbarch.c: Rebuild.
4650         * gdbarch.h: Rebuild.
4651         * corelow.c (core_info_proc): Update.
4652
4653 2014-06-16  Tom Tromey  <tromey@redhat.com>
4654
4655         * target.h (struct target_ops) <to_disconnect>: Make parameter
4656         const.
4657         (target_disconnect): Update.
4658         * target.c (target_disconnect): Make "args" const.
4659         * target-delegates.c: Rebuild.
4660         * remote.c (remote_disconnect): Update.
4661         * record.h (record_disconnect): Update.
4662         * record.c (record_disconnect): Update.
4663         * inf-child.c (inf_child_disconnect): Update.
4664
4665 2014-06-16  Tom Tromey  <tromey@redhat.com>
4666
4667         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4668         * target.c (debug_to_rcmd, default_rcmd): Update.
4669         * target-delegates.c: Rebuild.
4670         * remote.c (remote_rcmd): Update.
4671         * monitor.c (monitor_rcmd): Update.
4672
4673 2014-06-16  Pedro Alves  <palves@redhat.com>
4674
4675         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4676         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4677         have OBJF_SHARED set.
4678         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4679         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4680         instead of OBJF_USERLOADED.
4681         * objfiles.h (OBJF_SHARED): Update comment.
4682         (userloaded_objfile_contains_address_p): Rename to ...
4683         (shared_objfile_contains_address_p): ... this, and update
4684         comments.
4685         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4686         new objfile.
4687         (remove_symbol_file_command): Skip objfiles that don't have
4688         OBJF_SHARED set.
4689
4690 2014-06-16  Tom Tromey  <tromey@redhat.com>
4691
4692         * minsyms.h (prim_record_minimal_symbol)
4693         (prim_record_minimal_symbol_and_info): Update comments.
4694
4695 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4696
4697         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4698         or --without-guile, according to how GDB was built.
4699
4700 2014-06-13  Tom Tromey  <tromey@redhat.com>
4701
4702         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4703         to help_list.
4704         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4705         to help_list.
4706         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4707         help_list.
4708         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4709         help_list.Pass all_commands, not -1, to help_list.
4710         * cli/cli-dump.c (dump_command, append_command)
4711         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4712         (binary_dump_command, binary_append_command): Pass all_commands,
4713         not -1, to help_list.
4714         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4715         -1, to help_list.
4716         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4717         -1, to help_list.
4718         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4719         help_list.
4720         * top.c (set_history): Pass all_commands, not -1, to help_list.
4721         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4722         all_commands, not -1, to help_list.
4723         * symfile.c (overlay_command): Pass all_commands, not -1, to
4724         help_list.
4725         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4726         help_list.
4727         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4728         help_list.
4729         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4730         -1, to help_list.
4731         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4732         not -1, to help_list.
4733         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4734         not -1, to help_list.
4735         * maint.c (maintenance_command, maintenance_info_command)
4736         (maintenance_print_command, maintenance_set_cmd): Pass
4737         all_commands, not -1, to help_list.
4738         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4739         help_list.
4740         * language.c (set_check): Pass all_commands, not -1, to help_list.
4741         * infcmd.c (unset_command): Pass all_commands, not -1, to
4742         help_list.
4743         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4744         help_list.
4745         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4746         help_list.
4747         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4748         help_list.
4749         * breakpoint.c (save_command): Pass all_commands, not -1, to
4750         help_list.
4751         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4752         all_commands, not -1, to help_list.
4753
4754 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4755
4756         * regcache.c (struct register_to_invalidate): New structure.
4757         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4758         functions.
4759         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4760
4761 2014-06-12  Yao Qi  <yao@codesourcery.com>
4762
4763         * varobj.c (varobj_get_num_children): Call
4764         varobj_is_dynamic_p.
4765         (varobj_list_children): Likewise.
4766         (varobj_update): Likewise.  Update comments.
4767
4768 2014-06-12  Yao Qi  <yao@codesourcery.com>
4769
4770         * varobj.c (varobj_pretty_printed_p): Rename to ...
4771         (varobj_is_dynamic_p): ... this.  New function.
4772         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4773         (varobj_is_dynamic_p): Declare.
4774         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4775         (mi_print_value_p, varobj_update_one): Likewise.
4776
4777 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4778             Yao Qi  <yao@codesourcery.com>
4779
4780         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4781         (varobj_get_iterator): Wrap up code for pretty-printer by
4782         "#if HAVE_PYTHON" and "#endif".
4783         (update_dynamic_varobj_children): Likewise.
4784
4785 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4786             Yao Qi  <yao@codesourcery.com>
4787
4788         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4789         gdb_python_initialized is false.  Move some code from varobj.c.
4790         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4791         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4792         (struct varobj_item): Moved to varobj-iter.h".
4793         (varobj_clear_saved_item): New function.
4794         (update_dynamic_varobj_children): Move python-related code to
4795         py-varobj.c.
4796         (free_variable): Call varobj_clear_saved_item and
4797         varobj_iter_delete.
4798
4799 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4800             Yao Qi  <yao@codesourcery.com>
4801
4802         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4803         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4804         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4805         (py-varobj.o): New rule.
4806         * python/py-varobj.c: New file.
4807         * python/python-internal.h (py_varobj_get_iterator): Declare.
4808         * varobj-iter.h: New file.
4809         * varobj.c: Include "varobj-iter.h"
4810         (struct varobj) <child_iter>: Change its type from "PyObject *"
4811         to "struct varobj_iter *".
4812         <saved_item>: Likewise.
4813         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4814         [HAVE_PYTHON] (varobj_get_iterator): New function.
4815         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4816         python-specific code to python/py-varobj.c.
4817         (install_visualizer): Call varobj_iter_delete instead of
4818         Py_XDECREF.
4819         * varobj.h (varobj_ensure_python_env): Declare.
4820
4821 2014-06-12  Yao Qi  <yao@codesourcery.com>
4822
4823         * varobj.c (struct varobj_item): New structure.
4824         (create_child_with_value): Update declaration.
4825         (varobj_add_child): Replace arguments 'name' and 'value' with
4826         'item'.  All callers updated.
4827         (install_dynamic_child): Likewise.
4828         (update_dynamic_varobj_children): Likewise.
4829         (varobj_add_child): Likewise.
4830         (create_child_with_value): Likewise.
4831
4832 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4833
4834         * NEWS: Create a new section for the next release branch.
4835         Rename the section of the current branch, now that it has
4836         been cut.
4837
4838 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4839
4840         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4841         * version.in: Bump version to 7.8.50.DATE-cvs.
4842
4843 2014-06-11  Pedro Alves  <palves@redhat.com>
4844
4845         PR remote/17028
4846         * ser-mingw.c (net_windows_socket_check_pending): New function.
4847         (net_windows_select_thread): Ignore spurious wakeups.  Use
4848         net_windows_socket_check_pending.
4849         (net_windows_wait_handle): Check for pending events with
4850         ioctlsocket, through net_windows_socket_check_pending, instead of
4851         checking the socket's event.
4852
4853 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4854
4855         * python/python-internal.h (gdb_PyObject_GetAttrString)
4856         (gdb_PyObject_HasAttrString): New inline function definitions.
4857         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4858         char * of the second argument to PyObject_GetAttrString.
4859
4860 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4861
4862         * serial.c (serial_write): Fix index of character to be printed
4863         in call to serial_logchar when serial debug traces are enabled.
4864
4865 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4866
4867         * gdbtypes (resolve_dynamic_range): Add function description.
4868
4869 2014-06-09  Pedro Alves  <palves@redhat.com>
4870
4871         * linux-nat.c (linux_child_follow_fork): Initialize status with
4872         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4873         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4874         state.
4875
4876 2014-06-09  Gary Benson  <gbenson@redhat.com>
4877
4878         * common/signals.c (gdb_signal_from_host): Reorder to separate
4879         the always-available ANSI-standard signals from the signals that
4880         require checking.
4881         (do_gdb_signal_to_host): Likewise.
4882         * proc-events.c (signal_table): Likewise.
4883
4884 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4885
4886         * common/linux-ptrace.c (linux_disable_event_reporting): New
4887         function.
4888         * common/linux-ptrace.h (linux_disable_event_reporting): New
4889         declaration.
4890         * linux-nat.c (linux_child_follow_fork): Do a single step before
4891         detach.
4892
4893 2014-06-07  Keith Seitz  <keiths@redhat.com>
4894
4895         Revert:
4896         PR c++/16253
4897         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4898         from symbol_matches_domain in symtab.c. All local callers
4899         of symbol_matches_domain updated.
4900         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4901         search STRUCT_DOMAIN.
4902         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4903         independently.  standard_lookup will do that automatically.
4904         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4905         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4906         (cp_lookup_symbol_in_namespace): Likewise.
4907         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4908         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4909         may return a STRUCT_DOMAIN match.
4910         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4911         * cp-support.c: Include language.h.
4912         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4913         VAR_DOMAIN.
4914         * psymtab.c (match_partial_symbol): Compare the requested
4915         domain with the symbol's domain directly.
4916         (lookup_partial_symbol): Likewise.
4917         * symtab.c (lookup_symbol_in_language): Explain when/why
4918         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4919         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4920         appropriate languages.
4921         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4922         and moved to ada-lang.c
4923         (lookup_block_symbol): Explain that this function only returns
4924         symbol matching the requested DOMAIN.
4925         Compare the requested domain with the symbol's domain directly.
4926         (iterate_over_symbols): Compare the requested domain with the
4927         symbol's domain directly.
4928         * symtab.h (symbol_matches_domain): Remove.
4929
4930 2014-06-06  Doug Evans  <xdje42@gmail.com>
4931
4932         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4933         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4934         (gdbscm_guile_version_is_at_least): Declare.
4935         (gdbscm_scm_string_to_int): Declare.
4936         * guile/guile.c (gdbscm_guile_major_version): New global.
4937         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4938         (guile_datadir): New static global.
4939         (gdbscm_guile_data_directory): New function.
4940         (initialize_scheme_side): Update.
4941         (misc_guile_functions): Add guile-data-directory.
4942         (initialize_gdb_module): Fetch guile version number.
4943         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4944         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4945         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4946         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4947         comments.
4948         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4949         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4950         * guile/scm-value.c (gdbscm_value_to_string): Only call
4951         scm_port_conversion_strategy if Guile version >= 2.0.6.
4952
4953 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4954
4955         * main.c (print_gdb_help): Add -q and --silent.
4956
4957 2014-06-06  Gary Benson  <gbenson@redhat.com>
4958
4959         * common/signals.c: Remove preprocessor conditionals for
4960         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4961         SIGSEGV and SIGTERM.
4962         * proc-events.c: Likewise.
4963
4964 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4965
4966         * symfile.c (symfile_free_objfile): Remove restriction to
4967         OBJF_USERLOADED.
4968         * symfile-mem.c (symbol_file_add_from_memory): Call
4969         add_target_sections_of_objfile.
4970
4971 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4972
4973         * guile/scm-value.c (gdbscm_history_append_x): Use
4974         'vlscm_get_value_smob_arg_unsafe' instead of
4975         'vlscm_scm_to_value'.
4976
4977 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4978
4979         PR mi/15806
4980         * utils.c (printchar): Don't escape at all if quoter is NUL.
4981         Update function documentation to clarify effect of parameter
4982         QUOTER.
4983         * remote.c (escape_buffer): Pass '\\' as the quoter to
4984         fputstrn_unfiltered.
4985         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4986         generate the output.
4987         (mi_solib_unloaded): Same.
4988
4989 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4990
4991         * development.sh: Delete.
4992         * Makefile.in (config.status): Adjust dependency on development.sh.
4993         * configure.ac: Adjust development.sh source call.
4994         * configure: Regenerate.
4995
4996 2014-06-04  Doug Evans  <xdje42@gmail.com>
4997
4998         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4999         is_scheme_bkpt, spec.
5000         (bpscm_make_breakpoint_smob): Initialize new members.
5001         (gdbscm_create_breakpoint_x): Split into two ...
5002         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5003         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5004         (scheme_function breakpoint_functions): Update.
5005         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5006         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5007         register-breakpoint!.
5008
5009 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5010
5011         PR server/17023
5012         * mem-break.c (z_type_supported): Return zero if
5013         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5014
5015 2014-06-04  Tom Tromey  <tromey@redhat.com>
5016
5017         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5018         value_from_contents_and_address_unresolved.
5019         (ada_template_to_fixed_record_type_1): Likewise.
5020         (ada_which_variant_applies): Likewise.
5021         * value.h (value_from_contents_and_address_unresolved): Declare.
5022         * value.c (value_from_contents_and_address_unresolved): New
5023         function.
5024         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5025         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5026         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5027
5028 2014-06-04  Tom Tromey  <tromey@redhat.com>
5029
5030         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5031
5032 2014-06-04  Tom Tromey  <tromey@redhat.com>
5033
5034         * procfs.c (procfs_attach): Make "args" const.
5035         * windows-nat.c (windows_attach): Make "args" const.
5036         * nto-procfs.c (procfs_attach): Make "args" const.
5037         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5038         * go32-nat.c (go32_attach): Make "args" const.
5039         * gnu-nat.c (gnu_attach): Make "args" const.
5040         * darwin-nat.c (darwin_attach): Make "args" const.
5041         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5042         * linux-nat.c (linux_nat_attach): Make "args" const.
5043         * remote.c (extended_remote_attach_1, extended_remote_attach):
5044         Make "args" const.
5045         * target.h (struct target_ops) <to_attach>: Make "args" const.
5046         (find_default_attach): Likewise.
5047         * utils.c (parse_pid_to_attach): Make "args" const.
5048         * utils.h (parse_pid_to_attach): Update.
5049
5050 2014-06-04  Tom Tromey  <tromey@redhat.com>
5051
5052         * target-delegates.c: Rebuild.
5053         * target.c (default_thread_address_space): New function.
5054         (target_thread_address_space): Simplify.
5055         * target.h (struct target_ops) <to_thread_address_space>: Add
5056         TARGET_DEFAULT_FUNC.
5057
5058 2014-06-04  Doug Evans  <xdje42@gmail.com>
5059
5060         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5061
5062 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5063
5064         * record-btrace.c: Include event-loop.h and inf-loop.h.
5065         (record_btrace_resume_exec_dir)
5066         (record_btrace_async_inferior_event_handler)
5067         (record_btrace_handle_async_inferior_event): New.
5068         (record_btrace_open): Create async event handler.
5069         (record_btrace_close): Delete async event handler.
5070         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5071         Mark async event handler.
5072         (record_btrace_execution_direction): New.
5073         (init_record_btrace_ops): Initialize to_execution_direction.
5074
5075 2014-06-03  Doug Evans  <xdje42@gmail.com>
5076
5077         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5078         (gdbscm_make_parameter): Ditto.
5079
5080 2014-06-03  Doug Evans  <dje@google.com>
5081
5082         * exec.c (exec_close_1): Call clear_section_table instead of
5083         resize_section_table.
5084         (clear_section_table): New function.
5085         (resize_section_table): Make static.  Rename arg num_added to
5086         adjustment.
5087         * exec.h (clear_section_table): Declare.
5088         (resize_section_table): Delete.
5089         * progspace.c (release_program_space): Call clear_section_table
5090         instead of resize_section_table.
5091
5092 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5093
5094         * NEWS (Python Scripting): Add entry about the new xmethods
5095         feature.
5096
5097 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5098
5099         * python/py-xmethods.c: New file.
5100         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5101         (objfpy_dealloc): XDECREF on the new xmethods field.
5102         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5103         field.
5104         (objfpy_get_xmethods): New function.
5105         (objfile_getset): New entry 'xmethods'.
5106         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5107         (pspy_dealloc): XDECREF on the new xmethods field.
5108         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5109         field.
5110         (pspy_get_xmethods): New function.
5111         (pspace_getset): New entry 'xmethods'.
5112         * python/python-internal.h: Add declarations for new functions.
5113         * python/python.c (_initialize_python): Invoke
5114         gdbpy_initialize_xmethods.
5115         * python/lib/gdb/__init__.py (xmethods): New
5116         attribute.
5117         * python/lib/gdb/xmethod.py: New file.
5118         * python/lib/gdb/command/xmethods.py: New file.
5119
5120 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5121
5122         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5123         best match method returned by find_overload_match is an xmethod.
5124         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5125         the best matching operator returned by find_overload_match is an
5126         xmethod.
5127         * valops.c: #include "extension.h".
5128         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5129         Return void.  The list of matching source methods is returned in
5130         "fn_list" and a vector of matching debug method workers is
5131         returned in "xm_worker_vec".  Update all callers.
5132         (value_find_oload_method_list): Likewise.
5133         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5134         non-NULL, then the index of the best matching method in this
5135         vector is returned.  Update all callers.
5136         (find_overload_match): Include xmethods while performing overload
5137         resolution.
5138
5139 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5140
5141         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5142         * extension-priv.h (struct extension_language_ops): Add the
5143         xmethod interface.
5144         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5145         get_matching_xmethod_workers, get_xmethod_argtypes,
5146         invoke_xmethod, free_xmethod_worker,
5147         free_xmethod_worker_vec): New functions.
5148         * extension.h: #include "common/vec.h".
5149         New function declarations.
5150         (struct xmethod_worker): New struct.
5151         (VEC (xmethod_worker_ptr)): New vector type.
5152         (xmethod_worker_ptr): New typedef.
5153         (xmethod_worker_vec): Likewise.
5154         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5155         builtin_type.
5156         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5157         (struct builtin_type): New field "xmethod".
5158         * valarith.c (value_ptradd): Assert that the value argument is not
5159         lval_xcallable.
5160         * valops.c (value_must_coerce_to_target): Return 0 for
5161         lval_xcallable values.
5162         * value.c (struct value): New field XM_WORKER in the field
5163         LOCATION.
5164         (value_address, value_raw_address): Return 0 for lval_xcallable
5165         values.
5166         (set_value_address): Assert that the value is not an
5167         lval_xcallable.
5168         (value_free): Free the associated xmethod worker when freeing
5169         lval_xcallable values.
5170         (set_value_component_location): Assert that the WHOLE value is not
5171         lval_xcallable.
5172         (value_of_xmethod, call_xmethod): New functions.
5173         * value.h: Declare "struct xmethod_worker".
5174         Declare new functions value_of_xmethod, call_xmethod.
5175
5176 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
5177             Pedro Alves  <palves@redhat.com>
5178
5179         PR breakpoints/17000
5180         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5181         New function, extracted from software_breakpoint_inserted_here_p.
5182         (software_breakpoint_inserted_here_p): Replace factored out code
5183         by call to find_non_raw_software_breakpoint_inserted_here.
5184         (bp_target_info_copy_insertion_state): New function.
5185         (bkpt_insert_location): Handle the case of a single-step
5186         breakpoint already inserted at the same address.
5187         (bkpt_remove_location): Handle the case of a single-step
5188         breakpoint still inserted at the same address.
5189         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5190         breakpoint already inserted at the same address.
5191         (deprecated_remove_raw_breakpoint): Handle the case of a
5192         non-raw breakpoint still inserted at the same address.
5193         (find_single_step_breakpoint): New function, extracted from
5194         single_step_breakpoint_inserted_here_p.
5195         (find_single_step_breakpoint): New function,
5196         factored out from single_step_breakpoint_inserted_here_p.
5197         (single_step_breakpoint_inserted_here_p): Reimplement.
5198
5199 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
5200
5201         Pushed by Joel Brobecker  <brobecker@adacore.com>
5202         * source.c (show_substitute_path_command): Fix display of matching
5203         substitution rules.
5204
5205 2014-06-03  Gary Benson  <gbenson@redhat.com>
5206
5207         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5208
5209 2014-06-02  Doug Evans  <xdje42@gmail.com>
5210
5211         Add parameter support for Guile.
5212         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5213         (SUBDIR_GUILE_SRCS): Add scm-param.c.
5214         (scm-param.o): New rule.
5215         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5216         (gdbscm_misc_error): Declare.
5217         (gdbscm_canonicalize_command_name): Declare.
5218         (gdbscm_scm_to_host_string): Declare.
5219         (gdbscm_scm_from_host_string): Declare.
5220         (gdbscm_initialize_parameters): Declare.
5221         * guile/guile.c (initialize_gdb_module): Call
5222         gdbscm_initialize_parameters.
5223         * guile/lib/gdb.scm: Export parameter symbols.
5224         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5225         cmdscm_canonicalize_name and made public.  All callers updated.
5226         * guile/scm-exception.c (gdbscm_misc_error): New function.
5227         * guile/scm-param.c: New file.
5228         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5229         (gdbscm_scm_to_host_string): New function.
5230         (gdbscm_scm_from_host_string): New function.
5231         * scm-utils.c (gdbscm_gc_dup_argv): New function.
5232
5233 2014-06-02  Doug Evans  <xdje42@gmail.com>
5234
5235         Add command support for Guile.
5236         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5237         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5238         (scm-cmd.o): New rule.
5239         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5240         (gdbscm_user_error_p): Declare.
5241         (gdbscm_parse_command_name): Declare.
5242         (gdbscm_valid_command_class_p): Declare.
5243         (gdbscm_initialize_commands): Declare.
5244         * guile/guile.c (initialize_gdb_module): Call
5245         gdbscm_initialize_commands.
5246         * guile/lib/gdb.scm: Export command symbols.
5247         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5248         (throw-user-error): New function.
5249         * guile/scm-cmd.c: New file.
5250         * guile/scm-exception.c (user_error_symbol): New static global.
5251         (gdbscm_user_error_p): New function.
5252         (gdbscm_initialize_exceptions): Set user_error_symbol.
5253         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5254
5255 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5256
5257         * top.c (command_loop): Handle comments here...
5258         (command_line_input): ... not here.
5259
5260 2014-06-02  Doug Evans  <xdje42@gmail.com>
5261
5262         Add progspace support for Guile.
5263         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5264         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5265         (scm-progspace.o): New rule.
5266         * guile/guile-internal.h (pspace_smob): New typedef.
5267         (psscm_pspace_smob_pretty_printers): Declare.
5268         (psscm_pspace_smob_from_pspace): Declare.
5269         (psscm_scm_from_pspace): Declare.
5270         * guile/guile.c (initialize_gdb_module): Call
5271         gdbscm_initialize_pspaces.
5272         * guile/lib/gdb.scm: Export progspace symbols.
5273         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5274         support.
5275         (append-pretty-printer!): Ditto.
5276         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5277         Implement.
5278         * guile/scm-progspace.c: New file.
5279
5280 2014-06-03  Alan Modra  <amodra@gmail.com>
5281
5282         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5283         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5284
5285 2014-06-02  Doug Evans  <dje@google.com>
5286
5287         Add support for skeletonless type units.
5288         * dwarf2read.c (struct dwarf2_per_objfile): New member
5289         n_allocated_type_units.
5290         (struct dwarf2_per_objfile) <tu_stats>: New member
5291         nr_all_type_units_reallocs.
5292         (create_signatured_type_table_from_index): Initialize
5293         n_allocated_type_units
5294         (create_all_type_units): Ditto.
5295         (add_type_unit): Move up in file.  New arg slot.
5296         All callers updated.  Increase space for all_type_units more
5297         efficiently.
5298         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5299         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5300         (lookup_dwp_signatured_type): Ditto.
5301         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5302         All callers updated.
5303         (build_type_psymtabs_1): Leave type_unit_groups as
5304         NULL if no TUs present.
5305         (print_tu_stats): New function.
5306         (process_skeletonless_type_unit): New function.
5307         (process_dwo_file_for_skeletonless_type_units): New
5308         function.
5309         (process_skeletonless_type_units): New function.
5310         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5311         Call print tu_stats if debugging enabled.
5312
5313 2014-06-02  Pedro Alves  <palves@redhat.com>
5314
5315         * breakpoint.c (build_target_command_list): Don't build a command
5316         list if we have any duplicate location that isn't a dprintf.
5317
5318 2014-06-02  Pedro Alves  <palves@redhat.com>
5319
5320         * breakpoint.c (dprintf_breakpoint_hit): New function.
5321         (initialize_breakpoint_ops): Install it as dprintf's
5322         breakpoint_hit method.
5323
5324 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5325
5326         * source.c (substitute_path_rule_matches): Simplify using
5327         filename_ncmp instead of FILENAME_CMP.
5328
5329 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5330
5331         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5332
5333 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5334
5335         * configure.ac: When Guile is available, check for the
5336         availability of 'scm_new_smob'.
5337         * configure, config.h.in: Regenerate.
5338         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5339         function.
5340
5341 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5342
5343         * frame.c (struct frame_info): Add stop_string field.
5344         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5345         (get_prev_frame_always): Old content moved into
5346         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5347         TRY_CATCH, handle MEMORY_ERROR exceptions.
5348         (frame_stop_reason_string): New function definition.
5349         * frame.h (unwind_stop_reason_to_string): Extend comment to
5350         mention frame_stop_reason_string.
5351         (frame_stop_reason_string): New function declaration.
5352         * stack.c (frame_info): Switch to frame_stop_reason_string.
5353         (backtrace_command_1): Switch to frame_stop_reason_string.
5354         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5355         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5356         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5357
5358 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5359
5360         * frame.c (frame_stop_reason_string): Rename to ...
5361         (unwind_stop_reason_to_string): this.
5362         * frame.h (frame_stop_reason_string): Rename to ...
5363         (unwind_stop_reason_to_string): this.
5364         * stack.c (frame_info): Update call to frame_stop_reason_string.
5365         (backtrace_command_1): Likewise.
5366         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5367         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5368
5369 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5370
5371         * frame.c (remove_prev_frame): New function.
5372         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5373         remove_prev_frame.
5374
5375 2014-05-29  Pedro Alves  <palves@redhat.com>
5376
5377         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5378         and make it const.  When a single-step decays to a continue,
5379         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5380         to step to user_visible_resume_ptid, not what we ask the
5381         target to do.
5382
5383 2014-05-29  Pedro Alves  <palves@redhat.com>
5384
5385         * infrun.c (process_event_stop_test, handle_step_into_function)
5386         (handle_step_into_function_backward): Adjust.
5387         Don't set the even thread's stop_step and call stop_waiting before
5388         calling end_stepping_range.  Instead do that ...
5389         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5390
5391 2014-05-29  Pedro Alves  <palves@redhat.com>
5392
5393         * infrun.c (stop_stepping): Rename to ...
5394         (stop_waiting): ... this.
5395         (proceed): Update comment.
5396         (process_event_stop_test, handle_inferior_event)
5397         (handle_signal_stop, handle_step_into_function)
5398         (handle_step_into_function_backward): Update.
5399
5400 2014-05-29  Pedro Alves  <palves@redhat.com>
5401
5402         * infcall.c (run_inferior_call): Don't check whether the current
5403         thread is running after the proceed call.
5404
5405 2014-05-29  Pedro Alves  <palves@redhat.com>
5406             Tom Tromey  <tromey@redhat.com>
5407
5408         * NEWS: Mention "maint set target-async", "set mi-async", and that
5409         background execution commands are now always available.
5410         * target.h (target_async_permitted): Update comment.
5411         * target.c (target_async_permitted, target_async_permitted_1):
5412         Default to 1.
5413         (set_target_async_command): Rename to ...
5414         (maint_set_target_async_command): ... this.
5415         (show_target_async_command): Rename to ...
5416         (maint_show_target_async_command): ... this.
5417         (_initialize_target): Adjust.
5418         * infcmd.c (prepare_execution_command): Make extern.
5419         * inferior.h (prepare_execution_command): Declare.
5420         * infrun.c (set_observer_mode): Leave target async alone.
5421         * mi/mi-interp.c (mi_interpreter_init): Install
5422         mi_on_sync_execution_done as sync_execution_done observer.
5423         (mi_on_sync_execution_done): New function.
5424         (mi_execute_command_input_handler): Don't print the prompt if we
5425         just started a synchronous command with an async target.
5426         (mi_on_resume): Check sync_execution before printing prompt.
5427         * mi/mi-main.h (mi_async_p): Declare.
5428         * mi/mi-main.c: Include gdbcmd.h.
5429         (mi_async_p): New function.
5430         (mi_async, mi_async_1): New globals.
5431         (set_mi_async_command, show_mi_async_command, mi_async): New
5432         functions.
5433         (exec_continue): Call prepare_execution_command.
5434         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5435         (mi_execute_async_cli_command): Use mi_async_p.
5436         (_initialize_mi_main): Install "set mi-async".  Make
5437         "target-async" a deprecated alias.
5438
5439 2014-05-29  Pedro Alves  <palves@redhat.com>
5440
5441         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5442         (_initialize_cli_interp): Adjust.
5443         * event-loop.c: Include "observer.h".
5444         (start_event_loop): Notify 'command_error' observers instead of
5445         calling display_gdb_prompt.  Remove FIXME comment.
5446         * event-top.c (display_gdb_prompt): Remove call into the
5447         interpreters.
5448         * inf-loop.c: Include "observer.h".
5449         (inferior_event_handler): Notify 'command_error' observers instead
5450         of calling display_gdb_prompt.
5451         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5452         observers instead of calling display_gdb_prompt.
5453         * interps.c (interp_set): Don't call display_gdb_prompt.
5454         (current_interp_display_prompt_p): Delete.
5455         * interps.h (interp_prompt_p): Delete declaration.
5456         (interp_prompt_p_ftype): Delete.
5457         (struct interp_procs) <prompt_proc_p>: Delete field.
5458         (current_interp_display_prompt_p): Delete declaration.
5459         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5460         (_initialize_mi_interp): Adjust.
5461         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5462         'command_error' observers.
5463         (tui_on_sync_execution_done, tui_on_command_error): New
5464         functions.
5465         (tui_display_prompt_p): Delete.
5466         (_initialize_tui_interp): Adjust.
5467
5468 2014-05-29  Pedro Alves  <palves@redhat.com>
5469
5470         PR gdb/13860
5471         * cli/cli-interp.c: Include infrun.h and observer.h.
5472         (cli_uiout, cli_interp): New globals.
5473         (cli_on_signal_received, cli_on_end_stepping_range)
5474         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5475         functions.
5476         (cli_interpreter_init): Install them as 'end_stepping_range',
5477         'signal_received' 'signal_exited', 'exited' and 'no_history'
5478         observers.
5479         (_initialize_cli_interp): Remove cli_interp local.
5480         * infrun.c (handle_inferior_event): Call the several stop reason
5481         observers instead of printing the stop reason directly.
5482         (end_stepping_range): New function.
5483         (print_end_stepping_range_reason, print_signal_exited_reason)
5484         (print_exited_reason, print_signal_received_reason)
5485         (print_no_history_reason): Make static, and add an uiout
5486         parameter.  Print to that instead of to CURRENT_UIOUT.
5487         * infrun.h (print_end_stepping_range_reason)
5488         (print_signal_exited_reason, print_exited_reason)
5489         (print_signal_received_reason print_no_history_reason): New
5490         declarations.
5491         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5492         'mi_uiout'.
5493         <cli_uiout>: New field.
5494         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5495         uiout for CLI output.  Install 'signal_received',
5496         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5497         observers.
5498         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5499         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5500         (mi_on_no_history): New functions.
5501         (ui_out_free_cleanup): Delete function.
5502         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5503         instead use the one already stored in the MI interpreter data.
5504         (mi_ui_out): Adjust.
5505         * tui/tui-interp.c: Include infrun.h and observer.h.
5506         (tui_interp): New global.
5507         (tui_on_signal_received, tui_on_end_stepping_range)
5508         (tui_on_signal_exited, tui_on_exited)
5509         (tui_on_no_history): New functions.
5510         (tui_init): Install them as 'end_stepping_range',
5511         'signal_received' 'signal_exited', 'exited' and 'no_history'
5512         observers.
5513         (_initialize_tui_interp): Delete tui_interp local.
5514
5515 2014-05-29  Pedro Alves  <palves@redhat.com>
5516
5517         PR gdb/15713
5518         * linux-nat.c (linux_nat_resume_callback): Rename the second
5519         parameter to 'except'.  Skip LP if it points to EXCEPT.
5520         (linux_nat_resume): Don't mark the event lwp as not stopped
5521         before resuming sibling lwps.  Instead ask
5522         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5523         stopped after actually resuming it.
5524         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5525         resuming it.
5526         (wait_lwp): Mark the lwp as stopped here.
5527         (stop_wait_callback): Mark the lwp as not stopped right after
5528         resuming it.  Don't mark lwps as stopped here.
5529         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5530         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5531
5532 2014-05-29  Pedro Alves  <palves@redhat.com>
5533
5534         PR PR15693
5535         * infrun.c (resume): Determine how much to resume depending on
5536         whether the caller wanted a step, not whether we can hardware step
5537         the target.  Mark all threads that we intend to run as running,
5538         unless we're calling an inferior function.
5539         (normal_stop): If the thread is running an infcall, don't finish
5540         thread state.
5541         * target.c (target_resume): Don't mark threads as running here.
5542
5543 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5544
5545         * serial.c (_initialize_serial): Remove support for
5546         the "set remotebaud" and "show remotebaud" commands.
5547         * NEWS: Add entry documenting the removal of that command.
5548
5549 2014-05-28  Yao Qi  <yao@codesourcery.com>
5550
5551         * charset.c: Fix typo in comments.
5552
5553 2014-05-27  Gary Benson  <gbenson@redhat.com>
5554
5555         * utils.c (internal_vproblem): Prompt for a bug report.
5556
5557 2014-05-26  Andy Wingo  <wingo@igalia.com>
5558
5559         * guile/scm-arch.c (arscm_mark_arch_smob):
5560         * guile/scm-block.c (bkscm_mark_block_smob)
5561         (bkscm_mark_block_syms_progress_smob):
5562         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5563         * guile/scm-exception.c (exscm_mark_exception_smob):
5564         * guile/scm-frame.c (frscm_mark_frame_smob):
5565         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5566         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5567         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5568         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5569         (ppscm_mark_pretty_printer_worker_smob):
5570         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5571         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5572         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5573         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5574         mark functions.
5575         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5576         function.
5577
5578 2014-05-26  Andy Wingo  <wingo@igalia.com>
5579             Doug Evans  <xdje42@gmail.com>
5580
5581         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5582         empty_base_class.  All uses updated.
5583         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5584         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5585         Adapt all callers.
5586         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5587         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5588         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5589         (gdbscm_gsmob_has_property_p, add_property_name)
5590         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5591         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5592         (gdb-object-has-property?, gdb-object-properties): Remove.
5593         (gdb-object-kind): Renamed from gsmob-kind.
5594
5595 2014-05-26  Andy Wingo  <wingo@igalia.com>
5596
5597         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5598         * configure: Regenerate.
5599
5600 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5601
5602         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5603
5604 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5605
5606         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5607         (replay_memory_access_read_only, replay_memory_access_read_write)
5608         (replay_memory_access_types, replay_memory_access)
5609         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5610         (cmd_set_record_btrace, cmd_show_record_btrace)
5611         (cmd_show_replay_memory_access): New.
5612         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5613         (record_btrace_remove_breakpoint): Replace
5614         record_btrace_allow_memory_access with replay_memory_access.
5615         (_initialize_record_btrace): Add commands.
5616         * NEWS: Announce it.
5617
5618 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5619
5620         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5621
5622 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5623
5624         * MAINTAINERS (Write After Approval): Move self back from
5625         paper trail.
5626
5627 2014-05-22  Pedro Alves  <palves@redhat.com>
5628
5629         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5630         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5631         (disable_randomization, enum exec_direction_kind)
5632         (execution_direction, stop_registers, start_remote)
5633         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5634         (wait_for_inferior, normal_stop, get_last_target_status)
5635         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5636         (insert_step_resume_breakpoint_at_sal)
5637         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5638         (set_step_info, print_stop_event, signal_stop_state)
5639         (signal_print_state, signal_pass_state, signal_stop_update)
5640         (signal_print_update, signal_pass_update)
5641         (update_signals_program_target, clear_exit_convenience_vars)
5642         (displaced_step_dump_bytes, update_observer_mode)
5643         (signal_catch_update, gdb_signal_from_command): Move
5644         declarations ...
5645         * infrun.h: ... to this new file.
5646         * amd64-tdep.c: Include infrun.h.
5647         * annotate.c: Include infrun.h.
5648         * arch-utils.c: Include infrun.h.
5649         * arm-linux-tdep.c: Include infrun.h.
5650         * arm-tdep.c: Include infrun.h.
5651         * break-catch-sig.c: Include infrun.h.
5652         * breakpoint.c: Include infrun.h.
5653         * common/agent.c: Include infrun.h instead of inferior.h.
5654         * corelow.c: Include infrun.h.
5655         * event-top.c: Include infrun.h.
5656         * go32-nat.c: Include infrun.h.
5657         * i386-tdep.c: Include infrun.h.
5658         * inf-loop.c: Include infrun.h.
5659         * infcall.c: Include infrun.h.
5660         * infcmd.c: Include infrun.h.
5661         * infrun.c: Include infrun.h.
5662         * linux-fork.c: Include infrun.h.
5663         * linux-nat.c: Include infrun.h.
5664         * linux-thread-db.c: Include infrun.h.
5665         * monitor.c: Include infrun.h.
5666         * nto-tdep.c: Include infrun.h.
5667         * procfs.c: Include infrun.h.
5668         * record-btrace.c: Include infrun.h.
5669         * record-full.c: Include infrun.h.
5670         * remote-m32r-sdi.c: Include infrun.h.
5671         * remote-mips.c: Include infrun.h.
5672         * remote-notif.c: Include infrun.h.
5673         * remote-sim.c: Include infrun.h.
5674         * remote.c: Include infrun.h.
5675         * reverse.c: Include infrun.h.
5676         * rs6000-tdep.c: Include infrun.h.
5677         * s390-linux-tdep.c: Include infrun.h.
5678         * solib-irix.c: Include infrun.h.
5679         * solib-osf.c: Include infrun.h.
5680         * solib-svr4.c: Include infrun.h.
5681         * target.c: Include infrun.h.
5682         * top.c: Include infrun.h.
5683         * windows-nat.c: Include infrun.h.
5684         * mi/mi-interp.c: Include infrun.h.
5685         * mi/mi-main.c: Include infrun.h.
5686         * python/py-threadevent.c: Include infrun.h.
5687
5688 2014-05-22  Pedro Alves  <palves@redhat.com>
5689
5690         * infrun.c (handle_inferior_event): Store the exit code for
5691         --return-child-result here, instead of ...
5692         (print_exited_reason): ... here.
5693
5694 2014-05-21  Pedro Alves  <palves@redhat.com>
5695
5696         PR gdb/13860
5697         * gdbthread.h (struct thread_control_state): New field
5698         `command_interp'.
5699         * infrun.c (follow_fork): Copy the new thread control field to the
5700         child fork thread.
5701         (clear_proceed_status_thread): Clear the new thread control field.
5702         (proceed): Set the new thread control field.
5703         * interps.h (command_interp): Declare.
5704         * interps.c (command_interpreter): New global.
5705         (command_interp): New function.
5706         (interp_exec): Set `command_interpreter' while here.
5707         * cli-out.c (cli_uiout_dtor): New function.
5708         (cli_ui_out_impl): Install it.
5709         * mi/mi-interp.c: Include cli-out.h.
5710         (mi_cmd_interpreter_exec): Add comment.
5711         (restore_current_uiout_cleanup): New function.
5712         (ui_out_free_cleanup): New function.
5713         (mi_on_normal_stop): If finishing an execution command started by
5714         a CLI command, or any kind of breakpoint-like event triggered,
5715         print the stop event to the output (CLI) stream.
5716         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5717
5718 2014-05-21  Pedro Alves  <palves@redhat.com>
5719
5720         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5721         current source line having changed.
5722         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5723         * infrun.c (normal_stop): Adjust call to
5724         set_current_sal_from_frame.
5725         * source.c (clear_lines_listed_range): New function.
5726         (set_current_source_symtab_and_line, identify_source_line): Clear
5727         the lines listed range.
5728         (line_info): Handle the first "info line" after the current source
5729         line having changed.
5730         * stack.c (print_stack_frame): Remove center handling.
5731         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5732         center sal.line.
5733
5734 2014-05-21  Pedro Alves  <palves@redhat.com>
5735
5736         * inf-child.c (inf_child_mourn_inferior): New function.
5737         * inf-child.h (inf_child_mourn_inferior): New declaration.
5738         * darwin-nat.c (darwin_mourn_inferior): Use
5739         inf_child_mourn_inferior.
5740         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5741         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5742         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5743         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5744         * windows-nat.c (windows_mourn_inferior): Likewise.
5745
5746 2014-05-21  Doug Evans  <xdje42@gmail.com>
5747
5748         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5749
5750 2014-05-21  Doug Evans  <xdje42@gmail.com>
5751
5752         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5753         (gdbscm_out_of_range_error): Ditto.
5754         (gdbscm_memory_error): Ditto.
5755         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5756         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5757         (gdbscm_out_of_range_error): Update.
5758         (gdbscm_memory_error): Update.
5759         (gdbscm_scm_to_target_string_unsafe): Delete.
5760
5761 2014-05-21  Pedro Alves  <palves@redhat.com>
5762
5763         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5764         globals.
5765         (inf_child_open_target): New function.
5766         (inf_child_open): Use inf_child_open_target to push the target
5767         instead of erroring out.
5768         (inf_child_disconnect, inf_child_close)
5769         (inf_child_maybe_unpush_target): New functions.
5770         (inf_child_target): Install inf_child_disconnect and
5771         inf_child_close.  Store a pointer to the returned object.
5772         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5773         declarations.
5774         * target.c (auto_connect_native_target): New global.
5775         (show_default_run_target): New function.
5776         (find_default_run_target): Return NULL if automatically connecting
5777         to the native target is disabled.
5778         (_initialize_target): Install set/show auto-connect-native-target.
5779         * NEWS: Mention "set auto-connect-native-target", and "target
5780         native".
5781         * linux-nat.c (super_close): New global.
5782         (linux_nat_close): Call super_close.
5783         (linux_nat_add_target): Store a pointer to the base class's
5784         to_close method.
5785         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5786         inf_child_maybe_unpush.
5787         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5788         already pushed.
5789         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5790         the inferior.  Use inf_child_maybe_unpush_target.
5791         (inf_ttrace_attach): Don't push the target if it is already
5792         pushed.
5793         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5794         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5795         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5796         (darwin_attach_pid): Don't push the target if it is already
5797         pushed.
5798         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5799         mourning the inferior.  Use inf_child_maybe_unpush_target.
5800         (gnu_detach): Use inf_child_maybe_unpush_target.
5801         * go32-nat.c (go32_create_inferior): Don't push the target if it
5802         is already pushed.
5803         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5804         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5805         (procfs_open): Rename to ...
5806         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5807         comments.  Can target_preopen before changing node.  Call
5808         inf_child_open_target to push the target explicitly.
5809         (procfs_attach): Don't push the target if it is already pushed.
5810         (procfs_detach): Use inf_child_maybe_unpush_target.
5811         (procfs_create_inferior): Don't push the target if it is already
5812         pushed.
5813         (nto_native_ops): New global.
5814         (procfs_open): Reimplement.
5815         (procfs_native_open): New function.
5816         (init_procfs_targets): Install procfs_native_open as to_open of
5817         "target native".  Store a pointer to the "native" target in
5818         nto_native_ops.
5819         * procfs.c (procfs_attach): Don't push the target if it is already
5820         pushed.
5821         (procfs_detach): Use inf_child_maybe_unpush_target.
5822         (procfs_mourn_inferior): Only unpush the target after mourning the
5823         inferior.  Use inf_child_maybe_unpush_target.
5824         (procfs_init_inferior): Don't push the target if it is already
5825         pushed.
5826         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5827         if it is already pushed.
5828
5829 2014-05-21  Pedro Alves  <palves@redhat.com>
5830
5831         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5832         and "procfs" targets are now called "native" instead.
5833
5834 2014-05-21  Pedro Alves  <palves@redhat.com>
5835
5836         * go32-nat.c (go32_open): Delete.
5837         (go32_target): Don't override the to_open method.
5838
5839 2014-05-21  Pedro Alves  <palves@redhat.com>
5840
5841         * nto-procfs.c (procfs_can_run): New function.
5842         (nto_procfs_ops): New global.
5843         (init_procfs_targets): New, based on procfs_target.  Install
5844         "target native" in addition to "target procfs".
5845         (_initialize_procfs): Call init_procfs_targets instead of adding
5846         the target here.
5847
5848 2014-05-21  Pedro Alves  <palves@redhat.com>
5849
5850         * windows-nat.c (windows_target): Don't override to_shortname,
5851         to_longname or to_doc.
5852
5853 2014-05-21  Pedro Alves  <palves@redhat.com>
5854
5855         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5856         to_doc.
5857
5858 2014-05-21  Pedro Alves  <palves@redhat.com>
5859
5860         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5861         to_shortname, to_longname or to_doc.
5862
5863 2014-05-21  Pedro Alves  <palves@redhat.com>
5864
5865         * go32-nat.c (go32_target): Don't override to_shortname,
5866         to_longname or to_doc.
5867
5868 2014-05-21  Pedro Alves  <palves@redhat.com>
5869
5870         * inf-child.c (inf_child_open): Remove mention of "child".
5871         (inf_child_target): Rename target to "native" instead of "child".
5872
5873 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5874
5875         * Makefile.in (SFILES): Delete "regset.c".
5876         (COMMON_OBS): Delete "regset.o".
5877         * regset.c: Remove.
5878         * regset.h (regset_alloc): Delete prototype.
5879
5880 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5881
5882         * sparc-linux-tdep.c (sparc32_linux_gregset)
5883         (sparc32_linux_fpregset): New static regset structures.
5884         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5885         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5886         'fpregset' fields.
5887         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5888         (sparc64_linux_fpregset): New static regset structures.
5889         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5890         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5891         New static regset structures.
5892         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5893         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5894         New static regset structures.
5895         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5896         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5897         New static regset structures.
5898         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5899         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5900         New static regset structures.
5901         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5902
5903 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5904
5905         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5906         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5907         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5908         for all regmap types and variables.
5909         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5910         (sparc32_linux_supply_core_gregset)
5911         (sparc32_linux_collect_core_gregset)
5912         (sparc32_linux_supply_core_fpregset)
5913         (sparc32_linux_collect_core_fpregset): Likewise.
5914         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5915         (sparc_gregmap, sparc_fpregmap): ... these.
5916         (sparc_supply_gregset, sparc_collect_gregset)
5917         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5918         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5919         (_initialize_sparc_nat): Rename regmaps.
5920         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5921         (sparc_gregmap, sparc_fpregmap): ... these.
5922         (sparc_supply_gregset, sparc_collect_gregset)
5923         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5924         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5925         Rename macros to...
5926         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5927         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5928         Likewise.
5929         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5930         Rename to...
5931         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5932         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5933         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5934         regmaps.
5935         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5936         (sparc32_bsd_fpregset): Rename to...
5937         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5938         (sparc32_bsd_fpregmap): ... these.
5939         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5940         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5941         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5942         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5943         (struct sparc_gregmap, struct sparc_fpregmap)
5944         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5945         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5946         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5947         (sparc32_supply_regset, sparc32_collect_gregset)
5948         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5949         prototypes.
5950         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5951         (sparc64_linux_ptrace_gregmap): ... this.
5952         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5953         (_initialize_sparc64_linux_nat): Rename regmaps.
5954         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5955         (sparc64_linux_core_gregmap): ... this.
5956         (sparc64_linux_supply_core_gregset)
5957         (sparc64_linux_collect_core_gregset)
5958         (sparc64_linux_supply_core_fpregset)
5959         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5960         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5961         (sparc64_sol2_fpregset): Rename to...
5962         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5963         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5964         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5965         regmaps.
5966         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5967         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5968         (sparc64_bsd_fpregset): Rename to...
5969         (struct sparc_gregmap, sparc64_sol2_gregmap)
5970         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5971         (sparc64_bsd_fpregmap): ... these.
5972         (sparc64_supply_gregset, sparc64_collect_gregset)
5973         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5974         prototypes.
5975         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5976         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5977         (sparc64fbsd_gregmap): ... this.
5978         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5979         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5980         Rename regmaps.
5981         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5982         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5983         (sparc64nbsd_collect_fpregset): Likewise.
5984         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5985         (sparc64nbsd_gregmap): ... this.
5986         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5987         regmaps.
5988         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5989         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5990         (sparc64obsd_gregmap): ... this.
5991         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5992         regmaps.
5993         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5994         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5995         (sparc32nbsd_gregmap): ... this.
5996         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5997         regmaps.
5998
5999 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6000
6001         * score-tdep.c (score7_linux_gregset): New static regset
6002         structure.
6003         (score7_linux_regset_from_core_section): Remove dynamic regset
6004         allocation.
6005         (score_gdbarch_init): Drop allocation of tdep structure.
6006         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6007
6008 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6009
6010         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6011         regset structures.
6012         (am33_regset_from_core_section): Remove dynamic regset
6013         allocations.
6014
6015 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6016
6017         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6018         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6019         structures.
6020         (mips_linux_regset_from_core_section): Remove dynamic regset
6021         allocations.
6022         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6023         'gregset64', 'fpregset', and 'fpregset64'.
6024         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6025         deleted tdep fields.
6026
6027 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6028
6029         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6030         regset structures.
6031         (amd64_regset_from_core_section): Remove dynamic regset
6032         allocations.
6033         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6034         structure.
6035         (amd64obsd_regset_from_core_section): Remove dynamic regset
6036         allocation.
6037         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6038         Likewise.
6039         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6040         x86-common regset supply function.
6041         * i386-tdep.c (i386_collect_gregset): Make static.
6042         (i386_gregset): New global regset structure.
6043         (i386_fpregset, i386_xstateregset): New static regset structures.
6044         (i386_regset_from_core_section): Remove dynamic regset
6045         allocations.
6046         (i386_gdbarch_init): Remove initialization of tdep fields
6047         'gregset', 'fpregset', and 'xstateregset'.
6048         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6049         'fpregset', and 'xstateregset'.
6050         (i386_collect_gregset): Remove prototype.
6051         (i386_gregset): New declaration.
6052         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6053         structure.
6054         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6055         allocation.
6056
6057 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6058
6059         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6060         (arm_linux_vfpregset): New static regset structures.
6061         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6062         regset structures.
6063         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6064         and 'vfpregset' fields.
6065
6066 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6067
6068         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6069         (aarch64_linux_fpregset): New static regset structures.
6070         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6071         of regset structures.
6072         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6073         'fpregset' fields.
6074
6075 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6076
6077         * regset.h (struct regset): Remove gdbarch field.
6078         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6079         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6080         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6081         Likewise.
6082         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6083         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6084         (ppc32_linux_vsxregset): Likewise.
6085         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6086         via the regcache instead of the regset.
6087         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6088         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6089         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6090         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6091         Likewise.
6092
6093 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6094
6095         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6096         Constify structures.
6097         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6098         (alphanbsd_aout_gregset): Likewise.
6099         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6100         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6101         Likewise.
6102         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6103         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6104         Likewise.
6105         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6106         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6107         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6108         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6109         * m88k-tdep.c (m88k_gregset): Likewise.
6110         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6111         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6112         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6113         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6114         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6115         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6116         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6117         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6118         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6119         Likewise.
6120         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6121         * sh-tdep.h (sh_corefile_gregset): Likewise.
6122         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6123         * vax-tdep.c (vax_gregset): Likewise.
6124
6125 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6126
6127         Fix TLS access for -static -pthread.
6128         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6129         (try_thread_db_load_1): Initialize it.
6130         (thread_db_get_thread_local_address): Call it if LM is zero.
6131         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6132         * target.h (struct target_ops) (to_get_thread_local_address): Add
6133         load_module_addr comment.
6134
6135 2014-05-21  Pedro Alves  <palves@redhat.com>
6136
6137         * dcache.c (dcache_read_memory_partial): If reading the cache line
6138         fails, fallback to reading just the memory the caller wanted.
6139
6140 2014-05-20  Doug Evans  <dje@google.com>
6141
6142         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6143         instead of get_current_arch.
6144
6145 2014-05-20  Pedro Alves  <palves@redhat.com>
6146
6147         * NEWS: Mention that compare-sections now works with all targets.
6148
6149         * remote.c (PACKET_qCRC): New enum value.
6150         (remote_verify_memory): Don't send qCRC if the target has no
6151         execution.  Use packet_support/packet_ok.  If the target doesn't
6152         support the qCRC packet, fallback to a deep memory copy.
6153         (compare_sections_command): Say "target image" instead of "remote
6154         executable".
6155         (_initialize_remote): Add PACKET_qCRC to the list of config
6156         packets that have no associated command.  Extend comment.
6157         * target.c (simple_verify_memory, default_verify_memory): New
6158         function.
6159         * target.h (struct target_ops) <to_verify_memory>: Default to
6160         default_verify_memory.
6161         (simple_verify_memory): New declaration.
6162         * target-delegates.c: Regenerate.
6163
6164 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
6165
6166         * record-btrace.c (record_btrace_step_thread): Check for empty history.
6167
6168 2014-05-20  Hui Zhu  <hui@codesourcery.com>
6169             Yao Qi  <yao@codesourcery.com>
6170
6171         PR backtrace/16558
6172         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6173         and change address of sp and pc.
6174
6175 2014-05-19  Tom Tromey  <tromey@redhat.com>
6176
6177         * gdbtypes.c (rank_function): Use XNEWVEC.
6178         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6179
6180 2014-05-19  Doug Evans  <dje@google.com>
6181
6182         * dwarf2read.c (build_type_psymtabs_1): Renamed from
6183         build_type_unit_groups and moved closer to only caller.  Remove
6184         arguments.  All references updated.  Remove outdated .gdb_index
6185         comment.
6186         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6187         build_type_psymtabs_1.
6188
6189 2014-05-19  Doug Evans  <dje@google.com>
6190
6191         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6192         n_type_unit_groups, all_type_unit_groups.  All uses removed.
6193         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6194         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
6195         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
6196         (add_type_unit_group_to_table): Delete.
6197
6198 2014-05-19  Doug Evans  <dje@google.com>
6199
6200         * eval.c (evaluate_subexp_standard): Add some comments.
6201
6202 2014-05-17  Doug Evans  <xdje42@gmail.com>
6203
6204         * progspace.c (remove_program_space): Delete, unused.
6205         * progspace.h (remove_program_space): Ditto.
6206
6207 2014-05-17  Doug Evans  <xdje42@gmail.com>
6208
6209         * inferior.c (prune_inferiors): Fix comment.
6210         (remove_inferior_command): Call prune_program_spaces.
6211
6212 2014-05-16  Doug Evans  <dje@google.com>
6213
6214         New command line option -D.
6215         * NEWS: Mention it.
6216         * main.c (set_gdb_data_directory): New function.
6217         (captured_main): Recognize -D.  Flag error for --data-directory "".
6218         Call set_gdb_data_directory.
6219         (print_gdb_help): Print --data-directory, -D.
6220         * main.h (set_gdb_data_directory): Declare.
6221         * top.c (staged_gdb_datadir): New static global.
6222         (set_gdb_datadir): Call set_gdb_data_directory
6223         (show_gdb_datadir): New function.
6224         (init_main): Update init of data-directory parameter.
6225
6226 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
6227
6228         Import the "dirfd" gnulib module.
6229         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6230         * gnulib/aclocal.m4: Update.
6231         * gnulib/config.in: Update.
6232         * gnulib/configure: Update.
6233         * gnulib/import/Makefile.am: Update.
6234         * gnulib/import/Makefile.in: Update.
6235         * gnulib/import/dirfd.c: New.
6236         * gnulib/import/m4/dirfd.m4: New.
6237         * gnulib/import/m4/gnulib-cache.m4: Update.
6238         * gnulib/import/m4/gnulib-comp.m4: Update.
6239
6240 2014-05-16  Pierre Muller  <muller@sourceware.org>
6241             Yao Qi  <yao@codesourcery.com>
6242
6243         * valprint.c (print_wchar): Move the code on checking whether
6244         W is a printable wide char to the default branch of switch
6245         statement below.  Call wchar_printable instead of gdb_iswprint.
6246
6247 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6248
6249         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6250         ldr.w and ldrd instructions.
6251
6252 2014-05-15  Doug Evans  <dje@google.com>
6253
6254         * dwarf2read.c (read_structure_type): Delete outdated comments.
6255
6256 2014-05-14  Tom Tromey  <tromey@redhat.com>
6257
6258         * macrocmd.c (print_macro_definition): Reindent.
6259
6260 2014-05-13  Doug Evans  <xdje42@gmail.com>
6261
6262         * python/py-cmd.c (cmdpy_completer): Add comment.
6263         (completers): Make const.
6264
6265 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6266
6267         * infrun.c (resume): Remove should_resume (unused).  Move up
6268         declaration of resume_ptid.
6269
6270 2014-05-13  Tom Tromey  <tromey@redhat.com>
6271
6272         * language.h (unop_type_check): Remove.
6273         (binop_type_check): Don't declare.
6274
6275 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6276
6277         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6278         call to regcache_raw_collect.
6279
6280 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6281
6282         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6283         mi_console->quote as the quoting character.
6284
6285 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6286
6287         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6288
6289 2014-04-29  Tom Tromey  <tromey@redhat.com>
6290
6291         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6292         "show debug varobj".
6293
6294 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6295
6296         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6297         * aarch64-tdep.c (aarch64_software_single_step): New function.
6298         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6299         with aarch64_software_single_step.
6300
6301 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6302
6303         GDB 7.7.1 released.
6304
6305 2014-05-05  Keith Seitz  <keiths@redhat.com>
6306
6307         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6308         variable or history value is successfully parsed.
6309
6310 2014-05-05  Yao Qi  <yao@codesourcery.com>
6311             Pedro Alves  <palves@redhat.com>
6312
6313         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6314         address of blocks that intersects the requested range.  Trim
6315         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6316         sections.
6317         * ctf.c (ctf_xfer_partial): Likewise.
6318
6319 2014-05-05  Yao Qi  <yao@codesourcery.com>
6320
6321         * printcmd.c (display_command): Remove the check to
6322         target_has_execution.
6323
6324 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6325
6326         * ppcobsd-nat.c: Include "obsd-nat.h".
6327         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6328         add_target.
6329         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6330
6331 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6332
6333         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6334         and 16-bit signed and unsigned arguments.  Update comment.
6335         (stap_parse_probe_arguments): Extend code to handle such
6336         arguments.  Use warning instead of complaint to notify about
6337         unrecognized bitness.
6338
6339 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6340
6341         PR breakpoints/16889
6342         * stap-probe.c (stap_parse_probe_arguments): Simplify
6343         check for non-prefixed probes (i.e., probes whose
6344         arguments do not start with "N@").  Always set the
6345         argument type to a sane value.
6346
6347 2014-05-01  David Taylor  <dtaylor@emc.com>
6348
6349         * remote.c (compare_sections_command): Add -r option to compare
6350         all loadable read-only sections.
6351
6352 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6353
6354         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6355         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6356         Update all callers.
6357         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6358         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6359         Remove unused CORE_ADDR argument.  Update all callers.
6360
6361 2014-04-29  Pedro Alves  <palves@redhat.com>
6362
6363         * remote.c (struct packet_config) <detect>: Extend comment.
6364         (add_packet_config_cmd): Don't set the config's detect or support
6365         fields here.
6366         (init_all_packet_configs): Also initialize the config's 'detect'
6367         field.
6368         (reset_all_packet_configs_support): New function.
6369         (remote_open_1): Call reset_all_packet_configs_support instead of
6370         init_all_packet_configs.
6371         (_initialize_remote): Initialize all packet configs.  Assert that
6372         all packets have an associated command, except a few known
6373         outliers.
6374
6375 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6376
6377         * dwarf2read.c (read_subrange_type): Handle dynamic
6378         DW_AT_lower_bound attributes.
6379
6380 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6381
6382         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6383         dynamic bounds before computing its upper bound.
6384         (ada_discrete_type_low_bound): Same as above with the lower bound.
6385
6386 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6387
6388         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6389         range types.  Adjust the array handling implementation to
6390         take advantage of this change.
6391         (resolve_dynamic_range): New function, mostly extracted from
6392         resolve_dynamic_bounds.
6393         (resolve_dynamic_array): New function, mostly extracted from
6394         resolve_dynamic_bounds.
6395         (resolve_dynamic_bounds): Delete.
6396         (resolve_dynamic_type): Reimplement.  Add handling of
6397         TYPE_CODE_RANGE types.
6398
6399 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6400
6401         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6402         handling of parallel ___XA types.
6403
6404 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6405
6406         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6407         unnecessary second call to static_unwrap_type.
6408
6409 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6410
6411         * stack.c (print_frame_info): Call do_gdb_disassembly with
6412         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6413
6414 2014-04-26  Doug Evans  <xdje42@gmail.com>
6415
6416         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6417
6418 2014-04-25  Pedro Alves  <palves@redhat.com>
6419
6420         PR server/16255
6421         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6422         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6423         and newline from built string.
6424         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6425         (linux_ptrace_attach_fail_reason): ... this.
6426         * linux-nat.c (linux_nat_attach): Adjust to use
6427         linux_ptrace_attach_fail_reason.
6428
6429 2014-04-25  Pedro Alves  <palves@redhat.com>
6430
6431         * remote.c (struct remote_state): Remove multi_process_aware,
6432         non_stop_aware, cond_tracepoints, cond_breakpoints,
6433         breakpoint_commands, fast_tracepoints, static_tracepoints,
6434         install_in_trace, disconnected_tracing,
6435         enable_disable_tracepoints, string_tracing, and
6436         augmented_libraries_svr4_read fields.
6437         (remote_multi_process_p): Move further below in the file.
6438         (struct packet_config): Add comments.
6439         (update_packet_config): Delete function.
6440         (show_packet_config_cmd): Use packet_config_support.
6441         (add_packet_config_cmd): Use NULL as set callback.
6442         (packet_ok): "set remote foo-packet"-style commands no longer
6443         change config->supported -- adjust.
6444         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6445         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6446         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6447         (PACKET_QNonStop, PACKET_multiprocess_feature)
6448         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6449         (PACKET_DisconnectedTracing_feature)
6450         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6451         (set_remote_protocol_packet_cmd): Delete function.
6452         (packet_config_support, packet_support): New functions.
6453         (set_remote_protocol_Z_packet_cmd): Don't call
6454         update_packet_config.
6455         (remote_query_attached, remote_pass_signals)
6456         (remote_program_signals, remote_threads_info)
6457         (remote_threads_extra_info, remote_start_remote): Use
6458         packet_support.
6459         (remote_start_remote): Use packet_config_support and
6460         packet_support.
6461         (init_all_packet_configs): Set all packets to unknown support,
6462         instead of calling update_packet_config.
6463         (remote_check_symbols): Use packet_support.
6464         (remote_supported_packet): Unconditionally set the packet config's
6465         support status.
6466         (remote_multi_process_feature, remote_non_stop_feature)
6467         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6468         (remote_breakpoint_commands_feature)
6469         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6470         (remote_install_in_trace_feature)
6471         (remote_disconnected_tracing_feature)
6472         (remote_enable_disable_tracepoint_feature)
6473         (remote_string_tracing_feature)
6474         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6475         (remote_protocol_features): Adjust to use remote_supported_packet
6476         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6477         "ConditionalTracepoints", "ConditionalBreakpoints",
6478         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6479         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6480         "EnableDisableTracepoints", and "tracenz".
6481         (remote_query_supported): Use packet_support.
6482         (remote_open_1): Adjust.
6483         (extended_remote_attach_1): Use packet_support.  Switch on the
6484         result of packet_ok instead of checking whether the packet ended
6485         up disabled.
6486         (remote_vcont_resume): Use packet_support.
6487         (remote_resume, remote_stop_ns, fetch_register_using_p)
6488         (remote_prepare_to_store, store_register_using_P)
6489         (check_binary_download, remote_write_bytes): Use packet_support.
6490         (remote_vkill): Use packet_support.  Switch on the result of
6491         packet_ok instead of checking whether the packet ended up
6492         disabled.
6493         (extended_remote_supports_disable_randomization): Use
6494         packet_support.
6495         (extended_remote_run): Switch on the result of packet_ok instead
6496         of checking whether the packet ended up disabled.
6497         (remote_insert_breakpoint, remote_remove_breakpoint)
6498         (remote_insert_watchpoint, remote_remove_watchpoint)
6499         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6500         packet_support.
6501         (remote_search_memory): Use packet_config_support.
6502         (remote_get_thread_local_address, remote_get_tib_address)
6503         (remote_hostio_send_command, remote_can_execute_reverse): Use
6504         packet_support.
6505         (remote_supports_cond_tracepoints)
6506         (remote_supports_cond_breakpoints)
6507         (remote_supports_fast_tracepoints)
6508         (remote_supports_static_tracepoints)
6509         (remote_supports_install_in_trace)
6510         (remote_supports_enable_disable_tracepoint)
6511         (remote_supports_string_tracing)
6512         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6513         the packet config says the feature is enabled or disabled.
6514         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6515         (remote_get_trace_status): Use packet_support.
6516         (remote_set_disconnected_tracing): Adjust to check whether the
6517         feature is enabled with packet_support.
6518         (remote_set_trace_buffer_size, remote_use_agent)
6519         (remote_can_use_agent, remote_supports_btrace): Use
6520         packet_support.
6521         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6522         Use packet_config_support.
6523         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6524         the packet config says the feature is enabled or disabled.
6525         (set_range_stepping): Use packet_support.
6526
6527 2014-04-25  Tom Tromey  <tromey@redhat.com>
6528
6529         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6530         argument.
6531
6532 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6533
6534         * NEWS: Mention support for C99 variable length arrays.
6535
6536 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6537
6538         * ada-lang.c (standard_exc): Expand introductory comment.
6539
6540 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6541             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6542
6543         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6544         AVX512 registers.
6545         (amd64_linux_read_description): Add code to handle AVX512 xstate
6546         mask and return respective tdesc.
6547         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6548         and features/i386/x32-avx512-linux.c.
6549         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6550         (amd64_linux_core_read_description): Add code to handle AVX512
6551         xstate mask and return respective tdesc.
6552         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6553         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6554         calculation.
6555         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6556         (tdesc_amd64_avx512_linux): New prototype.
6557         (tdesc_x32_avx512_linux): Likewise.
6558         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6559         features/i386/x32-avx512.c.
6560         (amd64_ymm_avx512_names): New register names for pseudo
6561         registers YMM16-31.
6562         (amd64_ymmh_avx512_names): New register names for raw registers
6563         YMMH16-31.
6564         (amd64_k_names): New register names for K registers.
6565         (amd64_zmmh_names): New register names for ZMM raw registers.
6566         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6567         (amd64_xmm_avx512_names): New register names for XMM16-31
6568         registers.
6569         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6570         registers.
6571         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6572         if feature is present.
6573         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6574         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6575         (AMD64_NUM_REGS): Adjust to new number of registers.
6576         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6577         registers supplied via XSTATE by AVX512 registers.
6578         (i386_linux_read_description): Add case for AVX512.
6579         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6580         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6581         (i386_linux_core_read_description): Add case for AVX512.
6582         (i386_linux_init_abi): Install supported register note section
6583         for AVX512.
6584         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6585         AVX512.
6586         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6587         registers to be number of zmm7h + 1.
6588         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6589         * i386-tdep.c: Include features/i386/i386-avx512.c.
6590         (i386_zmm_names): Add ZMM pseudo register names array.
6591         (i386_zmmh_names): Add ZMM raw register names array.
6592         (i386_k_names): Add K raw register names array.
6593         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6594         registers. AVX512 has 16 more ZMM registers than there are YMM
6595         registers.
6596         (i386_zmmh_regnum_p): Add function to look up register number of
6597         ZMM raw registers.
6598         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6599         (i386_k_regnum_p): Likewise for K raw registers.
6600         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6601         registers added by AVX512.
6602         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6603         registers added by AVX512.
6604         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6605         added by AVX512.
6606         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6607         (i386_pseudo_register_name): Add ZMM pseudo registers.
6608         (i386_zmm_type): Construct and return vector registers type for ZMM
6609         registers.
6610         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6611         ZMM0-31 pseudo registers and K registers.
6612         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6613         and YMM16-31 registers from register cache.
6614         (i386_pseudo_register_write): Add code to write  K, ZMM and
6615         YMM16-31 registers.
6616         (i386_register_reggroup_p): Add code to include/exclude AVX512
6617         registers in/from respective register groups.
6618         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6619         registers if feature is present in xcr0.
6620         (i386_gdbarch_init): Add code to initialize AVX512 feature
6621         variables in tdep structure, wire in pseudo registers and call
6622         initialize_tdesc_i386_avx512.
6623         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6624         variables.
6625         (i386_regnum): Add AVX512 registers.
6626         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6627         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6628         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6629         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6630         512 bits wide.
6631         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6632         (i386_ymm_avx512_regnum_p): Likewise.
6633         (i386_k_regnum_p): Likewise.
6634         (i386_zmm_regnum_p): Likewise.
6635         (i386_zmmh_regnum_p): Likewise.
6636         * i387-tdep.c : Update year in copyright notice.
6637         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6638         XSAVE buffer.
6639         (XSAVE_YMM_AVX512_ADDR): New macro.
6640         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6641         XSAVE buffer.
6642         (XSAVE_XMM_AVX512_ADDR): New macro.
6643         (xsave_avx512_k_offset): New table for K register offsets in
6644         XSAVE buffer.
6645         (XSAVE_AVX512_K_ADDR): New macro.
6646         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6647         in XSAVE buffer.
6648         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6649         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6650         buffer.
6651         (i387_collect_xsave): Add code to collect AVX512 registers from
6652         XSAVE buffer.
6653         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6654         of XMM16-31 registers.
6655         (I387_NUM_K_REGS): New define for number of K registers.
6656         (I387_K0_REGNUM): New define for K0 register number.
6657         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6658         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6659         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6660         registers.
6661         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6662         (I387_XMM16_REGNUM): New define for XMM16 register number.
6663         (I387_YMM0_REGNUM): New define for YMM0 register number.
6664         (I387_KEND_REGNUM): New define for last K register number.
6665         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6666         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6667         number.
6668         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6669         number.
6670         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6671         size.
6672         * features/Makefile: Add AVX512 related files.
6673         * features/i386/32bit-avx512.xml: New file.
6674         * features/i386/64bit-avx512.xml: Likewise.
6675         * features/i386/amd64-avx512-linux.c: Likewise.
6676         * features/i386/amd64-avx512-linux.xml: Likewise.
6677         * features/i386/amd64-avx512.c: Likewise.
6678         * features/i386/amd64-avx512.xml: Likewise.
6679         * features/i386/i386-avx512-linux.c: Likewise.
6680         * features/i386/i386-avx512-linux.xml: Likewise.
6681         * features/i386/i386-avx512.c: Likewise.
6682         * features/i386/i386-avx512.xml: Likewise.
6683         * features/i386/x32-avx512-linux.c: Likewise.
6684         * features/i386/x32-avx512-linux.xml: Likewise.
6685         * features/i386/x32-avx512.c: Likewise.
6686         * features/i386/x32-avx512.xml: Likewise.
6687         * regformats/i386/amd64-avx512-linux.dat: New file.
6688         * regformats/i386/amd64-avx512.dat: Likewise.
6689         * regformats/i386/i386-avx512-linux.dat: Likewise.
6690         * regformats/i386/i386-avx512.dat: Likewise.
6691         * regformats/i386/x32-avx512-linux.dat: Likewise.
6692         * regformats/i386/x32-avx512.dat: Likewise.
6693         * NEWS: Add note about new support for AVX512.
6694
6695
6696 2014-04-23  Pedro Alves  <palves@redhat.com>
6697
6698         * breakpoint.c (insert_bp_location): Tolerate errors if the
6699         breakpoint is set in a user-loaded objfile.
6700         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6701         location is marked shlib_disabled.  If the breakpoint is set in a
6702         user-loaded objfile is a GDB-side memory breakpoint, validate it
6703         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6704         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6705         flag.
6706         * mem-break.c (memory_validate_breakpoint): New function.
6707         * objfiles.c (userloaded_objfile_contains_address_p): New
6708         function.
6709         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6710         * target.h (memory_validate_breakpoint): New declaration.
6711
6712 2014-04-23  Pedro Alves  <palves@redhat.com>
6713
6714         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6715         the breakpoint is set in a shared library, only suppress
6716         errors for software breakpoints, not hardware breakpoints.
6717
6718 2014-04-22  Pedro Alves  <palves@redhat.com>
6719
6720         * infrun.c (schedlock_applies): New function, factored out from
6721         find_thread_needs_step_over.
6722         (find_thread_needs_step_over): Use it.
6723         (switch_back_to_stepped_thread): Always clear trap_expected if the
6724         step over is finished.  Return early if scheduler locking applies.
6725         Look for the stepping thread and a potential step-over thread with
6726         a single loop.
6727         (currently_stepping_or_nexting_callback): Delete.
6728
6729 2014-04-22  Nick Clifton  <nickc@redhat.com>
6730
6731         * NEWS: Mention that ARM sim now supports tracing.
6732
6733 2014-04-22  Yao Qi  <yao@codesourcery.com>
6734
6735         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6736         to ...
6737         * tracefile.c (tracefile_fetch_registers): ... it.  New
6738         function.
6739         * tracefile.h (tracefile_fetch_registers): Declare.
6740         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6741         tracefile_fetch_registers.
6742
6743 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6744
6745         PR gdb/14018
6746         * windows-nat.c (thread_rec): Don't display a warning when
6747         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6748         fails for any reason, set th->suspended to -1, so that we don't
6749         try to resume such a thread.  Also, don't return NULL in these
6750         cases, to avoid completely ruin the session due to "PC register is
6751         not available" error.
6752         (do_windows_fetch_inferior_registers): Check errors in
6753         GetThreadContext call.
6754         (windows_continue): Accept an additional argument KILLED; if not
6755         zero, ignore errors in the SetThreadContext call, since the
6756         inferior was killed and is shutting down.
6757         (windows_resume, get_windows_debug_event)
6758         (windows_create_inferior, windows_mourn_inferior)
6759         (windows_kill_inferior): All callers of windows_continue changed
6760         to adjust to its new calling sequence.
6761
6762 2014-04-19  Yao Qi  <yao@codesourcery.com>
6763
6764         * ctf.c (ctf_open): Call post_create_inferior.
6765
6766 2014-04-19  Yao Qi  <yao@codesourcery.com>
6767
6768         * ctf.c (handle_id): New static variable.
6769         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6770         value.  Get the declaration of event "register" and get length
6771         of field "contents".
6772
6773 2014-04-19  Yao Qi  <yao@codesourcery.com>
6774
6775         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6776
6777 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6778
6779         * valops.c (oload_method_static): Remove unnecessary argument
6780         METHOD.  Update all callers.
6781
6782 2014-04-18  Pedro alves  <palves@redhat.com>
6783             Tom Tromey  <tromey@redhat.com>
6784
6785         PR backtrace/15558
6786         * frame.c (get_prev_frame_1): Rename to ...
6787         (get_prev_frame_always): ... this, and make extern.  Adjust.
6788         (skip_artificial_frames): Use get_prev_frame_always.
6789         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6790         (get_frame_unwind_stop_reason): Adjust to rename.
6791         * frame.h (get_prev_frame_always): Declare.
6792         * inline-frame.c: Include frame.h.
6793         (inline_frame_this_id): Use get_prev_frame_always.
6794
6795 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6796
6797         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6798         code by using bfd_mach_o_get_base_address.
6799
6800 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6801
6802         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6803         (spu_ax_pseudo_register_collect): New function.
6804         (spu_ax_pseudo_register_push_stack): Likewise.
6805         (spu_dwarf_reg_to_regnum): Likewise.
6806         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6807
6808 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6809
6810         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6811         Replace FRAME argument with FRAME_ID.
6812         * gdbarch.c, gdbarch.h: Regenerate.
6813         * findvar.c (default_value_from_register): Add GDBARCH argument;
6814         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6815         (value_from_register): Update call to gdbarch_value_from_register.
6816         * value.h (default_value_from_register): Update prototype.
6817         * s390-linux-tdep.c (s390_value_from_register): Update interface
6818         and call to default_value_from_register.
6819         * spu-tdep.c (spu_value_from_register): Likewise.
6820
6821         * findvar.c (address_from_register): Remove TYPE argument.
6822         Do not call value_from_register; use gdbarch_value_from_register
6823         with null_frame_id instead.
6824         * value.h (address_from_register): Update prototype.
6825         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6826         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6827         address_from_register interface change.
6828
6829 2014-04-17  Yao Qi  <yao@codesourcery.com>
6830
6831         * gdbtypes.h: Update comments to link to types and macros'
6832         definitions.
6833
6834 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6835
6836         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6837
6838 2014-04-16  Keith Seitz  <keiths@redhat.com>
6839
6840         PR gdb/15827
6841         * dwarf2read.c (skip_one_die): Check that all relative-offset
6842         sibling DIEs fall within range of the current reader's buffer.
6843         (read_partial_die): Likewise.
6844
6845 2014-04-16  Keith Seitz  <keiths@redhat.com>
6846
6847         PR c++/16597
6848         * cp-namespace.c (lookup_symbol_file): If the type name of
6849         `this' is NULL, return immediately.
6850
6851 2014-04-14  Keith Seitz  <keiths@redhat.com>
6852
6853         PR c++/16253
6854         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6855         from symbol_matches_domain in symtab.c. All local callers
6856         of symbol_matches_domain updated.
6857         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6858         search STRUCT_DOMAIN.
6859         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6860         independently.  standard_lookup will do that automatically.
6861         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6862         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6863         (cp_lookup_symbol_in_namespace): Likewise.
6864         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6865         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6866         may return a STRUCT_DOMAIN match.
6867         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6868         * cp-support.c: Include language.h.
6869         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6870         VAR_DOMAIN.
6871         * psymtab.c (match_partial_symbol): Compare the requested
6872         domain with the symbol's domain directly.
6873         (lookup_partial_symbol): Likewise.
6874         * symtab.c (lookup_symbol_in_language): Explain when/why
6875         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6876         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6877         appropriate languages.
6878         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6879         and moved to ada-lang.c
6880         (lookup_block_symbol): Explain that this function only returns
6881         symbol matching the requested DOMAIN.
6882         Compare the requested domain with the symbol's domain directly.
6883         (iterate_over_symbols): Compare the requested domain with the
6884         symbol's domain directly.
6885         * symtab.h (symbol_matches_domain): Remove.
6886
6887 2014-04-14  Tom Tromey  <tromey@redhat.com>
6888
6889         PR c++/15246:
6890         * c-exp.y (type_aggregate_p): New function.
6891         (qualified_name, classify_inner_name): Use it.
6892         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6893         and TYPE_TARGET_TYPE of an enum type.
6894         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6895         an enum type.
6896         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6897         handle TYPE_DECLARED_CLASS.
6898         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6899         types.
6900         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6901         * valops.c (enum_constant_from_type): New function.
6902         (value_aggregate_elt): Use it.
6903         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6904         TYPE_CODE_ENUM.
6905
6906 2014-04-14  Tom Tromey  <tromey@redhat.com>
6907
6908         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6909         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6910         const.
6911         * value.h (value_aggregate_elt): Update.
6912
6913 2014-04-14  Tom Tromey  <tromey@redhat.com>
6914
6915         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6916
6917 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6918
6919         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6920         (evaluate_subexp_standard): Pass noside argument.
6921         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6922         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6923         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6924         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6925         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6926
6927 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6928
6929         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6930         points to a constant blob.
6931
6932 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6933
6934         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6935         property and store it as the high bound and flag the range accordingly.
6936         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6937         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6938         * gdbtypes.h (enum range_flags): New enum.
6939         (struct range_bounds): Add flags member.
6940
6941 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6942
6943         * c-typeprint.c (c_type_print_varspec_suffix): Added
6944         check for not yet resolved high bound. If unresolved, print
6945         "variable length" string to the console instead of random
6946         length.
6947
6948 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6949
6950         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6951         value.
6952         (ada_template_to_fixed_record_type_1): Likewise.
6953         (ada_to_fixed_type_1): Likewise.
6954         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6955         (cp_print_value): Likewise.
6956         * d-valprint.c (dynamic_array_type): Likewise.
6957         * findvar.c (address_of_variable): Likewise.
6958         * jv-valprint.c (java_value_print): Likewise.
6959         * valops.c (value_ind): Likewise.
6960         * value.c (coerce_ref): Likewise.
6961
6962 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6963
6964         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6965         value and retrieve the dynamic type size.
6966
6967 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6968
6969         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6970         passed to sizeof is dynamic evaluate the argument to compute the length.
6971
6972 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6973             Joel Brobecker  <brobecker@adacore.com>
6974
6975         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6976         (dwarf2_evaluate_property): New function.
6977         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6978         * dwarf2read.c (attr_to_dynamic_prop): New function.
6979         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6980         attribute.
6981         * gdbtypes.c: Include dwarf2loc.h.
6982         (is_dynamic_type): New function.
6983         (resolve_dynamic_type): New function.
6984         (resolve_dynamic_bounds): New function.
6985         (get_type_length): New function.
6986         (check_typedef): Use get_type_length to compute type length.
6987         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6988         (TYPE_LOW_BOUND_KIND): New macro.
6989         (is_dynamic_type): New function prototype.
6990         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6991         to resolve dynamic properties of the type. Update comment.
6992         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6993
6994 2014-04-14  Richard Henderson  <rth@redhat.com>
6995
6996         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6997
6998 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6999             Doug Evans  <xdje42@gmail.com>
7000
7001         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7002         dereference TYPE_CODE_REF values.
7003
7004 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7005
7006         Revert the following changes due to regressions:
7007
7008         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7009         (dwarf2_evaluate_property): New function.
7010         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7011         * dwarf2read.c (attr_to_dynamic_prop): New function.
7012         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7013         attribute.
7014         * gdbtypes.c: Include dwarf2loc.h.
7015         (is_dynamic_type): New function.
7016         (resolve_dynamic_type): New function.
7017         (resolve_dynamic_bounds): New function.
7018         (get_type_length): New function.
7019         (check_typedef): Use get_type_length to compute type length.
7020         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7021         (TYPE_LOW_BOUND_KIND): New macro.
7022         (is_dynamic_type): New function prototype.
7023         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7024         to resolve dynamic properties of the type. Update comment.
7025         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7026
7027         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7028         passed to sizeof is dynamic evaluate the argument to compute the length.
7029
7030         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7031         value and retrieve the dynamic type size.
7032
7033         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7034         (ada_template_to_fixed_record_type_1): Likewise.
7035         (ada_to_fixed_type_1): Likewise.
7036         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7037         (cp_print_value): Likewise.
7038         * d-valprint.c (dynamic_array_type): Likewise.
7039         * eval.c (evaluate_subexp_with_coercion): Likewise.
7040         * findvar.c (address_of_variable): Likewise.
7041         * jv-valprint.c (java_value_print): Likewise.
7042         * valops.c (value_ind): Likewise.
7043         * value.c (coerce_ref): Likewise.
7044
7045         * c-typeprint.c (c_type_print_varspec_suffix): Added
7046         check for not yet resolved high bound. If unresolved, print
7047         "variable length" string to the console instead of random
7048         length.
7049
7050         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7051         property and store it as the high bound and flag the range accordingly.
7052         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7053         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7054         * gdbtypes.h (enum range_flags): New enum.
7055         (struct range_bounds): Add flags member.
7056
7057         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7058         points to a constant blob.
7059
7060         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7061         (evaluate_subexp_standard): Pass noside argument.
7062         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7063         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7064         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7065         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7066         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7067
7068 2014-04-11  Keith Seitz  <keiths@redhat.com>
7069
7070         PR c++/16675
7071         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7072         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7073         reference types.
7074
7075 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7076
7077         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7078         (evaluate_subexp_standard): Pass noside argument.
7079         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7080         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7081         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7082         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7083         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7084
7085 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7086
7087         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7088         points to a constant blob.
7089
7090 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7091
7092         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7093         property and store it as the high bound and flag the range accordingly.
7094         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7095         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7096         * gdbtypes.h (enum range_flags): New enum.
7097         (struct range_bounds): Add flags member.
7098
7099 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7100
7101         * c-typeprint.c (c_type_print_varspec_suffix): Added
7102         check for not yet resolved high bound. If unresolved, print
7103         "variable length" string to the console instead of random
7104         length.
7105
7106 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7107
7108         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7109         (ada_template_to_fixed_record_type_1): Likewise.
7110         (ada_to_fixed_type_1): Likewise.
7111         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7112         (cp_print_value): Likewise.
7113         * d-valprint.c (dynamic_array_type): Likewise.
7114         * eval.c (evaluate_subexp_with_coercion): Likewise.
7115         * findvar.c (address_of_variable): Likewise.
7116         * jv-valprint.c (java_value_print): Likewise.
7117         * valops.c (value_ind): Likewise.
7118         * value.c (coerce_ref): Likewise.
7119
7120 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7121
7122         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7123         value and retrieve the dynamic type size.
7124
7125 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7126
7127         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7128         passed to sizeof is dynamic evaluate the argument to compute the length.
7129
7130 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7131
7132         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7133         (dwarf2_evaluate_property): New function.
7134         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7135         * dwarf2read.c (attr_to_dynamic_prop): New function.
7136         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7137         attribute.
7138         * gdbtypes.c: Include dwarf2loc.h.
7139         (is_dynamic_type): New function.
7140         (resolve_dynamic_type): New function.
7141         (resolve_dynamic_bounds): New function.
7142         (get_type_length): New function.
7143         (check_typedef): Use get_type_length to compute type length.
7144         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7145         (TYPE_LOW_BOUND_KIND): New macro.
7146         (is_dynamic_type): New function prototype.
7147         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7148         to resolve dynamic properties of the type. Update comment.
7149         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7150
7151 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7152
7153         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7154         declaring high/low bounds and change uses accordingly. Call
7155         create_range_type instead of create_static_range_type.
7156         * gdbtypes.c (create_range_type): New function.
7157         (create_range_type): Convert bounds into struct bound_prop and pass
7158         them to create_range_type.
7159         * gdbtypes.h (struct bound_prop): New struct.
7160         (create_range_type): New function prototype.
7161         (struct range_bounds): Use struct bound_prop instead of LONGEST for
7162         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7163         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7164         part of the bound.
7165         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7166
7167 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7168
7169         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7170         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7171         * ada-lang.c: All uses of create_range_type updated.
7172         * coffread.c: All uses of create_range_type updated.
7173         * dwarf2read.c: All uses of create_range_type updated.
7174         * f-exp.y: All uses of create_range_type updated.
7175         * m2-valprint.c: All uses of create_range_type updated.
7176         * mdebugread.c: All uses of create_range_type updated.
7177         * stabsread.c: All uses of create_range_type updated.
7178         * valops.c: All uses of create_range_type updated.
7179         * valprint.c: All uses of create_range_type updated.
7180
7181 2014-04-10  Pedro Alves  <palves@redhat.com>
7182
7183         * breakpoint.c (single_step_breakpoints)
7184         (single_step_gdbarch): Move up in the file.
7185         (one_breakpoint_xfer_memory): New function, factored out from ...
7186         (breakpoint_xfer_memory): ... here.  Also process single-step
7187         breakpoints.
7188
7189 2014-04-09  Tristan Gingold  <gingold@adacore.com>
7190
7191         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7192         comments.
7193         (darwin_decode_exception_message): Free port only after use.
7194
7195 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
7196
7197         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7198         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7199         when setting the size of call_length.
7200
7201 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
7202
7203         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7204         dereference TYPE_CODE_REF values.
7205
7206 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
7207
7208         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7209         end of warning message.
7210
7211 2014-04-03  Doug Evans  <dje@google.com>
7212
7213         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7214         of stub_comp_unit_die, stub_comp_dir is non-NULL.
7215
7216 2014-04-02  Alan Modra  <amodra@gmail.com>
7217
7218         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7219         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
7220         (struct symbol_file_add_from_memory_args): Add size field.
7221         (find_vdso_size): New function.
7222         (add_vsyscall_page): Attempt to find vdso size.
7223
7224 2014-04-01  Doug Evans  <dje@google.com>
7225
7226         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7227
7228 2014-04-01  Tristan Gingold  <gingold@adacore.com>
7229
7230         * darwin-nat.c (darwin_encode_reply): Add prototype.
7231         (darwin_decode_exception_message): Reply to unknown inferiors.
7232         (darwin_decode_message): Handle message by id.  Ignore message
7233         to unknown inferior.
7234         (darwin_wait): Discard unknown messages, add debug trace.
7235
7236 2014-03-31  Doug Evans  <dje@google.com>
7237
7238         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7239         comp_dir_string.
7240
7241 2014-03-31  Doug Evans  <dje@google.com>
7242
7243         New option "set print symbol-loading".
7244         * NEWS: Mention it.
7245         * solib.c (solib_read_symbols): Only print symbol loading messages
7246         if requested.
7247         (solib_add): If symbol loading is in "brief" mode, notify user
7248         symbols are being loaded.
7249         (reload_shared_libraries_1): Ditto.
7250         * symfile.c (print_symbol_loading_off): New static global.
7251         (print_symbol_loading_brief): New static global.
7252         (print_symbol_loading_full): New static global.
7253         (print_symbol_loading_enums): New static global.
7254         (print_symbol_loading): New static global.
7255         (print_symbol_loading_p): New function.
7256         (symbol_file_add_with_addrs): Only print symbol loading messages
7257         if requested.
7258         (_initialize_symfile): Register "print symbol-loading" set/show
7259         command.
7260         * symfile.h (print_symbol_loading_p): Declare.
7261
7262 2014-03-30  Doug Evans  <xdje42@gmail.com>
7263
7264         * infrun.c (set_last_target_status): New function.
7265         (handle_inferior_event): Call it.
7266
7267 2014-03-30  Doug Evans  <xdje42@gmail.com>
7268
7269         * inferior.h (enum stop_kind): Improve comment.
7270
7271 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7272
7273         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7274         a reference, strip the reference layer before calling
7275         the lang_ops value_has_mutated callback.
7276
7277 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7278
7279         Remove some globals from our parser.
7280         * language.c (unk_lang_parser): Add "struct parser_state"
7281         argument.
7282         * language.h (struct language_defn) <la_parser>: Likewise.
7283         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7284         (initialize_expout): Add "struct parser_state" argument.
7285         Rewrite function to use the parser state.
7286         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7287         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7288         write_exp_elt_longcst, write_exp_elt_dblcst,
7289         write_exp_elt_decfloatcst, write_exp_elt_type,
7290         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7291         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7292         write_dollar_variable): Likewise.
7293         (parse_exp_in_context_1): Use parser state.
7294         (insert_type_address_space): Add "struct parser_state" argument.
7295         Use parser state.
7296         (increase_expout_size): New function.
7297         * parser-defs.h: Forward declare "struct language_defn" and
7298         "struct parser_state".
7299         (expout, expout_size, expout_ptr): Remove extern declarations.
7300         (parse_gdbarch, parse_language): Rewrite macro declarations to
7301         accept the parser state.
7302         (struct parser_state): New struct.
7303         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7304         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7305         write_exp_elt_decfloatcst, write_exp_elt_type,
7306         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7307         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7308         write_exp_msymbol, write_dollar_variable,
7309         mark_struct_expression, insert_type_address_space): Add "struct
7310         parser_state" argument.
7311         (increase_expout_size): New function.
7312         * utils.c (do_clear_parser_state): New function.
7313         (make_cleanup_clear_parser_state): Likewise.
7314         * utils.h (make_cleanup_clear_parser_state): New function
7315         prototype.
7316         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7317         Update calls to write_exp* in order to pass the parser state.
7318         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7319         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7320         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7321         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7322         * stap-probe.c (stap_parse_register_operand): Likewise.
7323         (stap_parse_single_operand): Likewise.
7324         (stap_parse_argument_1): Likewise.
7325         (stap_parse_argument): Use parser state.
7326         * stap-probe.h: Include "parser-defs.h".
7327         (struct stap_parse_info) <pstate>: New field.
7328         * c-exp.y (parse_type): Rewrite to use parser state.
7329         (yyparse): Redefine to c_parse_internal.
7330         (pstate): New global variable.
7331         (parse_number): Add "struct parser_state" argument.
7332         (write_destructor_name): Likewise.
7333         (type_exp): Update calls to write_exp* and similars in order to
7334         use parser state.
7335         (exp1, exp, variable, qualified_name, space_identifier,
7336         typename, typebase): Likewise.
7337         (write_destructor_name, parse_number, lex_one_token,
7338         classify_name, classify_inner_name, c_parse): Add "struct
7339         parser_state" argument.  Update function to use parser state.
7340         * c-lang.h: Forward declare "struct parser_state".
7341         (c_parse): Add "struct parser_state" argument.
7342         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7343         (yyparse): Redefine macro to ada_parse_internal.
7344         (pstate): New variable.
7345         (write_int, write_object_renaming, write_var_or_type,
7346         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7347         type_int, type_long, type_long_long, type_float, type_double,
7348         type_long_double, type_char, type_boolean, type_system_address):
7349         Add "struct parser_state" argument.
7350         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7351         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7352         var_or_type, aggregate, aggregate_component_list,
7353         positional_list, others, component_group,
7354         component_associations): Update calls to write_exp* and similar
7355         functions in order to use parser state.
7356         (ada_parse, write_var_from_sym, write_int,
7357         write_exp_op_with_string, write_object_renaming,
7358         find_primitive_type, write_selectors, write_ambiguous_var,
7359         write_var_or_type, write_name_assoc, type_int, type_long,
7360         type_long_long, type_float, type_double, type_long_double,
7361         type_char, type_boolean, type_system_address): Add "struct
7362         parser_state" argument.  Adjust function to use parser state.
7363         * ada-lang.c (parse): Likewise.
7364         * ada-lang.h: Forward declare "struct parser_state".
7365         (ada_parse): Add "struct parser_state" argument.
7366         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7367         calls to both functions.
7368         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7369         parser state.
7370         (yyparse): Redefine macro to f_parse_internal.
7371         (pstate): New variable.
7372         (parse_number): Add "struct parser_state" argument.
7373         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7374         and similars in order to use parser state.
7375         (parse_number): Adjust code to use parser state.
7376         (yylex): Likewise.
7377         (f_parse): New function.
7378         * f-lang.h: Forward declare "struct parser_state".
7379         (f_parse): Add "struct parser_state" argument.
7380         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7381         parser state.
7382         (yyparse): Redefine macro for java_parse_internal.
7383         (pstate): New variable.
7384         (push_expression_name, push_expression_name, insert_exp): Add
7385         "struct parser_state" argument.
7386         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7387         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7388         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7389         PostIncrementExpression, PostDecrementExpression,
7390         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7391         UnaryExpressionNotPlusMinus, CastExpression,
7392         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7393         RelationalExpression, EqualityExpression, AndExpression,
7394         ExclusiveOrExpression, InclusiveOrExpression,
7395         ConditionalAndExpression, ConditionalOrExpression,
7396         ConditionalExpression, Assignment, LeftHandSide): Update
7397         calls to write_exp* and similars in order to use parser state.
7398         (parse_number): Ajust code to use parser state.
7399         (yylex): Likewise.
7400         (java_parse): New function.
7401         (push_variable): Add "struct parser_state" argument.  Adjust
7402         code to user parser state.
7403         (push_fieldnames, push_qualified_expression_name,
7404         push_expression_name, insert_exp): Likewise.
7405         * jv-lang.h: Forward declare "struct parser_state".
7406         (java_parse): Add "struct parser_state" argument.
7407         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7408         parser state.
7409         (yyparse): Redefine macro to m2_parse_internal.
7410         (pstate): New variable.
7411         (type_exp, exp, fblock, variable, type): Update calls to
7412         write_exp* and similars to use parser state.
7413         (yylex): Likewise.
7414         (m2_parse): New function.
7415         * m2-lang.h: Forward declare "struct parser_state".
7416         (m2_parse): Add "struct parser_state" argument.
7417         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7418         * objc-lang.h: Forward declare "struct parser_state".
7419         (end_msglist): Add "struct parser_state" argument.
7420         * p-exp.y (parse_type): Rewrite macro to use parser state.
7421         (yyparse): Redefine macro to pascal_parse_internal.
7422         (pstate): New variable.
7423         (parse_number): Add "struct parser_state" argument.
7424         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7425         write_exp* and similars in order to use parser state.
7426         (parse_number, yylex): Adjust code to use parser state.
7427         (pascal_parse): New function.
7428         * p-lang.h: Forward declare "struct parser_state".
7429         (pascal_parse): Add "struct parser_state" argument.
7430         * go-exp.y (parse_type): Rewrite macro to use parser state.
7431         (yyparse): Redefine macro to go_parse_internal.
7432         (pstate): New variable.
7433         (parse_number): Add "struct parser_state" argument.
7434         (type_exp, exp1, exp, variable, type): Update calls to
7435         write_exp* and similars in order to use parser state.
7436         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7437         to use parser state.
7438         (go_parse): Likewise.
7439         * go-lang.h: Forward declare "struct parser_state".
7440         (go_parse): Add "struct parser_state" argument.
7441
7442 2014-03-27  Doug Evans  <dje@google.com>
7443
7444         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7445
7446 2014-03-27  Doug Evans  <dje@google.com>
7447
7448         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7449         Remove argument abbrev_section.  All callers updated.
7450
7451 2014-03-27  Doug Evans  <dje@google.com>
7452
7453         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7454         addr_base, ranges_base.
7455
7456 2014-03-26  Keith Seitz  <keiths@redhat.com>
7457
7458         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7459         types, not VAR_DOMAIN.
7460
7461 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7462
7463         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7464         "ra" registers.
7465         * features/nios2-linux.c: Regenerated.
7466         * features/nios2.c: Regenerated.
7467
7468 2014-03-25  Pedro Alves  <palves@redhat.com>
7469
7470         * cli/cli-script.c (script_from_file): Force the interpreter to
7471         sync mode.
7472
7473 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7474
7475         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7476         small stack allocation.
7477
7478 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7479
7480         * darwin-nat.c (exc_server): Remove unused prototype.
7481         (darwin_dump_message): Correctly display data on x86_64.
7482         (darwin_encode_reply): Fix style.
7483         Add comments and fix indentation.
7484
7485 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7486
7487         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7488
7489 2014-03-22  Doug Evans  <xdje42@gmail.com>
7490
7491         * infcmd.c: Whitespace fixes.
7492         (interrupt_command): Merge two function comments into one.
7493
7494 2014-03-22  Doug Evans  <xdje42@gmail.com>
7495
7496         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7497         All uses updated.
7498
7499 2014-03-22  Yao Qi  <yao@codesourcery.com>
7500
7501         * remote.c (target_read_live_memory): Remove.
7502         (memory_xfer_live_readonly_partial): Rename it to
7503         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7504         All callers updated.  Call remote_read_bytes_1
7505         instead of target_read_live_memory.
7506         * tracepoint.c (set_traceframe_number): Remove.
7507         (make_cleanup_restore_traceframe_number): Likewise .
7508         * tracepoint.h (set_traceframe_number): Remove declaration.
7509         (make_cleanup_restore_traceframe_number): Likewise.
7510
7511 2014-03-22  Yao Qi  <yao@codesourcery.com>
7512
7513         * remote.c (remote_read_bytes): Move code on reading from the
7514         remote stub to ...
7515         (remote_read_bytes_1): ... here.  New function.
7516
7517 2014-03-22  Yao Qi  <yao@codesourcery.com>
7518
7519         * ctf.c (ctf_xfer_partial): Check the return value of
7520         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7521         return TARGET_XFER_UNAVAILABLE.
7522         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7523         * target.c (target_read_live_memory): Move it to remote.c.
7524         (memory_xfer_live_readonly_partial): Likewise.
7525         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7526         * remote.c (target_read_live_memory): Moved from target.c.
7527         (memory_xfer_live_readonly_partial): Likewise.
7528         (remote_read_bytes): Factored out from
7529         memory_xfer_partial_1.
7530
7531 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7532
7533         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7534         NULL pointer.
7535
7536 2014-03-21  Pedro Alves  <palves@redhat.com>
7537
7538         * infrun.c (normal_stop): Extend comment.
7539
7540 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7541             Pedro Alves  <palves@redhat.com>
7542
7543         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7544         static buffer.
7545         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7546         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7547         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7548
7549 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7550
7551         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7552         `z' formatted output modifier.
7553
7554 2014-03-20  Tom Tromey  <tromey@redhat.com>
7555             Sergio Durigan Junior  <sergiodj@redhat.com>
7556
7557         * probe.c (parse_probes): Turn assert into an ordinary error.
7558         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7559         exceptions when parsing probes.  Rearrange the code for clarity.
7560
7561 2014-03-20  Tom Tromey  <tromey@redhat.com>
7562
7563         PR gdb/14135
7564         * top.c (execute_command): Only dispatch events if the command
7565         started the target.
7566
7567 2014-03-20  Tom Tromey  <tromey@redhat.com>
7568
7569         PR cli/15718
7570         * infcall.c: Include event-top.h.
7571         (run_inferior_call): Call async_disable_stdin if needed.
7572
7573 2014-03-20  Pedro Alves  <palves@redhat.com>
7574
7575         * infrun.c (prepare_to_proceed): Delete.
7576         (thread_still_needs_step_over): New function.
7577         (find_thread_needs_step_over): New function.
7578         (proceed): If the current thread needs a step-over, set its
7579         steping_over_breakpoint flag.  Adjust to use
7580         find_thread_needs_step_over instead of prepare_to_proceed.
7581         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7582         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7583         breakpoint.
7584         (switch_back_to_stepped_thread): Step over breakpoints of all
7585         threads not the stepping thread, before switching back to the
7586         stepping thread.
7587
7588 2014-03-20  Pedro Alves  <palves@redhat.com>
7589
7590         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7591         extern.
7592         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7593         * infrun.c (saved_singlestep_ptid)
7594         (stepping_past_singlestep_breakpoint): Delete.
7595         (resume): Remove stepping_past_singlestep_breakpoint handling.
7596         (proceed): Store the prev_pc of the stepping thread too.
7597         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7598         singlestep_pc.
7599         (enum infwait_states): Delete infwait_thread_hop_state.
7600         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7601         field.
7602         (handle_inferior_event): Adjust.
7603         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7604         handling and the thread-hop code.  Before removing single-step
7605         breakpoints, check whether the thread hit a single-step breakpoint
7606         of another thread.  If it did, the trap is not a random signal.
7607         (switch_back_to_stepped_thread): If the event thread hit a
7608         single-step breakpoint, unblock it before switching to the
7609         stepping thread.  Handle the case of the stepped thread having
7610         advanced already.
7611         (keep_going): Handle the case of the current thread moving past a
7612         single-step breakpoint.
7613
7614 2014-03-20  Pedro Alves  <palves@redhat.com>
7615
7616         PR breakpoints/7143
7617         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7618         are being stepped over.
7619         (breakpoint_address_match): Make extern.
7620         * breakpoint.h (breakpoint_address_match): New declaration.
7621         * inferior.h (stepping_past_instruction_at): New declaration.
7622         * infrun.c (struct step_over_info): New type.
7623         (step_over_info): New global.
7624         (set_step_over_info, clear_step_over_info)
7625         (stepping_past_instruction_at): New functions.
7626         (handle_inferior_event): Clear the step-over info when
7627         trap_expected is cleared.
7628         (resume): Remove now stale comment.
7629         (clear_proceed_status): Clear step-over info.
7630         (proceed): Adjust step-over handling to set or clear the step-over
7631         info instead of removing all breakpoints.
7632         (handle_signal_stop): When setting up a thread-hop, don't remove
7633         breakpoints here.
7634         (stop_stepping): Clear step-over info.
7635         (keep_going): Adjust step-over handling to set or clear step-over
7636         info and then always inserting breakpoints, instead of removing
7637         all breakpoints when stepping over one.
7638
7639 2014-03-20  Pedro Alves  <palves@redhat.com>
7640
7641         * infrun.c (previous_inferior_ptid): Adjust comment.
7642         (deferred_step_ptid): Delete.
7643         (infrun_thread_ptid_changed, prepare_to_proceed)
7644         (init_wait_for_inferior): Adjust.
7645         (handle_signal_stop): Delete deferred_step_ptid handling.
7646
7647 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7648
7649         PR gdb/15358
7650         * defs.h (sync_quit_force_run): New declaration.
7651         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7652         * event-top.c (async_sigterm_handler): New declaration.
7653         (async_sigterm_token): New variable.
7654         (async_init_signals): Create also async_sigterm_token.
7655         (async_sigterm_handler): New function.
7656         (sync_quit_force_run): New variable.
7657         (handle_sigterm): Replace quit_force call by other calls.
7658         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7659
7660 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7661
7662         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7663         offset into SPE pseudo registers.
7664
7665 2014-03-18  Pedro Alves  <palves@redhat.com>
7666
7667         PR gdb/13860
7668         * inferior.h (print_stop_event): Declare.
7669         * infrun.c (print_stop_event): New, factored out from ...
7670         (normal_stop): ... this.
7671         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7672         of bpstat_print/print_stack_frame.
7673
7674 2014-03-17  Tom Tromey  <tromey@redhat.com>
7675
7676         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7677
7678 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7679
7680         * ada-lang.c (decode_constrained_packed_array): Perform a
7681         minimal coercion for reference with coerce_ref instead of
7682         ada_coerce_ref.
7683
7684 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7685
7686         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7687         (darwin_solib_create_inferior_hook): Emit a warning if version
7688         is unhandled.
7689
7690 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7691
7692         * python/py-value.c (get_field_flag): Cast flag_name argument to
7693         PyObject_GetAttrString to support Python 2.4.
7694
7695 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7696
7697         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7698         (Global Maintainers): Remove Jan Kratochvil.
7699
7700 2014-03-14  Pedro Alves  <palves@redhat.com>
7701
7702         * inferior.h (terminal_ours_for_output): Rename to ...
7703         (child_terminal_ours_for_output): ... this.
7704         (terminal_save_ours): Rename to ...
7705         (child_terminal_save_ours): ... this.
7706         (terminal_ours): Rename to ...
7707         (child_terminal_ours): ... this.
7708         (terminal_inferior): Rename to ...
7709         (child_terminal_inferior): ... this.
7710         (terminal_init_inferior): Rename to ...
7711         (child_terminal_init_inferior): ... this.
7712         (terminal_init_inferior_with_pgrp): Rename to ...
7713         (child_terminal_init_inferior_with_pgrp): ... this.
7714         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7715         (child_terminal_init_with_pgrp): ... this.
7716         (terminal_save_ours): Rename to ...
7717         (child_terminal_save_ours): ... this.
7718         (terminal_init_inferior): Rename to ...
7719         (child_terminal_init): ... this.  Adjust.
7720         (terminal_inferior): Rename to ...
7721         (child_terminal_inferior): ... this.
7722         (terminal_ours_for_output): Rename to ...
7723         (child_terminal_ours_for_output): ... this.  Adjust.
7724         (terminal_ours): Rename to ...
7725         (child_terminal_ours): ... this.
7726         (terminal_ours_1): Rename to ...
7727         (child_terminal_ours_1): ... this.  Adjust.
7728         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7729         * windows-nat.c (do_initial_windows_stuff): Adjust.
7730         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7731         (gnu_terminal_init): ... this.  Adjust.
7732         (gnu_target): Adjust.
7733         * inf-child.c (inf_child_target): Adjust.
7734
7735 2014-03-13  Doug Evans  <xdje42@gmail.com>
7736
7737         PR guile/16612
7738         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7739         new eq?-hashtab.
7740
7741 2014-03-13  Doug Evans  <xdje42@gmail.com>
7742
7743         * value.c (record_latest_value): Call release_value_or_incref
7744         instead of release_value.
7745
7746 2014-03-13  Pedro Alves  <palves@redhat.com>
7747
7748         * procfs.c (procfs_target): Don't override to_shortname,
7749         to_longname or to_doc.
7750
7751 2014-03-13  Pedro Alves  <palves@redhat.com>
7752
7753         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7754         Unix in user visible strings.
7755
7756 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7757
7758         * gdbtypes.h: Annotate comments for Doxygen, add a page
7759         block comment with some general info.
7760
7761 2014-03-12  Pedro Alves  <palves@redhat.com>
7762
7763         * infcmd.c (prepare_execution_command): New function, factored out
7764         from several execution commands.
7765         (run_command_1, continue_command, step_1, jump_command)
7766         (signal_command, until_command, advance_command, finish_command)
7767         (attach_command): Use prepare_execution_command.
7768
7769 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7770
7771         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7772         (MAX_BPTS): Define.
7773         (MAX_WPTS): Define.
7774         (struct arm_linux_thread_points): Removed.
7775         (struct arm_linux_process_info): New.
7776         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7777         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7778         (arm_linux_find_breakpoints_by_tid): Removed.
7779         (struct arch_lwp_info): New.
7780         (arm_linux_find_process_pid): New functions.
7781         (arm_linux_add_process): New functions.
7782         (arm_linux_process_info_get): New functions.
7783         (arm_linux_forget_process): New function.
7784         (arm_linux_get_debug_reg_state): New function.
7785         (struct update_registers_data): New.
7786         (update_registers_callback): New function.
7787         (arm_linux_insert_hw_breakpoint1): Updated.
7788         (arm_linux_remove_hw_breakpoint1): Updated.
7789         (arm_linux_insert_hw_breakpoint): Updated.
7790         (arm_linux_remove_hw_breakpoint): Updated.
7791         (arm_linux_insert_watchpoint): Updated.
7792         (arm_linux_remove_watchpoint): Updated.
7793         (arm_linux_new_thread): Updated.
7794         (arm_linux_prepare_to_resume): New function.
7795         (arm_linux_new_fork): New function.
7796         (_initialize_arm_linux_nat): Updated.
7797
7798 2014-03-12  Pedro Alves  <palves@redhat.com>
7799
7800         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7801
7802 2014-03-12  Tom Tromey  <tromey@redhat.com>
7803
7804         * inf-child.c (return_zero): New function.
7805         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7806         * aix-thread.c (aix_thread_inferior_created): New function.
7807         (aix_thread_attach): Remove.
7808         (init_aix_thread_ops): Don't set to_attach.
7809         (_initialize_aix_thread): Register inferior_created observer.
7810         * corelow.c (init_core_ops): Don't set to_attach or
7811         to_create_inferior.
7812         * exec.c (init_exec_ops): Don't set to_attach or
7813         to_create_inferior.
7814         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7815         target calls.
7816         (attach_command): Use find_attach_target.  Make direct target
7817         calls.
7818         * record-btrace.c (init_record_btrace_ops): Don't set
7819         to_create_inferior.
7820         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7821         Remove.
7822         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7823         set to_create_inferior.
7824         * target.c (complete_target_initialization): Add assertion.
7825         (target_create_inferior): Remove.
7826         (find_default_attach, find_default_create_inferior): Remove.
7827         (find_attach_target, find_run_target): New functions.
7828         (find_default_is_async_p, find_default_can_async_p)
7829         (target_supports_non_stop, target_attach): Remove.
7830         (init_dummy_target): Don't set to_create_inferior or
7831         to_supports_non_stop.
7832         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7833         TARGET_DEFAULT_FUNC.
7834         <to_create_inferior>: Add comment.
7835         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7836         TARGET_DEFAULT_RETURN.
7837         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7838         (find_attach_target, find_run_target): Declare.
7839         (target_create_inferior): Remove.
7840         (target_has_execution_1): Update comment.
7841         (target_supports_non_stop): Remove.
7842         * target-delegates.c: Rebuild.
7843
7844 2014-03-12  Pedro Alves  <palves@redhat.com>
7845
7846         * inf-child.h: Update comment to not mention Unix.
7847
7848 2014-03-12  Pedro Alves  <palves@redhat.com>
7849
7850         * inf-child.c: Update top comment to not mention Unix.  Add
7851         generic comment describing how this target is meant to be used.
7852         (inf_child_post_attach, inf_child_post_startup_inferior)
7853         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7854         Unix in comment.
7855
7856 2014-03-12  Pedro Alves  <palves@redhat.com>
7857
7858         * nto-procfs.c: Include inf-child.h.
7859         (procfs_ops): Delete global.
7860         (procfs_can_run): Delete method.
7861         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7862         target pointer instead of referencing procfs_ops.
7863         (procfs_prepare_to_store): Delete.
7864         (init_procfs_ops): Delete function.
7865         (procfs_target): New function, based on init_procfs_ops, but
7866         inherit inf_child_target.
7867         (_initialize_procfs): Use procfs_target.
7868
7869 2014-03-12  Pedro Alves  <palves@redhat.com>
7870
7871         * windows-nat.c: Include inf-child.h.
7872         (windows_ops): Delete global.
7873         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7874         methods.
7875         (init_windows_ops): Delete function.
7876         (windows_target): New function, based on init_windows_ops, but
7877         inherit inf_child_target.
7878         (_initialize_windows_nat): Use windows_target.  Install x86
7879         specific target methods here.
7880
7881 2014-03-10  Doug Evans  <xdje42@gmail.com>
7882
7883         * guile/guile.c (call_initialize_gdb_module): New function.
7884         (initialize_guile): Replace call to scm_init_guile with call to
7885         scm_with_guile.
7886
7887 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7888
7889         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7890         in call to TYPE_CODE macro.
7891
7892 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7893
7894         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7895         Resolve tagged types to full view.
7896
7897 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7898
7899         * target.h (target_insert_breakpoint): Remove "hardware" from its
7900         comments.
7901
7902 2014-03-07  Doug Evans  <dje@google.com>
7903
7904         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7905
7906 2014-03-07  Doug Evans  <dje@google.com>
7907
7908         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7909         Remove unused local comp_dir_attr.  Assert exactly one of
7910         stub_comp_unit_die, stub_comp_dir is non-NULL.
7911
7912 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7913
7914         * target.h (complete_target_initialization, add_target):
7915         Add comment.
7916
7917 2014-03-07  Pedro Alves  <palves@redhat.com>
7918
7919         * go32-nat.c: Include inf-child.h.
7920         (go32_ops): Delete global.
7921         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7922         Delete methods.
7923         (go32_create_inferior): Push the passed in target pointer instead
7924         of referencing go32_ops.
7925         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7926         (go32_target): New function, based on init_go32_ops, but inherit
7927         inf_child_target.
7928         (_initialize_go32_nat): Use go32_target.  Move parts of
7929         init_go32_ops here.
7930
7931 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7932
7933         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7934         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7935         SYMBOL_VALUE_ADDRESS.
7936         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7937
7938 2014-03-06  Yao Qi  <yao@codesourcery.com>
7939
7940         * breakpoint.c (get_tracepoint_by_number): Remove argument
7941         optional_p.  All callers updated.  Adjust comments.  Update
7942         output message.
7943         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7944
7945 2014-03-06  Yao Qi  <yao@codesourcery.com>
7946
7947         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7948         early if get_number returns zero.  Use 'p' instead of 'args'.
7949
7950 2014-03-06  Yao Qi  <yao@codesourcery.com>
7951
7952         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7953         message.
7954
7955 2014-03-06  Yao Qi  <yao@codesourcery.com>
7956
7957         PR breakpoints/16508
7958         * tracepoint.c (check_trace_running): New function.
7959         (trace_find_command): Move code to check_trace_running and
7960         call check_trace_running.
7961         (trace_find_pc_command): Likewise.
7962         (trace_find_tracepoint_command): Likewise.
7963         (trace_find_line_command): Likewise.
7964         (trace_find_range_command): Likewise.
7965         * tracepoint.h (check_trace_running): Likewise.
7966         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7967
7968 2014-03-06  Yao Qi  <yao@codesourcery.com>
7969
7970         * target.h (struct target_ops) <to_traceframe_info>: Use
7971         TARGET_DEFAULT_NORETURN (tcomplain ()).
7972         * target-delegates.c: Regenerated.
7973
7974 2014-03-05  Pedro Alves  <palves@redhat.com>
7975
7976         PR gdb/16575
7977         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7978         void.  Update comment.
7979         (dcache_xfer_memory): Delete.
7980         (dcache_read_memory_partial): New, based on the read bits of
7981         dcache_xfer_memory.
7982         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7983         adjust.  Discard cache lines if the reason for the update was
7984         error.
7985         * dcache.h (dcache_xfer_memory): Delete declaration.
7986         (dcache_read_memory_partial): New declaration.
7987         (dcache_update): Update prototype.
7988         * target.c (raw_memory_xfer_partial): Update the dcache here.
7989         (memory_xfer_partial_1): Don't handle dcache writes here.
7990
7991 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7992
7993         * remote-sim.c (gdbsim_load): Add const to prog.
7994
7995 2014-03-03  Tom Tromey  <tromey@redhat.com>
7996
7997         * elfread.c (probe_key): Change to bfd_data.
7998         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7999         now per-BFD, not per-objfile.
8000         * stap-probe.c (stap_probe_destroy): Update comment.
8001         (handle_stap_probe): Allocate on the per-BFD obstack.
8002
8003 2014-03-03  Tom Tromey  <tromey@redhat.com>
8004
8005         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8006         * breakpoint.c (create_longjmp_master_breakpoint): Use
8007         get_probe_address.
8008         (add_location_to_breakpoint, bkpt_probe_insert_location)
8009         (bkpt_probe_remove_location): Update.
8010         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8011         * elfread.c (elf_symfile_relocate_probe): Remove.
8012         (elf_probe_fns): Update.
8013         (insert_exception_resume_breakpoint): Change type of "probe"
8014         parameter to bound_probe.
8015         (check_exception_resume): Update.
8016         * objfiles.c (objfile_relocate1): Don't relocate probes.
8017         * probe.c (bound_probe_s): New typedef.
8018         (parse_probes): Use get_probe_address.  Set sal's objfile.
8019         (find_probe_by_pc): Return a bound_probe.
8020         (collect_probes): Return a VEC(bound_probe_s).
8021         (compare_probes): Update.
8022         (gen_ui_out_table_header_info): Change type of "probes"
8023         parameter.  Update.
8024         (info_probes_for_ops): Update.
8025         (get_probe_address): New function.
8026         (probe_safe_evaluate_at_pc): Update.
8027         * probe.h (struct probe_ops) <get_probe_address>: New field.
8028         <set_semaphore, clear_semaphore>: Add objfile parameter.
8029         (struct probe) <objfile>: Remove field.
8030         <arch>: New field.
8031         <address>: Update comment.
8032         (struct bound_probe): New.
8033         (find_probe_by_pc): Return a bound_probe.
8034         (get_probe_address): Declare.
8035         * solib-svr4.c (struct probe_and_action) <address>: New field.
8036         (hash_probe_and_action, equal_probe_and_action): Update.
8037         (register_solib_event_probe): Add address parameter.
8038         (solib_event_probe_at): Update.
8039         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8040         get_probe_address.
8041         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8042         (stap_get_probe_address): New function.
8043         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8044         (compile_probe_arg): Update.
8045         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8046         address.
8047         (handle_stap_probe): Don't relocate the probe.
8048         (stap_relocate): Remove.
8049         (stap_gen_info_probes_table_values): Update.
8050         (stap_probe_ops): Remove stap_relocate.
8051         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8052         (debug_sym_probe_fns): Update.
8053         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8054         * symtab.c (init_sal): Use memset.
8055         * symtab.h (struct symtab_and_line) <objfile>: New field.
8056         * tracepoint.c (start_tracing, stop_tracing): Update.
8057
8058 2014-03-03  Tom Tromey  <tromey@redhat.com>
8059
8060         * probe.h (parse_probes, find_probe_by_pc)
8061         (find_probes_in_objfile): Fix comments.
8062
8063 2014-03-02  Doug Evans  <xdje42@gmail.com>
8064
8065         * infrun.c (handle_signal_stop): Replace test for
8066         TARGET_WAITKIND_STOPPED with an assert.
8067
8068 2014-03-02  Doug Evans  <xdje42@gmail.com>
8069
8070         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8071
8072 2014-03-02  Doug Evans  <xdje42@gmail.com>
8073
8074         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8075
8076 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8077
8078         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8079
8080 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8081
8082         * i386obsd-nat.c: Include "obsd-nat.h".
8083         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8084         add_target.
8085         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8086
8087 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8088
8089         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8090
8091 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8092
8093         * mips64obsd-nat.c: Include "obsd-nath".
8094         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8095         add_target
8096         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8097
8098 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8099
8100         * amd64obsd-nat.c: Include "obsd-nat,h.
8101         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8102         add_target.
8103         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8104
8105 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8106
8107         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8108         (find_overload_match): Update call to find_oload_champ.
8109         (find_oload_champ_namespace_loop): Likewise
8110
8111 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8112
8113         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8114
8115         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8116         * config/sparc/obsd64.mh: New file.
8117         * sparc64obsd-nat.c: New file.
8118
8119         * obsd-nat.h: New file.
8120         * obsd-nat.c: New file.
8121         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8122         (ALLDEPFILES): Add obsd-nat.c.
8123
8124 2014-02-28  Tom Tromey  <tromey@redhat.com>
8125
8126         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8127         * cli-out.h (cli_ui_out_impl): Now const.
8128         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8129         * ui-out.c (struct ui_out) <impl>: Now const.
8130         (default_ui_out_impl): Now const.
8131         (ui_out_new): Make 'impl' parameter const.
8132         * ui-out.h (ui_out_new): Update.
8133
8134 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8135
8136         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8137
8138 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8139
8140         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8141
8142 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8143
8144         Additional PR 8882 fix.
8145         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8146
8147 2014-02-27  Pedro Alves  <palves@redhat.com>
8148
8149         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8150         isn't set.
8151
8152 2014-02-27  Pedro Alves  <palves@redhat.com>
8153
8154         PR 12702
8155         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8156         * nat/linux-waitpid.c: Include string.h.
8157         (status_to_str): Moved here and made extern.
8158         * nat/linux-waitpid.h (status_to_str): New declaration.
8159
8160 2014-02-27  Hui Zhu  <hui@codesourcery.com>
8161
8162         PR 12702
8163         * infrun.c (ptid_match): Move ...
8164         * common/ptid.c (ptid_match): ... here.
8165         * inferior.h (ptid_match): Move ...
8166         * common/ptid.h (ptid_match): ... here.
8167
8168 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8169
8170         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8171         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8172         gdb_target_obs.
8173
8174 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8175
8176         * obsd-tdep.c (obsd_auxv_parse): New function.
8177         (obsd_init_abi): Set auxv_parse.
8178
8179         * gdbarch.sh (auxv_parse): New.
8180         * gdbarch.h: Regenerated.
8181         * gdbarch.c: Regenerated.
8182         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8183
8184 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
8185
8186         * guile/scm-value.c (gdbscm_history_append_x): New function.
8187         (value_functions): Add it.
8188
8189 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8190
8191         * dwarf2read.c (attr_value_as_address): New function.
8192         (dwarf2_find_base_address, read_call_site_scope): Use
8193         attr_value_as_address in place of DW_ADDR.
8194         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8195         the low and high addresses.  Slight rework of the handling
8196         of the high pc being a constant form, and limit it to
8197         DWARF verson 4 or higher.
8198         (dwarf2_record_block_ranges): Likewise.
8199         (read_partial_die): Likewise.
8200         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8201
8202 2014-02-26  Tom Tromey  <tromey@redhat.com>
8203
8204         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8205
8206 2014-02-26  Tom Tromey  <tromey@redhat.com>
8207
8208         * elfread.c (elf_read_minimal_symbols): Return early if
8209         minimal symbols have already been read.  Add "ei" parameter.
8210         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8211         * minsyms.c (prim_record_minimal_symbol_full): Update.
8212         * objfiles.h (struct objstats) <n_minsyms>: Move...
8213         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8214         * symmisc.c (print_objfile_statistics): Update.
8215
8216 2014-02-26  Tom Tromey  <tromey@redhat.com>
8217
8218         * elfread.c (elf_read_minimal_symbols): New function, from
8219         elf_symfile_read.
8220         (elf_symfile_read): Call it.
8221
8222 2014-02-26  Tom Tromey  <tromey@redhat.com>
8223
8224         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8225         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8226         (lookup_minimal_symbol_solib_trampoline)
8227         (lookup_minimal_symbol_by_pc_section_1)
8228         (lookup_minimal_symbol_and_objfile): Update.
8229         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8230         Don't allocate a minimal symbol if minsyms have already been read.
8231         (build_minimal_symbol_hash_tables): Update.
8232         (install_minimal_symbols): Do nothing if minsyms already read.
8233         Use the per-BFD obstack.
8234         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8235         * objfiles.c (allocate_objfile): Call
8236         terminate_minimal_symbol_table later.
8237         (have_minimal_symbols): Update.
8238         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8239         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8240         Move from struct objfile.
8241         <minsyms_read>: New field.
8242         (struct objfile) <msymbols, minimal_symbol_count,
8243         msymbol_hash, msymbol_demangled_hash>: Move.
8244         (ALL_OBJFILE_MSYMBOLS): Update.
8245         * symfile.c (read_symbols): Set minsyms_read.
8246         (reread_symbols): Update.
8247         * symmisc.c (dump_objfile, dump_msymbols): Update.
8248
8249 2014-02-26  Tom Tromey  <tromey@redhat.com>
8250
8251         * minsyms.c (msymbols_sort): Remove.
8252         * minsyms.h (msymbols_sort): Remove.
8253         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8254         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8255         * elfread.c (elf_symtab_read): Don't add section offsets.
8256         * xcoffread.c (record_minimal_symbol): Don't add section offset
8257         to minimal symbol address.
8258         * somread.c (text_offset, data_offset): Remove.
8259         (som_symtab_read): Don't add section offsets to minimal symbol
8260         addresses.
8261         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8262         Don't add section offsets to minimal symbols.
8263         * coffread.c (coff_symtab_read): Don't add section offsets
8264         to minimal symbol addresses.
8265         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8266         to minimal symbol addresses.
8267         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8268         section offset to minimal symbol addresses.
8269         * mdebugread.c (parse_partial_symbols): Don't add section
8270         offset to minimal symbol addresses.
8271         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8272         offset to minimal symbol addresses.
8273
8274 2014-02-26  Tom Tromey  <tromey@redhat.com>
8275
8276         * ada-lang.c (ada_main_name): Update.
8277         (ada_add_standard_exceptions): Update.
8278         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8279         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8280         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8281         * auxv.c (ld_so_xfer_auxv): Update.
8282         * avr-tdep.c (avr_scan_prologue): Update.
8283         * ax-gdb.c (gen_var_ref): Update.
8284         * blockframe.c (get_pc_function_start)
8285         (find_pc_partial_function_gnu_ifunc): Update.
8286         * breakpoint.c (create_overlay_event_breakpoint)
8287         (create_longjmp_master_breakpoint)
8288         (create_std_terminate_master_breakpoint)
8289         (create_exception_master_breakpoint): Update.
8290         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8291         * c-valprint.c (c_val_print): Update.
8292         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8293         * common/agent.c (agent_look_up_symbols): Update.
8294         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8295         * dwarf2loc.c (call_site_to_target_addr): Update.
8296         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8297         * elfread.c (elf_gnu_ifunc_record_cache)
8298         (elf_gnu_ifunc_resolve_by_got): Update.
8299         * findvar.c (default_read_var_value): Update.
8300         * frame.c (inside_main_func): Update.
8301         * frv-tdep.c (frv_frame_this_id): Update.
8302         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8303         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8304         Update.
8305         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8306         (hppa_hpux_find_dummy_bpaddr): Update.
8307         * hppa-tdep.c (hppa_symbol_address): Update.
8308         * infcmd.c (until_next_command): Update.
8309         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8310         Update.
8311         * linespec.c (minsym_found, add_minsym): Update.
8312         * linux-nat.c (get_signo): Update.
8313         * linux-thread-db.c (inferior_has_bug): Update.
8314         * m32c-tdep.c (m32c_return_value)
8315         (m32c_m16c_address_to_pointer): Update.
8316         * m32r-tdep.c (m32r_frame_this_id): Update.
8317         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8318         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8319         * maint.c (maintenance_translate_address): Update.
8320         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8321         (frob_address): New function.
8322         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8323         frob_address.  Rename parameter to "pc_in".
8324         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8325         addresses.
8326         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8327         Update.
8328         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8329         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8330         * objc-lang.c (find_objc_msgsend): Update.
8331         * objfiles.c (objfile_relocate1): Update.
8332         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8333         * p-valprint.c (pascal_val_print): Update.
8334         * parse.c (write_exp_msymbol): Update.
8335         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8336         (ppc_elfv2_skip_entrypoint): Update.
8337         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8338         * printcmd.c (build_address_symbolic, msym_info)
8339         (address_info): Update.
8340         * proc-service.c (ps_pglobal_lookup): Update.
8341         * psymtab.c (find_pc_sect_psymtab_closer)
8342         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8343         Change msymbol parameter to bound_minimal_symbol.
8344         * ravenscar-thread.c (get_running_thread_id): Update.
8345         * remote.c (remote_check_symbols): Update.
8346         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8347         address.
8348         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8349         * solib-dsbt.c (lm_base): Update.
8350         * solib-frv.c (lm_base, main_got): Update.
8351         * solib-irix.c (locate_base): Update.
8352         * solib-som.c (som_solib_create_inferior_hook)
8353         (link_map_start): Update.
8354         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8355         * solib-svr4.c (elf_locate_base, enable_break): Update.
8356         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8357         (flush_ea_cache): Update.
8358         * stabsread.c (define_symbol, scan_file_globals): Update.
8359         * stack.c (find_frame_funname): Update.
8360         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8361         (debug_qf_find_pc_sect_symtab): Update.
8362         * symfile.c (simple_read_overlay_table)
8363         (simple_overlay_update): Update.
8364         * symfile.h (struct quick_symbol_functions)
8365         <find_pc_sect_symtab>: Change type of msymbol to
8366         bound_minimal_symbol.
8367         * symmisc.c (dump_msymbols): Update.
8368         * symtab.c (find_pc_sect_symtab_via_partial)
8369         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8370         (search_symbols, print_msymbol_info): Update.
8371         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8372         (MSYMBOL_VALUE_ADDRESS): Redefine.
8373         (BMSYMBOL_VALUE_ADDRESS): New macro.
8374         * tracepoint.c (scope_info): Update.
8375         * tui/tui-disasm.c (tui_find_disassembly_address)
8376         (tui_get_begin_asm_address): Update.
8377         * valops.c (find_function_in_inferior): Update.
8378         * value.c (value_static_field, value_fn_field): Update.
8379
8380 2014-02-26  Tom Tromey  <tromey@redhat.com>
8381
8382         * ada-lang.c (ada_update_initial_language): Update.
8383         (ada_main_name, ada_has_this_exception_support): Update.
8384         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8385         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8386         * arm-tdep.c (arm_skip_stub): Update.
8387         * auxv.c (ld_so_xfer_auxv): Update.
8388         * avr-tdep.c (avr_scan_prologue): Update.
8389         * ax-gdb.c (gen_var_ref): Update.
8390         * breakpoint.c (struct breakpoint_objfile_data)
8391         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8392         type to bound_minimal_symbol.
8393         (create_overlay_event_breakpoint)
8394         (create_longjmp_master_breakpoint)
8395         (create_std_terminate_master_breakpoint)
8396         (create_exception_master_breakpoint): Update.
8397         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8398         * c-exp.y (classify_name): Update.
8399         * coffread.c (coff_symfile_read): Update.
8400         * common/agent.c (agent_look_up_symbols): Update.
8401         * d-lang.c (d_main_name): Update.
8402         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8403         * dec-thread.c (enable_dec_thread): Update.
8404         * dwarf2loc.c (call_site_to_target_addr): Update.
8405         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8406         * eval.c (evaluate_subexp_standard): Update.
8407         * findvar.c (struct minsym_lookup_data) <result>: Change type
8408         to bound_minimal_symbol.
8409         <objfile>: Remove.
8410         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8411         * frame.c (inside_main_func): Update.
8412         * frv-tdep.c (frv_frame_this_id): Update.
8413         * gcore.c (call_target_sbrk): Update.
8414         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8415         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8416         Update.
8417         * go-lang.c (go_main_name): Update.
8418         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8419         (hppa_hpux_find_import_stub_for_addr): Update.
8420         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8421         Update.  Change return type.
8422         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8423         type.
8424         * jit.c (jit_breakpoint_re_set_internal): Update.
8425         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8426         Update.
8427         * linux-nat.c (get_signo): Update.
8428         * linux-thread-db.c (inferior_has_bug): Update
8429         * m32c-tdep.c (m32c_return_value)
8430         (m32c_m16c_address_to_pointer): Update.
8431         * m32r-tdep.c (m32r_frame_this_id): Update.
8432         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8433         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8434         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8435         lookup_minimal_symbol.  Change return type.
8436         (lookup_minimal_symbol): Remove.
8437         (lookup_bound_minimal_symbol): Update.
8438         (lookup_minimal_symbol_text): Change return type.
8439         (lookup_minimal_symbol_solib_trampoline): Change return type.
8440         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8441         (lookup_minimal_symbol_solib_trampoline): Change return type.
8442         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8443         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8444         (value_nsstring, find_imps): Update.
8445         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8446         * p-lang.c (pascal_main_name): Update.
8447         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8448         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8449         * proc-service.c (ps_pglobal_lookup): Update.
8450         * ravenscar-thread.c (get_running_thread_msymbol): Change
8451         return type.
8452         (has_ravenscar_runtime, get_running_thread_id): Update.
8453         * remote.c (remote_check_symbols): Update.
8454         * sol-thread.c (ps_pglobal_lookup): Update.
8455         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8456         * solib-dsbt.c (lm_base): Update.
8457         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8458         Update.
8459         * solib-irix.c (locate_base): Update.
8460         * solib-som.c (som_solib_create_inferior_hook)
8461         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8462         Update.
8463         * solib-spu.c (spu_enable_break): Update.
8464         * solib-svr4.c (elf_locate_base, enable_break): Update.
8465         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8466         (flush_ea_cache): Update.
8467         * stabsread.c (define_symbol): Update.
8468         * symfile.c (simple_read_overlay_table): Update.
8469         * symtab.c (find_pc_sect_line): Update.
8470         * tracepoint.c (scope_info): Update.
8471         * tui-disasm.c (tui_get_begin_asm_address): Update.
8472         * value.c (value_static_field): Update.
8473
8474 2014-02-26  Tom Tromey  <tromey@redhat.com>
8475
8476         * minsyms.c (prim_record_minimal_symbol_full): Use
8477         SET_MSYMBOL_VALUE_ADDRESS.
8478         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8479         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8480         SET_MSYMBOL_VALUE_ADDRESS.
8481         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8482         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8483
8484 2014-02-26  Tom Tromey  <tromey@redhat.com>
8485
8486         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8487         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8488         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8489         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8490         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8491         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8492         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8493         * ada-lang.c (ada_main_name): Update.
8494         (ada_lookup_simple_minsym): Update.
8495         (ada_make_symbol_completion_list): Update.
8496         (ada_add_standard_exceptions): Update.
8497         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8498         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8499         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8500         * arm-tdep.c (skip_prologue_function): Update.
8501         (arm_skip_stack_protector, arm_skip_stub): Update.
8502         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8503         (arm_wince_skip_main_prologue): Update.
8504         * auxv.c (ld_so_xfer_auxv): Update.
8505         * avr-tdep.c (avr_scan_prologue): Update.
8506         * ax-gdb.c (gen_var_ref): Update.
8507         * block.c (call_site_for_pc): Update.
8508         * blockframe.c (get_pc_function_start): Update.
8509         (find_pc_partial_function_gnu_ifunc): Update.
8510         * breakpoint.c (create_overlay_event_breakpoint): Update.
8511         (create_longjmp_master_breakpoint): Update.
8512         (create_std_terminate_master_breakpoint): Update.
8513         (create_exception_master_breakpoint): Update.
8514         (resolve_sal_pc): Update.
8515         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8516         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8517         Update.
8518         * c-valprint.c (c_val_print): Update.
8519         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8520         * coffread.c (coff_symfile_read): Update.
8521         * common/agent.c (agent_look_up_symbols): Update.
8522         * dbxread.c (find_stab_function_addr): Update.
8523         (end_psymtab): Update.
8524         * dwarf2loc.c (call_site_to_target_addr): Update.
8525         (func_verify_no_selftailcall): Update.
8526         (tailcall_dump): Update.
8527         (call_site_find_chain_1): Update.
8528         (dwarf_expr_reg_to_entry_parameter): Update.
8529         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8530         (elf_gnu_ifunc_resolve_by_got): Update.
8531         * f-valprint.c (info_common_command): Update.
8532         * findvar.c (read_var_value): Update.
8533         * frame.c (get_prev_frame_1): Update.
8534         (inside_main_func): Update.
8535         * frv-tdep.c (frv_skip_main_prologue): Update.
8536         (frv_frame_this_id): Update.
8537         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8538         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8539         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8540         (gnuv3_skip_trampoline): Update.
8541         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8542         (hppa64_hpux_in_solib_call_trampoline): Update.
8543         (hppa_hpux_skip_trampoline_code): Update.
8544         (hppa64_hpux_search_dummy_call_sequence): Update.
8545         (hppa_hpux_find_import_stub_for_addr): Update.
8546         (hppa_hpux_find_dummy_bpaddr): Update.
8547         * hppa-tdep.c (hppa_symbol_address)
8548         (hppa_lookup_stub_minimal_symbol): Update.
8549         * i386-tdep.c (i386_skip_main_prologue): Update.
8550         (i386_pe_skip_trampoline_code): Update.
8551         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8552         * infcall.c (get_function_name): Update.
8553         * infcmd.c (until_next_command): Update.
8554         * jit.c (jit_breakpoint_re_set_internal): Update.
8555         (jit_inferior_init): Update.
8556         * linespec.c (minsym_found): Update.
8557         (add_minsym): Update.
8558         * linux-fork.c (info_checkpoints_command): Update.
8559         * linux-nat.c (get_signo): Update.
8560         * linux-thread-db.c (inferior_has_bug): Update.
8561         * m32c-tdep.c (m32c_return_value): Update.
8562         (m32c_m16c_address_to_pointer): Update.
8563         (m32c_m16c_pointer_to_address): Update.
8564         * m32r-tdep.c (m32r_frame_this_id): Update.
8565         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8566         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8567         * maint.c (maintenance_translate_address): Update.
8568         * minsyms.c (add_minsym_to_hash_table): Update.
8569         (add_minsym_to_demangled_hash_table): Update.
8570         (msymbol_objfile): Update.
8571         (lookup_minimal_symbol): Update.
8572         (iterate_over_minimal_symbols): Update.
8573         (lookup_minimal_symbol_text): Update.
8574         (lookup_minimal_symbol_by_pc_name): Update.
8575         (lookup_minimal_symbol_solib_trampoline): Update.
8576         (lookup_minimal_symbol_by_pc_section_1): Update.
8577         (lookup_minimal_symbol_and_objfile): Update.
8578         (prim_record_minimal_symbol_full): Update.
8579         (compare_minimal_symbols): Update.
8580         (compact_minimal_symbols): Update.
8581         (build_minimal_symbol_hash_tables): Update.
8582         (install_minimal_symbols): Update.
8583         (terminate_minimal_symbol_table): Update.
8584         (find_solib_trampoline_target): Update.
8585         (minimal_symbol_upper_bound): Update.
8586         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8587         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8588         (mips_skip_pic_trampoline_code): Update.
8589         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8590         * objc-lang.c (selectors_info): Update.
8591         (classes_info): Update.
8592         (find_methods): Update.
8593         (find_imps): Update.
8594         (find_objc_msgsend): Update.
8595         * objfiles.c (objfile_relocate1): Update.
8596         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8597         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8598         * p-valprint.c (pascal_val_print): Update.
8599         * parse.c (write_exp_msymbol): Update.
8600         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8601         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8602         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8603         * printcmd.c (build_address_symbolic): Update.
8604         (sym_info): Update.
8605         (address_info): Update.
8606         * proc-service.c (ps_pglobal_lookup): Update.
8607         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8608         (find_pc_sect_psymtab): Update.
8609         * python/py-framefilter.c (py_print_frame): Update.
8610         * ravenscar-thread.c (get_running_thread_id): Update.
8611         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8612         Update.
8613         * remote.c (remote_check_symbols): Update.
8614         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8615         (rs6000_skip_trampoline_code): Update.
8616         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8617         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8618         * solib-dsbt.c (lm_base): Update.
8619         * solib-frv.c (lm_base): Update.
8620         (main_got): Update.
8621         * solib-irix.c (locate_base): Update.
8622         * solib-som.c (som_solib_create_inferior_hook): Update.
8623         (som_solib_desire_dynamic_linker_symbols): Update.
8624         (link_map_start): Update.
8625         * solib-spu.c (spu_enable_break): Update.
8626         (ocl_enable_break): Update.
8627         * solib-svr4.c (elf_locate_base): Update.
8628         (enable_break): Update.
8629         * spu-tdep.c (spu_get_overlay_table): Update.
8630         (spu_catch_start): Update.
8631         (flush_ea_cache): Update.
8632         * stabsread.c (define_symbol): Update.
8633         (scan_file_globals): Update.
8634         * stack.c (find_frame_funname): Update.
8635         (frame_info): Update.
8636         * symfile.c (simple_read_overlay_table): Update.
8637         (simple_overlay_update): Update.
8638         * symmisc.c (dump_msymbols): Update.
8639         * symtab.c (fixup_section): Update.
8640         (find_pc_sect_line): Update.
8641         (skip_prologue_sal): Update.
8642         (search_symbols): Update.
8643         (print_msymbol_info): Update.
8644         (rbreak_command): Update.
8645         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8646         (completion_list_objc_symbol): Update.
8647         (default_make_symbol_completion_list_break_on): Update.
8648         * tracepoint.c (scope_info): Update.
8649         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8650         (tui_get_begin_asm_address): Update.
8651         * valops.c (find_function_in_inferior): Update.
8652         * value.c (value_static_field): Update.
8653         (value_fn_field): Update.
8654
8655 2014-02-26  Tom Tromey  <tromey@redhat.com>
8656
8657         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8658         bound minimal symbols.  Move code that knows about minsym
8659         table layout...
8660         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8661         function.
8662         * minsyms.h (minimal_symbol_upper_bound): Declare.
8663         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8664         minimal_symbol_upper_bound.
8665
8666 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8667
8668         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8669         Use the type's name if its basic type does not have a tag.
8670
8671 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8672
8673         * dwarf2read.c (read_subrange_type): Add comment.
8674
8675 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8676
8677         * dwarf2read.c (update_enumeration_type_from_children): New
8678         function, mostly extracted from process_structure_scope.
8679         (read_enumeration_type): Call update_enumeration_type_from_children.
8680         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8681         and flag_flag_enum fields.
8682
8683 2014-02-26  Pedro Alves  <palves@redhat.com>
8684
8685         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8686         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8687         to_xfer_partial method.
8688
8689 2014-02-26  Pedro Alves  <palves@redhat.com>
8690
8691         * target.c (complete_target_initialization): Don't install
8692         default_xfer_partial as to_xfer_partial hook.
8693         (nomemory): Delete.
8694         (update_current_target): Don't INHERIT nor de_fault
8695         deprecated_xfer_memory.  Delete de_fault macro.
8696         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8697         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8698         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8699         field.
8700
8701 2014-02-26  Pedro Alves  <palves@redhat.com>
8702
8703         * go32-nat.c (my_write_child): New function.
8704         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8705         (go32_xfer_partial): New function.
8706         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8707         Instead install a to_xfer_partial hook.
8708
8709 2014-02-26  Pedro Alves  <palves@redhat.com>
8710
8711         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8712         to_xfer_partial helper.  Rewrite.
8713         (procfs_xfer_partial): New function.
8714         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8715         Install a to_xfer_partial hook.
8716
8717 2014-02-26  Pedro Alves  <palves@redhat.com>
8718
8719         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8720         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8721         (m32r_xfer_partial): New function.
8722         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8723         Install a to_xfer_partial hook.
8724
8725 2014-02-26  Pedro Alves  <palves@redhat.com>
8726
8727         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8728         helper.
8729         (mips_xfer_partial): New function.
8730         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8731         hook.  Install a to_xfer_partial hook.
8732
8733 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8734
8735         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8736         * gdbtypes.c (create_array_type_with_stride): New function,
8737         renaming create_array_type, but with an added parameter
8738         called "bit_stride".
8739         (create_array_type): Re-implement using
8740         create_array_type_with_stride.
8741         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8742         and DW_AT_bit_stride attributes.
8743
8744 2014-02-26  Pedro Alves  <palves@redhat.com>
8745
8746         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8747         task-specific breakpoints.
8748
8749 2014-02-25  Pedro Alves  <palves@redhat.com>
8750
8751         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8752         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8753
8754 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8755
8756         * defs.h: Annotate comments for Doxygen.
8757
8758 2014-02-25  Tom Tromey  <tromey@redhat.com>
8759
8760         * target.h (target_ignore): Don't declare.
8761         * target.c (target_ignore): Remove.
8762
8763 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8764
8765         PR gdb/16626
8766         * auto-load.c (auto_load_objfile_script_1): Change filename to
8767         debugfile.
8768
8769 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8770
8771         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8772         documentation.  Adjust prototype to match the target_ops
8773         to_xfer_partial method.  Adjust implementation accordingly.
8774
8775 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8776
8777         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8778         to_traceframe_info.
8779
8780 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8781
8782         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8783         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8784         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8785         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8786         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8787         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8788         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8789         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8790         New constants.
8791         (rl78_register_type): Use a data pointer type for SP and
8792         new pseudo registers mentioned above.  Use a 16 bit integer
8793         type for all other register pairs.
8794         (rl78_register_name, rl78_g10_register_name): Update for
8795         new pseudo registers.
8796         (rl78_pseudo_register_read): Likewise.
8797         (rl78_pseudo_register_write): Likewise.
8798         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8799         to the newly added pseudo registers.
8800
8801 2014-02-24  Doug Evans  <dje@google.com>
8802
8803         * value.c (record_latest_value): Fix comment.
8804         * printcmd.c (print_command_1): Remove code to handle -1 return from
8805         record_latest_value.
8806
8807 2014-02-24  Pedro Alves  <palves@redhat.com>
8808
8809         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8810         deprecated_xfer_memory hook.
8811         (procfs_xfer_partial): Call procfs_xfer_memory instead
8812         of the deprecated_xfer_memory target hook.
8813         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8814         helper.
8815
8816 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8817
8818         * windows-nat.c (windows_xfer_shared_libraries): Return
8819         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8820         requested object is TARGET_OBJECT_LIBRARIES.
8821
8822 2014-02-24  Yao Qi  <yao@codesourcery.com>
8823
8824         * target.h (enum target_xfer_status)
8825         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8826         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8827         explicitly.  New.
8828         * corefile.c (memory_error_message): User updated.
8829         * exec.c (section_table_read_available_memory): Likewise.
8830         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8831         * target.c (target_xfer_status_to_string): Likewise.
8832         (raw_memory_xfer_partial): Likewise.
8833         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8834         * valops.c (read_value_memory): Likewise.
8835         * exec.h: Update comments.
8836
8837 2014-02-24  Yao Qi  <yao@codesourcery.com>
8838
8839         * target.c (target_xfer_status_to_string): Rename argument err
8840         to status.
8841         * target.h (target_xfer_status_to_string): Update declaration.
8842         Replace target_xfer_error_to_string with
8843         target_xfer_status_to_string in comment.
8844
8845 2014-02-24  Yao Qi  <yao@codesourcery.com>
8846
8847         * mips-linux-nat.c (super_close): Update its type.
8848         (mips_linux_close): Pass 'self' to super_close.
8849
8850 2014-02-24  Yao Qi  <yao@codesourcery.com>
8851
8852         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8853         * corefile.c (read_memory): Adjusted.
8854         * target.c (target_write_with_progress): Adjusted.
8855
8856 2014-02-23  Yao Qi  <yao@codesourcery.com>
8857
8858         Revert two patches:
8859
8860         2013-10-25  Yao Qi  <yao@codesourcery.com>
8861
8862         * remote.c (remote_traceframe_info): Return early if
8863         traceframe is not selected.
8864
8865         2013-07-19  Yao Qi  <yao@codesourcery.com>
8866
8867         * target.c (update_current_target): Change the default action
8868         of 'to_traceframe_info' from tcomplain to return_zero.
8869         * target.h (struct target_ops) <to_traceframe_info>: Add more
8870         comments.
8871
8872 2014-02-23  Yao Qi  <yao@codesourcery.com>
8873
8874         * valops.c (read_value_memory): Rewrite it.  Call
8875         target_xfer_partial in a loop.
8876         * exec.h (section_table_available_memory): Remove declaration.
8877         Move comments to ...
8878         * exec.c (section_table_available_memory): ... here.  Make it
8879         static.
8880
8881 2014-02-23  Yao Qi  <yao@codesourcery.com>
8882
8883         * exec.c (section_table_read_available_memory): New function.
8884         * exec.h (section_table_read_available_memory): Declare.
8885         * ctf.c (ctf_xfer_partial): Call
8886         section_table_read_available_memory.
8887         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8888
8889 2014-02-23  Yao Qi  <yao@codesourcery.com>
8890
8891         * ctf.c (ctf_xfer_partial): Move code to ...
8892         * exec.c (exec_read_partial_read_only): ... it.  New function.
8893         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8894         * tracefile.c: Include "exec.h".
8895         * exec.h (exec_read_partial_read_only): Declare.
8896
8897 2014-02-23  Yao Qi  <yao@codesourcery.com>
8898
8899         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8900         (tfile_has_memory): Remove.
8901         (init_tfile_ops): Don't set fields to_has_all_memory and
8902         to_has_memory of tfile_ops.
8903         * tracefile.c (tracefile_has_all_memory): New function.
8904         (tracefile_has_memory): New function.
8905         (init_tracefile_ops): Initialize fields to_has_all_memory and
8906         to_has_memory of 'ops'.
8907
8908 2014-02-23  Yao Qi  <yao@codesourcery.com>
8909
8910         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8911         (ctf_thread_alive, ctf_get_trace_status): Remove.
8912         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8913         init_tracefile_ops.
8914         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8915         (tfile_has_stack, tfile_has_registers): Remove.
8916         (tfile_thread_alive): Remove.
8917         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8918         init_tracefile_ops.
8919         * tracefile.c (tracefile_has_stack): New function.
8920         (tracefile_has_registers): New function.
8921         (tracefile_thread_alive): New function.
8922         (tracefile_get_trace_status): New function.
8923         (init_tracefile_ops): New function.
8924         * tracefile.h (init_tracefile_ops): Declare.
8925
8926 2014-02-23  Yao Qi  <yao@codesourcery.com>
8927
8928         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8929         (O_LARGEFILE): Likewise.
8930         (tfile_ops): Likewise.
8931         (TRACE_HEADER_SIZE): Likewise.
8932         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8933         (cur_data_size): Likewise.
8934         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8935         (tfile_close, tfile_files_info): Likewise.
8936         (tfile_get_trace_status): Likewise.
8937         (tfile_get_tracepoint_status): Likewise.
8938         (tfile_get_traceframe_address): Likewise.
8939         (tfile_trace_find, match_blocktype): Likewise.
8940         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8941         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8942         (tfile_get_trace_state_variable_value): Likewise.
8943         (tfile_has_all_memory, tfile_has_memory): Likewise.
8944         (tfile_has_stack, tfile_has_registers): Likewise.
8945         (tfile_thread_alive, build_traceframe_info): Likewise.
8946         (tfile_traceframe_info, init_tfile_ops): Likewise.
8947         (_initialize_tracepoint): Don't call init_tfile_ops
8948         and add_target_with_completer.
8949         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8950         exec.h, completer.h and filenames.h.
8951         (_initialize_tracefile_tfile): New function.
8952
8953 2014-02-23  Yao Qi  <yao@codesourcery.com>
8954
8955         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8956         tracefile-tfile.o.
8957         (HFILES_NO_SRCDIR): Add tracefile.h.
8958         * ctf.c: Include "tracefile.h".
8959         * tracefile.h: New file.
8960         * tracefile.c: New file
8961         * tracefile-tfile.c: New file.
8962         * tracepoint.c: Include "tracefile.h".
8963         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8964         (stop_reason_names): Add const.
8965         (trace_file_writer_xfree): Move it to tracefile.c.
8966         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8967         (trace_save_ctf): Likewise.
8968         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8969         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8970         (tfile_write_header, tfile_write_regblock_type): Likewise.
8971         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8972         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8973         (tfile_write_raw_data, tfile_end): Likewise.
8974         (tfile_trace_file_writer_new): Likewise.
8975         (free_uploaded_tp): Make it extern.
8976         (free_uploaded_tsv): Make it extern.
8977         (_initialize_tracepoint): Move code to register command 'tsave'
8978         to tracefile.c.
8979         * tracepoint.h (stop_reason_names): Declare.
8980         (struct trace_frame_write_ops): Move it to tracefile.h.
8981         (struct trace_file_write_ops): Likewise.
8982         (struct trace_file_writer): Likewise.
8983         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8984
8985 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8986
8987         PR gdb/16594
8988         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8989         process name.
8990         (get_cores_used_by_process): New parameter num_cores, use it.
8991         (linux_xfer_osdata_processes): Pass num_cores to it.
8992         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8993         process name.
8994
8995 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8996
8997         * target.c (memory_xfer_partial): Fix length arg in call to
8998         breakpoint_xfer_memory.
8999
9000 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9001
9002         PR tdep/16397
9003         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9004         number comes after the + or - signs.  Adjust length of register
9005         name to be extracted.
9006
9007 2014-02-20  Tom Tromey  <tromey@redhat.com>
9008
9009         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9010         (ada_varobj_ops): Mark "extern".
9011
9012 2014-02-20  Tom Tromey  <tromey@redhat.com>
9013
9014         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9015
9016 2014-02-20  Doug Evans  <xdje42@gmail.com>
9017
9018         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9019         All callers updated.
9020         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9021         All callers updated.
9022         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9023         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9024
9025 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9026             Joel Brobecker  <brobecker@adacore.com>
9027             Doug Evans  <xdje42@gmail.com>
9028
9029         PR symtab/16581
9030         * dwarf2read.c (struct die_info): New member in_process.
9031         (reset_die_in_process): New function.
9032         (process_die): Set it at the start, reset when returning.
9033         (inherit_abstract_dies): Only call process_die if origin_child_die
9034         not already being processed.
9035
9036 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9037
9038         * windows-nat.c (handle_unload_dll): Add function documentation.
9039         (do_initial_windows_stuff): Add comment explaining why we wait
9040         until after inferior initialization has finished before
9041         processing all DLLs.
9042
9043 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9044
9045         * windows-nat.c (get_module_name): Delete.
9046         (windows_get_exec_module_filename): New function, mostly
9047         inspired from get_module_name.
9048         (windows_pid_to_exec_file): Replace call to get_module_name
9049         by call to windows_get_exec_module_filename.
9050
9051 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9052
9053         * windows-nat.c (handle_load_dll): Rewrite this function's
9054         introductory comment.  Remove code using get_module_name
9055         to get the DLL's name.
9056
9057 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9058
9059         * windows-nat.c (get_windows_debug_event): Ignore
9060         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9061         if windows_initialization_done == 0.
9062         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9063         Adjust implementation to always load all DLLs.
9064         (do_initial_windows_stuff): Replace call to
9065         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9066
9067 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9068
9069         * windows-nat.c (_initialize_windows_nat): Deprecate the
9070         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9071         and "assf" aliases into commands, and deprecate them as well.
9072         * NEWS: Add entry explaining that "dll-symbols" and its two
9073         aliases are now deprecated.
9074
9075 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9076
9077         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9078         new-line in debug string.  Remove trailing spaces.
9079
9080 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9081
9082         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9083
9084 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9085
9086         * NEWS: Add entry for the new feature
9087         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9088         and class values.
9089
9090 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9091
9092         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9093
9094 2014-02-19  Pedro Alves  <palves@redhat.com>
9095
9096         * common/ptid.h (struct ptid): Mention that process_stratum
9097         targets should prefer ptid.lwp.
9098
9099 2014-02-19  Pedro Alves  <palves@redhat.com>
9100
9101         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9102         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9103         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9104         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9105         store remote thread ids rather than ptid.tid.
9106         (_initialize_remote): Adjust.
9107
9108 2014-02-19  Tom Tromey  <tromey@redhat.com>
9109
9110         * target.c (target_get_unwinder): Rewrite.
9111         (target_get_tailcall_unwinder): Rewrite.
9112         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9113         (record_btrace_to_get_tailcall_unwinder): New function.
9114         (init_record_btrace_ops): Update.
9115         * target.h (struct target_ops) <to_get_unwinder,
9116         to_get_tailcall_unwinder>: Now function pointers.  Use
9117         TARGET_DEFAULT_RETURN.
9118
9119 2014-02-19  Tom Tromey  <tromey@redhat.com>
9120
9121         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9122         argument.
9123         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9124
9125 2014-02-19  Tom Tromey  <tromey@redhat.com>
9126
9127         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9128         directly.
9129         * target-delegates.c: Rebuild.
9130         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9131         TARGET_DEFAULT_FUNC.
9132         * target.c (default_target_decr_pc_after_break): Rename from
9133         forward_target_decr_pc_after_break.  Simplify.
9134         (target_decr_pc_after_break): Rely on delegation.
9135
9136 2014-02-19  Tom Tromey  <tromey@redhat.com>
9137
9138         * target.c (update_current_target): Do not INHERIT to_doc or
9139         to_magic.  Do not de_fault to_open or to_close.
9140
9141 2014-02-19  Tom Tromey  <tromey@redhat.com>
9142
9143         * gcore.h (objfile_find_memory_regions): Declare.
9144         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9145         "self" argument.
9146         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9147         * exec.c: Include gcore.h.
9148         (exec_set_find_memory_regions): Remove.
9149         (exec_find_memory_regions): Remove.
9150         (exec_do_find_memory_regions): Remove.
9151         (init_exec_ops): Update.
9152         * defs.h (exec_set_find_memory_regions): Remove.
9153
9154 2014-02-19  Tom Tromey  <tromey@redhat.com>
9155
9156         * target-delegates.c: Rebuild.
9157         * target.h (struct target_ops) <to_extra_thread_info,
9158         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9159         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9160         not 0, in TARGET_DEFAULT_RETURN.
9161
9162 2014-02-19  Tom Tromey  <tromey@redhat.com>
9163
9164         * target.c (complete_target_initialization): Remove casts.  Use
9165         return_zero_has_execution.
9166         (return_zero): Add "ignore" argument.
9167         (return_zero_has_execution): New function.
9168         (init_dummy_target): Remove casts.  Use
9169         return_zero_has_execution.
9170
9171 2014-02-19  Tom Tromey  <tromey@redhat.com>
9172
9173         * target.c (update_current_target): Update comments.  Do not
9174         INHERIT to_stratum.
9175
9176 2014-02-19  Tom Tromey  <tromey@redhat.com>
9177
9178         * arm-linux-nat.c (arm_linux_read_description): Delegate when
9179         needed.
9180         * corelow.c (core_read_description): Delegate when needed.
9181         * remote.c (remote_read_description): Delegate when needed.
9182         * target-delegates.c: Rebuild.
9183         * target.c (target_read_description): Rewrite.
9184         * target.h (struct target_ops) <to_read_description>: Update
9185         comment.  Use TARGET_DEFAULT_RETURN.
9186
9187 2014-02-19  Tom Tromey  <tromey@redhat.com>
9188
9189         * target-delegates.c: Rebuild.
9190         * target.c (update_current_target): Don't inherit or default
9191         to_can_run.
9192         (find_default_run_target): Check against delegate_can_run.
9193         * target.h (struct target_ops) <to_can_run>: Use
9194         TARGET_DEFAULT_RETURN.
9195
9196 2014-02-19  Tom Tromey  <tromey@redhat.com>
9197
9198         * target-delegates.c: Rebuild.
9199         * target.c (target_disconnect): Unconditionally delegate.
9200         * target.h (struct target_ops) <to_disconnect>: Use
9201         TARGET_DEFAULT_NORETURN.
9202
9203 2014-02-19  Tom Tromey  <tromey@redhat.com>
9204
9205         * record.c (record_stop): Unconditionally delegate.
9206         * target-delegates.c: Rebuild.
9207         * target.c (target_stop_recording): Unconditionally delegate.
9208         * target.h (struct target_ops) <to_stop_recording>: Use
9209         TARGET_DEFAULT_IGNORE.
9210
9211 2014-02-19  Tom Tromey  <tromey@redhat.com>
9212
9213         * target-delegates.c: Rebuild.
9214         * target.c (target_enable_btrace): Unconditionally delegate.
9215         * target.h (struct target_ops) <to_enable_btrace>: Use
9216         TARGET_DEFAULT_NORETURN.
9217
9218 2014-02-19  Tom Tromey  <tromey@redhat.com>
9219
9220         * target-delegates.c: Rebuild.
9221         * target.c (target_read_btrace): Unconditionally delegate.
9222         * target.h (struct target_ops) <to_read_btrace>: Use
9223         TARGET_DEFAULT_NORETURN.
9224
9225 2014-02-19  Tom Tromey  <tromey@redhat.com>
9226
9227         * target-delegates.c: Rebuild.
9228         * target.c (target_teardown_btrace): Unconditionally delegate.
9229         * target.h (struct target_ops) <to_teardown_btrace>: Use
9230         TARGET_DEFAULT_NORETURN.
9231
9232 2014-02-19  Tom Tromey  <tromey@redhat.com>
9233
9234         * target-delegates.c: Rebuild.
9235         * target.c (target_disable_btrace): Unconditionally delegate.
9236         * target.h (struct target_ops) <to_disable_btrace>: Use
9237         TARGET_DEFAULT_NORETURN.
9238
9239 2014-02-19  Tom Tromey  <tromey@redhat.com>
9240
9241         * target-delegates.c: Rebuild.
9242         * target.c (default_search_memory): New function.
9243         (simple_search_memory): Update comment.
9244         (target_search_memory): Unconditionally delegate.
9245         * target.h (struct target_ops) <to_search_memory>: Use
9246         TARGET_DEFAULT_FUNC.
9247
9248 2014-02-19  Tom Tromey  <tromey@redhat.com>
9249
9250         * auxv.c (default_auxv_parse): No longer static.
9251         (target_auxv_parse): Unconditionally delegate.
9252         * auxv.h (default_auxv_parse): Declare.
9253         * target-delegates.c: Rebuild.
9254         * target.c: Include auxv.h.
9255         * target.h (struct target_ops) <to_auxv_parse>: Use
9256         TARGET_DEFAULT_FUNC.
9257
9258 2014-02-19  Tom Tromey  <tromey@redhat.com>
9259
9260         * target-delegates.c: Rebuild.
9261         * target.c (target_memory_map): Unconditionally delegate.
9262         * target.h (struct target_ops) <to_memory_map>: Use
9263         TARGET_DEFAULT_RETURN.
9264
9265 2014-02-19  Tom Tromey  <tromey@redhat.com>
9266
9267         * target-delegates.c: Rebuild.
9268         * target.c (target_thread_alive): Unconditionally delegate.
9269         * target.h (struct target_ops) <to_thread_alive>: Use
9270         TARGET_DEFAULT_RETURN.
9271
9272 2014-02-19  Tom Tromey  <tromey@redhat.com>
9273
9274         * target-delegates.c: Rebuild.
9275         * target.c (target_save_record): Unconditionally delegate.
9276         * target.h (struct target_ops) <to_save_record>: Use
9277         TARGET_DEFAULT_NORETURN.
9278
9279 2014-02-19  Tom Tromey  <tromey@redhat.com>
9280
9281         * target-delegates.c: Rebuild.
9282         * target.c (target_delete_record): Unconditionally delegate.
9283         * target.h (struct target_ops) <to_delete_record>: Use
9284         TARGET_DEFAULT_NORETURN.
9285
9286 2014-02-19  Tom Tromey  <tromey@redhat.com>
9287
9288         * target-delegates.c: Rebuild.
9289         * target.c (target_record_is_replaying): Unconditionally
9290         delegate.
9291         * target.h (struct target_ops) <to_record_is_replaying>: Use
9292         TARGET_DEFAULT_RETURN.
9293
9294 2014-02-19  Tom Tromey  <tromey@redhat.com>
9295
9296         * target-delegates.c: Rebuild.
9297         * target.c (target_goto_record_begin): Unconditionally delegate.
9298         * target.h (struct target_ops) <to_goto_record_begin>: Use
9299         TARGET_DEFAULT_NORETURN.
9300
9301 2014-02-19  Tom Tromey  <tromey@redhat.com>
9302
9303         * target-delegates.c: Rebuild.
9304         * target.c (target_goto_record_end): Unconditionally delegate.
9305         * target.h (struct target_ops) <to_goto_record_end>: Use
9306         TARGET_DEFAULT_NORETURN.
9307
9308 2014-02-19  Tom Tromey  <tromey@redhat.com>
9309
9310         * target-delegates.c: Rebuild.
9311         * target.c (target_goto_record): Unconditionally delegate.
9312         * target.h (struct target_ops) <to_goto_record>: Use
9313         TARGET_DEFAULT_NORETURN.
9314
9315 2014-02-19  Tom Tromey  <tromey@redhat.com>
9316
9317         * target-delegates.c: Rebuild.
9318         * target.c (target_insn_history): Unconditionally delegate.
9319         * target.h (struct target_ops) <to_insn_history>: Use
9320         TARGET_DEFAULT_NORETURN.
9321
9322 2014-02-19  Tom Tromey  <tromey@redhat.com>
9323
9324         * target-delegates.c: Rebuild.
9325         * target.c (target_insn_history_from): Unconditionally delegate.
9326         * target.h (struct target_ops) <to_insn_history_from>: Use
9327         TARGET_DEFAULT_NORETURN.
9328
9329 2014-02-19  Tom Tromey  <tromey@redhat.com>
9330
9331         * target-delegates.c: Rebuild.
9332         * target.c (target_insn_history_range): Unconditionally delegate.
9333         * target.h (struct target_ops) <to_insn_history_range>: Use
9334         TARGET_DEFAULT_NORETURN.
9335
9336 2014-02-19  Tom Tromey  <tromey@redhat.com>
9337
9338         * target-delegates.c: Rebuild.
9339         * target.c (target_call_history): Unconditionally delegate.
9340         * target.h (struct target_ops) <to_call_history>: Use
9341         TARGET_DEFAULT_NORETURN.
9342
9343 2014-02-19  Tom Tromey  <tromey@redhat.com>
9344
9345         * target-delegates.c: Rebuild.
9346         * target.c (target_call_history_from): Unconditionally delegate.
9347         * target.h (struct target_ops) <to_call_history_from>: Use
9348         TARGET_DEFAULT_NORETURN.
9349
9350 2014-02-19  Tom Tromey  <tromey@redhat.com>
9351
9352         * target-delegates.c: Rebuild.
9353         * target.c (target_call_history_range): Unconditionally delegate.
9354         * target.h (struct target_ops) <to_call_history_range>: Use
9355         TARGET_DEFAULT_NORETURN.
9356
9357 2014-02-19  Tom Tromey  <tromey@redhat.com>
9358
9359         * target-delegates.c: Rebuild.
9360         * target.c (target_verify_memory): Unconditionally delegate.
9361         * target.h (struct target_ops) <to_verify_memory>: Use
9362         TARGET_DEFAULT_NORETURN.
9363
9364 2014-02-19  Tom Tromey  <tromey@redhat.com>
9365
9366         * target-delegates.c: Rebuild.
9367         * target.c (target_core_of_thread): Unconditionally delegate.
9368         * target.h (struct target_ops) <to_core_of_thread>: Use
9369         TARGET_DEFAULT_RETURN.
9370
9371 2014-02-19  Tom Tromey  <tromey@redhat.com>
9372
9373         * target-delegates.c: Rebuild.
9374         * target.c (target_flash_done): Unconditionally delegate.
9375         * target.h (struct target_ops) <to_flash_done>: Use
9376         TARGET_DEFAULT_NORETURN.
9377
9378 2014-02-19  Tom Tromey  <tromey@redhat.com>
9379
9380         * target-delegates.c: Rebuild.
9381         * target.c (target_flash_erase): Unconditionally delegate.
9382         * target.h (struct target_ops) <to_flash_erase>: Use
9383         TARGET_DEFAULT_NORETURN.
9384
9385 2014-02-19  Tom Tromey  <tromey@redhat.com>
9386
9387         * target-delegates.c: Rebuild.
9388         * target.c (target_get_section_table): Unconditionally delegate.
9389         * target.h (struct target_ops) <to_get_section_table>: Use
9390         TARGET_DEFAULT_RETURN.
9391
9392 2014-02-19  Tom Tromey  <tromey@redhat.com>
9393
9394         * target-delegates.c: Rebuild.
9395         * target.c (target_pid_to_str): Unconditionally delegate.
9396         (init_dummy_target): Don't initialize to_pid_to_str.
9397         (default_pid_to_str): Rename from dummy_pid_to_str.
9398         * target.h (struct target_ops) <to_pid_to_str>: Use
9399         TARGET_DEFAULT_FUNC.
9400
9401 2014-02-19  Tom Tromey  <tromey@redhat.com>
9402
9403         * target-delegates.c: Rebuild.
9404         * target.c (target_find_new_threads): Unconditionally delegate.
9405         * target.h (struct target_ops) <to_find_new_threads>: Use
9406         TARGET_DEFAULT_RETURN.
9407
9408 2014-02-19  Tom Tromey  <tromey@redhat.com>
9409
9410         * target-delegates.c: Rebuild.
9411         * target.c (target_program_signals): Unconditionally delegate.
9412         * target.h (struct target_ops) <to_program_signals>: Use
9413         TARGET_DEFAULT_IGNORE.
9414
9415 2014-02-19  Tom Tromey  <tromey@redhat.com>
9416
9417         * target-delegates.c: Rebuild.
9418         * target.c (target_pass_signals): Unconditionally delegate.
9419         * target.h (struct target_ops) <to_pass_signals>: Use
9420         TARGET_DEFAULT_IGNORE.
9421
9422 2014-02-19  Tom Tromey  <tromey@redhat.com>
9423
9424         * target-delegates.c: Rebuild.
9425         * target.c (default_mourn_inferior): New function.
9426         (target_mourn_inferior): Unconditionally delegate.
9427         * target.h (struct target_ops) <to_mourn_inferior>: Use
9428         TARGET_DEFAULT_FUNC.
9429
9430 2014-02-19  Tom Tromey  <tromey@redhat.com>
9431
9432         * target-delegates.c: Rebuild.
9433         * target.c (default_follow_fork): New function.
9434         (target_follow_fork): Unconditionally delegate.
9435         * target.h (struct target_ops) <to_follow_fork>: Use
9436         TARGET_DEFAULT_FUNC.
9437
9438 2014-02-19  Tom Tromey  <tromey@redhat.com>
9439
9440         * target-delegates.c: Rebuild.
9441         * target.c (target_kill): Unconditionally delegate.
9442         * target.h (struct target_ops) <to_kill>: Use
9443         TARGET_DEFAULT_NORETURN.
9444
9445 2014-02-19  Tom Tromey  <tromey@redhat.com>
9446
9447         * target-delegates.c: Rebuild.
9448         * target.c (target_masked_watch_num_registers): Unconditionally
9449         delegate.
9450         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9451         Use TARGET_DEFAULT_RETURN.
9452
9453 2014-02-19  Tom Tromey  <tromey@redhat.com>
9454
9455         * target-delegates.c: Rebuild.
9456         * target.c (target_remove_mask_watchpoint): Unconditionally
9457         delegate.
9458         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9459         TARGET_DEFAULT_RETURN.
9460
9461 2014-02-19  Tom Tromey  <tromey@redhat.com>
9462
9463         * target-delegates.c: Rebuild.
9464         * target.c (target_insert_mask_watchpoint): Unconditionally
9465         delegate.
9466         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9467         TARGET_DEFAULT_RETURN.
9468
9469 2014-02-19  Tom Tromey  <tromey@redhat.com>
9470
9471         * target-delegates.c: Rebuild.
9472         * target.c (target_ranged_break_num_registers): Unconditionally
9473         delegate.
9474         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9475         Use TARGET_DEFAULT_RETURN.
9476
9477 2014-02-19  Tom Tromey  <tromey@redhat.com>
9478
9479         * target-delegates.c: Rebuild.
9480         * target.c (target_fetch_registers): Unconditionally delegate.
9481         * target.h (struct target_ops) <to_fetch_registers>: Use
9482         TARGET_DEFAULT_NORETURN.
9483
9484 2014-02-19  Tom Tromey  <tromey@redhat.com>
9485
9486         * target-delegates.c: Rebuild.
9487         * target.c (update_current_target): Don't inherit or default
9488         to_stop.
9489         * target.h (struct target_ops) <to_stop>: Use
9490         TARGET_DEFAULT_IGNORE.
9491
9492 2014-02-19  Tom Tromey  <tromey@redhat.com>
9493
9494         * target-delegates.c: Rebuild.
9495         * target.c (update_current_target): Don't inherit or default
9496         to_can_run_breakpoint_commands.
9497         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9498         Use TARGET_DEFAULT_RETURN.
9499
9500 2014-02-19  Tom Tromey  <tromey@redhat.com>
9501
9502         * target-delegates.c: Rebuild.
9503         * target.c (update_current_target): Don't inherit or default
9504         to_supports_evaluation_of_breakpoint_conditions.
9505         * target.h (struct target_ops)
9506         <to_supports_evaluation_of_breakpoint_conditions>: Use
9507         TARGET_DEFAULT_RETURN.
9508
9509 2014-02-19  Tom Tromey  <tromey@redhat.com>
9510
9511         * target-delegates.c: Rebuild.
9512         * target.c (update_current_target): Don't inherit or default
9513         to_augmented_libraries_svr4_read.
9514         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9515         Use TARGET_DEFAULT_RETURN.
9516
9517 2014-02-19  Tom Tromey  <tromey@redhat.com>
9518
9519         * target-delegates.c: Rebuild.
9520         * target.c (update_current_target): Don't inherit or default
9521         to_can_use_agent.
9522         * target.h (struct target_ops) <to_can_use_agent>: Use
9523         TARGET_DEFAULT_RETURN.
9524
9525 2014-02-19  Tom Tromey  <tromey@redhat.com>
9526
9527         * target-delegates.c: Rebuild.
9528         * target.c (update_current_target): Don't inherit or default
9529         to_use_agent.
9530         * target.h (struct target_ops) <to_use_agent>: Use
9531         TARGET_DEFAULT_NORETURN.
9532
9533 2014-02-19  Tom Tromey  <tromey@redhat.com>
9534
9535         * target-delegates.c: Rebuild.
9536         * target.c (update_current_target): Don't inherit or default
9537         to_traceframe_info.
9538         (return_null): Remove.
9539         * target.h (struct target_ops) <to_traceframe_info>: Use
9540         TARGET_DEFAULT_RETURN.
9541
9542 2014-02-19  Tom Tromey  <tromey@redhat.com>
9543
9544         * target-delegates.c: Rebuild.
9545         * target.c (update_current_target): Don't inherit or default
9546         to_static_tracepoint_markers_by_strid.
9547         * target.h (struct target_ops)
9548         <to_static_tracepoint_markers_by_strid>: Use
9549         TARGET_DEFAULT_NORETURN.
9550
9551 2014-02-19  Tom Tromey  <tromey@redhat.com>
9552
9553         * target-delegates.c: Rebuild.
9554         * target.c (update_current_target): Don't inherit or default
9555         to_static_tracepoint_marker_at.
9556         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9557         Use TARGET_DEFAULT_RETURN.
9558
9559 2014-02-19  Tom Tromey  <tromey@redhat.com>
9560
9561         * target-delegates.c: Rebuild.
9562         * target.c (update_current_target): Don't inherit or default
9563         to_set_permissions.
9564         * target.h (struct target_ops) <to_set_permissions>: Use
9565         TARGET_DEFAULT_IGNORE.
9566
9567 2014-02-19  Tom Tromey  <tromey@redhat.com>
9568
9569         * target-delegates.c: Rebuild.
9570         * target.c (update_current_target): Don't inherit or default
9571         to_get_tib_address.
9572         * target.h (struct target_ops) <to_get_tib_address>: Use
9573         TARGET_DEFAULT_NORETURN.
9574
9575 2014-02-19  Tom Tromey  <tromey@redhat.com>
9576
9577         * target-delegates.c: Rebuild.
9578         * target.c (update_current_target): Don't inherit or default
9579         to_set_trace_notes.
9580         * target.h (struct target_ops) <to_set_trace_notes>: Use
9581         TARGET_DEFAULT_RETURN.
9582
9583 2014-02-19  Tom Tromey  <tromey@redhat.com>
9584
9585         * target-delegates.c: Rebuild.
9586         * target.c (update_current_target): Don't initialize
9587         to_set_trace_buffer_size.
9588         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9589         TARGET_DEFAULT_IGNORE.
9590
9591 2014-02-19  Tom Tromey  <tromey@redhat.com>
9592
9593         * target-delegates.c: Rebuild.
9594         * target.c (update_current_target): Don't inherit or default
9595         to_set_circular_trace_buffer.
9596         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9597         TARGET_DEFAULT_IGNORE.
9598
9599 2014-02-19  Tom Tromey  <tromey@redhat.com>
9600
9601         * target-delegates.c: Rebuild.
9602         * target.c (update_current_target): Don't inherit or default
9603         to_set_disconnected_tracing.
9604         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9605         TARGET_DEFAULT_IGNORE.
9606
9607 2014-02-19  Tom Tromey  <tromey@redhat.com>
9608
9609         * target-delegates.c: Rebuild.
9610         * target.c (update_current_target): Don't inherit or default
9611         to_get_min_fast_tracepoint_insn_len.
9612         (return_minus_one): Remove.
9613         * target.h (struct target_ops)
9614         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9615
9616 2014-02-19  Tom Tromey  <tromey@redhat.com>
9617
9618         * target-delegates.c: Rebuild.
9619         * target.c (update_current_target): Don't inherit or default
9620         to_get_raw_trace_data.
9621         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9622         TARGET_DEFAULT_NORETURN.
9623
9624 2014-02-19  Tom Tromey  <tromey@redhat.com>
9625
9626         * target-delegates.c: Rebuild.
9627         * target.c (update_current_target): Don't inherit or default
9628         to_upload_trace_state_variables.
9629         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9630         Use TARGET_DEFAULT_RETURN.
9631
9632 2014-02-19  Tom Tromey  <tromey@redhat.com>
9633
9634         * target-delegates.c: Rebuild.
9635         * target.c (update_current_target): Don't inherit or default
9636         to_upload_tracepoints.
9637         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9638         TARGET_DEFAULT_RETURN.
9639
9640 2014-02-19  Tom Tromey  <tromey@redhat.com>
9641
9642         * target-delegates.c: Rebuild.
9643         * target.c (update_current_target): Don't inherit or default
9644         to_save_trace_data.
9645         * target.h (struct target_ops) <to_save_trace_data>: Use
9646         TARGET_DEFAULT_NORETURN.
9647
9648 2014-02-19  Tom Tromey  <tromey@redhat.com>
9649
9650         * target-delegates.c: Rebuild.
9651         * target.c (update_current_target): Don't inherit or default
9652         to_get_trace_state_variable_value.
9653         * target.h (struct target_ops)
9654         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9655
9656 2014-02-19  Tom Tromey  <tromey@redhat.com>
9657
9658         * target-delegates.c: Rebuild.
9659         * target.c (update_current_target): Don't inherit or default
9660         to_trace_find.
9661         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9662
9663 2014-02-19  Tom Tromey  <tromey@redhat.com>
9664
9665         * target-delegates.c: Rebuild.
9666         * target.c (update_current_target): Don't inherit or default
9667         to_trace_stop.
9668         * target.h (struct target_ops) <to_trace_stop>: Use
9669         TARGET_DEFAULT_NORETURN.
9670
9671 2014-02-19  Tom Tromey  <tromey@redhat.com>
9672
9673         * target-delegates.c: Rebuild.
9674         * target.c (update_current_target): Don't inherit or default
9675         to_get_tracepoint_status.
9676         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9677         TARGET_DEFAULT_NORETURN.
9678
9679 2014-02-19  Tom Tromey  <tromey@redhat.com>
9680
9681         * target-delegates.c: Rebuild.
9682         * target.c (update_current_target): Don't inherit or default
9683         to_get_trace_status.
9684         * target.h (struct target_ops) <to_get_trace_status>: Use
9685         TARGET_DEFAULT_RETURN.
9686
9687 2014-02-19  Tom Tromey  <tromey@redhat.com>
9688
9689         * target-delegates.c: Rebuild.
9690         * target.c (update_current_target): Don't inherit or default
9691         to_trace_start.
9692         * target.h (struct target_ops) <to_trace_start>: Use
9693         TARGET_DEFAULT_NORETURN.
9694
9695 2014-02-19  Tom Tromey  <tromey@redhat.com>
9696
9697         * target-delegates.c: Rebuild.
9698         * target.c (update_current_target): Don't inherit or default
9699         to_trace_set_readonly_regions.
9700         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9701         Use TARGET_DEFAULT_NORETURN.
9702
9703 2014-02-19  Tom Tromey  <tromey@redhat.com>
9704
9705         * target-delegates.c: Rebuild.
9706         * target.c (update_current_target): Don't inherit or default
9707         to_disable_tracepoint.
9708         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9709         TARGET_DEFAULT_NORETURN.
9710
9711 2014-02-19  Tom Tromey  <tromey@redhat.com>
9712
9713         * target-delegates.c: Rebuild.
9714         * target.c (update_current_target): Don't inherit or default
9715         to_enable_tracepoint.
9716         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9717         TARGET_DEFAULT_NORETURN.
9718
9719 2014-02-19  Tom Tromey  <tromey@redhat.com>
9720
9721         * target-delegates.c: Rebuild.
9722         * target.c (update_current_target): Don't inherit or default
9723         to_download_trace_state_variable.
9724         * target.h (struct target_ops) <to_download_trace_state_variable>:
9725         Use TARGET_DEFAULT_NORETURN.
9726
9727 2014-02-19  Tom Tromey  <tromey@redhat.com>
9728
9729         * target-delegates.c: Rebuild.
9730         * target.c (update_current_target): Don't inherit or default
9731         to_can_download_tracepoint.
9732         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9733         TARGET_DEFAULT_RETURN.
9734
9735 2014-02-19  Tom Tromey  <tromey@redhat.com>
9736
9737         * target-delegates.c: Rebuild.
9738         * target.c (update_current_target): Don't inherit or default
9739         to_download_tracepoint.
9740         * target.h (struct target_ops) <to_download_tracepoint>: Use
9741         TARGET_DEFAULT_NORETURN.
9742
9743 2014-02-19  Tom Tromey  <tromey@redhat.com>
9744
9745         * target-delegates.c: Rebuild.
9746         * target.c (update_current_target): Don't inherit or default
9747         to_trace_init.
9748         * target.h (struct target_ops) <to_trace_init>: Use
9749         TARGET_DEFAULT_RETURN.
9750
9751 2014-02-19  Tom Tromey  <tromey@redhat.com>
9752
9753         * target-delegates.c: Rebuild.
9754         * target.c (update_current_target): Don't inherit or default
9755         to_supports_string_tracing.
9756         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9757         TARGET_DEFAULT_RETURN.
9758
9759 2014-02-19  Tom Tromey  <tromey@redhat.com>
9760
9761         * target-delegates.c: Rebuild.
9762         * target.c (update_current_target): Don't inherit or default
9763         to_supports_enable_disable_tracepoint.
9764         * target.h (struct target_ops)
9765         <to_supports_enable_disable_tracepoint>: Use
9766         TARGET_DEFAULT_RETURN.
9767
9768 2014-02-19  Tom Tromey  <tromey@redhat.com>
9769
9770         * target-delegates.c: Rebuild.
9771         * target.c (update_current_target): Don't inherit or default
9772         to_supports_multi_process.
9773         * target.h (struct target_ops) <to_supports_multi_process>: Use
9774         TARGET_DEFAULT_RETURN.
9775
9776 2014-02-19  Tom Tromey  <tromey@redhat.com>
9777
9778         * target-delegates.c: Rebuild.
9779         * target.c (update_current_target): Don't inherit or default
9780         to_get_ada_task_ptid.
9781         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9782         TARGET_DEFAULT_FUNC.
9783
9784 2014-02-19  Tom Tromey  <tromey@redhat.com>
9785
9786         * target-delegates.c: Rebuild.
9787         * target.c (update_current_target): Don't inherit or default
9788         to_thread_architecture.
9789         * target.h (struct target_ops) <to_thread_architecture>: Use
9790         TARGET_DEFAULT_FUNC.
9791
9792 2014-02-19  Tom Tromey  <tromey@redhat.com>
9793
9794         * target-delegates.c: Rebuild.
9795         * target.c (update_current_target): Don't inherit or default
9796         to_execution_direction.
9797         * target.h (struct target_ops) <to_execution_direction>: Use
9798         TARGET_DEFAULT_FUNC.
9799
9800 2014-02-19  Tom Tromey  <tromey@redhat.com>
9801
9802         * target-delegates.c: Rebuild.
9803         * target.c (update_current_target): Don't inherit or default
9804         to_can_execute_reverse.
9805         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9806         TARGET_DEFAULT_RETURN.
9807         (target_can_execute_reverse): Unconditionally delegate.
9808
9809 2014-02-19  Tom Tromey  <tromey@redhat.com>
9810
9811         * target-delegates.c: Rebuild.
9812         * target.c (update_current_target): Don't inherit or default
9813         to_goto_bookmark.
9814         (dummy_goto_bookmark): Remove.
9815         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9816         * target.h (struct target_ops) <to_goto_bookmark>: Use
9817         TARGET_DEFAULT_NORETURN.
9818
9819 2014-02-19  Tom Tromey  <tromey@redhat.com>
9820
9821         * target-delegates.c: Rebuild.
9822         * target.c (update_current_target): Don't inherit or default
9823         to_get_bookmark.
9824         (dummy_get_bookmark): Remove.
9825         (init_dummy_target): Don't inherit or default to_get_bookmark.
9826         * target.h (struct target_ops) <to_get_bookmark>: Use
9827         TARGET_DEFAULT_NORETURN
9828
9829 2014-02-19  Tom Tromey  <tromey@redhat.com>
9830
9831         * target-delegates.c: Rebuild.
9832         * target.c (update_current_target): Don't inherit or default
9833         to_make_corefile_notes.
9834         (init_dummy_target): Don't initialize to_make_corefile_notes.
9835         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9836         TARGET_DEFAULT_FUNC.
9837
9838 2014-02-19  Tom Tromey  <tromey@redhat.com>
9839
9840         * target-delegates.c: Rebuild.
9841         * target.c (update_current_target): Don't inherit or default
9842         to_find_memory_regions.
9843         (init_dummy_target): Don't initialize to_find_memory_regions.
9844         * target.h (struct target_ops) <to_find_memory_regions>: Use
9845         TARGET_DEFAULT_FUNC.
9846
9847 2014-02-19  Tom Tromey  <tromey@redhat.com>
9848
9849         * target-delegates.c: Rebuild.
9850         * target.c (update_current_target): Don't inherit or default
9851         to_log_command.
9852         * target.h (struct target_ops) <to_log_command>: Use
9853         TARGET_DEFAULT_IGNORE.
9854         (target_log_command): Unconditionally delegate.
9855
9856 2014-02-19  Tom Tromey  <tromey@redhat.com>
9857
9858         * target-delegates.c: Rebuild.
9859         * target.c (update_current_target): Don't inherit or default
9860         to_pid_to_exec_file.
9861         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9862         TARGET_DEFAULT_RETURN.
9863
9864 2014-02-19  Tom Tromey  <tromey@redhat.com>
9865
9866         * target-delegates.c: Rebuild.
9867         * target.c (update_current_target): Don't inherit or default
9868         to_thread_name.
9869         (target_thread_name): Unconditionally delegate.
9870         * target.h (struct target_ops) <to_thread_name>: Use
9871         TARGET_DEFAULT_RETURN.
9872
9873 2014-02-19  Tom Tromey  <tromey@redhat.com>
9874
9875         * target-delegates.c: Rebuild.
9876         * target.c (update_current_target): Don't inherit or default
9877         to_extra_thread_info.
9878         * target.h (struct target_ops) <to_extra_thread_info>: Use
9879         TARGET_DEFAULT_RETURN.
9880
9881 2014-02-19  Tom Tromey  <tromey@redhat.com>
9882
9883         * target-delegates.c: Rebuild.
9884         * target.c (update_current_target): Don't inherit or default
9885         to_has_exited.
9886         * target.h (struct target_ops) <to_has_exited>: Use
9887         TARGET_DEFAULT_RETURN..
9888
9889 2014-02-19  Tom Tromey  <tromey@redhat.com>
9890
9891         * target-delegates.c: Rebuild.
9892         * target.c (update_current_target): Don't inherit or default
9893         to_set_syscall_catchpoint.
9894         (return_one): Remove.
9895         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9896         TARGET_DEFAULT_RETURN.
9897
9898 2014-02-19  Tom Tromey  <tromey@redhat.com>
9899
9900         * target-delegates.c: Rebuild.
9901         * target.c (update_current_target): Don't inherit or default
9902         to_insert_exec_catchpoint.
9903         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9904         TARGET_DEFAULT_RETURN.
9905
9906 2014-01-08  Tom Tromey  <tromey@redhat.com>
9907
9908         * target-delegates.c: Rebuild.
9909         * target.c (update_current_target): Don't inherit or default
9910         to_insert_exec_catchpoint.
9911         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9912         TARGET_DEFAULT_RETURN.
9913
9914 2014-02-19  Tom Tromey  <tromey@redhat.com>
9915
9916         * target-delegates.c: Rebuild.
9917         * target.c (update_current_target): Don't inherit or default
9918         to_remove_vfork_catchpoint.
9919         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9920         TARGET_DEFAULT_RETURN.
9921
9922 2014-02-19  Tom Tromey  <tromey@redhat.com>
9923
9924         * target-delegates.c: Rebuild.
9925         * target.c (update_current_target): Don't inherit or default
9926         to_insert_vfork_catchpoint.
9927         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9928         TARGET_DEFAULT_RETURN.
9929
9930 2014-02-19  Tom Tromey  <tromey@redhat.com>
9931
9932         * target-delegates.c: Rebuild.
9933         * target.c (update_current_target): Don't inherit or default
9934         to_remove_fork_catchpoint.
9935         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9936         TARGET_DEFAULT_RETURN.
9937
9938 2014-02-19  Tom Tromey  <tromey@redhat.com>
9939
9940         * target-delegates.c: Rebuild.
9941         * target.c (update_current_target): Don't inherit or default
9942         to_insert_fork_catchpoint.
9943         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9944         TARGET_DEFAULT_RETURN.
9945
9946 2014-02-19  Tom Tromey  <tromey@redhat.com>
9947
9948         * target-delegates.c: Rebuild.
9949         * target.c (update_current_target): Don't inherit or default
9950         to_post_startup_inferior.
9951         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9952         TARGET_DEFAULT_IGNORE.
9953
9954 2014-02-19  Tom Tromey  <tromey@redhat.com>
9955
9956         * target-delegates.c: Rebuild.
9957         * target.c (update_current_target): Don't inherit or default
9958         to_load.
9959         * target.h (struct target_ops) <to_load>: Use
9960         TARGET_DEFAULT_NORETURN.
9961
9962 2014-02-19  Tom Tromey  <tromey@redhat.com>
9963
9964         * target-delegates.c: Rebuild.
9965         * target.c (update_current_target): Don't inherit or default
9966         to_terminal_info.
9967         * target.h (struct target_ops) <to_terminal_info>: Use
9968         TARGET_DEFAULT_FUNC.
9969
9970 2014-02-19  Tom Tromey  <tromey@redhat.com>
9971
9972         * target-delegates.c: Rebuild.
9973         * target.c (update_current_target): Don't inherit or default
9974         to_terminal_save_ours.
9975         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9976         TARGET_DEFAULT_IGNORE.
9977
9978 2014-02-19  Tom Tromey  <tromey@redhat.com>
9979
9980         * target-delegates.c: Rebuild.
9981         * target.c (update_current_target): Don't inherit or default
9982         to_terminal_ours.
9983         * target.h (struct target_ops) <to_terminal_ours>: Use
9984         TARGET_DEFAULT_IGNORE.
9985
9986 2014-02-19  Tom Tromey  <tromey@redhat.com>
9987
9988         * target-delegates.c: Rebuild.
9989         * target.c (update_current_target): Don't inherit or default
9990         to_terminal_ours_for_output.
9991         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9992         TARGET_DEFAULT_IGNORE.
9993
9994 2014-02-19  Tom Tromey  <tromey@redhat.com>
9995
9996         * target-delegates.c: Rebuild.
9997         * target.c (update_current_target): Don't inherit or default
9998         to_terminal_inferior.
9999         * target.h (struct target_ops) <to_terminal_inferior>: Use
10000         TARGET_DEFAULT_IGNORE.
10001
10002 2014-02-19  Tom Tromey  <tromey@redhat.com>
10003
10004         * target-delegates.c: Rebuild.
10005         * target.c (update_current_target): Don't inherit or default
10006         to_terminal_init.
10007         * target.h (struct target_ops) <to_terminal_init>: Use
10008         TARGET_DEFAULT_IGNORE.
10009
10010 2014-02-19  Tom Tromey  <tromey@redhat.com>
10011
10012         * target-delegates.c: Rebuild.
10013         * target.c (update_current_target): Don't inherit or default
10014         to_can_accel_watchpoint_condition.
10015         * target.h (struct target_ops)
10016         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10017
10018 2014-02-19  Tom Tromey  <tromey@redhat.com>
10019
10020         * target-delegates.c: Rebuild.
10021         * target.c (update_current_target): Don't inherit or default
10022         to_region_ok_for_hw_watchpoint.
10023         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10024         Use TARGET_DEFAULT_FUNC.
10025
10026 2014-02-19  Tom Tromey  <tromey@redhat.com>
10027
10028         * target-delegates.c: Rebuild.
10029         * target.c (update_current_target): Don't inherit or default
10030         to_watchpoint_addr_within_range.
10031         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10032         Use TARGET_DEFAULT_FUNC.
10033
10034 2014-02-19  Tom Tromey  <tromey@redhat.com>
10035
10036         * target-delegates.c: Rebuild.
10037         * target.c (update_current_target): Don't inherit or default
10038         to_remove_watchpoint.
10039         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10040         TARGET_DEFAULT_NORETURN.
10041
10042 2014-02-19  Tom Tromey  <tromey@redhat.com>
10043
10044         * target-delegates.c: Rebuild.
10045         * target.c (update_current_target): Don't inherit or default
10046         to_insert_watchpoint.
10047         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10048         TARGET_DEFAULT_RETURN.
10049
10050 2014-02-19  Tom Tromey  <tromey@redhat.com>
10051
10052         * target-delegates.c: Rebuild.
10053         * target.c (update_current_target): Don't inherit or default
10054         to_remove_hw_breakpoint.
10055         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10056         TARGET_DEFAULT_RETURN.
10057
10058 2014-02-19  Tom Tromey  <tromey@redhat.com>
10059
10060         * target-delegates.c: Rebuild.
10061         * target.c (update_current_target): Don't inherit or default
10062         to_insert_hw_breakpoint.
10063         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10064         TARGET_DEFAULT_RETURN.
10065
10066 2014-02-19  Tom Tromey  <tromey@redhat.com>
10067
10068         * target-delegates.c: Rebuild.
10069         * target.c (update_current_target): Don't inherit or default
10070         to_can_use_hw_breakpoint.
10071         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10072         TARGET_DEFAULT_RETURN.
10073
10074 2014-02-19  Tom Tromey  <tromey@redhat.com>
10075
10076         * target-delegates.c: Rebuild.
10077         * target.c (update_current_target): Don't inherit or default
10078         to_files_info.
10079         * target.h (struct target_ops) <to_files_info>: Use
10080         TARGET_DEFAULT_IGNORE.
10081
10082 2014-02-19  Tom Tromey  <tromey@redhat.com>
10083
10084         * target-delegates.c: Rebuild.
10085         * target.c (update_current_target): Don't inherit or default
10086         to_store.
10087         * target.h (struct target_ops) <to_store>: Use
10088         TARGET_DEFAULT_NORETURN.
10089
10090 2014-02-19  Tom Tromey  <tromey@redhat.com>
10091
10092         * target-delegates.c: Rebuild.
10093         * target.c (update_current_target): Don't inherit or default
10094         to_post_attach.
10095         * target.h (struct target_ops) <to_post_attach>: Use
10096         TARGET_DEFAULT_IGNORE.
10097
10098 2014-02-19  Tom Tromey  <tromey@redhat.com>
10099
10100         * target-delegates.c: Rebuild.
10101         * target.c (update_current_target): Don't inherit or default
10102         to_rcmd.
10103         (default_rcmd): New function.
10104         (do_monitor_command): Unconditionally delegate.
10105         * target.h (struct target_ops) <to_rmcd>: Use
10106         TARGET_DEFAULT_FUNC.
10107
10108 2014-02-19  Tom Tromey  <tromey@redhat.com>
10109
10110         * target-delegates.c: Rebuild.
10111         * target.c (init_dummy_target): Don't initialize to_attach.
10112         (target_attach): Unconditionally delegate.
10113         * target.h (struct target_ops) <to_attach>: Use
10114         TARGET_DEFAULT_FUNC.
10115
10116 2014-02-19  Tom Tromey  <tromey@redhat.com>
10117
10118         * target-delegates.c: Rebuild.
10119         * target.c (target_detach): Unconditionally delegate.
10120         (init_dummy_target): Don't initialize to_detach.
10121         * target.h (struct target_ops) <to_detach>: Use
10122         TARGET_DEFAULT_IGNORE.
10123
10124 2014-02-19  Tom Tromey  <tromey@redhat.com>
10125
10126         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10127         Add argument.
10128         (target_augmented_libraries_svr4_read): Add argument.
10129         * target.c (update_current_target): Update.
10130         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10131         argument.
10132
10133 2014-02-19  Tom Tromey  <tromey@redhat.com>
10134
10135         * target.h (struct target_ops) <to_call_history_range>: Add
10136         argument.
10137         * target.c (target_call_history_range): Add argument.
10138         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10139         argument.
10140         (record_btrace_call_history_from): Update.
10141
10142 2014-02-19  Tom Tromey  <tromey@redhat.com>
10143
10144         * target.h (struct target_ops) <to_call_history_from>: Add
10145         argument.
10146         * target.c (target_call_history_from): Add argument.
10147         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10148         argument.
10149
10150 2014-02-19  Tom Tromey  <tromey@redhat.com>
10151
10152         * target.h (struct target_ops) <to_call_history>: Add argument.
10153         * target.c (target_call_history): Add argument.
10154         * record-btrace.c (record_btrace_call_history): Add 'self'
10155         argument.
10156
10157 2014-02-19  Tom Tromey  <tromey@redhat.com>
10158
10159         * target.h (struct target_ops) <to_insn_history_range>: Add
10160         argument.
10161         * target.c (target_insn_history_range): Add argument.
10162         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10163         argument.
10164         (record_btrace_insn_history_from): Update.
10165
10166 2014-02-19  Tom Tromey  <tromey@redhat.com>
10167
10168         * target.h (struct target_ops) <to_insn_history_from>: Add
10169         argument.
10170         * target.c (target_insn_history_from): Add argument.
10171         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10172         argument.
10173
10174 2014-02-19  Tom Tromey  <tromey@redhat.com>
10175
10176         * target.h (struct target_ops) <to_insn_history>: Add argument.
10177         * target.c (target_insn_history): Add argument.
10178         * record-btrace.c (record_btrace_insn_history): Add 'self'
10179         argument.
10180
10181 2014-02-19  Tom Tromey  <tromey@redhat.com>
10182
10183         * target.h (struct target_ops) <to_goto_record>: Add argument.
10184         * target.c (target_goto_record): Add argument.
10185         * record-full.c (record_full_goto): Add 'self' argument.
10186         * record-btrace.c (record_btrace_goto): Add 'self' argument.
10187
10188 2014-02-19  Tom Tromey  <tromey@redhat.com>
10189
10190         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10191         * target.c (target_goto_record_end): Add argument.
10192         * record-full.c (record_full_goto_end): Add 'self' argument.
10193         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10194
10195 2014-02-19  Tom Tromey  <tromey@redhat.com>
10196
10197         * target.h (struct target_ops) <to_goto_record_begin>: Add
10198         argument.
10199         * target.c (target_goto_record_begin): Add argument.
10200         * record-full.c (record_full_goto_begin): Add 'self' argument.
10201         * record-btrace.c (record_btrace_goto_begin): Add 'self'
10202         argument.
10203
10204 2014-02-19  Tom Tromey  <tromey@redhat.com>
10205
10206         * target.h (struct target_ops) <to_record_is_replaying>: Add
10207         argument.
10208         * target.c (target_record_is_replaying): Add argument.
10209         * record-full.c (record_full_is_replaying): Add 'self' argument.
10210         * record-btrace.c (record_btrace_is_replaying): Add 'self'
10211         argument.
10212         (record_btrace_xfer_partial, record_btrace_store_registers)
10213         (record_btrace_prepare_to_store, record_btrace_resume)
10214         (record_btrace_wait, record_btrace_decr_pc_after_break)
10215         (record_btrace_find_new_threads, record_btrace_thread_alive):
10216         Update.
10217
10218 2014-02-19  Tom Tromey  <tromey@redhat.com>
10219
10220         * target.h (struct target_ops) <to_delete_record>: Add argument.
10221         * target.c (target_delete_record): Add argument.
10222         * record-full.c (record_full_delete): Add 'self' argument.
10223
10224 2014-02-19  Tom Tromey  <tromey@redhat.com>
10225
10226         * target.h (struct target_ops) <to_save_record>: Add argument.
10227         * target.c (target_save_record): Add argument.
10228         * record-full.c (record_full_save): Add 'self' argument.
10229         (record_full_save): Add 'self' argument.
10230
10231 2014-02-19  Tom Tromey  <tromey@redhat.com>
10232
10233         * target.h (struct target_ops) <to_info_record>: Add argument.
10234         * target.c (target_info_record): Add argument.
10235         * record.c (info_record_command): Add argument.
10236         * record-full.c (record_full_info): Add 'self' argument.
10237         * record-btrace.c (record_btrace_info): Add 'self' argument.
10238
10239 2014-02-19  Tom Tromey  <tromey@redhat.com>
10240
10241         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10242         * target.c (target_stop_recording): Add argument.
10243         * record.c (record_stop): Add argument.
10244         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10245         argument.
10246
10247 2014-02-19  Tom Tromey  <tromey@redhat.com>
10248
10249         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10250         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10251         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10252         argument.
10253         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10254         (_initialize_amd64_linux_nat): Use it.
10255         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10256         (_initialize_i386_linux_nat): Use it.
10257
10258 2014-02-19  Tom Tromey  <tromey@redhat.com>
10259
10260         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10261         * target.c (target_teardown_btrace): Add argument.
10262         * remote.c (remote_teardown_btrace): Add 'self' argument.
10263         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10264         argument.
10265         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10266         argument.
10267
10268 2014-02-19  Tom Tromey  <tromey@redhat.com>
10269
10270         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10271         * target.c (target_disable_btrace): Add argument.
10272         * remote.c (remote_disable_btrace): Add 'self' argument.
10273         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10274         argument.
10275         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10276         argument.
10277
10278 2014-02-19  Tom Tromey  <tromey@redhat.com>
10279
10280         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10281         * target.c (target_enable_btrace): Add argument.
10282         * remote.c (remote_enable_btrace): Add 'self' argument.
10283         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10284         argument.
10285         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10286         argument.
10287
10288 2014-02-19  Tom Tromey  <tromey@redhat.com>
10289
10290         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10291         (target_can_use_agent): Add argument.
10292         * target.c (update_current_target): Update.
10293         * remote.c (remote_can_use_agent): Add 'self' argument.
10294         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10295
10296 2014-02-19  Tom Tromey  <tromey@redhat.com>
10297
10298         * target.h (struct target_ops) <to_use_agent>: Add argument.
10299         (target_use_agent): Add argument.
10300         * target.c (update_current_target): Update.
10301         * remote.c (remote_use_agent): Add 'self' argument.
10302         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10303
10304 2014-02-19  Tom Tromey  <tromey@redhat.com>
10305
10306         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10307         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10308         (target_traceframe_info): Add argument.
10309         * target.c (update_current_target): Update.
10310         * remote.c (remote_traceframe_info): Add 'self' argument.
10311         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10312
10313 2014-02-19  Tom Tromey  <tromey@redhat.com>
10314
10315         * target.h (target_static_tracepoint_markers_by_strid): Add
10316         argument.
10317         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10318         'self' argument.
10319         * target.c (update_current_target): Update.
10320         * remote.c (struct target_ops)
10321         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10322         * linux-nat.c (struct target_ops)
10323         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10324
10325 2014-02-19  Tom Tromey  <tromey@redhat.com>
10326
10327         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10328         Add argument.
10329         (target_static_tracepoint_marker_at): Add argument.
10330         * target.c (update_current_target): Update.
10331         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10332         argument.
10333
10334 2014-02-19  Tom Tromey  <tromey@redhat.com>
10335
10336         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10337         (target_set_permissions): Add argument.
10338         * target.c (update_current_target): Update.
10339         * remote.c (remote_set_permissions): Add 'self' argument.
10340         (remote_start_remote): Update.
10341
10342 2014-02-19  Tom Tromey  <tromey@redhat.com>
10343
10344         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10345         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10346         (target_get_tib_address): Add argument.
10347         * target.c (update_current_target): Update.
10348         * remote.c (remote_get_tib_address): Add 'self' argument.
10349
10350 2014-02-19  Tom Tromey  <tromey@redhat.com>
10351
10352         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10353         (target_set_trace_notes): Add argument.
10354         * target.c (update_current_target): Update.
10355         * remote.c (remote_set_trace_notes): Add 'self' argument.
10356
10357 2014-02-19  Tom Tromey  <tromey@redhat.com>
10358
10359         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10360         argument.
10361         (target_set_trace_buffer_size): Add argument.
10362         * target.c (update_current_target): Update.
10363         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10364
10365 2014-02-19  Tom Tromey  <tromey@redhat.com>
10366
10367         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10368         argument.
10369         (target_set_circular_trace_buffer): Add argument.
10370         * target.c (update_current_target): Update.
10371         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10372         argument.
10373
10374 2014-02-19  Tom Tromey  <tromey@redhat.com>
10375
10376         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10377         argument.
10378         (target_set_disconnected_tracing): Add argument.
10379         * target.c (update_current_target): Update.
10380         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10381
10382 2014-02-19  Tom Tromey  <tromey@redhat.com>
10383
10384         * target.h (struct target_ops)
10385         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10386         (target_get_min_fast_tracepoint_insn_len): Add argument.
10387         * target.c (update_current_target): Update.
10388         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10389         argument.
10390
10391 2014-02-19  Tom Tromey  <tromey@redhat.com>
10392
10393         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10394         argument.
10395         (target_get_raw_trace_data): Add argument.
10396         * target.c (update_current_target): Update.
10397         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10398
10399 2014-02-19  Tom Tromey  <tromey@redhat.com>
10400
10401         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10402         Add argument.
10403         (target_upload_trace_state_variables): Add argument.
10404         * target.c (update_current_target): Update.
10405         * remote.c (remote_upload_trace_state_variables): Add 'self'
10406         argument.
10407         (remote_start_remote): Update.
10408
10409 2014-02-19  Tom Tromey  <tromey@redhat.com>
10410
10411         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10412         argument.
10413         (target_upload_tracepoints): Add argument.
10414         * target.c (update_current_target): Update.
10415         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10416         (remote_start_remote): Update.
10417
10418 2014-02-19  Tom Tromey  <tromey@redhat.com>
10419
10420         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10421         (target_save_trace_data): Add argument.
10422         * target.c (update_current_target): Update.
10423         * remote.c (remote_save_trace_data): Add 'self' argument.
10424
10425 2014-02-19  Tom Tromey  <tromey@redhat.com>
10426
10427         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10428         argument.
10429         * target.h (struct target_ops)
10430         <to_get_trace_state_variable_value>: Add argument.
10431         (target_get_trace_state_variable_value): Add argument.
10432         * target.c (update_current_target): Update.
10433         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10434         argument.
10435         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10436
10437 2014-02-19  Tom Tromey  <tromey@redhat.com>
10438
10439         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10440         * target.h (struct target_ops) <to_trace_find>: Add argument.
10441         (target_trace_find): Add argument.
10442         * target.c (update_current_target): Update.
10443         * remote.c (remote_trace_find): Add 'self' argument.
10444         * ctf.c (ctf_trace_find): Add 'self' argument.
10445
10446 2014-02-19  Tom Tromey  <tromey@redhat.com>
10447
10448         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10449         (target_trace_stop): Add argument.
10450         * target.c (update_current_target): Update.
10451         * remote.c (remote_trace_stop): Add 'self' argument.
10452
10453 2014-02-19  Tom Tromey  <tromey@redhat.com>
10454
10455         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10456         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10457         argument.
10458         (target_get_tracepoint_status): Add argument.
10459         * target.c (update_current_target): Update.
10460         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10465         * target.h (struct target_ops) <to_get_trace_status>: Add
10466         argument.
10467         (target_get_trace_status): Add argument.
10468         * target.c (update_current_target): Update.
10469         * remote.c (remote_get_trace_status): Add 'self' argument.
10470         (remote_start_remote, remote_can_download_tracepoint): Update.
10471         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10472
10473 2014-02-19  Tom Tromey  <tromey@redhat.com>
10474
10475         * target.h (struct target_ops) <to_trace_start>: Add argument.
10476         (target_trace_start): Add argument.
10477         * target.c (update_current_target): Update.
10478         * remote.c (remote_trace_start): Add 'self' argument.
10479
10480 2014-02-19  Tom Tromey  <tromey@redhat.com>
10481
10482         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10483         Add argument.
10484         (target_trace_set_readonly_regions): Add argument.
10485         * target.c (update_current_target): Update.
10486         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10487         argument.
10488
10489 2014-02-19  Tom Tromey  <tromey@redhat.com>
10490
10491         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10492         argument.
10493         (target_disable_tracepoint): Add argument.
10494         * target.c (update_current_target): Update.
10495         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10496
10497 2014-02-19  Tom Tromey  <tromey@redhat.com>
10498
10499         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10500         argument.
10501         (target_enable_tracepoint): Add argument.
10502         * target.c (update_current_target): Update.
10503         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10504
10505 2014-02-19  Tom Tromey  <tromey@redhat.com>
10506
10507         * target.h (struct target_ops) <to_download_trace_state_variable>:
10508         Add argument.
10509         (target_download_trace_state_variable): Add argument.
10510         * target.c (update_current_target): Update.
10511         * remote.c (remote_download_trace_state_variable): Add 'self'
10512         argument.
10513
10514 2014-02-19  Tom Tromey  <tromey@redhat.com>
10515
10516         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10517         argument.
10518         (target_can_download_tracepoint): Add argument.
10519         * target.c (update_current_target): Update.
10520         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10521
10522 2014-02-19  Tom Tromey  <tromey@redhat.com>
10523
10524         * target.h (struct target_ops) <to_download_tracepoint>: Add
10525         argument.
10526         (target_download_tracepoint): Add argument.
10527         * target.c (update_current_target): Update.
10528         * remote.c (remote_download_tracepoint): Add 'self' argument.
10529
10530 2014-02-19  Tom Tromey  <tromey@redhat.com>
10531
10532         * target.h (struct target_ops) <to_trace_init>: Add argument.
10533         (target_trace_init): Add argument.
10534         * target.c (update_current_target): Update.
10535         * remote.c (remote_trace_init): Add 'self' argument.
10536
10537 2014-02-19  Tom Tromey  <tromey@redhat.com>
10538
10539         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10540         * target.c (target_fileio_readlink): Add argument.
10541         * remote.c (remote_hostio_readlink): Add 'self' argument.
10542         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10543
10544 2014-02-19  Tom Tromey  <tromey@redhat.com>
10545
10546         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10547         * target.c (target_fileio_unlink): Add argument.
10548         * remote.c (remote_hostio_unlink): Add 'self' argument.
10549         (remote_file_delete): Update.
10550         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10551
10552 2014-02-19  Tom Tromey  <tromey@redhat.com>
10553
10554         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10555         * target.c (target_fileio_close): Add argument.
10556         * remote.c (remote_hostio_close): Add 'self' argument.
10557         (remote_hostio_close_cleanup): Update.
10558         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10559         Update.
10560         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10561
10562 2014-02-19  Tom Tromey  <tromey@redhat.com>
10563
10564         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10565         * target.c (target_fileio_pread): Add argument.
10566         * remote.c (remote_hostio_pread): Add 'self' argument.
10567         (remote_bfd_iovec_pread, remote_file_get): Update.
10568         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10569
10570 2014-02-19  Tom Tromey  <tromey@redhat.com>
10571
10572         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10573         * target.c (target_fileio_pwrite): Add argument.
10574         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10575         (remote_file_put): Update.
10576         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10577
10578 2014-02-19  Tom Tromey  <tromey@redhat.com>
10579
10580         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10581         * target.c (target_fileio_open): Add argument.
10582         * remote.c (remote_hostio_open): Add 'self' argument.
10583         (remote_bfd_iovec_open): Add 'self' argument.
10584         (remote_file_put): Add 'self' argument.
10585         (remote_file_get): Add 'self' argument.
10586         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10587
10588 2014-02-19  Tom Tromey  <tromey@redhat.com>
10589
10590         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10591         Add argument.
10592         (target_can_run_breakpoint_commands): Add argument.
10593         * target.c (update_current_target): Update.
10594         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10595         argument.
10596         (remote_insert_breakpoint): Add 'self' argument.
10597         (remote_insert_hw_breakpoint): Add 'self' argument.
10598         (remote_can_run_breakpoint_commands): Add 'self' argument.
10599
10600 2014-02-19  Tom Tromey  <tromey@redhat.com>
10601
10602         * target.h (struct target_ops)
10603         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10604         (target_supports_evaluation_of_breakpoint_conditions): Add
10605         argument.
10606         * target.c (update_current_target): Update.
10607         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10608         argument.
10609         (remote_insert_breakpoint): Add 'self' argument.
10610         (remote_insert_hw_breakpoint): Add 'self' argument.
10611         (remote_supports_cond_breakpoints): Add 'self' argument.
10612
10613 2014-02-19  Tom Tromey  <tromey@redhat.com>
10614
10615         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10616         argument.
10617         (target_supports_string_tracing): Add argument.
10618         * target.c (update_current_target): Update.
10619         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10620
10621 2014-02-19  Tom Tromey  <tromey@redhat.com>
10622
10623         * target.h (struct target_ops)
10624         <to_supports_disable_randomization>: Add argument.
10625         * target.c (find_default_supports_disable_randomization): Add
10626         argument.
10627         (target_supports_disable_randomization): Add argument.
10628         (find_default_supports_disable_randomization): Add 'self'
10629         argument.
10630         * remote.c (extended_remote_supports_disable_randomization): Add
10631         'self' argument.
10632         (remote_supports_disable_randomization): Add 'self' argument.
10633         (extended_remote_create_inferior): Update.
10634         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10635         'self' argument.
10636
10637 2014-02-19  Tom Tromey  <tromey@redhat.com>
10638
10639         * target.h (struct target_ops)
10640         <to_supports_enable_disable_tracepoint>: Add argument.
10641         (target_supports_enable_disable_tracepoint): Add argument.
10642         * target.c (update_current_target): Update.
10643         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10644         argument.
10645
10646 2014-02-19  Tom Tromey  <tromey@redhat.com>
10647
10648         * target.h (struct target_ops) <to_supports_multi_process>: Add
10649         argument.
10650         (target_supports_multi_process): Add argument.
10651         * target.c (update_current_target): Update.
10652         * remote.c (remote_supports_multi_process): Add 'self' argument.
10653         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10654         argument.
10655         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10656         argument.
10657
10658 2014-02-19  Tom Tromey  <tromey@redhat.com>
10659
10660         * target.h (struct target_ops) <to_execution_direction>: Add
10661         argument.
10662         (target_execution_direction): Add argument.
10663         * target.c (default_execution_direction): Add 'self' argument.
10664         * record-full.c (record_full_execution_direction): Add 'self'
10665         argument.
10666
10667 2014-02-19  Tom Tromey  <tromey@redhat.com>
10668
10669         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10670         argument.
10671         (target_can_execute_reverse): Add argument.
10672         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10673         * record-full.c (record_full_can_execute_reverse): Add 'self'
10674         argument.
10675         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10676         argument.
10677
10678 2014-02-19  Tom Tromey  <tromey@redhat.com>
10679
10680         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10681         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10682         argument.
10683         (target_get_ada_task_ptid): Add argument.
10684         * target.c (update_current_target): Update.
10685         (default_get_ada_task_ptid): Add 'self' argument.
10686         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10687         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10688         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10689         argument.
10690         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10691         argument.
10692         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10693         argument.
10694         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10695         argument.
10696         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10697         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10698         argument.
10699
10700 2014-02-19  Tom Tromey  <tromey@redhat.com>
10701
10702         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10703         (target_goto_bookmark): Add argument.
10704         * target.c (dummy_goto_bookmark): Add 'self' argument.
10705         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10706
10707 2014-02-19  Tom Tromey  <tromey@redhat.com>
10708
10709         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10710         (target_get_bookmark): Add argument.
10711         * target.c (dummy_get_bookmark): Add 'self' argument.
10712         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10713
10714 2014-02-19  Tom Tromey  <tromey@redhat.com>
10715
10716         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10717         argument.
10718         (target_make_corefile_notes): Add argument.
10719         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10720         * procfs.c (procfs_make_note_section): Add 'self' argument.
10721         (procfs_make_note_section): Add 'self' argument.
10722         (procfs_make_note_section): Add 'self' argument.
10723         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10724         argument.
10725         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10726         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10727         * exec.c (exec_make_note_section): Add 'self' argument.
10728         (exec_make_note_section): Add 'self' argument.
10729
10730 2014-02-19  Tom Tromey  <tromey@redhat.com>
10731
10732         * target.h (struct target_ops) <to_find_memory_regions>: Add
10733         argument.
10734         (target_find_memory_regions): Add argument.
10735         * target.c (dummy_find_memory_regions): Add 'self' argument.
10736         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10737         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10738         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10739         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10740         * exec. (exec_do_find_memory_regions): New global.
10741         (exec_set_find_memory_regions): Rewrite.
10742         (exec_find_memory_regions): New function.
10743         (init_exec_ops): Use exec_find_memory_regions.
10744
10745 2014-02-19  Tom Tromey  <tromey@redhat.com>
10746
10747         * target.h (struct target_ops) <to_supports_non_stop>: Add
10748         argument.
10749         * target.c (find_default_supports_non_stop): Add argument.
10750         (target_supports_non_stop): Add argument.
10751         (find_default_supports_non_stop): Add 'self' argument.
10752         * remote.c (remote_supports_non_stop): Add 'self' argument.
10753         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10754
10755 2014-02-19  Tom Tromey  <tromey@redhat.com>
10756
10757         * target.h (struct target_ops) <to_log_command>: Add argument.
10758         (target_log_command): Add argument.
10759         * serial.h (serial_log_command): Add 'self' argument.
10760         * serial.c (serial_log_command): Add 'self' argument.
10761
10762 2014-02-19  Tom Tromey  <tromey@redhat.com>
10763
10764         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10765         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10766         argument.
10767         (target_pid_to_exec_file): Add argument.
10768         * target.c (debug_to_pid_to_exec_file): Add argument.
10769         (update_current_target): Update.
10770         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10771         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10772         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10773         (linux_handle_extended_wait): Update.
10774         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10775         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10776         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10777         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10778
10779 2014-02-19  Tom Tromey  <tromey@redhat.com>
10780
10781         * target.h (struct target_ops) <to_rcmd>: Add argument.
10782         (target_rcmd): Add argument.
10783         * target.c (debug_to_rcmd): Add argument.
10784         (update_current_target, do_monitor_command): Update.
10785         * remote.c (remote_rcmd): Add 'self' argument.
10786         * monitor.c (monitor_rcmd): Add 'self' argument.
10787
10788 2014-02-19  Tom Tromey  <tromey@redhat.com>
10789
10790         * windows-nat.c (windows_stop): Add 'self' argument.
10791         * target.h (struct target_ops) <to_stop>: Add argument.
10792         * target.c (target_stop): Add argument.
10793         (debug_to_stop): Add argument.
10794         (update_current_target): Update.
10795         * remote.c (remote_stop): Add 'self' argument.
10796         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10797         (gdbsim_cntrl_c): Update.
10798         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10799         * procfs.c (procfs_stop): Add 'self' argument.
10800         * nto-procfs.c (procfs_stop): Add 'self' argument.
10801         * monitor.c (monitor_stop): Add 'self' argument.
10802         (monitor_open): Update.
10803         * linux-nat.c (linux_nat_stop): Add argument.
10804         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10805         * gnu-nat.c (gnu_stop): Add 'self' argument.
10806         * darwin-nat.c (darwin_stop): Add 'self' argument.
10807
10808 2014-02-19  Tom Tromey  <tromey@redhat.com>
10809
10810         * target.h (struct target_ops) <to_thread_name>: Add argument.
10811         * target.c (target_thread_name): Add argument.
10812         (update_current_target): Update.
10813         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10814
10815 2014-02-19  Tom Tromey  <tromey@redhat.com>
10816
10817         * target.h (struct target_ops) <to_extra_thread_info>: Add
10818         argument.
10819         (target_extra_thread_info): Add argument.
10820         * target.c (update_current_target): Update.
10821         * remote.c (remote_threads_extra_info): Add 'self' argument.
10822         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10823         argument.
10824         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10825         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10826         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10827         argument.
10828         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10829         argument.
10830         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10831         argument.
10832         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10833         argument.
10834
10835 2014-02-19  Tom Tromey  <tromey@redhat.com>
10836
10837         * target.h (struct target_ops) <to_program_signals>: Add argument.
10838         * target.c (target_program_signals): Add argument.
10839         * remote.c (remote_program_signals): Add 'self' argument.
10840
10841 2014-02-19  Tom Tromey  <tromey@redhat.com>
10842
10843         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10844         * target.c (target_pass_signals): Add argument.
10845         * remote.c (remote_pass_signals): Add 'self' argument.
10846         (remote_start_remote): Update.
10847         * procfs.c (procfs_pass_signals): Add 'self' argument.
10848         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10849         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10850         (linux_nat_create_inferior, linux_nat_attach): Update.
10851
10852 2014-02-19  Tom Tromey  <tromey@redhat.com>
10853
10854         * windows-nat.c (windows_can_run): Add 'self' argument.
10855         * target.h (struct target_ops) <to_can_run>: Add argument.
10856         (target_can_run): Add argument.
10857         * target.c (debug_to_can_run): Add argument.
10858         (update_current_target): Update.
10859         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10860         * inf-child.c (inf_child_can_run): Add 'self' argument.
10861         * go32-nat.c (go32_can_run): Add 'self' argument.
10862
10863 2014-02-19  Tom Tromey  <tromey@redhat.com>
10864
10865         * target.h (struct target_ops) <to_has_exited>: Add argument.
10866         (target_has_exited): Add argument.
10867         * target.c (debug_to_has_exited): Add argument.
10868         (update_current_target): Update.
10869
10870 2014-02-19  Tom Tromey  <tromey@redhat.com>
10871
10872         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10873         argument.
10874         (target_set_syscall_catchpoint): Add argument.
10875         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10876         argument.
10877         * target.c (update_current_target): Update.
10878
10879 2014-02-19  Tom Tromey  <tromey@redhat.com>
10880
10881         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10882         argument.
10883         (target_remove_exec_catchpoint): Add argument.
10884         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10885         (update_current_target): Update.
10886         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10887         argument.
10888
10889 2014-02-19  Tom Tromey  <tromey@redhat.com>
10890
10891         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10892         argument.
10893         (target_insert_exec_catchpoint): Add argument.
10894         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10895         (update_current_target): Update.
10896         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10897         argument.
10898
10899 2014-02-19  Tom Tromey  <tromey@redhat.com>
10900
10901         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10902         argument.
10903         (target_remove_vfork_catchpoint): Add argument.
10904         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10905         (update_current_target): Update.
10906         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10907         argument.
10908
10909 2014-02-19  Tom Tromey  <tromey@redhat.com>
10910
10911         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10912         argument.
10913         (target_insert_vfork_catchpoint): Add argument.
10914         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10915         (update_current_target): Update.
10916         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10917         argument.
10918
10919 2014-02-19  Tom Tromey  <tromey@redhat.com>
10920
10921         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10922         argument.
10923         (target_remove_fork_catchpoint): Add argument.
10924         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10925         (update_current_target): Update.
10926         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10927         argument.
10928
10929 2014-02-19  Tom Tromey  <tromey@redhat.com>
10930
10931         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10932         argument.
10933         (target_insert_fork_catchpoint): Add argument.
10934         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10935         (update_current_target): Update.
10936         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10937         argument.
10938
10939 2014-02-19  Tom Tromey  <tromey@redhat.com>
10940
10941         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10942         argument.
10943         (target_post_startup_inferior): Add argument.
10944         * target.c (debug_to_post_startup_inferior): Add argument.
10945         (update_current_target): Update.
10946         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10947         argument.
10948         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10949         argument.
10950         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10951         argument.
10952         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10953         argument.
10954         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10955         'self' argument.
10956         (super_post_startup_inferior): Likewise.
10957         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10958         'self' argument.
10959         (super_post_startup_inferior): Likewise.
10960         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10961         Add 'self' argument.
10962         (super_post_startup_inferior): Likewise.
10963
10964 2014-02-19  Tom Tromey  <tromey@redhat.com>
10965
10966         * target.h (struct target_ops) <to_load>: Add argument.
10967         * target.c (target_load): Add argument.
10968         (debug_to_load): Add argument.
10969         (update_current_target): Update.
10970         * remote.c (remote_load): Add 'self' argument.
10971         * remote-sim.c (gdbsim_load): Add 'self' argument.
10972         * remote-mips.c (mips_load): Add 'self' argument.
10973         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10974         * monitor.c (monitor_load): Add 'self' argument.
10975         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10976
10977 2014-02-19  Tom Tromey  <tromey@redhat.com>
10978
10979         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10980         (target_terminal_info): Add argument.
10981         * target.c (debug_to_terminal_info): Add argument.
10982         (default_terminal_info): Likewise.
10983         * inflow.c (child_terminal_info): Add 'self' argument.
10984         * inferior.h (child_terminal_info): Add 'self' argument.
10985         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10986
10987 2014-02-19  Tom Tromey  <tromey@redhat.com>
10988
10989         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10990         argument.
10991         (target_terminal_save_ours): Add argument.
10992         * target.c (debug_to_terminal_save_ours): Add argument.
10993         (update_current_target): Update.
10994         * inflow.c (terminal_save_ours): Add 'self' argument.
10995         * inferior.h (terminal_save_ours): Add 'self' argument.
10996
10997 2014-02-19  Tom Tromey  <tromey@redhat.com>
10998
10999         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11000         (target_terminal_ours): Add argument.
11001         * target.c (debug_to_terminal_ours): Add argument.
11002         (update_current_target): Update.
11003         * remote.c (remote_terminal_ours): Add 'self' argument.
11004         (remote_close): Update.
11005         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11006         * inflow.c (terminal_ours): Add 'self' argument.
11007         * inferior.h (terminal_ours): Add 'self' argument.
11008         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11009
11010 2014-02-19  Pedro Alves  <palves@redhat.com>
11011             Tom Tromey  <tromey@redhat.com>
11012
11013         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11014         argument.
11015         (target_terminal_ours_for_output): Add argument.
11016         * target.c (debug_to_terminal_ours_for_output): Add argument.
11017         (update_current_target): Update.
11018         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11019         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11020         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11021
11022 2014-02-19  Tom Tromey  <tromey@redhat.com>
11023
11024         * target.h (struct target_ops) <to_terminal_inferior>: Add
11025         argument.
11026         * target.c (target_terminal_inferior): Add argument.
11027         (update_current_target): Update.
11028         * remote.c (remote_terminal_inferior): Add 'self' argument.
11029         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11030         * inflow.c (terminal_inferior): Add 'self' argument.
11031         * inferior.h (terminal_inferior): Add 'self' argument.
11032         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11033         (go32_terminal_inferior): Add 'self' argument.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11038         (target_terminal_init): Add argument.
11039         * target.c (debug_to_terminal_init): Add argument.
11040         (update_current_target): Update.
11041         * inflow.c (terminal_init_inferior): Add 'self' argument.
11042         * inferior.h (terminal_init_inferior): Add 'self' argument.
11043         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11044         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11045
11046 2014-02-19  Tom Tromey  <tromey@redhat.com>
11047
11048         * target.h (struct target_ops)
11049         <to_can_accel_watchpoint_condition>: Add argument.
11050         (target_can_accel_watchpoint_condition): Add argument.
11051         * target.c (debug_to_can_accel_watchpoint_condition): Add
11052         argument.
11053         (update_current_target): Update.
11054         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11055         'self' argument.
11056
11057 2014-02-19  Tom Tromey  <tromey@redhat.com>
11058
11059         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11060         Add argument.
11061         (target_region_ok_for_hw_watchpoint): Add argument.
11062         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11063         (default_region_ok_for_hw_watchpoint): Add argument.
11064         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11065         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11066         argument.
11067         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11068         argument.
11069         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11070         argument.
11071         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11072         'self' argument.
11073         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11074         'self' argument.
11075         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11076         'self' argument.
11077         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11078         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11079         'self' argument.
11080         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11081         Add 'self' argument.
11082
11083 2014-02-19  Tom Tromey  <tromey@redhat.com>
11084
11085         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11086         argument.
11087         (target_insert_watchpoint): Add argument.
11088         * target.c (debug_to_insert_watchpoint): Add argument.
11089         (update_current_target): Update.
11090         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11091         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11092         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11093         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11094         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11095         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11096         argument.
11097         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11098         (procfs_insert_hw_watchpoint): Add 'self' argument.
11099         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11100         argument.
11101         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11102         argument.
11103         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11104         argument.
11105         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11106         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11107         argument.
11108         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11109         'self' argument.
11110
11111 2014-02-19  Tom Tromey  <tromey@redhat.com>
11112
11113         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11114         argument.
11115         (target_remove_watchpoint): Add argument.
11116         * target.c (debug_to_remove_watchpoint): Add argument.
11117         (update_current_target): Update.
11118         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11119         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11120         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11121         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11122         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11123         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11124         argument.
11125         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11126         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11127         argument.
11128         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11129         argument.
11130         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11131         argument.
11132         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11133         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11134         argument.
11135         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11136         'self' argument.
11137
11138 2014-02-19  Tom Tromey  <tromey@redhat.com>
11139
11140         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11141         argument.
11142         (target_remove_hw_breakpoint): Add argument.
11143         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11144         (update_current_target): Update.
11145         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11146         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11147         argument.
11148         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11149         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11150         argument.
11151         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11152         'self' argument.
11153
11154 2014-02-19  Tom Tromey  <tromey@redhat.com>
11155
11156         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11157         argument.
11158         (target_insert_hw_breakpoint): Add argument.
11159         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11160         (update_current_target): Update.
11161         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11162         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11163         argument.
11164         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11165         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11166         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11167         argument.
11168         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11169         'self' argument.
11170
11171 2014-02-19  Tom Tromey  <tromey@redhat.com>
11172
11173         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11174         argument.
11175         (target_can_use_hardware_watchpoint): Add argument.
11176         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11177         (update_current_target): Update.
11178         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11179         argument.
11180         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11181         argument.
11182         * remote.c (remote_check_watch_resources): Add 'self' argument.
11183         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11184         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11185         argument.
11186         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11187         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11188         argument.
11189         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11190         argument.
11191         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11192         argument.
11193         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11194         argument.
11195         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11196         argument.
11197         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11198         argument.
11199         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11200         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11201         argument.
11202         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11203         'self' argument.
11204
11205 2014-02-19  Tom Tromey  <tromey@redhat.com>
11206
11207         * target.h (struct target_ops) <to_post_attach>: Add argument.
11208         (target_post_attach): Add argument.
11209         * target.c (debug_to_post_attach): Add argument.
11210         (update_current_target): Update.
11211         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11212         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11213         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11214         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11215         * inf-child.c (inf_child_post_attach): Add 'self' argument.
11216
11217 2014-02-19  Tom Tromey  <tromey@redhat.com>
11218
11219         * windows-nat.c (windows_close): Add 'self' argument.
11220         * tracepoint.c (tfile_close): Add 'self' argument.
11221         * target.h (struct target_ops) <to_close>: Add argument.
11222         * target.c (target_close): Add argument.
11223         (update_current_target): Update.
11224         * remote.c (remote_close): Add 'self' argument.
11225         * remote-sim.c (gdbsim_close): Add 'self' argument.
11226         * remote-mips.c (mips_close): Add 'self' argument.
11227         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11228         * record-full.c (record_full_close): Add 'self' argument.
11229         * record-btrace.c (record_btrace_close): Add 'self' argument.
11230         * monitor.h (monitor_close): Add 'self' argument.
11231         * monitor.c (monitor_close): Add 'self' argument.
11232         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11233         * linux-nat.c (linux_nat_close): Add argument.
11234         * go32-nat.c (go32_close): Add 'self' argument.
11235         * exec.c (exec_close_1): Add 'self' argument.
11236         * ctf.c (ctf_close): Add 'self' argument.
11237         * corelow.c (core_close): Add 'self' argument.
11238         (core_close_cleanup): Update.
11239         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11240         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11241
11242 2014-02-19  Tom Tromey  <tromey@redhat.com>
11243
11244         * remote.c (remote_load): New function.
11245         (init_remote_ops): Use it.
11246
11247 2014-02-19  Tom Tromey  <tromey@redhat.com>
11248
11249         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11250         argument.
11251         * common/linux-btrace.h (linux_supports_btrace): Update.
11252         * remote.c (remote_supports_btrace): Add "self" argument.
11253         * target-delegates.c: Rebuild.
11254         * target.c (target_supports_btrace): Remove.
11255         * target.h (struct target_ops) <to_supports_btrace>: Add
11256         target_ops argument.
11257         (target_supports_btrace): New define.
11258
11259 2014-02-19  Tom Tromey  <tromey@redhat.com>
11260
11261         * record-full.c (record_full_beneath_to_resume_ops)
11262         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11263         (record_full_beneath_to_wait)
11264         (record_full_beneath_to_store_registers_ops)
11265         (record_full_beneath_to_store_registers)
11266         (record_full_beneath_to_xfer_partial_ops)
11267         (record_full_beneath_to_xfer_partial)
11268         (record_full_beneath_to_insert_breakpoint_ops)
11269         (record_full_beneath_to_insert_breakpoint)
11270         (record_full_beneath_to_remove_breakpoint_ops)
11271         (record_full_beneath_to_remove_breakpoint)
11272         (record_full_beneath_to_stopped_by_watchpoint)
11273         (record_full_beneath_to_stopped_data_address)
11274         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11275         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11276         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11277         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11278         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11279         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11280         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11281         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11282         (record_full_resume, record_full_wait_1)
11283         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11284         (record_full_store_registers, record_full_xfer_partial)
11285         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11286         (record_full_async, record_full_core_xfer_partial): Use target
11287         delegation.
11288         * target-delegates.c: Rebuild.
11289         * target.c (current_xfer_partial): Remove.
11290         (update_current_target): Do not INHERIT or de_fault
11291         to_insert_breakpoint, to_remove_breakpoint,
11292         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11293         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11294         (default_xfer_partial): Simplify.
11295         (current_xfer_partial): Remove.
11296         (target_wait, target_resume): Simplify.
11297         (find_default_can_async_p, find_default_is_async_p): Update.
11298         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11299         to_xfer_partial, to_stopped_by_watchpoint,
11300         to_stopped_data_address.
11301         (target_store_registers): Simplify.
11302         (forward_target_remove_breakpoint)
11303         (forward_target_insert_breakpoint): Remove.
11304         (target_remove_breakpoint, target_insert_breakpoint)
11305         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11306         * target.h (struct target_ops) <to_resume, to_wait,
11307         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11308         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11309         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11310         markup.
11311         (forward_target_remove_breakpoint)
11312         (forward_target_insert_breakpoint): Remove.
11313         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11314         directly.
11315         (record_btrace_insert_breakpoint): Delegate directly.
11316
11317 2014-02-19  Tom Tromey  <tromey@redhat.com>
11318
11319         PR build/7701:
11320         * target-delegates.c: New file.
11321         * target.c: Include target-delegates.c.
11322         (init_dummy_target): Call install_dummy_methods.
11323         (complete_target_initialization): Call install_delegators.
11324         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11325         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11326         * make-target-delegates: New file.
11327
11328 2014-02-19  Tom Tromey  <tromey@redhat.com>
11329
11330         * record.c (find_record_target): Use find_target_at.
11331         * target.c (find_target_at): New function.
11332         * target.h (find_target_at): Declare.
11333
11334 2014-02-19  Tom Tromey  <tromey@redhat.com>
11335
11336         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11337         Add 'ops' argument.
11338         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11339         'ops' argument.
11340         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11341         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11342         'ops' argument.
11343         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11344         argument.
11345         * linux-nat.c (save_sigtrap): Update.
11346         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11347         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11348         (linux_nat_close): Update.
11349         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11350         argument.
11351         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11352         argument.
11353         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11354         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11355         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11356         (tmp_to_async): Add 'ops' argument.
11357         (record_full_stopped_by_watchpoint, record_full_async)
11358         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11359         argument.
11360         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11361         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11362         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11363         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11364         (remote_is_async_p, remote_async): Add 'ops' argument.
11365         (remote_stopped_data_address): Update.
11366         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11367         * target.c (update_current_target)
11368         (find_default_can_async_p, find_default_is_async_p): Update.
11369         (init_dummy_target): Update.
11370         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11371         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11372         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11373         (target_can_async_p, target_is_async_p, target_async)
11374         (target_stopped_by_watchpoint): Update.
11375
11376 2014-02-19  Yao Qi  <yao@codesourcery.com>
11377
11378         PR gdb/16220
11379         * gdbarch.sh: Remove startup_gdbarch.
11380         * gdbarch.c: Regenerated.
11381         * gdbarch.h: Likewise.
11382
11383 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11384
11385         * rl78-tdep.c (rl78_g10_register_name): New function.
11386         (rl78_return_value): Add g10 support.
11387         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11388         g10.
11389
11390 2014-02-17  Doug Evans  <xdje42@gmail.com>
11391
11392         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11393         (SUBDIR_GUILE_SRCS): Ditto.
11394         (scm-gsmob.o): Ditto.
11395
11396 2014-02-17  Yao Qi  <yao@codesourcery.com>
11397
11398         * gnu-nat.c (ILL_RPC): Declare defined function.
11399
11400 2014-02-17  Yao Qi  <yao@codesourcery.com>
11401
11402         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11403         mach_msg_type_number_t.
11404         (gnu_write_inferior): Likewise.
11405
11406 2014-02-17  Yao Qi  <yao@codesourcery.com>
11407
11408         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11409         in format string.
11410         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11411         (inf_validate_procs, inf_signal): Likewise.
11412         (S_exception_raise_request): Likewise.
11413         (do_mach_notify_dead_name): Likewise.
11414         (steal_exc_port): Likewise.
11415         (gnu_read_inferior): Change 'copy_count''s type to
11416         mach_msg_type_number_t.
11417         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11418         format string.
11419
11420 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11421
11422         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11423         flag.  Adjust all users; in particular...
11424         (gnu_wait): ..., don't decrement its value in here...
11425         (gnu_create_inferior): ..., and instead set the flag in here,
11426         around the startup_inferior call, and call that one with
11427         START_INFERIOR_TRAPS_EXPECTED.
11428
11429         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11430         (ILL_RPC): ... new macro.
11431         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11432         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11433         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11434         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11435         functions with ILL_RPC macro.
11436         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11437         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11438         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11439         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11440         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11441         (S_proc_getlogin_reply, S_proc_getsid_reply)
11442         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11443         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11444         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11445         (S_proc_getnports_reply, S_proc_is_important_reply)
11446         (S_proc_get_code_reply): New stub functions, generated with
11447         ILL_RPC macro.
11448
11449         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11450         collected the type check structures.
11451
11452         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11453
11454 2014-02-14  Doug Evans  <dje@google.com>
11455
11456         * target.c (target_write_partial): Fix result type.
11457
11458 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11459
11460         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11461         the proper offsets to access fpregset_t.
11462
11463 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11464
11465         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11466         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11467         * h8300-tdep.c (setmachinelist): Remove global.
11468         * hppa-tdep.c (hppa_sigtramp): Remove global.
11469         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11470         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11471         * ravenscar-thread.c (update_target_observer): Remove global.
11472         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11473
11474 2014-02-12  Tom Tromey  <tromey@redhat.com>
11475
11476         * common/rsp-low.c: Update comments.
11477         * common/rsp-low.h: Update comments.
11478
11479 2014-02-12  Tom Tromey  <tromey@redhat.com>
11480
11481         * common/rsp-low.c (convert_ascii_to_int): Remove.
11482         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11483
11484 2014-02-12  Tom Tromey  <tromey@redhat.com>
11485
11486         * common/rsp-low.h (unhexify): Don't declare.
11487         * common/rsp-low.c (unhexify): Remove.
11488
11489 2014-02-12  Tom Tromey  <tromey@redhat.com>
11490
11491         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11492         * common/rsp-low.c (convert_int_to_ascii): Remove.
11493
11494 2014-02-12  Tom Tromey  <tromey@redhat.com>
11495
11496         * common/rsp-low.h (hexify): Don't declare.
11497         * common/rsp-low.c (hexify): Remove.
11498
11499 2014-02-12  Tom Tromey  <tromey@redhat.com>
11500
11501         * common/rsp-low.c (hexify): Never take strlen of argument.
11502
11503 2014-02-12  Tom Tromey  <tromey@redhat.com>
11504
11505         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11506         * remote.c (extended_remote_run, remote_rcmd)
11507         (remote_download_trace_state_variable, remote_save_trace_data)
11508         (remote_set_trace_notes): Update.
11509         * tracepoint.c (encode_source_string, tfile_write_status)
11510         (tfile_write_uploaded_tsv): Update.
11511
11512 2014-02-12  Tom Tromey  <tromey@redhat.com>
11513
11514         * tracepoint.c: Include rsp-low.h.
11515         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11516         * remote.c: Include rsp-low.h.
11517         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11518         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11519         (remote_unescape_input): Move to common/rsp-low.c.
11520         * common/rsp-low.h: New file.
11521         * common/rsp-low.c: New file.
11522         * Makefile.in (SFILES): Add common/rsp-low.c.
11523         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11524         (COMMON_OBS): Add rsp-low.o.
11525         (rsp-low.o): New target.
11526
11527 2014-02-12  Tom Tromey  <tromey@redhat.com>
11528
11529         * utils.h: Include print-utils.h.
11530         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11531         (int_string, core_addr_to_string, core_addr_to_string_nz)
11532         (hex_string, hex_string_custom): Don't declare.
11533         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11534         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11535         (hex_string_custom, int_string, core_addr_to_string)
11536         (core_addr_to_string_nz, host_address_to_string): Move to
11537         common/print-utils.c.
11538         * common/print-utils.h: New file.
11539         * common/print-utils.c: New file
11540         * Makefile.in (SFILES): Add common/print-utils.c.
11541         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11542         (COMMON_OBS): Add print-utils.o.
11543         (print-utils.o): New target.
11544
11545 2014-02-12  Tom Tromey  <tromey@redhat.com>
11546
11547         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11548
11549 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11550
11551         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11552
11553 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11554
11555         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11556         if a PT_IO ptrace request returns sucessfully but indicates that 0
11557         bytes were transferred.
11558
11559 2014-02-12  Pedro Alves  <palves@redhat.com>
11560             Kevin Buettner <kevinb@redhat.com>
11561
11562         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11563         TYPE_INSTANCE_FLAG_CODE_SPACE.
11564
11565 2014-02-12  Pedro Alves  <palves@redhat.com>
11566
11567         * h8300-tdep.c (pseudo_from_raw_register)
11568         (raw_from_pseudo_register): New functions.
11569         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11570         them.
11571
11572 2014-02-12  Pedro Alves  <palves@redhat.com>
11573
11574         * h8300-tdep.c (h8300_register_sim_regno): New function.
11575         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11576         gdbarch_register_sim_regno hook.
11577
11578 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11579
11580         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11581
11582 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11583
11584         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11585
11586 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11587
11588         * obsd-tdep.h (obsd_init_abi): New prototype.
11589         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11590         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11591         (obsd_init_abi): New functions.
11592         * i386obsd-tdep.c: Include "obsd-tdep.h".
11593         (i386obsd_init_abi): Call obsd_init_abi.
11594         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11595         (amd64obsd_init_abi): Call obsd_init_abi.
11596         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11597         obsd-tdep.c to gdb_target_obs.
11598
11599 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11600
11601         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11602         double float arguments to 16-byte in the argument slots.
11603
11604 2014-02-11  Doug Evans  <xdje42@gmail.com>
11605
11606         * configure.ac: Don't crash if pkg-config is not found and guile
11607         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11608         in guile checks.
11609         * configure: Regenerate.
11610
11611 2014-02-11  Yao Qi  <yao@codesourcery.com>
11612
11613         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11614         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11615         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11616         * gnu-nat.c (gnu_xfer_memory): Likewise.
11617         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11618         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11619         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11620         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11621
11622 2014-02-11  Yao Qi  <yao@codesourcery.com>
11623
11624         * target.h (enum target_xfer_error): Rename to ...
11625         (enum target_xfer_status): ... it.  New.  All users updated.
11626         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11627         New.
11628         (TARGET_XFER_STATUS_ERROR_P): New macro.
11629         (target_xfer_error_to_string): Remove declaration.
11630         (target_xfer_status_to_string): Declare.
11631         (target_xfer_partial_ftype): Adjust it.
11632         (struct target_ops) <to_xfer_partial>: Return
11633         target_xfer_status.  Add argument xfered_len.  Update
11634         comments.
11635         * target.c (target_xfer_error_to_string): Rename to ...
11636         (target_xfer_status_to_string): ... it.  New.  All callers
11637         updated.
11638         (target_read_live_memory): Likewise.  Call target_xfer_partial
11639         instead of target_read.
11640         (memory_xfer_live_readonly_partial): Return
11641         target_xfer_status.  Add argument xfered_len.
11642         (raw_memory_xfer_partial): Likewise.
11643         (memory_xfer_partial_1): Likewise.
11644         (memory_xfer_partial): Likewise.
11645         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11646         properly.  Update debug message.
11647         (default_xfer_partial, current_xfer_partial): Likewise.
11648         (target_write_partial): Likewise.
11649         (target_read_partial): Likewise.  All callers updated.
11650         (read_whatever_is_readable): Likewise.
11651         (target_write_with_progress): Likewise.
11652         (target_read_alloc_1): Likewise.
11653
11654         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11655         * auxv.c (procfs_xfer_auxv): Likewise.
11656         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11657         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11658         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11659         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11660         * corefile.c (read_memory): Adjust.
11661         * corelow.c (core_xfer_partial): Likewise.
11662         * ctf.c (ctf_xfer_partial): Likewise.
11663         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11664         updated.
11665         (darwin_xfer_partial): Likewise.
11666         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11667         callers updated.
11668         (exec_xfer_partial): Likewise.
11669         * exec.h (section_table_xfer_memory_partial): Update
11670         declaration.
11671         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11672         negative.
11673         (gnu_xfer_partial): Likewise.
11674         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11675         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11676         (ia64_hpux_xfer_solib_got): Likewise.
11677         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11678         type of 'partial_len' to ULONGEST.
11679         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11680         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11681         (linux_nat_xfer_partial): Likewise.
11682         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11683         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11684         * monitor.c (monitor_xfer_memory): Likewise.
11685         (monitor_xfer_partial): Likewise.
11686         * procfs.c (procfs_xfer_partial): Likewise.
11687         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11688         * record-full.c (record_full_xfer_partial): Likewise.
11689         (record_full_core_xfer_partial): Likewise.
11690         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11691         (gdbsim_xfer_partial): Likewise.
11692         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11693         updated.
11694         (remote_write_bytes, remote_read_bytes): Likewise.  All
11695         callers updated.
11696         (remote_flash_erase): Likewise.  All callers updated.
11697         (remote_write_qxfer): Likewise.  All callers updated.
11698         (remote_read_qxfer): Likewise.  All callers updated.
11699         (remote_xfer_partial): Likewise.
11700         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11701         (rs6000_xfer_shared_libraries): Likewise.
11702         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11703         (sol_thread_xfer_partial): Likewise.
11704         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11705         (sparc_xfer_partial): Likewise.
11706         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11707         updated.
11708         (spu_xfer_partial): Likewise.
11709         * spu-multiarch.c (spu_xfer_partial): Likewise.
11710         * tracepoint.c (tfile_xfer_partial): Likewise.
11711         * windows-nat.c (windows_xfer_memory): Likewise.
11712         (windows_xfer_shared_libraries): Likewise.
11713         (windows_xfer_partial): Likewise.
11714         * valprint.c: Replace 'target_xfer_error' with
11715         'target_xfer_status' in comments.
11716
11717 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11718
11719         Checked in by Joel Brobecker <brobecker@adacore.com>.
11720         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11721
11722 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11723
11724         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11725         function parameters.
11726
11727 2014-02-10  Will Newton  <will.newton@linaro.org>
11728
11729         * elfread.c (elf_rel_plt_read): Look for a .got section if
11730         looking up .got.plt fails.
11731         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11732         on address passed to elf_gnu_ifunc_record_cache.
11733         (elf_gnu_ifunc_resolve_addr): Likewise.
11734         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11735
11736 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11737
11738         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11739         (X_RETTURN): New macro.
11740         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11741
11742         * sparc64-tdep.c (sparc64_init_abi): Hook
11743         sparc_in_function_epilogue_p.
11744
11745 2014-02-10  Gary Benson  <gbenson@redhat.com>
11746
11747         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11748         Rename name_matcher to symbol_matcher.
11749
11750 2014-02-10  Gary Benson  <gbenson@redhat.com>
11751
11752         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11753         Use expand_symtabs_file_matcher_ftype and
11754         expand_symtabs_symbol_matcher_ftype.
11755
11756 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11757
11758         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11759         (struct ada_symbol_cache): New.
11760         (ada_free_symbol_cache): Forward declare.
11761         (struct ada_pspace_data): New.
11762         (ada_pspace_data_handle): New static global.
11763         (get_ada_pspace_data, ada_pspace_data_cleanup)
11764         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11765         (cache_space, cache): Delete, now folded inside struct
11766         ada_pspace_data.
11767         (ada_get_symbol_cache): New function.
11768         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11769         implementation.
11770         (_initialize_ada_language): Remove initialization of cache_space.
11771         Move call to observer_attach_inferior_exit up, grouping it
11772         with the other observer registrations inside this function.
11773         Rename command to be more general.  Add call to
11774         register_program_space_data_with_cleanup.
11775
11776 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11777
11778         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11779         ada_new_objfile_observer.
11780         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11781         (_initialize_tasks): Update uses of ada_new_objfile_observer
11782         and ada_tasks_normal_stop_observer.
11783
11784 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11785
11786         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11787         returned by the 'Length attribute to integer.
11788
11789 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11790
11791         * ada-lang.c (_initialize_ada_language): Initialize
11792         cache_space obstack.
11793
11794 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11795
11796         * ada-lang.c (HASH_SIZE): New macro.
11797         (struct cache_entry): New type.
11798         (cache_space, cache): New static globals.
11799         (ada_clear_symbol_cache, find_entry): New functions.
11800         (lookup_cached_symbol, cache_symbol): Implement.
11801         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11802         (_initialize_ada_language): Attach ada_new_objfile_observer
11803         and ada_free_objfile_observer.
11804
11805 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11806
11807         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11808         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11809         struct block * parameter.
11810         (ada_lookup_symbol_list_worker): Constify local variable "block".
11811         Remove cast which is no longer necessary.
11812
11813 2014-02-10  Doug Evans  <xdje42@gmail.com>
11814
11815         Add Guile as an extension language.
11816         * NEWS: Mention Guile scripting.
11817         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11818         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11819         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11820         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11821         (CLIBS): Add GUILE_LIBS.
11822         (install-guile): New rule.
11823         (guile.o): New rule.
11824         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11825         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11826         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11827         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11828         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11829         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11830         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11831         * configure.ac: New option --with-guile.
11832         * configure: Regenerate.
11833         * config.in: Regenerate.
11834         * auto-load.c: Remove #include "python/python.h".  Add #include
11835         "gdb/section-scripts.h".
11836         (source_section_scripts): Handle Guile scripts.
11837         (_initialize_auto_load): Add name of Guile objfile script to
11838         scripts-directory help text.
11839         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11840         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11841         (struct breakpoint): New member scm_bp_object.
11842         * defs.h (enum command_control_type): New value guile_control.
11843         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11844         "extension.h".
11845         (show_user): Update comment.
11846         (_initialize_cli_cmds): Update help text for "show user".  Update help
11847         text for max-user-call-depth.
11848         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11849         "extension.h".
11850         (multi_line_command_p): Add guile_control.
11851         (print_command_lines): Handle guile_control.
11852         (execute_control_command, recurse_read_control_structure): Ditto.
11853         (process_next_line): Recognize "guile" commands.
11854         * disasm.c (gdb_disassemble_info): Make non-static.
11855         * disasm.h: #include "dis-asm.h".
11856         (struct gdbarch): Add forward decl.
11857         (gdb_disassemble_info): Declare.
11858         * extension.c: #include "guile/guile.h".
11859         (extension_languages): Add guile.
11860         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11861         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11862         * gdbtypes.c (get_unsigned_type_max): New function.
11863         (get_signed_type_minmax): New function.
11864         * gdbtypes.h (get_unsigned_type_max): Declare.
11865         (get_signed_type_minmax): Declare.
11866         * guile/README: New file.
11867         * guile/guile-internal.h: New file.
11868         * guile/guile.c: New file.
11869         * guile/guile.h: New file.
11870         * guile/scm-arch.c: New file.
11871         * guile/scm-auto-load.c: New file.
11872         * guile/scm-block.c: New file.
11873         * guile/scm-breakpoint.c: New file.
11874         * guile/scm-disasm.c: New file.
11875         * guile/scm-exception.c: New file.
11876         * guile/scm-frame.c: New file.
11877         * guile/scm-gsmob.c: New file.
11878         * guile/scm-iterator.c: New file.
11879         * guile/scm-lazy-string.c: New file.
11880         * guile/scm-math.c: New file.
11881         * guile/scm-objfile.c: New file.
11882         * guile/scm-ports.c: New file.
11883         * guile/scm-pretty-print.c: New file.
11884         * guile/scm-safe-call.c: New file.
11885         * guile/scm-string.c: New file.
11886         * guile/scm-symbol.c: New file.
11887         * guile/scm-symtab.c: New file.
11888         * guile/scm-type.c: New file.
11889         * guile/scm-utils.c: New file.
11890         * guile/scm-value.c: New file.
11891         * guile/lib/gdb.scm: New file.
11892         * guile/lib/gdb/boot.scm: New file.
11893         * guile/lib/gdb/experimental.scm: New file.
11894         * guile/lib/gdb/init.scm: New file.
11895         * guile/lib/gdb/iterator.scm: New file.
11896         * guile/lib/gdb/printing.scm: New file.
11897         * guile/lib/gdb/types.scm: New file.
11898         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11899         (VPATH): Add $(GUILE_SRCDIR).
11900         (GUILE_DIR): New variable.
11901         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11902         (all): Add stamp-guile dependency.
11903         (stamp-guile): New rule.
11904         (clean-guile, install-guile, uninstall-guile): New rules.
11905         (install-only): Add install-guile dependency.
11906         (uninstall): Add uninstall-guile dependency.
11907         (clean): Add clean-guile dependency.
11908
11909 2014-02-09  Doug Evans  <xdje42@gmail.com>
11910
11911         Revert this patch (which I approved, mea culpa).
11912
11913         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11914
11915         * Makefile.in (all-lib): Remove.
11916         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11917
11918 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11919
11920         Fix Python stack corruption.
11921         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11922         gdb_py_longest.
11923
11924 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11925
11926         * Makefile.in (all-lib): Remove.
11927         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11928
11929 2014-02-07  Doug Evans  <dje@google.com>
11930
11931         * extension-priv.h (extension_language_script_ops): Add comment.
11932         (extension_language_ops): Add comment.
11933         (active_ext_lang_state): Fix typo in comment.
11934
11935 2014-02-07  Pedro Alves  <palves@redhat.com>
11936
11937         PR breakpoints/16292
11938         * infrun.c (handle_signal_stop) <signal arrives while stepping
11939         over a breakpoint>: Switch back to the stepping thread.
11940
11941 2014-02-07  Yao Qi  <yao@codesourcery.com>
11942
11943         * target.c (target_xfer_partial): Return zero if LEN is zero.
11944
11945 2014-02-07  Yao Qi  <yao@codesourcery.com>
11946
11947         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11948         (ld_so_xfer_auxv): Likewise.
11949         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11950         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11951         * corelow.c (core_xfer_partial): Likewise.
11952         * ctf.c (ctf_xfer_partial): Likewise.
11953         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11954         (darwin_xfer_partial): Likewise.
11955         * exec.c (exec_xfer_partial): Likewise.
11956         * gnu-nat.c (gnu_xfer_partial): Likewise.
11957         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11958         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11959         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11960         * linux-nat.c (linux_xfer_siginfo): Likewise.
11961         (linux_proc_xfer_spu): Likewise.
11962         * procfs.c (procfs_xfer_partial): Likewise.
11963         * record-full.c (record_full_xfer_partial): Likewise.
11964         (record_full_core_xfer_partial): Likewise.
11965         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11966         * remote.c (remote_write_qxfer): Likewise.
11967         (remote_write_qxfer, remote_read_qxfer): Likewise.
11968         (remote_xfer_partial): Likewise.
11969         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11970         (rs6000_xfer_shared_libraries): Likewise.
11971         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11972         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11973         (spu_xfer_partial): Likewise.
11974         * target.c (memory_xfer_partial_1): Likewise.
11975         * tracepoint.c (tfile_xfer_partial): Likewise.
11976         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11977         (windows_xfer_partial): Likewise.
11978
11979 2014-02-07  Yao Qi  <yao@codesourcery.com>
11980
11981         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11982         comments.
11983         (core_xfer_shared_libraries_aix): Likewise.
11984         * gdbarch.c, gdbarch.h: Regenerated.
11985         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11986         ULONGEST.  Change 'len_avail' type to ULONGEST.
11987         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11988         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11989         declaration.
11990         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11991
11992 2014-02-07  Yao Qi  <yao@codesourcery.com>
11993
11994         * corefile.c (memory_error): Get 'exception' from ERR and pass
11995         'exception' to throw_error.
11996
11997 2014-02-06  Doug Evans  <xdje42@gmail.com>
11998
11999         * configure.ac (libpython checking): Remove all but python.o from
12000         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12001         * configure: Regenerate.
12002
12003         * Makefile.in (SFILES): Add extension.c.
12004         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12005         (COMMON_OBS): Add extension.o.
12006         * extension.h: New file.
12007         * extension-priv.h: New file.
12008         * extension.c: New file.
12009
12010         * python/python-internal.h: #include "extension.h".
12011         (gdbpy_auto_load_enabled): Declare.
12012         (gdbpy_apply_val_pretty_printer): Declare.
12013         (gdbpy_apply_frame_filter): Declare.
12014         (gdbpy_preserve_values): Declare.
12015         (gdbpy_breakpoint_cond_says_stop): Declare.
12016         (gdbpy_breakpoint_has_cond): Declare.
12017         (void source_python_script_for_objfile): Delete.
12018         * python/python.c: #include "extension-priv.h".
12019         Delete inclusion of "observer.h".
12020         (extension_language_python): Moved here and renamed from
12021         script_language_python in py-auto-load.c.
12022         Redefined to be of type extension_language_defn.
12023         (python_extension_script_ops): New global.
12024         (python_extension_ops): New global.
12025         (struct python_env): New member previous_active.
12026         (restore_python_env): Call restore_active_ext_lang.
12027         (ensure_python_env): Call set_active_ext_lang.
12028         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12029         New arg extlang.
12030         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12031         New arg extlang.
12032         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12033         New arg extlang.
12034         (gdbpy_eval_from_control_command): Renamed from
12035         eval_python_from_control_command, made static.  New arg extlang.
12036         (gdbpy_source_script) Renamed from source_python_script, made static.
12037         New arg extlang.
12038         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12039         result to int.  New arg extlang.
12040         (gdbpy_source_objfile_script): Renamed from
12041         source_python_script_for_objfile, made static.  New arg extlang.
12042         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12043         static.  New args extlang, extlang_printers.  Change result type to
12044         "void".
12045         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12046         static.  New arg extlang.  Rename arg printers to extlang_printers
12047         and change type to ext_lang_type_printers *.
12048         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12049         static.  Replace argument arg with extlang, extlang_printers.
12050         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12051         (!HAVE_PYTHON, source_python_script): Delete.
12052         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12053         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12054         (!HAVE_PYTHON, start_type_printers): Delete.
12055         (!HAVE_PYTHON, apply_type_printers): Delete.
12056         (!HAVE_PYTHON, free_type_printers): Delete.
12057         (_initialize_python): Delete call to observer_attach_before_prompt.
12058         (finalize_python): Set/restore active extension language.
12059         (gdbpy_finish_initialization) Renamed from
12060         finish_python_initialization, made static.  New arg extlang.
12061         (gdbpy_initialized): New function.
12062         * python/python.h: #include "extension.h".  Delete #include
12063         "value.h", "mi/mi-cmds.h".
12064         (extension_language_python): Declare.
12065         (GDBPY_AUTO_FILE_NAME): Delete.
12066         (enum py_bt_status): Moved to extension.h and renamed to
12067         ext_lang_bt_status.
12068         (enum frame_filter_flags): Moved to extension.h.
12069         (enum py_frame_args): Moved to extension.h and renamed to
12070         ext_lang_frame_args.
12071         (finish_python_initialization): Delete.
12072         (eval_python_from_control_command): Delete.
12073         (source_python_script): Delete.
12074         (apply_val_pretty_printer): Delete.
12075         (apply_frame_filter): Delete.
12076         (preserve_python_values): Delete.
12077         (gdbpy_script_language_defn): Delete.
12078         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12079         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12080
12081         * auto-load.c: #include "extension.h".
12082         (GDB_AUTO_FILE_NAME): Delete.
12083         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12084         (script_language_gdb): Delete, moved to extension.c and renamed to
12085         extension_language_gdb.
12086         (source_gdb_script_for_objfile): Delete.
12087         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12088         (loaded_script): Change type of language member to
12089         struct extension_language_defn *.
12090         (init_loaded_scripts_info): Initialize
12091         unsupported_script_warning_printed.
12092         (maybe_add_script): Make static.  Change type of language arg to
12093         struct extension_language_defn *.
12094         (clear_section_scripts): Reset unsupported_script_warning_printed.
12095         (auto_load_objfile_script_1): Rewrite to use extension language API.
12096         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12097         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12098         (source_section_scripts): Rewrite to use extension language API.
12099         (load_auto_scripts_for_objfile): Rewrite to use
12100         auto_load_scripts_for_objfile.
12101         (collect_matching_scripts_data): Change type of language member to
12102         struct extension_language_defn *.
12103         (auto_load_info_scripts): Change type of language arg to
12104         struct extension_language_defn *.
12105         (unsupported_script_warning_print): New function.
12106         (script_not_found_warning_print): Make static.
12107         (_initialize_auto_load): Rewrite construction of scripts-directory
12108         help.
12109         * auto-load.h (struct objfile): Add forward decl.
12110         (struct script_language): Delete.
12111         (struct auto_load_pspace_info): Add forward decl.
12112         (struct extension_language_defn): Add forward decl.
12113         (maybe_add_script): Delete.
12114         (auto_load_objfile_script): Declare.
12115         (script_not_found_warning_print): Delete.
12116         (auto_load_info_scripts): Update prototype.
12117         (auto_load_gdb_scripts_enabled): Declare.
12118         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12119         auto_load_python_scripts_enabled and made public.
12120         (script_language_python): Delete, moved to python.c.
12121         (gdbpy_script_language_defn): Delete.
12122         (info_auto_load_python_scripts): Update to use
12123         extension_language_python.
12124
12125         * breakpoint.c (condition_command): Replace call to
12126         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12127         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12128         with call to breakpoint_ext_lang_cond_says_stop.
12129         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12130         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12131         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12132         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12133         New arg slang.
12134         (local_setattro): Print name of extension language with existing
12135         stop condition.
12136
12137         * valprint.c (val_print, value_print): Update to call
12138         apply_ext_lang_val_pretty_printer.
12139         * cp-valprint.c (cp_print_value): Update call to
12140         apply_ext_lang_val_pretty_printer.
12141         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12142         (gdbpy_apply_val_pretty_printer): Renamed from
12143         apply_val_pretty_printer.  New arg extlang.
12144         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12145
12146         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12147         extension language API.
12148         * cli/cli-script.c (execute_control_command): Update to call
12149         eval_ext_lang_from_control_command.
12150
12151         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12152         enum ext_lang_bt_status values.  Update call to
12153         apply_ext_lang_frame_filter.
12154         (mi_cmd_stack_list_locals): Ditto.
12155         (mi_cmd_stack_list_args): Ditto.
12156         (mi_cmd_stack_list_variables): Ditto.
12157         * mi/mi-main.c: Delete #include "python/python-internal.h".
12158         Add #include "extension.h".
12159         (mi_cmd_list_features): Replace reference to python internal variable
12160         gdb_python_initialized with call to ext_lang_initialized_p.
12161
12162         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12163         Update to use enum ext_lang_frame_args.  Update to call
12164         apply_ext_lang_frame_filter.
12165         * python/py-framefilter.c (extract_sym): Update to use enum
12166         ext_lang_bt_status.
12167         (extract_value, py_print_type, py_print_value): Ditto.
12168         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12169         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12170         (py_print_frame): Ditto.
12171         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12172         New arg extlang.  Update to use enum ext_lang_bt_status.
12173
12174         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12175         finish_python_initialization.  Replace with call to
12176         finish_ext_lang_initialization.
12177
12178         * typeprint.c (do_free_global_table): Update to call
12179         free_ext_lang_type_printers.
12180         (create_global_typedef_table): Update to call
12181         start_ext_lang_type_printers.
12182         (find_global_typedef): Update to call apply_ext_lang_type_printers.
12183         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12184         (type_print_options): Change type of global_printers from "void *"
12185         to "struct ext_lang_type_printers *".
12186
12187         * value.c (preserve_values): Update to call preserve_ext_lang_values.
12188         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12189         (gdbpy_preserve_values): Renamed from preserve_python_values.
12190         New arg extlang.
12191         (!HAVE_PYTHON, preserve_python_values): Delete.
12192
12193         * utils.c (quit_flag): Delete, moved to extension.c.
12194         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12195         extension.c.
12196
12197         * eval.c: Delete #include "python/python.h".
12198         * main.c: Delete #include "python/python.h".
12199
12200         * defs.h: Update comment.
12201
12202 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
12203
12204         GDB 7.7 released.
12205
12206 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
12207
12208         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12209         defined.
12210
12211 2014-02-05  Yao Qi  <yao@codesourcery.com>
12212
12213         * remote.c (remote_pass_signals): Remove local 'buf' and use
12214         rs->buf.
12215         (remote_program_signals): Likewise.
12216
12217 2014-02-05  Yao Qi  <yao@codesourcery.com>
12218
12219         * ctf.c: Include "inferior.h" and "gdbthread.h".
12220         (CTF_PID): A new macro.
12221         (ctf_open): Call inferior_appeared and add_thread_silent.
12222         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12223         (ctf_thread_alive): New function.
12224         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12225
12226 2014-02-05  Yao Qi  <yao@codesourcery.com>
12227
12228         Revert this patch:
12229
12230         2013-05-24  Yao Qi  <yao@codesourcery.com>
12231
12232         * tracepoint.c (TFILE_PID): Remove.
12233         (tfile_open): Don't add thread and inferior.
12234         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12235         exit_inferior_silent.
12236         (tfile_thread_alive): Remove.
12237         (init_tfile_ops): Don't set field 'to_thread_alive' of
12238         tfile_ops.
12239
12240 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12241
12242         * remote.c (remote_start_remote): Call remote_check_symbols even
12243         if only symbol-file (not file) has been given.
12244
12245 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12246
12247         * gdbarch.sh (skip_entrypoint): New callback.
12248         * gdbarch.c, gdbarch.h: Regenerate.
12249         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12250         * infrun.c (fill_in_stop_func): Likewise.
12251         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12252         (ppc_elfv2_elf_make_msymbol_special): New function.
12253         (ppc_elfv2_skip_entrypoint): Likewise.
12254         (ppc_linux_init_abi): Install them for ELFv2.
12255
12256 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12257
12258         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12259         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12260         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12261         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12262         structures returned in GPRs.
12263
12264 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12265
12266         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12267         offset to the stack parameter list for the ELFv2 ABI.
12268
12269 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12270
12271         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12272         set_gdbarch_convert_from_func_ptr_addr and
12273         set_gdbarch_elf_make_msymbol_special for ELFv1.
12274         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12275         function descriptors on ELFv1.
12276         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12277         set up r12 at function entry.
12278
12279 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12280
12281         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12282         (struct gdbarch_tdep): New member elf_abi.
12283
12284         * rs6000-tdep.c: Include "elf/ppc64.h".
12285         (rs6000_gdbarch_init): Detect ELF ABI version.
12286
12287 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12288
12289         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12290         within a register pair holding a DFP 128-bit value on little-endian.
12291         (ppc64_sysv_abi_return_value_base): Likewise.
12292         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12293         (dfp_pseudo_register_write): Likewise.
12294
12295 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12296
12297         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12298         offset on little-endian when passing _Decimal32.
12299         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12300
12301 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12302
12303         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12304         of the overlapped FP register within the VSX register on little-
12305         endian platforms.
12306         (efpr_pseudo_register_write): Likewise.
12307
12308 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12309
12310         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12311         offset on little-endian when passing small structures.
12312
12313 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12314
12315         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12316         (struct ppc64_sysv_argpos): New data structure.
12317         (ppc64_sysv_abi_push_float): Remove.
12318         (ppc64_sysv_abi_push_val): New function.
12319         (ppc64_sysv_abi_push_integer): Likewise.
12320         (ppc64_sysv_abi_push_freg): Likewise.
12321         (ppc64_sysv_abi_push_vreg): Likewise.
12322         (ppc64_sysv_abi_push_param): Likewise.
12323         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12324         (ppc64_sysv_abi_return_value_base): New function.
12325         (ppc64_sysv_abi_return_value): Refactor to use it.
12326
12327 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12328
12329         * NEWS: Document new target powerpc64le-*-linux*.
12330
12331 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12332
12333         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12334         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12335         core dumps.
12336         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12337         register set used in ELF core dumps.  Add floating-point register set.
12338
12339 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12340
12341         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12342         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12343         penultimate entry from number representing the PC register
12344         to symbolic constant representing the MDR register.  Add
12345         constant for the PC register to the end of the table.
12346
12347 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12348
12349         * bsd-kvm.c: Include <sys/param.h>
12350
12351 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12352
12353         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12354
12355 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12356
12357         * ada-lang.h (clear_ada_sym_cache): Delete.
12358
12359 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12360
12361         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12362
12363 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12364
12365         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12366           the sigreturn register save area only if the syscall is
12367           sigreturn.
12368
12369 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12370
12371         * valops.c (value_slice): Minor reformatting.
12372
12373 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12374
12375         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12376
12377 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12378
12379         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12380         New static globals.
12381         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12382         (ada_ignore_descriptive_types_p): New static global.
12383         (find_parallel_type_by_descriptive_type): Return immediately
12384         if ada_ignore_descriptive_types_p is set.
12385         (_initialize_ada_language): Register new commands "maintenance
12386         set ada", "maintenance show ada", "maintenance set ada
12387         ignore-descriptive-types" and "maintenance show ada
12388         ignore-descriptive-types".
12389         * NEWS: Add entry for new "maint ada set/show
12390         ignore-descriptive-types" commands.
12391
12392 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12393
12394         * record-btrace.c (record_btrace_close): Call btrace_teardown
12395         for all threads.
12396
12397 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12398
12399         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12400         "ui-out.h".
12401
12402 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12403
12404         * ada-typeprint (type_is_full_subrange_of_target_type):
12405         New function.
12406         (print_range): Add parameter bounds_prefered_p.  If not set,
12407         try printing range types using the name of their base type.
12408         (print_range_type): Add parameter bounds_prefered_p.
12409         Use it in call to print_range.
12410         (print_array_type, ada_print_type): Update calls to print_range
12411         and print_range_type.
12412
12413 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12414
12415         * ada-typeprint.c (print_array_type, print_choices, print_range)
12416         (print_range_bound, print_dynamic_range_bound, print_range_type):
12417         Remove declaration.
12418
12419 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12420
12421         * ada-typeprint.c (print_range): Add missing empty line
12422         after local declaration.
12423
12424 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12425
12426         * ada-valprint.c (print_optional_low_bound): Get index_type's
12427         target type for as long as it is a TYPE_CODE_RANGE.
12428
12429 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12430
12431         * procfs.c (procfs_make_note_section): Remove assertion and
12432         associated comment.
12433
12434 2014-01-24  Yao Qi  <yao@codesourcery.com>
12435
12436         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12437         * corelow.c (get_core_siginfo): Likewise.
12438
12439 2014-01-24  Yao Qi  <yao@codesourcery.com>
12440
12441         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12442         ULONGEST.  Don't check 'len' is negative.
12443         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12444
12445 2014-01-23  Tom Tromey  <tromey@redhat.com>
12446
12447         PR python/16485:
12448         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12449         Handle exception from frame.block.
12450         (FrameVars.fetch_frame_locals): Likewise.
12451
12452 2014-01-23  Tom Tromey  <tromey@redhat.com>
12453
12454         PR python/16487:
12455         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12456         on a NULL pointer.  Move "goto error" to correct place.
12457
12458 2014-01-23  Tom Tromey  <tromey@redhat.com>
12459
12460         PR python/16491:
12461         * python/py-framefilter.c (apply_frame_filter): Call
12462         ensure_python_env after computing gdbarch.
12463
12464 2014-01-23  Yao Qi  <yao@codesourcery.com>
12465
12466         * target.c (raw_memory_xfer_partial): Change argument type
12467         from void * to gdb_byte *.
12468         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12469
12470 2014-01-22  Doug Evans  <dje@google.com>
12471
12472         New gdbserver option --debug-format=timestamp.
12473         * NEWS: Mention it.
12474
12475 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12476
12477         * syscalls/s390x-linux.xml: New file.
12478         * syscalls/s390-linux.xml: New file.
12479         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12480         (XML_SYSCALL_FILENAME_S390X): Likewise.
12481         (op_svc): New enum value for SVC opcode.
12482         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12483         (s390_linux_get_syscall_number): New function.
12484         (s390_gdbarch_init): Register '*get_syscall_number' and the
12485         syscall xml file name.
12486         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12487         "s390-linux.xml" and "s390x-linux.xml".
12488         * NEWS: Announce new feature.
12489
12490 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12491
12492         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12493
12494 2014-01-22  Pedro Alves  <palves@redhat.com>
12495
12496         * xtensa-config.c: Include defs.h.
12497
12498 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12499
12500         * common/common-utils.h: Add "ARI:" comment beside __func__
12501         reference.
12502
12503 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12504
12505         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12506         documentation a bit.
12507
12508 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12509
12510         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12511         * configure: Regenerate.
12512         * aclocal.m4: Regenerate.
12513         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12514         New substituted variables.
12515         (install-strip): New target.
12516         (INSTALL_SCRIPT): New substituted variable.
12517         (FLAGS_TO_PASS): Add it.
12518         (install-only): Use $(INSTALL_SCRIPT) rather than
12519         $(INSTALL_PROGRAM) for gcore.
12520
12521 2014-01-20  Tom Tromey  <tromey@redhat.com>
12522
12523         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12524         together.
12525
12526 2014-01-20  Tom Tromey  <tromey@redhat.com>
12527
12528         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12529         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12530         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12531         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12532         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12533         (struct cmd_list_element) <flags>: Remove.
12534         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12535         doc_allocated>: New fields.
12536         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12537         bitfields.
12538         * maint.c (maintenance_do_deprecate): Update.
12539         * top.c (execute_command): Update.
12540
12541 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12542
12543         * xtensa-linux-nat.c: Include asm/ptrace.h.
12544
12545 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12546
12547         * Makefile.in (SFILES): Add d-support.c.
12548         (COMMON_OBS): Add d-support.o.
12549         * d-lang.h (d_parse_symbol): Add comment, now defined in
12550         d-support.c.
12551         * d-lang.c (parse_call_convention)
12552         (parse_attributes, parse_function_types)
12553         (parse_function_args, parse_type, parse_identifier)
12554         (call_convention_p, d_parse_symbol): Move functions to ...
12555         * d-support.c: ... New file.
12556
12557 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12558
12559         * d-lang.h (d_parse_symbol): Add declaration.
12560         * d-lang.c (extract_identifiers)
12561         (extract_type_info): Remove functions.
12562         (parse_call_convention, parse_attributes)
12563         (parse_function_types, parse_function_args)
12564         (parse_type, parse_identifier, call_convention_p)
12565         (d_parse_symbol): New functions.
12566         (d_demangle): Use d_parse_symbol to demangle D symbols.
12567
12568 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12569
12570         * d-lang.h (struct builtin_d_type): New data type.
12571         (builtin_d_type): Add declaration.
12572         * d-lang.c (d_language_arch_info, build_d_types)
12573         (builtin_d_type): New functions.
12574         (enum d_primitive_types): New data type.
12575         (d_language_defn): Change c_language_arch_info to
12576         d_language_arch_info.
12577         (d_type_data): New static variable.
12578         (_initialize_d_language): Initialize d_type_data.
12579
12580 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12581
12582         * d-lang.h (d_main_name): Add declaration.
12583         * d-lang.c (d_main_name): New function.
12584         * symtab.c (find_main_name): Add call to d_main_name.
12585
12586 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12587
12588         * d-lang.c (d_language_defn): Change macro_expansion_c to
12589         macro_expansion_no.
12590
12591 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12592
12593         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12594
12595 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12596
12597         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12598         gdb_exception" declaration.
12599         * remote.c (getpkt_or_notif_sane): Likewise.
12600
12601 2014-01-17  Doug Evans  <dje@google.com>
12602
12603         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12604         function, contents of dirnames_to_char_ptr_vec_append moved here.
12605         (delim_string_to_char_ptr_vec): New function.
12606         (dirnames_to_char_ptr_vec_append): Rewrite.
12607         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12608
12609 2014-01-17  Doug Evans  <dje@google.com>
12610
12611         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12612         and moved here ...
12613         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12614         #include "common-utils.h".
12615         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12616         * common/vec.h (VEC_ASSERT_PASS): Update.
12617         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12618         (MACH_CHECK_ERROR): Update.
12619
12620 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12621
12622         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12623         comments.
12624         * gdbarch.h: Regenerate.
12625
12626 2014-01-16  Tom Tromey  <tromey@redhat.com>
12627
12628         * value.c (struct value) <regnum>: Move earlier.
12629
12630 2014-01-16  Tom Tromey  <tromey@redhat.com>
12631
12632         * remote.c (extended_remote_create_inferior): Rename from
12633         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12634         old implementation.
12635
12636 2014-01-16  Pedro Alves  <palves@redhat.com>
12637
12638         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12639         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12640         the backchain.
12641
12642 2014-01-16  Doug Evans  <dje@google.com>
12643
12644         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12645
12646 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12647
12648         * btrace.h (btrace_thread_flag): New.
12649         (struct btrace_thread_info) <flags>: New.
12650         * record-btrace.c (record_btrace_resume_thread)
12651         (record_btrace_find_thread_to_move, btrace_step_no_history)
12652         (btrace_step_stopped, record_btrace_start_replaying)
12653         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12654         (record_btrace_find_resume_thread): New.
12655         (record_btrace_resume, record_btrace_wait): Extend.
12656         (record_btrace_can_execute_reverse): New.
12657         (record_btrace_open): Fail in non-stop mode.
12658         (record_btrace_set_replay): Split into this, ...
12659         (record_btrace_stop_replaying): ... this, ...
12660         (record_btrace_clear_histories): ... and this.
12661         (init_record_btrace_ops): Init to_can_execute_reverse.
12662         * NEWS: Announce it.
12663
12664 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12665
12666         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12667         (forward_target_decr_pc_after_break)
12668         (target_decr_pc_after_break): New.
12669         * target.c (forward_target_decr_pc_after_break)
12670         (target_decr_pc_after_break): New.
12671         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12672         instead of gdbarch_decr_pc_after_break.
12673         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12674         instead of gdbarch_decr_pc_after_break.
12675         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12676         instead of gdbarch_decr_pc_after_break.
12677         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12678         instead of gdbarch_decr_pc_after_break.
12679         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12680         instead of gdbarch_decr_pc_after_break.
12681         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12682         instead of gdbarch_decr_pc_after_break.
12683
12684 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12685
12686         * btrace.c: Include regcache.h.
12687         (btrace_add_pc): New.
12688         (btrace_enable): Call btrace_add_pc.
12689         (btrace_is_empty): New.
12690         * btrace.h (btrace_is_empty): New.
12691         * record-btrace.c (require_btrace, record_btrace_info): Call
12692         btrace_is_empty.
12693
12694 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12695
12696         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12697         Support delta reads.
12698         (linux_disable_btrace): Change return type.
12699         * common/linux-btrace.h (linux_read_btrace): Change parameters
12700         and return type to allow error reporting.  Update users.
12701         (linux_disable_btrace): Change return type.  Update users.
12702         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12703         New.
12704         (btrace_error): New.
12705         (btrace_block) <begin>: Comment on BEGIN == 0.
12706         * btrace.c (btrace_compute_ftrace): Start from the end of
12707         the current trace.
12708         (btrace_stitch_trace, btrace_clear_history): New.
12709         (btrace_fetch): Read delta trace, return if replaying.
12710         (btrace_clear): Move clear history code to btrace_clear_history.
12711         (parse_xml_btrace): Throw an error if parsing failed.
12712         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12713         and return type to allow error reporting.
12714         (target_read_btrace): Change parameters and return type to allow
12715         error reporting.
12716         * target.c (target_read_btrace): Update.
12717         * remote.c (remote_read_btrace): Support delta reads.  Pass
12718         errors on.
12719         * NEWS: Announce it.
12720
12721 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12722
12723         * record.h (record_btrace_frame_unwind)
12724         (record_btrace_tailcall_frame_unwind): New declarations.
12725         * dwarf2-frame: Include record.h
12726         (dwarf2_frame_cfa): Throw an error for btrace frames.
12727         * record-btrace.c: Include hashtab.h.
12728         (btrace_get_bfun_name): New.
12729         (btrace_call_history): Call btrace_get_bfun_name.
12730         (struct btrace_frame_cache): New.
12731         (bfcache): New.
12732         (bfcache_hash, bfcache_eq, bfcache_new): New.
12733         (btrace_get_frame_function): New.
12734         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12735         (record_btrace_frame_this_id): Compute own id.
12736         (record_btrace_frame_prev_register): Provide PC, throw_error
12737         for all other registers.
12738         (record_btrace_frame_sniffer): Detect btrace frames.
12739         (record_btrace_tailcall_frame_sniffer): New.
12740         (record_btrace_frame_dealloc_cache): New.
12741         (record_btrace_frame_unwind): Add new functions.
12742         (record_btrace_tailcall_frame_unwind): New.
12743         (_initialize_record_btrace): Allocate cache.
12744         * btrace.c (btrace_clear): Call reinit_frame_cache.
12745         * NEWS: Announce it.
12746
12747 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12748
12749         * record-btrace.c (record_btrace_set_replay)
12750         (record_btrace_goto_begin, record_btrace_goto_end)
12751         (record_btrace_goto): New.
12752         (init_record_btrace_ops): Initialize them.
12753         * NEWS: Announce it.
12754
12755 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12756
12757         * record-btrace.c (record_btrace_find_new_threads)
12758         (record_btrace_thread_alive): New.
12759         (init_record_btrace_ops): Initialize to_find_new_threads and
12760         to_thread_alive.
12761
12762 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12763
12764         * record-btrace.c (record_btrace_resume): New.
12765         (record_btrace_wait): New.
12766         (init_record_btrace_ops): Initialize to_wait and to_resume.
12767
12768 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12769
12770         * record-btrace.c (record_btrace_xfer_partial)
12771         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12772         (record_btrace_allow_memory_access): New.
12773         (init_record_btrace_ops): Initialize new methods.
12774         * target.c (raw_memory_xfer_partial): Bail out if target reports
12775         that this memory is not available.
12776
12777 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12778
12779         * target.h (target_ops) <to_insert_breakpoint>
12780         <to_remove_breakpoint>: Add target_ops parameter.
12781         (forward_target_insert_breakpoint): New.
12782         (forward_target_remove_breakpoint): New.
12783         (memory_remove_breakpoint, memory_insert_breakpoint):
12784         Add target_ops parameter.
12785         * target.c (target_insert_breakpoint): Split into this and ...
12786         (forward_target_insert_breakpoint): ... this.
12787         (target_remove_breakpoint): Split into this and ...
12788         (forward_target_remove_breakpoint): ... this.
12789         (debug_to_insert_breakpoint): Add target_ops parameter.
12790         Call forward_target_insert_breakpoint.
12791         (debug_to_remove_breakpoint): Add target_ops parameter.
12792         Call forward_target_remove_breakpoint.
12793         (update_current_target): Do not inherit or default to_insert_breakpoint
12794         and to_remove_breakpoint.
12795         * corelow.c (ignore): Add target_ops parameter.
12796         * exec.c (ignore): Add target_ops parameter.
12797         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12798         Add target_ops parameter.
12799         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12800         Add target_ops parameter.
12801         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12802         Add target_ops parameter.
12803         * record-full.c (record_full_beneath_to_insert_breakpoint)
12804         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12805         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12806         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12807         (record_full_core_remove_breakpoint): Add target_ops parameter.
12808         Update users.
12809         (record_full_beneath_to_insert_breakpoint_ops)
12810         (record_full_beneath_to_remove_breakpoint_ops)
12811         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12812         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12813         tmp_to_remove_breakpoint_ops,
12814         record_full_beneath_to_insert_breakpoint_ops, and
12815         record_full_beneath_to_remove_breakpoint_ops.
12816         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12817         (m32r_remove_breakpoint): Add target_ops parameter.
12818         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12819         Add target_ops parameter.
12820         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12821         Add target_ops parameter.
12822
12823 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12824             Markus Metzger  <markus.t.metzger@intel.com>
12825
12826         * record-btrace.c: Include frame-unwind.h.
12827         (record_btrace_frame_unwind_stop_reason)
12828         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12829         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12830         New.
12831         (init_record_btrace_ops): Install it.
12832
12833 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12834
12835         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12836         get_prev_frame_1.
12837
12838 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12839
12840         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12841         earlier.
12842
12843 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12844
12845         * frame-unwind.c: Include target.h.
12846         (frame_unwind_try_unwinder): New function with code from ...
12847         (frame_unwind_find_by_frame): ... here.  New variable
12848         unwinder_from_target, call also target_get_unwinder)
12849         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12850         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12851         * target.h (struct target_ops): New fields to_get_unwinder and
12852         to_get_tailcall_unwinder.
12853         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12854
12855 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12856
12857         * record-btrace.c (record_btrace_fetch_registers)
12858         (record_btrace_store_registers)
12859         (record_btrace_to_prepare_to_store): New.
12860         (init_record_btrace_ops): Add the above.
12861
12862 2014-01-16  Tom Tromey  <tromey@redhat.com>
12863
12864         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12865         * target.h (struct target_ops) <to_prepare_to_store>: Add
12866         argument.
12867         (target_prepare_to_store): Add argument.
12868         * target.c (debug_to_prepare_to_store): Add argument.
12869         (update_current_target): Update.
12870         * remote.c (remote_prepare_to_store): Add 'self' argument.
12871         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12872         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12873         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12874         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12875         argument.
12876         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12877         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12878         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12879         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12880         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12881
12882 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12883
12884         * btrace.h (replay) <replay>: New.
12885         (btrace_is_replaying): New.
12886         * btrace.c (btrace_clear): Free replay iterator.
12887         (btrace_is_replaying): New.
12888         * record-btrace.c (record_btrace_is_replaying): New.
12889         (record_btrace_info): Print insn number if replaying.
12890         (record_btrace_insn_history): Start at replay position.
12891         (record_btrace_call_history): Start at replay position.
12892         (init_record_btrace_ops): Init to_record_is_replaying.
12893
12894 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12895
12896         * record-btrace.c (record_btrace_insn_history_range): Include
12897         end.
12898         (record_btrace_insn_history_from): Adjust range.
12899         (record_btrace_call_history_range): Include
12900         end.
12901         (record_btrace_call_history_from): Adjust range.
12902         * NEWS: Announce changes.
12903
12904 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12905
12906         * record.h (enum record_print_flag)
12907         <record_print_indent_calls>: New.
12908         * record.c (get_call_history_modifiers): Recognize /c modifier.
12909         (_initialize_record): Document /c modifier.
12910         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12911         Reorder fields.  Optionally indent the function name.  Update
12912         all users.
12913         * NEWS: Announce changes.
12914
12915 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12916
12917         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12918
12919 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12920
12921         * btrace.c (ftrace_new_function): Start counting at one.
12922         * record-btrace.c (record_btrace_info): Adjust number of calls
12923         and insns.
12924         * NEWS: Announce it.
12925
12926 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12927
12928         * record-btrace.c (btrace_call_history_insn_range): Print
12929         insn range as [begin, end].
12930
12931 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12932
12933         * btrace.h (struct btrace_func_link): New.
12934         (enum btrace_function_flag): New.
12935         (struct btrace_inst): Rename to ...
12936         (struct btrace_insn): ...this. Update all users.
12937         (struct btrace_func) <ibegin, iend>: Remove.
12938         (struct btrace_func_link): New.
12939         (struct btrace_func): Rename to ...
12940         (struct btrace_function): ...this. Update all users.
12941         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12942         (number, level, flags>: New.
12943         (struct btrace_insn_iterator): Rename to ...
12944         (struct btrace_insn_history): ...this.
12945         Update all users.
12946         (struct btrace_insn_iterator, btrace_call_iterator): New.
12947         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12948         (struct btrace_target_info) <begin, end, level>
12949         <insn_history, call_history>: New.
12950         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12951         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12952         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12953         (btrace_call_number, btrace_call_begin, btrace_call_end)
12954         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12955         (btrace_find_function_by_number, btrace_set_insn_history)
12956         (btrace_set_call_history): New.
12957         * btrace.c (btrace_init_insn_iterator)
12958         (btrace_init_func_iterator, compute_itrace): Remove.
12959         (ftrace_print_function_name, ftrace_print_filename)
12960         (ftrace_skip_file): Change
12961         parameter to const.
12962         (ftrace_init_func): Remove.
12963         (ftrace_debug): Use new btrace_function fields.
12964         (ftrace_function_switched): Also consider gaining and
12965         losing symbol information).
12966         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12967         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12968         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12969         New.
12970         (ftrace_new_function): Move. Remove debug print.
12971         (ftrace_update_lines, ftrace_update_insns): New.
12972         (ftrace_update_function): Check for call, ret, and jump.
12973         (compute_ftrace): Renamed to ...
12974         (btrace_compute_ftrace): ...this. Rewritten to compute call
12975         stack.
12976         (btrace_fetch, btrace_clear): Updated.
12977         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12978         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12979         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12980         (btrace_call_number, btrace_call_begin, btrace_call_end)
12981         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12982         (btrace_find_function_by_number, btrace_set_insn_history)
12983         (btrace_set_call_history): New.
12984         * record-btrace.c (require_btrace): Use new btrace thread
12985         info fields.
12986         (record_btrace_info, btrace_insn_history)
12987         (record_btrace_insn_history, record_btrace_insn_history_range):
12988         Use new btrace thread info fields and new iterator.
12989         (btrace_func_history_src_line): Rename to ...
12990         (btrace_call_history_src_line): ...this. Use new btrace
12991         thread info fields.
12992         (btrace_func_history): Rename to ...
12993         (btrace_call_history): ...this. Use new btrace thread info
12994         fields and new iterator.
12995         (record_btrace_call_history, record_btrace_call_history_range):
12996         Use new btrace thread info fields and new iterator.
12997
12998 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12999
13000         * frame.h (frame_id_build_unavailable_stack_special): New.
13001         * frame.c (frame_id_build_unavailable_stack_special): New.
13002
13003 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13004
13005         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13006         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13007         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13008         to gdbarch.
13009         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13010         (i386_insn_is_jump, i386_jmp_p): New.
13011         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13012         insn_is_jump to gdbarch.
13013         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13014         * gdbarch.h: Regenerated.
13015         * gdbarch.c: Regenerated.
13016         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13017         (default_insn_is_jump): New.
13018         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13019         (default_insn_is_jump): New.
13020
13021 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13022
13023         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13024         Change to ...
13025         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13026         (btrace_read_type) <btrace_read_new>: Change to ...
13027         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13028
13029 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13030
13031         * common/linux-btrace.c (linux_read_btrace): Free trace from
13032         previous iteration.
13033
13034 2014-01-15  Doug Evans  <dje@google.com>
13035
13036         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13037         uint32_t.
13038
13039 2014-01-15  Tom Tromey  <tromey@redhat.com>
13040
13041         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13042         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13043         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13044         (set_objfile_main_name): New function.
13045         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13046         language_of_main>: New fields.
13047         (set_objfile_main_name): Declare.
13048         * symtab.c (find_main_name): Loop over objfiles to find the main
13049         name and language.
13050         (set_main_name): Now static.
13051         (get_main_info): Add comment.
13052         * symtab.h (set_main_name): Don't declare.
13053
13054 2014-01-15  Tom Tromey  <tromey@redhat.com>
13055
13056         * symtab.c (main_progspace_key): New global.
13057         (struct main_info): New.
13058         (name_of_main, language_of_main): Remove.
13059         (get_main_info, main_info_cleanup): New function.
13060         (set_main_name, main_name, main_language): Use get_main_info.
13061         (_initialize_symtab): Initialize main_progspace_key.
13062
13063 2014-01-15  Tom Tromey  <tromey@redhat.com>
13064
13065         * dbxread.c (process_one_symbol): Update.
13066         * dwarf2read.c (read_partial_die): Update.
13067         * symfile.c (set_initial_language): Call main_language.
13068         * symtab.c (language_of_main): Now static.
13069         (set_main_name): Add 'lang' parameter.
13070         (find_main_name): Update.
13071         (main_language): New function.
13072         (symtab_observer_executable_changed): Update.
13073         * symtab.h (set_main_name): Update.
13074         (language_of_main): Remove.
13075         (main_language): Declare.
13076
13077 2014-01-15  Tom Tromey  <tromey@redhat.com>
13078
13079         * symfile.c (init_entry_point_info): Use new "initialized" field.
13080         Update.
13081         * objfiles.h (struct entry_point) <initialized>: New field.
13082         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13083         (struct objfile) <ei>: ...here.  Remove.
13084         * objfiles.c (entry_point_address_query): Update.
13085
13086 2014-01-15  Tom Tromey  <tromey@redhat.com>
13087
13088         * objfiles.c (entry_point_address_query): Relocate entry point
13089         address.
13090         (objfile_relocate1): Do not relocate entry point address.
13091         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13092         <the_bfd_section_index>: New field.
13093         * symfile.c (init_entry_point_info): Find the entry point's
13094         section.
13095
13096 2014-01-15  Tom Tromey  <tromey@redhat.com>
13097
13098         * solib-frv.c (enable_break): Use entry_point_address_query.
13099
13100 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13101
13102         * NEWS: Add note on improved process record-replay on
13103         arm*-linux* targets.
13104
13105 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13106
13107         * arm-tdep.c (enum arm_record_result): New enum.
13108         (arm_record_unsupported_insn): New function.
13109         (arm_record_coproc_data_proc): Removed.
13110         (thumb2_record_ld_st_multiple): New function.
13111         (thumb2_record_ld_st_dual_ex_tbb): New function.
13112         (thumb2_record_data_proc_sreg_mimm): New function.
13113         (thumb2_record_ps_dest_generic): New function.
13114         (thumb2_record_branch_misc_cntrl): New function.
13115         (thumb2_record_str_single_data): New function.
13116         (thumb2_record_ld_mem_hints): New function.
13117         (thumb2_record_ld_word): New function.
13118         (thumb2_record_lmul_lmla_div): New function.
13119         (thumb2_record_decode_insn_handler): New function.
13120         (decode_insn): Add thumb32 instruction handlers.
13121
13122 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13123
13124         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13125         (struct arm_linux_record_tdep): Declare.
13126         (arm_canonicalize_syscall): New function.
13127         (arm_all_but_pc_registers_record): New function.
13128         (arm_linux_syscall_record): New function.
13129         (arm_linux_init_abi): Add syscall recording constructs.
13130         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13131         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13132         decoding.
13133         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13134         <arm_syscall_record>: New field.
13135         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13136         gdb_target_obs.
13137
13138 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13139
13140         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13141         register for push instruction recording.
13142
13143 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13144
13145         * arm-tdep.c (thumb_record_misc): Update to correct logical
13146         error while recording ldm, ldmia and pop instructions.
13147
13148 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13149
13150         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13151
13152 2014-01-15  Pedro Alves  <palves@redhat.com>
13153
13154         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13155         (go32_resume, go32_fetch_registers, store_register)
13156         (go32_store_registers, go32_prepare_to_store)
13157         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13158         (go32_create_inferior, go32_can_run, go32_terminal_init)
13159         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13160         declarations.
13161
13162 2014-01-15  Tom Tromey  <tromey@redhat.com>
13163
13164         * target.h (async_callback_ftype): New typedef.
13165         (struct target_ops) <to_async>: Use it.
13166
13167 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13168
13169         * python/py-value.c (get_field_type): Remove unnecessary curly
13170         braces for single-statement if block.
13171
13172 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13173
13174         * python/py-type.c (convert_field): Add missing empty line
13175         after declarations.
13176
13177 2014-01-14  Doug Evans  <dje@google.com>
13178
13179         * symfile.h (expand_symtabs_matching): Renamed from
13180         expand_partial_symbol_names.  Update prototype.
13181         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13182         * symfile.c (expand_symtabs_matching): Renamed from
13183         expand_partial_symbol_names.  New args file_matcher, kind.
13184         Rename arg fun to symbol_matcher.
13185         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13186         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13187         ada_expand_partial_symbol_name.
13188         (ada_make_symbol_completion_list): Update to call
13189         expand_symtabs_matching.
13190         (ada_add_global_exceptions): Call expand_symtabs_matching.
13191         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13192         call map_symbol_filenames.
13193         * symtab.c (sources_info): Update to call map_symbol_filenames.
13194         (search_symbols): Call expand_symtabs_matching.
13195         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13196         (default_make_symbol_completion_list_break_on): Update to call
13197         expand_symtabs_matching.
13198         (make_source_files_completion_list): Update to call
13199         map_symbol_filenames.
13200
13201 2014-01-14  Doug Evans  <dje@google.com>
13202
13203         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13204         (expand_symtabs_symbol_matcher_ftype): New typedef.
13205         (quick_symbol_functions.expand_symtabs_matching): Update to use.
13206         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13207         * symfile.c (expand_partial_symbol_names): Update to use
13208         expand_symtabs_symbol_matcher_ftype.
13209         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13210         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13211         Arg name_matcher renamed to symbol_matcher.
13212         * psymtab.c (recursively_search_psymtabs): Update to use
13213         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
13214         sym_matcher.
13215         (expand_symtabs_matching_via_partial): Update to use
13216         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13217         Arg name_matcher renamed to symbol_matcher.
13218
13219 2014-01-14  Doug Evans  <dje@google.com>
13220
13221         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13222         (map_partial_symbol_filenames): Ditto.
13223         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13224         (map_partial_symbol_filenames): Ditto.
13225         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13226         (map_partial_symbol_filenames): Ditto.
13227         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13228         (map_partial_symbol_filenames): Ditto.
13229         * symtab.c: Delete #include "psymtab.h".
13230
13231 2014-01-14  Pedro Alves  <palves@redhat.com>
13232             Tom Tromey  <tromey@redhat.com>
13233
13234         * infrun.c (use_displaced_stepping): Use find_record_target
13235         instead of RECORD_IS_USED.
13236         (adjust_pc_after_break): Use record_full_is_used instead of
13237         RECORD_IS_USED.
13238         * record-btrace.c (record_btrace_open): Call record_preopen
13239         instead of checking RECORD_IS_USED.
13240         * record-full.c (record_full_shortname)
13241         (record_full_core_shortname): New globals.
13242         (record_full_is_used): New function.
13243         (find_full_open): Call record_preopen instead of checking
13244         RECORD_IS_USED.
13245         (init_record_full_ops): Set the target's shortname to
13246         record_full_shortname.
13247         (init_record_full_core_ops): Set the target's shortname to
13248         record_full_core_shortname.
13249         * record-full.h (record_full_is_used): Declare.
13250         * record.c (find_record_target): Make extern.
13251         (record_preopen): New function.
13252         * record.h (RECORD_IS_USED): Delete macro.
13253         (find_record_target, record_preopen): Declare functions.
13254
13255 2014-01-14  Yao Qi  <yao@codesourcery.com>
13256
13257         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13258         'len''s type to ULONGEST.
13259         (core_xfer_shared_libraries_aix): Likewise.
13260         * gdbarch.c, gdbarch.h: Regenerated.
13261         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13262         Change type of 'len' to ULONGEST.
13263         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13264         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13265
13266 2014-01-14  Yao Qi  <yao@codesourcery.com>
13267
13268         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13269         type of 'len' to ULONGEST.
13270         (linux_xfer_osdata_processgroups): Likewise.
13271         (linux_xfer_osdata_threads): Likewise.
13272         (linux_xfer_osdata_fds): Likewise.
13273         (linux_xfer_osdata_isockets): Likewise.
13274         (linux_xfer_osdata_shm): Likewise.
13275         (linux_xfer_osdata_sem): Likewise.
13276         (linux_xfer_osdata_msg): Likewise.
13277         (linux_common_xfer_osdata): Likewise.
13278         (struct osdata_type) <getter>: Likewise.
13279         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13280         the declaration.
13281
13282 2014-01-14  Yao Qi  <yao@codesourcery.com>
13283
13284         * target.h (target_xfer_partial_ftype): Update.
13285         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13286         ULONGEST.
13287         * aix-thread.c (aix_thread_xfer_partial): Change type of
13288         argument 'len' to ULONGEST.
13289         * auxv.c (procfs_xfer_auxv): Likewise.
13290         (ld_so_xfer_auxv): Likewise.
13291         (memory_xfer_auxv): Likewise.
13292         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13293         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13294         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13295         * corelow.c (core_xfer_partial): Likewise.
13296         * ctf.c (ctf_xfer_partial): Likewise.
13297         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13298         '%u'.
13299         (darwin_read_dyld_info): Likewise.
13300         (darwin_xfer_partial): Likewise.
13301         * exec.c (section_table_xfer_memory_partial): Likewise.
13302         (exec_xfer_partial): Likewise.
13303         * exec.h (section_table_xfer_memory_partial): Update
13304         declaration.
13305         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13306         instead of plongest.
13307         (gnu_xfer_partial): Likewise.
13308         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13309         (ia64_hpux_xfer_solib_got): Likewise.
13310         (ia64_hpux_xfer_partial): Likewise.
13311         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13312         * inf-ptrace.c (inf_ptrace_xfer_partial):
13313         * inf-ttrace.c (inf_ttrace_xfer_partial):
13314         * linux-nat.c (linux_xfer_siginfo): Likewise.
13315         (linux_nat_xfer_partial): Likewise.
13316         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13317         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13318         * monitor.c (monitor_xfer_memory): Likewise.
13319         (monitor_xfer_partial): Likewise.
13320         * procfs.c (procfs_xfer_partial): Likewise.
13321         * record-full.c (record_full_xfer_partial): Likewise.
13322         (record_full_core_xfer_partial): Likewise.
13323         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13324         instead of plongest.
13325         (gdbsim_xfer_partial): Likewise.
13326         * remote.c (remote_xfer_partial): Likewise.
13327         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13328         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13329         declaration.
13330         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13331         (rs6000_xfer_shared_libraries): Likewise.
13332         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13333         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13334         (sparc_xfer_partial): Likewise.
13335         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13336         (spu_xfer_partial): Likewise.
13337         * spu-multiarch.c (spu_xfer_partial): Likewise.
13338         * target.c (target_read_live_memory): Likewise.
13339         (memory_xfer_live_readonly_partial): Likewise.
13340         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13341         (target_xfer_partial, default_xfer_partial): Likewise.
13342         (current_xfer_partial): Likewise.
13343         * tracepoint.c (tfile_xfer_partial): Likewise.
13344         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13345         pulongest instead of plongest.
13346         (windows_xfer_partial): Likewise.
13347         (windows_xfer_shared_libraries): Likewise.
13348
13349 2014-01-14  Yao Qi  <yao@codesourcery.com>
13350
13351         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13352         target_xfer_partial_ftype.
13353
13354 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13355
13356         PR python/15464
13357         PR python/16113
13358         * valops.c (value_struct_elt_bitpos): New function
13359         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13360         object to 'None' if the field name is an empty string ("").
13361         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13362         attribute to look for a field when 'name' is 'None'.
13363         (get_field_type): New function
13364
13365 2014-01-13  Doug Evans  <dje@google.com>
13366
13367         PR symtab/16426
13368         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13369         (try_open_dwop_file): Ditto.
13370         * gdb_bfd.c: #include "vec.h".
13371         (bfdp): New typedef.
13372         (struct gdb_bfd_data): New member included_bfds.
13373         (gdb_bfd_unref): Unref all included bfds.
13374         (gdb_bfd_record_inclusion): New function.
13375         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13376
13377 2014-01-13  Tom Tromey  <tromey@redhat.com>
13378
13379         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13380
13381 2014-01-13  Tom Tromey  <tromey@redhat.com>
13382
13383         * defs.h (use_windows): Remove.
13384         * gdb.c (main): Update.
13385         * main.c (captured_main, gdb_main): Update.
13386         * main.h (struct captured_main_args) <use_windows>: Remove.
13387         * top.c (use_windows): Remove.
13388
13389 2014-01-13  Tom Tromey  <tromey@redhat.com>
13390
13391         * defs.h (deprecated_flush_hook): Remove.
13392
13393 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13394
13395         PR threads/16216
13396         * linux-thread-db.c (try_thread_db_load): Add parameter
13397         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13398         (try_thread_db_load_from_pdir_1): Move it there from here.
13399         (try_thread_db_load_from_sdir): Update caller.
13400         (try_thread_db_load_from_dir): Move it there from here.
13401
13402 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13403
13404         * regformats/regdat.sh: Always rewrite the register file.
13405
13406 2014-01-13  Pedro Alves  <palves@redhat.com>
13407
13408         * Makefile.in (CHECK_HEADERS): New variable.
13409         (check-headers:): New rule.
13410
13411 2014-01-13  Tom Tromey  <tromey@redhat.com>
13412
13413         * cli/cli-setshow.c (do_set_command): Update.
13414         * defs.h (deprecated_set_hook): Remove.
13415         * top.c (deprecated_set_hook): Remove.
13416
13417 2014-01-13  Pedro Alves  <palves@redhat.com>
13418
13419         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13420         the tracepoint if the PC is a pseudo-register.
13421
13422 2014-01-13  Tom Tromey  <tromey@redhat.com>
13423
13424         * defs.h (XCALLOC): Remove.
13425         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13426         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13427         * dwarf2loc.c (allocate_piece_closure): Likewise.
13428         * elfread.c (elf_symfile_segments): Likewise.
13429         (elf_symfile_segments): Likewise.
13430         * gdbtypes.c (copy_type_recursive): Likewise.
13431         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13432         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13433         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13434         XCALLOC.
13435         * mt-tdep.c (mt_gdbarch_init): Likewise.
13436         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13437         XCALLOC.
13438         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13439         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13440         * registry.c (registry_alloc_data): Likewise.
13441         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13442         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13443         * serial.c (serial_fdopen_ops): Likewise.
13444         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13445         XCALLOC.
13446         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13447         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13448         not XCALLOC.
13449
13450 2014-01-13  Tom Tromey  <tromey@redhat.com>
13451
13452         * defs.h (XMALLOC): Remove.
13453         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13454         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13455         * cli-out.c (struct ui_out *): Likewise.
13456         * cli/cli-dump.c (add_dump_command): Likewise.
13457         (add_dump_command): Likewise.
13458         * complaints.c (get_complaints): Likewise.
13459         (find_complaint): Likewise.
13460         * dwarf2-frame.c (execute_cfa_program): Likewise.
13461         * dwarf2read.c (abbrev_table_read_table): Likewise.
13462         * gdbarch.sh: Likewise.
13463         * gdbarch.c: Rebuild.
13464         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13465         * interps.c (interp_new): Likewise.
13466         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13467         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13468         * mi/mi-console.c (mi_console_file_new): Likewise.
13469         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13470         * mi/mi-out.c (mi_out_new): Likewise.
13471         * mi/mi-parse.c (mi_parse): Likewise.
13472         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13473         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13474         * observer.c (xalloc_observer_list_node): Likewise.
13475         * regcache.c (regcache_xmalloc_1): Likewise.
13476         * reggroups.c (reggroup_new): Likewise.
13477         (_initialize_reggroup): Likewise.
13478         * registry.c (register_data_with_cleanup): Likewise.
13479         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13480         * ser-base.c (serial_ttystate): Likewise.
13481         * ser-mingw.c (make_pipe_state): Likewise.
13482         * ser-pipe.c (pipe_open): Likewise.
13483         * serial.c (serial_open): Likewise.
13484         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13485         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13486         (tui_alloc_win_info): Likewise.
13487         (tui_add_content_elements): Likewise.
13488         * tui/tui-file.c (tui_file_new): Likewise.
13489         * tui/tui-out.c (tui_out_new): Likewise.
13490         * ui-file.c (mem_file_new): Likewise.
13491         * ui-out.c (push_level): Likewise.
13492         (make_cleanup_ui_out_end): Likewise.
13493         (append_header_to_list): Likewise.
13494         (ui_out_new): Likewise.
13495         * user-regs.c (user_reg_add_builtin): Likewise.
13496
13497 2014-01-13  Tom Tromey  <tromey@redhat.com>
13498
13499         * defs.h (XZALLOC): Remove.
13500         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13501         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13502         (get_ada_tasks_inferior_data): Likewise.
13503         * auto-load.c (get_auto_load_pspace_data): Likewise.
13504         * auxv.c (get_auxv_inferior_data): Likewise.
13505         * bfd-target.c (target_bfd_reopen): Likewise.
13506         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13507         (deprecated_insert_raw_breakpoint): Likewise.
13508         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13509         * corelow.c (core_open): Likewise.
13510         * darwin-nat.c (darwin_check_new_threads): Likewise.
13511         (darwin_attach_pid): Likewise.
13512         * dummy-frame.c (dummy_frame_push): Likewise.
13513         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13514         * dwarf2loc.c (allocate_piece_closure): Likewise.
13515         * elfread.c (elf_symfile_segments): Likewise.
13516         * eval.c (ptrmath_type_p): Likewise.
13517         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13518         * gdbtypes.c (alloc_type_arch): Likewise.
13519         (alloc_type_instance): Likewise.
13520         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13521         * inf-child.c (inf_child_can_use_agent): Likewise.
13522         * inflow.c (get_inflow_inferior_data): Likewise.
13523         * infrun.c (save_infcall_suspend_state): Likewise.
13524         * jit.c (jit_reader_load): Likewise.
13525         (get_jit_objfile_data): Likewise.
13526         (get_jit_program_space_data): Likewise.
13527         (jit_object_open_impl): Likewise.
13528         (jit_symtab_open_impl): Likewise.
13529         (jit_block_open_impl): Likewise.
13530         (jit_frame_sniffer): Likewise.
13531         * linux-fork.c (add_fork): Likewise.
13532         * maint.c (make_command_stats_cleanup): Likewise.
13533         * objfiles.c (get_objfile_pspace_data): Likewise.
13534         * opencl-lang.c (struct lval_closure): Likewise.
13535         * osdata.c (osdata_start_osdata): Likewise.
13536         * progspace.c (new_address_space): Likewise.
13537         (add_program_space): Likewise.
13538         * remote-sim.c (get_sim_inferior_data): Likewise.
13539         * sh-tdep.c (sh_gdbarch_init): Likewise.
13540         * skip.c (Ignore): Likewise.
13541         (skip_delete_command): Likewise.
13542         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13543         (library_list_start_library): Likewise.
13544         (solib_aix_current_sos): Likewise.
13545         * solib-darwin.c (get_darwin_info): Likewise.
13546         (darwin_current_sos): Likewise.
13547         * solib-dsbt.c (get_dsbt_info): Likewise.
13548         * solib-ia64-hpux.c (new_so_list): Likewise.
13549         (ia64_hpux_get_solib_linkage_addr): Likewise.
13550         * solib-spu.c (append_ocl_sos): Likewise.
13551         (spu_current_sos): Likewise.
13552         * solib-svr4.c (get_svr4_info): Likewise.
13553         (svr4_keep_data_in_core): Likewise.
13554         (library_list_start_library): Likewise.
13555         (svr4_default_sos): Likewise.
13556         (svr4_read_so_list): Likewise.
13557         * solib-target.c (library_list_start_library): Likewise.
13558         (solib_target_current_sos): Likewise.
13559         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13560         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13561         * symfile.c (default_symfile_segments): Likewise.
13562         * target-descriptions.c (tdesc_data_init): Likewise.
13563         (tdesc_create_reg): Likewise.
13564         (struct tdesc_type *): Likewise.
13565         (tdesc_create_vector): Likewise.
13566         (tdesc_set_struct_size): Likewise.
13567         (struct tdesc_type *): Likewise.
13568         (tdesc_free_feature): Likewise.
13569         (tdesc_create_feature): Likewise.
13570         * windows-nat.c (windows_add_thread): Likewise.
13571         (windows_make_so): Likewise.
13572         * xml-support.c (gdb_xml_body_text): Likewise.
13573         (gdb_xml_create_parser_and_cleanup): Likewise.
13574         (xml_process_xincludes): Likewise.
13575         * xml-syscall.c (allocate_syscalls_info): Likewise.
13576         (syscall_create_syscall_desc): Likewise.
13577
13578 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13579
13580         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13581         function, with code from i386_stap_parse_special_token.
13582         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13583         (i386_stap_parse_special_token): Move code to the two functions
13584         above; simplify it.
13585
13586 2014-01-09  Pedro Alves  <palves@redhat.com>
13587             Hui Zhu  <hui@codesourcery.com>
13588
13589         PR gdb/16101
13590         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13591         bp_err_string.  Don't mark the location shlib_disabled if the
13592         error thrown wasn't a generic or memory error.  Catch errors
13593         thrown while inserting breakpoints in overlayed code.  Output
13594         error message of software breakpoints.
13595         * remote.c (remote_insert_breakpoint): If this breakpoint has
13596         target-side commands but this stub doesn't support Z0 packets,
13597         throw NOT_SUPPORTED_ERROR error.
13598         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13599         * target.h (target_insert_breakpoint): Extend comment.
13600         (target_insert_hw_breakpoint): Add comment.
13601
13602 2014-01-08  Pedro Alves  <palves@redhat.com>
13603
13604         * remote.c (remote_add_thread): Add threads silently if starting
13605         up.
13606         (remote_notice_new_inferior): If in all-stop, and starting up,
13607         don't call notice_new_inferior.
13608         (get_current_thread): New function, factored out from ...
13609         (add_current_inferior_and_thread): ... this.  Adjust.
13610         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13611         found any thread, then select the remote's current thread as GDB's
13612         current thread too.
13613
13614 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13615
13616         * NEWS: Create a new section for the next release branch.
13617         Rename the section of the current branch, now that it has
13618         been cut.
13619
13620 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13621
13622         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13623         * version.in: Bump version to 7.7.50.DATE-cvs.
13624
13625 2014-01-08  Yao Qi  <yao@codesourcery.com>
13626
13627         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13628         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13629         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13630
13631 2014-01-08  Yao Qi  <yao@codesourcery.com>
13632
13633         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13634         return value of bfd_get_filename to symbol_file_add_from_bfd.
13635
13636 2014-01-08  Pierre Muller  <muller@sourceware.org>
13637
13638         Fix PR16201.
13639         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13640         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13641         to prim_record_mininal_symbol_and_info.
13642         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13643         in call to prim_record_minimal_symbol_and_info.
13644         (read_pe_exported_syms): Set index field of section_data.
13645
13646 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13647
13648         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13649         * features/aarch64.c: Regenerate.
13650
13651 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13652
13653         * target.c (return_null): Define.
13654         (update_current_target): Use it instead of return_zero for
13655         functions that return a pointer.
13656
13657 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13658
13659         * source.c (add_path): Fix check for duplicated paths in the previously
13660         included paths.
13661
13662 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13663
13664         * ada-lang.c: Remove duplicated include statements.
13665         * alphabsd-nat.c: Ditto.
13666         * amd64-darwin-tdep.c: Ditto.
13667         * amd64fbsd-nat.c: Ditto.
13668         * auto-load.c: Ditto.
13669         * ax-gdb.c: Ditto.
13670         * breakpoint.c: Ditto.
13671         * dbxread.c: Ditto.
13672         * fork-child.c: Ditto.
13673         * gdb_usleep.c: Ditto.
13674         * i386-darwin-tdep.c: Ditto.
13675         * i386fbsd-nat.c: Ditto.
13676         * infcmd.c: Ditto.
13677         * inferior.c: Ditto.
13678         * jv-lang.c: Ditto.
13679         * linux-nat.c: Ditto.
13680         * linux-tdep.c: Ditto.
13681         * m68kbsd-nat.c: Ditto.
13682         * m68klinux-nat.c: Ditto.
13683         * microblaze-tdep.c: Ditto.
13684         * mips-linux-tdep.c: Ditto.
13685         * mn10300-tdep.c: Ditto.
13686         * nto-tdep.c: Ditto.
13687         * opencl-lang.c: Ditto.
13688         * osdata.c: Ditto.
13689         * printcmd.c: Ditto.
13690         * regcache.c: Ditto.
13691         * remote-m32r-sdi.c: Ditto.
13692         * remote.c: Ditto.
13693         * symfile.c: Ditto.
13694         * symtab.c: Ditto.
13695         * tilegx-linux-nat.c: Ditto.
13696         * tilegx-tdep.c: Ditto.
13697         * tracepoint.c: Ditto.
13698         * valops.c: Ditto.
13699         * vaxbsd-nat.c: Ditto.
13700         * windows-nat.c: Ditto.
13701         * xtensa-tdep.c: Ditto.
13702
13703 2014-01-07  Yao Qi  <yao@codesourcery.com>
13704
13705         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13706
13707 2014-01-07  Yao Qi  <yao@codesourcery.com>
13708             Joel Brobecker  <brobecker@adacore.com>
13709
13710         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13711         (pdc_write_regs): Likewise.
13712         (fetch_regs_kernel_thread): Likewise.
13713         (store_regs_kernel_thread): Likewise.
13714
13715 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13716
13717         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13718         tagged type objects to their actual type.
13719
13720 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13721
13722         * ada-valprint.c (print_field_values): Add "language" parameter.
13723         Update calls to print_field_values and print_variant_part.
13724         Pass new parameter "language" in call to val_print instead
13725         of "current_language".  Replace call to ada_val_print by call
13726         to val_print.
13727         (print_variant_part): Add "language" parameter.
13728         (ada_val_print_struct_union): Update call to print_field_values.
13729
13730 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13731
13732         * ada-valprint.c (ui_memcpy): Delete.
13733         (ada_print_floating): Update documentation.  Add empty line
13734         between between function documentation and implementation.
13735         Delete variable "buffer".  Use ui_file_xstrdup in place of
13736         ui_file_put.  Minor adjustments following this change.
13737
13738 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13739
13740         * ada-valprint.c (ada_val_print_string): New function,
13741         extracted from ada_val_print_array.
13742         (ada_val_print_array): Replace extracted code by call
13743         to ada_val_print_string followed by a return.  Move
13744         "else" branch to the function's top block.
13745
13746 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13747
13748         * ada-valprint.c (ada_val_print_array): Move implementation
13749         down.  Rename parameter "offset" and "val" into "offset_aligned"
13750         and "original_value" respectively.  Add parameter "offset".
13751
13752 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13753
13754         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13755         re-organizing the code. Change the "???" message printed
13756         when target type is a TYPE_CODE_UNDEF into
13757         "<ref to undefined type>".
13758
13759 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13760
13761         * ada-valprint.c (print_record): Delete, implementation inlined...
13762         (ada_val_print_struct_union): ... here.  Remove call to
13763         ada_check_typedef in inlined implementation.
13764
13765 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13766
13767         * ada-valprint.c (ada_val_print_gnat_array): New function,
13768         extracted from ada_val_print_1;
13769         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13770         (ada_val_print_flt, ada_val_print_struct_union)
13771         (ada_val_print_ref): Likewise.
13772         (ada_val_print_1): Delete variables i and elttype.
13773         Replace extracted-out code by call to corresponding
13774         new functions.
13775
13776 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13777
13778         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13779
13780 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13781
13782         * ada-valprint.c (ada_val_print_1): Replace calls to
13783         ada_val_print_1 by calls to val_print.
13784
13785 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13786
13787         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13788         Update calls to self accordingly.  Replace calls to c_val_print
13789         by calls to val_print.
13790
13791 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13792
13793         * ada-valprint.c (print_record): Delete declaration.
13794         (adjust_type_signedness, ada_val_print_1): Likewise.
13795         (ada_val_print): Move function implementation down.
13796         (print_variant_part, print_field_values, print_record):
13797         Move function implementation up.
13798
13799 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13800
13801         * python/py-type.c (typy_get_name): New function.
13802         (type_object_getset): Add entry for attribute "name".
13803         * NEWS: Add entry mentioning this new attribute.
13804
13805 2014-01-07  Yao Qi  <yao@codesourcery.com>
13806
13807         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13808         statement.
13809
13810 2014-01-07  Yao Qi  <yao@codesourcery.com>
13811
13812         * gnu-nat.c (info_port_rights): Add qualifier const to
13813         argument args.
13814
13815 2014-01-07  Yao Qi  <yao@codesourcery.com>
13816
13817         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13818
13819 2014-01-07  Yao Qi  <yao@codesourcery.com>
13820
13821         * gnu-nat.c (make_inf) Update declaration.
13822         (make_inf): Make it static.
13823         (inf_set_traced): Likewise.
13824         (inf_port_to_thread, inf_task_died_status): Likewise.
13825
13826 2014-01-07  Yao Qi  <yao@codesourcery.com>
13827
13828         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13829
13830 2014-01-07  Yao Qi  <yao@codesourcery.com>
13831
13832         * gnu-nat.c (_initialize_gnu_nat): Declare.
13833
13834 2014-01-07  Yao Qi  <yao@codesourcery.com>
13835
13836         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13837         'enum bfd_endian'.
13838         (struct gdbarch_info) <byte_order>: Change type to
13839         'enum bfd_endian'.
13840         <byte_order_for_code>: Likewise.
13841         * gdbarch.c, gdbarch.h: Regenerated.
13842
13843 2014-01-06  Sasha Smundak  <asmundak@google.com>
13844
13845         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13846
13847 2014-01-06  Tom Tromey  <tromey@redhat.com>
13848
13849         * doublest.c (convert_doublest_to_floatformat): Use const, not
13850         CONST.
13851         * somread.c (som_symtab_read): Likewise.
13852
13853 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13854
13855         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13856         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13857         (gdb_bfd_fopen): Ditto.
13858         (gdb_bfd_openr): Ditto.
13859         (gdb_bfd_openw): Ditto.
13860         (gdb_bfd_openr_iovec): Ditto.
13861         (gdb_bfd_fdopenr): Ditto.
13862         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13863         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13864         with xstrdup.
13865         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13866         with xstrdup.
13867         * symfile-mem.c (symbol_file_add_from_memory): Removed
13868         gdb_bfd_stash_filename.
13869
13870 2014-01-03  Doug Evans  <dje@google.com>
13871
13872         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13873         output.
13874
13875 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13876
13877         Update year range in copyright notice of all files.
13878
13879 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13880
13881         * top.c (print_gdb_version): Set copyright year to 2014.
13882
13883 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13884
13885         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13886
13887 For older changes see ChangeLog-2013.
13888 \f
13889 Local Variables:
13890 mode: change-log
13891 left-margin: 8
13892 fill-column: 74
13893 version-control: never
13894 coding: utf-8
13895 End: