3796a9968e22d49f9b696ef25b6dd0227ac35976
[external/binutils.git] / gdb / ChangeLog
1 2014-10-08  Stan Shebs  <stan@codesourcery.com>
2
3         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
4
5 2014-10-08  Gary Benson  <gbenson@redhat.com>
6
7         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
8
9 2014-10-08  Gary Benson  <gbenson@redhat.com>
10
11         * common/common-defs.h: Include common-exceptions.h.
12         * exceptions.h: Do not include common-exceptions.h.
13
14 2014-10-08  Gary Benson  <gbenson@redhat.com>
15
16         * common/common-defs.h: Include cleanups.h.
17         * common/common-exceptions.c: Do not include cleanups.h.
18         * utils.h: Likewise.
19
20 2014-10-08  Gary Benson  <gbenson@redhat.com>
21
22         * ada-lang.c: Do not include exceptions.h.
23         * ada-valprint.c: Likewise.
24         * amd64-tdep.c: Likewise.
25         * auto-load.c: Likewise.
26         * block.c: Likewise.
27         * break-catch-throw.c: Likewise.
28         * breakpoint.c: Likewise.
29         * btrace.c: Likewise.
30         * c-lang.c: Likewise.
31         * cli/cli-cmds.c: Likewise.
32         * cli/cli-interp.c: Likewise.
33         * cli/cli-script.c: Likewise.
34         * completer.c: Likewise.
35         * corefile.c: Likewise.
36         * corelow.c: Likewise.
37         * cp-abi.c: Likewise.
38         * cp-support.c: Likewise.
39         * cp-valprint.c: Likewise.
40         * darwin-nat.c: Likewise.
41         * dwarf2-frame-tailcall.c: Likewise.
42         * dwarf2-frame.c: Likewise.
43         * dwarf2loc.c: Likewise.
44         * dwarf2read.c: Likewise.
45         * eval.c: Likewise.
46         * event-loop.c: Likewise.
47         * event-top.c: Likewise.
48         * f-valprint.c: Likewise.
49         * frame-unwind.c: Likewise.
50         * frame.c: Likewise.
51         * gdbtypes.c: Likewise.
52         * gnu-v2-abi.c: Likewise.
53         * gnu-v3-abi.c: Likewise.
54         * guile/scm-auto-load.c: Likewise.
55         * guile/scm-breakpoint.c: Likewise.
56         * guile/scm-cmd.c: Likewise.
57         * guile/scm-frame.c: Likewise.
58         * guile/scm-lazy-string.c: Likewise.
59         * guile/scm-param.c: Likewise.
60         * guile/scm-symbol.c: Likewise.
61         * guile/scm-type.c: Likewise.
62         * hppa-hpux-tdep.c: Likewise.
63         * i386-tdep.c: Likewise.
64         * inf-loop.c: Likewise.
65         * infcall.c: Likewise.
66         * infcmd.c: Likewise.
67         * infrun.c: Likewise.
68         * interps.c: Likewise.
69         * interps.h: Likewise.
70         * jit.c: Likewise.
71         * linespec.c: Likewise.
72         * linux-nat.c: Likewise.
73         * linux-thread-db.c: Likewise.
74         * m32r-rom.c: Likewise.
75         * main.c: Likewise.
76         * memory-map.c: Likewise.
77         * mi/mi-cmd-break.c: Likewise.
78         * mi/mi-cmd-stack.c: Likewise.
79         * mi/mi-interp.c: Likewise.
80         * mi/mi-main.c: Likewise.
81         * monitor.c: Likewise.
82         * nto-procfs.c: Likewise.
83         * objc-lang.c: Likewise.
84         * p-valprint.c: Likewise.
85         * parse.c: Likewise.
86         * ppc-linux-tdep.c: Likewise.
87         * printcmd.c: Likewise.
88         * probe.c: Likewise.
89         * python/py-auto-load.c: Likewise.
90         * python/py-breakpoint.c: Likewise.
91         * python/py-cmd.c: Likewise.
92         * python/py-finishbreakpoint.c: Likewise.
93         * python/py-frame.c: Likewise.
94         * python/py-framefilter.c: Likewise.
95         * python/py-function.c: Likewise.
96         * python/py-gdb-readline.c: Likewise.
97         * python/py-inferior.c: Likewise.
98         * python/py-infthread.c: Likewise.
99         * python/py-lazy-string.c: Likewise.
100         * python/py-linetable.c: Likewise.
101         * python/py-param.c: Likewise.
102         * python/py-prettyprint.c: Likewise.
103         * python/py-symbol.c: Likewise.
104         * python/py-type.c: Likewise.
105         * python/py-value.c: Likewise.
106         * python/python-internal.h: Likewise.
107         * python/python.c: Likewise.
108         * record-btrace.c: Likewise.
109         * record-full.c: Likewise.
110         * regcache.c: Likewise.
111         * remote-fileio.c: Likewise.
112         * remote-mips.c: Likewise.
113         * remote.c: Likewise.
114         * rs6000-aix-tdep.c: Likewise.
115         * rs6000-nat.c: Likewise.
116         * skip.c: Likewise.
117         * solib-darwin.c: Likewise.
118         * solib-dsbt.c: Likewise.
119         * solib-frv.c: Likewise.
120         * solib-ia64-hpux.c: Likewise.
121         * solib-spu.c: Likewise.
122         * solib-svr4.c: Likewise.
123         * solib.c: Likewise.
124         * spu-tdep.c: Likewise.
125         * stack.c: Likewise.
126         * stap-probe.c: Likewise.
127         * symfile-mem.c: Likewise.
128         * symmisc.c: Likewise.
129         * target.c: Likewise.
130         * thread.c: Likewise.
131         * top.c: Likewise.
132         * tracepoint.c: Likewise.
133         * tui/tui-interp.c: Likewise.
134         * typeprint.c: Likewise.
135         * utils.c: Likewise.
136         * valarith.c: Likewise.
137         * valops.c: Likewise.
138         * valprint.c: Likewise.
139         * value.c: Likewise.
140         * varobj.c: Likewise.
141         * windows-nat.c: Likewise.
142         * xml-support.c: Likewise.
143
144 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
145
146         * mips-tdep.c (add_offset_16): Rewrite to implement what the
147         name implies.
148         (extended_mips16_next_pc): Update accordingly.
149
150 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
151
152         * mips-tdep.c (mips16_instruction_is_compact_branch): New
153         function.
154         (micromips_instruction_is_compact_branch): Likewise.
155         (mips16_scan_prologue): Terminate scanning upon seeing a branch
156         or a compact jump, reaching a jump delay slot, or seeing a
157         second non-prologue instruction.
158         (micromips_scan_prologue): Also terminate scanning upon seeing a
159         compact branch or jump, or reaching a branch or jump delay slot.
160         (mips32_scan_prologue): Terminate scanning upon reaching a branch
161         or jump delay slot, or seeing a second non-prologue instruction.
162         (mips32_instruction_has_delay_slot): Retain instruction
163         examination code only, update arguments accordingly and move
164         instruction fetch pieces to...
165         (mips32_insn_at_pc_has_delay_slot): ... this new function.
166         (micromips_instruction_has_delay_slot): Likewise and to...
167         (micromips_insn_at_pc_has_delay_slot): ... this new function.
168         (mips16_instruction_has_delay_slot): Likewise and to...
169         (mips16_insn_at_pc_has_delay_slot): ... this new function.
170         (mips_single_step_through_delay): Update accordingly.
171         (mips_adjust_breakpoint_address): Likewise.
172
173 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
174
175         * mips-tdep.c (micromips_instruction_has_delay_slot): When
176         !mustbe32 also return 1 for 32-bit instructions.
177         (mips16_instruction_has_delay_slot): Likewise.  Add an
178         explanatory comment.
179
180 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
181
182         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
183         symbols special.
184
185 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
186
187         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
188         update comments.
189         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
190         for the breakpoint's address.  Don't preinitialize `placed_size'.
191         (insert_bp_location): Set `reqstd_address' rather than
192         `placed_address'.
193         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
194         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
195         address.
196         (bkpt_remove_location): Likewise.
197         (deprecated_insert_raw_breakpoint): Likewise.
198         (deprecated_remove_raw_breakpoint): Likewise.
199         (find_single_step_breakpoint): Likewise.
200         * mem-break.c (default_memory_insert_breakpoint): Use
201         `reqstd_address' for the breakpoint's address.  Don't set
202         `placed_address' or `placed_size' if breakpoint contents couldn't
203         have been determined.
204         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
205         the breakpoint's address.
206         (remote_insert_hw_breakpoint): Likewise.  Don't set
207         `placed_address' or `placed_size' if breakpoint couldn't have been
208         set.
209         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
210         `reqstd_address' for the breakpoint's address.
211         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
212         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
213         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
214         * microblaze-linux-tdep.c
215         (microblaze_linux_memory_remove_breakpoint): Likewise.
216         * monitor.c (monitor_insert_breakpoint): Likewise.
217         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
218         (procfs_insert_hw_breakpoint): Likewise.
219         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
220         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
221         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
222         * remote-mips.c (mips_insert_breakpoint): Likewise.
223         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
224
225 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
226
227         * valops.c (value_assign): Check for bit field assignments
228         before calling architecture-specific register value
229         conversion functions.
230
231 2014-10-03  Pierre Muller  <muller@sourceware.org>
232
233         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
234
235 2014-10-02  Pedro Alves  <palves@redhat.com>
236
237         * breakpoint.c (breakpoints_should_be_inserted_now): Use
238         threads_are_executing.
239         * breakpoint.h (breakpoints_should_be_inserted_now): Add
240         describing comment.
241         * gdbthread.h (threads_are_executing): Declare.
242         (handle_signal_stop) <random signals>: Don't print about the
243         signal here if stopping.
244         (end_stepping_range): Don't notify observers here.
245         (normal_stop): Update the thread list.  If stopped by a random
246         signal or a stepping range ended, notify observers.
247         * thread.c (threads_executing): New global.
248         (init_thread_list): Clear 'threads_executing'.
249         (set_executing): Set or clear 'threads_executing'.
250         (threads_are_executing): New function.
251         (update_threads_executing): New function.
252         (update_thread_list): Use it.
253
254 2014-10-02  Pedro Alves  <palves@redhat.com>
255
256         PR breakpoints/17431
257         * breakpoint.c (update_breakpoints_after_exec): Don't create
258         overlay, longjmp, std terminate nor exception breakpoints here.
259
260 2014-10-02  Pedro Alves  <palves@redhat.com>
261
262         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
263         Adjust comments.
264         * inferior.c (find_inferior_for_program_space): Give preference to
265         the current inferior.
266         * inferior.h (find_inferior_for_program_space): Update comment.
267         * progspace.c (switch_to_program_space_and_thread): Prefer the
268         current inferior if it's bound to the program space requested.  If
269         the inferior found doesn't have a PID yet, don't bother looking up
270         a thread.
271         * progspace.h (switch_to_program_space_and_thread): Adjust
272         comment.
273         * thread.c (any_thread_of_process, any_live_thread_of_process):
274         Give preference to the current thread.
275
276 2014-10-01  Pedro Alves  <palves@redhat.com>
277
278         * breakpoint.c (insert_bp_location): Error out if inserting a
279         software breakpoint at a read-only address.
280         * target.c (memory_xfer_check_region): New function, factored out
281         from ...
282         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
283         ULONGEST.
284         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
285         against the memory region attributes.
286
287 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
288
289         * NEWS: Announce new exit-code field in -list-thread-groups
290         output.
291         * inferior.c (exit_inferior_1): Don't clear exit code.
292         (inferior_appeared): Clear exit code.
293         * mi/mi-main.c (print_one_inferior): Add printing of the exit
294         code.
295
296 2014-10-01  Pedro Alves  <palves@redhat.com>
297
298         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
299         GENERATED" along with emacs/vi read-only markers.
300         * regformats/aarch64.dat: Regenerate.
301         * regformats/arm-with-iwmmxt.dat: Regenerate.
302         * regformats/arm-with-neon.dat: Regenerate.
303         * regformats/arm-with-vfpv2.dat: Regenerate.
304         * regformats/arm-with-vfpv3.dat: Regenerate.
305         * regformats/i386/amd64-avx-linux.dat: Regenerate.
306         * regformats/i386/amd64-avx.dat: Regenerate.
307         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
308         * regformats/i386/amd64-avx512.dat: Regenerate.
309         * regformats/i386/amd64-linux.dat: Regenerate.
310         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
311         * regformats/i386/amd64-mpx.dat: Regenerate.
312         * regformats/i386/amd64.dat: Regenerate.
313         * regformats/i386/i386-avx-linux.dat: Regenerate.
314         * regformats/i386/i386-avx.dat: Regenerate.
315         * regformats/i386/i386-avx512-linux.dat: Regenerate.
316         * regformats/i386/i386-avx512.dat: Regenerate.
317         * regformats/i386/i386-linux.dat: Regenerate.
318         * regformats/i386/i386-mmx-linux.dat: Regenerate.
319         * regformats/i386/i386-mmx.dat: Regenerate.
320         * regformats/i386/i386-mpx-linux.dat: Regenerate.
321         * regformats/i386/i386-mpx.dat: Regenerate.
322         * regformats/i386/i386.dat: Regenerate.
323         * regformats/i386/x32-avx-linux.dat: Regenerate.
324         * regformats/i386/x32-avx.dat: Regenerate.
325         * regformats/i386/x32-avx512-linux.dat: Regenerate.
326         * regformats/i386/x32-avx512.dat: Regenerate.
327         * regformats/i386/x32-linux.dat: Regenerate.
328         * regformats/i386/x32.dat: Regenerate.
329         * regformats/microblaze-with-stack-protect.dat: Regenerate.
330         * regformats/mips-dsp-linux.dat: Regenerate.
331         * regformats/mips-linux.dat: Regenerate.
332         * regformats/mips64-dsp-linux.dat: Regenerate.
333         * regformats/mips64-linux.dat: Regenerate.
334         * regformats/nios2-linux.dat: Regenerate.
335         * regformats/rs6000/powerpc-32.dat: Regenerate.
336         * regformats/rs6000/powerpc-32l.dat: Regenerate.
337         * regformats/rs6000/powerpc-64l.dat: Regenerate.
338         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
339         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
340         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
341         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
342         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
343         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
344         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
345         * regformats/s390-linux32.dat: Regenerate.
346         * regformats/s390-linux32v1.dat: Regenerate.
347         * regformats/s390-linux32v2.dat: Regenerate.
348         * regformats/s390-linux64.dat: Regenerate.
349         * regformats/s390-linux64v1.dat: Regenerate.
350         * regformats/s390-linux64v2.dat: Regenerate.
351         * regformats/s390-te-linux64.dat: Regenerate.
352         * regformats/s390x-linux64.dat: Regenerate.
353         * regformats/s390x-linux64v1.dat: Regenerate.
354         * regformats/s390x-linux64v2.dat: Regenerate.
355         * regformats/s390x-te-linux64.dat: Regenerate.
356         * regformats/tic6x-c62x-linux.dat: Regenerate.
357         * regformats/tic6x-c62x.dat: Regenerate.
358         * regformats/tic6x-c64x-linux.dat: Regenerate.
359         * regformats/tic6x-c64x.dat: Regenerate.
360         * regformats/tic6x-c64xp-linux.dat: Regenerate.
361         * regformats/tic6x-c64xp.dat: Regenerate.
362
363 2014-10-01  Pedro Alves  <palves@redhat.com>
364
365         * features/Makefile: Update comments.
366         (XMLTOC): List all xml files we build C files from.
367         (clean-cfiles): New rule.
368
369 2014-10-01  Pedro Alves  <palves@redhat.com>
370
371         * features/i386/amd64-avx512-linux.c: Regenerate.
372         * features/i386/amd64-avx512.c: Regenerate.
373         * features/i386/x32-avx512-linux.c: Regenerate.
374         * features/i386/x32-avx512.c: Regenerate.
375
376 2014-10-01  Pedro Alves  <palves@redhat.com>
377
378         * features/Makefile (WHICH): Remove arm-with-m,
379         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
380
381 2014-10-01  Pedro Alves  <palves@redhat.com>
382
383         * features/Makefile (clean): New rule.
384
385 2014-10-01  Pedro Alves  <palves@redhat.com>
386
387         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
388         (zmm14h): Add missing end quotes.
389
390 2014-10-01  Pedro Alves  <palves@redhat.com>
391
392         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
393         * features/aarch64.c: Regenerate.
394
395 2014-09-30  Don Breazeal  <donb@codesourcery.com>
396
397         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
398         code so as to work with follow_fork_inferior.
399         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
400         (inf_ttrace_create_inferior): Remove reference to
401         inf_ttrace_vfork_ppid.
402         (inf_ttrace_attach): Ditto.
403         (inf_ttrace_detach): Ditto.
404         (inf_ttrace_kill): Use current_inferior instead of
405         inf_ttrace_vfork_ppid.
406         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
407         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
408         inferior away from the parent.
409         * infrun.c (follow_fork): Call follow_fork_inferior instead of
410         target_follow_fork.
411         (follow_fork_inferior): New function.
412         (follow_inferior_reset_breakpoints): Make function static.
413         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
414         * linux-nat.c (linux_child_follow_fork): Move target-independent
415         code to infrun.c:follow_fork_inferior.
416
417 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
418
419         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
420         * gdbarch.c: Regenerate.
421         * gdbarch.h: Likewise.
422         * corelow.c (sniff_core_bfd): Drop presence check for deleted
423         gdbarch method 'regset_from_core_section'.
424         (get_core_register_section): Remove handling for the case that
425         regset == NULL and regset_from_core_section is defined.
426         (get_core_registers): Drop check for deleted method.
427         * procfs.c (procfs_do_thread_registers): Adjust comment.
428
429 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
430
431         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
432         (linux_nat_make_corefile_notes): Remove.
433         (linux_target_install_ops): Do not set target method
434         'make_corefile_notes'.
435         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
436         Remove field.
437         (linux_corefile_thread_callback): Instead of args->collect, call
438         linux_collect_thread_registers.
439         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
440         NULL unless there is a regset iterator.
441         (linux_make_corefile_notes_1): Remove.
442         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
443         by linux_make_corefile_notes.
444         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
445
446 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
447
448         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
449         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
450         Remove.
451         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
452
453 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
454
455         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
456         (xtensa_iterate_over_regset_sections): New.
457         (xtensa_gdbarch_init): Adjust gdbarch initialization.
458
459 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
460
461         * vax-tdep.c (vax_regset_from_core_section): Remove.
462         (vax_iterate_over_regset_sections): New.
463         (vax_gdbarch_init): Adjust gdbarch initialization.
464
465 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
466
467         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
468         (tilegx_regset_from_core_section): Remove.
469         (tilegx_iterate_over_regset_sections): New.
470         (tilegx_linux_init_abi): Adjust gdbarch initialization.
471
472 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
473
474         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
475         (sparc_iterate_over_regset_sections): New.
476         (sparc32_gdbarch_init): Adjust gdbarch initialization.
477         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
478         targets.
479         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
480         (sparc64fbsd_init_abi): Call fbsd_init_abi.
481         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
482         target method 'make_corefile_notes'.
483
484 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
485
486         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
487         'sizeof_gregset' and 'sizeof_fpregset'.
488         * sh-tdep.c (sh_regset_from_core_section): Remove.
489         (sh_iterate_over_regset_sections): New.
490         (sh_gdbarch_init): Adjust gdbarch initialization.
491         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
492         sizeof_fpregset.
493         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
494         'sizeof_gregset'.
495
496 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
497
498         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
499         (score7_linux_iterate_over_regset_sections): New.
500         (score_gdbarch_init): Adjust gdbarch initialization.
501
502 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
503
504         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
505         FreeBSD targets.
506         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
507         method 'make_corefile_notes'.
508         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
509         (ppcfbsd_regset_from_core_section): Remove.
510         (ppcfbsd_iterate_over_regset_sections): New.
511         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
512         initialization.
513         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
514         (ppcnbsd_iterate_over_regset_sections): New.
515         (ppcnbsd_init_abi): Adjust.
516         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
517         (ppcobsd_iterate_over_regset_sections): New.
518         (ppcobsd_init_abi): Adjust.
519         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
520         (rs6000_aix_iterate_over_regset_sections): New.
521         (rs6000_aix_init_osabi): Adjust.
522
523 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
524
525         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
526         (nios2_regset_from_core_section): Remove.
527         (nios2_iterate_over_regset_sections): New.
528         (nios2_linux_init_abi): Adjust gdbarch initialization.
529
530 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
531
532         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
533         (am33_iterate_over_regset_sections): New.
534         (am33_linux_init_osabi): Adjust gdbarch initialization.
535
536 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
537
538         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
539         (mips_linux_iterate_over_regset_sections): New.
540         (mips_linux_init_abi): Adjust gdbarch initialization.
541         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
542         (mips64obsd_iterate_over_regset_sections): New.
543         (mips64obsd_init_abi): Adjust.
544         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
545         (mipsnbsd_iterate_over_regset_sections): New.
546         (mipsnbsd_init_abi): Adjust.
547
548 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
549
550         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
551         (m88k_iterate_over_regset_sections): New.
552         (m88k_gdbarch_init): Adjust gdbarch initialization.
553
554 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
555
556         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
557         (ia64_linux_iterate_over_regset_sections): New.
558         (ia64_linux_init_abi): Adjust gdbarch initialization.
559
560 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
561
562         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
563         (m68kbsd_iterate_over_regset_sections): New.
564         (m68kbsd_init_abi): Adjust gdbarch initialization.
565         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
566         (m68k_linux_iterate_over_regset_sections): New.
567         (m68k_linux_init_abi): Adjust gdbarch initialization.
568
569 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
570
571         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
572         (m32r_linux_regset_from_core_section): Remove.
573         (m32r_linux_iterate_over_regset_sections): New.
574         (m32r_linux_init_abi): Adjust gdbarch initialization.
575
576 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
577
578         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
579         (amd64obsd_iterate_over_regset_sections): New.
580         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
581         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
582         Remove.
583         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
584         regset_from_core_section initialization.
585         * i386-tdep.c (i386_regset_from_core_section): Remove.
586         (i386_iterate_over_regset_sections): New.
587         (i386_gdbarch_init): Adjust gdbarch initialization.
588         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
589         (i386_iterate_over_regset_sections): New prototype.
590         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
591         Remove.
592         (i386obsd_aout_iterate_over_regset_sections): New.
593         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
594         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
595         targets.
596         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
597         (amd64fbsd_init_abi): Call fbsd_init_abi.
598         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
599         (i386fbsd4_init_abi): Call fbsd_init_abi.
600         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
601         target method 'make_corefile_notes'.
602         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
603
604 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
605
606         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
607         (hppa_hpux_iterate_over_regset_sections): New.
608         (hppa_hpux_init_abi): Adjust gdbarch initialization.
609         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
610         (hppa_linux_iterate_over_regset_sections): New.
611         (hppa_linux_init_abi): Adjust.
612         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
613         (hppanbsd_iterate_over_regset_sections): New.
614         (hppanbsd_init_abi): Adjust.
615         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
616         (hppaobsd_iterate_over_regset_sections): New.
617         (hppaobsd_init_abi): Adjust.
618
619 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
620
621         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
622         (frv_linux_iterate_over_regset_sections): New.
623         (frv_linux_init_abi): Adjust gdbarch initialization.
624
625 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
626
627         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
628         (armbsd_iterate_over_regset_sections): New prototype.
629         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
630         (armbsd_iterate_over_regset_sections): New.
631         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
632         initialization.
633
634 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
635
636         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
637         (alpha_linux_iterate_over_regset_sections): New.
638         (alpha_linux_init_abi): Adjust gdbarch initialization.
639         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
640         prototype.
641         (alphanbsd_iterate_over_regset_sections): New prototype.
642
643 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
644
645         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
646         Remove.
647         (aarch64_linux_iterate_over_regset_sections): New.
648         (aarch64_linux_init_abi): Adjust gdbarch initialization.
649
650 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
651
652         * fbsd-tdep.c: New file.
653         * fbsd-tdep.h: New file.
654         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
655         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
656         (ALLDEPFILES): Add fbsd-tdep.c.
657
658 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
659
660         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
661         parameter.
662         * gdbarch.h: Regenerate.
663         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
664         iterator.
665         (get_core_register_section): Add parameter 'regset' and use it, if
666         set.  Add parameter 'min_size' and verify the bfd section size
667         against it.
668         (get_core_registers_cb): Add parameter 'regset' and pass it to
669         get_core_register section.  For the "standard" register sections
670         ".reg" and ".reg2", set an appropriate default for human_name.
671         (get_core_registers): Don't abort when the gdbarch has an iterator
672         but no regset_from_core_section.  Add NULL/0 for parameters
673         'regset'/'min_size' in calls to get_core_register_section.
674         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
675         'regset' and use it instead of calling the
676         regset_from_core_section gdbarch method.
677         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
678         * i386-tdep.c (i386_supply_xstateregset)
679         (i386_collect_xstateregset, i386_xstateregset): Moved to
680         i386-linux-tdep.c.
681         (i386_regset_from_core_section): Drop handling for .reg-xfp and
682         .reg-xstate.
683         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
684         core file support only if the regset iterator hasn't been set.
685         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
686         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
687         Moved from i386-tdep.c and renamed to *_linux*.
688         (i386_linux_iterate_over_regset_sections): Add regset parameter to
689         each callback invocation.  Allow any .reg-xstate size when reading
690         from a core file.
691         * amd64-tdep.c (amd64_supply_xstateregset)
692         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
693         amd64-linux-tdep.c.
694         (amd64_regset_from_core_section): Remove.
695         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
696         install an amd64-specific regset_from_core_section gdbarch method.
697         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
698         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
699         Moved from amd64-tdep.c and renamed to *_linux*.
700         (amd64_linux_iterate_over_regset_sections): Add regset parameter
701         to each callback invocation.  Allow any .reg-xstate size when
702         reading from a core file.
703         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
704         (arm_linux_iterate_over_regset_sections): Add regset parameter to
705         each callback invocation.
706         (arm_linux_init_abi): No longer set the regset_from_core_section
707         gdbarch method.
708         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
709         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
710         each callback invocation.
711         (ppc_linux_init_abi): No longer set the regset_from_core_section
712         gdbarch method.
713         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
714         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
715         (s390_regset_from_core_section): Remove.
716         (s390_iterate_over_regset_sections): Add regset parameter to each
717         callback invocation.
718         (s390_gdbarch_init): No longer set the regset_from_core_section
719         gdbarch method.  Drop initialization of deleted tdep fields.
720
721 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
722
723         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
724         (amd64_linux_iterate_over_regset_sections): New.
725         (amd64_linux_init_abi_common): Don't install the regset section
726         list, but the new iterator in gdbarch.
727         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
728         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
729         (arm_linux_iterate_over_regset_sections): ...here.  New function.
730         (arm_linux_init_abi): Set iterator instead of section list.
731         * corelow.c (get_core_registers_cb): New function, logic moved
732         from...
733         (get_core_registers): ...loop body here.  Use new iterator method
734         instead of walking through the regset section list.
735         * gdbarch.sh: Remove 'core_regset_sections'.  New method
736         'iterate_over_regset_sections'.  New typedef
737         'iterate_over_regset_sections_cb'.
738         * gdbarch.c: Regenerate.
739         * gdbarch.h: Likewise.
740         * i386-linux-tdep.c (i386_linux_regset_sections)
741         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
742         Remove.
743         (i386_linux_iterate_over_regset_sections): New.
744         (i386_linux_init_abi): Don't choose a regset section list, but
745         install new iterator in gdbarch.
746         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
747         (linux_collect_regset_section_cb): New function, logic moved
748         from...
749         (linux_collect_thread_registers): ...loop body here.  Use iterator
750         method instead of walking through list.
751         (linux_make_corefile_notes_1): Check for presence of iterator
752         method instead of regset section list.
753         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
754         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
755         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
756         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
757         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
758         (ppc_linux_init_abi): Don't choose from above regset section
759         lists, but install new iterator in gdbarch.
760         * regset.h (struct core_regset_section): Remove.
761         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
762         have_linux_v1, have_linux_v2, and have_tdb.
763         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
764         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
765         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
766         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
767         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
768         (s390_iterate_over_regset_sections): ...here.  New function.  Use
769         new tdep fields.
770         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
771         regset section lists, but install new iterator.
772
773 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
774
775         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
776
777 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
778
779         * progspace.c (print_program_space): Don't prune program spaces
780         before printing them.
781
782 2014-09-25  Pedro Alves  <palves@redhat.com>
783
784         * infrun.c (user_visible_resume_ptid): Don't check
785         singlestep_breakpoints_inserted_p.
786
787 2014-09-25  Pedro Alves  <palves@redhat.com>
788
789         * breakpoint.c (should_be_inserted): Add debug output.
790
791 2014-09-25  Pedro Alves  <palves@redhat.com>
792
793         * infrun.c (stepping_past_instruction_at)
794         (clear_exit_convenience_vars): Point at infrun.h instead of
795         inferior.h.
796         (handle_signal_stop): Fix typo.
797
798 2014-09-24  Yao Qi  <yao@codesourcery.com>
799
800         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
801         bitmask.
802
803 2014-09-22  Gary Benson  <gbenson@redhat.com>
804
805         * target.c (target_stop): Updated comment.
806
807 2014-09-22  Gary Benson  <gbenson@redhat.com>
808
809         * target/target.h (target_stop_ptid): Renamed as...
810         (target_stop_and_wait): New function.  Updated comment.
811         All uses updated.
812         (target_continue_ptid): Renamed as...
813         (target_continue_no_signal): New function.  Updated comment.
814         All uses updated.
815
816 2014-09-22  Pedro Alves  <palves@redhat.com>
817
818         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
819         and "auto" merged.
820         * breakpoint.c (enum ugll_insert_mode): New enum.
821         (always_inserted_mode): Now a plain boolean.
822         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
823         (breakpoints_always_inserted_mode): Delete.
824         (breakpoints_should_be_inserted_now): New function.
825         (insert_breakpoints): Pass UGLL_INSERT to
826         update_global_location_list instead of calling
827         insert_breakpoint_locations manually.
828         (create_solib_event_breakpoint_1): New, factored out from ...
829         (create_solib_event_breakpoint): ... this.
830         (create_and_insert_solib_event_breakpoint): Use
831         create_solib_event_breakpoint_1 instead of calling
832         insert_breakpoint_locations manually.
833         (update_global_location_list): Change parameter type from boolean
834         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
835         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
836         (update_global_location_list_nothrow): Change parameter type from
837         boolean to enum ugll_insert_mode.
838         (_initialize_breakpoint): "breakpoint always-inserted" option is
839         now a boolean command.  Update help text.
840         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
841         (breakpoints_should_be_inserted_now): New declaration.
842         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
843         Remove breakpoints_always_inserted_mode check.
844         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
845         * remote.c (remote_start_remote): Likewise.
846
847 2014-09-22  Pedro Alves  <palves@redhat.com>
848
849         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
850         (insert_breakpoints): Don't call insert_breakpoint_locations here.
851         Instead, pass UGLL_INSERT to update_global_location_list.
852         (update_global_location_list): Change parameter type from boolean
853         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
854         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
855         (create_solib_event_breakpoint_1): New, factored out from ...
856         (create_solib_event_breakpoint): ... this.
857         (create_and_insert_solib_event_breakpoint): Use
858         create_solib_event_breakpoint_1 instead of calling
859         insert_breakpoint_locations manually.
860         (update_global_location_list): Handle UGLL_INSERT.
861
862 2014-09-22  Pedro Alves  <palves@redhat.com>
863
864         * breakpoint.c (enum ugll_insert_mode): New enum.
865         (update_global_location_list)
866         (update_global_location_list_nothrow): Change parameter type from
867         boolean to enum ugll_insert_mode.  All callers adjusted.
868
869 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
870
871         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
872         SystemTap support in GDB.
873
874 2014-09-19  Don Breazeal  <donb@codesourcery.com>
875
876         * linux-nat.c (linux_handle_extended_wait): Call
877         linux_ptrace_get_extended_event.
878         (wait_lwp): Call linux_is_extended_waitstatus.
879         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
880         and linux_is_extended_waitstatus.
881         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
882         linux_ptrace_get_extended_event.
883         (linux_ptrace_get_extended_event): New function.
884         (linux_is_extended_waitstatus): New function.
885         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
886         (linux_is_extended_waitstatus): New declarations.
887
888 2014-09-19  Yao Qi  <yao@codesourcery.com>
889
890         * dwarf2read.c (dwarf_decode_lines): Update declaration.
891         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
892         comments.  Callers update.
893         (dwarf_decode_lines): Likewise.
894         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
895         comments.  Skip the line table if  'lowpc' is greater than
896         'address'.  Don't check
897         dwarf2_per_objfile->has_section_at_zero.
898
899 2014-09-18  Doug Evans  <dje@google.com>
900
901         * NEWS: Mention new "producer" attribute of gdb.Symtab.
902         * python/py-symtab.c (stpy_get_producer): New function.
903         (symtab_object_getset): Add "producer" attribute.
904
905 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
906
907         PR gdb/17384
908         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
909         (do_captured_read_memory_integer): Remove.
910         (safe_read_memory_integer): Use target_read_memory directly instead
911         of catching errors in do_captured_read_memory_integer.
912
913 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
914
915         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
916         not gdb/doc.
917
918 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
919
920         * objc-lang.c (find_implementation_from_class): Remove dead code.
921
922 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
923
924         PR cli/7233
925         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
926         "fprintf_unfiltered (gdb_stdlog...)".
927
928 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
929
930         PR breakpoints/12526
931         * breakpoint.h (struct watchpoint): New fields val_bitpos and
932         val_bitsize.
933         * breakpoint.c (watch_command_1): Use these fields to retain
934         bitfield information.
935         (extract_bitfield_from_watchpoint_value): New function.
936         (watchpoint_check): Use it.
937         (update_watchpoint): Use it.  Optimize the address and length of a
938         HW watchpoint pointing to a bitfield.
939         * value.h (unpack_value_bitfield): New prototype.
940         * value.c (unpack_value_bitfield): Make extern.
941
942 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
943
944         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
945         x86-dregs.o.
946         * gnu-nat.c (inf_threads): New function.
947         * gnu-nat.h (inf_threads_ftype): New typedef.
948         (inf_threads): New declaration.
949         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
950         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
951         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
952         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
953         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
954         (i386_gnu_dr_get_control): New functions.
955         (reg_addr): New structure.
956         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
957         i386 debugging register hooks.
958         * NEWS: Mention this.
959
960 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
961
962         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
963         vector data transfer instructions.
964         (arm_record_coproc_data_proc): Updated.
965
966 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
967
968         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
969         arm_record_exreg_ld_st_insn.
970         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
971         load/store insns.
972
973 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
974
975         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
976         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
977         processing instructions.
978
979 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
980
981         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
982         for advance SIMD struct ld/st insn.
983         (thumb2_record_decode_insn_handler): Replace stub handler with
984         thumb2_record_asimd_struct_ld_st.
985
986 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
987
988         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
989         for asimd, vfp and coprocessor insns.
990         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
991         and coprocessor insns.
992         (thumb2_record_coproc_insn): New function.
993         (thumb2_record_decode_insn_handler): Update coprocessor insns record
994         handlers.
995         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
996         opcode 110 insns.
997
998 2014-09-13  Doug Evans  <xdje42@gmail.com>
999
1000         * NEWS: Mention new "queue-signal" command.
1001         * infcmd.c (queue_signal_command): New function.
1002         (_initialize_infcmd): Add new queue-signal command.
1003
1004 2014-09-13  Doug Evans  <xdje42@gmail.com>
1005
1006         * linux-nat.c (wait_lwp): Add debugging printf.
1007         (linux_nat_wait_1): Ditto.
1008
1009 2014-09-12  Pedro Alves  <palves@redhat.com>
1010
1011         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1012         (create_and_insert_solib_event_breakpoint): New functions.
1013         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1014         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1015         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1016         (remove_dbx_link_breakpoint): Delete function.
1017         (insert_dbx_link_bpt_in_file): Use
1018         create_and_insert_solib_event_breakpoint instead of
1019         deprecated_insert_raw_breakpoint.
1020         (procfs_wait): Don't check whether we hit __dbx_link here.
1021         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1022         here.
1023         * solib-irix.c (base_breakpoint): Delete global.
1024         (disable_break): Delete function.
1025         (enable_break): Use create_solib_event_breakpoint
1026         instead of deprecated_insert_raw_breakpoint.
1027         (irix_solib_handle_event): New function.
1028         (irix_solib_create_inferior_hook): Don't run the target or disable
1029         the mapping-complete breakpoint here.
1030         (_initialize_irix_solib): Install irix_solib_handle_event as
1031         so_ops->handle_event hook.
1032
1033 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1034             Ulrich Weigand  <uweigand@de.ibm.com>
1035
1036         PR tdep/17379
1037         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1038         instead of read_memory_unsigned_integer.
1039
1040 2014-09-12  Gary Benson  <gbenson@redhat.com>
1041
1042         * nat/linux-waitpid.c: Include common-defs.h.
1043         [GDBSERVER]: Add FIXME comment.
1044         [!GDBSERVER]: Don't include defs.h or signal.h.
1045         (linux_debug) [!GDBSERVER]: Remove empty block.
1046
1047 2014-09-12  Gary Benson  <gbenson@redhat.com>
1048
1049         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1050         Don't include defs.h or server.h.
1051
1052 2014-09-12  Gary Benson  <gbenson@redhat.com>
1053
1054         * nat/linux-btrace.c: Include common-defs.h.
1055         Don't include defs.h, server.h or gdbthread.h.
1056         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1057
1058 2014-09-12  Gary Benson  <gbenson@redhat.com>
1059
1060         * common/agent.c: Include common-defs.h.
1061         Don't include defs.h or server.h.
1062         * common/buffer.c: Likewise.
1063         * common/common-debug.c: Likewise.
1064         * common/common-utils.c: Likewise.
1065         * common/errors.c: Likewise.
1066         * common/filestuff.c: Likewise.
1067         * common/format.c: Likewise.
1068         * common/gdb_vecs.c: Likewise.
1069         * common/print-utils.c: Likewise.
1070         * common/ptid.c: Likewise.
1071         * common/rsp-low.c: Likewise.
1072         * common/signals.c: Likewise.
1073         * common/vec.c: Likewise.
1074         * common/xml-utils.c: Likewise.
1075         * nat/linux-osdata.c: Likewise.
1076         * nat/linux-procfs.c: Likewise.
1077         * nat/linux-ptrace.c: Likewise.
1078         * nat/mips-linux-watch.c: Likewise.
1079         * target/waitstatus.c: Likewise.
1080
1081 2014-09-12  Tom Tromey  <tromey@redhat.com>
1082             Gary Benson  <gbenson@redhat.com>
1083
1084         * common/common-regcache.h: New file.
1085         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1086         * regcache.h: Include common-regcache.h.
1087         (regcache_read_pc): Don't declare.
1088         * regcache.c (get_thread_regcache_for_ptid): New function.
1089         * nat/linux-btrace.c: Don't include regcache.h.
1090         Include common-regcache.h.
1091         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1092
1093 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1094
1095         * regcache.h (struct regset): Declare.
1096
1097 2014-09-11  Pedro Alves  <palves@redhat.com>
1098
1099         PR gdb/17347
1100         * main.c: Include "infrun.h".
1101         (catch_command_errors, catch_command_errors_const): Wait for the
1102         foreground command to complete.
1103         * top.c (maybe_wait_sync_command_done): New function, factored out
1104         from ...
1105         (maybe_wait_sync_command_done): ... here.
1106         * top.h (maybe_wait_sync_command_done): New declaration.
1107
1108 2014-09-11  Tom Tromey  <tromey@redhat.com>
1109             Gary Benson  <gbenson@redhat.com>
1110
1111         * common/symbol.h: New file.
1112         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1113         * minsyms.c (find_minimal_symbol_address): New function.
1114         * common/agent.c: Include common/symbol.h.
1115         [!GDBSERVER]: Don't include objfiles.h.
1116         (agent_look_up_symbols): Use find_minimal_symbol_address.
1117
1118 2014-09-11  Gary Benson  <gbenson@redhat.com>
1119
1120         * target/target.h (target_stop_ptid, target_continue_ptid):
1121         Declare.
1122         * target.c (target_stop_ptid, target_continue_ptid): New
1123         functions.
1124         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1125         (agent_run_command): Always use target_stop_ptid and
1126         target_continue_ptid.
1127
1128 2014-09-11  Tom Tromey  <tromey@redhat.com>
1129             Gary Benson  <gbenson@redhat.com>
1130
1131         * target/target.h: New file.
1132         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1133         * target.h: Include target/target.h.
1134         (target_read_memory, target_write_memory): Don't declare.
1135         * target.c (target_read_uint32): New function.
1136         * common/agent.c: Include target/target.h.
1137         [!GDBSERVER]: Don't include target.h.
1138         (helper_thread_id): Type changed to uint32_t.
1139         (agent_get_helper_thread_id): Use target_read_uint32.
1140         (agent_run_command): Always use target_read_memory and
1141         target_write_memory.
1142         (agent_capability): Type changed to uint32_t.
1143         (agent_capability_check): Use target_read_uint32.
1144
1145 2014-09-11  Gary Benson  <gbenson@redhat.com>
1146
1147         * common/common-debug.h (show_debug_regs): Declare.
1148         * common/common-debug.c (show_debug_regs): Define.
1149         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
1150         all uses with show_debug_regs.  Replace all uses that considered
1151         debug_hw_points as a multi-value integer with straight boolean
1152         uses.
1153         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
1154         with show_debug_regs.
1155         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
1156         all uses with show_debug_regs.
1157         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
1158         uses with show_debug_regs.
1159
1160 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1161
1162         * findvar.c (address_from_register): Handle targets requiring
1163         a special conversion routine even for plain pointer types.
1164
1165 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1166
1167         * rs6000-nat.c (exec_one_dummy_insn): Remove.
1168         (store_register): Do not call exec_one_dummy_insn.
1169
1170 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1171
1172         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1173         dereference it first.  Use value_enclosing_type instead of
1174         value_type.
1175         (ada_array_length): Likewise.
1176
1177 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1178
1179         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1180         Adjust function implementation and documentation accordingly.
1181         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1182         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1183         Update call to ada_value_ptr_subscript.
1184
1185 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1186
1187         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1188         instead of VAL's type.
1189
1190 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1191
1192         * amd64-linux-nat.c: Add <sys/uio.h> #include.
1193
1194 2014-09-09  Doug Evans  <xdje42@gmail.com>
1195
1196         PR guile/17367
1197         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1198         last parameter to pkg-config, not first.
1199         * configure.ac: Pass --with-guile provided pkg-config path to
1200         GDB_GUILE_PROGRAM_NAMES.
1201         * configure: Regenerate.
1202
1203 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1204
1205         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1206         Bertazi".
1207
1208 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1209
1210         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1211         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1212         the list of sections determining GDB_OSABI_IRIX.
1213
1214 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1215
1216         * MAINTAINERS (Write After Approval): Add "James Hogan".
1217
1218 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1219
1220         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1221
1222 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
1223
1224         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1225
1226 2014-09-08  Doug Evans  <xdje42@gmail.com>
1227
1228         PR 17247
1229         * guile.c: #include <signal.h>.
1230         (_initialize_guile): Block SIGCHLD while initializing Guile.
1231
1232         Replaces the following, which is reverted.
1233
1234         2014-07-26  Doug Evans  <xdje42@gmail.com>
1235
1236         PR 17185
1237         * configure.ac: Add check for header gc/gc.h.
1238         Add check for function setenv.
1239         * configure: Regenerate.
1240         * config.in: Regenerate.
1241         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1242
1243 2014-09-08  Doug Evans  <xdje42@gmail.com>
1244
1245         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1246         with named constant.  Fix style of pointer comparison.
1247         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1248
1249 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1250
1251         PR gdb/17035
1252         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1253         decide whether we display the command on "show user".
1254         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1255         printing command name.
1256         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1257         * cli/cli-decode.c (cli_user_command_p): Create helper function
1258         to verify whether cmd_list_element is a user-defined command.
1259
1260 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1261
1262         PR python/17355
1263         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1264         Fix goto out of TRY_CATCH.
1265
1266 2014-09-06  Doug Evans  <xdje42@gmail.com>
1267             Tom Tromey  <tromey@redhat.com>
1268
1269         PR 15276
1270         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1271         $_any_caller_matches.
1272         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1273         * python/lib/gdb/function/caller_is.py: New file.
1274
1275 2014-09-06  Doug Evans  <xdje42@gmail.com>
1276
1277         * infcmd.c (program_info): Fix typo.
1278
1279 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1280
1281         PR gdb/17235
1282         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1283         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1284         subexpressions on SDT probes.
1285
1286 2014-09-04  Pedro Alves  <palves@redhat.com>
1287
1288         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1289         the input is only one character long.
1290
1291 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1292
1293         PR fortran/17237
1294         * f-valprint.c (f_val_print): Specify the correct print option to
1295         use when printing integer values.
1296
1297 2014-09-04  Gary Benson  <gbenson@redhat.com>
1298
1299         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1300         Remove code to cope with LWPs wrapped as PIDs.
1301         Add assertions to ensure no wrapped LWPs are passed.
1302
1303 2014-09-04  Pedro Alves  <palves@redhat.com>
1304
1305         * value.c (value_ranges_copy_adjusted): New function, factored out
1306         from ...
1307         (value_contents_copy_raw): ... here.
1308         (unpack_value_bits_as_long_1): Rename back to ...
1309         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1310         'result' parameters.  Change return type to LONGEST.
1311         (unpack_value_bits_as_long): Delete.
1312         (unpack_value_field_as_long_1): Delete.
1313         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1314         (unpack_value_bitfield): New function.
1315         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1316         (value_fetch_lazy): Use unpack_value_bitfield.
1317         * value.h (unpack_value_bits_as_long): Delete declaration.
1318
1319 2014-09-03  Sasha Smundak  <asmundak@google.com>
1320
1321         * python/py-frame.c (frapy_read_register): New function.
1322
1323 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1324
1325         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1326         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1327
1328 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1329
1330         PR python/16699
1331         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1332         function.
1333         (add_cmd): Set "completer_handle_brkchars" to NULL.
1334         * cli/cli-decode.h (struct cmd_list_element)
1335         <completer_handle_brkchars>: New field.
1336         * command.h (completer_ftype_void): New typedef.
1337         (set_cmd_completer_handle_brkchars): New prototype.
1338         * completer.c (set_gdb_completion_word_break_characters): New
1339         function.
1340         (complete_line_internal): Call "completer_handle_brkchars"
1341         callback from command.
1342         * completer.h: Include "command.h".
1343         (set_gdb_completion_word_break_characters): New prototype.
1344         * python/py-cmd.c (cmdpy_completer_helper): New function.
1345         (cmdpy_completer_handle_brkchars): New function.
1346         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1347         (cmdpy_init): Set completer_handle_brkchars to
1348         cmdpy_completer_handle_brkchars.
1349
1350 2014-09-03  Gary Benson  <gbenson@redhat.com>
1351
1352         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1353         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1354         Loop conditions changed to equivalent form.
1355         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1356         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1357         ALL_DEBUG_ADDRESS_REGISTERS.
1358
1359 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1360
1361         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1362         description fix.
1363
1364 2014-09-02  Doug Evans  <dje@google.com>
1365
1366         * typeprint.c (find_global_typedef): Fix comment.
1367
1368 2014-09-02  Gary Benson  <gbenson@redhat.com>
1369
1370         * i386-nat.h: Renamed as...
1371         * x86-nat.h: New file.  All type, function and variable name
1372         prefixes changed from "i386_" to "x86_".  All references updated.
1373         * i386-nat.c: Renamed as...
1374         * x86-nat.c: New file.  All type, function and variable name
1375         prefixes changed from "i386_" to "x86_".  All references updated.
1376         * common/i386-xstate.h: Renamed as...
1377         * common/x86-xstate.h: New file.  All type, function and variable
1378         name prefixes changed from "i386_" to "x86_".  All references
1379         updated.
1380         * nat/i386-cpuid.h: Renamed as...
1381         * nat/x86-cpuid.h: New file.  All type, function and variable name
1382         prefixes changed from "i386_" to "x86_".  All references updated.
1383         * nat/i386-gcc-cpuid.h: Renamed as...
1384         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1385         name prefixes changed from "i386_" to "x86_".  All references
1386         updated.
1387         * nat/i386-dregs.h: Renamed as...
1388         * nat/x86-dregs.h: New file.  All type, function and variable name
1389         prefixes changed from "i386_" to "x86_".  All references updated.
1390         * nat/i386-dregs.c: Renamed as...
1391         * nat/x86-dregs.c: New file.  All type, function and variable name
1392         prefixes changed from "i386_" to "x86_".  All references updated.
1393
1394 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1395
1396         * varobj.c (_initialize_varobj): Move to the end of file.
1397
1398 2014-08-29  Gary Benson  <gbenson@redhat.com>
1399
1400         * common/common-exceptions.h: New file.
1401         * common/common-exceptions.c: Likewise.
1402         * Makefile.in (SFILES): Add common/common-exceptions.c.
1403         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1404         (COMMON_OBS): Add common-exceptions.o.
1405         (common-exceptions.o): New rule.
1406         * exceptions.h (common-exceptions.h): Include.
1407         (gdb_setjmp.h): Do not include.
1408         (return_reason): Moved to common-exceptions.h.
1409         (enum return_reason): Likewise.
1410         (RETURN_MASK): Likewise.
1411         (typedef return_mask): Likewise.
1412         (enum errors): Likewise.
1413         (struct gdb_exception): Likewise.
1414         (exceptions_state_mc_init): Likewise.
1415         (exceptions_state_mc_action_iter): Likewise.
1416         (exceptions_state_mc_action_iter_1): Likewise.
1417         (TRY_CATCH): Likewise.
1418         (throw_exception): Likewise.
1419         (throw_verror): Likewise.
1420         (throw_vquit): Likewise.
1421         (throw_error): Likewise.
1422         (throw_quit): Likewise.
1423         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1424         (enum catcher_action): Likewise.
1425         (struct catcher): Likewise.
1426         (current_catcher): Likewise.
1427         (catcher_list_size): Likewise.
1428         (exceptions_state_mc_init): Likewise.
1429         (catcher_pop): Likewise.
1430         (exceptions_state_mc): Likewise.
1431         (exceptions_state_mc_action_iter): Likewise.
1432         (exceptions_state_mc_action_iter_1): Likewise.
1433         (throw_exception): Likewise.
1434         (exception_messages): Likewise.
1435         (exception_messages_size): Likewise.
1436         (throw_it): Likewise.
1437         (throw_verror): Likewise.
1438         (throw_vquit): Likewise.
1439         (throw_error): Likewise.
1440         (throw_quit): Likewise.
1441         (prepare_to_throw_exception): New function.
1442
1443 2014-08-29  Gary Benson  <gbenson@redhat.com>
1444
1445         * common/gdb_setjmp.h: New file.
1446         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1447         * configure.ac: Move sigsetjmp check...
1448         * common/common.m4: ...here.
1449         * configure: Regenerate.
1450         * cp-support.c (SIGJMP_BUF): Delete.
1451         (SIGSETJMP): Likewise.
1452         (SIGLONGJMP): Likewise.
1453         * exceptions.h (gdb_setjmp.h): Include.
1454         (setjmp.h): Do not include.
1455         (EXCEPTIONS_SIGJMP_BUF): Delete.
1456         (EXCEPTIONS_SIGSETJMP): Likewise.
1457         (EXCEPTIONS_SIGLONGJMP): Likewise.
1458         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1459         from gdb_setjmp.h.
1460         * exceptions.c: Likewise.
1461
1462 2014-08-29  Gary Benson  <gbenson@redhat.com>
1463
1464         * cleanups.h: Moved to...
1465         * common/cleanups.h: New file.
1466         * cleanups.c: Moved to...
1467         * common/cleanups.c: New file.  Include common-defs.h and
1468         cleanups.h.  Do not include defs.h.
1469         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1470         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1471         (cleanups.o): New rule.
1472
1473 2014-08-29  Gary Benson  <gbenson@redhat.com>
1474
1475         * common/errors.h (internal_warning): New declaration.
1476         (internal_vwarning): Likewise.
1477         * common/errors.c (internal_warning): New function.
1478         * utils.h (internal_warning): Don't declare.
1479         (internal_vwarning): Likewise.
1480         * utils.c (internal_warning): Removed.
1481
1482 2014-08-29  Gary Benson  <gbenson@redhat.com>
1483
1484         * main.c (captured_main): Use warning during startup.
1485         Prefix startup warning messages with command name.
1486
1487 2014-08-29  Gary Benson  <gbenson@redhat.com>
1488
1489         * main.c (captured_main): Handle usage errors with error.
1490
1491 2014-08-29  Gary Benson  <gbenson@redhat.com>
1492
1493         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1494         exit pair with a call to error.  Wrap the message with _().
1495
1496 2014-08-29  Gary Benson  <gbenson@redhat.com>
1497
1498         * main.c (captured_main): Replace a fprintf/exit
1499         pair with a call to error.  Wrap the message with _().
1500
1501 2014-08-29  Gary Benson  <gbenson@redhat.com>
1502
1503         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1504         pairs with calls to error.  Wrap the message with _().
1505
1506 2014-08-29  Gary Benson  <gbenson@redhat.com>
1507
1508         * utils.c (vwarning): Protect calls to target_terminal_ours
1509         and wrap_here.
1510
1511 2014-08-29  Gary Benson  <gbenson@redhat.com>
1512
1513         * exceptions.c (print_flush): Protect calls to
1514         target_terminal_ours and wrap_here.
1515
1516 2014-08-29  Gary Benson  <gbenson@redhat.com>
1517
1518         * utils.h (filtered_printing_initialized): New declaration.
1519         * utils.c (abort_with_message): New function.
1520         (internal_vproblem): Use abort_with_message for first level
1521         recursive internal problems, and if gdb_stderr is not set up.
1522         Protect calls to target_terminal_ours, begin_line and query.
1523
1524 2014-08-28  Doug Evans  <dje@google.com>
1525
1526         * symtab.c (in_prologue): Move definition to better spot.
1527         (skip_prologue_using_sal): Ditto.
1528
1529 2014-08-28  Doug Evans  <dje@google.com>
1530
1531         * symtab.c (find_function_start_sal): Move definition to better spot.
1532
1533 2014-08-28  Yao Qi  <yao@codesourcery.com>
1534
1535         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1536         found_stack_adjust in forward scan.  Remove condition check
1537         on found_stack_adjust which is always true.  Indent the code.
1538
1539 2014-08-28  Yao Qi  <yao@codesourcery.com>
1540
1541         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1542         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1543         (dwarf_decode_lines): Remove argument
1544         want_line_info.  Remove condition check on want_line_info.
1545         Callers update.
1546
1547 2014-08-27  Doug Evans  <dje@google.com>
1548
1549         * dwarf2read.c (dwarf_record_line): Fix typo.
1550
1551 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1552
1553         * target.h (struct target_ops::to_terminal_save_ours): Remove
1554         declaration.
1555         (target_terminal_save_ours): Remove macro.
1556         * target-delegates.c: Regenerate.
1557         * inf-child.c (inf_child_target): Don't set the nonexistent
1558         field to_terminal_save_ours.
1559         * inferior.h (child_terminal_save_ours): Remove declaration.
1560         * terminal.h (gdb_save_tty_state): New declaration.
1561         * inflow.c (child_terminal_save_ours): Rename to ...
1562         (gdb_save_tty_state): ... this.
1563         * tui/tui.c: Include terminal.h.
1564         (tui_enable): Use gdb_save_tty_state instead of
1565         target_terminal_save_ours.
1566         (tui_disable): Likewise.
1567
1568 2014-08-25  Doug Evans  <dje@google.com>
1569
1570         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1571         Pass NULL instead of 0 for context pointer.
1572
1573 2014-08-25  Yao Qi  <yao@codesourcery.com>
1574
1575         * dwarf2read.c: Fix grammatical error.
1576
1577 2014-08-24  Yao Qi  <yao@codesourcery.com>
1578
1579         * dwarf2read.c (scan_partial_symbols):  Update comments.
1580         Rename argument 'need_pc' with 'set_addrmap'.
1581         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1582         'set_addrmap'.
1583         (add_partial_module): Likewise.
1584         (add_partial_subprogram): Likewise.  Update comments.
1585         (dwarf2_name): Fix typo.
1586
1587 2014-08-22  Doug Evans  <dje@google.com>
1588
1589         PR 17276
1590         * dwarf2read.c (dwarf_record_line_p): New function.
1591         (dwarf_decode_lines_1): Ignore subsequent line number entries
1592         for the same line if any entry had a non-zero discriminator.
1593
1594 2014-08-22  Doug Evans  <dje@google.com>
1595
1596         * buildsym.h (record_line_ftype): New typedef.
1597         (record_line): Use it.
1598         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1599         (dwarf_decode_lines_1): Call them.
1600
1601 2014-08-22  Yao Qi  <yao@codesourcery.com>
1602
1603         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1604         (ctf_end): Remove code.
1605
1606 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1607
1608         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1609         (linux_make_corefile_notes): call update_thread_list, protected against
1610         exceptions.
1611
1612 2014-08-21  Pedro Alves  <palves@redhat.com>
1613
1614         * infcmd.c (attach_command): Remove comment.
1615
1616 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1617
1618         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1619         unsigned LONGEST to ULONGEST.
1620
1621 2014-08-20  Pedro Alves  <palves@redhat.com>
1622
1623         * Makefile.in (check-read1): New rule.
1624
1625 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1626
1627         * value.c (value_from_contents_and_address): Strip resolved_type's
1628         typedef layers before checking its TYPE_DATA_LOCATION.
1629
1630 2014-08-20  Pedro Alves  <palves@redhat.com>
1631
1632         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1633
1634 2014-08-20  Yao Qi  <yao@codesourcery.com>
1635
1636         * amd64-tdep.c (amd64_classify): Add a blank line after the
1637         example.  Move "*/" to a new line.
1638         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1639         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1640         * dwarf2read.c (psymtab_include_file_name): Likewise.
1641
1642 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1643             Pedro Alves  <palves@redhat.com>
1644
1645         PR symtab/14604
1646         PR symtab/14605
1647         * ada-lang.c (coerce_unspec_val_to_type): Use
1648         value_contents_copy_raw.
1649         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1650         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1651         * cp-valprint.c (cp_print_value_fields): Let the common printing
1652         code handle optimized out values.
1653         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1654         * d-valprint.c (dynamic_array_type): Use
1655         value_bits_any_optimized_out.
1656         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1657         check_any_valid fields.
1658         (check_pieced_value_bits): Delete and inline ...
1659         (check_pieced_synthetic_pointer): ... here.
1660         (check_pieced_value_validity): Delete.
1661         (check_pieced_value_invalid): Delete.
1662         (pieced_value_funcs): Remove check_validity and check_any_valid
1663         fields.
1664         (read_pieced_value): Use mark_value_bits_optimized_out.
1665         (write_pieced_value): Switch to use
1666         mark_value_bytes_optimized_out.
1667         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1668         of assuming the whole value is optimized out.
1669         * findvar.c (read_frame_register_value): Remove special handling
1670         of optimized out registers.
1671         (value_from_register): Use mark_value_bytes_optimized_out.
1672         * frame-unwind.c (frame_unwind_got_optimized): Use
1673         mark_value_bytes_optimized_out.
1674         * jv-valprint.c (java_value_print): Adjust.
1675         (java_print_value_fields): Let the common printing code handle
1676         optimized out values.
1677         * mips-tdep.c (mips_print_register): Remove special handling of
1678         optimized out registers.
1679         * opencl-lang.c (lval_func_check_validity): Delete.
1680         (lval_func_check_any_valid): Delete.
1681         (opencl_value_funcs): Remove check_validity and check_any_valid
1682         fields.
1683         * p-valprint.c (pascal_object_print_value_fields): Let the common
1684         printing code handle optimized out values.
1685         * stack.c (read_frame_arg): Remove special handling of optimized
1686         out values.  Fetch both VAL and ENTRYVAL before comparing
1687         contents.  Adjust to value_available_contents_eq rename.
1688         * valprint.c (valprint_check_validity)
1689         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1690         (val_print_array_elements): Adjust.
1691         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1692         (value_bits_any_optimized_out): New function.
1693         (value_entirely_covered_by_range_vector): New function, factored
1694         out from value_entirely_unavailable.
1695         (value_entirely_unavailable): Reimplement.
1696         (value_entirely_optimized_out): New function.
1697         (insert_into_bit_range_vector): New function, factored out from
1698         mark_value_bits_unavailable.
1699         (mark_value_bits_unavailable): Reimplement.
1700         (struct ranges_and_idx): New struct.
1701         (find_first_range_overlap_and_match): New function, factored out
1702         from value_available_contents_bits_eq.
1703         (value_available_contents_bits_eq): Rename to ...
1704         (value_contents_bits_eq): ... this.  Check both unavailable
1705         contents and optimized out contents.
1706         (value_available_contents_eq): Rename to ...
1707         (value_contents_eq): ... this.
1708         (allocate_value_lazy): Remove reference to the old optimized_out
1709         boolean.
1710         (allocate_optimized_out_value): Use
1711         mark_value_bytes_optimized_out.
1712         (require_not_optimized_out): Adjust to check whether the
1713         optimized_out vec is empty.
1714         (ranges_copy_adjusted): New function, factored out from
1715         value_contents_copy_raw.
1716         (value_contents_copy_raw): Also copy the optimized out ranges.
1717         Assert the destination ranges aren't optimized out.
1718         (value_contents_copy): Update comment, remove call to
1719         require_not_optimized_out.
1720         (value_contents_equal): Adjust to check whether the optimized_out
1721         vec is empty.
1722         (set_value_optimized_out, value_optimized_out_const): Delete.
1723         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1724         New functions.
1725         (value_entirely_optimized_out, value_bits_valid): Delete.
1726         (value_copy): Take a VEC copy of the 'optimized_out' field.
1727         (value_primitive_field): Remove special handling of optimized out.
1728         (value_fetch_lazy): Assert that lazy values have no unavailable
1729         regions.  Use value_bits_any_optimized_out.  Remove some special
1730         handling for optimized out values.
1731         * value.h: Add intro comment about <optimized out> and
1732         <unavailable>.
1733         (struct lval_funcs): Remove check_validity and check_any_valid
1734         fields.
1735         (set_value_optimized_out, value_optimized_out_const): Remove.
1736         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1737         New declarations.
1738         (value_bits_any_optimized_out): New declaration.
1739         (value_bits_valid): Delete declaration.
1740         (value_available_contents_eq): Rename to ...
1741         (value_contents_eq): ... this, and extend comments.
1742
1743 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1744
1745         Fix -fsanitize=address on unreadable inferior strings.
1746         * valprint.c (val_print_string): Fix access before BUFFER.
1747
1748 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1749
1750         * target.c (target_struct_size): Remove.
1751         (target_struct_allocsize): Remove.
1752         (DEFAULT_ALLOCSIZE): Remove.
1753         (target_ops_p): New typedef.
1754         (DEF_VEC_P (target_ops_p)): New vector type.
1755         (target_structs): Change type to VEC (target_ops_p).
1756         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1757         (find_default_run_target): Rewrite for loop following changes to
1758         target_structs.
1759
1760 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1761
1762         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1763         Adjust code accordingly.  Adjust function description comment.
1764
1765 2014-08-19  Yao Qi  <yao@codesourcery.com>
1766
1767         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1768         types.
1769
1770 2014-08-19  Alan Modra  <amodra@gmail.com>
1771
1772         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1773         * config.in: Regenerate.
1774         * configure: Regenerate.
1775
1776 2014-08-19  Tom Tromey  <tromey@redhat.com>
1777             Gary Benson  <gbenson@redhat.com>
1778
1779         * common/common-debug.h: New file.
1780         * common/common-debug.c: Likewise.
1781         * debug.c: Likewise.
1782         * Makefile.in (SFILES): Add common/common-debug.c.
1783         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1784         (COMMON_OBS): Add common-debug.o and debug.o.
1785         (common-debug.o): New rule.
1786         * common/common-defs.h: Include common-debug.h.
1787         * common/agent.c (debug_agent_printf): New function.
1788         (DEBUG_AGENT): Redefine.
1789         * nat/i386-dregs.c (debug_printf): Undefine.
1790
1791 2014-08-19  Gary Benson  <gbenson@redhat.com>
1792
1793         * common/common-defs.h: Include print-utils.h.
1794         * utils.h: Do not include print-utils.h.
1795
1796 2014-08-19  Tom Tromey  <tromey@redhat.com>
1797             Gary Benson  <gbenson@redhat.com>
1798
1799         * common/common-types.h: New file.
1800         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1801         * common/common-defs.h: Include common-types.h.
1802         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1803         (ULONGEST): Remove.
1804
1805 2014-08-19  Tom Tromey  <tromey@redhat.com>
1806             Gary Benson  <gbenson@redhat.com>
1807
1808         * common/errors.h: New file.
1809         * common/errors.c: Likewise.
1810         * Makefile.in (SFILES): Add common/errors.c.
1811         (HFILES_NO_SRCDIR): Add common/errors.h.
1812         (COMMON_OBS): Add errors.o.
1813         (errors.o): New rule.
1814         * common/common-defs.h: Include errors.h.
1815         * utils.h (perror_with_name, error, verror, warning, vwarning):
1816         Don't declare.
1817         * common/common-utils.h: (malloc_failure, internal_error):
1818         Likewise.
1819
1820 2014-08-19  Gary Benson  <gbenson@redhat.com>
1821
1822         * utils.c (internal_vproblem): Always print the message.
1823
1824 2014-08-18  Doug Evans  <dje@google.com>
1825
1826         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1827
1828 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1829
1830         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1831         Return 0 if TYPE is dynamic.
1832         (print_range): Add handling of dynamic ranges.
1833
1834 2014-08-18  Keven Boell  <keven.boell@intel.com>
1835             Joel Brobecker  <brobecker@adacore.com>
1836
1837         * gdbtypes.h (struct main_type): Add field "data_location".
1838         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1839         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1840         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1841         a dynamic data location.
1842         (resolve_dynamic_type): Add DW_AT_data_location handling.
1843         (copy_recursive, copy_type): Copy the data_location information
1844         when present.
1845         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1846         * value.c (value_from_contents_and_address): Add
1847         DW_AT_data_location handling.
1848
1849 2014-08-18  Keven Boell  <keven.boell@intel.com>
1850             Joel Brobecker  <brobecker@adacore.com>
1851
1852         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1853         field "get_object_address".
1854         * dwarf2expr.c (execute_stack_op): Add handling for
1855         DW_OP_push_object_address.
1856         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1857         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1858         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1859         (dwarf_expr_get_obj_addr): New function.
1860         (dwarf_expr_ctx_funcs): Add get_object_address field.
1861         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1862         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1863         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1864         (needs_get_obj_addr): New function.
1865         (needs_frame_ctx_funcs): Add get_object_address field.
1866         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1867         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1868         (resolve_dynamic_array): Likewise.
1869
1870 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1871
1872         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1873         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1874         fixed value for records and unions for which some GNAT encodings
1875         are present.
1876
1877 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1878
1879         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1880         rewrite to avoid "else if" and "else" constructs.  Should be
1881         a no-op in practice.
1882
1883 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1884
1885         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1886         of lexical block.
1887
1888 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1889
1890         PR c++/17132
1891         * eval.c: Update all calls to find_overload_match.
1892         * valarith.c: Likewise.
1893         (value_user_defined_cpp_op, value_user_defined_op): New
1894         argument NOSIDE.  Update all callers.
1895         * valops.c (find_overload_match): New argument NOSIDE.
1896         * value.h (find_overload_match): Update signature.
1897
1898 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1899
1900         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1901         'items' methods instead of 'iteritems' method on dictionaries.
1902
1903 2014-08-15  Doug Evans  <dje@google.com>
1904
1905         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1906         closer to use.
1907
1908 2014-08-15  Doug Evans  <dje@google.com>
1909
1910         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1911
1912 2014-08-15  Doug Evans  <dje@google.com>
1913
1914         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1915
1916 2014-08-15  Doug Evans  <dje@google.com>
1917
1918         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1919         unused.
1920
1921 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1922
1923         * dcache.h: Include target.h, to avoid compile time warnings.
1924
1925 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1926
1927         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1928         frame_info" partial declaration.
1929         * gdbarch.h: Regenerate.
1930
1931 2014-08-15  Yao Qi  <yao@codesourcery.com>
1932
1933         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1934         Add parameter 'decode_for_pst_p'.  Callers update.
1935
1936 2014-08-13  Yao Qi  <yao@codesourcery.com>
1937
1938         PR build/17104
1939         * configure.ac: Use local variable 'pos'.
1940         * configure: Regenerated.
1941
1942 2014-08-11  Doug Evans  <dje@google.com>
1943
1944         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1945         message, it is redundant with "Reading symbols from ..." message.
1946
1947 2014-08-10  Doug Evans  <xdje42@gmail.com>
1948
1949         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1950
1951 2014-08-09  Yao Qi  <yao@codesourcery.com>
1952
1953         PR remote/9053
1954         * remote.c (remote_xfer_partial): Remove dead code.
1955
1956 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1957
1958         * ia64-linux-tdep.c: Include "regset.h".
1959         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1960         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1961         (ia64_linux_supply_fpregset): New function.
1962         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1963         (ia64_linux_regset_from_core_section): New function.
1964         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1965         method.
1966
1967 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1968
1969         * m68klinux-tdep.c: Include "regset.h".
1970         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1971         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1972         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1973         (m68k_linux_regset_from_core_section): New function.
1974         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1975         method.
1976
1977 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1978
1979         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1980         function.  Move logic to...
1981         (tilegx_linux_regmap): ... this new register map.
1982         (tilegx_linux_regset): Refer to register map, replace supply
1983         method by regcache_supply_regset, and add collect method.
1984         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1985         TILEGX_FIRST_EASY_REGNUM.
1986
1987 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1988
1989         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1990         that calls regcache_supply_regset and handles the EPC register
1991         separately.  Move main logic to...
1992         (score7_linux_gregmap): ... this new register map.
1993         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1994         (score7_linux_gregset): Refer to register map.  Add collect method.
1995         (score7_linux_regset_from_core_section): Replace
1996         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1997         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1998         (struct regset): Delete unused forward declaraction.
1999         (struct pt_regs): Delete structure definition.
2000         (elf_gregset_t): Delete typedef.
2001
2002 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2003
2004         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2005         (nios2_core_regset): Add collect method.
2006
2007 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2008
2009         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2010         platform-independent and don't write to read-only input buffer.
2011         (m32r_linux_collect_gregset): New function.
2012         (m32r_linux_gregset): Add collect method.
2013
2014 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2015
2016         * hppa-linux-tdep.c (greg_map): Rename to...
2017         (hppa_linux_gregmap): ... this.  Also convert to
2018         regcache_map_entry format.
2019         (hppa_linux_supply_regset): Delete function.
2020         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2021         (hppa_linux_fpregmap): ... this new register map.
2022         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2023         register map, replace supply method by regcache_supply_regset, and
2024         add collect method regcache_collect_regset.
2025
2026 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2027
2028         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2029         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2030         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2031         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2032         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2033         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2034         (frv_linux_supply_gregset): Replace main logic by call to
2035         regcache_supply_regset, but keep clearing gr32-gr63.
2036         (frv_linux_supply_fpregset): Delete function.
2037         (frv_linux_gregset): Refer to appropriate register map and add
2038         regcache_collect_regset as the collect method.
2039         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2040         by regcache_supply_regset.
2041
2042 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2043
2044         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2045         by call to alpha_supply_int_regs.
2046         (alpha_linux_collect_gregset): New function.
2047         (alpha_linux_supply_fpregset): Replace logic by call to
2048         alpha_supply_fp_regs.
2049         (alpha_linux_collect_fpregset): New function.
2050         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2051
2052 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2053
2054         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2055         by call to regcache_collect_regset.
2056         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2057         instead of aarch64_linux_supply_gregset/_fpregset.
2058         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2059         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2060         header file instead.
2061         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2062         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2063         functions.  Move logic to ...
2064         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2065         register maps.
2066         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2067         refer to new register maps, replace *_regset_from_core by
2068         regcache_supply_regset, and also use regcache_collect_regset.
2069         * aarch64-linux-tdep.h: Include "regset.h".
2070         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2071         Delete prototypes.
2072         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2073         macros, moved from C source file.
2074         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2075         variable declarations.
2076
2077 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2078
2079         * s390-linux-nat.c: Include "regset.h".
2080         (regmap_gregset): Delete macro.
2081         (s390_64_regmap_gregset): New register map for
2082         regcache_supply/_collect_regset.
2083         (s390_64_gregset): New regset.
2084         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2085         (regmap_fpregset): Delete macro.
2086         (s390_native_supply, s390_native_collect): Delete functions.
2087         (supply_gregset, fill_gregset): Replace s390-specific regmap
2088         handling by a call to regcache_supply/_collect_regset.
2089         (supply_fpregset, fill_fpregset): Call regcache_supply/
2090         _collect_regset instead of s390_native_supply/_collect.
2091         (fetch_regset, store_regset): Likewise.  Also change the last
2092         parameter to a regset instead of a regmap.
2093         (s390_linux_fetch_inferior_registers)
2094         (390_linux_store_inferior_registers): Adjust last parameter in
2095         calls to fetch_regset and store_regset.
2096         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2097         (s390_gregmap): ... this.  Also make static const and convert to
2098         regcache_map_entry format.
2099         (s390x_regmap_gregset): Delete.
2100         (s390_regmap_fpregset): Rename to...
2101         (s390_fpregmap): ... this.  Make static const and convert to
2102         regcache_map_entry format.
2103         (s390_regmap_upper, s390_regmap_last_break)
2104         (s390x_regmap_last_break, s390_regmap_system_call)
2105         (s390_regmap_tdb): Likewise.
2106         (s390_supply_regset, s390_collect_regset): Remove functions.
2107         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2108         s390_supply_regset.
2109         (s390_gregset, s390_fpregset, s390_upper_regset)
2110         (s390_last_break_regset, s390x_last_break_regset)
2111         (s390_system_call_regset, s390_tdb_regset): Make global and
2112         replace s390_supply/_collect_regset by regcache_supply/
2113         _collect_regset.
2114         (s390x_gregset): Delete.
2115         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2116         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2117         (s390_regmap_fpregset, s390_regmap_last_break)
2118         (s390x_regmap_last_break, s390_regmap_system_call)
2119         (s390_regmap_tdb): Delete global variable declarations.
2120         (s390_gregset, s390_fpregset, s390_last_break_regset)
2121         (s390x_last_break_regset, s390_system_call_regset)
2122         (s390_tdb_regset): New global variable declarations.
2123
2124 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2125
2126         * regcache.c: Include "regset.h".
2127         (regcache_transfer_regset): New local function.
2128         (regcache_supply_regset, regcache_collect_regset): New functions.
2129         * regcache.h (struct regcache_map_entry): New structure.
2130         (REGCACHE_MAP_SKIP): New enum value.
2131         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2132
2133 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2134
2135         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2136         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2137         (ppc_linux_collect_gregset ): Likewise.
2138         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2139         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2140         (ppc_collect_vrregset): Likewise.
2141         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2142         Likewise.
2143
2144 2014-08-07  Yao Qi  <yao@codesourcery.com>
2145
2146         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2147         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2148         * remote.c (remote_read_bytes): Likewise.
2149
2150 2014-08-07  Yao Qi  <yao@codesourcery.com>
2151
2152         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2153
2154 2014-08-07  Yao Qi  <yao@codesourcery.com>
2155
2156         PR remote/17230
2157         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2158         TARGET_XFER_OK instead of 0.
2159
2160 2014-08-07  Gary Benson  <gbenson@redhat.com>
2161
2162         * common/common-defs.h: Include errno.h.
2163         * defs.h: Do not include errno.h.
2164         * ada-typeprint.c: Likewise.
2165         * c-typeprint.c: Likewise.
2166         * core-regset.c: Likewise.
2167         * corefile.c: Likewise.
2168         * corelow.c: Likewise.
2169         * event-loop.c: Likewise.
2170         * f-typeprint.c: Likewise.
2171         * gnu-nat.c: Likewise.
2172         * go32-nat.c: Likewise.
2173         * i386gnu-nat.c: Likewise.
2174         * m2-typeprint.c: Likewise.
2175         * nat/linux-btrace.c: Likewise.
2176         * p-typeprint.c: Likewise.
2177         * procfs.c: Likewise.
2178         * remote-sim.c: Likewise.
2179         * rs6000-nat.c: Likewise.
2180         * target.c: Likewise.
2181         * typeprint.c: Likewise.
2182         * ui-file.c: Likewise.
2183         * valops.c: Likewise.
2184         * valprint.c: Likewise.
2185
2186 2014-08-07  Gary Benson  <gbenson@redhat.com>
2187
2188         * common/common-defs.h: Include string.h.
2189         * aarch64-tdep.c: Do not include string.h.
2190         * ada-exp.y: Likewise.
2191         * ada-lang.c: Likewise.
2192         * ada-lex.l: Likewise.
2193         * ada-typeprint.c: Likewise.
2194         * ada-valprint.c: Likewise.
2195         * aix-thread.c: Likewise.
2196         * alpha-linux-tdep.c: Likewise.
2197         * alpha-mdebug-tdep.c: Likewise.
2198         * alpha-nat.c: Likewise.
2199         * alpha-osf1-tdep.c: Likewise.
2200         * alpha-tdep.c: Likewise.
2201         * alphanbsd-tdep.c: Likewise.
2202         * amd64-dicos-tdep.c: Likewise.
2203         * amd64-linux-tdep.c: Likewise.
2204         * amd64-nat.c: Likewise.
2205         * amd64-sol2-tdep.c: Likewise.
2206         * amd64fbsd-tdep.c: Likewise.
2207         * amd64obsd-tdep.c: Likewise.
2208         * arch-utils.c: Likewise.
2209         * arm-linux-nat.c: Likewise.
2210         * arm-linux-tdep.c: Likewise.
2211         * arm-tdep.c: Likewise.
2212         * arm-wince-tdep.c: Likewise.
2213         * armbsd-tdep.c: Likewise.
2214         * armnbsd-nat.c: Likewise.
2215         * armnbsd-tdep.c: Likewise.
2216         * armobsd-tdep.c: Likewise.
2217         * avr-tdep.c: Likewise.
2218         * ax-gdb.c: Likewise.
2219         * ax-general.c: Likewise.
2220         * bcache.c: Likewise.
2221         * bfin-tdep.c: Likewise.
2222         * breakpoint.c: Likewise.
2223         * build-id.c: Likewise.
2224         * buildsym.c: Likewise.
2225         * c-exp.y: Likewise.
2226         * c-lang.c: Likewise.
2227         * c-typeprint.c: Likewise.
2228         * c-valprint.c: Likewise.
2229         * charset.c: Likewise.
2230         * cli-out.c: Likewise.
2231         * cli/cli-cmds.c: Likewise.
2232         * cli/cli-decode.c: Likewise.
2233         * cli/cli-dump.c: Likewise.
2234         * cli/cli-interp.c: Likewise.
2235         * cli/cli-logging.c: Likewise.
2236         * cli/cli-script.c: Likewise.
2237         * cli/cli-setshow.c: Likewise.
2238         * cli/cli-utils.c: Likewise.
2239         * coffread.c: Likewise.
2240         * common/agent.c: Likewise.
2241         * common/buffer.c: Likewise.
2242         * common/buffer.h: Likewise.
2243         * common/common-utils.c: Likewise.
2244         * common/filestuff.c: Likewise.
2245         * common/filestuff.c: Likewise.
2246         * common/format.c: Likewise.
2247         * common/print-utils.c: Likewise.
2248         * common/rsp-low.c: Likewise.
2249         * common/signals.c: Likewise.
2250         * common/vec.h: Likewise.
2251         * common/xml-utils.c: Likewise.
2252         * core-regset.c: Likewise.
2253         * corefile.c: Likewise.
2254         * corelow.c: Likewise.
2255         * cp-abi.c: Likewise.
2256         * cp-name-parser.y: Likewise.
2257         * cp-support.c: Likewise.
2258         * cp-valprint.c: Likewise.
2259         * cris-tdep.c: Likewise.
2260         * d-exp.y: Likewise.
2261         * darwin-nat.c: Likewise.
2262         * dbxread.c: Likewise.
2263         * dcache.c: Likewise.
2264         * demangle.c: Likewise.
2265         * dicos-tdep.c: Likewise.
2266         * disasm.c: Likewise.
2267         * doublest.c: Likewise.
2268         * dsrec.c: Likewise.
2269         * dummy-frame.c: Likewise.
2270         * dwarf2-frame.c: Likewise.
2271         * dwarf2loc.c: Likewise.
2272         * dwarf2read.c: Likewise.
2273         * elfread.c: Likewise.
2274         * environ.c: Likewise.
2275         * eval.c: Likewise.
2276         * event-loop.c: Likewise.
2277         * exceptions.c: Likewise.
2278         * exec.c: Likewise.
2279         * expprint.c: Likewise.
2280         * f-exp.y: Likewise.
2281         * f-lang.c: Likewise.
2282         * f-typeprint.c: Likewise.
2283         * f-valprint.c: Likewise.
2284         * fbsd-nat.c: Likewise.
2285         * findcmd.c: Likewise.
2286         * findvar.c: Likewise.
2287         * fork-child.c: Likewise.
2288         * frame.c: Likewise.
2289         * frv-linux-tdep.c: Likewise.
2290         * frv-tdep.c: Likewise.
2291         * gdb.c: Likewise.
2292         * gdb_bfd.c: Likewise.
2293         * gdbarch.c: Likewise.
2294         * gdbarch.sh: Likewise.
2295         * gdbtypes.c: Likewise.
2296         * gnu-nat.c: Likewise.
2297         * gnu-v2-abi.c: Likewise.
2298         * gnu-v3-abi.c: Likewise.
2299         * go-exp.y: Likewise.
2300         * go-lang.c: Likewise.
2301         * go32-nat.c: Likewise.
2302         * guile/guile.c: Likewise.
2303         * guile/scm-auto-load.c: Likewise.
2304         * hppa-hpux-tdep.c: Likewise.
2305         * hppa-linux-nat.c: Likewise.
2306         * hppanbsd-tdep.c: Likewise.
2307         * hppaobsd-tdep.c: Likewise.
2308         * i386-cygwin-tdep.c: Likewise.
2309         * i386-dicos-tdep.c: Likewise.
2310         * i386-linux-tdep.c: Likewise.
2311         * i386-nto-tdep.c: Likewise.
2312         * i386-sol2-tdep.c: Likewise.
2313         * i386-tdep.c: Likewise.
2314         * i386bsd-tdep.c: Likewise.
2315         * i386gnu-nat.c: Likewise.
2316         * i386nbsd-tdep.c: Likewise.
2317         * i386obsd-tdep.c: Likewise.
2318         * i387-tdep.c: Likewise.
2319         * ia64-libunwind-tdep.c: Likewise.
2320         * ia64-linux-nat.c: Likewise.
2321         * inf-child.c: Likewise.
2322         * inf-ptrace.c: Likewise.
2323         * inf-ttrace.c: Likewise.
2324         * infcall.c: Likewise.
2325         * infcmd.c: Likewise.
2326         * inflow.c: Likewise.
2327         * infrun.c: Likewise.
2328         * interps.c: Likewise.
2329         * iq2000-tdep.c: Likewise.
2330         * irix5-nat.c: Likewise.
2331         * jv-exp.y: Likewise.
2332         * jv-lang.c: Likewise.
2333         * jv-typeprint.c: Likewise.
2334         * jv-valprint.c: Likewise.
2335         * language.c: Likewise.
2336         * linux-fork.c: Likewise.
2337         * linux-nat.c: Likewise.
2338         * lm32-tdep.c: Likewise.
2339         * m2-exp.y: Likewise.
2340         * m2-typeprint.c: Likewise.
2341         * m32c-tdep.c: Likewise.
2342         * m32r-linux-nat.c: Likewise.
2343         * m32r-linux-tdep.c: Likewise.
2344         * m32r-rom.c: Likewise.
2345         * m32r-tdep.c: Likewise.
2346         * m68hc11-tdep.c: Likewise.
2347         * m68k-tdep.c: Likewise.
2348         * m68kbsd-tdep.c: Likewise.
2349         * m68klinux-nat.c: Likewise.
2350         * m68klinux-tdep.c: Likewise.
2351         * m88k-tdep.c: Likewise.
2352         * machoread.c: Likewise.
2353         * macrocmd.c: Likewise.
2354         * main.c: Likewise.
2355         * mdebugread.c: Likewise.
2356         * mem-break.c: Likewise.
2357         * memattr.c: Likewise.
2358         * memory-map.c: Likewise.
2359         * mep-tdep.c: Likewise.
2360         * mi/mi-cmd-break.c: Likewise.
2361         * mi/mi-cmd-disas.c: Likewise.
2362         * mi/mi-cmd-env.c: Likewise.
2363         * mi/mi-cmd-stack.c: Likewise.
2364         * mi/mi-cmd-var.c: Likewise.
2365         * mi/mi-cmds.c: Likewise.
2366         * mi/mi-console.c: Likewise.
2367         * mi/mi-getopt.c: Likewise.
2368         * mi/mi-interp.c: Likewise.
2369         * mi/mi-main.c: Likewise.
2370         * mi/mi-parse.c: Likewise.
2371         * microblaze-rom.c: Likewise.
2372         * microblaze-tdep.c: Likewise.
2373         * mingw-hdep.c: Likewise.
2374         * minidebug.c: Likewise.
2375         * minsyms.c: Likewise.
2376         * mips-irix-tdep.c: Likewise.
2377         * mips-linux-tdep.c: Likewise.
2378         * mips-tdep.c: Likewise.
2379         * mips64obsd-tdep.c: Likewise.
2380         * mipsnbsd-tdep.c: Likewise.
2381         * mipsread.c: Likewise.
2382         * mn10300-linux-tdep.c: Likewise.
2383         * mn10300-tdep.c: Likewise.
2384         * monitor.c: Likewise.
2385         * moxie-tdep.c: Likewise.
2386         * mt-tdep.c: Likewise.
2387         * nat/linux-btrace.c: Likewise.
2388         * nat/linux-osdata.c: Likewise.
2389         * nat/linux-procfs.c: Likewise.
2390         * nat/linux-ptrace.c: Likewise.
2391         * nat/linux-waitpid.c: Likewise.
2392         * nbsd-tdep.c: Likewise.
2393         * nios2-linux-tdep.c: Likewise.
2394         * nto-procfs.c: Likewise.
2395         * nto-tdep.c: Likewise.
2396         * objc-lang.c: Likewise.
2397         * objfiles.c: Likewise.
2398         * opencl-lang.c: Likewise.
2399         * osabi.c: Likewise.
2400         * osdata.c: Likewise.
2401         * p-exp.y: Likewise.
2402         * p-lang.c: Likewise.
2403         * p-typeprint.c: Likewise.
2404         * parse.c: Likewise.
2405         * posix-hdep.c: Likewise.
2406         * ppc-linux-nat.c: Likewise.
2407         * ppc-sysv-tdep.c: Likewise.
2408         * ppcfbsd-tdep.c: Likewise.
2409         * ppcnbsd-tdep.c: Likewise.
2410         * ppcobsd-tdep.c: Likewise.
2411         * printcmd.c: Likewise.
2412         * procfs.c: Likewise.
2413         * prologue-value.c: Likewise.
2414         * python/py-auto-load.c: Likewise.
2415         * python/py-gdb-readline.c: Likewise.
2416         * ravenscar-thread.c: Likewise.
2417         * regcache.c: Likewise.
2418         * registry.c: Likewise.
2419         * remote-fileio.c: Likewise.
2420         * remote-m32r-sdi.c: Likewise.
2421         * remote-mips.c: Likewise.
2422         * remote-notif.c: Likewise.
2423         * remote-sim.c: Likewise.
2424         * remote.c: Likewise.
2425         * reverse.c: Likewise.
2426         * rs6000-aix-tdep.c: Likewise.
2427         * ser-base.c: Likewise.
2428         * ser-go32.c: Likewise.
2429         * ser-mingw.c: Likewise.
2430         * ser-pipe.c: Likewise.
2431         * ser-tcp.c: Likewise.
2432         * ser-unix.c: Likewise.
2433         * serial.c: Likewise.
2434         * sh-tdep.c: Likewise.
2435         * sh64-tdep.c: Likewise.
2436         * shnbsd-tdep.c: Likewise.
2437         * skip.c: Likewise.
2438         * sol-thread.c: Likewise.
2439         * solib-dsbt.c: Likewise.
2440         * solib-frv.c: Likewise.
2441         * solib-osf.c: Likewise.
2442         * solib-som.c: Likewise.
2443         * solib-spu.c: Likewise.
2444         * solib-target.c: Likewise.
2445         * solib.c: Likewise.
2446         * somread.c: Likewise.
2447         * source.c: Likewise.
2448         * sparc-nat.c: Likewise.
2449         * sparc-sol2-tdep.c: Likewise.
2450         * sparc-tdep.c: Likewise.
2451         * sparc64-tdep.c: Likewise.
2452         * sparc64fbsd-tdep.c: Likewise.
2453         * sparc64nbsd-tdep.c: Likewise.
2454         * sparcnbsd-tdep.c: Likewise.
2455         * spu-linux-nat.c: Likewise.
2456         * spu-multiarch.c: Likewise.
2457         * spu-tdep.c: Likewise.
2458         * stabsread.c: Likewise.
2459         * stack.c: Likewise.
2460         * std-regs.c: Likewise.
2461         * symfile.c: Likewise.
2462         * symmisc.c: Likewise.
2463         * symtab.c: Likewise.
2464         * target.c: Likewise.
2465         * thread.c: Likewise.
2466         * tilegx-linux-nat.c: Likewise.
2467         * tilegx-tdep.c: Likewise.
2468         * top.c: Likewise.
2469         * tracepoint.c: Likewise.
2470         * tui/tui-command.c: Likewise.
2471         * tui/tui-data.c: Likewise.
2472         * tui/tui-disasm.c: Likewise.
2473         * tui/tui-file.c: Likewise.
2474         * tui/tui-layout.c: Likewise.
2475         * tui/tui-out.c: Likewise.
2476         * tui/tui-regs.c: Likewise.
2477         * tui/tui-source.c: Likewise.
2478         * tui/tui-stack.c: Likewise.
2479         * tui/tui-win.c: Likewise.
2480         * tui/tui-windata.c: Likewise.
2481         * tui/tui-winsource.c: Likewise.
2482         * typeprint.c: Likewise.
2483         * ui-file.c: Likewise.
2484         * ui-out.c: Likewise.
2485         * user-regs.c: Likewise.
2486         * utils.c: Likewise.
2487         * v850-tdep.c: Likewise.
2488         * valarith.c: Likewise.
2489         * valops.c: Likewise.
2490         * valprint.c: Likewise.
2491         * value.c: Likewise.
2492         * varobj.c: Likewise.
2493         * vax-tdep.c: Likewise.
2494         * vaxnbsd-tdep.c: Likewise.
2495         * vaxobsd-tdep.c: Likewise.
2496         * windows-nat.c: Likewise.
2497         * xcoffread.c: Likewise.
2498         * xml-support.c: Likewise.
2499         * xstormy16-tdep.c: Likewise.
2500         * xtensa-linux-nat.c: Likewise.
2501
2502 2014-08-07  Gary Benson  <gbenson@redhat.com>
2503
2504         * common/common-defs.h: Include gdb_assert.h.
2505         * aarch64-tdep.c: Do not include gdb_assert.h.
2506         * addrmap.c: Likewise.
2507         * aix-thread.c: Likewise.
2508         * alpha-linux-tdep.c: Likewise.
2509         * alpha-mdebug-tdep.c: Likewise.
2510         * alphanbsd-tdep.c: Likewise.
2511         * amd64-nat.c: Likewise.
2512         * amd64-tdep.c: Likewise.
2513         * amd64bsd-nat.c: Likewise.
2514         * amd64fbsd-nat.c: Likewise.
2515         * amd64fbsd-tdep.c: Likewise.
2516         * amd64nbsd-nat.c: Likewise.
2517         * amd64nbsd-tdep.c: Likewise.
2518         * amd64obsd-nat.c: Likewise.
2519         * amd64obsd-tdep.c: Likewise.
2520         * arch-utils.c: Likewise.
2521         * arm-tdep.c: Likewise.
2522         * armbsd-tdep.c: Likewise.
2523         * auxv.c: Likewise.
2524         * bcache.c: Likewise.
2525         * bfin-tdep.c: Likewise.
2526         * blockframe.c: Likewise.
2527         * breakpoint.c: Likewise.
2528         * bsd-kvm.c: Likewise.
2529         * bsd-uthread.c: Likewise.
2530         * buildsym.c: Likewise.
2531         * c-exp.y: Likewise.
2532         * c-lang.c: Likewise.
2533         * charset.c: Likewise.
2534         * cleanups.c: Likewise.
2535         * cli-out.c: Likewise.
2536         * cli/cli-decode.c: Likewise.
2537         * cli/cli-dump.c: Likewise.
2538         * cli/cli-logging.c: Likewise.
2539         * cli/cli-script.c: Likewise.
2540         * cli/cli-utils.c: Likewise.
2541         * coffread.c: Likewise.
2542         * common/common-utils.c: Likewise.
2543         * common/queue.h: Likewise.
2544         * common/signals.c: Likewise.
2545         * common/vec.h: Likewise.
2546         * complaints.c: Likewise.
2547         * completer.c: Likewise.
2548         * corelow.c: Likewise.
2549         * cp-abi.c: Likewise.
2550         * cp-name-parser.y: Likewise.
2551         * cp-namespace.c: Likewise.
2552         * cp-support.c: Likewise.
2553         * cris-tdep.c: Likewise.
2554         * dbxread.c: Likewise.
2555         * dictionary.c: Likewise.
2556         * doublest.c: Likewise.
2557         * dsrec.c: Likewise.
2558         * dummy-frame.c: Likewise.
2559         * dwarf2-frame-tailcall.c: Likewise.
2560         * dwarf2-frame.c: Likewise.
2561         * dwarf2expr.c: Likewise.
2562         * dwarf2loc.c: Likewise.
2563         * dwarf2read.c: Likewise.
2564         * eval.c: Likewise.
2565         * event-loop.c: Likewise.
2566         * exceptions.c: Likewise.
2567         * expprint.c: Likewise.
2568         * f-valprint.c: Likewise.
2569         * fbsd-nat.c: Likewise.
2570         * findvar.c: Likewise.
2571         * frame-unwind.c: Likewise.
2572         * frame.c: Likewise.
2573         * frv-tdep.c: Likewise.
2574         * gcore.c: Likewise.
2575         * gdb-dlfcn.c: Likewise.
2576         * gdb_bfd.c: Likewise.
2577         * gdbarch.c: Likewise.
2578         * gdbarch.sh: Likewise.
2579         * gdbtypes.c: Likewise.
2580         * gnu-nat.c: Likewise.
2581         * gnu-v3-abi.c: Likewise.
2582         * go-lang.c: Likewise.
2583         * guile/scm-exception.c: Likewise.
2584         * guile/scm-gsmob.c: Likewise.
2585         * guile/scm-lazy-string.c: Likewise.
2586         * guile/scm-math.c: Likewise.
2587         * guile/scm-pretty-print.c: Likewise.
2588         * guile/scm-safe-call.c: Likewise.
2589         * guile/scm-utils.c: Likewise.
2590         * guile/scm-value.c: Likewise.
2591         * h8300-tdep.c: Likewise.
2592         * hppa-hpux-nat.c: Likewise.
2593         * hppa-tdep.c: Likewise.
2594         * hppanbsd-tdep.c: Likewise.
2595         * hppaobsd-tdep.c: Likewise.
2596         * i386-darwin-nat.c: Likewise.
2597         * i386-darwin-tdep.c: Likewise.
2598         * i386-nto-tdep.c: Likewise.
2599         * i386-tdep.c: Likewise.
2600         * i386bsd-nat.c: Likewise.
2601         * i386fbsd-tdep.c: Likewise.
2602         * i386gnu-nat.c: Likewise.
2603         * i386nbsd-tdep.c: Likewise.
2604         * i386obsd-tdep.c: Likewise.
2605         * i387-tdep.c: Likewise.
2606         * ia64-libunwind-tdep.c: Likewise.
2607         * ia64-tdep.c: Likewise.
2608         * inf-ptrace.c: Likewise.
2609         * inf-ttrace.c: Likewise.
2610         * infcall.c: Likewise.
2611         * infcmd.c: Likewise.
2612         * infrun.c: Likewise.
2613         * inline-frame.c: Likewise.
2614         * interps.c: Likewise.
2615         * jv-lang.c: Likewise.
2616         * jv-typeprint.c: Likewise.
2617         * linux-fork.c: Likewise.
2618         * linux-nat.c: Likewise.
2619         * linux-thread-db.c: Likewise.
2620         * m32c-tdep.c: Likewise.
2621         * m32r-linux-nat.c: Likewise.
2622         * m32r-tdep.c: Likewise.
2623         * m68k-tdep.c: Likewise.
2624         * m68kbsd-nat.c: Likewise.
2625         * m68kbsd-tdep.c: Likewise.
2626         * m88k-tdep.c: Likewise.
2627         * machoread.c: Likewise.
2628         * macroexp.c: Likewise.
2629         * macrotab.c: Likewise.
2630         * maint.c: Likewise.
2631         * mdebugread.c: Likewise.
2632         * memory-map.c: Likewise.
2633         * mep-tdep.c: Likewise.
2634         * mi/mi-common.c: Likewise.
2635         * microblaze-tdep.c: Likewise.
2636         * mingw-hdep.c: Likewise.
2637         * mips-linux-nat.c: Likewise.
2638         * mips-linux-tdep.c: Likewise.
2639         * mips-tdep.c: Likewise.
2640         * mips64obsd-tdep.c: Likewise.
2641         * mipsnbsd-tdep.c: Likewise.
2642         * mn10300-linux-tdep.c: Likewise.
2643         * mn10300-tdep.c: Likewise.
2644         * moxie-tdep.c: Likewise.
2645         * mt-tdep.c: Likewise.
2646         * nat/linux-btrace.c: Likewise.
2647         * nat/linux-osdata.c: Likewise.
2648         * nat/linux-ptrace.c: Likewise.
2649         * nat/mips-linux-watch.c: Likewise.
2650         * nios2-linux-tdep.c: Likewise.
2651         * nios2-tdep.c: Likewise.
2652         * objc-lang.c: Likewise.
2653         * objfiles.c: Likewise.
2654         * obsd-nat.c: Likewise.
2655         * opencl-lang.c: Likewise.
2656         * osabi.c: Likewise.
2657         * parse.c: Likewise.
2658         * ppc-linux-nat.c: Likewise.
2659         * ppc-sysv-tdep.c: Likewise.
2660         * ppcfbsd-nat.c: Likewise.
2661         * ppcfbsd-tdep.c: Likewise.
2662         * ppcnbsd-nat.c: Likewise.
2663         * ppcnbsd-tdep.c: Likewise.
2664         * ppcobsd-nat.c: Likewise.
2665         * ppcobsd-tdep.c: Likewise.
2666         * printcmd.c: Likewise.
2667         * procfs.c: Likewise.
2668         * prologue-value.c: Likewise.
2669         * psymtab.c: Likewise.
2670         * python/py-lazy-string.c: Likewise.
2671         * python/py-value.c: Likewise.
2672         * regcache.c: Likewise.
2673         * reggroups.c: Likewise.
2674         * registry.c: Likewise.
2675         * remote-sim.c: Likewise.
2676         * remote.c: Likewise.
2677         * rs6000-aix-tdep.c: Likewise.
2678         * rs6000-tdep.c: Likewise.
2679         * s390-linux-tdep.c: Likewise.
2680         * score-tdep.c: Likewise.
2681         * ser-base.c: Likewise.
2682         * ser-mingw.c: Likewise.
2683         * sh-tdep.c: Likewise.
2684         * sh64-tdep.c: Likewise.
2685         * solib-darwin.c: Likewise.
2686         * solib-spu.c: Likewise.
2687         * solib-svr4.c: Likewise.
2688         * source.c: Likewise.
2689         * sparc-nat.c: Likewise.
2690         * sparc-sol2-tdep.c: Likewise.
2691         * sparc-tdep.c: Likewise.
2692         * sparc64-sol2-tdep.c: Likewise.
2693         * sparc64-tdep.c: Likewise.
2694         * sparc64fbsd-tdep.c: Likewise.
2695         * sparc64nbsd-tdep.c: Likewise.
2696         * sparc64obsd-tdep.c: Likewise.
2697         * sparcnbsd-tdep.c: Likewise.
2698         * sparcobsd-tdep.c: Likewise.
2699         * spu-multiarch.c: Likewise.
2700         * spu-tdep.c: Likewise.
2701         * stabsread.c: Likewise.
2702         * stack.c: Likewise.
2703         * symfile.c: Likewise.
2704         * symtab.c: Likewise.
2705         * target-descriptions.c: Likewise.
2706         * target-memory.c: Likewise.
2707         * target.c: Likewise.
2708         * tic6x-linux-tdep.c: Likewise.
2709         * tic6x-tdep.c: Likewise.
2710         * tilegx-linux-nat.c: Likewise.
2711         * tilegx-tdep.c: Likewise.
2712         * top.c: Likewise.
2713         * tramp-frame.c: Likewise.
2714         * tui/tui-out.c: Likewise.
2715         * tui/tui-winsource.c: Likewise.
2716         * ui-out.c: Likewise.
2717         * user-regs.c: Likewise.
2718         * utils.c: Likewise.
2719         * v850-tdep.c: Likewise.
2720         * valops.c: Likewise.
2721         * value.c: Likewise.
2722         * varobj.c: Likewise.
2723         * vax-nat.c: Likewise.
2724         * xml-syscall.c: Likewise.
2725         * xml-tdesc.c: Likewise.
2726         * xstormy16-tdep.c: Likewise.
2727         * xtensa-linux-nat.c: Likewise.
2728         * xtensa-tdep.c: Likewise.
2729
2730 2014-08-07  Gary Benson  <gbenson@redhat.com>
2731
2732         * common/common-defs.h: Include common-utils.h.
2733         * defs.h: Do not include common-utils.h.
2734         * common/gdb_assert.h: Likewise.
2735         * darwin-nat.h: Likewise.
2736         * nat/linux-btrace.c: Likewise.
2737         * target/waitstatus.h: Likewise.
2738
2739 2014-08-07  Gary Benson  <gbenson@redhat.com>
2740
2741         * common/common-defs.h: Include ptid.h.
2742         * defs.h: Do not include ptid.h.
2743         * inferior.h: Likewise.
2744         * infrun.h: Likewise.
2745         * nat/linux-btrace.h: Likewise.
2746         * nat/linux-osdata.h: Likewise.
2747         * target/waitstatus.h: Likewise.
2748
2749 2014-08-07  Gary Benson  <gbenson@redhat.com>
2750
2751         * common/common-defs.h: Include gdb_locale.h.
2752         * defs.h: Do not include gdb_locale.h.
2753
2754 2014-08-07  Gary Benson  <gbenson@redhat.com>
2755
2756         * common/common-defs.h: Include gdb/signals.h.
2757         * defs.h: Do not include gdb/signals.h.
2758
2759 2014-08-07  Gary Benson  <gbenson@redhat.com>
2760
2761         * common/common-defs.h: Include pathmax.h.
2762         * defs.h: Do not include pathmax.h.
2763
2764 2014-08-07  Gary Benson  <gbenson@redhat.com>
2765
2766         * common/common-defs.h: Include libiberty.h.
2767         * defs.h: Do not include libiberty.h.
2768         * common/queue.h: Likewise.
2769         * cp-name-parser.y: Likewise.
2770         * mi/mi-cmd-catch.c: Likewise.
2771         * python/python.c: Likewise.
2772
2773 2014-08-07  Gary Benson  <gbenson@redhat.com>
2774
2775         * common/common-defs.h: Include ansidecl.h.
2776         * defs.h: Do not include ansidecl.h.
2777         * common/buffer.h: Likewise.
2778         * common/common-utils.h: Likewise.
2779
2780 2014-08-07  Gary Benson  <gbenson@redhat.com>
2781
2782         * common/common-defs.h: Include stddef.h.
2783         * defs.h: Do not include stddef.h.
2784         * common/common-utils.h: Likewise.
2785         * amd64fbsd-nat.c: Likewise.
2786         * bcache.c: Likewise.
2787         * charset.c: Likewise.
2788         * common/buffer.h: Likewise.
2789         * common/vec.h: Likewise.
2790         * i386bsd-nat.c: Likewise.
2791         * nat/linux-btrace.h: Likewise.
2792         * ppcfbsd-nat.c: Likewise.
2793         * ppcnbsd-tdep.h: Likewise.
2794         * ppcobsd-nat.c: Likewise.
2795         * ppcobsd-tdep.h: Likewise.
2796         * python/py-gdb-readline.c: Likewise.
2797
2798 2014-08-07  Gary Benson  <gbenson@redhat.com>
2799
2800         * common/common-defs.h: Include stdarg.h.
2801         * defs.h: Do not include stdarg.h.
2802         * ada-lang.c: Likewise.
2803         * common/common-utils.h: Likewise.
2804         * guile/scm-string.c: Likewise.
2805         * guile/scm-utils.c: Likewise.
2806         * m32c-tdep.c: Likewise.
2807
2808 2014-08-07  Gary Benson  <gbenson@redhat.com>
2809
2810         * common/common-defs.h: Include stdlib.h.
2811         * defs.h: Do not include stdlib.h.
2812         * addrmap.c: Likewise.
2813         * bcache.c: Likewise.
2814         * common/buffer.c: Likewise.
2815         * common/common-utils.c: Likewise.
2816         * cp-name-parser.y: Likewise.
2817         * go32-nat.c: Likewise.
2818         * mn10300-linux-tdep.c: Likewise.
2819         * nat/linux-osdata.c: Likewise.
2820         * tui/tui.c: Likewise.
2821         * windows-nat.c: Likewise.
2822
2823 2014-08-07  Gary Benson  <gbenson@redhat.com>
2824
2825         * common/common-defs.h: Include stdio.h.
2826         * defs.h: Do not include stdio.h.
2827         * ada-lang.c: Likewise.
2828         * common/buffer.c: Likewise.
2829         * common/common-utils.c: Likewise.
2830         * cp-name-parser.y: Likewise.
2831         * gnu-nat.c: Likewise.
2832         * go32-nat.c: Likewise.
2833         * i386gnu-nat.c: Likewise.
2834         * proc-api.c: Likewise.
2835         * proc-events.c: Likewise.
2836         * proc-flags.c: Likewise.
2837         * proc-why.c: Likewise.
2838         * python/python-internal.h: Likewise.
2839         * target-memory.c: Likewise.
2840         * tui/tui-io.c: Likewise.
2841         * tui/tui.c: Likewise.
2842
2843 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2844
2845         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2846         (scan_dyntag_auxv): Same.
2847
2848 2014-08-06  Yao Qi  <yao@codesourcery.com>
2849
2850         * amd64-linux-nat.c: Remove duplicated include
2851         "x86-linux-nat.h".
2852         * i386-linux-nat.c: Likewise.
2853
2854 2014-08-06  Yao Qi  <yao@codesourcery.com>
2855
2856         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2857         operand" with "Special opcode" in comments.
2858
2859 2014-08-05  Gary Benson  <gbenson@redhat.com>
2860
2861         * interps.c (initialize_interps): Remove prototype.
2862         (interpreter_initialized): Remove static global.
2863         (interp_add): Do not call initialize_interps.
2864         (initialize_interps): Remove function.
2865
2866 2014-08-05  Gary Benson  <gbenson@redhat.com>
2867
2868         * utils.c (vwarning): Remove spurious va_end.
2869
2870 2014-08-05  Alan Modra  <amodra@gmail.com>
2871
2872         * charset.c (convert_between_encodings): Cast result of obstack_base.
2873         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2874         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2875         (read_unwind_info): Use size_t for some locals.
2876         * jit.c (finalize_symtab): Likewise.
2877         * utils.c (hashtab_obstack_allocate): Likewise.
2878         * symmisc.c (print_objfile_statistics): Update format strings.
2879
2880 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2881
2882         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2883         (Changes in GDB 7.8): ... here.
2884
2885 2014-08-04  Tom Tromey  <tromey@redhat.com>
2886
2887         * target.c (set_targetdebug): New function.
2888         (initialize_targets): Pass set_targetdebug when creating "set
2889         debug target".
2890
2891 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2892
2893         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2894         if detecting a variable-sized field that is not the last field.
2895         Fix struct type length computation.
2896
2897 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2898
2899         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2900         Add debug trace.
2901
2902 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2903
2904         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2905         Remove "+ 8" offset in computation of CHAIN_VMA.
2906
2907 2014-07-31  Doug Evans  <dje@google.com>
2908
2909         * inflow.c (child_terminal_inferior): Add comment.
2910         (child_terminal_ours_for_output): Add comment.
2911         (child_terminal_ours): Add comment.
2912         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2913         (linux_nat_terminal_ours): Add comment.
2914
2915 2014-07-31  Gary Benson  <gbenson@redhat.com>
2916
2917         * common/btrace-common.h: Do not include defs.h or server.h.
2918         * nat/mips-linux-watch.h: Likewise.
2919         * gdb-dlfcn.h: Do not include defs.h.
2920         * tracefile.h: Likewise.
2921
2922 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2923
2924         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2925
2926 2014-07-30  Tom Tromey  <tromey@redhat.com>
2927
2928         * bsd-kvm.c (bsd_kvm_open): Constify.
2929         * corelow.c (core_open): Constify.
2930         * ctf.c (ctf_open): Constify.
2931         * dbug-rom.c (dbug_open): Constify.
2932         * exec.c (exec_open): Constify.
2933         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2934         * microblaze-rom.c (picobug_open): Constify.
2935         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2936         Constify.
2937         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2938         * record-btrace.c (record_btrace_open): Constify.
2939         * record-full.c (record_full_core_open_1, record_full_open_1)
2940         (record_full_open): Constify.
2941         * remote-m32r-sdi.c (m32r_open): Constify.
2942         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2943         (rockhopper_open, lsi_open): Constify.
2944         * remote-sim.c (gdbsim_open): Constify.
2945         * remote.c (remote_open, extended_remote_open, remote_open_1):
2946         Constify.
2947         * target.h (struct target_ops) <to_open>: Make "arg" const.
2948         * tracefile-tfile.c (tfile_open): Constify.
2949
2950 2014-07-30  Tom Tromey  <tromey@redhat.com>
2951
2952         * breakpoint.c (map_breakpoint_numbers): Update.
2953         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2954         (get_number_const): New function.
2955         (get_number): Rewrite using get_number_const.
2956         (init_number_or_range): Make "string" const.
2957         (number_is_in_list): Make "list" const.
2958         * cli/cli-utils.h (get_number_const): Declare.
2959         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2960         (init_number_or_range, number_is_in_list): Update.
2961         * printcmd.c (map_display_numbers): Update.
2962         * value.c (value_from_history_ref): Constify.
2963         * value.h (value_from_history_ref): Update.
2964
2965 2014-07-30  Tom Tromey  <tromey@redhat.com>
2966
2967         * corefile.c (hook_type, call_extra_exec_file_hooks)
2968         (specify_exec_file_hook): Constify.
2969         * exec.c (exec_file_attach): Make "filename" const.
2970         * gdbcore.h (deprecated_exec_file_display_hook)
2971         (specify_exec_file_hook, exec_file_attach): Constify.
2972         * main.c (captured_main): Use catch_command_errors_const.
2973
2974 2014-07-30  Tom Tromey  <tromey@redhat.com>
2975
2976         * target.c (open_target): New function.
2977         (add_target_with_completer, add_deprecated_target_alias): Use
2978         set_cmd_sfunc, set_cmd_context.
2979         (debug_to_open): Remove.
2980         (setup_target_debug): Update.
2981
2982 2014-07-30  Yao Qi  <yao@codesourcery.com>
2983
2984         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2985         comments.
2986         * parse.c (exp_iterate): Update comments.
2987
2988 2014-07-30  Gary Benson  <gbenson@redhat.com>
2989
2990         * common/common-defs.h: New file.
2991         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2992         * defs.h: Include common-defs.h.
2993         Do not include config.h or build-gnulib/config.h.
2994
2995 2014-07-30  Gary Benson  <gbenson@redhat.com>
2996
2997         * common/common-utils.h: Do not include config.h.
2998         * nat/linux-btrace.h: Likewise.
2999
3000 2014-07-30  Gary Benson  <gbenson@redhat.com>
3001
3002         * btrace.c: Include defs.h.
3003         * common/ptid.c: Include defs.h or server.h as appropriate.
3004         * nat/mips-linux-watch.c: Likewise.
3005
3006 2014-07-29  Tom Tromey  <tromey@redhat.com>
3007
3008         * target.c (target_is_pushed): Simplify.
3009
3010 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3011
3012         GDB 7.8 released.
3013
3014 2014-07-29  Yao Qi  <yao@codesourcery.com>
3015
3016         PR gdb/17206
3017         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3018
3019 2014-07-28  Doug Evans  <xdje42@gmail.com>
3020
3021         PR guile/17203
3022         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3023         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3024         parameters.
3025
3026 2014-07-28  Will Newton  <will.newton@linaro.org>
3027
3028         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3029         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3030         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3031         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3032         (THUMB2_EABI_SYSCALL): Likewise.
3033         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3034         struct tramp_frame.
3035         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3036         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3037
3038 2014-07-27  Doug Evans  <xdje42@gmail.com>
3039
3040         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3041
3042 2014-07-27  Doug Evans  <xdje42@gmail.com>
3043
3044         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3045
3046 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3047             Doug Evans  <xdje42@gmail.com>
3048
3049         PR guile/17146
3050         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3051         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3052         * configure.ac: Try to use guild to compile an scm file, if it fails
3053         then disable guile support.
3054         * configure: Regenerate.
3055         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3056         GUILE_FILE_LIST.
3057         (GUILE_COMPILED_FILES): New variable.
3058         (GUILE_FILES) Update.
3059         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3060         (stamp-guile): Compile scm files.
3061         * guile/guile.c (boot_guile_support): New function.
3062         (standard_throw_args_p): New function.
3063         (print_standard_throw_error, print_throw_error): New functions.
3064         (handle_boot_error): New function.
3065         (initialize_scheme_side): Rewrite to call boot_guile_support.
3066         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3067         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3068
3069 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3070             Doug Evans  <xdje42@gmail.com>
3071
3072         PR guile/17146
3073         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3074         * guile/lib/gdb/support.scm: New file.
3075         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3076         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3077         All uses updated.
3078         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3079         All uses updated.
3080         (%assert-type): Ditto, and renamed to assert-type.
3081         (%exception-print-style): Delete.
3082
3083 2014-07-26  Doug Evans  <xdje42@gmail.com>
3084
3085         PR build/17105
3086         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3087         * configure: Regenerate.
3088         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3089         PYTHON_FILES.
3090         (PYTHON_FILES): New variable.
3091         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3092         (GUILE_FILES): New variable.
3093         (stamp-python, install-python, uninstall-python): Handle empty
3094         file list.
3095         (stamp-guile, install-guile, uninstall-guile): Ditto.
3096
3097 2014-07-26  Doug Evans  <xdje42@gmail.com>
3098
3099         PR guile/17177
3100         * guile/lib/gdb.scm (pretty-printers): Export.
3101         (set-pretty-printers!): Export.
3102         * guile/lib/gdb/printing.scm (gdb module): Update.
3103         (prepend-pretty-printer!, append-pretty-printer!): Update.
3104         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3105         (pretty_printer_list_var): Delete.
3106         (pretty_printer_list): New static global.
3107         (gdbscm_pretty_printers): New function.
3108         (gdbscm_set_pretty_printers_x): New function.
3109         (ppscm_find_pretty_printer_from_gdb): Update.
3110         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3111         (gdbscm_initialize_pretty_printers): Update.
3112
3113 2014-07-26  Doug Evans  <xdje42@gmail.com>
3114
3115         PR 17185
3116         * configure.ac: Add check for header gc/gc.h.
3117         Add check for function setenv.
3118         * configure: Regenerate.
3119         * config.in: Regenerate.
3120         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3121
3122 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3123
3124         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3125         variation in gdbarch matching.
3126
3127 2014-07-25  Tom Tromey  <tromey@redhat.com>
3128
3129         * exec.c (using_exec_ops): Remove.
3130         (exec_close_1): Update.  Remove extraneous block, reindent.
3131         (add_target_sections): Use target_is_pushed.
3132
3133 2014-07-25  Pedro Alves  <palves@redhat.com>
3134
3135         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3136         * monitor.c (monitor_create_inferior): Likewise.
3137         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3138         * remote-sim.c (gdbsim_create_inferior): Likewise.
3139         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3140         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3141         * windows-nat.c (do_initial_windows_stuff): Likewise.
3142
3143 2014-07-25  Pedro Alves  <palves@redhat.com>
3144
3145         * NEWS: Mention signal passing and "signal" command changes.
3146         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3147         comment.
3148         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3149         call.
3150         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3151         * infcmd.c (proceed_thread_callback, continue_1, step_once)
3152         (jump_command): Adjust clear_proceed_status call.
3153         (signal_command): Warn if other thread that are resumed have
3154         signals that will be delivered.  Adjust clear_proceed_status call.
3155         (until_next_command, finish_command)
3156         (proceed_after_attach_callback, attach_command_post_wait)
3157         (attach_command): Adjust clear_proceed_status call.
3158         * infrun.c (proceed_after_vfork_done): Likewise.
3159         (proceed_after_attach_callback): Adjust comment.
3160         (clear_proceed_status_thread): Clear stop_signal if not in pass
3161         state.
3162         (clear_proceed_status_callback): Delete.
3163         (clear_proceed_status): New 'step' parameter.  Only clear the
3164         proceed status of threads the command being prepared is about to
3165         resume.
3166         (proceed): If passed in an explicit signal, override stop_signal
3167         with it.  Don't pass the last stop signal to the thread we're
3168         resuming.
3169         (init_wait_for_inferior): Adjust clear_proceed_status call.
3170         (switch_back_to_stepped_thread): Clear the signal if it should not
3171         be passed.
3172         * infrun.h (clear_proceed_status): New 'step' parameter.
3173         (user_visible_resume_ptid): Add comment.
3174         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3175         signal is in pass state.
3176         * remote.c (append_pending_thread_resumptions): Likewise.
3177         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3178
3179 2014-07-25  Tom Tromey  <tromey@redhat.com>
3180
3181         * target.h (target_stopped_data_address)
3182         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
3183         parentheses.
3184
3185 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
3186
3187         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3188         comments.
3189         (avr_pointer_to_address): Likewise.
3190
3191 2014-07-24  Tom Tromey  <tromey@redhat.com>
3192
3193         * monitor.c (compile_pattern): Update.
3194         * target.h (struct target_ops) <to_shortname, to_longname,
3195         to_doc>: Now const.
3196
3197 2014-07-24  Tom Tromey  <tromey@redhat.com>
3198
3199         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3200         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3201         (add_info_alias, add_com): Make "doc" const.
3202         (print_doc_line): Make "str" const.
3203         (delete_cmd): Update.
3204         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3205         (print_doc_line): Update.
3206         * cli/cli-script.c (document_command): Update.
3207         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3208         (add_com, add_info, add_info_alias): Update.
3209         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3210         * python/py-cmd.c (cmdpy_destroyer): Update.
3211
3212 2014-07-24  Tom Tromey  <tromey@redhat.com>
3213
3214         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3215         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3216         (help_cmd_list): Constify.
3217         (lookup_cmd): Update.
3218         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3219         const.
3220         (help_cmd_list, apropos_cmd): Update.
3221         * cli/cli-script.c (show_user): Update.
3222         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3223         * cli/cli-setshow.h (cmd_show_list): Update.
3224         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3225         (cmd_show_list): Update.
3226         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3227         * python/py-cmd.c (cmdpy_destroyer): Update.
3228
3229 2014-07-24  Tom Tromey  <tromey@redhat.com>
3230
3231         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3232         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3233         const.
3234         * command.h (deprecate_cmd): Update.
3235         * maint.c (maintenance_do_deprecate): Add casts.
3236
3237 2014-07-24  Tom Tromey  <tromey@redhat.com>
3238
3239         * cli/cli-decode.c (help_cmd): Make parameter "const".
3240         * cli/cli-decode.h (help_cmd): Update.
3241
3242 2014-07-24  Tom Tromey  <tromey@redhat.com>
3243
3244         * stack.c (up_silently_base, down_silently_base): Make argument
3245         const.
3246
3247 2014-07-24  Tom Tromey  <tromey@redhat.com>
3248
3249         * solib.c (solib_add): Make "pattern" const.
3250         * solib.h (solib_add): Update.
3251
3252 2014-07-24  Tom Tromey  <tromey@redhat.com>
3253
3254         * remote.c (remote_serial_open, print_packet, putpkt)
3255         (putpkt_binary): Constify.
3256         * remote.h (putpkt): Update.
3257
3258 2014-07-24  Tom Tromey  <tromey@redhat.com>
3259
3260         * monitor.c (monitor_open): Make "args" const.
3261         * monitor.h (monitor_open): Update.
3262
3263 2014-07-24  Tom Tromey  <tromey@redhat.com>
3264
3265         * maint.c (match_bfd_flags): Make "string" const.
3266         (print_bfd_section_info): Remove casts.
3267         (print_objfile_section_info): Make "string" const.
3268
3269 2014-07-24  Tom Tromey  <tromey@redhat.com>
3270
3271         * inf-child.c (inf_child_open_target): Make "arg" const.
3272         * inf-child.h (inf_child_open_target): Update.
3273
3274 2014-07-24  Tom Tromey  <tromey@redhat.com>
3275
3276         * environ.c (unset_in_environ): Make "var" const.
3277         * environ.h (unset_in_environ): Update.
3278
3279 2014-07-24  Tom Tromey  <tromey@redhat.com>
3280
3281         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3282         Make "cmd" const.
3283         (scan_filename_with_cleanup): Likewise.
3284         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3285         Make arguments const.
3286         (restore_command): Update.
3287
3288 2014-07-24  Pedro Alves  <palves@redhat.com>
3289
3290         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3291
3292 2014-07-24  Tom Tromey  <tromey@redhat.com>
3293             Gary Benson  <gbenson@redhat.com>
3294
3295         * nat/linux-ptrace.c (additional_flags): New global.
3296         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3297         additional_flags; don't check GDBSERVER.
3298         (linux_ptrace_set_additional_flags): New function.
3299         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3300         Declare.
3301         * linux-nat.c (_initialize_linux_nat): Call
3302         linux_ptrace_set_additional_flags.
3303
3304 2014-07-24  Tom Tromey  <tromey@redhat.com>
3305
3306         * make-target-delegates (munge_type, write_debugmethod): New
3307         functions.
3308         (debug_names): New global.
3309         ($TARGET_DEBUG_PRINTER): New global.
3310         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3311         name.
3312         Write debug methods.  Generate init_debug_target.
3313         * target-debug.h: New file.
3314         * target-delegates.c: Rebuild.
3315         * target.c: Include target-debug.h.
3316         (debug_target): Hoist definition.
3317         (target_kill, target_get_section_table, target_memory_map)
3318         (target_flash_erase, target_flash_done, target_detach)
3319         (target_disconnect, target_wait, target_resume)
3320         (target_pass_signals, target_program_signals, target_follow_fork)
3321         (target_mourn_inferior, target_search_memory)
3322         (target_thread_address_space, target_close)
3323         (target_find_new_threads, target_core_of_thread)
3324         (target_verify_memory, target_insert_mask_watchpoint)
3325         (target_remove_mask_watchpoint): Remove targetdebug code.
3326         (debug_to_post_attach, debug_to_prepare_to_store)
3327         (debug_to_files_info, debug_to_insert_breakpoint)
3328         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3329         (debug_to_region_ok_for_hw_watchpoint)
3330         (debug_to_can_accel_watchpoint_condition)
3331         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3332         (debug_to_watchpoint_addr_within_range)
3333         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3334         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3335         (debug_to_terminal_init, debug_to_terminal_inferior)
3336         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3337         (debug_to_terminal_save_ours, debug_to_terminal_info)
3338         (debug_to_load, debug_to_post_startup_inferior)
3339         (debug_to_insert_fork_catchpoint)
3340         (debug_to_remove_fork_catchpoint)
3341         (debug_to_insert_vfork_catchpoint)
3342         (debug_to_remove_vfork_catchpoint)
3343         (debug_to_insert_exec_catchpoint)
3344         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3345         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3346         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3347         (setup_target_debug): Call init_debug_target.
3348         * target.h (TARGET_DEBUG_PRINTER): New macro.
3349         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3350         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3351
3352 2014-07-24  Gary Benson  <gbenson@redhat.com>
3353
3354         * exceptions.h (throw_vfatal): Renamed to...
3355         (throw_vquit): New declaration.
3356         (throw_quit): Likewise.
3357         * exceptions.c (throw_vfatal): Renamed to...
3358         (throw_vquit): New function.
3359         (throw_quit): Likewise.
3360         (throw_error): Call throw_verror rather than throw_it.
3361         * utils.h (vfatal): Removed.
3362         (fatal): Likewise.
3363         * utils.c (vfatal): Removed.
3364         (fatal): Likewise.
3365         (internal_verror): Replaced call to fatal with call to throw_quit.
3366         (quit): Replaced calls to fatal with calls to throw_quit.
3367
3368 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3369
3370         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3371         target_read_code.
3372
3373 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3374
3375         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3376         less than zero in conditional expression.
3377
3378 2014-07-23  Tom Tromey  <tromey@redhat.com>
3379
3380         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3381         ($INTRO_PART): Don't match whitespace.
3382         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3383         argument matching.
3384         ($METHOD): Add $METHOD_TRAILER.
3385         (trim): Rewrite.
3386         (scan_target_h): New sub.
3387         Change main loop not to collect state.
3388         * target-delegates.c: Rebuild.
3389
3390 2014-07-23  Gary Benson  <gbenson@redhat.com>
3391
3392         * cp-support.c (gdb_demangle): Fix build on systems without
3393         sigaltstack.
3394
3395 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3396
3397         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3398         for reference entry value target data value.
3399
3400 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3401
3402         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3403         value_available_contents_eq.
3404
3405 2014-07-22  Pedro Alves  <palves@redhat.com>
3406
3407         * value.c (allocate_optimized_out_value): Don't mark value as
3408         non-lazy.
3409
3410 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3411
3412         * MAINTAINERS (Write After Approval): Update my email address.
3413
3414 2014-07-20  Doug Evans  <dje@google.com>
3415
3416         PR server/17147
3417         * remote.c (putpkt_binary): Add text to error message.
3418
3419 2014-07-20  Yao Qi  <yao@codesourcery.com>
3420
3421         * eval.c: Remove "Chill" from comments.
3422         * gdbtypes.h: Likewise.
3423         * symtab.h: Likewise.
3424
3425 2014-07-20  Yao Qi  <yao@codesourcery.com>
3426
3427         * std-operator.def: Update comments to TERNOP_SLICE.
3428
3429 2014-07-20  Yao Qi  <yao@codesourcery.com>
3430
3431         * std-operator.def: Remove BINOP_RANGE.
3432         * breakpoint.c (watchpoint_exp_is_const): Update.
3433         * expprint.c (dump_subexp_body_standard): Likewise.
3434         * eval.c (init_array_element): Remove dead code.
3435         (evaluate_subexp_standard): Likewise.
3436
3437 2014-07-20  Yao Qi  <yao@codesourcery.com>
3438
3439         * std-operator.def: Remove BINOP_IN.
3440         * breakpoint.c (watchpoint_exp_is_const): Update.
3441         * eval.c (evaluate_subexp_standard): Likewise.
3442         * expprint.c (dump_subexp_body_standard): Likewise.
3443
3444 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3445
3446         * microblaze-tdep.c (microblaze_register_names): Add
3447         the rshr and rslr register names.
3448         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3449         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3450         Use of tdesc_numbered_register. Use of
3451         microblaze_register_g_packet_guesses. Use of
3452         tdesc_use_registers. Use of set_gdbarch_register_type.
3453         (microblaze_register_g_packet_guesses): New.
3454         * microblaze-tdep.h (microblaze_reg_num): Add
3455         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3456         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3457         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3458         * features/microblaze-core.xml: New file.
3459         * features/microblaze-stack-protect.xml: New file.
3460         * features/microblaze-with-stack-protect.c: New file.
3461         * features/microblaze-with-stack-protect.xml: New file.
3462         * features/microblaze.xml: New file.
3463         * features/microblaze.c: New file.
3464         * features/Makefile (microblaze-with-stack-protect): Add
3465         microblaze-with-stack-protect microblaze and microblaze-expedite.
3466         * regformats/microblaze-with-stack-protect.dat: New file.
3467         * regformats/microblaze.dat: New file.
3468         * doc/gdb.texinfo (MicroBlaze Features): Added.
3469
3470 2014-07-18  Tom Tromey  <tromey@redhat.com>
3471
3472         * exec.c (exec_ops): Now static.
3473         * exec.h (exec_ops): Don't declare.
3474
3475 2014-07-18  Tom Tromey  <tromey@redhat.com>
3476
3477         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3478         to find_target_beneath.
3479         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3480         find_target_beneath.
3481         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3482
3483 2014-07-18  Tom Tromey  <tromey@redhat.com>
3484
3485         PR gdb/17130:
3486         * utils.c (quit): Use target_supports_terminal_ours.
3487         * target.h (target_supports_terminal_ours): Declare.
3488         * target.c (target_supports_delete_record): Don't check
3489         to_delete_record against NULL.
3490         (target_supports_terminal_ours): New function.
3491
3492 2014-07-18  Tom Tromey  <tromey@redhat.com>
3493
3494         PR gdb/17130:
3495         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3496         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3497         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3498         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3499         * windows-nat.c (windows_xfer_partial): Always delegate.
3500         * record-btrace.c (record_btrace_xfer_partial): Simplify
3501         delegation.
3502         (record_btrace_fetch_registers, record_btrace_store_registers)
3503         (record_btrace_prepare_to_store, record_btrace_resume)
3504         (record_btrace_wait, record_btrace_find_new_threads)
3505         (record_btrace_thread_alive): Likewise.
3506         * procfs.c (procfs_xfer_partial): Always delegate.
3507         * corelow.c (core_xfer_partial): Always delegate.
3508         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3509
3510 2014-07-18  Tom Tromey  <tromey@redhat.com>
3511
3512         * exec.c (exec_make_note_section): Move earlier.
3513
3514 2014-07-17  Doug Evans  <dje@google.com>
3515
3516         PR gdb/17170
3517         * maint.c (count_symtabs_and_blocks): Handle NULL
3518         current_program_space.
3519         (report_command_stats): Check global enabled flag in addition to
3520         recorded enabled flag.
3521         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3522
3523 2014-07-16  Pedro Alves  <palves@redhat.com>
3524
3525         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3526
3527 2014-07-16  Tom Tromey  <tromey@redhat.com>
3528
3529         * target.h (struct target_ops) <to_delete_record>: Reformat
3530         comment.
3531
3532 2014-07-16  Tom Tromey  <tromey@redhat.com>
3533
3534         * target-delegates.c: Rebuild.
3535
3536 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3537
3538         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3539         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3540         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3541         (avr_pointer_to_address): Likewise.
3542         (avr_address_class_type_flags): New function.
3543         (avr_address_class_type_flags_to_name): Likewise.
3544         (avr_address_class_name_to_type_flags): Likewise.
3545         (avr_gdbarch_init): Set address_class_type_flags,
3546         address_class_type_flags_to_name and
3547         address_class_name_to_type_flags.
3548
3549 2014-07-15  Pedro Alves  <palves@redhat.com>
3550
3551         * linux-nat.c (kill_callback): Save errno and work with saved
3552         copy.
3553
3554 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3555
3556         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3557
3558 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3559
3560         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3561         breakpoint support correctly.
3562
3563 2014-07-14  Pedro Alves  <palves@redhat.com>
3564
3565         * utils.c (prompt_for_continue): Call target_terminal_ours.
3566
3567 2014-07-14  Pedro Alves  <palves@redhat.com>
3568
3569         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3570         catch_errors.  Don't re-enable stdin or notify observers where,
3571         and rethrow error.
3572         (fetch_inferior_event_wrapper): Delete.
3573
3574 2014-07-14  Pedro Alves  <palves@redhat.com>
3575
3576         PR gdb/17072
3577         * top.c: Include "inf-loop.h".
3578         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3579         field.
3580         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3581         was async before.
3582         (gdb_readline_wrapper): Store whether the target is async, and
3583         make it sync.
3584
3585 2014-07-14  Pedro Alves  <palves@redhat.com>
3586
3587         PR gdb/17072
3588         * top.c (gdb_readline_wrapper_line): Tweak comment.
3589         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3590         the input handler callback.
3591
3592 2014-07-14  Pedro Alves  <palves@redhat.com>
3593
3594         PR gdb/17072
3595         * main.c: Include event-top.h.
3596         (handle_command_errors): New function.
3597         (catch_command_errors, catch_command_errors_const): Use it.
3598
3599 2014-07-14  Pedro Alves  <palves@redhat.com>
3600
3601         * exceptions.c (catch_command_errors, catch_command_errors_const):
3602         Moved to main.c.
3603         * exceptions.h (catch_command_errors_ftype)
3604         (catch_command_errors_const_ftype): Moved to main.c.
3605         (catch_command_errors, catch_command_errors_const): Delete
3606         declarations.
3607         * main.c (catch_command_errors_ftype)
3608         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3609         (catch_command_errors, catch_command_errors_const)): Moved here
3610         from exceptions.c and make static.
3611
3612 2014-07-14  Pedro Alves  <palves@redhat.com>
3613
3614         * exceptions.c (print_any_exception): Delete.
3615         (catch_exceptions_with_msg): Use exception_print instead of
3616         print_any_exception.
3617         (catch_errors): Use exception_fprintf instead of
3618         print_any_exception.
3619         (catch_command_errors, catch_command_errors_const): Use
3620         exception_print instead of print_any_exception.
3621
3622 2014-07-14  Pedro Alves  <palves@redhat.com>
3623
3624         * infcall.c (run_inferior_call): Set 'sync_execution' while
3625         running the inferior call.
3626
3627 2014-07-14  Pedro Alves  <palves@redhat.com>
3628
3629         * value.c (value_contents_equal): Delete function.
3630         * value.h (value_contents_equal): Delete declaration.
3631
3632 2014-07-14  Tom Tromey  <tromey@redhat.com>
3633
3634         PR exp/17106:
3635         * gdbtypes.c (is_dynamic_type_internal): New function, from
3636         is_dynamic_type.
3637         (is_dynamic_type): Rewrite.
3638         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3639         (resolve_dynamic_struct): Likewise.
3640         (resolve_dynamic_type_internal): New function, from
3641         resolve_dynamic_type.
3642         (resolve_dynamic_type): Rewrite.
3643
3644 2014-07-14  Tom Tromey  <tromey@redhat.com>
3645
3646         * target.c (target_require_runnable): Also check record_stratum.
3647         Update comment.
3648
3649 2014-07-11  Yao Qi  <yao@codesourcery.com>
3650
3651         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3652         thumb_instruction_restores_sp return true.
3653
3654 2014-07-11  Yao Qi  <yao@codesourcery.com>
3655
3656         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3657         (thumb_in_function_epilogue_p): Call
3658         thumb_instruction_restores_sp.
3659
3660 2014-07-11  Yao Qi  <yao@codesourcery.com>
3661
3662         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3663         'add sp, #imm'.
3664         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3665
3666 2014-07-11  Gary Benson  <gbenson@redhat.com>
3667
3668         * amd64-linux-nat.c (gdbcore.h): Remove include.
3669         (regset.h): Likewise.
3670         (nat/linux-btrace.h): Likewise.
3671         (btrace.h): Likewise.
3672         (gdb_assert.h): Likewise.
3673         (string.h): Likewise.
3674         (sys/uio.h): Likewise.
3675         (sys/debugreg.h): Likewise.
3676         (sys/syscall.h): Likewise.
3677         (sys/procfs.h): Likewise.
3678         (sys/user.h): Likewise.
3679         (asm/ptrace.h): Likewise.
3680         (i386-nat.h): Likewise.
3681         * i386-linux-nat.c (i386-nat.h): Likewise.
3682         (regset.h): Likewise.
3683         (target.h): Likewise.
3684         (linux-nat.h): Likewise.
3685         (nat/linux-btrace.h): Likewise.
3686         (btrace.h): Likewise.
3687         (gdb_assert.h): Likewise.
3688         (string.h): Likewise.
3689         (sys/uio.h): Likewise.
3690         (sys/user.h): Likewise.
3691         (sys/procfs.h): Likewise.
3692         (sys/reg.h): Likewise.
3693         (sys/debugreg.h): Likewise.
3694         (ORIG_EAX): Remove definition.
3695
3696 2014-07-11  Gary Benson  <gbenson@redhat.com>
3697
3698         * i386-linux-nat.h: New file.
3699         * x86-linux-nat.h: Likewise.
3700         * x86-linux-nat.c: Likewise.
3701         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3702         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3703         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3704         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3705         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3706         (PTRACE_SETREGSET): Likewise.
3707         (arch_lwp_info): Now in x86-linux-nat.c.
3708         (have_ptrace_getregset): Now in x86-linux-nat.h.
3709         (x86_linux_dr_get): Now in x86-linux-nat.c.
3710         (x86_linux_dr_set): Likewise.
3711         (x86_linux_dr_get_addr): Likewise.
3712         (x86_linux_dr_get_control): Likewise.
3713         (x86_linux_dr_get_status): Likewise.
3714         (update_debug_registers_callback): Likewise.
3715         (x86_linux_dr_set_control): Likewise.
3716         (x86_linux_dr_set_addr): Likewise.
3717         (x86_linux_prepare_to_resume): Likewise.
3718         (x86_linux_new_thread): Likewise.
3719         (x86_linux_new_fork): Likewise.
3720         (x86_linux_get_thread_area): Likewise.
3721         (super_post_startup_inferior): Likewise.
3722         (x86_linux_child_post_startup_inferior): Likewise.
3723         (AMD64_LINUX_USER64_CS): Likewise.
3724         (AMD64_LINUX_X32_DS): Likewise.
3725         (x86_linux_read_description): Likewise.
3726         (x86_linux_enable_btrace): Likewise.
3727         (x86_linux_disable_btrace): Likewise.
3728         (x86_linux_teardown_btrace): Likewise.
3729         (x86_linux_read_btrace): Likewise.
3730         (x86_linux_create_target): Likewise.
3731         (x86_linux_add_target): Likewise.
3732         * i386-linux-nat.c (x86-linux-nat.h): New include.
3733         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3734         (PTRACE_SETREGSET): Likewise.
3735         (arch_lwp_info): Now in x86-linux-nat.c.
3736         (have_ptrace_getregset): Now in x86-linux-nat.h.
3737         (x86_linux_dr_get): Now in x86-linux-nat.c.
3738         (x86_linux_dr_set): Likewise.
3739         (x86_linux_dr_get_addr): Likewise.
3740         (x86_linux_dr_get_control): Likewise.
3741         (x86_linux_dr_get_status): Likewise.
3742         (update_debug_registers_callback): Likewise.
3743         (x86_linux_dr_set_control): Likewise.
3744         (x86_linux_dr_set_addr): Likewise.
3745         (x86_linux_prepare_to_resume): Likewise.
3746         (x86_linux_new_thread): Likewise.
3747         (x86_linux_new_fork): Likewise.
3748         (x86_linux_get_thread_area): Likewise.
3749         (super_post_startup_inferior): Likewise.
3750         (x86_linux_child_post_startup_inferior): Likewise.
3751         (AMD64_LINUX_USER64_CS): Likewise.
3752         (AMD64_LINUX_X32_DS): Likewise.
3753         (x86_linux_read_description): Likewise.
3754         (x86_linux_enable_btrace): Likewise.
3755         (x86_linux_disable_btrace): Likewise.
3756         (x86_linux_teardown_btrace): Likewise.
3757         (x86_linux_read_btrace): Likewise.
3758         (x86_linux_create_target): Likewise.
3759         (x86_linux_add_target): Likewise.
3760
3761 2014-07-11  Gary Benson  <gbenson@redhat.com>
3762
3763         * amd64-linux-nat.c: Comment and whitespace changes.
3764         * i386-linux-nat.c: Comment and whitespace changes.
3765
3766 2014-07-11  Gary Benson  <gbenson@redhat.com>
3767
3768         * amd64-linux-nat.c (x86_linux_create_target): New function.
3769         (x86_linux_add_target): Likewise.
3770         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3771         * i386-linux-nat.c (x86_linux_create_target): New function.
3772         (x86_linux_add_target): Likewise.
3773         (_initialize_i386_linux_nat): Delegate to the above new functions.
3774
3775 2014-07-11  Gary Benson  <gbenson@redhat.com>
3776
3777         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3778         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3779         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3780         (ps_get_thread_area): Delegate to the above.
3781
3782 2014-07-11  Gary Benson  <gbenson@redhat.com>
3783
3784         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3785         x86_linux_read_description.  All uses updated.  amd64-specific
3786         code conditionalized.  Conditionalized i386-specific code added.
3787         Redundant cast removed.
3788         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3789         x86_linux_read_description.  All uses updated.  i386-specific
3790         code conditionalized.  Conditionalized amd64-specific code added.
3791         One sizeof replaced with the actual type it is describing.
3792
3793 2014-07-11  Gary Benson  <gbenson@redhat.com>
3794
3795         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3796         x86_linux_dr_get.  All uses updated.
3797         (amd64_linux_dr_set): Renamed to
3798         x86_linux_dr_set.  All uses updated.
3799         (amd64_linux_dr_get_addr): Renamed to
3800         x86_linux_dr_get_addr.  All uses updated.
3801         (amd64_linux_dr_get_control): Renamed to
3802         x86_linux_dr_get_control.  All uses updated.
3803         (amd64_linux_dr_get_status): Renamed to
3804         x86_linux_dr_get_status.  All uses updated.
3805         (amd64_linux_dr_set_control): Renamed to
3806         x86_linux_dr_set_control.  All uses updated.
3807         (amd64_linux_dr_set_addr): Renamed to
3808         x86_linux_dr_set_addr.  All uses updated.
3809         (amd64_linux_prepare_to_resume): Renamed to
3810         x86_linux_prepare_to_resume.  All uses updated.
3811         (amd64_linux_new_thread): Renamed to
3812         x86_linux_new_thread.  All uses updated.
3813         (amd64_linux_new_fork): Renamed to
3814         x86_linux_new_fork.  All uses updated.
3815         (amd64_linux_child_post_startup_inferior): Renamed to
3816         x86_linux_child_post_startup_inferior.  All uses updated.
3817         (amd64_linux_enable_btrace): Renamed to
3818         x86_linux_enable_btrace.  All uses updated.
3819         (amd64_linux_disable_btrace): Renamed to
3820         x86_linux_disable_btrace.  All uses updated.
3821         (amd64_linux_teardown_btrace): Renamed to
3822         x86_linux_teardown_btrace.  All uses updated.
3823         (amd64_linux_read_btrace): Renamed to
3824         x86_linux_read_btrace.  All uses updated.
3825         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3826         x86_linux_dr_get.  All uses updated.
3827         (i386_linux_dr_set): Renamed to
3828         x86_linux_dr_set.  All uses updated.
3829         (i386_linux_dr_get_addr): Renamed to
3830         x86_linux_dr_get_addr.  All uses updated.
3831         (i386_linux_dr_get_control): Renamed to
3832         x86_linux_dr_get_control.  All uses updated.
3833         (i386_linux_dr_get_status): Renamed to
3834         x86_linux_dr_get_status.  All uses updated.
3835         (i386_linux_dr_set_control): Renamed to
3836         x86_linux_dr_set_control.  All uses updated.
3837         (i386_linux_dr_set_addr): Renamed to
3838         x86_linux_dr_set_addr.  All uses updated.
3839         (i386_linux_prepare_to_resume): Renamed to
3840         x86_linux_prepare_to_resume.  All uses updated.
3841         (i386_linux_new_thread): Renamed to
3842         x86_linux_new_thread.  All uses updated.
3843         (i386_linux_new_fork): Renamed to
3844         x86_linux_new_fork.  All uses updated.
3845         (i386_linux_child_post_startup_inferior): Renamed to
3846         x86_linux_child_post_startup_inferior.  All uses updated.
3847         (i386_linux_enable_btrace): Renamed to
3848         x86_linux_enable_btrace.  All uses updated.
3849         (i386_linux_disable_btrace): Renamed to
3850         x86_linux_disable_btrace.  All uses updated.
3851         (i386_linux_teardown_btrace): Renamed to
3852         x86_linux_teardown_btrace.  All uses updated.
3853         (i386_linux_read_btrace): Renamed to
3854         x86_linux_read_btrace.  All uses updated.
3855
3856 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3857
3858         * remote.c (extended_remote_post_attach): New function.
3859         (init_extended_remote_ops): Install it as to_post_attach method.
3860
3861 2014-07-09  Pedro Alves  <palves@redhat.com>
3862
3863         * infcmd.c (attach_command_post_wait): Don't call
3864         target_terminal_inferior here.
3865         (attach_command): Call it here instead.
3866
3867 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3868
3869         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3870         field.
3871         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3872         from varobj.c, with additional checks.
3873         (c_varobj_ops): Fill in is_path_expr_parent field.
3874         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3875         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3876         field.
3877         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3878         ops method.
3879         (varobj_default_is_path_expr_parent): New function.
3880         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3881         (varobj_default_is_path_expr_parent): Declare new function.
3882
3883 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3884
3885         * infcmd.c (finish_backward): Turn internal error into normal error.
3886
3887 2014-07-07  Pedro Alves  <palves@redhat.com>
3888
3889         PR gdb/17096
3890         * remote.c (async_handle_remote_sigint)
3891         (async_handle_remote_sigint_twice): Call
3892         gdb_call_async_signal_handler instead of
3893         mark_async_signal_handler.
3894
3895 2014-07-07  Tom Tromey  <tromey@redhat.com>
3896
3897         * target-delegates.c: Rebuild.
3898         * target.c (target_info_record): Remove.
3899         * record.c (info_record_command): Unconditionally call
3900         to_info_record.
3901         * target.h (struct target_ops) <to_info_record>: Use
3902         TARGET_DEFAULT_IGNORE.
3903         (target_info_record): Remove.
3904
3905 2014-07-07  Tom Tromey  <tromey@redhat.com>
3906
3907         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3908         TARGET_DEFAULT_NORETURN.
3909         * target.c (generic_tls_error): New function.
3910         (target_translate_tls_address): Don't search target stack.
3911         * target-delegates.c: Rebuild.
3912         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3913         stack.
3914         * linux-thread-db.c (thread_db_get_thread_local_address):
3915         Unconditionally call beneath target.
3916
3917 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3918
3919         * cli/cli-logging.c (pop_output_files): Assign targerr to
3920         gdb_stdtargerr.
3921
3922 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3923
3924         * MAINTAINERS (Write After Approval): Update my email address.
3925
3926 2014-07-02  Gary Benson  <gbenson@redhat.com>
3927
3928         * proc-service.c (ps_xfer_memory): Update comment.
3929         (ps_pstop): Remove unused function.
3930         (ps_pcontinue): Likewise.
3931         (ps_lstop): Likewise.
3932         (ps_lcontinue): Likewise.
3933         (ps_lgetxregsize): Likewise.
3934         (ps_lgetxregs): Likewise.
3935         (ps_lsetxregs): Likewise.
3936         (ps_plog): Likewise.
3937         (ps_ptread): Likewise.
3938         (ps_ptwrite): Likewise.
3939
3940 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3941
3942         * dwarf2read.c (add_array_cv_type): New function.
3943         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3944         (read_tag_volatile_type): Likewise.
3945
3946 2014-07-01  Tom Tromey  <tromey@redhat.com>
3947
3948         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3949         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3950         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3951         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3952         * command.h (cmd_cfunc_ftype): Move earlier.
3953         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3954         (add_com, add_info): Use cmd_cfunc_ftype.
3955
3956 2014-06-30  Tom Tromey  <tromey@redhat.com>
3957
3958         * symtab.c (operator_chars): Make parameters and return type
3959         const.
3960         (file_matches): Make "files" const.
3961         (struct search_symbols_data) <files>: Now const.
3962         (search_symbols): Make "regexp" and "files" parameters const.
3963         Update.
3964         (symtab_symbol_info): Remove cast.
3965         (rbreak_command): Update.
3966         * symtab.h (search_symbols): Update.
3967
3968 2014-06-27  Yao Qi  <yao@codesourcery.com>
3969
3970         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3971         Change parameter type to 'struct thread_info *'.  Caller
3972         updated.
3973         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3974         Update declaration.
3975         * dummy-frame.c (struct dummy_frame_id): New.
3976         (dummy_frame_id_eq): New function.
3977         (struct dummy_frame) <id>: Change its type to 'struct
3978         dummy_frame_id'.
3979         (dummy_frame_push): Add parameter ptid and save it in
3980         dummy_frame_id.
3981         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3982         inferior_ptid.
3983         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3984         to inferior_ptid.
3985         (lookup_dummy_frame): Change parameter type to 'struct
3986         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3987         instead of frame_id_eq.
3988         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3989         Update comments.  Compose dummy_frame_id and pass it to
3990         lookup_dummy_frame.
3991         (dummy_frame_discard): Add parameter ptid.
3992         (dummy_frame_sniffer): Compose dummy_frame_id and call
3993         dummy_frame_id_eq instead of frame_id_eq.
3994         (fprint_dummy_frames): Print ptid.
3995         * dummy-frame.h: Remove comments.
3996         (dummy_frame_push): Add ptid in declaration.
3997         (dummy_frame_pop, dummy_frame_discard): Likewise.
3998
3999 2014-06-26  Tom Tromey  <tromey@redhat.com>
4000
4001         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4002         * command.h (error_no_arg): Update.
4003
4004 2014-06-26  Tom Tromey  <tromey@redhat.com>
4005
4006         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4007         (do_show_command): Make "arg" const.
4008         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4009
4010 2014-06-26  Tom Tromey  <tromey@redhat.com>
4011
4012         * record-full.c (record_full_get_bookmark): Make "args" const.
4013         (record_full_goto_bookmark): Make "raw_bookmark" const.
4014         * record.c (record_goto): New function.
4015         (cmd_record_goto): Use it.  Now static.
4016         * record.h (record_goto): Declare.
4017         (cmd_record_goto): Remove declaration.
4018         * target-delegates.c: Rebuild.
4019         * target.h (struct target_ops) <to_get_bookmark,
4020         to_goto_bookmark>: Make parameter const.
4021
4022 2014-06-26  Tom Tromey  <tromey@redhat.com>
4023
4024         * defs.h (generic_load): Update.
4025         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4026         * monitor.c (monitor_load): Make "args" const.
4027         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4028         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4029         const.
4030         (mips_load): Make "file" const.
4031         * remote-sim.c (gdbsim_load): Make "args" const.
4032         * remote.c (remote_load): Make "name" const.
4033         * symfile.c (generic_load): Make "args" const.
4034         * target-delegates.c: Rebuild.
4035         * target.c (target_load): Make "arg" const.
4036         (debug_to_load): Make "args" const.
4037         * target.h (struct target_ops) <to_load>: Make parameter const.
4038         (target_load): Update.
4039
4040 2014-06-26  Tom Tromey  <tromey@redhat.com>
4041
4042         PR symtab/16902:
4043         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4044         (dwarf2_physname, read_partial_die)
4045         (guess_partial_die_structure_name, fixup_partial_die)
4046         (guess_full_die_structure_name, anonymous_struct_prefix)
4047         (dwarf2_name): Use per-BFD obstack.
4048
4049 2014-06-26  Yao Qi  <yao@codesourcery.com>
4050
4051         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4052         dummyframe and this_id into inner block below.
4053
4054 2014-06-26  Yao Qi  <yao@codesourcery.com>
4055
4056         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4057         with "signal_pass[0]" in the initialization of signal_pass.
4058
4059 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4060
4061         * record-btrace.c (record_btrace_generating_corefile)
4062         (record_btrace_prepare_to_generate_core)
4063         (record_btrace_done_generating_core): New.
4064         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4065         (record_btrace_store_registers, record_btrace_prepare_to_store):
4066         Forward request when generating a core file.
4067         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4068         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4069         to_done_generating_core.
4070
4071 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4072
4073         * target.h (target_ops) <to_prepare_to_generate_core>
4074         <to_done_generating_core>: New.
4075         (target_prepare_to_generate_core, target_done_generating_core): New.
4076         * target.c (target_prepare_to_generate_core)
4077         (target_done_generating_core): New.
4078         * target-delegates.c: Regenerate.
4079         * gcore.c: (write_gcore_file): Rename to ...
4080         (write_gcore_file_1): ...this.
4081         (write_gcore_file): Call target_prepare_to_generate_core
4082         and target_done_generating_core.
4083
4084 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4085
4086         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4087         * gcore.c (write_gcore_file): Free memory returned from
4088         make_corefile_notes.
4089         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4090         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4091
4092 2014-06-24  Yao Qi  <yao@codesourcery.com>
4093
4094         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4095         (arm_linux_init_abi): Set skip_trampoline_code with
4096         gdbarch_skip_trampoline_code instead of
4097         find_solib_trampoline_target.
4098
4099 2014-06-24  Yao Qi  <yao@codesourcery.com>
4100
4101         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4102         arm_skip_bx_reg returns non-zero.
4103
4104 2014-06-24  Yao Qi  <yao@codesourcery.com>
4105
4106         * arm-tdep.c (arm_skip_bx_reg): New function.
4107         (arm_skip_stub): Call arm_skip_bx_reg.
4108
4109 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4110
4111         * MAINTAINERS: Add myself as write-after-approval maintainer.
4112
4113 2014-06-23  Pedro Alves  <palves@redhat.com>
4114
4115         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4116         DR_CONTROL before setting DR0..DR3.
4117         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4118         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4119         bits of DR_CONTROL related to the debug register slot being
4120         disabled.  If all slots are vacant, clear local slowdown as well,
4121         and assert DR_CONTROL is 0.
4122
4123 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4124
4125         * python/lib/gdb/command/xmethods.py
4126         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4127         current progspace only if the string "progspace" matches LOCUS_RE.
4128
4129 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4130
4131         Fix --with-system-readline with readline-6.3 patch 5.
4132         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4133         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4134         types.
4135
4136 2014-06-20  Tom Tromey  <tromey@redhat.com>
4137
4138         * dwarf2read.c (dw2_get_real_path): Use correct type in
4139         OBSTACK_CALLOC.
4140         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4141
4142 2014-06-20  Gary Benson  <gbenson@redhat.com>
4143
4144         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4145         * common/glibc_thread_db.h: Likewise.
4146         * common/i386-cpuid.h: Likewise.
4147         * common/i386-gcc-cpuid.h: Likewise.
4148         * common/linux-btrace.h: Likewise.
4149         * common/linux-osdata.h: Likewise.
4150         * common/linux-procfs.h: Likewise.
4151         * common/linux-ptrace.h: Likewise.
4152         * common/mips-linux-watch.h: Likewise.
4153         * common/linux-btrace.c: Moved to nat.
4154         * common/linux-osdata.c: Likewise.
4155         * common/linux-procfs.c: Likewise.
4156         * common/linux-ptrace.c: Likewise.
4157         * common/mips-linux-watch.c: Likewise.
4158         * nat/gdb_thread_db.h: Moved from common.
4159         * nat/glibc_thread_db.h: Likewise.
4160         * nat/i386-cpuid.h: Likewise.
4161         * nat/i386-gcc-cpuid.h: Likewise.
4162         * nat/linux-btrace.c: Likewise.
4163         * nat/linux-btrace.h: Likewise.
4164         * nat/linux-osdata.c: Likewise.
4165         * nat/linux-osdata.h: Likewise.
4166         * nat/linux-procfs.c: Likewise.
4167         * nat/linux-procfs.h: Likewise.
4168         * nat/linux-ptrace.c: Likewise.
4169         * nat/linux-ptrace.h: Likewise.
4170         * nat/mips-linux-watch.c: Likewise.
4171         * nat/mips-linux-watch.h: Likewise.
4172         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4173         (object file files): Reordered.
4174         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4175         of glibc_thread_db.h.
4176
4177 2014-06-20  Gary Benson  <gbenson@redhat.com>
4178
4179         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4180         (i386_dr_low_type): Moved to nat/i386-dregs.h.
4181         (i386_dr_low): Likewise.
4182         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4183         (i386_dr_low_set_addr): Likewise.
4184         (i386_dr_low_get_addr): Likewise.
4185         (i386_dr_low_can_set_control): Likewise.
4186         (i386_dr_low_set_control): Likewise.
4187         (i386_dr_low_get_control): Likewise.
4188         (i386_dr_low_get_status): Likewise.
4189         (i386_get_debug_register_length): Likewise.
4190         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4191         (i386_dr_low): Likewise.
4192         * nat/i386-dregs.c (i386-low.h): Remove include.
4193         (i386-nat.h): Likewise.
4194         (nat/i386-dregs.h): New include.
4195         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4196         (i386_dr_low_set_addr): Likewise.
4197         (i386_dr_low_get_addr): Likewise.
4198         (i386_dr_low_can_set_control): Likewise.
4199         (i386_dr_low_set_control): Likewise.
4200         (i386_dr_low_get_control): Likewise.
4201         (i386_dr_low_get_status): Likewise.
4202         (i386_get_debug_register_length): Likewise.
4203         (debug_hw_points): Likewise.
4204
4205 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
4206
4207         * Makefile.in (SFILES): Add d-exp.y.
4208         (YYFILES): Add d-exp.c.
4209         (YYOBJ): Add d-exp.o.
4210         (local-maintainer-clean): Delete d-exp.c.
4211         * d-exp.y: New file.
4212         * d-lang.h (d_parse): New declaration.
4213         (d_error): New declaration.
4214         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4215         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4216         PREC_ORDER operators.
4217         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4218
4219 2014-06-19  Yao Qi  <yao@codesourcery.com>
4220
4221         * gdbthread.h (any_running): Remove the declaration.
4222         * thread.c (any_running): Remove.
4223
4224 2014-06-19  Yao Qi  <yao@codesourcery.com>
4225
4226         * gdbthread.h (struct thread_info) <state>: Change its type to
4227         'enum thread_state'.  Update comments.
4228
4229 2014-06-19  Pedro Alves  <palves@redhat.com>
4230
4231         * gdbthread.h (ALL_THREADS): Delete.
4232         (ALL_NON_EXITED_THREADS): New macro.
4233         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4234         instead of ALL_THREADS.
4235         * infrun.c (find_thread_needs_step_over)
4236         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4237         instead of ALL_THREADS.
4238         * record-btrace.c (record_btrace_open)
4239         (record_btrace_stop_recording, record_btrace_close)
4240         (record_btrace_is_replaying, record_btrace_resume)
4241         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4242         * remote.c (append_pending_thread_resumptions): Likewise.
4243         * thread.c (thread_apply_all_command): Likewise.
4244
4245 2014-06-19  Gary Benson  <gbenson@redhat.com>
4246
4247         * i386-nat.c (i386_stopped_by_watchpoint):
4248         Use i386_dr_stopped_by_watchpoint.
4249         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4250         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4251
4252 2014-06-19  Gary Benson  <gbenson@redhat.com>
4253
4254         * nat/i386-dregs.c: New file.
4255         * Makefile.in (i386-dregs.o): New rule.
4256         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4257         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4258         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4259         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4260         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4261         * config/i386/go32.mh (NATDEPFILES): Likewise.
4262         * config/i386/linux.mh (NATDEPFILES): Likewise.
4263         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4264         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4265         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4266         * i386-nat.h (debug_hw_points): New declaration.
4267         * i386-nat.c (breakpoint.h): Remove include.
4268         (command.h): Likewise.
4269         (target.h): Likewise.
4270         (gdb_assert.h): Likewise.
4271         (debug_hw_points): Made nonstatic.
4272         (debug_printf): Now in i386-dregs.c.
4273         (TARGET_HAS_DR_LEN_8): Likewise.
4274         (DR_CONTROL_SHIFT): Likewise.
4275         (DR_CONTROL_SIZE): Likewise.
4276         (DR_RW_EXECUTE): Likewise.
4277         (DR_RW_WRITE): Likewise.
4278         (DR_RW_READ): Likewise.
4279         (DR_RW_IORW): Likewise.
4280         (DR_LEN_1): Likewise.
4281         (DR_LEN_2): Likewise.
4282         (DR_LEN_4): Likewise.
4283         (DR_LEN_8): Likewise.
4284         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4285         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4286         (DR_ENABLE_SIZE): Likewise.
4287         (DR_LOCAL_SLOWDOWN): Likewise.
4288         (DR_GLOBAL_SLOWDOWN): Likewise.
4289         (DR_CONTROL_RESERVED): Likewise.
4290         (I386_DR_CONTROL_MASK): Likewise.
4291         (I386_DR_VACANT): Likewise.
4292         (I386_DR_LOCAL_ENABLE): Likewise.
4293         (I386_DR_GLOBAL_ENABLE): Likewise.
4294         (I386_DR_DISABLE): Likewise.
4295         (I386_DR_SET_RW_LEN): Likewise.
4296         (I386_DR_GET_RW_LEN): Likewise.
4297         (I386_DR_WATCH_HIT): Likewise.
4298         (i386_wp_op_t): Likewise.
4299         (i386_show_dr): Likewise.
4300         (i386_length_and_rw_bits): Likewise.
4301         (i386_insert_aligned_watchpoint): Likewise.
4302         (i386_remove_aligned_watchpoint): Likewise.
4303         (i386_handle_nonaligned_watchpoint): Likewise.
4304         (i386_update_inferior_debug_regs): Likewise.
4305         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4306         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4307         (i386_region_ok_for_watchpoint):
4308         Use i386_dr_region_ok_for_watchpoint.
4309         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4310
4311 2014-06-19  Gary Benson  <gbenson@redhat.com>
4312
4313         * i386-nat.c (i386_insert_hw_breakpoint): Use
4314         i386_insert_watchpoint.
4315         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4316
4317 2014-06-19  Gary Benson  <gbenson@redhat.com>
4318
4319         * i386-nat.c (i386_dr_show): Renamed to
4320         i386_show_dr and made static.  All uses updated.
4321         (i386_dr_length_and_rw_bits): Renamed to
4322         i386_length_and_rw_bits and made static.
4323         All uses updated.
4324         (i386_dr_insert_aligned_watchpoint): Renamed to
4325         i386_insert_aligned_watchpoint and made static.
4326         All uses updated.
4327         (i386_dr_remove_aligned_watchpoint): Renamed to
4328         i386_remove_aligned_watchpoint and made static.
4329         All uses updated.
4330         (i386_dr_update_inferior_debug_regs): Renamed to
4331         i386_update_inferior_debug_regs and made static.
4332         All uses updated.
4333         * nat/i386-dregs.h (i386_dr_show): Removed.
4334         (i386_dr_length_and_rw_bits): Likewise.
4335         (i386_dr_insert_aligned_watchpoint): Likewise.
4336         (i386_dr_remove_aligned_watchpoint): Likewise.
4337         (i386_dr_update_inferior_debug_regs): Likewise.
4338
4339 2014-06-19  Gary Benson  <gbenson@redhat.com>
4340
4341         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4342         * configure: Regenerate.
4343         * config.in: Likewise.
4344         * main.c (signal.h): New include.
4345         (setup_alternate_signal_stack): New function.
4346         (captured_main): Call the above.
4347         * cp-support.c (signal.h): New include.
4348         (catch_demangler_crashes): New flag.
4349         (SIGJMP_BUF): New define.
4350         (SIGSETJMP): Likewise.
4351         (SIGLONGJMP): Likewise.
4352         (gdb_demangle_jmp_buf): New static global.
4353         (gdb_demangle_attempt_core_dump): Likewise.
4354         (gdb_demangle_signal_handler): New function.
4355         (gdb_demangle): If catch_demangler_crashes is set, install the
4356         above signal handler before calling bfd_demangle, and restore
4357         the original signal handler afterwards.  Display the offending
4358         symbol and call demangler_warning the first time a segmentation
4359         fault is caught.
4360         (_initialize_cp_support): New maint set/show command.
4361
4362 2014-06-19  Gary Benson  <gbenson@redhat.com>
4363
4364         * utils.h (resource_limit_kind): New enum.
4365         (can_dump_core): New declaration.
4366         (warn_cant_dump_core): Likewise.
4367         (dump_core): Likewise.
4368         * utils.c (dump_core): Made nonstatic.  Added new
4369         parameter "limit_kind".
4370         (can_dump_core): Made nonstatic. Moved printing code to...
4371         (warn_cant_dump_core): New function.
4372         (can_dump_core_warn): Likewise.
4373         (internal_vproblem): Replace calls to can_dump_core with
4374         calls to can_dump_core_warn.  Supply new argument to each.
4375
4376 2014-06-19  Gary Benson  <gbenson@redhat.com>
4377
4378         * utils.h (demangler_vwarning): New declaration.
4379         (demangler_warning): Likewise.
4380         * utils.c (struct internal_problem)
4381         <user_settable_should_quit>: New field.
4382         <user_settable_should_dump_core>: Likewise
4383         (internal_error_problem): Add values for above new fields.
4384         (internal_warning_problem): Likewise.
4385         (demangler_warning_problem): New static global.
4386         (demangler_vwarning): New function.
4387         (demangler_warning): Likewise.
4388         (add_internal_problem_command): Selectively add commands.
4389         (_initialize_utils): New internal problem command.
4390         * maint.c (maintenance_demangler_warning): New function.
4391         (_initialize_maint_cmds): New command.
4392
4393 2014-06-18  Tom Tromey  <tromey@redhat.com>
4394
4395         * f-valprint.c (info_common_command_for_block): Update.
4396         * symtab.h (struct general_symbol_info) <common_block>: Now
4397         const.
4398
4399 2014-06-18  Tom Tromey  <tromey@redhat.com>
4400
4401         * symtab.h (struct symtab) <blockvector>: Now const.
4402         * ada-lang.c (ada_add_global_exceptions): Update.
4403         * buildsym.c (augment_type_symtab): Update.
4404         * dwarf2read.c (dw2_lookup_symbol): Update.
4405         * jit.c (finalize_symtab): Update.
4406         * jv-lang.c (add_class_symtab_symbol): Update.
4407         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4408         Update.
4409         * objfiles.c (objfile_relocate1): Update.
4410         * psymtab.c (lookup_symbol_aux_psymtabs)
4411         (maintenance_check_psymtabs): Update.
4412         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4413         Update.
4414         * spu-tdep.c (spu_catch_start): Update.
4415         * symmisc.c (dump_symtab_1): Update.
4416         * symtab.c (lookup_global_symbol_from_objfile)
4417         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4418         (basic_lookup_transparent_type_quick)
4419         (basic_lookup_transparent_type, find_pc_sect_symtab)
4420         (find_pc_sect_line, search_symbols): Update.
4421         * block.c (find_block_in_blockvector): Make "bl" const.
4422         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4423         const.
4424         (blockvector_contains_pc): Make "bv" const.
4425         (block_for_pc_sect): Update.
4426         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4427         (blockvector_contains_pc): Update.
4428         * breakpoint.c (resolve_sal_pc): Update.
4429         * inline-frame.c (block_starting_point_at): Update.
4430
4431 2014-06-18  Tom Tromey  <tromey@redhat.com>
4432
4433         * completer.c (complete_line): Make "line_buffer" const.
4434         * completer.h (complete_line): Update.
4435
4436 2014-06-18  Tom Tromey  <tromey@redhat.com>
4437
4438         * symtab.c (add_macro_name): Remove unneeded cast.
4439
4440 2014-06-18  Tom Tromey  <tromey@redhat.com>
4441
4442         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4443         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4444
4445 2014-06-18  Tom Tromey  <tromey@redhat.com>
4446
4447         * probe.c (info_probes_for_ops): Make "arg" const.
4448         * probe.h (info_probes_for_ops): Update.
4449
4450 2014-06-18  Tom Tromey  <tromey@redhat.com>
4451
4452         * varobj.c (varobj_create): Update.
4453         * valops.c (value_of_this): Update.
4454         * tracepoint.c (add_local_symbols, scope_info): Update.
4455         * symtab.h (struct general_symbol_info) <block>: Now const.
4456         * symtab.c (skip_prologue_sal)
4457         (default_make_symbol_completion_list_break_on)
4458         (skip_prologue_using_sal): Update.
4459         * stack.h (iterate_over_block_locals)
4460         (iterate_over_block_local_vars): Update.
4461         * stack.c (print_frame_args): Update.
4462         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4463         parameter const.
4464         (get_selected_block): Make return type const.
4465         * python/py-frame.c (frapy_block): Update.
4466         * python/py-block.c (gdbpy_block_for_pc): Update.
4467         * p-exp.y (%union) <bval>: Now const.
4468         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4469         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4470         * m2-exp.y (%union) <bval>: Now const.
4471         * linespec.c (get_current_search_block): Make return type const.
4472         (create_sals_line_offset, find_label_symbols): Update.
4473         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4474         Update.
4475         (block_starting_point_at): Make "block" const.
4476         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4477         (check_exception_resume): Update.
4478         * guile/scm-frame.c (gdbscm_frame_block): Update.
4479         * guile/scm-block.c (gdbscm_lookup_block): Update.
4480         * frame.h (get_frame_block): Update.
4481         (get_selected_block): Make return type const.
4482         * frame.c (frame_id_inner): Update.
4483         * f-valprint.c (info_common_command_for_block)
4484         (info_common_command): Update.
4485         * dwarf2loc.c (dwarf2_find_location_expression)
4486         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4487         (locexpr_describe_location_piece): Update.
4488         * c-exp.y (%union) <bval>: Now const.
4489         * breakpoint.c (resolve_sal_pc): Update.
4490         * blockframe.c (get_frame_block):Make return type const.
4491         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4492         (block_innermost_frame): Update.
4493         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4494         (block_for_pc, block_for_pc_sect): Update.
4495         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4496         'pblock' const.
4497         (block_for_pc_sect, block_for_pc): Make return type const.
4498         * ax-gdb.c (gen_expr): Update.
4499         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4500         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4501         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4502         (ada_read_var_value): Update.
4503         * ada-exp.y (struct name_info) <block>: Now const.
4504         (%union): Likewise.
4505         (block_lookup): Constify.
4506
4507 2014-06-18  Gary Benson  <gbenson@redhat.com>
4508
4509         * nat/i386-dregs.h: New file.
4510         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4511         * i386-nat.h (i386-dregs.h): New include.
4512         (DR_FIRSTADDR): Now in i386-dregs.h.
4513         (DR_LASTADDR): Likewise.
4514         (DR_NADDR): Likewise.
4515         (DR_STATUS): Likewise.
4516         (DR_CONTROL): Likewise.
4517         (i386_debug_reg_state): Likewise.
4518         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4519
4520 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4521
4522         * breakpoint.c (set_longjmp_breakpoint): Call
4523         momentary_breakpoint_from_master with additional argument.
4524         (set_longjmp_breakpoint_for_call_dummy): Call
4525         momentary_breakpoint_from_master with additional argument.
4526         (set_std_terminate_breakpoint): Call
4527         momentary_breakpoint_from_master with additional argument.
4528         (momentary_breakpoint_from_master): Add argument to function
4529         definition and use it to initialize structure member flag.
4530         (clone_momentary_breakpoint): Call
4531         momentary_breakpoint_from_master with additional argument.
4532         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4533         member flags set in momentary_breakpoint_from_master.
4534
4535 2014-06-18  Gary Benson  <gbenson@redhat.com>
4536
4537         * i386-nat.c (i386_show_dr): Renamed to
4538         i386_dr_show and made nonstatic.  All uses updated.
4539         (i386_length_and_rw_bits): Renamed to
4540         i386_dr_length_and_rw_bits and made nonstatic.
4541         All uses updated.
4542         (i386_insert_aligned_watchpoint): Renamed to
4543         i386_dr_insert_aligned_watchpoint and made nonstatic.
4544         All uses updated.
4545         (i386_remove_aligned_watchpoint): Renamed to
4546         i386_dr_remove_aligned_watchpoint and made nonstatic.
4547         All uses updated.
4548         (i386_update_inferior_debug_regs): Renamed to
4549         i386_dr_update_inferior_debug_regs and made nonstatic.
4550         All uses updated.
4551
4552 2014-06-18  Gary Benson  <gbenson@redhat.com>
4553
4554         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4555         (i386_dr_low_can_set_control): Likewise.
4556         (i386_dr_low_set_addr): Likewise.
4557         (i386_dr_low_set_control): Likewise.
4558         (i386_dr_low_get_addr): Likewise.
4559         (i386_dr_low_get_status): Likewise.
4560         (i386_dr_low_get_control): Likewise.
4561         (i386_insert_aligned_watchpoint): Use new macros.
4562         (i386_update_inferior_debug_regs): Likewise.
4563         (i386_stopped_data_address): Likewise.
4564
4565 2014-06-18  Gary Benson  <gbenson@redhat.com>
4566
4567         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4568         New parameter.  All uses updated.
4569
4570 2014-06-18  Gary Benson  <gbenson@redhat.com>
4571
4572         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4573         All uses updated.
4574
4575 2014-06-18  Gary Benson  <gbenson@redhat.com>
4576
4577         * i386-nat.c (debug_printf): New macro.
4578         (i386_get_debug_register_length): Likewise.
4579         (TARGET_HAS_DR_LEN_8): Use above macro.
4580         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4581         and printf_unfiltered.  Use phex to format values.
4582
4583 2014-06-18  Gary Benson  <gbenson@redhat.com>
4584
4585         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4586         Make const.
4587
4588 2014-06-18  Gary Benson  <gbenson@redhat.com>
4589
4590         * i386-nat.c: Comment changes.
4591
4592 2014-06-18  Gary Benson  <gbenson@redhat.com>
4593
4594         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4595
4596 2014-06-18  Gary Benson  <gbenson@redhat.com>
4597
4598         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4599         (i386_insert_aligned_watchpoint): Likewise.
4600         (i386_remove_aligned_watchpoint): Likewise.
4601         (i386_handle_nonaligned_watchpoint): Likewise.
4602
4603 2014-06-18  Gary Benson  <gbenson@redhat.com>
4604
4605         * i386-nat.c: Whitespace changes.
4606
4607 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4608
4609         * MAINTAINERS: Update Roland McGrath's email address.
4610         Thanks to Sergio Durigan Junior for pointing out that he left
4611         Red Hat a while ago, and giving me a current address.
4612
4613 2014-06-17  Tom Tromey  <tromey@redhat.com>
4614
4615         * utils.h (savestring): Remove declaration.
4616
4617 2014-06-17  Tom Tromey  <tromey@redhat.com>
4618
4619         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4620
4621 2014-06-16  Keith Seitz  <keiths@redhat.com>
4622
4623         PR mi/15863
4624         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4625         to update the varobj if inferior_ptid is null_ptid.
4626
4627 2014-06-16  Tom Tromey  <tromey@redhat.com>
4628
4629         * target.h (struct target_ops) <to_info_proc>: Make parameter
4630         const.
4631         (target_info_proc): Update.
4632         * target.c (target_info_proc): Make "args" const.
4633         * procfs.c (procfs_info_proc): Update.
4634         * linux-tdep.c (linux_info_proc): Update.
4635         (linux_core_info_proc_mappings): Make "args" const.
4636         (linux_core_info_proc): Update.
4637         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4638         * gdbarch.c: Rebuild.
4639         * gdbarch.h: Rebuild.
4640         * corelow.c (core_info_proc): Update.
4641
4642 2014-06-16  Tom Tromey  <tromey@redhat.com>
4643
4644         * target.h (struct target_ops) <to_disconnect>: Make parameter
4645         const.
4646         (target_disconnect): Update.
4647         * target.c (target_disconnect): Make "args" const.
4648         * target-delegates.c: Rebuild.
4649         * remote.c (remote_disconnect): Update.
4650         * record.h (record_disconnect): Update.
4651         * record.c (record_disconnect): Update.
4652         * inf-child.c (inf_child_disconnect): Update.
4653
4654 2014-06-16  Tom Tromey  <tromey@redhat.com>
4655
4656         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4657         * target.c (debug_to_rcmd, default_rcmd): Update.
4658         * target-delegates.c: Rebuild.
4659         * remote.c (remote_rcmd): Update.
4660         * monitor.c (monitor_rcmd): Update.
4661
4662 2014-06-16  Pedro Alves  <palves@redhat.com>
4663
4664         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4665         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4666         have OBJF_SHARED set.
4667         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4668         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4669         instead of OBJF_USERLOADED.
4670         * objfiles.h (OBJF_SHARED): Update comment.
4671         (userloaded_objfile_contains_address_p): Rename to ...
4672         (shared_objfile_contains_address_p): ... this, and update
4673         comments.
4674         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4675         new objfile.
4676         (remove_symbol_file_command): Skip objfiles that don't have
4677         OBJF_SHARED set.
4678
4679 2014-06-16  Tom Tromey  <tromey@redhat.com>
4680
4681         * minsyms.h (prim_record_minimal_symbol)
4682         (prim_record_minimal_symbol_and_info): Update comments.
4683
4684 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4685
4686         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4687         or --without-guile, according to how GDB was built.
4688
4689 2014-06-13  Tom Tromey  <tromey@redhat.com>
4690
4691         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4692         to help_list.
4693         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4694         to help_list.
4695         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4696         help_list.
4697         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4698         help_list.Pass all_commands, not -1, to help_list.
4699         * cli/cli-dump.c (dump_command, append_command)
4700         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4701         (binary_dump_command, binary_append_command): Pass all_commands,
4702         not -1, to help_list.
4703         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4704         -1, to help_list.
4705         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4706         -1, to help_list.
4707         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4708         help_list.
4709         * top.c (set_history): Pass all_commands, not -1, to help_list.
4710         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4711         all_commands, not -1, to help_list.
4712         * symfile.c (overlay_command): Pass all_commands, not -1, to
4713         help_list.
4714         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4715         help_list.
4716         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4717         help_list.
4718         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4719         -1, to help_list.
4720         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4721         not -1, to help_list.
4722         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4723         not -1, to help_list.
4724         * maint.c (maintenance_command, maintenance_info_command)
4725         (maintenance_print_command, maintenance_set_cmd): Pass
4726         all_commands, not -1, to help_list.
4727         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4728         help_list.
4729         * language.c (set_check): Pass all_commands, not -1, to help_list.
4730         * infcmd.c (unset_command): Pass all_commands, not -1, to
4731         help_list.
4732         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4733         help_list.
4734         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4735         help_list.
4736         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4737         help_list.
4738         * breakpoint.c (save_command): Pass all_commands, not -1, to
4739         help_list.
4740         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4741         all_commands, not -1, to help_list.
4742
4743 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4744
4745         * regcache.c (struct register_to_invalidate): New structure.
4746         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4747         functions.
4748         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4749
4750 2014-06-12  Yao Qi  <yao@codesourcery.com>
4751
4752         * varobj.c (varobj_get_num_children): Call
4753         varobj_is_dynamic_p.
4754         (varobj_list_children): Likewise.
4755         (varobj_update): Likewise.  Update comments.
4756
4757 2014-06-12  Yao Qi  <yao@codesourcery.com>
4758
4759         * varobj.c (varobj_pretty_printed_p): Rename to ...
4760         (varobj_is_dynamic_p): ... this.  New function.
4761         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4762         (varobj_is_dynamic_p): Declare.
4763         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4764         (mi_print_value_p, varobj_update_one): Likewise.
4765
4766 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4767             Yao Qi  <yao@codesourcery.com>
4768
4769         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4770         (varobj_get_iterator): Wrap up code for pretty-printer by
4771         "#if HAVE_PYTHON" and "#endif".
4772         (update_dynamic_varobj_children): Likewise.
4773
4774 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4775             Yao Qi  <yao@codesourcery.com>
4776
4777         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4778         gdb_python_initialized is false.  Move some code from varobj.c.
4779         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4780         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4781         (struct varobj_item): Moved to varobj-iter.h".
4782         (varobj_clear_saved_item): New function.
4783         (update_dynamic_varobj_children): Move python-related code to
4784         py-varobj.c.
4785         (free_variable): Call varobj_clear_saved_item and
4786         varobj_iter_delete.
4787
4788 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4789             Yao Qi  <yao@codesourcery.com>
4790
4791         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4792         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4793         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4794         (py-varobj.o): New rule.
4795         * python/py-varobj.c: New file.
4796         * python/python-internal.h (py_varobj_get_iterator): Declare.
4797         * varobj-iter.h: New file.
4798         * varobj.c: Include "varobj-iter.h"
4799         (struct varobj) <child_iter>: Change its type from "PyObject *"
4800         to "struct varobj_iter *".
4801         <saved_item>: Likewise.
4802         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4803         [HAVE_PYTHON] (varobj_get_iterator): New function.
4804         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4805         python-specific code to python/py-varobj.c.
4806         (install_visualizer): Call varobj_iter_delete instead of
4807         Py_XDECREF.
4808         * varobj.h (varobj_ensure_python_env): Declare.
4809
4810 2014-06-12  Yao Qi  <yao@codesourcery.com>
4811
4812         * varobj.c (struct varobj_item): New structure.
4813         (create_child_with_value): Update declaration.
4814         (varobj_add_child): Replace arguments 'name' and 'value' with
4815         'item'.  All callers updated.
4816         (install_dynamic_child): Likewise.
4817         (update_dynamic_varobj_children): Likewise.
4818         (varobj_add_child): Likewise.
4819         (create_child_with_value): Likewise.
4820
4821 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4822
4823         * NEWS: Create a new section for the next release branch.
4824         Rename the section of the current branch, now that it has
4825         been cut.
4826
4827 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4828
4829         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4830         * version.in: Bump version to 7.8.50.DATE-cvs.
4831
4832 2014-06-11  Pedro Alves  <palves@redhat.com>
4833
4834         PR remote/17028
4835         * ser-mingw.c (net_windows_socket_check_pending): New function.
4836         (net_windows_select_thread): Ignore spurious wakeups.  Use
4837         net_windows_socket_check_pending.
4838         (net_windows_wait_handle): Check for pending events with
4839         ioctlsocket, through net_windows_socket_check_pending, instead of
4840         checking the socket's event.
4841
4842 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4843
4844         * python/python-internal.h (gdb_PyObject_GetAttrString)
4845         (gdb_PyObject_HasAttrString): New inline function definitions.
4846         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4847         char * of the second argument to PyObject_GetAttrString.
4848
4849 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4850
4851         * serial.c (serial_write): Fix index of character to be printed
4852         in call to serial_logchar when serial debug traces are enabled.
4853
4854 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4855
4856         * gdbtypes (resolve_dynamic_range): Add function description.
4857
4858 2014-06-09  Pedro Alves  <palves@redhat.com>
4859
4860         * linux-nat.c (linux_child_follow_fork): Initialize status with
4861         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4862         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4863         state.
4864
4865 2014-06-09  Gary Benson  <gbenson@redhat.com>
4866
4867         * common/signals.c (gdb_signal_from_host): Reorder to separate
4868         the always-available ANSI-standard signals from the signals that
4869         require checking.
4870         (do_gdb_signal_to_host): Likewise.
4871         * proc-events.c (signal_table): Likewise.
4872
4873 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4874
4875         * common/linux-ptrace.c (linux_disable_event_reporting): New
4876         function.
4877         * common/linux-ptrace.h (linux_disable_event_reporting): New
4878         declaration.
4879         * linux-nat.c (linux_child_follow_fork): Do a single step before
4880         detach.
4881
4882 2014-06-07  Keith Seitz  <keiths@redhat.com>
4883
4884         Revert:
4885         PR c++/16253
4886         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4887         from symbol_matches_domain in symtab.c. All local callers
4888         of symbol_matches_domain updated.
4889         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4890         search STRUCT_DOMAIN.
4891         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4892         independently.  standard_lookup will do that automatically.
4893         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4894         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4895         (cp_lookup_symbol_in_namespace): Likewise.
4896         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4897         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4898         may return a STRUCT_DOMAIN match.
4899         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4900         * cp-support.c: Include language.h.
4901         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4902         VAR_DOMAIN.
4903         * psymtab.c (match_partial_symbol): Compare the requested
4904         domain with the symbol's domain directly.
4905         (lookup_partial_symbol): Likewise.
4906         * symtab.c (lookup_symbol_in_language): Explain when/why
4907         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4908         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4909         appropriate languages.
4910         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4911         and moved to ada-lang.c
4912         (lookup_block_symbol): Explain that this function only returns
4913         symbol matching the requested DOMAIN.
4914         Compare the requested domain with the symbol's domain directly.
4915         (iterate_over_symbols): Compare the requested domain with the
4916         symbol's domain directly.
4917         * symtab.h (symbol_matches_domain): Remove.
4918
4919 2014-06-06  Doug Evans  <xdje42@gmail.com>
4920
4921         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4922         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4923         (gdbscm_guile_version_is_at_least): Declare.
4924         (gdbscm_scm_string_to_int): Declare.
4925         * guile/guile.c (gdbscm_guile_major_version): New global.
4926         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4927         (guile_datadir): New static global.
4928         (gdbscm_guile_data_directory): New function.
4929         (initialize_scheme_side): Update.
4930         (misc_guile_functions): Add guile-data-directory.
4931         (initialize_gdb_module): Fetch guile version number.
4932         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4933         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4934         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4935         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4936         comments.
4937         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4938         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4939         * guile/scm-value.c (gdbscm_value_to_string): Only call
4940         scm_port_conversion_strategy if Guile version >= 2.0.6.
4941
4942 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4943
4944         * main.c (print_gdb_help): Add -q and --silent.
4945
4946 2014-06-06  Gary Benson  <gbenson@redhat.com>
4947
4948         * common/signals.c: Remove preprocessor conditionals for
4949         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4950         SIGSEGV and SIGTERM.
4951         * proc-events.c: Likewise.
4952
4953 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4954
4955         * symfile.c (symfile_free_objfile): Remove restriction to
4956         OBJF_USERLOADED.
4957         * symfile-mem.c (symbol_file_add_from_memory): Call
4958         add_target_sections_of_objfile.
4959
4960 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4961
4962         * guile/scm-value.c (gdbscm_history_append_x): Use
4963         'vlscm_get_value_smob_arg_unsafe' instead of
4964         'vlscm_scm_to_value'.
4965
4966 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4967
4968         PR mi/15806
4969         * utils.c (printchar): Don't escape at all if quoter is NUL.
4970         Update function documentation to clarify effect of parameter
4971         QUOTER.
4972         * remote.c (escape_buffer): Pass '\\' as the quoter to
4973         fputstrn_unfiltered.
4974         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4975         generate the output.
4976         (mi_solib_unloaded): Same.
4977
4978 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4979
4980         * development.sh: Delete.
4981         * Makefile.in (config.status): Adjust dependency on development.sh.
4982         * configure.ac: Adjust development.sh source call.
4983         * configure: Regenerate.
4984
4985 2014-06-04  Doug Evans  <xdje42@gmail.com>
4986
4987         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4988         is_scheme_bkpt, spec.
4989         (bpscm_make_breakpoint_smob): Initialize new members.
4990         (gdbscm_create_breakpoint_x): Split into two ...
4991         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4992         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4993         (scheme_function breakpoint_functions): Update.
4994         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4995         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4996         register-breakpoint!.
4997
4998 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4999
5000         PR server/17023
5001         * mem-break.c (z_type_supported): Return zero if
5002         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5003
5004 2014-06-04  Tom Tromey  <tromey@redhat.com>
5005
5006         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5007         value_from_contents_and_address_unresolved.
5008         (ada_template_to_fixed_record_type_1): Likewise.
5009         (ada_which_variant_applies): Likewise.
5010         * value.h (value_from_contents_and_address_unresolved): Declare.
5011         * value.c (value_from_contents_and_address_unresolved): New
5012         function.
5013         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5014         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5015         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5016
5017 2014-06-04  Tom Tromey  <tromey@redhat.com>
5018
5019         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5020
5021 2014-06-04  Tom Tromey  <tromey@redhat.com>
5022
5023         * procfs.c (procfs_attach): Make "args" const.
5024         * windows-nat.c (windows_attach): Make "args" const.
5025         * nto-procfs.c (procfs_attach): Make "args" const.
5026         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5027         * go32-nat.c (go32_attach): Make "args" const.
5028         * gnu-nat.c (gnu_attach): Make "args" const.
5029         * darwin-nat.c (darwin_attach): Make "args" const.
5030         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5031         * linux-nat.c (linux_nat_attach): Make "args" const.
5032         * remote.c (extended_remote_attach_1, extended_remote_attach):
5033         Make "args" const.
5034         * target.h (struct target_ops) <to_attach>: Make "args" const.
5035         (find_default_attach): Likewise.
5036         * utils.c (parse_pid_to_attach): Make "args" const.
5037         * utils.h (parse_pid_to_attach): Update.
5038
5039 2014-06-04  Tom Tromey  <tromey@redhat.com>
5040
5041         * target-delegates.c: Rebuild.
5042         * target.c (default_thread_address_space): New function.
5043         (target_thread_address_space): Simplify.
5044         * target.h (struct target_ops) <to_thread_address_space>: Add
5045         TARGET_DEFAULT_FUNC.
5046
5047 2014-06-04  Doug Evans  <xdje42@gmail.com>
5048
5049         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5050
5051 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5052
5053         * record-btrace.c: Include event-loop.h and inf-loop.h.
5054         (record_btrace_resume_exec_dir)
5055         (record_btrace_async_inferior_event_handler)
5056         (record_btrace_handle_async_inferior_event): New.
5057         (record_btrace_open): Create async event handler.
5058         (record_btrace_close): Delete async event handler.
5059         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5060         Mark async event handler.
5061         (record_btrace_execution_direction): New.
5062         (init_record_btrace_ops): Initialize to_execution_direction.
5063
5064 2014-06-03  Doug Evans  <xdje42@gmail.com>
5065
5066         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5067         (gdbscm_make_parameter): Ditto.
5068
5069 2014-06-03  Doug Evans  <dje@google.com>
5070
5071         * exec.c (exec_close_1): Call clear_section_table instead of
5072         resize_section_table.
5073         (clear_section_table): New function.
5074         (resize_section_table): Make static.  Rename arg num_added to
5075         adjustment.
5076         * exec.h (clear_section_table): Declare.
5077         (resize_section_table): Delete.
5078         * progspace.c (release_program_space): Call clear_section_table
5079         instead of resize_section_table.
5080
5081 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5082
5083         * NEWS (Python Scripting): Add entry about the new xmethods
5084         feature.
5085
5086 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5087
5088         * python/py-xmethods.c: New file.
5089         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5090         (objfpy_dealloc): XDECREF on the new xmethods field.
5091         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5092         field.
5093         (objfpy_get_xmethods): New function.
5094         (objfile_getset): New entry 'xmethods'.
5095         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5096         (pspy_dealloc): XDECREF on the new xmethods field.
5097         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5098         field.
5099         (pspy_get_xmethods): New function.
5100         (pspace_getset): New entry 'xmethods'.
5101         * python/python-internal.h: Add declarations for new functions.
5102         * python/python.c (_initialize_python): Invoke
5103         gdbpy_initialize_xmethods.
5104         * python/lib/gdb/__init__.py (xmethods): New
5105         attribute.
5106         * python/lib/gdb/xmethod.py: New file.
5107         * python/lib/gdb/command/xmethods.py: New file.
5108
5109 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5110
5111         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5112         best match method returned by find_overload_match is an xmethod.
5113         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5114         the best matching operator returned by find_overload_match is an
5115         xmethod.
5116         * valops.c: #include "extension.h".
5117         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5118         Return void.  The list of matching source methods is returned in
5119         "fn_list" and a vector of matching debug method workers is
5120         returned in "xm_worker_vec".  Update all callers.
5121         (value_find_oload_method_list): Likewise.
5122         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5123         non-NULL, then the index of the best matching method in this
5124         vector is returned.  Update all callers.
5125         (find_overload_match): Include xmethods while performing overload
5126         resolution.
5127
5128 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5129
5130         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5131         * extension-priv.h (struct extension_language_ops): Add the
5132         xmethod interface.
5133         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5134         get_matching_xmethod_workers, get_xmethod_argtypes,
5135         invoke_xmethod, free_xmethod_worker,
5136         free_xmethod_worker_vec): New functions.
5137         * extension.h: #include "common/vec.h".
5138         New function declarations.
5139         (struct xmethod_worker): New struct.
5140         (VEC (xmethod_worker_ptr)): New vector type.
5141         (xmethod_worker_ptr): New typedef.
5142         (xmethod_worker_vec): Likewise.
5143         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5144         builtin_type.
5145         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5146         (struct builtin_type): New field "xmethod".
5147         * valarith.c (value_ptradd): Assert that the value argument is not
5148         lval_xcallable.
5149         * valops.c (value_must_coerce_to_target): Return 0 for
5150         lval_xcallable values.
5151         * value.c (struct value): New field XM_WORKER in the field
5152         LOCATION.
5153         (value_address, value_raw_address): Return 0 for lval_xcallable
5154         values.
5155         (set_value_address): Assert that the value is not an
5156         lval_xcallable.
5157         (value_free): Free the associated xmethod worker when freeing
5158         lval_xcallable values.
5159         (set_value_component_location): Assert that the WHOLE value is not
5160         lval_xcallable.
5161         (value_of_xmethod, call_xmethod): New functions.
5162         * value.h: Declare "struct xmethod_worker".
5163         Declare new functions value_of_xmethod, call_xmethod.
5164
5165 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
5166             Pedro Alves  <palves@redhat.com>
5167
5168         PR breakpoints/17000
5169         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5170         New function, extracted from software_breakpoint_inserted_here_p.
5171         (software_breakpoint_inserted_here_p): Replace factored out code
5172         by call to find_non_raw_software_breakpoint_inserted_here.
5173         (bp_target_info_copy_insertion_state): New function.
5174         (bkpt_insert_location): Handle the case of a single-step
5175         breakpoint already inserted at the same address.
5176         (bkpt_remove_location): Handle the case of a single-step
5177         breakpoint still inserted at the same address.
5178         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5179         breakpoint already inserted at the same address.
5180         (deprecated_remove_raw_breakpoint): Handle the case of a
5181         non-raw breakpoint still inserted at the same address.
5182         (find_single_step_breakpoint): New function, extracted from
5183         single_step_breakpoint_inserted_here_p.
5184         (find_single_step_breakpoint): New function,
5185         factored out from single_step_breakpoint_inserted_here_p.
5186         (single_step_breakpoint_inserted_here_p): Reimplement.
5187
5188 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
5189
5190         Pushed by Joel Brobecker  <brobecker@adacore.com>
5191         * source.c (show_substitute_path_command): Fix display of matching
5192         substitution rules.
5193
5194 2014-06-03  Gary Benson  <gbenson@redhat.com>
5195
5196         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5197
5198 2014-06-02  Doug Evans  <xdje42@gmail.com>
5199
5200         Add parameter support for Guile.
5201         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5202         (SUBDIR_GUILE_SRCS): Add scm-param.c.
5203         (scm-param.o): New rule.
5204         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5205         (gdbscm_misc_error): Declare.
5206         (gdbscm_canonicalize_command_name): Declare.
5207         (gdbscm_scm_to_host_string): Declare.
5208         (gdbscm_scm_from_host_string): Declare.
5209         (gdbscm_initialize_parameters): Declare.
5210         * guile/guile.c (initialize_gdb_module): Call
5211         gdbscm_initialize_parameters.
5212         * guile/lib/gdb.scm: Export parameter symbols.
5213         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5214         cmdscm_canonicalize_name and made public.  All callers updated.
5215         * guile/scm-exception.c (gdbscm_misc_error): New function.
5216         * guile/scm-param.c: New file.
5217         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5218         (gdbscm_scm_to_host_string): New function.
5219         (gdbscm_scm_from_host_string): New function.
5220         * scm-utils.c (gdbscm_gc_dup_argv): New function.
5221
5222 2014-06-02  Doug Evans  <xdje42@gmail.com>
5223
5224         Add command support for Guile.
5225         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5226         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5227         (scm-cmd.o): New rule.
5228         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5229         (gdbscm_user_error_p): Declare.
5230         (gdbscm_parse_command_name): Declare.
5231         (gdbscm_valid_command_class_p): Declare.
5232         (gdbscm_initialize_commands): Declare.
5233         * guile/guile.c (initialize_gdb_module): Call
5234         gdbscm_initialize_commands.
5235         * guile/lib/gdb.scm: Export command symbols.
5236         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5237         (throw-user-error): New function.
5238         * guile/scm-cmd.c: New file.
5239         * guile/scm-exception.c (user_error_symbol): New static global.
5240         (gdbscm_user_error_p): New function.
5241         (gdbscm_initialize_exceptions): Set user_error_symbol.
5242         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5243
5244 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5245
5246         * top.c (command_loop): Handle comments here...
5247         (command_line_input): ... not here.
5248
5249 2014-06-02  Doug Evans  <xdje42@gmail.com>
5250
5251         Add progspace support for Guile.
5252         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5253         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5254         (scm-progspace.o): New rule.
5255         * guile/guile-internal.h (pspace_smob): New typedef.
5256         (psscm_pspace_smob_pretty_printers): Declare.
5257         (psscm_pspace_smob_from_pspace): Declare.
5258         (psscm_scm_from_pspace): Declare.
5259         * guile/guile.c (initialize_gdb_module): Call
5260         gdbscm_initialize_pspaces.
5261         * guile/lib/gdb.scm: Export progspace symbols.
5262         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5263         support.
5264         (append-pretty-printer!): Ditto.
5265         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5266         Implement.
5267         * guile/scm-progspace.c: New file.
5268
5269 2014-06-03  Alan Modra  <amodra@gmail.com>
5270
5271         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5272         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5273
5274 2014-06-02  Doug Evans  <dje@google.com>
5275
5276         Add support for skeletonless type units.
5277         * dwarf2read.c (struct dwarf2_per_objfile): New member
5278         n_allocated_type_units.
5279         (struct dwarf2_per_objfile) <tu_stats>: New member
5280         nr_all_type_units_reallocs.
5281         (create_signatured_type_table_from_index): Initialize
5282         n_allocated_type_units
5283         (create_all_type_units): Ditto.
5284         (add_type_unit): Move up in file.  New arg slot.
5285         All callers updated.  Increase space for all_type_units more
5286         efficiently.
5287         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5288         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5289         (lookup_dwp_signatured_type): Ditto.
5290         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5291         All callers updated.
5292         (build_type_psymtabs_1): Leave type_unit_groups as
5293         NULL if no TUs present.
5294         (print_tu_stats): New function.
5295         (process_skeletonless_type_unit): New function.
5296         (process_dwo_file_for_skeletonless_type_units): New
5297         function.
5298         (process_skeletonless_type_units): New function.
5299         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5300         Call print tu_stats if debugging enabled.
5301
5302 2014-06-02  Pedro Alves  <palves@redhat.com>
5303
5304         * breakpoint.c (build_target_command_list): Don't build a command
5305         list if we have any duplicate location that isn't a dprintf.
5306
5307 2014-06-02  Pedro Alves  <palves@redhat.com>
5308
5309         * breakpoint.c (dprintf_breakpoint_hit): New function.
5310         (initialize_breakpoint_ops): Install it as dprintf's
5311         breakpoint_hit method.
5312
5313 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5314
5315         * source.c (substitute_path_rule_matches): Simplify using
5316         filename_ncmp instead of FILENAME_CMP.
5317
5318 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5319
5320         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5321
5322 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5323
5324         * configure.ac: When Guile is available, check for the
5325         availability of 'scm_new_smob'.
5326         * configure, config.h.in: Regenerate.
5327         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5328         function.
5329
5330 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5331
5332         * frame.c (struct frame_info): Add stop_string field.
5333         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5334         (get_prev_frame_always): Old content moved into
5335         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5336         TRY_CATCH, handle MEMORY_ERROR exceptions.
5337         (frame_stop_reason_string): New function definition.
5338         * frame.h (unwind_stop_reason_to_string): Extend comment to
5339         mention frame_stop_reason_string.
5340         (frame_stop_reason_string): New function declaration.
5341         * stack.c (frame_info): Switch to frame_stop_reason_string.
5342         (backtrace_command_1): Switch to frame_stop_reason_string.
5343         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5344         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5345         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5346
5347 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5348
5349         * frame.c (frame_stop_reason_string): Rename to ...
5350         (unwind_stop_reason_to_string): this.
5351         * frame.h (frame_stop_reason_string): Rename to ...
5352         (unwind_stop_reason_to_string): this.
5353         * stack.c (frame_info): Update call to frame_stop_reason_string.
5354         (backtrace_command_1): Likewise.
5355         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5356         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5357
5358 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5359
5360         * frame.c (remove_prev_frame): New function.
5361         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5362         remove_prev_frame.
5363
5364 2014-05-29  Pedro Alves  <palves@redhat.com>
5365
5366         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5367         and make it const.  When a single-step decays to a continue,
5368         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5369         to step to user_visible_resume_ptid, not what we ask the
5370         target to do.
5371
5372 2014-05-29  Pedro Alves  <palves@redhat.com>
5373
5374         * infrun.c (process_event_stop_test, handle_step_into_function)
5375         (handle_step_into_function_backward): Adjust.
5376         Don't set the even thread's stop_step and call stop_waiting before
5377         calling end_stepping_range.  Instead do that ...
5378         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5379
5380 2014-05-29  Pedro Alves  <palves@redhat.com>
5381
5382         * infrun.c (stop_stepping): Rename to ...
5383         (stop_waiting): ... this.
5384         (proceed): Update comment.
5385         (process_event_stop_test, handle_inferior_event)
5386         (handle_signal_stop, handle_step_into_function)
5387         (handle_step_into_function_backward): Update.
5388
5389 2014-05-29  Pedro Alves  <palves@redhat.com>
5390
5391         * infcall.c (run_inferior_call): Don't check whether the current
5392         thread is running after the proceed call.
5393
5394 2014-05-29  Pedro Alves  <palves@redhat.com>
5395             Tom Tromey  <tromey@redhat.com>
5396
5397         * NEWS: Mention "maint set target-async", "set mi-async", and that
5398         background execution commands are now always available.
5399         * target.h (target_async_permitted): Update comment.
5400         * target.c (target_async_permitted, target_async_permitted_1):
5401         Default to 1.
5402         (set_target_async_command): Rename to ...
5403         (maint_set_target_async_command): ... this.
5404         (show_target_async_command): Rename to ...
5405         (maint_show_target_async_command): ... this.
5406         (_initialize_target): Adjust.
5407         * infcmd.c (prepare_execution_command): Make extern.
5408         * inferior.h (prepare_execution_command): Declare.
5409         * infrun.c (set_observer_mode): Leave target async alone.
5410         * mi/mi-interp.c (mi_interpreter_init): Install
5411         mi_on_sync_execution_done as sync_execution_done observer.
5412         (mi_on_sync_execution_done): New function.
5413         (mi_execute_command_input_handler): Don't print the prompt if we
5414         just started a synchronous command with an async target.
5415         (mi_on_resume): Check sync_execution before printing prompt.
5416         * mi/mi-main.h (mi_async_p): Declare.
5417         * mi/mi-main.c: Include gdbcmd.h.
5418         (mi_async_p): New function.
5419         (mi_async, mi_async_1): New globals.
5420         (set_mi_async_command, show_mi_async_command, mi_async): New
5421         functions.
5422         (exec_continue): Call prepare_execution_command.
5423         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5424         (mi_execute_async_cli_command): Use mi_async_p.
5425         (_initialize_mi_main): Install "set mi-async".  Make
5426         "target-async" a deprecated alias.
5427
5428 2014-05-29  Pedro Alves  <palves@redhat.com>
5429
5430         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5431         (_initialize_cli_interp): Adjust.
5432         * event-loop.c: Include "observer.h".
5433         (start_event_loop): Notify 'command_error' observers instead of
5434         calling display_gdb_prompt.  Remove FIXME comment.
5435         * event-top.c (display_gdb_prompt): Remove call into the
5436         interpreters.
5437         * inf-loop.c: Include "observer.h".
5438         (inferior_event_handler): Notify 'command_error' observers instead
5439         of calling display_gdb_prompt.
5440         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5441         observers instead of calling display_gdb_prompt.
5442         * interps.c (interp_set): Don't call display_gdb_prompt.
5443         (current_interp_display_prompt_p): Delete.
5444         * interps.h (interp_prompt_p): Delete declaration.
5445         (interp_prompt_p_ftype): Delete.
5446         (struct interp_procs) <prompt_proc_p>: Delete field.
5447         (current_interp_display_prompt_p): Delete declaration.
5448         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5449         (_initialize_mi_interp): Adjust.
5450         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5451         'command_error' observers.
5452         (tui_on_sync_execution_done, tui_on_command_error): New
5453         functions.
5454         (tui_display_prompt_p): Delete.
5455         (_initialize_tui_interp): Adjust.
5456
5457 2014-05-29  Pedro Alves  <palves@redhat.com>
5458
5459         PR gdb/13860
5460         * cli/cli-interp.c: Include infrun.h and observer.h.
5461         (cli_uiout, cli_interp): New globals.
5462         (cli_on_signal_received, cli_on_end_stepping_range)
5463         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5464         functions.
5465         (cli_interpreter_init): Install them as 'end_stepping_range',
5466         'signal_received' 'signal_exited', 'exited' and 'no_history'
5467         observers.
5468         (_initialize_cli_interp): Remove cli_interp local.
5469         * infrun.c (handle_inferior_event): Call the several stop reason
5470         observers instead of printing the stop reason directly.
5471         (end_stepping_range): New function.
5472         (print_end_stepping_range_reason, print_signal_exited_reason)
5473         (print_exited_reason, print_signal_received_reason)
5474         (print_no_history_reason): Make static, and add an uiout
5475         parameter.  Print to that instead of to CURRENT_UIOUT.
5476         * infrun.h (print_end_stepping_range_reason)
5477         (print_signal_exited_reason, print_exited_reason)
5478         (print_signal_received_reason print_no_history_reason): New
5479         declarations.
5480         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5481         'mi_uiout'.
5482         <cli_uiout>: New field.
5483         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5484         uiout for CLI output.  Install 'signal_received',
5485         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5486         observers.
5487         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5488         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5489         (mi_on_no_history): New functions.
5490         (ui_out_free_cleanup): Delete function.
5491         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5492         instead use the one already stored in the MI interpreter data.
5493         (mi_ui_out): Adjust.
5494         * tui/tui-interp.c: Include infrun.h and observer.h.
5495         (tui_interp): New global.
5496         (tui_on_signal_received, tui_on_end_stepping_range)
5497         (tui_on_signal_exited, tui_on_exited)
5498         (tui_on_no_history): New functions.
5499         (tui_init): Install them as 'end_stepping_range',
5500         'signal_received' 'signal_exited', 'exited' and 'no_history'
5501         observers.
5502         (_initialize_tui_interp): Delete tui_interp local.
5503
5504 2014-05-29  Pedro Alves  <palves@redhat.com>
5505
5506         PR gdb/15713
5507         * linux-nat.c (linux_nat_resume_callback): Rename the second
5508         parameter to 'except'.  Skip LP if it points to EXCEPT.
5509         (linux_nat_resume): Don't mark the event lwp as not stopped
5510         before resuming sibling lwps.  Instead ask
5511         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5512         stopped after actually resuming it.
5513         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5514         resuming it.
5515         (wait_lwp): Mark the lwp as stopped here.
5516         (stop_wait_callback): Mark the lwp as not stopped right after
5517         resuming it.  Don't mark lwps as stopped here.
5518         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5519         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5520
5521 2014-05-29  Pedro Alves  <palves@redhat.com>
5522
5523         PR PR15693
5524         * infrun.c (resume): Determine how much to resume depending on
5525         whether the caller wanted a step, not whether we can hardware step
5526         the target.  Mark all threads that we intend to run as running,
5527         unless we're calling an inferior function.
5528         (normal_stop): If the thread is running an infcall, don't finish
5529         thread state.
5530         * target.c (target_resume): Don't mark threads as running here.
5531
5532 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5533
5534         * serial.c (_initialize_serial): Remove support for
5535         the "set remotebaud" and "show remotebaud" commands.
5536         * NEWS: Add entry documenting the removal of that command.
5537
5538 2014-05-28  Yao Qi  <yao@codesourcery.com>
5539
5540         * charset.c: Fix typo in comments.
5541
5542 2014-05-27  Gary Benson  <gbenson@redhat.com>
5543
5544         * utils.c (internal_vproblem): Prompt for a bug report.
5545
5546 2014-05-26  Andy Wingo  <wingo@igalia.com>
5547
5548         * guile/scm-arch.c (arscm_mark_arch_smob):
5549         * guile/scm-block.c (bkscm_mark_block_smob)
5550         (bkscm_mark_block_syms_progress_smob):
5551         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5552         * guile/scm-exception.c (exscm_mark_exception_smob):
5553         * guile/scm-frame.c (frscm_mark_frame_smob):
5554         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5555         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5556         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5557         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5558         (ppscm_mark_pretty_printer_worker_smob):
5559         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5560         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5561         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5562         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5563         mark functions.
5564         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5565         function.
5566
5567 2014-05-26  Andy Wingo  <wingo@igalia.com>
5568             Doug Evans  <xdje42@gmail.com>
5569
5570         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5571         empty_base_class.  All uses updated.
5572         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5573         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5574         Adapt all callers.
5575         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5576         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5577         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5578         (gdbscm_gsmob_has_property_p, add_property_name)
5579         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5580         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5581         (gdb-object-has-property?, gdb-object-properties): Remove.
5582         (gdb-object-kind): Renamed from gsmob-kind.
5583
5584 2014-05-26  Andy Wingo  <wingo@igalia.com>
5585
5586         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5587         * configure: Regenerate.
5588
5589 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5590
5591         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5592
5593 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5594
5595         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5596         (replay_memory_access_read_only, replay_memory_access_read_write)
5597         (replay_memory_access_types, replay_memory_access)
5598         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5599         (cmd_set_record_btrace, cmd_show_record_btrace)
5600         (cmd_show_replay_memory_access): New.
5601         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5602         (record_btrace_remove_breakpoint): Replace
5603         record_btrace_allow_memory_access with replay_memory_access.
5604         (_initialize_record_btrace): Add commands.
5605         * NEWS: Announce it.
5606
5607 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5608
5609         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5610
5611 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5612
5613         * MAINTAINERS (Write After Approval): Move self back from
5614         paper trail.
5615
5616 2014-05-22  Pedro Alves  <palves@redhat.com>
5617
5618         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5619         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5620         (disable_randomization, enum exec_direction_kind)
5621         (execution_direction, stop_registers, start_remote)
5622         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5623         (wait_for_inferior, normal_stop, get_last_target_status)
5624         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5625         (insert_step_resume_breakpoint_at_sal)
5626         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5627         (set_step_info, print_stop_event, signal_stop_state)
5628         (signal_print_state, signal_pass_state, signal_stop_update)
5629         (signal_print_update, signal_pass_update)
5630         (update_signals_program_target, clear_exit_convenience_vars)
5631         (displaced_step_dump_bytes, update_observer_mode)
5632         (signal_catch_update, gdb_signal_from_command): Move
5633         declarations ...
5634         * infrun.h: ... to this new file.
5635         * amd64-tdep.c: Include infrun.h.
5636         * annotate.c: Include infrun.h.
5637         * arch-utils.c: Include infrun.h.
5638         * arm-linux-tdep.c: Include infrun.h.
5639         * arm-tdep.c: Include infrun.h.
5640         * break-catch-sig.c: Include infrun.h.
5641         * breakpoint.c: Include infrun.h.
5642         * common/agent.c: Include infrun.h instead of inferior.h.
5643         * corelow.c: Include infrun.h.
5644         * event-top.c: Include infrun.h.
5645         * go32-nat.c: Include infrun.h.
5646         * i386-tdep.c: Include infrun.h.
5647         * inf-loop.c: Include infrun.h.
5648         * infcall.c: Include infrun.h.
5649         * infcmd.c: Include infrun.h.
5650         * infrun.c: Include infrun.h.
5651         * linux-fork.c: Include infrun.h.
5652         * linux-nat.c: Include infrun.h.
5653         * linux-thread-db.c: Include infrun.h.
5654         * monitor.c: Include infrun.h.
5655         * nto-tdep.c: Include infrun.h.
5656         * procfs.c: Include infrun.h.
5657         * record-btrace.c: Include infrun.h.
5658         * record-full.c: Include infrun.h.
5659         * remote-m32r-sdi.c: Include infrun.h.
5660         * remote-mips.c: Include infrun.h.
5661         * remote-notif.c: Include infrun.h.
5662         * remote-sim.c: Include infrun.h.
5663         * remote.c: Include infrun.h.
5664         * reverse.c: Include infrun.h.
5665         * rs6000-tdep.c: Include infrun.h.
5666         * s390-linux-tdep.c: Include infrun.h.
5667         * solib-irix.c: Include infrun.h.
5668         * solib-osf.c: Include infrun.h.
5669         * solib-svr4.c: Include infrun.h.
5670         * target.c: Include infrun.h.
5671         * top.c: Include infrun.h.
5672         * windows-nat.c: Include infrun.h.
5673         * mi/mi-interp.c: Include infrun.h.
5674         * mi/mi-main.c: Include infrun.h.
5675         * python/py-threadevent.c: Include infrun.h.
5676
5677 2014-05-22  Pedro Alves  <palves@redhat.com>
5678
5679         * infrun.c (handle_inferior_event): Store the exit code for
5680         --return-child-result here, instead of ...
5681         (print_exited_reason): ... here.
5682
5683 2014-05-21  Pedro Alves  <palves@redhat.com>
5684
5685         PR gdb/13860
5686         * gdbthread.h (struct thread_control_state): New field
5687         `command_interp'.
5688         * infrun.c (follow_fork): Copy the new thread control field to the
5689         child fork thread.
5690         (clear_proceed_status_thread): Clear the new thread control field.
5691         (proceed): Set the new thread control field.
5692         * interps.h (command_interp): Declare.
5693         * interps.c (command_interpreter): New global.
5694         (command_interp): New function.
5695         (interp_exec): Set `command_interpreter' while here.
5696         * cli-out.c (cli_uiout_dtor): New function.
5697         (cli_ui_out_impl): Install it.
5698         * mi/mi-interp.c: Include cli-out.h.
5699         (mi_cmd_interpreter_exec): Add comment.
5700         (restore_current_uiout_cleanup): New function.
5701         (ui_out_free_cleanup): New function.
5702         (mi_on_normal_stop): If finishing an execution command started by
5703         a CLI command, or any kind of breakpoint-like event triggered,
5704         print the stop event to the output (CLI) stream.
5705         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5706
5707 2014-05-21  Pedro Alves  <palves@redhat.com>
5708
5709         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5710         current source line having changed.
5711         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5712         * infrun.c (normal_stop): Adjust call to
5713         set_current_sal_from_frame.
5714         * source.c (clear_lines_listed_range): New function.
5715         (set_current_source_symtab_and_line, identify_source_line): Clear
5716         the lines listed range.
5717         (line_info): Handle the first "info line" after the current source
5718         line having changed.
5719         * stack.c (print_stack_frame): Remove center handling.
5720         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5721         center sal.line.
5722
5723 2014-05-21  Pedro Alves  <palves@redhat.com>
5724
5725         * inf-child.c (inf_child_mourn_inferior): New function.
5726         * inf-child.h (inf_child_mourn_inferior): New declaration.
5727         * darwin-nat.c (darwin_mourn_inferior): Use
5728         inf_child_mourn_inferior.
5729         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5730         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5731         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5732         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5733         * windows-nat.c (windows_mourn_inferior): Likewise.
5734
5735 2014-05-21  Doug Evans  <xdje42@gmail.com>
5736
5737         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5738
5739 2014-05-21  Doug Evans  <xdje42@gmail.com>
5740
5741         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5742         (gdbscm_out_of_range_error): Ditto.
5743         (gdbscm_memory_error): Ditto.
5744         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5745         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5746         (gdbscm_out_of_range_error): Update.
5747         (gdbscm_memory_error): Update.
5748         (gdbscm_scm_to_target_string_unsafe): Delete.
5749
5750 2014-05-21  Pedro Alves  <palves@redhat.com>
5751
5752         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5753         globals.
5754         (inf_child_open_target): New function.
5755         (inf_child_open): Use inf_child_open_target to push the target
5756         instead of erroring out.
5757         (inf_child_disconnect, inf_child_close)
5758         (inf_child_maybe_unpush_target): New functions.
5759         (inf_child_target): Install inf_child_disconnect and
5760         inf_child_close.  Store a pointer to the returned object.
5761         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5762         declarations.
5763         * target.c (auto_connect_native_target): New global.
5764         (show_default_run_target): New function.
5765         (find_default_run_target): Return NULL if automatically connecting
5766         to the native target is disabled.
5767         (_initialize_target): Install set/show auto-connect-native-target.
5768         * NEWS: Mention "set auto-connect-native-target", and "target
5769         native".
5770         * linux-nat.c (super_close): New global.
5771         (linux_nat_close): Call super_close.
5772         (linux_nat_add_target): Store a pointer to the base class's
5773         to_close method.
5774         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5775         inf_child_maybe_unpush.
5776         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5777         already pushed.
5778         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5779         the inferior.  Use inf_child_maybe_unpush_target.
5780         (inf_ttrace_attach): Don't push the target if it is already
5781         pushed.
5782         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5783         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5784         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5785         (darwin_attach_pid): Don't push the target if it is already
5786         pushed.
5787         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5788         mourning the inferior.  Use inf_child_maybe_unpush_target.
5789         (gnu_detach): Use inf_child_maybe_unpush_target.
5790         * go32-nat.c (go32_create_inferior): Don't push the target if it
5791         is already pushed.
5792         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5793         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5794         (procfs_open): Rename to ...
5795         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5796         comments.  Can target_preopen before changing node.  Call
5797         inf_child_open_target to push the target explicitly.
5798         (procfs_attach): Don't push the target if it is already pushed.
5799         (procfs_detach): Use inf_child_maybe_unpush_target.
5800         (procfs_create_inferior): Don't push the target if it is already
5801         pushed.
5802         (nto_native_ops): New global.
5803         (procfs_open): Reimplement.
5804         (procfs_native_open): New function.
5805         (init_procfs_targets): Install procfs_native_open as to_open of
5806         "target native".  Store a pointer to the "native" target in
5807         nto_native_ops.
5808         * procfs.c (procfs_attach): Don't push the target if it is already
5809         pushed.
5810         (procfs_detach): Use inf_child_maybe_unpush_target.
5811         (procfs_mourn_inferior): Only unpush the target after mourning the
5812         inferior.  Use inf_child_maybe_unpush_target.
5813         (procfs_init_inferior): Don't push the target if it is already
5814         pushed.
5815         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5816         if it is already pushed.
5817
5818 2014-05-21  Pedro Alves  <palves@redhat.com>
5819
5820         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5821         and "procfs" targets are now called "native" instead.
5822
5823 2014-05-21  Pedro Alves  <palves@redhat.com>
5824
5825         * go32-nat.c (go32_open): Delete.
5826         (go32_target): Don't override the to_open method.
5827
5828 2014-05-21  Pedro Alves  <palves@redhat.com>
5829
5830         * nto-procfs.c (procfs_can_run): New function.
5831         (nto_procfs_ops): New global.
5832         (init_procfs_targets): New, based on procfs_target.  Install
5833         "target native" in addition to "target procfs".
5834         (_initialize_procfs): Call init_procfs_targets instead of adding
5835         the target here.
5836
5837 2014-05-21  Pedro Alves  <palves@redhat.com>
5838
5839         * windows-nat.c (windows_target): Don't override to_shortname,
5840         to_longname or to_doc.
5841
5842 2014-05-21  Pedro Alves  <palves@redhat.com>
5843
5844         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5845         to_doc.
5846
5847 2014-05-21  Pedro Alves  <palves@redhat.com>
5848
5849         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5850         to_shortname, to_longname or to_doc.
5851
5852 2014-05-21  Pedro Alves  <palves@redhat.com>
5853
5854         * go32-nat.c (go32_target): Don't override to_shortname,
5855         to_longname or to_doc.
5856
5857 2014-05-21  Pedro Alves  <palves@redhat.com>
5858
5859         * inf-child.c (inf_child_open): Remove mention of "child".
5860         (inf_child_target): Rename target to "native" instead of "child".
5861
5862 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5863
5864         * Makefile.in (SFILES): Delete "regset.c".
5865         (COMMON_OBS): Delete "regset.o".
5866         * regset.c: Remove.
5867         * regset.h (regset_alloc): Delete prototype.
5868
5869 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5870
5871         * sparc-linux-tdep.c (sparc32_linux_gregset)
5872         (sparc32_linux_fpregset): New static regset structures.
5873         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5874         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5875         'fpregset' fields.
5876         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5877         (sparc64_linux_fpregset): New static regset structures.
5878         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5879         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5880         New static regset structures.
5881         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5882         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5883         New static regset structures.
5884         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5885         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5886         New static regset structures.
5887         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5888         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5889         New static regset structures.
5890         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5891
5892 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5893
5894         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5895         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5896         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5897         for all regmap types and variables.
5898         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5899         (sparc32_linux_supply_core_gregset)
5900         (sparc32_linux_collect_core_gregset)
5901         (sparc32_linux_supply_core_fpregset)
5902         (sparc32_linux_collect_core_fpregset): Likewise.
5903         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5904         (sparc_gregmap, sparc_fpregmap): ... these.
5905         (sparc_supply_gregset, sparc_collect_gregset)
5906         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5907         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5908         (_initialize_sparc_nat): Rename regmaps.
5909         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5910         (sparc_gregmap, sparc_fpregmap): ... these.
5911         (sparc_supply_gregset, sparc_collect_gregset)
5912         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5913         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5914         Rename macros to...
5915         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5916         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5917         Likewise.
5918         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5919         Rename to...
5920         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5921         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5922         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5923         regmaps.
5924         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5925         (sparc32_bsd_fpregset): Rename to...
5926         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5927         (sparc32_bsd_fpregmap): ... these.
5928         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5929         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5930         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5931         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5932         (struct sparc_gregmap, struct sparc_fpregmap)
5933         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5934         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5935         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5936         (sparc32_supply_regset, sparc32_collect_gregset)
5937         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5938         prototypes.
5939         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5940         (sparc64_linux_ptrace_gregmap): ... this.
5941         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5942         (_initialize_sparc64_linux_nat): Rename regmaps.
5943         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5944         (sparc64_linux_core_gregmap): ... this.
5945         (sparc64_linux_supply_core_gregset)
5946         (sparc64_linux_collect_core_gregset)
5947         (sparc64_linux_supply_core_fpregset)
5948         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5949         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5950         (sparc64_sol2_fpregset): Rename to...
5951         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5952         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5953         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5954         regmaps.
5955         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5956         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5957         (sparc64_bsd_fpregset): Rename to...
5958         (struct sparc_gregmap, sparc64_sol2_gregmap)
5959         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5960         (sparc64_bsd_fpregmap): ... these.
5961         (sparc64_supply_gregset, sparc64_collect_gregset)
5962         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5963         prototypes.
5964         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5965         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5966         (sparc64fbsd_gregmap): ... this.
5967         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5968         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5969         Rename regmaps.
5970         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5971         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5972         (sparc64nbsd_collect_fpregset): Likewise.
5973         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5974         (sparc64nbsd_gregmap): ... this.
5975         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5976         regmaps.
5977         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5978         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5979         (sparc64obsd_gregmap): ... this.
5980         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5981         regmaps.
5982         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5983         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5984         (sparc32nbsd_gregmap): ... this.
5985         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5986         regmaps.
5987
5988 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5989
5990         * score-tdep.c (score7_linux_gregset): New static regset
5991         structure.
5992         (score7_linux_regset_from_core_section): Remove dynamic regset
5993         allocation.
5994         (score_gdbarch_init): Drop allocation of tdep structure.
5995         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5996
5997 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5998
5999         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6000         regset structures.
6001         (am33_regset_from_core_section): Remove dynamic regset
6002         allocations.
6003
6004 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6005
6006         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6007         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6008         structures.
6009         (mips_linux_regset_from_core_section): Remove dynamic regset
6010         allocations.
6011         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6012         'gregset64', 'fpregset', and 'fpregset64'.
6013         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6014         deleted tdep fields.
6015
6016 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6017
6018         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6019         regset structures.
6020         (amd64_regset_from_core_section): Remove dynamic regset
6021         allocations.
6022         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6023         structure.
6024         (amd64obsd_regset_from_core_section): Remove dynamic regset
6025         allocation.
6026         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6027         Likewise.
6028         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6029         x86-common regset supply function.
6030         * i386-tdep.c (i386_collect_gregset): Make static.
6031         (i386_gregset): New global regset structure.
6032         (i386_fpregset, i386_xstateregset): New static regset structures.
6033         (i386_regset_from_core_section): Remove dynamic regset
6034         allocations.
6035         (i386_gdbarch_init): Remove initialization of tdep fields
6036         'gregset', 'fpregset', and 'xstateregset'.
6037         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6038         'fpregset', and 'xstateregset'.
6039         (i386_collect_gregset): Remove prototype.
6040         (i386_gregset): New declaration.
6041         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6042         structure.
6043         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6044         allocation.
6045
6046 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6047
6048         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6049         (arm_linux_vfpregset): New static regset structures.
6050         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6051         regset structures.
6052         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6053         and 'vfpregset' fields.
6054
6055 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6056
6057         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6058         (aarch64_linux_fpregset): New static regset structures.
6059         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6060         of regset structures.
6061         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6062         'fpregset' fields.
6063
6064 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6065
6066         * regset.h (struct regset): Remove gdbarch field.
6067         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6068         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6069         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6070         Likewise.
6071         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6072         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6073         (ppc32_linux_vsxregset): Likewise.
6074         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6075         via the regcache instead of the regset.
6076         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6077         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6078         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6079         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6080         Likewise.
6081
6082 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6083
6084         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6085         Constify structures.
6086         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6087         (alphanbsd_aout_gregset): Likewise.
6088         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6089         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6090         Likewise.
6091         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6092         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6093         Likewise.
6094         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6095         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6096         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6097         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6098         * m88k-tdep.c (m88k_gregset): Likewise.
6099         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6100         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6101         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6102         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6103         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6104         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6105         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6106         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6107         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6108         Likewise.
6109         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6110         * sh-tdep.h (sh_corefile_gregset): Likewise.
6111         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6112         * vax-tdep.c (vax_gregset): Likewise.
6113
6114 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6115
6116         Fix TLS access for -static -pthread.
6117         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6118         (try_thread_db_load_1): Initialize it.
6119         (thread_db_get_thread_local_address): Call it if LM is zero.
6120         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6121         * target.h (struct target_ops) (to_get_thread_local_address): Add
6122         load_module_addr comment.
6123
6124 2014-05-21  Pedro Alves  <palves@redhat.com>
6125
6126         * dcache.c (dcache_read_memory_partial): If reading the cache line
6127         fails, fallback to reading just the memory the caller wanted.
6128
6129 2014-05-20  Doug Evans  <dje@google.com>
6130
6131         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6132         instead of get_current_arch.
6133
6134 2014-05-20  Pedro Alves  <palves@redhat.com>
6135
6136         * NEWS: Mention that compare-sections now works with all targets.
6137
6138         * remote.c (PACKET_qCRC): New enum value.
6139         (remote_verify_memory): Don't send qCRC if the target has no
6140         execution.  Use packet_support/packet_ok.  If the target doesn't
6141         support the qCRC packet, fallback to a deep memory copy.
6142         (compare_sections_command): Say "target image" instead of "remote
6143         executable".
6144         (_initialize_remote): Add PACKET_qCRC to the list of config
6145         packets that have no associated command.  Extend comment.
6146         * target.c (simple_verify_memory, default_verify_memory): New
6147         function.
6148         * target.h (struct target_ops) <to_verify_memory>: Default to
6149         default_verify_memory.
6150         (simple_verify_memory): New declaration.
6151         * target-delegates.c: Regenerate.
6152
6153 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
6154
6155         * record-btrace.c (record_btrace_step_thread): Check for empty history.
6156
6157 2014-05-20  Hui Zhu  <hui@codesourcery.com>
6158             Yao Qi  <yao@codesourcery.com>
6159
6160         PR backtrace/16558
6161         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6162         and change address of sp and pc.
6163
6164 2014-05-19  Tom Tromey  <tromey@redhat.com>
6165
6166         * gdbtypes.c (rank_function): Use XNEWVEC.
6167         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6168
6169 2014-05-19  Doug Evans  <dje@google.com>
6170
6171         * dwarf2read.c (build_type_psymtabs_1): Renamed from
6172         build_type_unit_groups and moved closer to only caller.  Remove
6173         arguments.  All references updated.  Remove outdated .gdb_index
6174         comment.
6175         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6176         build_type_psymtabs_1.
6177
6178 2014-05-19  Doug Evans  <dje@google.com>
6179
6180         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6181         n_type_unit_groups, all_type_unit_groups.  All uses removed.
6182         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6183         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
6184         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
6185         (add_type_unit_group_to_table): Delete.
6186
6187 2014-05-19  Doug Evans  <dje@google.com>
6188
6189         * eval.c (evaluate_subexp_standard): Add some comments.
6190
6191 2014-05-17  Doug Evans  <xdje42@gmail.com>
6192
6193         * progspace.c (remove_program_space): Delete, unused.
6194         * progspace.h (remove_program_space): Ditto.
6195
6196 2014-05-17  Doug Evans  <xdje42@gmail.com>
6197
6198         * inferior.c (prune_inferiors): Fix comment.
6199         (remove_inferior_command): Call prune_program_spaces.
6200
6201 2014-05-16  Doug Evans  <dje@google.com>
6202
6203         New command line option -D.
6204         * NEWS: Mention it.
6205         * main.c (set_gdb_data_directory): New function.
6206         (captured_main): Recognize -D.  Flag error for --data-directory "".
6207         Call set_gdb_data_directory.
6208         (print_gdb_help): Print --data-directory, -D.
6209         * main.h (set_gdb_data_directory): Declare.
6210         * top.c (staged_gdb_datadir): New static global.
6211         (set_gdb_datadir): Call set_gdb_data_directory
6212         (show_gdb_datadir): New function.
6213         (init_main): Update init of data-directory parameter.
6214
6215 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
6216
6217         Import the "dirfd" gnulib module.
6218         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6219         * gnulib/aclocal.m4: Update.
6220         * gnulib/config.in: Update.
6221         * gnulib/configure: Update.
6222         * gnulib/import/Makefile.am: Update.
6223         * gnulib/import/Makefile.in: Update.
6224         * gnulib/import/dirfd.c: New.
6225         * gnulib/import/m4/dirfd.m4: New.
6226         * gnulib/import/m4/gnulib-cache.m4: Update.
6227         * gnulib/import/m4/gnulib-comp.m4: Update.
6228
6229 2014-05-16  Pierre Muller  <muller@sourceware.org>
6230             Yao Qi  <yao@codesourcery.com>
6231
6232         * valprint.c (print_wchar): Move the code on checking whether
6233         W is a printable wide char to the default branch of switch
6234         statement below.  Call wchar_printable instead of gdb_iswprint.
6235
6236 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6237
6238         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6239         ldr.w and ldrd instructions.
6240
6241 2014-05-15  Doug Evans  <dje@google.com>
6242
6243         * dwarf2read.c (read_structure_type): Delete outdated comments.
6244
6245 2014-05-14  Tom Tromey  <tromey@redhat.com>
6246
6247         * macrocmd.c (print_macro_definition): Reindent.
6248
6249 2014-05-13  Doug Evans  <xdje42@gmail.com>
6250
6251         * python/py-cmd.c (cmdpy_completer): Add comment.
6252         (completers): Make const.
6253
6254 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6255
6256         * infrun.c (resume): Remove should_resume (unused).  Move up
6257         declaration of resume_ptid.
6258
6259 2014-05-13  Tom Tromey  <tromey@redhat.com>
6260
6261         * language.h (unop_type_check): Remove.
6262         (binop_type_check): Don't declare.
6263
6264 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6265
6266         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6267         call to regcache_raw_collect.
6268
6269 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6270
6271         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6272         mi_console->quote as the quoting character.
6273
6274 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6275
6276         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6277
6278 2014-04-29  Tom Tromey  <tromey@redhat.com>
6279
6280         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6281         "show debug varobj".
6282
6283 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6284
6285         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6286         * aarch64-tdep.c (aarch64_software_single_step): New function.
6287         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6288         with aarch64_software_single_step.
6289
6290 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6291
6292         GDB 7.7.1 released.
6293
6294 2014-05-05  Keith Seitz  <keiths@redhat.com>
6295
6296         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6297         variable or history value is successfully parsed.
6298
6299 2014-05-05  Yao Qi  <yao@codesourcery.com>
6300             Pedro Alves  <palves@redhat.com>
6301
6302         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6303         address of blocks that intersects the requested range.  Trim
6304         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6305         sections.
6306         * ctf.c (ctf_xfer_partial): Likewise.
6307
6308 2014-05-05  Yao Qi  <yao@codesourcery.com>
6309
6310         * printcmd.c (display_command): Remove the check to
6311         target_has_execution.
6312
6313 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6314
6315         * ppcobsd-nat.c: Include "obsd-nat.h".
6316         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6317         add_target.
6318         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6319
6320 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6321
6322         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6323         and 16-bit signed and unsigned arguments.  Update comment.
6324         (stap_parse_probe_arguments): Extend code to handle such
6325         arguments.  Use warning instead of complaint to notify about
6326         unrecognized bitness.
6327
6328 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6329
6330         PR breakpoints/16889
6331         * stap-probe.c (stap_parse_probe_arguments): Simplify
6332         check for non-prefixed probes (i.e., probes whose
6333         arguments do not start with "N@").  Always set the
6334         argument type to a sane value.
6335
6336 2014-05-01  David Taylor  <dtaylor@emc.com>
6337
6338         * remote.c (compare_sections_command): Add -r option to compare
6339         all loadable read-only sections.
6340
6341 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6342
6343         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6344         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6345         Update all callers.
6346         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6347         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6348         Remove unused CORE_ADDR argument.  Update all callers.
6349
6350 2014-04-29  Pedro Alves  <palves@redhat.com>
6351
6352         * remote.c (struct packet_config) <detect>: Extend comment.
6353         (add_packet_config_cmd): Don't set the config's detect or support
6354         fields here.
6355         (init_all_packet_configs): Also initialize the config's 'detect'
6356         field.
6357         (reset_all_packet_configs_support): New function.
6358         (remote_open_1): Call reset_all_packet_configs_support instead of
6359         init_all_packet_configs.
6360         (_initialize_remote): Initialize all packet configs.  Assert that
6361         all packets have an associated command, except a few known
6362         outliers.
6363
6364 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6365
6366         * dwarf2read.c (read_subrange_type): Handle dynamic
6367         DW_AT_lower_bound attributes.
6368
6369 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6370
6371         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6372         dynamic bounds before computing its upper bound.
6373         (ada_discrete_type_low_bound): Same as above with the lower bound.
6374
6375 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6376
6377         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6378         range types.  Adjust the array handling implementation to
6379         take advantage of this change.
6380         (resolve_dynamic_range): New function, mostly extracted from
6381         resolve_dynamic_bounds.
6382         (resolve_dynamic_array): New function, mostly extracted from
6383         resolve_dynamic_bounds.
6384         (resolve_dynamic_bounds): Delete.
6385         (resolve_dynamic_type): Reimplement.  Add handling of
6386         TYPE_CODE_RANGE types.
6387
6388 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6389
6390         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6391         handling of parallel ___XA types.
6392
6393 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6394
6395         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6396         unnecessary second call to static_unwrap_type.
6397
6398 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6399
6400         * stack.c (print_frame_info): Call do_gdb_disassembly with
6401         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6402
6403 2014-04-26  Doug Evans  <xdje42@gmail.com>
6404
6405         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6406
6407 2014-04-25  Pedro Alves  <palves@redhat.com>
6408
6409         PR server/16255
6410         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6411         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6412         and newline from built string.
6413         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6414         (linux_ptrace_attach_fail_reason): ... this.
6415         * linux-nat.c (linux_nat_attach): Adjust to use
6416         linux_ptrace_attach_fail_reason.
6417
6418 2014-04-25  Pedro Alves  <palves@redhat.com>
6419
6420         * remote.c (struct remote_state): Remove multi_process_aware,
6421         non_stop_aware, cond_tracepoints, cond_breakpoints,
6422         breakpoint_commands, fast_tracepoints, static_tracepoints,
6423         install_in_trace, disconnected_tracing,
6424         enable_disable_tracepoints, string_tracing, and
6425         augmented_libraries_svr4_read fields.
6426         (remote_multi_process_p): Move further below in the file.
6427         (struct packet_config): Add comments.
6428         (update_packet_config): Delete function.
6429         (show_packet_config_cmd): Use packet_config_support.
6430         (add_packet_config_cmd): Use NULL as set callback.
6431         (packet_ok): "set remote foo-packet"-style commands no longer
6432         change config->supported -- adjust.
6433         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6434         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6435         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6436         (PACKET_QNonStop, PACKET_multiprocess_feature)
6437         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6438         (PACKET_DisconnectedTracing_feature)
6439         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6440         (set_remote_protocol_packet_cmd): Delete function.
6441         (packet_config_support, packet_support): New functions.
6442         (set_remote_protocol_Z_packet_cmd): Don't call
6443         update_packet_config.
6444         (remote_query_attached, remote_pass_signals)
6445         (remote_program_signals, remote_threads_info)
6446         (remote_threads_extra_info, remote_start_remote): Use
6447         packet_support.
6448         (remote_start_remote): Use packet_config_support and
6449         packet_support.
6450         (init_all_packet_configs): Set all packets to unknown support,
6451         instead of calling update_packet_config.
6452         (remote_check_symbols): Use packet_support.
6453         (remote_supported_packet): Unconditionally set the packet config's
6454         support status.
6455         (remote_multi_process_feature, remote_non_stop_feature)
6456         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6457         (remote_breakpoint_commands_feature)
6458         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6459         (remote_install_in_trace_feature)
6460         (remote_disconnected_tracing_feature)
6461         (remote_enable_disable_tracepoint_feature)
6462         (remote_string_tracing_feature)
6463         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6464         (remote_protocol_features): Adjust to use remote_supported_packet
6465         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6466         "ConditionalTracepoints", "ConditionalBreakpoints",
6467         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6468         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6469         "EnableDisableTracepoints", and "tracenz".
6470         (remote_query_supported): Use packet_support.
6471         (remote_open_1): Adjust.
6472         (extended_remote_attach_1): Use packet_support.  Switch on the
6473         result of packet_ok instead of checking whether the packet ended
6474         up disabled.
6475         (remote_vcont_resume): Use packet_support.
6476         (remote_resume, remote_stop_ns, fetch_register_using_p)
6477         (remote_prepare_to_store, store_register_using_P)
6478         (check_binary_download, remote_write_bytes): Use packet_support.
6479         (remote_vkill): Use packet_support.  Switch on the result of
6480         packet_ok instead of checking whether the packet ended up
6481         disabled.
6482         (extended_remote_supports_disable_randomization): Use
6483         packet_support.
6484         (extended_remote_run): Switch on the result of packet_ok instead
6485         of checking whether the packet ended up disabled.
6486         (remote_insert_breakpoint, remote_remove_breakpoint)
6487         (remote_insert_watchpoint, remote_remove_watchpoint)
6488         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6489         packet_support.
6490         (remote_search_memory): Use packet_config_support.
6491         (remote_get_thread_local_address, remote_get_tib_address)
6492         (remote_hostio_send_command, remote_can_execute_reverse): Use
6493         packet_support.
6494         (remote_supports_cond_tracepoints)
6495         (remote_supports_cond_breakpoints)
6496         (remote_supports_fast_tracepoints)
6497         (remote_supports_static_tracepoints)
6498         (remote_supports_install_in_trace)
6499         (remote_supports_enable_disable_tracepoint)
6500         (remote_supports_string_tracing)
6501         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6502         the packet config says the feature is enabled or disabled.
6503         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6504         (remote_get_trace_status): Use packet_support.
6505         (remote_set_disconnected_tracing): Adjust to check whether the
6506         feature is enabled with packet_support.
6507         (remote_set_trace_buffer_size, remote_use_agent)
6508         (remote_can_use_agent, remote_supports_btrace): Use
6509         packet_support.
6510         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6511         Use packet_config_support.
6512         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6513         the packet config says the feature is enabled or disabled.
6514         (set_range_stepping): Use packet_support.
6515
6516 2014-04-25  Tom Tromey  <tromey@redhat.com>
6517
6518         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6519         argument.
6520
6521 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6522
6523         * NEWS: Mention support for C99 variable length arrays.
6524
6525 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6526
6527         * ada-lang.c (standard_exc): Expand introductory comment.
6528
6529 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6530             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6531
6532         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6533         AVX512 registers.
6534         (amd64_linux_read_description): Add code to handle AVX512 xstate
6535         mask and return respective tdesc.
6536         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6537         and features/i386/x32-avx512-linux.c.
6538         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6539         (amd64_linux_core_read_description): Add code to handle AVX512
6540         xstate mask and return respective tdesc.
6541         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6542         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6543         calculation.
6544         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6545         (tdesc_amd64_avx512_linux): New prototype.
6546         (tdesc_x32_avx512_linux): Likewise.
6547         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6548         features/i386/x32-avx512.c.
6549         (amd64_ymm_avx512_names): New register names for pseudo
6550         registers YMM16-31.
6551         (amd64_ymmh_avx512_names): New register names for raw registers
6552         YMMH16-31.
6553         (amd64_k_names): New register names for K registers.
6554         (amd64_zmmh_names): New register names for ZMM raw registers.
6555         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6556         (amd64_xmm_avx512_names): New register names for XMM16-31
6557         registers.
6558         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6559         registers.
6560         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6561         if feature is present.
6562         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6563         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6564         (AMD64_NUM_REGS): Adjust to new number of registers.
6565         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6566         registers supplied via XSTATE by AVX512 registers.
6567         (i386_linux_read_description): Add case for AVX512.
6568         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6569         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6570         (i386_linux_core_read_description): Add case for AVX512.
6571         (i386_linux_init_abi): Install supported register note section
6572         for AVX512.
6573         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6574         AVX512.
6575         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6576         registers to be number of zmm7h + 1.
6577         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6578         * i386-tdep.c: Include features/i386/i386-avx512.c.
6579         (i386_zmm_names): Add ZMM pseudo register names array.
6580         (i386_zmmh_names): Add ZMM raw register names array.
6581         (i386_k_names): Add K raw register names array.
6582         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6583         registers. AVX512 has 16 more ZMM registers than there are YMM
6584         registers.
6585         (i386_zmmh_regnum_p): Add function to look up register number of
6586         ZMM raw registers.
6587         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6588         (i386_k_regnum_p): Likewise for K raw registers.
6589         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6590         registers added by AVX512.
6591         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6592         registers added by AVX512.
6593         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6594         added by AVX512.
6595         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6596         (i386_pseudo_register_name): Add ZMM pseudo registers.
6597         (i386_zmm_type): Construct and return vector registers type for ZMM
6598         registers.
6599         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6600         ZMM0-31 pseudo registers and K registers.
6601         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6602         and YMM16-31 registers from register cache.
6603         (i386_pseudo_register_write): Add code to write  K, ZMM and
6604         YMM16-31 registers.
6605         (i386_register_reggroup_p): Add code to include/exclude AVX512
6606         registers in/from respective register groups.
6607         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6608         registers if feature is present in xcr0.
6609         (i386_gdbarch_init): Add code to initialize AVX512 feature
6610         variables in tdep structure, wire in pseudo registers and call
6611         initialize_tdesc_i386_avx512.
6612         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6613         variables.
6614         (i386_regnum): Add AVX512 registers.
6615         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6616         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6617         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6618         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6619         512 bits wide.
6620         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6621         (i386_ymm_avx512_regnum_p): Likewise.
6622         (i386_k_regnum_p): Likewise.
6623         (i386_zmm_regnum_p): Likewise.
6624         (i386_zmmh_regnum_p): Likewise.
6625         * i387-tdep.c : Update year in copyright notice.
6626         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6627         XSAVE buffer.
6628         (XSAVE_YMM_AVX512_ADDR): New macro.
6629         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6630         XSAVE buffer.
6631         (XSAVE_XMM_AVX512_ADDR): New macro.
6632         (xsave_avx512_k_offset): New table for K register offsets in
6633         XSAVE buffer.
6634         (XSAVE_AVX512_K_ADDR): New macro.
6635         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6636         in XSAVE buffer.
6637         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6638         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6639         buffer.
6640         (i387_collect_xsave): Add code to collect AVX512 registers from
6641         XSAVE buffer.
6642         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6643         of XMM16-31 registers.
6644         (I387_NUM_K_REGS): New define for number of K registers.
6645         (I387_K0_REGNUM): New define for K0 register number.
6646         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6647         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6648         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6649         registers.
6650         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6651         (I387_XMM16_REGNUM): New define for XMM16 register number.
6652         (I387_YMM0_REGNUM): New define for YMM0 register number.
6653         (I387_KEND_REGNUM): New define for last K register number.
6654         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6655         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6656         number.
6657         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6658         number.
6659         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6660         size.
6661         * features/Makefile: Add AVX512 related files.
6662         * features/i386/32bit-avx512.xml: New file.
6663         * features/i386/64bit-avx512.xml: Likewise.
6664         * features/i386/amd64-avx512-linux.c: Likewise.
6665         * features/i386/amd64-avx512-linux.xml: Likewise.
6666         * features/i386/amd64-avx512.c: Likewise.
6667         * features/i386/amd64-avx512.xml: Likewise.
6668         * features/i386/i386-avx512-linux.c: Likewise.
6669         * features/i386/i386-avx512-linux.xml: Likewise.
6670         * features/i386/i386-avx512.c: Likewise.
6671         * features/i386/i386-avx512.xml: Likewise.
6672         * features/i386/x32-avx512-linux.c: Likewise.
6673         * features/i386/x32-avx512-linux.xml: Likewise.
6674         * features/i386/x32-avx512.c: Likewise.
6675         * features/i386/x32-avx512.xml: Likewise.
6676         * regformats/i386/amd64-avx512-linux.dat: New file.
6677         * regformats/i386/amd64-avx512.dat: Likewise.
6678         * regformats/i386/i386-avx512-linux.dat: Likewise.
6679         * regformats/i386/i386-avx512.dat: Likewise.
6680         * regformats/i386/x32-avx512-linux.dat: Likewise.
6681         * regformats/i386/x32-avx512.dat: Likewise.
6682         * NEWS: Add note about new support for AVX512.
6683
6684
6685 2014-04-23  Pedro Alves  <palves@redhat.com>
6686
6687         * breakpoint.c (insert_bp_location): Tolerate errors if the
6688         breakpoint is set in a user-loaded objfile.
6689         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6690         location is marked shlib_disabled.  If the breakpoint is set in a
6691         user-loaded objfile is a GDB-side memory breakpoint, validate it
6692         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6693         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6694         flag.
6695         * mem-break.c (memory_validate_breakpoint): New function.
6696         * objfiles.c (userloaded_objfile_contains_address_p): New
6697         function.
6698         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6699         * target.h (memory_validate_breakpoint): New declaration.
6700
6701 2014-04-23  Pedro Alves  <palves@redhat.com>
6702
6703         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6704         the breakpoint is set in a shared library, only suppress
6705         errors for software breakpoints, not hardware breakpoints.
6706
6707 2014-04-22  Pedro Alves  <palves@redhat.com>
6708
6709         * infrun.c (schedlock_applies): New function, factored out from
6710         find_thread_needs_step_over.
6711         (find_thread_needs_step_over): Use it.
6712         (switch_back_to_stepped_thread): Always clear trap_expected if the
6713         step over is finished.  Return early if scheduler locking applies.
6714         Look for the stepping thread and a potential step-over thread with
6715         a single loop.
6716         (currently_stepping_or_nexting_callback): Delete.
6717
6718 2014-04-22  Nick Clifton  <nickc@redhat.com>
6719
6720         * NEWS: Mention that ARM sim now supports tracing.
6721
6722 2014-04-22  Yao Qi  <yao@codesourcery.com>
6723
6724         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6725         to ...
6726         * tracefile.c (tracefile_fetch_registers): ... it.  New
6727         function.
6728         * tracefile.h (tracefile_fetch_registers): Declare.
6729         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6730         tracefile_fetch_registers.
6731
6732 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6733
6734         PR gdb/14018
6735         * windows-nat.c (thread_rec): Don't display a warning when
6736         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6737         fails for any reason, set th->suspended to -1, so that we don't
6738         try to resume such a thread.  Also, don't return NULL in these
6739         cases, to avoid completely ruin the session due to "PC register is
6740         not available" error.
6741         (do_windows_fetch_inferior_registers): Check errors in
6742         GetThreadContext call.
6743         (windows_continue): Accept an additional argument KILLED; if not
6744         zero, ignore errors in the SetThreadContext call, since the
6745         inferior was killed and is shutting down.
6746         (windows_resume, get_windows_debug_event)
6747         (windows_create_inferior, windows_mourn_inferior)
6748         (windows_kill_inferior): All callers of windows_continue changed
6749         to adjust to its new calling sequence.
6750
6751 2014-04-19  Yao Qi  <yao@codesourcery.com>
6752
6753         * ctf.c (ctf_open): Call post_create_inferior.
6754
6755 2014-04-19  Yao Qi  <yao@codesourcery.com>
6756
6757         * ctf.c (handle_id): New static variable.
6758         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6759         value.  Get the declaration of event "register" and get length
6760         of field "contents".
6761
6762 2014-04-19  Yao Qi  <yao@codesourcery.com>
6763
6764         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6765
6766 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6767
6768         * valops.c (oload_method_static): Remove unnecessary argument
6769         METHOD.  Update all callers.
6770
6771 2014-04-18  Pedro alves  <palves@redhat.com>
6772             Tom Tromey  <tromey@redhat.com>
6773
6774         PR backtrace/15558
6775         * frame.c (get_prev_frame_1): Rename to ...
6776         (get_prev_frame_always): ... this, and make extern.  Adjust.
6777         (skip_artificial_frames): Use get_prev_frame_always.
6778         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6779         (get_frame_unwind_stop_reason): Adjust to rename.
6780         * frame.h (get_prev_frame_always): Declare.
6781         * inline-frame.c: Include frame.h.
6782         (inline_frame_this_id): Use get_prev_frame_always.
6783
6784 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6785
6786         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6787         code by using bfd_mach_o_get_base_address.
6788
6789 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6790
6791         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6792         (spu_ax_pseudo_register_collect): New function.
6793         (spu_ax_pseudo_register_push_stack): Likewise.
6794         (spu_dwarf_reg_to_regnum): Likewise.
6795         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6796
6797 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6798
6799         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6800         Replace FRAME argument with FRAME_ID.
6801         * gdbarch.c, gdbarch.h: Regenerate.
6802         * findvar.c (default_value_from_register): Add GDBARCH argument;
6803         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6804         (value_from_register): Update call to gdbarch_value_from_register.
6805         * value.h (default_value_from_register): Update prototype.
6806         * s390-linux-tdep.c (s390_value_from_register): Update interface
6807         and call to default_value_from_register.
6808         * spu-tdep.c (spu_value_from_register): Likewise.
6809
6810         * findvar.c (address_from_register): Remove TYPE argument.
6811         Do not call value_from_register; use gdbarch_value_from_register
6812         with null_frame_id instead.
6813         * value.h (address_from_register): Update prototype.
6814         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6815         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6816         address_from_register interface change.
6817
6818 2014-04-17  Yao Qi  <yao@codesourcery.com>
6819
6820         * gdbtypes.h: Update comments to link to types and macros'
6821         definitions.
6822
6823 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6824
6825         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6826
6827 2014-04-16  Keith Seitz  <keiths@redhat.com>
6828
6829         PR gdb/15827
6830         * dwarf2read.c (skip_one_die): Check that all relative-offset
6831         sibling DIEs fall within range of the current reader's buffer.
6832         (read_partial_die): Likewise.
6833
6834 2014-04-16  Keith Seitz  <keiths@redhat.com>
6835
6836         PR c++/16597
6837         * cp-namespace.c (lookup_symbol_file): If the type name of
6838         `this' is NULL, return immediately.
6839
6840 2014-04-14  Keith Seitz  <keiths@redhat.com>
6841
6842         PR c++/16253
6843         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6844         from symbol_matches_domain in symtab.c. All local callers
6845         of symbol_matches_domain updated.
6846         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6847         search STRUCT_DOMAIN.
6848         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6849         independently.  standard_lookup will do that automatically.
6850         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6851         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6852         (cp_lookup_symbol_in_namespace): Likewise.
6853         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6854         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6855         may return a STRUCT_DOMAIN match.
6856         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6857         * cp-support.c: Include language.h.
6858         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6859         VAR_DOMAIN.
6860         * psymtab.c (match_partial_symbol): Compare the requested
6861         domain with the symbol's domain directly.
6862         (lookup_partial_symbol): Likewise.
6863         * symtab.c (lookup_symbol_in_language): Explain when/why
6864         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6865         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6866         appropriate languages.
6867         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6868         and moved to ada-lang.c
6869         (lookup_block_symbol): Explain that this function only returns
6870         symbol matching the requested DOMAIN.
6871         Compare the requested domain with the symbol's domain directly.
6872         (iterate_over_symbols): Compare the requested domain with the
6873         symbol's domain directly.
6874         * symtab.h (symbol_matches_domain): Remove.
6875
6876 2014-04-14  Tom Tromey  <tromey@redhat.com>
6877
6878         PR c++/15246:
6879         * c-exp.y (type_aggregate_p): New function.
6880         (qualified_name, classify_inner_name): Use it.
6881         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6882         and TYPE_TARGET_TYPE of an enum type.
6883         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6884         an enum type.
6885         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6886         handle TYPE_DECLARED_CLASS.
6887         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6888         types.
6889         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6890         * valops.c (enum_constant_from_type): New function.
6891         (value_aggregate_elt): Use it.
6892         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6893         TYPE_CODE_ENUM.
6894
6895 2014-04-14  Tom Tromey  <tromey@redhat.com>
6896
6897         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6898         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6899         const.
6900         * value.h (value_aggregate_elt): Update.
6901
6902 2014-04-14  Tom Tromey  <tromey@redhat.com>
6903
6904         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6905
6906 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6907
6908         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6909         (evaluate_subexp_standard): Pass noside argument.
6910         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6911         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6912         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6913         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6914         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6915
6916 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6917
6918         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6919         points to a constant blob.
6920
6921 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6922
6923         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6924         property and store it as the high bound and flag the range accordingly.
6925         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6926         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6927         * gdbtypes.h (enum range_flags): New enum.
6928         (struct range_bounds): Add flags member.
6929
6930 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6931
6932         * c-typeprint.c (c_type_print_varspec_suffix): Added
6933         check for not yet resolved high bound. If unresolved, print
6934         "variable length" string to the console instead of random
6935         length.
6936
6937 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6938
6939         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6940         value.
6941         (ada_template_to_fixed_record_type_1): Likewise.
6942         (ada_to_fixed_type_1): Likewise.
6943         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6944         (cp_print_value): Likewise.
6945         * d-valprint.c (dynamic_array_type): Likewise.
6946         * findvar.c (address_of_variable): Likewise.
6947         * jv-valprint.c (java_value_print): Likewise.
6948         * valops.c (value_ind): Likewise.
6949         * value.c (coerce_ref): Likewise.
6950
6951 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6952
6953         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6954         value and retrieve the dynamic type size.
6955
6956 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6957
6958         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6959         passed to sizeof is dynamic evaluate the argument to compute the length.
6960
6961 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6962             Joel Brobecker  <brobecker@adacore.com>
6963
6964         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6965         (dwarf2_evaluate_property): New function.
6966         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6967         * dwarf2read.c (attr_to_dynamic_prop): New function.
6968         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6969         attribute.
6970         * gdbtypes.c: Include dwarf2loc.h.
6971         (is_dynamic_type): New function.
6972         (resolve_dynamic_type): New function.
6973         (resolve_dynamic_bounds): New function.
6974         (get_type_length): New function.
6975         (check_typedef): Use get_type_length to compute type length.
6976         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6977         (TYPE_LOW_BOUND_KIND): New macro.
6978         (is_dynamic_type): New function prototype.
6979         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6980         to resolve dynamic properties of the type. Update comment.
6981         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6982
6983 2014-04-14  Richard Henderson  <rth@redhat.com>
6984
6985         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6986
6987 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6988             Doug Evans  <xdje42@gmail.com>
6989
6990         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6991         dereference TYPE_CODE_REF values.
6992
6993 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6994
6995         Revert the following changes due to regressions:
6996
6997         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6998         (dwarf2_evaluate_property): New function.
6999         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7000         * dwarf2read.c (attr_to_dynamic_prop): New function.
7001         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7002         attribute.
7003         * gdbtypes.c: Include dwarf2loc.h.
7004         (is_dynamic_type): New function.
7005         (resolve_dynamic_type): New function.
7006         (resolve_dynamic_bounds): New function.
7007         (get_type_length): New function.
7008         (check_typedef): Use get_type_length to compute type length.
7009         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7010         (TYPE_LOW_BOUND_KIND): New macro.
7011         (is_dynamic_type): New function prototype.
7012         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7013         to resolve dynamic properties of the type. Update comment.
7014         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7015
7016         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7017         passed to sizeof is dynamic evaluate the argument to compute the length.
7018
7019         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7020         value and retrieve the dynamic type size.
7021
7022         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7023         (ada_template_to_fixed_record_type_1): Likewise.
7024         (ada_to_fixed_type_1): Likewise.
7025         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7026         (cp_print_value): Likewise.
7027         * d-valprint.c (dynamic_array_type): Likewise.
7028         * eval.c (evaluate_subexp_with_coercion): Likewise.
7029         * findvar.c (address_of_variable): Likewise.
7030         * jv-valprint.c (java_value_print): Likewise.
7031         * valops.c (value_ind): Likewise.
7032         * value.c (coerce_ref): Likewise.
7033
7034         * c-typeprint.c (c_type_print_varspec_suffix): Added
7035         check for not yet resolved high bound. If unresolved, print
7036         "variable length" string to the console instead of random
7037         length.
7038
7039         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7040         property and store it as the high bound and flag the range accordingly.
7041         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7042         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7043         * gdbtypes.h (enum range_flags): New enum.
7044         (struct range_bounds): Add flags member.
7045
7046         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7047         points to a constant blob.
7048
7049         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7050         (evaluate_subexp_standard): Pass noside argument.
7051         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7052         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7053         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7054         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7055         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7056
7057 2014-04-11  Keith Seitz  <keiths@redhat.com>
7058
7059         PR c++/16675
7060         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7061         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7062         reference types.
7063
7064 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7065
7066         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7067         (evaluate_subexp_standard): Pass noside argument.
7068         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7069         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7070         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7071         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7072         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7073
7074 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7075
7076         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7077         points to a constant blob.
7078
7079 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7080
7081         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7082         property and store it as the high bound and flag the range accordingly.
7083         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7084         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7085         * gdbtypes.h (enum range_flags): New enum.
7086         (struct range_bounds): Add flags member.
7087
7088 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7089
7090         * c-typeprint.c (c_type_print_varspec_suffix): Added
7091         check for not yet resolved high bound. If unresolved, print
7092         "variable length" string to the console instead of random
7093         length.
7094
7095 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7096
7097         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7098         (ada_template_to_fixed_record_type_1): Likewise.
7099         (ada_to_fixed_type_1): Likewise.
7100         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7101         (cp_print_value): Likewise.
7102         * d-valprint.c (dynamic_array_type): Likewise.
7103         * eval.c (evaluate_subexp_with_coercion): Likewise.
7104         * findvar.c (address_of_variable): Likewise.
7105         * jv-valprint.c (java_value_print): Likewise.
7106         * valops.c (value_ind): Likewise.
7107         * value.c (coerce_ref): Likewise.
7108
7109 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7110
7111         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7112         value and retrieve the dynamic type size.
7113
7114 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7115
7116         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7117         passed to sizeof is dynamic evaluate the argument to compute the length.
7118
7119 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7120
7121         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7122         (dwarf2_evaluate_property): New function.
7123         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7124         * dwarf2read.c (attr_to_dynamic_prop): New function.
7125         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7126         attribute.
7127         * gdbtypes.c: Include dwarf2loc.h.
7128         (is_dynamic_type): New function.
7129         (resolve_dynamic_type): New function.
7130         (resolve_dynamic_bounds): New function.
7131         (get_type_length): New function.
7132         (check_typedef): Use get_type_length to compute type length.
7133         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7134         (TYPE_LOW_BOUND_KIND): New macro.
7135         (is_dynamic_type): New function prototype.
7136         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7137         to resolve dynamic properties of the type. Update comment.
7138         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7139
7140 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7141
7142         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7143         declaring high/low bounds and change uses accordingly. Call
7144         create_range_type instead of create_static_range_type.
7145         * gdbtypes.c (create_range_type): New function.
7146         (create_range_type): Convert bounds into struct bound_prop and pass
7147         them to create_range_type.
7148         * gdbtypes.h (struct bound_prop): New struct.
7149         (create_range_type): New function prototype.
7150         (struct range_bounds): Use struct bound_prop instead of LONGEST for
7151         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7152         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7153         part of the bound.
7154         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7155
7156 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7157
7158         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7159         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7160         * ada-lang.c: All uses of create_range_type updated.
7161         * coffread.c: All uses of create_range_type updated.
7162         * dwarf2read.c: All uses of create_range_type updated.
7163         * f-exp.y: All uses of create_range_type updated.
7164         * m2-valprint.c: All uses of create_range_type updated.
7165         * mdebugread.c: All uses of create_range_type updated.
7166         * stabsread.c: All uses of create_range_type updated.
7167         * valops.c: All uses of create_range_type updated.
7168         * valprint.c: All uses of create_range_type updated.
7169
7170 2014-04-10  Pedro Alves  <palves@redhat.com>
7171
7172         * breakpoint.c (single_step_breakpoints)
7173         (single_step_gdbarch): Move up in the file.
7174         (one_breakpoint_xfer_memory): New function, factored out from ...
7175         (breakpoint_xfer_memory): ... here.  Also process single-step
7176         breakpoints.
7177
7178 2014-04-09  Tristan Gingold  <gingold@adacore.com>
7179
7180         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7181         comments.
7182         (darwin_decode_exception_message): Free port only after use.
7183
7184 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
7185
7186         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7187         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7188         when setting the size of call_length.
7189
7190 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
7191
7192         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7193         dereference TYPE_CODE_REF values.
7194
7195 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
7196
7197         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7198         end of warning message.
7199
7200 2014-04-03  Doug Evans  <dje@google.com>
7201
7202         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7203         of stub_comp_unit_die, stub_comp_dir is non-NULL.
7204
7205 2014-04-02  Alan Modra  <amodra@gmail.com>
7206
7207         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7208         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
7209         (struct symbol_file_add_from_memory_args): Add size field.
7210         (find_vdso_size): New function.
7211         (add_vsyscall_page): Attempt to find vdso size.
7212
7213 2014-04-01  Doug Evans  <dje@google.com>
7214
7215         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7216
7217 2014-04-01  Tristan Gingold  <gingold@adacore.com>
7218
7219         * darwin-nat.c (darwin_encode_reply): Add prototype.
7220         (darwin_decode_exception_message): Reply to unknown inferiors.
7221         (darwin_decode_message): Handle message by id.  Ignore message
7222         to unknown inferior.
7223         (darwin_wait): Discard unknown messages, add debug trace.
7224
7225 2014-03-31  Doug Evans  <dje@google.com>
7226
7227         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7228         comp_dir_string.
7229
7230 2014-03-31  Doug Evans  <dje@google.com>
7231
7232         New option "set print symbol-loading".
7233         * NEWS: Mention it.
7234         * solib.c (solib_read_symbols): Only print symbol loading messages
7235         if requested.
7236         (solib_add): If symbol loading is in "brief" mode, notify user
7237         symbols are being loaded.
7238         (reload_shared_libraries_1): Ditto.
7239         * symfile.c (print_symbol_loading_off): New static global.
7240         (print_symbol_loading_brief): New static global.
7241         (print_symbol_loading_full): New static global.
7242         (print_symbol_loading_enums): New static global.
7243         (print_symbol_loading): New static global.
7244         (print_symbol_loading_p): New function.
7245         (symbol_file_add_with_addrs): Only print symbol loading messages
7246         if requested.
7247         (_initialize_symfile): Register "print symbol-loading" set/show
7248         command.
7249         * symfile.h (print_symbol_loading_p): Declare.
7250
7251 2014-03-30  Doug Evans  <xdje42@gmail.com>
7252
7253         * infrun.c (set_last_target_status): New function.
7254         (handle_inferior_event): Call it.
7255
7256 2014-03-30  Doug Evans  <xdje42@gmail.com>
7257
7258         * inferior.h (enum stop_kind): Improve comment.
7259
7260 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7261
7262         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7263         a reference, strip the reference layer before calling
7264         the lang_ops value_has_mutated callback.
7265
7266 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7267
7268         Remove some globals from our parser.
7269         * language.c (unk_lang_parser): Add "struct parser_state"
7270         argument.
7271         * language.h (struct language_defn) <la_parser>: Likewise.
7272         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7273         (initialize_expout): Add "struct parser_state" argument.
7274         Rewrite function to use the parser state.
7275         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7276         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7277         write_exp_elt_longcst, write_exp_elt_dblcst,
7278         write_exp_elt_decfloatcst, write_exp_elt_type,
7279         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7280         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7281         write_dollar_variable): Likewise.
7282         (parse_exp_in_context_1): Use parser state.
7283         (insert_type_address_space): Add "struct parser_state" argument.
7284         Use parser state.
7285         (increase_expout_size): New function.
7286         * parser-defs.h: Forward declare "struct language_defn" and
7287         "struct parser_state".
7288         (expout, expout_size, expout_ptr): Remove extern declarations.
7289         (parse_gdbarch, parse_language): Rewrite macro declarations to
7290         accept the parser state.
7291         (struct parser_state): New struct.
7292         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7293         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7294         write_exp_elt_decfloatcst, write_exp_elt_type,
7295         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7296         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7297         write_exp_msymbol, write_dollar_variable,
7298         mark_struct_expression, insert_type_address_space): Add "struct
7299         parser_state" argument.
7300         (increase_expout_size): New function.
7301         * utils.c (do_clear_parser_state): New function.
7302         (make_cleanup_clear_parser_state): Likewise.
7303         * utils.h (make_cleanup_clear_parser_state): New function
7304         prototype.
7305         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7306         Update calls to write_exp* in order to pass the parser state.
7307         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7308         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7309         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7310         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7311         * stap-probe.c (stap_parse_register_operand): Likewise.
7312         (stap_parse_single_operand): Likewise.
7313         (stap_parse_argument_1): Likewise.
7314         (stap_parse_argument): Use parser state.
7315         * stap-probe.h: Include "parser-defs.h".
7316         (struct stap_parse_info) <pstate>: New field.
7317         * c-exp.y (parse_type): Rewrite to use parser state.
7318         (yyparse): Redefine to c_parse_internal.
7319         (pstate): New global variable.
7320         (parse_number): Add "struct parser_state" argument.
7321         (write_destructor_name): Likewise.
7322         (type_exp): Update calls to write_exp* and similars in order to
7323         use parser state.
7324         (exp1, exp, variable, qualified_name, space_identifier,
7325         typename, typebase): Likewise.
7326         (write_destructor_name, parse_number, lex_one_token,
7327         classify_name, classify_inner_name, c_parse): Add "struct
7328         parser_state" argument.  Update function to use parser state.
7329         * c-lang.h: Forward declare "struct parser_state".
7330         (c_parse): Add "struct parser_state" argument.
7331         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7332         (yyparse): Redefine macro to ada_parse_internal.
7333         (pstate): New variable.
7334         (write_int, write_object_renaming, write_var_or_type,
7335         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7336         type_int, type_long, type_long_long, type_float, type_double,
7337         type_long_double, type_char, type_boolean, type_system_address):
7338         Add "struct parser_state" argument.
7339         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7340         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7341         var_or_type, aggregate, aggregate_component_list,
7342         positional_list, others, component_group,
7343         component_associations): Update calls to write_exp* and similar
7344         functions in order to use parser state.
7345         (ada_parse, write_var_from_sym, write_int,
7346         write_exp_op_with_string, write_object_renaming,
7347         find_primitive_type, write_selectors, write_ambiguous_var,
7348         write_var_or_type, write_name_assoc, type_int, type_long,
7349         type_long_long, type_float, type_double, type_long_double,
7350         type_char, type_boolean, type_system_address): Add "struct
7351         parser_state" argument.  Adjust function to use parser state.
7352         * ada-lang.c (parse): Likewise.
7353         * ada-lang.h: Forward declare "struct parser_state".
7354         (ada_parse): Add "struct parser_state" argument.
7355         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7356         calls to both functions.
7357         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7358         parser state.
7359         (yyparse): Redefine macro to f_parse_internal.
7360         (pstate): New variable.
7361         (parse_number): Add "struct parser_state" argument.
7362         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7363         and similars in order to use parser state.
7364         (parse_number): Adjust code to use parser state.
7365         (yylex): Likewise.
7366         (f_parse): New function.
7367         * f-lang.h: Forward declare "struct parser_state".
7368         (f_parse): Add "struct parser_state" argument.
7369         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7370         parser state.
7371         (yyparse): Redefine macro for java_parse_internal.
7372         (pstate): New variable.
7373         (push_expression_name, push_expression_name, insert_exp): Add
7374         "struct parser_state" argument.
7375         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7376         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7377         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7378         PostIncrementExpression, PostDecrementExpression,
7379         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7380         UnaryExpressionNotPlusMinus, CastExpression,
7381         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7382         RelationalExpression, EqualityExpression, AndExpression,
7383         ExclusiveOrExpression, InclusiveOrExpression,
7384         ConditionalAndExpression, ConditionalOrExpression,
7385         ConditionalExpression, Assignment, LeftHandSide): Update
7386         calls to write_exp* and similars in order to use parser state.
7387         (parse_number): Ajust code to use parser state.
7388         (yylex): Likewise.
7389         (java_parse): New function.
7390         (push_variable): Add "struct parser_state" argument.  Adjust
7391         code to user parser state.
7392         (push_fieldnames, push_qualified_expression_name,
7393         push_expression_name, insert_exp): Likewise.
7394         * jv-lang.h: Forward declare "struct parser_state".
7395         (java_parse): Add "struct parser_state" argument.
7396         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7397         parser state.
7398         (yyparse): Redefine macro to m2_parse_internal.
7399         (pstate): New variable.
7400         (type_exp, exp, fblock, variable, type): Update calls to
7401         write_exp* and similars to use parser state.
7402         (yylex): Likewise.
7403         (m2_parse): New function.
7404         * m2-lang.h: Forward declare "struct parser_state".
7405         (m2_parse): Add "struct parser_state" argument.
7406         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7407         * objc-lang.h: Forward declare "struct parser_state".
7408         (end_msglist): Add "struct parser_state" argument.
7409         * p-exp.y (parse_type): Rewrite macro to use parser state.
7410         (yyparse): Redefine macro to pascal_parse_internal.
7411         (pstate): New variable.
7412         (parse_number): Add "struct parser_state" argument.
7413         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7414         write_exp* and similars in order to use parser state.
7415         (parse_number, yylex): Adjust code to use parser state.
7416         (pascal_parse): New function.
7417         * p-lang.h: Forward declare "struct parser_state".
7418         (pascal_parse): Add "struct parser_state" argument.
7419         * go-exp.y (parse_type): Rewrite macro to use parser state.
7420         (yyparse): Redefine macro to go_parse_internal.
7421         (pstate): New variable.
7422         (parse_number): Add "struct parser_state" argument.
7423         (type_exp, exp1, exp, variable, type): Update calls to
7424         write_exp* and similars in order to use parser state.
7425         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7426         to use parser state.
7427         (go_parse): Likewise.
7428         * go-lang.h: Forward declare "struct parser_state".
7429         (go_parse): Add "struct parser_state" argument.
7430
7431 2014-03-27  Doug Evans  <dje@google.com>
7432
7433         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7434
7435 2014-03-27  Doug Evans  <dje@google.com>
7436
7437         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7438         Remove argument abbrev_section.  All callers updated.
7439
7440 2014-03-27  Doug Evans  <dje@google.com>
7441
7442         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7443         addr_base, ranges_base.
7444
7445 2014-03-26  Keith Seitz  <keiths@redhat.com>
7446
7447         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7448         types, not VAR_DOMAIN.
7449
7450 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7451
7452         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7453         "ra" registers.
7454         * features/nios2-linux.c: Regenerated.
7455         * features/nios2.c: Regenerated.
7456
7457 2014-03-25  Pedro Alves  <palves@redhat.com>
7458
7459         * cli/cli-script.c (script_from_file): Force the interpreter to
7460         sync mode.
7461
7462 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7463
7464         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7465         small stack allocation.
7466
7467 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7468
7469         * darwin-nat.c (exc_server): Remove unused prototype.
7470         (darwin_dump_message): Correctly display data on x86_64.
7471         (darwin_encode_reply): Fix style.
7472         Add comments and fix indentation.
7473
7474 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7475
7476         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7477
7478 2014-03-22  Doug Evans  <xdje42@gmail.com>
7479
7480         * infcmd.c: Whitespace fixes.
7481         (interrupt_command): Merge two function comments into one.
7482
7483 2014-03-22  Doug Evans  <xdje42@gmail.com>
7484
7485         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7486         All uses updated.
7487
7488 2014-03-22  Yao Qi  <yao@codesourcery.com>
7489
7490         * remote.c (target_read_live_memory): Remove.
7491         (memory_xfer_live_readonly_partial): Rename it to
7492         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7493         All callers updated.  Call remote_read_bytes_1
7494         instead of target_read_live_memory.
7495         * tracepoint.c (set_traceframe_number): Remove.
7496         (make_cleanup_restore_traceframe_number): Likewise .
7497         * tracepoint.h (set_traceframe_number): Remove declaration.
7498         (make_cleanup_restore_traceframe_number): Likewise.
7499
7500 2014-03-22  Yao Qi  <yao@codesourcery.com>
7501
7502         * remote.c (remote_read_bytes): Move code on reading from the
7503         remote stub to ...
7504         (remote_read_bytes_1): ... here.  New function.
7505
7506 2014-03-22  Yao Qi  <yao@codesourcery.com>
7507
7508         * ctf.c (ctf_xfer_partial): Check the return value of
7509         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7510         return TARGET_XFER_UNAVAILABLE.
7511         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7512         * target.c (target_read_live_memory): Move it to remote.c.
7513         (memory_xfer_live_readonly_partial): Likewise.
7514         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7515         * remote.c (target_read_live_memory): Moved from target.c.
7516         (memory_xfer_live_readonly_partial): Likewise.
7517         (remote_read_bytes): Factored out from
7518         memory_xfer_partial_1.
7519
7520 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7521
7522         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7523         NULL pointer.
7524
7525 2014-03-21  Pedro Alves  <palves@redhat.com>
7526
7527         * infrun.c (normal_stop): Extend comment.
7528
7529 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7530             Pedro Alves  <palves@redhat.com>
7531
7532         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7533         static buffer.
7534         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7535         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7536         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7537
7538 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7539
7540         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7541         `z' formatted output modifier.
7542
7543 2014-03-20  Tom Tromey  <tromey@redhat.com>
7544             Sergio Durigan Junior  <sergiodj@redhat.com>
7545
7546         * probe.c (parse_probes): Turn assert into an ordinary error.
7547         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7548         exceptions when parsing probes.  Rearrange the code for clarity.
7549
7550 2014-03-20  Tom Tromey  <tromey@redhat.com>
7551
7552         PR gdb/14135
7553         * top.c (execute_command): Only dispatch events if the command
7554         started the target.
7555
7556 2014-03-20  Tom Tromey  <tromey@redhat.com>
7557
7558         PR cli/15718
7559         * infcall.c: Include event-top.h.
7560         (run_inferior_call): Call async_disable_stdin if needed.
7561
7562 2014-03-20  Pedro Alves  <palves@redhat.com>
7563
7564         * infrun.c (prepare_to_proceed): Delete.
7565         (thread_still_needs_step_over): New function.
7566         (find_thread_needs_step_over): New function.
7567         (proceed): If the current thread needs a step-over, set its
7568         steping_over_breakpoint flag.  Adjust to use
7569         find_thread_needs_step_over instead of prepare_to_proceed.
7570         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7571         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7572         breakpoint.
7573         (switch_back_to_stepped_thread): Step over breakpoints of all
7574         threads not the stepping thread, before switching back to the
7575         stepping thread.
7576
7577 2014-03-20  Pedro Alves  <palves@redhat.com>
7578
7579         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7580         extern.
7581         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7582         * infrun.c (saved_singlestep_ptid)
7583         (stepping_past_singlestep_breakpoint): Delete.
7584         (resume): Remove stepping_past_singlestep_breakpoint handling.
7585         (proceed): Store the prev_pc of the stepping thread too.
7586         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7587         singlestep_pc.
7588         (enum infwait_states): Delete infwait_thread_hop_state.
7589         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7590         field.
7591         (handle_inferior_event): Adjust.
7592         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7593         handling and the thread-hop code.  Before removing single-step
7594         breakpoints, check whether the thread hit a single-step breakpoint
7595         of another thread.  If it did, the trap is not a random signal.
7596         (switch_back_to_stepped_thread): If the event thread hit a
7597         single-step breakpoint, unblock it before switching to the
7598         stepping thread.  Handle the case of the stepped thread having
7599         advanced already.
7600         (keep_going): Handle the case of the current thread moving past a
7601         single-step breakpoint.
7602
7603 2014-03-20  Pedro Alves  <palves@redhat.com>
7604
7605         PR breakpoints/7143
7606         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7607         are being stepped over.
7608         (breakpoint_address_match): Make extern.
7609         * breakpoint.h (breakpoint_address_match): New declaration.
7610         * inferior.h (stepping_past_instruction_at): New declaration.
7611         * infrun.c (struct step_over_info): New type.
7612         (step_over_info): New global.
7613         (set_step_over_info, clear_step_over_info)
7614         (stepping_past_instruction_at): New functions.
7615         (handle_inferior_event): Clear the step-over info when
7616         trap_expected is cleared.
7617         (resume): Remove now stale comment.
7618         (clear_proceed_status): Clear step-over info.
7619         (proceed): Adjust step-over handling to set or clear the step-over
7620         info instead of removing all breakpoints.
7621         (handle_signal_stop): When setting up a thread-hop, don't remove
7622         breakpoints here.
7623         (stop_stepping): Clear step-over info.
7624         (keep_going): Adjust step-over handling to set or clear step-over
7625         info and then always inserting breakpoints, instead of removing
7626         all breakpoints when stepping over one.
7627
7628 2014-03-20  Pedro Alves  <palves@redhat.com>
7629
7630         * infrun.c (previous_inferior_ptid): Adjust comment.
7631         (deferred_step_ptid): Delete.
7632         (infrun_thread_ptid_changed, prepare_to_proceed)
7633         (init_wait_for_inferior): Adjust.
7634         (handle_signal_stop): Delete deferred_step_ptid handling.
7635
7636 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7637
7638         PR gdb/15358
7639         * defs.h (sync_quit_force_run): New declaration.
7640         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7641         * event-top.c (async_sigterm_handler): New declaration.
7642         (async_sigterm_token): New variable.
7643         (async_init_signals): Create also async_sigterm_token.
7644         (async_sigterm_handler): New function.
7645         (sync_quit_force_run): New variable.
7646         (handle_sigterm): Replace quit_force call by other calls.
7647         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7648
7649 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7650
7651         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7652         offset into SPE pseudo registers.
7653
7654 2014-03-18  Pedro Alves  <palves@redhat.com>
7655
7656         PR gdb/13860
7657         * inferior.h (print_stop_event): Declare.
7658         * infrun.c (print_stop_event): New, factored out from ...
7659         (normal_stop): ... this.
7660         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7661         of bpstat_print/print_stack_frame.
7662
7663 2014-03-17  Tom Tromey  <tromey@redhat.com>
7664
7665         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7666
7667 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7668
7669         * ada-lang.c (decode_constrained_packed_array): Perform a
7670         minimal coercion for reference with coerce_ref instead of
7671         ada_coerce_ref.
7672
7673 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7674
7675         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7676         (darwin_solib_create_inferior_hook): Emit a warning if version
7677         is unhandled.
7678
7679 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7680
7681         * python/py-value.c (get_field_flag): Cast flag_name argument to
7682         PyObject_GetAttrString to support Python 2.4.
7683
7684 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7685
7686         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7687         (Global Maintainers): Remove Jan Kratochvil.
7688
7689 2014-03-14  Pedro Alves  <palves@redhat.com>
7690
7691         * inferior.h (terminal_ours_for_output): Rename to ...
7692         (child_terminal_ours_for_output): ... this.
7693         (terminal_save_ours): Rename to ...
7694         (child_terminal_save_ours): ... this.
7695         (terminal_ours): Rename to ...
7696         (child_terminal_ours): ... this.
7697         (terminal_inferior): Rename to ...
7698         (child_terminal_inferior): ... this.
7699         (terminal_init_inferior): Rename to ...
7700         (child_terminal_init_inferior): ... this.
7701         (terminal_init_inferior_with_pgrp): Rename to ...
7702         (child_terminal_init_inferior_with_pgrp): ... this.
7703         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7704         (child_terminal_init_with_pgrp): ... this.
7705         (terminal_save_ours): Rename to ...
7706         (child_terminal_save_ours): ... this.
7707         (terminal_init_inferior): Rename to ...
7708         (child_terminal_init): ... this.  Adjust.
7709         (terminal_inferior): Rename to ...
7710         (child_terminal_inferior): ... this.
7711         (terminal_ours_for_output): Rename to ...
7712         (child_terminal_ours_for_output): ... this.  Adjust.
7713         (terminal_ours): Rename to ...
7714         (child_terminal_ours): ... this.
7715         (terminal_ours_1): Rename to ...
7716         (child_terminal_ours_1): ... this.  Adjust.
7717         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7718         * windows-nat.c (do_initial_windows_stuff): Adjust.
7719         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7720         (gnu_terminal_init): ... this.  Adjust.
7721         (gnu_target): Adjust.
7722         * inf-child.c (inf_child_target): Adjust.
7723
7724 2014-03-13  Doug Evans  <xdje42@gmail.com>
7725
7726         PR guile/16612
7727         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7728         new eq?-hashtab.
7729
7730 2014-03-13  Doug Evans  <xdje42@gmail.com>
7731
7732         * value.c (record_latest_value): Call release_value_or_incref
7733         instead of release_value.
7734
7735 2014-03-13  Pedro Alves  <palves@redhat.com>
7736
7737         * procfs.c (procfs_target): Don't override to_shortname,
7738         to_longname or to_doc.
7739
7740 2014-03-13  Pedro Alves  <palves@redhat.com>
7741
7742         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7743         Unix in user visible strings.
7744
7745 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7746
7747         * gdbtypes.h: Annotate comments for Doxygen, add a page
7748         block comment with some general info.
7749
7750 2014-03-12  Pedro Alves  <palves@redhat.com>
7751
7752         * infcmd.c (prepare_execution_command): New function, factored out
7753         from several execution commands.
7754         (run_command_1, continue_command, step_1, jump_command)
7755         (signal_command, until_command, advance_command, finish_command)
7756         (attach_command): Use prepare_execution_command.
7757
7758 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7759
7760         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7761         (MAX_BPTS): Define.
7762         (MAX_WPTS): Define.
7763         (struct arm_linux_thread_points): Removed.
7764         (struct arm_linux_process_info): New.
7765         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7766         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7767         (arm_linux_find_breakpoints_by_tid): Removed.
7768         (struct arch_lwp_info): New.
7769         (arm_linux_find_process_pid): New functions.
7770         (arm_linux_add_process): New functions.
7771         (arm_linux_process_info_get): New functions.
7772         (arm_linux_forget_process): New function.
7773         (arm_linux_get_debug_reg_state): New function.
7774         (struct update_registers_data): New.
7775         (update_registers_callback): New function.
7776         (arm_linux_insert_hw_breakpoint1): Updated.
7777         (arm_linux_remove_hw_breakpoint1): Updated.
7778         (arm_linux_insert_hw_breakpoint): Updated.
7779         (arm_linux_remove_hw_breakpoint): Updated.
7780         (arm_linux_insert_watchpoint): Updated.
7781         (arm_linux_remove_watchpoint): Updated.
7782         (arm_linux_new_thread): Updated.
7783         (arm_linux_prepare_to_resume): New function.
7784         (arm_linux_new_fork): New function.
7785         (_initialize_arm_linux_nat): Updated.
7786
7787 2014-03-12  Pedro Alves  <palves@redhat.com>
7788
7789         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7790
7791 2014-03-12  Tom Tromey  <tromey@redhat.com>
7792
7793         * inf-child.c (return_zero): New function.
7794         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7795         * aix-thread.c (aix_thread_inferior_created): New function.
7796         (aix_thread_attach): Remove.
7797         (init_aix_thread_ops): Don't set to_attach.
7798         (_initialize_aix_thread): Register inferior_created observer.
7799         * corelow.c (init_core_ops): Don't set to_attach or
7800         to_create_inferior.
7801         * exec.c (init_exec_ops): Don't set to_attach or
7802         to_create_inferior.
7803         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7804         target calls.
7805         (attach_command): Use find_attach_target.  Make direct target
7806         calls.
7807         * record-btrace.c (init_record_btrace_ops): Don't set
7808         to_create_inferior.
7809         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7810         Remove.
7811         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7812         set to_create_inferior.
7813         * target.c (complete_target_initialization): Add assertion.
7814         (target_create_inferior): Remove.
7815         (find_default_attach, find_default_create_inferior): Remove.
7816         (find_attach_target, find_run_target): New functions.
7817         (find_default_is_async_p, find_default_can_async_p)
7818         (target_supports_non_stop, target_attach): Remove.
7819         (init_dummy_target): Don't set to_create_inferior or
7820         to_supports_non_stop.
7821         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7822         TARGET_DEFAULT_FUNC.
7823         <to_create_inferior>: Add comment.
7824         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7825         TARGET_DEFAULT_RETURN.
7826         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7827         (find_attach_target, find_run_target): Declare.
7828         (target_create_inferior): Remove.
7829         (target_has_execution_1): Update comment.
7830         (target_supports_non_stop): Remove.
7831         * target-delegates.c: Rebuild.
7832
7833 2014-03-12  Pedro Alves  <palves@redhat.com>
7834
7835         * inf-child.h: Update comment to not mention Unix.
7836
7837 2014-03-12  Pedro Alves  <palves@redhat.com>
7838
7839         * inf-child.c: Update top comment to not mention Unix.  Add
7840         generic comment describing how this target is meant to be used.
7841         (inf_child_post_attach, inf_child_post_startup_inferior)
7842         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7843         Unix in comment.
7844
7845 2014-03-12  Pedro Alves  <palves@redhat.com>
7846
7847         * nto-procfs.c: Include inf-child.h.
7848         (procfs_ops): Delete global.
7849         (procfs_can_run): Delete method.
7850         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7851         target pointer instead of referencing procfs_ops.
7852         (procfs_prepare_to_store): Delete.
7853         (init_procfs_ops): Delete function.
7854         (procfs_target): New function, based on init_procfs_ops, but
7855         inherit inf_child_target.
7856         (_initialize_procfs): Use procfs_target.
7857
7858 2014-03-12  Pedro Alves  <palves@redhat.com>
7859
7860         * windows-nat.c: Include inf-child.h.
7861         (windows_ops): Delete global.
7862         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7863         methods.
7864         (init_windows_ops): Delete function.
7865         (windows_target): New function, based on init_windows_ops, but
7866         inherit inf_child_target.
7867         (_initialize_windows_nat): Use windows_target.  Install x86
7868         specific target methods here.
7869
7870 2014-03-10  Doug Evans  <xdje42@gmail.com>
7871
7872         * guile/guile.c (call_initialize_gdb_module): New function.
7873         (initialize_guile): Replace call to scm_init_guile with call to
7874         scm_with_guile.
7875
7876 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7877
7878         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7879         in call to TYPE_CODE macro.
7880
7881 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7882
7883         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7884         Resolve tagged types to full view.
7885
7886 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7887
7888         * target.h (target_insert_breakpoint): Remove "hardware" from its
7889         comments.
7890
7891 2014-03-07  Doug Evans  <dje@google.com>
7892
7893         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7894
7895 2014-03-07  Doug Evans  <dje@google.com>
7896
7897         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7898         Remove unused local comp_dir_attr.  Assert exactly one of
7899         stub_comp_unit_die, stub_comp_dir is non-NULL.
7900
7901 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7902
7903         * target.h (complete_target_initialization, add_target):
7904         Add comment.
7905
7906 2014-03-07  Pedro Alves  <palves@redhat.com>
7907
7908         * go32-nat.c: Include inf-child.h.
7909         (go32_ops): Delete global.
7910         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7911         Delete methods.
7912         (go32_create_inferior): Push the passed in target pointer instead
7913         of referencing go32_ops.
7914         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7915         (go32_target): New function, based on init_go32_ops, but inherit
7916         inf_child_target.
7917         (_initialize_go32_nat): Use go32_target.  Move parts of
7918         init_go32_ops here.
7919
7920 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7921
7922         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7923         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7924         SYMBOL_VALUE_ADDRESS.
7925         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7926
7927 2014-03-06  Yao Qi  <yao@codesourcery.com>
7928
7929         * breakpoint.c (get_tracepoint_by_number): Remove argument
7930         optional_p.  All callers updated.  Adjust comments.  Update
7931         output message.
7932         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7933
7934 2014-03-06  Yao Qi  <yao@codesourcery.com>
7935
7936         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7937         early if get_number returns zero.  Use 'p' instead of 'args'.
7938
7939 2014-03-06  Yao Qi  <yao@codesourcery.com>
7940
7941         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7942         message.
7943
7944 2014-03-06  Yao Qi  <yao@codesourcery.com>
7945
7946         PR breakpoints/16508
7947         * tracepoint.c (check_trace_running): New function.
7948         (trace_find_command): Move code to check_trace_running and
7949         call check_trace_running.
7950         (trace_find_pc_command): Likewise.
7951         (trace_find_tracepoint_command): Likewise.
7952         (trace_find_line_command): Likewise.
7953         (trace_find_range_command): Likewise.
7954         * tracepoint.h (check_trace_running): Likewise.
7955         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7956
7957 2014-03-06  Yao Qi  <yao@codesourcery.com>
7958
7959         * target.h (struct target_ops) <to_traceframe_info>: Use
7960         TARGET_DEFAULT_NORETURN (tcomplain ()).
7961         * target-delegates.c: Regenerated.
7962
7963 2014-03-05  Pedro Alves  <palves@redhat.com>
7964
7965         PR gdb/16575
7966         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7967         void.  Update comment.
7968         (dcache_xfer_memory): Delete.
7969         (dcache_read_memory_partial): New, based on the read bits of
7970         dcache_xfer_memory.
7971         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7972         adjust.  Discard cache lines if the reason for the update was
7973         error.
7974         * dcache.h (dcache_xfer_memory): Delete declaration.
7975         (dcache_read_memory_partial): New declaration.
7976         (dcache_update): Update prototype.
7977         * target.c (raw_memory_xfer_partial): Update the dcache here.
7978         (memory_xfer_partial_1): Don't handle dcache writes here.
7979
7980 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7981
7982         * remote-sim.c (gdbsim_load): Add const to prog.
7983
7984 2014-03-03  Tom Tromey  <tromey@redhat.com>
7985
7986         * elfread.c (probe_key): Change to bfd_data.
7987         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7988         now per-BFD, not per-objfile.
7989         * stap-probe.c (stap_probe_destroy): Update comment.
7990         (handle_stap_probe): Allocate on the per-BFD obstack.
7991
7992 2014-03-03  Tom Tromey  <tromey@redhat.com>
7993
7994         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7995         * breakpoint.c (create_longjmp_master_breakpoint): Use
7996         get_probe_address.
7997         (add_location_to_breakpoint, bkpt_probe_insert_location)
7998         (bkpt_probe_remove_location): Update.
7999         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8000         * elfread.c (elf_symfile_relocate_probe): Remove.
8001         (elf_probe_fns): Update.
8002         (insert_exception_resume_breakpoint): Change type of "probe"
8003         parameter to bound_probe.
8004         (check_exception_resume): Update.
8005         * objfiles.c (objfile_relocate1): Don't relocate probes.
8006         * probe.c (bound_probe_s): New typedef.
8007         (parse_probes): Use get_probe_address.  Set sal's objfile.
8008         (find_probe_by_pc): Return a bound_probe.
8009         (collect_probes): Return a VEC(bound_probe_s).
8010         (compare_probes): Update.
8011         (gen_ui_out_table_header_info): Change type of "probes"
8012         parameter.  Update.
8013         (info_probes_for_ops): Update.
8014         (get_probe_address): New function.
8015         (probe_safe_evaluate_at_pc): Update.
8016         * probe.h (struct probe_ops) <get_probe_address>: New field.
8017         <set_semaphore, clear_semaphore>: Add objfile parameter.
8018         (struct probe) <objfile>: Remove field.
8019         <arch>: New field.
8020         <address>: Update comment.
8021         (struct bound_probe): New.
8022         (find_probe_by_pc): Return a bound_probe.
8023         (get_probe_address): Declare.
8024         * solib-svr4.c (struct probe_and_action) <address>: New field.
8025         (hash_probe_and_action, equal_probe_and_action): Update.
8026         (register_solib_event_probe): Add address parameter.
8027         (solib_event_probe_at): Update.
8028         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8029         get_probe_address.
8030         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8031         (stap_get_probe_address): New function.
8032         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8033         (compile_probe_arg): Update.
8034         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8035         address.
8036         (handle_stap_probe): Don't relocate the probe.
8037         (stap_relocate): Remove.
8038         (stap_gen_info_probes_table_values): Update.
8039         (stap_probe_ops): Remove stap_relocate.
8040         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8041         (debug_sym_probe_fns): Update.
8042         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8043         * symtab.c (init_sal): Use memset.
8044         * symtab.h (struct symtab_and_line) <objfile>: New field.
8045         * tracepoint.c (start_tracing, stop_tracing): Update.
8046
8047 2014-03-03  Tom Tromey  <tromey@redhat.com>
8048
8049         * probe.h (parse_probes, find_probe_by_pc)
8050         (find_probes_in_objfile): Fix comments.
8051
8052 2014-03-02  Doug Evans  <xdje42@gmail.com>
8053
8054         * infrun.c (handle_signal_stop): Replace test for
8055         TARGET_WAITKIND_STOPPED with an assert.
8056
8057 2014-03-02  Doug Evans  <xdje42@gmail.com>
8058
8059         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8060
8061 2014-03-02  Doug Evans  <xdje42@gmail.com>
8062
8063         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8064
8065 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8066
8067         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8068
8069 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8070
8071         * i386obsd-nat.c: Include "obsd-nat.h".
8072         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8073         add_target.
8074         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8075
8076 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8077
8078         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8079
8080 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8081
8082         * mips64obsd-nat.c: Include "obsd-nath".
8083         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8084         add_target
8085         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8086
8087 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8088
8089         * amd64obsd-nat.c: Include "obsd-nat,h.
8090         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8091         add_target.
8092         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8093
8094 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8095
8096         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8097         (find_overload_match): Update call to find_oload_champ.
8098         (find_oload_champ_namespace_loop): Likewise
8099
8100 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8101
8102         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8103
8104         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8105         * config/sparc/obsd64.mh: New file.
8106         * sparc64obsd-nat.c: New file.
8107
8108         * obsd-nat.h: New file.
8109         * obsd-nat.c: New file.
8110         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8111         (ALLDEPFILES): Add obsd-nat.c.
8112
8113 2014-02-28  Tom Tromey  <tromey@redhat.com>
8114
8115         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8116         * cli-out.h (cli_ui_out_impl): Now const.
8117         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8118         * ui-out.c (struct ui_out) <impl>: Now const.
8119         (default_ui_out_impl): Now const.
8120         (ui_out_new): Make 'impl' parameter const.
8121         * ui-out.h (ui_out_new): Update.
8122
8123 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8124
8125         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8126
8127 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8128
8129         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8130
8131 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8132
8133         Additional PR 8882 fix.
8134         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8135
8136 2014-02-27  Pedro Alves  <palves@redhat.com>
8137
8138         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8139         isn't set.
8140
8141 2014-02-27  Pedro Alves  <palves@redhat.com>
8142
8143         PR 12702
8144         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8145         * nat/linux-waitpid.c: Include string.h.
8146         (status_to_str): Moved here and made extern.
8147         * nat/linux-waitpid.h (status_to_str): New declaration.
8148
8149 2014-02-27  Hui Zhu  <hui@codesourcery.com>
8150
8151         PR 12702
8152         * infrun.c (ptid_match): Move ...
8153         * common/ptid.c (ptid_match): ... here.
8154         * inferior.h (ptid_match): Move ...
8155         * common/ptid.h (ptid_match): ... here.
8156
8157 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8158
8159         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8160         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8161         gdb_target_obs.
8162
8163 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8164
8165         * obsd-tdep.c (obsd_auxv_parse): New function.
8166         (obsd_init_abi): Set auxv_parse.
8167
8168         * gdbarch.sh (auxv_parse): New.
8169         * gdbarch.h: Regenerated.
8170         * gdbarch.c: Regenerated.
8171         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8172
8173 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
8174
8175         * guile/scm-value.c (gdbscm_history_append_x): New function.
8176         (value_functions): Add it.
8177
8178 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8179
8180         * dwarf2read.c (attr_value_as_address): New function.
8181         (dwarf2_find_base_address, read_call_site_scope): Use
8182         attr_value_as_address in place of DW_ADDR.
8183         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8184         the low and high addresses.  Slight rework of the handling
8185         of the high pc being a constant form, and limit it to
8186         DWARF verson 4 or higher.
8187         (dwarf2_record_block_ranges): Likewise.
8188         (read_partial_die): Likewise.
8189         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8190
8191 2014-02-26  Tom Tromey  <tromey@redhat.com>
8192
8193         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8194
8195 2014-02-26  Tom Tromey  <tromey@redhat.com>
8196
8197         * elfread.c (elf_read_minimal_symbols): Return early if
8198         minimal symbols have already been read.  Add "ei" parameter.
8199         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8200         * minsyms.c (prim_record_minimal_symbol_full): Update.
8201         * objfiles.h (struct objstats) <n_minsyms>: Move...
8202         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8203         * symmisc.c (print_objfile_statistics): Update.
8204
8205 2014-02-26  Tom Tromey  <tromey@redhat.com>
8206
8207         * elfread.c (elf_read_minimal_symbols): New function, from
8208         elf_symfile_read.
8209         (elf_symfile_read): Call it.
8210
8211 2014-02-26  Tom Tromey  <tromey@redhat.com>
8212
8213         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8214         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8215         (lookup_minimal_symbol_solib_trampoline)
8216         (lookup_minimal_symbol_by_pc_section_1)
8217         (lookup_minimal_symbol_and_objfile): Update.
8218         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8219         Don't allocate a minimal symbol if minsyms have already been read.
8220         (build_minimal_symbol_hash_tables): Update.
8221         (install_minimal_symbols): Do nothing if minsyms already read.
8222         Use the per-BFD obstack.
8223         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8224         * objfiles.c (allocate_objfile): Call
8225         terminate_minimal_symbol_table later.
8226         (have_minimal_symbols): Update.
8227         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8228         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8229         Move from struct objfile.
8230         <minsyms_read>: New field.
8231         (struct objfile) <msymbols, minimal_symbol_count,
8232         msymbol_hash, msymbol_demangled_hash>: Move.
8233         (ALL_OBJFILE_MSYMBOLS): Update.
8234         * symfile.c (read_symbols): Set minsyms_read.
8235         (reread_symbols): Update.
8236         * symmisc.c (dump_objfile, dump_msymbols): Update.
8237
8238 2014-02-26  Tom Tromey  <tromey@redhat.com>
8239
8240         * minsyms.c (msymbols_sort): Remove.
8241         * minsyms.h (msymbols_sort): Remove.
8242         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8243         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8244         * elfread.c (elf_symtab_read): Don't add section offsets.
8245         * xcoffread.c (record_minimal_symbol): Don't add section offset
8246         to minimal symbol address.
8247         * somread.c (text_offset, data_offset): Remove.
8248         (som_symtab_read): Don't add section offsets to minimal symbol
8249         addresses.
8250         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8251         Don't add section offsets to minimal symbols.
8252         * coffread.c (coff_symtab_read): Don't add section offsets
8253         to minimal symbol addresses.
8254         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8255         to minimal symbol addresses.
8256         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8257         section offset to minimal symbol addresses.
8258         * mdebugread.c (parse_partial_symbols): Don't add section
8259         offset to minimal symbol addresses.
8260         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8261         offset to minimal symbol addresses.
8262
8263 2014-02-26  Tom Tromey  <tromey@redhat.com>
8264
8265         * ada-lang.c (ada_main_name): Update.
8266         (ada_add_standard_exceptions): Update.
8267         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8268         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8269         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8270         * auxv.c (ld_so_xfer_auxv): Update.
8271         * avr-tdep.c (avr_scan_prologue): Update.
8272         * ax-gdb.c (gen_var_ref): Update.
8273         * blockframe.c (get_pc_function_start)
8274         (find_pc_partial_function_gnu_ifunc): Update.
8275         * breakpoint.c (create_overlay_event_breakpoint)
8276         (create_longjmp_master_breakpoint)
8277         (create_std_terminate_master_breakpoint)
8278         (create_exception_master_breakpoint): Update.
8279         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8280         * c-valprint.c (c_val_print): Update.
8281         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8282         * common/agent.c (agent_look_up_symbols): Update.
8283         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8284         * dwarf2loc.c (call_site_to_target_addr): Update.
8285         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8286         * elfread.c (elf_gnu_ifunc_record_cache)
8287         (elf_gnu_ifunc_resolve_by_got): Update.
8288         * findvar.c (default_read_var_value): Update.
8289         * frame.c (inside_main_func): Update.
8290         * frv-tdep.c (frv_frame_this_id): Update.
8291         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8292         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8293         Update.
8294         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8295         (hppa_hpux_find_dummy_bpaddr): Update.
8296         * hppa-tdep.c (hppa_symbol_address): Update.
8297         * infcmd.c (until_next_command): Update.
8298         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8299         Update.
8300         * linespec.c (minsym_found, add_minsym): Update.
8301         * linux-nat.c (get_signo): Update.
8302         * linux-thread-db.c (inferior_has_bug): Update.
8303         * m32c-tdep.c (m32c_return_value)
8304         (m32c_m16c_address_to_pointer): Update.
8305         * m32r-tdep.c (m32r_frame_this_id): Update.
8306         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8307         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8308         * maint.c (maintenance_translate_address): Update.
8309         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8310         (frob_address): New function.
8311         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8312         frob_address.  Rename parameter to "pc_in".
8313         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8314         addresses.
8315         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8316         Update.
8317         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8318         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8319         * objc-lang.c (find_objc_msgsend): Update.
8320         * objfiles.c (objfile_relocate1): Update.
8321         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8322         * p-valprint.c (pascal_val_print): Update.
8323         * parse.c (write_exp_msymbol): Update.
8324         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8325         (ppc_elfv2_skip_entrypoint): Update.
8326         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8327         * printcmd.c (build_address_symbolic, msym_info)
8328         (address_info): Update.
8329         * proc-service.c (ps_pglobal_lookup): Update.
8330         * psymtab.c (find_pc_sect_psymtab_closer)
8331         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8332         Change msymbol parameter to bound_minimal_symbol.
8333         * ravenscar-thread.c (get_running_thread_id): Update.
8334         * remote.c (remote_check_symbols): Update.
8335         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8336         address.
8337         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8338         * solib-dsbt.c (lm_base): Update.
8339         * solib-frv.c (lm_base, main_got): Update.
8340         * solib-irix.c (locate_base): Update.
8341         * solib-som.c (som_solib_create_inferior_hook)
8342         (link_map_start): Update.
8343         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8344         * solib-svr4.c (elf_locate_base, enable_break): Update.
8345         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8346         (flush_ea_cache): Update.
8347         * stabsread.c (define_symbol, scan_file_globals): Update.
8348         * stack.c (find_frame_funname): Update.
8349         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8350         (debug_qf_find_pc_sect_symtab): Update.
8351         * symfile.c (simple_read_overlay_table)
8352         (simple_overlay_update): Update.
8353         * symfile.h (struct quick_symbol_functions)
8354         <find_pc_sect_symtab>: Change type of msymbol to
8355         bound_minimal_symbol.
8356         * symmisc.c (dump_msymbols): Update.
8357         * symtab.c (find_pc_sect_symtab_via_partial)
8358         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8359         (search_symbols, print_msymbol_info): Update.
8360         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8361         (MSYMBOL_VALUE_ADDRESS): Redefine.
8362         (BMSYMBOL_VALUE_ADDRESS): New macro.
8363         * tracepoint.c (scope_info): Update.
8364         * tui/tui-disasm.c (tui_find_disassembly_address)
8365         (tui_get_begin_asm_address): Update.
8366         * valops.c (find_function_in_inferior): Update.
8367         * value.c (value_static_field, value_fn_field): Update.
8368
8369 2014-02-26  Tom Tromey  <tromey@redhat.com>
8370
8371         * ada-lang.c (ada_update_initial_language): Update.
8372         (ada_main_name, ada_has_this_exception_support): Update.
8373         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8374         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8375         * arm-tdep.c (arm_skip_stub): Update.
8376         * auxv.c (ld_so_xfer_auxv): Update.
8377         * avr-tdep.c (avr_scan_prologue): Update.
8378         * ax-gdb.c (gen_var_ref): Update.
8379         * breakpoint.c (struct breakpoint_objfile_data)
8380         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8381         type to bound_minimal_symbol.
8382         (create_overlay_event_breakpoint)
8383         (create_longjmp_master_breakpoint)
8384         (create_std_terminate_master_breakpoint)
8385         (create_exception_master_breakpoint): Update.
8386         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8387         * c-exp.y (classify_name): Update.
8388         * coffread.c (coff_symfile_read): Update.
8389         * common/agent.c (agent_look_up_symbols): Update.
8390         * d-lang.c (d_main_name): Update.
8391         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8392         * dec-thread.c (enable_dec_thread): Update.
8393         * dwarf2loc.c (call_site_to_target_addr): Update.
8394         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8395         * eval.c (evaluate_subexp_standard): Update.
8396         * findvar.c (struct minsym_lookup_data) <result>: Change type
8397         to bound_minimal_symbol.
8398         <objfile>: Remove.
8399         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8400         * frame.c (inside_main_func): Update.
8401         * frv-tdep.c (frv_frame_this_id): Update.
8402         * gcore.c (call_target_sbrk): Update.
8403         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8404         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8405         Update.
8406         * go-lang.c (go_main_name): Update.
8407         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8408         (hppa_hpux_find_import_stub_for_addr): Update.
8409         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8410         Update.  Change return type.
8411         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8412         type.
8413         * jit.c (jit_breakpoint_re_set_internal): Update.
8414         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8415         Update.
8416         * linux-nat.c (get_signo): Update.
8417         * linux-thread-db.c (inferior_has_bug): Update
8418         * m32c-tdep.c (m32c_return_value)
8419         (m32c_m16c_address_to_pointer): Update.
8420         * m32r-tdep.c (m32r_frame_this_id): Update.
8421         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8422         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8423         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8424         lookup_minimal_symbol.  Change return type.
8425         (lookup_minimal_symbol): Remove.
8426         (lookup_bound_minimal_symbol): Update.
8427         (lookup_minimal_symbol_text): Change return type.
8428         (lookup_minimal_symbol_solib_trampoline): Change return type.
8429         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8430         (lookup_minimal_symbol_solib_trampoline): Change return type.
8431         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8432         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8433         (value_nsstring, find_imps): Update.
8434         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8435         * p-lang.c (pascal_main_name): Update.
8436         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8437         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8438         * proc-service.c (ps_pglobal_lookup): Update.
8439         * ravenscar-thread.c (get_running_thread_msymbol): Change
8440         return type.
8441         (has_ravenscar_runtime, get_running_thread_id): Update.
8442         * remote.c (remote_check_symbols): Update.
8443         * sol-thread.c (ps_pglobal_lookup): Update.
8444         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8445         * solib-dsbt.c (lm_base): Update.
8446         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8447         Update.
8448         * solib-irix.c (locate_base): Update.
8449         * solib-som.c (som_solib_create_inferior_hook)
8450         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8451         Update.
8452         * solib-spu.c (spu_enable_break): Update.
8453         * solib-svr4.c (elf_locate_base, enable_break): Update.
8454         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8455         (flush_ea_cache): Update.
8456         * stabsread.c (define_symbol): Update.
8457         * symfile.c (simple_read_overlay_table): Update.
8458         * symtab.c (find_pc_sect_line): Update.
8459         * tracepoint.c (scope_info): Update.
8460         * tui-disasm.c (tui_get_begin_asm_address): Update.
8461         * value.c (value_static_field): Update.
8462
8463 2014-02-26  Tom Tromey  <tromey@redhat.com>
8464
8465         * minsyms.c (prim_record_minimal_symbol_full): Use
8466         SET_MSYMBOL_VALUE_ADDRESS.
8467         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8468         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8469         SET_MSYMBOL_VALUE_ADDRESS.
8470         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8471         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8472
8473 2014-02-26  Tom Tromey  <tromey@redhat.com>
8474
8475         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8476         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8477         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8478         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8479         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8480         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8481         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8482         * ada-lang.c (ada_main_name): Update.
8483         (ada_lookup_simple_minsym): Update.
8484         (ada_make_symbol_completion_list): Update.
8485         (ada_add_standard_exceptions): Update.
8486         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8487         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8488         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8489         * arm-tdep.c (skip_prologue_function): Update.
8490         (arm_skip_stack_protector, arm_skip_stub): Update.
8491         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8492         (arm_wince_skip_main_prologue): Update.
8493         * auxv.c (ld_so_xfer_auxv): Update.
8494         * avr-tdep.c (avr_scan_prologue): Update.
8495         * ax-gdb.c (gen_var_ref): Update.
8496         * block.c (call_site_for_pc): Update.
8497         * blockframe.c (get_pc_function_start): Update.
8498         (find_pc_partial_function_gnu_ifunc): Update.
8499         * breakpoint.c (create_overlay_event_breakpoint): Update.
8500         (create_longjmp_master_breakpoint): Update.
8501         (create_std_terminate_master_breakpoint): Update.
8502         (create_exception_master_breakpoint): Update.
8503         (resolve_sal_pc): Update.
8504         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8505         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8506         Update.
8507         * c-valprint.c (c_val_print): Update.
8508         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8509         * coffread.c (coff_symfile_read): Update.
8510         * common/agent.c (agent_look_up_symbols): Update.
8511         * dbxread.c (find_stab_function_addr): Update.
8512         (end_psymtab): Update.
8513         * dwarf2loc.c (call_site_to_target_addr): Update.
8514         (func_verify_no_selftailcall): Update.
8515         (tailcall_dump): Update.
8516         (call_site_find_chain_1): Update.
8517         (dwarf_expr_reg_to_entry_parameter): Update.
8518         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8519         (elf_gnu_ifunc_resolve_by_got): Update.
8520         * f-valprint.c (info_common_command): Update.
8521         * findvar.c (read_var_value): Update.
8522         * frame.c (get_prev_frame_1): Update.
8523         (inside_main_func): Update.
8524         * frv-tdep.c (frv_skip_main_prologue): Update.
8525         (frv_frame_this_id): Update.
8526         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8527         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8528         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8529         (gnuv3_skip_trampoline): Update.
8530         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8531         (hppa64_hpux_in_solib_call_trampoline): Update.
8532         (hppa_hpux_skip_trampoline_code): Update.
8533         (hppa64_hpux_search_dummy_call_sequence): Update.
8534         (hppa_hpux_find_import_stub_for_addr): Update.
8535         (hppa_hpux_find_dummy_bpaddr): Update.
8536         * hppa-tdep.c (hppa_symbol_address)
8537         (hppa_lookup_stub_minimal_symbol): Update.
8538         * i386-tdep.c (i386_skip_main_prologue): Update.
8539         (i386_pe_skip_trampoline_code): Update.
8540         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8541         * infcall.c (get_function_name): Update.
8542         * infcmd.c (until_next_command): Update.
8543         * jit.c (jit_breakpoint_re_set_internal): Update.
8544         (jit_inferior_init): Update.
8545         * linespec.c (minsym_found): Update.
8546         (add_minsym): Update.
8547         * linux-fork.c (info_checkpoints_command): Update.
8548         * linux-nat.c (get_signo): Update.
8549         * linux-thread-db.c (inferior_has_bug): Update.
8550         * m32c-tdep.c (m32c_return_value): Update.
8551         (m32c_m16c_address_to_pointer): Update.
8552         (m32c_m16c_pointer_to_address): Update.
8553         * m32r-tdep.c (m32r_frame_this_id): Update.
8554         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8555         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8556         * maint.c (maintenance_translate_address): Update.
8557         * minsyms.c (add_minsym_to_hash_table): Update.
8558         (add_minsym_to_demangled_hash_table): Update.
8559         (msymbol_objfile): Update.
8560         (lookup_minimal_symbol): Update.
8561         (iterate_over_minimal_symbols): Update.
8562         (lookup_minimal_symbol_text): Update.
8563         (lookup_minimal_symbol_by_pc_name): Update.
8564         (lookup_minimal_symbol_solib_trampoline): Update.
8565         (lookup_minimal_symbol_by_pc_section_1): Update.
8566         (lookup_minimal_symbol_and_objfile): Update.
8567         (prim_record_minimal_symbol_full): Update.
8568         (compare_minimal_symbols): Update.
8569         (compact_minimal_symbols): Update.
8570         (build_minimal_symbol_hash_tables): Update.
8571         (install_minimal_symbols): Update.
8572         (terminate_minimal_symbol_table): Update.
8573         (find_solib_trampoline_target): Update.
8574         (minimal_symbol_upper_bound): Update.
8575         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8576         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8577         (mips_skip_pic_trampoline_code): Update.
8578         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8579         * objc-lang.c (selectors_info): Update.
8580         (classes_info): Update.
8581         (find_methods): Update.
8582         (find_imps): Update.
8583         (find_objc_msgsend): Update.
8584         * objfiles.c (objfile_relocate1): Update.
8585         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8586         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8587         * p-valprint.c (pascal_val_print): Update.
8588         * parse.c (write_exp_msymbol): Update.
8589         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8590         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8591         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8592         * printcmd.c (build_address_symbolic): Update.
8593         (sym_info): Update.
8594         (address_info): Update.
8595         * proc-service.c (ps_pglobal_lookup): Update.
8596         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8597         (find_pc_sect_psymtab): Update.
8598         * python/py-framefilter.c (py_print_frame): Update.
8599         * ravenscar-thread.c (get_running_thread_id): Update.
8600         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8601         Update.
8602         * remote.c (remote_check_symbols): Update.
8603         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8604         (rs6000_skip_trampoline_code): Update.
8605         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8606         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8607         * solib-dsbt.c (lm_base): Update.
8608         * solib-frv.c (lm_base): Update.
8609         (main_got): Update.
8610         * solib-irix.c (locate_base): Update.
8611         * solib-som.c (som_solib_create_inferior_hook): Update.
8612         (som_solib_desire_dynamic_linker_symbols): Update.
8613         (link_map_start): Update.
8614         * solib-spu.c (spu_enable_break): Update.
8615         (ocl_enable_break): Update.
8616         * solib-svr4.c (elf_locate_base): Update.
8617         (enable_break): Update.
8618         * spu-tdep.c (spu_get_overlay_table): Update.
8619         (spu_catch_start): Update.
8620         (flush_ea_cache): Update.
8621         * stabsread.c (define_symbol): Update.
8622         (scan_file_globals): Update.
8623         * stack.c (find_frame_funname): Update.
8624         (frame_info): Update.
8625         * symfile.c (simple_read_overlay_table): Update.
8626         (simple_overlay_update): Update.
8627         * symmisc.c (dump_msymbols): Update.
8628         * symtab.c (fixup_section): Update.
8629         (find_pc_sect_line): Update.
8630         (skip_prologue_sal): Update.
8631         (search_symbols): Update.
8632         (print_msymbol_info): Update.
8633         (rbreak_command): Update.
8634         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8635         (completion_list_objc_symbol): Update.
8636         (default_make_symbol_completion_list_break_on): Update.
8637         * tracepoint.c (scope_info): Update.
8638         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8639         (tui_get_begin_asm_address): Update.
8640         * valops.c (find_function_in_inferior): Update.
8641         * value.c (value_static_field): Update.
8642         (value_fn_field): Update.
8643
8644 2014-02-26  Tom Tromey  <tromey@redhat.com>
8645
8646         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8647         bound minimal symbols.  Move code that knows about minsym
8648         table layout...
8649         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8650         function.
8651         * minsyms.h (minimal_symbol_upper_bound): Declare.
8652         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8653         minimal_symbol_upper_bound.
8654
8655 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8656
8657         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8658         Use the type's name if its basic type does not have a tag.
8659
8660 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8661
8662         * dwarf2read.c (read_subrange_type): Add comment.
8663
8664 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8665
8666         * dwarf2read.c (update_enumeration_type_from_children): New
8667         function, mostly extracted from process_structure_scope.
8668         (read_enumeration_type): Call update_enumeration_type_from_children.
8669         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8670         and flag_flag_enum fields.
8671
8672 2014-02-26  Pedro Alves  <palves@redhat.com>
8673
8674         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8675         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8676         to_xfer_partial method.
8677
8678 2014-02-26  Pedro Alves  <palves@redhat.com>
8679
8680         * target.c (complete_target_initialization): Don't install
8681         default_xfer_partial as to_xfer_partial hook.
8682         (nomemory): Delete.
8683         (update_current_target): Don't INHERIT nor de_fault
8684         deprecated_xfer_memory.  Delete de_fault macro.
8685         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8686         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8687         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8688         field.
8689
8690 2014-02-26  Pedro Alves  <palves@redhat.com>
8691
8692         * go32-nat.c (my_write_child): New function.
8693         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8694         (go32_xfer_partial): New function.
8695         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8696         Instead install a to_xfer_partial hook.
8697
8698 2014-02-26  Pedro Alves  <palves@redhat.com>
8699
8700         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8701         to_xfer_partial helper.  Rewrite.
8702         (procfs_xfer_partial): New function.
8703         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8704         Install a to_xfer_partial hook.
8705
8706 2014-02-26  Pedro Alves  <palves@redhat.com>
8707
8708         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8709         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8710         (m32r_xfer_partial): New function.
8711         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8712         Install a to_xfer_partial hook.
8713
8714 2014-02-26  Pedro Alves  <palves@redhat.com>
8715
8716         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8717         helper.
8718         (mips_xfer_partial): New function.
8719         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8720         hook.  Install a to_xfer_partial hook.
8721
8722 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8723
8724         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8725         * gdbtypes.c (create_array_type_with_stride): New function,
8726         renaming create_array_type, but with an added parameter
8727         called "bit_stride".
8728         (create_array_type): Re-implement using
8729         create_array_type_with_stride.
8730         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8731         and DW_AT_bit_stride attributes.
8732
8733 2014-02-26  Pedro Alves  <palves@redhat.com>
8734
8735         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8736         task-specific breakpoints.
8737
8738 2014-02-25  Pedro Alves  <palves@redhat.com>
8739
8740         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8741         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8742
8743 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8744
8745         * defs.h: Annotate comments for Doxygen.
8746
8747 2014-02-25  Tom Tromey  <tromey@redhat.com>
8748
8749         * target.h (target_ignore): Don't declare.
8750         * target.c (target_ignore): Remove.
8751
8752 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8753
8754         PR gdb/16626
8755         * auto-load.c (auto_load_objfile_script_1): Change filename to
8756         debugfile.
8757
8758 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8759
8760         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8761         documentation.  Adjust prototype to match the target_ops
8762         to_xfer_partial method.  Adjust implementation accordingly.
8763
8764 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8765
8766         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8767         to_traceframe_info.
8768
8769 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8770
8771         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8772         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8773         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8774         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8775         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8776         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8777         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8778         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8779         New constants.
8780         (rl78_register_type): Use a data pointer type for SP and
8781         new pseudo registers mentioned above.  Use a 16 bit integer
8782         type for all other register pairs.
8783         (rl78_register_name, rl78_g10_register_name): Update for
8784         new pseudo registers.
8785         (rl78_pseudo_register_read): Likewise.
8786         (rl78_pseudo_register_write): Likewise.
8787         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8788         to the newly added pseudo registers.
8789
8790 2014-02-24  Doug Evans  <dje@google.com>
8791
8792         * value.c (record_latest_value): Fix comment.
8793         * printcmd.c (print_command_1): Remove code to handle -1 return from
8794         record_latest_value.
8795
8796 2014-02-24  Pedro Alves  <palves@redhat.com>
8797
8798         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8799         deprecated_xfer_memory hook.
8800         (procfs_xfer_partial): Call procfs_xfer_memory instead
8801         of the deprecated_xfer_memory target hook.
8802         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8803         helper.
8804
8805 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8806
8807         * windows-nat.c (windows_xfer_shared_libraries): Return
8808         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8809         requested object is TARGET_OBJECT_LIBRARIES.
8810
8811 2014-02-24  Yao Qi  <yao@codesourcery.com>
8812
8813         * target.h (enum target_xfer_status)
8814         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8815         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8816         explicitly.  New.
8817         * corefile.c (memory_error_message): User updated.
8818         * exec.c (section_table_read_available_memory): Likewise.
8819         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8820         * target.c (target_xfer_status_to_string): Likewise.
8821         (raw_memory_xfer_partial): Likewise.
8822         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8823         * valops.c (read_value_memory): Likewise.
8824         * exec.h: Update comments.
8825
8826 2014-02-24  Yao Qi  <yao@codesourcery.com>
8827
8828         * target.c (target_xfer_status_to_string): Rename argument err
8829         to status.
8830         * target.h (target_xfer_status_to_string): Update declaration.
8831         Replace target_xfer_error_to_string with
8832         target_xfer_status_to_string in comment.
8833
8834 2014-02-24  Yao Qi  <yao@codesourcery.com>
8835
8836         * mips-linux-nat.c (super_close): Update its type.
8837         (mips_linux_close): Pass 'self' to super_close.
8838
8839 2014-02-24  Yao Qi  <yao@codesourcery.com>
8840
8841         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8842         * corefile.c (read_memory): Adjusted.
8843         * target.c (target_write_with_progress): Adjusted.
8844
8845 2014-02-23  Yao Qi  <yao@codesourcery.com>
8846
8847         Revert two patches:
8848
8849         2013-10-25  Yao Qi  <yao@codesourcery.com>
8850
8851         * remote.c (remote_traceframe_info): Return early if
8852         traceframe is not selected.
8853
8854         2013-07-19  Yao Qi  <yao@codesourcery.com>
8855
8856         * target.c (update_current_target): Change the default action
8857         of 'to_traceframe_info' from tcomplain to return_zero.
8858         * target.h (struct target_ops) <to_traceframe_info>: Add more
8859         comments.
8860
8861 2014-02-23  Yao Qi  <yao@codesourcery.com>
8862
8863         * valops.c (read_value_memory): Rewrite it.  Call
8864         target_xfer_partial in a loop.
8865         * exec.h (section_table_available_memory): Remove declaration.
8866         Move comments to ...
8867         * exec.c (section_table_available_memory): ... here.  Make it
8868         static.
8869
8870 2014-02-23  Yao Qi  <yao@codesourcery.com>
8871
8872         * exec.c (section_table_read_available_memory): New function.
8873         * exec.h (section_table_read_available_memory): Declare.
8874         * ctf.c (ctf_xfer_partial): Call
8875         section_table_read_available_memory.
8876         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8877
8878 2014-02-23  Yao Qi  <yao@codesourcery.com>
8879
8880         * ctf.c (ctf_xfer_partial): Move code to ...
8881         * exec.c (exec_read_partial_read_only): ... it.  New function.
8882         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8883         * tracefile.c: Include "exec.h".
8884         * exec.h (exec_read_partial_read_only): Declare.
8885
8886 2014-02-23  Yao Qi  <yao@codesourcery.com>
8887
8888         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8889         (tfile_has_memory): Remove.
8890         (init_tfile_ops): Don't set fields to_has_all_memory and
8891         to_has_memory of tfile_ops.
8892         * tracefile.c (tracefile_has_all_memory): New function.
8893         (tracefile_has_memory): New function.
8894         (init_tracefile_ops): Initialize fields to_has_all_memory and
8895         to_has_memory of 'ops'.
8896
8897 2014-02-23  Yao Qi  <yao@codesourcery.com>
8898
8899         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8900         (ctf_thread_alive, ctf_get_trace_status): Remove.
8901         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8902         init_tracefile_ops.
8903         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8904         (tfile_has_stack, tfile_has_registers): Remove.
8905         (tfile_thread_alive): Remove.
8906         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8907         init_tracefile_ops.
8908         * tracefile.c (tracefile_has_stack): New function.
8909         (tracefile_has_registers): New function.
8910         (tracefile_thread_alive): New function.
8911         (tracefile_get_trace_status): New function.
8912         (init_tracefile_ops): New function.
8913         * tracefile.h (init_tracefile_ops): Declare.
8914
8915 2014-02-23  Yao Qi  <yao@codesourcery.com>
8916
8917         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8918         (O_LARGEFILE): Likewise.
8919         (tfile_ops): Likewise.
8920         (TRACE_HEADER_SIZE): Likewise.
8921         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8922         (cur_data_size): Likewise.
8923         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8924         (tfile_close, tfile_files_info): Likewise.
8925         (tfile_get_trace_status): Likewise.
8926         (tfile_get_tracepoint_status): Likewise.
8927         (tfile_get_traceframe_address): Likewise.
8928         (tfile_trace_find, match_blocktype): Likewise.
8929         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8930         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8931         (tfile_get_trace_state_variable_value): Likewise.
8932         (tfile_has_all_memory, tfile_has_memory): Likewise.
8933         (tfile_has_stack, tfile_has_registers): Likewise.
8934         (tfile_thread_alive, build_traceframe_info): Likewise.
8935         (tfile_traceframe_info, init_tfile_ops): Likewise.
8936         (_initialize_tracepoint): Don't call init_tfile_ops
8937         and add_target_with_completer.
8938         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8939         exec.h, completer.h and filenames.h.
8940         (_initialize_tracefile_tfile): New function.
8941
8942 2014-02-23  Yao Qi  <yao@codesourcery.com>
8943
8944         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8945         tracefile-tfile.o.
8946         (HFILES_NO_SRCDIR): Add tracefile.h.
8947         * ctf.c: Include "tracefile.h".
8948         * tracefile.h: New file.
8949         * tracefile.c: New file
8950         * tracefile-tfile.c: New file.
8951         * tracepoint.c: Include "tracefile.h".
8952         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8953         (stop_reason_names): Add const.
8954         (trace_file_writer_xfree): Move it to tracefile.c.
8955         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8956         (trace_save_ctf): Likewise.
8957         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8958         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8959         (tfile_write_header, tfile_write_regblock_type): Likewise.
8960         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8961         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8962         (tfile_write_raw_data, tfile_end): Likewise.
8963         (tfile_trace_file_writer_new): Likewise.
8964         (free_uploaded_tp): Make it extern.
8965         (free_uploaded_tsv): Make it extern.
8966         (_initialize_tracepoint): Move code to register command 'tsave'
8967         to tracefile.c.
8968         * tracepoint.h (stop_reason_names): Declare.
8969         (struct trace_frame_write_ops): Move it to tracefile.h.
8970         (struct trace_file_write_ops): Likewise.
8971         (struct trace_file_writer): Likewise.
8972         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8973
8974 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8975
8976         PR gdb/16594
8977         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8978         process name.
8979         (get_cores_used_by_process): New parameter num_cores, use it.
8980         (linux_xfer_osdata_processes): Pass num_cores to it.
8981         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8982         process name.
8983
8984 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8985
8986         * target.c (memory_xfer_partial): Fix length arg in call to
8987         breakpoint_xfer_memory.
8988
8989 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8990
8991         PR tdep/16397
8992         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8993         number comes after the + or - signs.  Adjust length of register
8994         name to be extracted.
8995
8996 2014-02-20  Tom Tromey  <tromey@redhat.com>
8997
8998         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8999         (ada_varobj_ops): Mark "extern".
9000
9001 2014-02-20  Tom Tromey  <tromey@redhat.com>
9002
9003         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9004
9005 2014-02-20  Doug Evans  <xdje42@gmail.com>
9006
9007         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9008         All callers updated.
9009         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9010         All callers updated.
9011         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9012         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9013
9014 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9015             Joel Brobecker  <brobecker@adacore.com>
9016             Doug Evans  <xdje42@gmail.com>
9017
9018         PR symtab/16581
9019         * dwarf2read.c (struct die_info): New member in_process.
9020         (reset_die_in_process): New function.
9021         (process_die): Set it at the start, reset when returning.
9022         (inherit_abstract_dies): Only call process_die if origin_child_die
9023         not already being processed.
9024
9025 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9026
9027         * windows-nat.c (handle_unload_dll): Add function documentation.
9028         (do_initial_windows_stuff): Add comment explaining why we wait
9029         until after inferior initialization has finished before
9030         processing all DLLs.
9031
9032 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9033
9034         * windows-nat.c (get_module_name): Delete.
9035         (windows_get_exec_module_filename): New function, mostly
9036         inspired from get_module_name.
9037         (windows_pid_to_exec_file): Replace call to get_module_name
9038         by call to windows_get_exec_module_filename.
9039
9040 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9041
9042         * windows-nat.c (handle_load_dll): Rewrite this function's
9043         introductory comment.  Remove code using get_module_name
9044         to get the DLL's name.
9045
9046 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9047
9048         * windows-nat.c (get_windows_debug_event): Ignore
9049         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9050         if windows_initialization_done == 0.
9051         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9052         Adjust implementation to always load all DLLs.
9053         (do_initial_windows_stuff): Replace call to
9054         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9055
9056 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9057
9058         * windows-nat.c (_initialize_windows_nat): Deprecate the
9059         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9060         and "assf" aliases into commands, and deprecate them as well.
9061         * NEWS: Add entry explaining that "dll-symbols" and its two
9062         aliases are now deprecated.
9063
9064 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9065
9066         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9067         new-line in debug string.  Remove trailing spaces.
9068
9069 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9070
9071         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9072
9073 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9074
9075         * NEWS: Add entry for the new feature
9076         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9077         and class values.
9078
9079 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9080
9081         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9082
9083 2014-02-19  Pedro Alves  <palves@redhat.com>
9084
9085         * common/ptid.h (struct ptid): Mention that process_stratum
9086         targets should prefer ptid.lwp.
9087
9088 2014-02-19  Pedro Alves  <palves@redhat.com>
9089
9090         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9091         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9092         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9093         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9094         store remote thread ids rather than ptid.tid.
9095         (_initialize_remote): Adjust.
9096
9097 2014-02-19  Tom Tromey  <tromey@redhat.com>
9098
9099         * target.c (target_get_unwinder): Rewrite.
9100         (target_get_tailcall_unwinder): Rewrite.
9101         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9102         (record_btrace_to_get_tailcall_unwinder): New function.
9103         (init_record_btrace_ops): Update.
9104         * target.h (struct target_ops) <to_get_unwinder,
9105         to_get_tailcall_unwinder>: Now function pointers.  Use
9106         TARGET_DEFAULT_RETURN.
9107
9108 2014-02-19  Tom Tromey  <tromey@redhat.com>
9109
9110         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9111         argument.
9112         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9113
9114 2014-02-19  Tom Tromey  <tromey@redhat.com>
9115
9116         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9117         directly.
9118         * target-delegates.c: Rebuild.
9119         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9120         TARGET_DEFAULT_FUNC.
9121         * target.c (default_target_decr_pc_after_break): Rename from
9122         forward_target_decr_pc_after_break.  Simplify.
9123         (target_decr_pc_after_break): Rely on delegation.
9124
9125 2014-02-19  Tom Tromey  <tromey@redhat.com>
9126
9127         * target.c (update_current_target): Do not INHERIT to_doc or
9128         to_magic.  Do not de_fault to_open or to_close.
9129
9130 2014-02-19  Tom Tromey  <tromey@redhat.com>
9131
9132         * gcore.h (objfile_find_memory_regions): Declare.
9133         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9134         "self" argument.
9135         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9136         * exec.c: Include gcore.h.
9137         (exec_set_find_memory_regions): Remove.
9138         (exec_find_memory_regions): Remove.
9139         (exec_do_find_memory_regions): Remove.
9140         (init_exec_ops): Update.
9141         * defs.h (exec_set_find_memory_regions): Remove.
9142
9143 2014-02-19  Tom Tromey  <tromey@redhat.com>
9144
9145         * target-delegates.c: Rebuild.
9146         * target.h (struct target_ops) <to_extra_thread_info,
9147         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9148         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9149         not 0, in TARGET_DEFAULT_RETURN.
9150
9151 2014-02-19  Tom Tromey  <tromey@redhat.com>
9152
9153         * target.c (complete_target_initialization): Remove casts.  Use
9154         return_zero_has_execution.
9155         (return_zero): Add "ignore" argument.
9156         (return_zero_has_execution): New function.
9157         (init_dummy_target): Remove casts.  Use
9158         return_zero_has_execution.
9159
9160 2014-02-19  Tom Tromey  <tromey@redhat.com>
9161
9162         * target.c (update_current_target): Update comments.  Do not
9163         INHERIT to_stratum.
9164
9165 2014-02-19  Tom Tromey  <tromey@redhat.com>
9166
9167         * arm-linux-nat.c (arm_linux_read_description): Delegate when
9168         needed.
9169         * corelow.c (core_read_description): Delegate when needed.
9170         * remote.c (remote_read_description): Delegate when needed.
9171         * target-delegates.c: Rebuild.
9172         * target.c (target_read_description): Rewrite.
9173         * target.h (struct target_ops) <to_read_description>: Update
9174         comment.  Use TARGET_DEFAULT_RETURN.
9175
9176 2014-02-19  Tom Tromey  <tromey@redhat.com>
9177
9178         * target-delegates.c: Rebuild.
9179         * target.c (update_current_target): Don't inherit or default
9180         to_can_run.
9181         (find_default_run_target): Check against delegate_can_run.
9182         * target.h (struct target_ops) <to_can_run>: Use
9183         TARGET_DEFAULT_RETURN.
9184
9185 2014-02-19  Tom Tromey  <tromey@redhat.com>
9186
9187         * target-delegates.c: Rebuild.
9188         * target.c (target_disconnect): Unconditionally delegate.
9189         * target.h (struct target_ops) <to_disconnect>: Use
9190         TARGET_DEFAULT_NORETURN.
9191
9192 2014-02-19  Tom Tromey  <tromey@redhat.com>
9193
9194         * record.c (record_stop): Unconditionally delegate.
9195         * target-delegates.c: Rebuild.
9196         * target.c (target_stop_recording): Unconditionally delegate.
9197         * target.h (struct target_ops) <to_stop_recording>: Use
9198         TARGET_DEFAULT_IGNORE.
9199
9200 2014-02-19  Tom Tromey  <tromey@redhat.com>
9201
9202         * target-delegates.c: Rebuild.
9203         * target.c (target_enable_btrace): Unconditionally delegate.
9204         * target.h (struct target_ops) <to_enable_btrace>: Use
9205         TARGET_DEFAULT_NORETURN.
9206
9207 2014-02-19  Tom Tromey  <tromey@redhat.com>
9208
9209         * target-delegates.c: Rebuild.
9210         * target.c (target_read_btrace): Unconditionally delegate.
9211         * target.h (struct target_ops) <to_read_btrace>: Use
9212         TARGET_DEFAULT_NORETURN.
9213
9214 2014-02-19  Tom Tromey  <tromey@redhat.com>
9215
9216         * target-delegates.c: Rebuild.
9217         * target.c (target_teardown_btrace): Unconditionally delegate.
9218         * target.h (struct target_ops) <to_teardown_btrace>: Use
9219         TARGET_DEFAULT_NORETURN.
9220
9221 2014-02-19  Tom Tromey  <tromey@redhat.com>
9222
9223         * target-delegates.c: Rebuild.
9224         * target.c (target_disable_btrace): Unconditionally delegate.
9225         * target.h (struct target_ops) <to_disable_btrace>: Use
9226         TARGET_DEFAULT_NORETURN.
9227
9228 2014-02-19  Tom Tromey  <tromey@redhat.com>
9229
9230         * target-delegates.c: Rebuild.
9231         * target.c (default_search_memory): New function.
9232         (simple_search_memory): Update comment.
9233         (target_search_memory): Unconditionally delegate.
9234         * target.h (struct target_ops) <to_search_memory>: Use
9235         TARGET_DEFAULT_FUNC.
9236
9237 2014-02-19  Tom Tromey  <tromey@redhat.com>
9238
9239         * auxv.c (default_auxv_parse): No longer static.
9240         (target_auxv_parse): Unconditionally delegate.
9241         * auxv.h (default_auxv_parse): Declare.
9242         * target-delegates.c: Rebuild.
9243         * target.c: Include auxv.h.
9244         * target.h (struct target_ops) <to_auxv_parse>: Use
9245         TARGET_DEFAULT_FUNC.
9246
9247 2014-02-19  Tom Tromey  <tromey@redhat.com>
9248
9249         * target-delegates.c: Rebuild.
9250         * target.c (target_memory_map): Unconditionally delegate.
9251         * target.h (struct target_ops) <to_memory_map>: Use
9252         TARGET_DEFAULT_RETURN.
9253
9254 2014-02-19  Tom Tromey  <tromey@redhat.com>
9255
9256         * target-delegates.c: Rebuild.
9257         * target.c (target_thread_alive): Unconditionally delegate.
9258         * target.h (struct target_ops) <to_thread_alive>: Use
9259         TARGET_DEFAULT_RETURN.
9260
9261 2014-02-19  Tom Tromey  <tromey@redhat.com>
9262
9263         * target-delegates.c: Rebuild.
9264         * target.c (target_save_record): Unconditionally delegate.
9265         * target.h (struct target_ops) <to_save_record>: Use
9266         TARGET_DEFAULT_NORETURN.
9267
9268 2014-02-19  Tom Tromey  <tromey@redhat.com>
9269
9270         * target-delegates.c: Rebuild.
9271         * target.c (target_delete_record): Unconditionally delegate.
9272         * target.h (struct target_ops) <to_delete_record>: Use
9273         TARGET_DEFAULT_NORETURN.
9274
9275 2014-02-19  Tom Tromey  <tromey@redhat.com>
9276
9277         * target-delegates.c: Rebuild.
9278         * target.c (target_record_is_replaying): Unconditionally
9279         delegate.
9280         * target.h (struct target_ops) <to_record_is_replaying>: Use
9281         TARGET_DEFAULT_RETURN.
9282
9283 2014-02-19  Tom Tromey  <tromey@redhat.com>
9284
9285         * target-delegates.c: Rebuild.
9286         * target.c (target_goto_record_begin): Unconditionally delegate.
9287         * target.h (struct target_ops) <to_goto_record_begin>: Use
9288         TARGET_DEFAULT_NORETURN.
9289
9290 2014-02-19  Tom Tromey  <tromey@redhat.com>
9291
9292         * target-delegates.c: Rebuild.
9293         * target.c (target_goto_record_end): Unconditionally delegate.
9294         * target.h (struct target_ops) <to_goto_record_end>: Use
9295         TARGET_DEFAULT_NORETURN.
9296
9297 2014-02-19  Tom Tromey  <tromey@redhat.com>
9298
9299         * target-delegates.c: Rebuild.
9300         * target.c (target_goto_record): Unconditionally delegate.
9301         * target.h (struct target_ops) <to_goto_record>: Use
9302         TARGET_DEFAULT_NORETURN.
9303
9304 2014-02-19  Tom Tromey  <tromey@redhat.com>
9305
9306         * target-delegates.c: Rebuild.
9307         * target.c (target_insn_history): Unconditionally delegate.
9308         * target.h (struct target_ops) <to_insn_history>: Use
9309         TARGET_DEFAULT_NORETURN.
9310
9311 2014-02-19  Tom Tromey  <tromey@redhat.com>
9312
9313         * target-delegates.c: Rebuild.
9314         * target.c (target_insn_history_from): Unconditionally delegate.
9315         * target.h (struct target_ops) <to_insn_history_from>: Use
9316         TARGET_DEFAULT_NORETURN.
9317
9318 2014-02-19  Tom Tromey  <tromey@redhat.com>
9319
9320         * target-delegates.c: Rebuild.
9321         * target.c (target_insn_history_range): Unconditionally delegate.
9322         * target.h (struct target_ops) <to_insn_history_range>: Use
9323         TARGET_DEFAULT_NORETURN.
9324
9325 2014-02-19  Tom Tromey  <tromey@redhat.com>
9326
9327         * target-delegates.c: Rebuild.
9328         * target.c (target_call_history): Unconditionally delegate.
9329         * target.h (struct target_ops) <to_call_history>: Use
9330         TARGET_DEFAULT_NORETURN.
9331
9332 2014-02-19  Tom Tromey  <tromey@redhat.com>
9333
9334         * target-delegates.c: Rebuild.
9335         * target.c (target_call_history_from): Unconditionally delegate.
9336         * target.h (struct target_ops) <to_call_history_from>: Use
9337         TARGET_DEFAULT_NORETURN.
9338
9339 2014-02-19  Tom Tromey  <tromey@redhat.com>
9340
9341         * target-delegates.c: Rebuild.
9342         * target.c (target_call_history_range): Unconditionally delegate.
9343         * target.h (struct target_ops) <to_call_history_range>: Use
9344         TARGET_DEFAULT_NORETURN.
9345
9346 2014-02-19  Tom Tromey  <tromey@redhat.com>
9347
9348         * target-delegates.c: Rebuild.
9349         * target.c (target_verify_memory): Unconditionally delegate.
9350         * target.h (struct target_ops) <to_verify_memory>: Use
9351         TARGET_DEFAULT_NORETURN.
9352
9353 2014-02-19  Tom Tromey  <tromey@redhat.com>
9354
9355         * target-delegates.c: Rebuild.
9356         * target.c (target_core_of_thread): Unconditionally delegate.
9357         * target.h (struct target_ops) <to_core_of_thread>: Use
9358         TARGET_DEFAULT_RETURN.
9359
9360 2014-02-19  Tom Tromey  <tromey@redhat.com>
9361
9362         * target-delegates.c: Rebuild.
9363         * target.c (target_flash_done): Unconditionally delegate.
9364         * target.h (struct target_ops) <to_flash_done>: Use
9365         TARGET_DEFAULT_NORETURN.
9366
9367 2014-02-19  Tom Tromey  <tromey@redhat.com>
9368
9369         * target-delegates.c: Rebuild.
9370         * target.c (target_flash_erase): Unconditionally delegate.
9371         * target.h (struct target_ops) <to_flash_erase>: Use
9372         TARGET_DEFAULT_NORETURN.
9373
9374 2014-02-19  Tom Tromey  <tromey@redhat.com>
9375
9376         * target-delegates.c: Rebuild.
9377         * target.c (target_get_section_table): Unconditionally delegate.
9378         * target.h (struct target_ops) <to_get_section_table>: Use
9379         TARGET_DEFAULT_RETURN.
9380
9381 2014-02-19  Tom Tromey  <tromey@redhat.com>
9382
9383         * target-delegates.c: Rebuild.
9384         * target.c (target_pid_to_str): Unconditionally delegate.
9385         (init_dummy_target): Don't initialize to_pid_to_str.
9386         (default_pid_to_str): Rename from dummy_pid_to_str.
9387         * target.h (struct target_ops) <to_pid_to_str>: Use
9388         TARGET_DEFAULT_FUNC.
9389
9390 2014-02-19  Tom Tromey  <tromey@redhat.com>
9391
9392         * target-delegates.c: Rebuild.
9393         * target.c (target_find_new_threads): Unconditionally delegate.
9394         * target.h (struct target_ops) <to_find_new_threads>: Use
9395         TARGET_DEFAULT_RETURN.
9396
9397 2014-02-19  Tom Tromey  <tromey@redhat.com>
9398
9399         * target-delegates.c: Rebuild.
9400         * target.c (target_program_signals): Unconditionally delegate.
9401         * target.h (struct target_ops) <to_program_signals>: Use
9402         TARGET_DEFAULT_IGNORE.
9403
9404 2014-02-19  Tom Tromey  <tromey@redhat.com>
9405
9406         * target-delegates.c: Rebuild.
9407         * target.c (target_pass_signals): Unconditionally delegate.
9408         * target.h (struct target_ops) <to_pass_signals>: Use
9409         TARGET_DEFAULT_IGNORE.
9410
9411 2014-02-19  Tom Tromey  <tromey@redhat.com>
9412
9413         * target-delegates.c: Rebuild.
9414         * target.c (default_mourn_inferior): New function.
9415         (target_mourn_inferior): Unconditionally delegate.
9416         * target.h (struct target_ops) <to_mourn_inferior>: Use
9417         TARGET_DEFAULT_FUNC.
9418
9419 2014-02-19  Tom Tromey  <tromey@redhat.com>
9420
9421         * target-delegates.c: Rebuild.
9422         * target.c (default_follow_fork): New function.
9423         (target_follow_fork): Unconditionally delegate.
9424         * target.h (struct target_ops) <to_follow_fork>: Use
9425         TARGET_DEFAULT_FUNC.
9426
9427 2014-02-19  Tom Tromey  <tromey@redhat.com>
9428
9429         * target-delegates.c: Rebuild.
9430         * target.c (target_kill): Unconditionally delegate.
9431         * target.h (struct target_ops) <to_kill>: Use
9432         TARGET_DEFAULT_NORETURN.
9433
9434 2014-02-19  Tom Tromey  <tromey@redhat.com>
9435
9436         * target-delegates.c: Rebuild.
9437         * target.c (target_masked_watch_num_registers): Unconditionally
9438         delegate.
9439         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9440         Use TARGET_DEFAULT_RETURN.
9441
9442 2014-02-19  Tom Tromey  <tromey@redhat.com>
9443
9444         * target-delegates.c: Rebuild.
9445         * target.c (target_remove_mask_watchpoint): Unconditionally
9446         delegate.
9447         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9448         TARGET_DEFAULT_RETURN.
9449
9450 2014-02-19  Tom Tromey  <tromey@redhat.com>
9451
9452         * target-delegates.c: Rebuild.
9453         * target.c (target_insert_mask_watchpoint): Unconditionally
9454         delegate.
9455         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9456         TARGET_DEFAULT_RETURN.
9457
9458 2014-02-19  Tom Tromey  <tromey@redhat.com>
9459
9460         * target-delegates.c: Rebuild.
9461         * target.c (target_ranged_break_num_registers): Unconditionally
9462         delegate.
9463         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9464         Use TARGET_DEFAULT_RETURN.
9465
9466 2014-02-19  Tom Tromey  <tromey@redhat.com>
9467
9468         * target-delegates.c: Rebuild.
9469         * target.c (target_fetch_registers): Unconditionally delegate.
9470         * target.h (struct target_ops) <to_fetch_registers>: Use
9471         TARGET_DEFAULT_NORETURN.
9472
9473 2014-02-19  Tom Tromey  <tromey@redhat.com>
9474
9475         * target-delegates.c: Rebuild.
9476         * target.c (update_current_target): Don't inherit or default
9477         to_stop.
9478         * target.h (struct target_ops) <to_stop>: Use
9479         TARGET_DEFAULT_IGNORE.
9480
9481 2014-02-19  Tom Tromey  <tromey@redhat.com>
9482
9483         * target-delegates.c: Rebuild.
9484         * target.c (update_current_target): Don't inherit or default
9485         to_can_run_breakpoint_commands.
9486         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9487         Use TARGET_DEFAULT_RETURN.
9488
9489 2014-02-19  Tom Tromey  <tromey@redhat.com>
9490
9491         * target-delegates.c: Rebuild.
9492         * target.c (update_current_target): Don't inherit or default
9493         to_supports_evaluation_of_breakpoint_conditions.
9494         * target.h (struct target_ops)
9495         <to_supports_evaluation_of_breakpoint_conditions>: Use
9496         TARGET_DEFAULT_RETURN.
9497
9498 2014-02-19  Tom Tromey  <tromey@redhat.com>
9499
9500         * target-delegates.c: Rebuild.
9501         * target.c (update_current_target): Don't inherit or default
9502         to_augmented_libraries_svr4_read.
9503         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9504         Use TARGET_DEFAULT_RETURN.
9505
9506 2014-02-19  Tom Tromey  <tromey@redhat.com>
9507
9508         * target-delegates.c: Rebuild.
9509         * target.c (update_current_target): Don't inherit or default
9510         to_can_use_agent.
9511         * target.h (struct target_ops) <to_can_use_agent>: Use
9512         TARGET_DEFAULT_RETURN.
9513
9514 2014-02-19  Tom Tromey  <tromey@redhat.com>
9515
9516         * target-delegates.c: Rebuild.
9517         * target.c (update_current_target): Don't inherit or default
9518         to_use_agent.
9519         * target.h (struct target_ops) <to_use_agent>: Use
9520         TARGET_DEFAULT_NORETURN.
9521
9522 2014-02-19  Tom Tromey  <tromey@redhat.com>
9523
9524         * target-delegates.c: Rebuild.
9525         * target.c (update_current_target): Don't inherit or default
9526         to_traceframe_info.
9527         (return_null): Remove.
9528         * target.h (struct target_ops) <to_traceframe_info>: Use
9529         TARGET_DEFAULT_RETURN.
9530
9531 2014-02-19  Tom Tromey  <tromey@redhat.com>
9532
9533         * target-delegates.c: Rebuild.
9534         * target.c (update_current_target): Don't inherit or default
9535         to_static_tracepoint_markers_by_strid.
9536         * target.h (struct target_ops)
9537         <to_static_tracepoint_markers_by_strid>: Use
9538         TARGET_DEFAULT_NORETURN.
9539
9540 2014-02-19  Tom Tromey  <tromey@redhat.com>
9541
9542         * target-delegates.c: Rebuild.
9543         * target.c (update_current_target): Don't inherit or default
9544         to_static_tracepoint_marker_at.
9545         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9546         Use TARGET_DEFAULT_RETURN.
9547
9548 2014-02-19  Tom Tromey  <tromey@redhat.com>
9549
9550         * target-delegates.c: Rebuild.
9551         * target.c (update_current_target): Don't inherit or default
9552         to_set_permissions.
9553         * target.h (struct target_ops) <to_set_permissions>: Use
9554         TARGET_DEFAULT_IGNORE.
9555
9556 2014-02-19  Tom Tromey  <tromey@redhat.com>
9557
9558         * target-delegates.c: Rebuild.
9559         * target.c (update_current_target): Don't inherit or default
9560         to_get_tib_address.
9561         * target.h (struct target_ops) <to_get_tib_address>: Use
9562         TARGET_DEFAULT_NORETURN.
9563
9564 2014-02-19  Tom Tromey  <tromey@redhat.com>
9565
9566         * target-delegates.c: Rebuild.
9567         * target.c (update_current_target): Don't inherit or default
9568         to_set_trace_notes.
9569         * target.h (struct target_ops) <to_set_trace_notes>: Use
9570         TARGET_DEFAULT_RETURN.
9571
9572 2014-02-19  Tom Tromey  <tromey@redhat.com>
9573
9574         * target-delegates.c: Rebuild.
9575         * target.c (update_current_target): Don't initialize
9576         to_set_trace_buffer_size.
9577         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9578         TARGET_DEFAULT_IGNORE.
9579
9580 2014-02-19  Tom Tromey  <tromey@redhat.com>
9581
9582         * target-delegates.c: Rebuild.
9583         * target.c (update_current_target): Don't inherit or default
9584         to_set_circular_trace_buffer.
9585         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9586         TARGET_DEFAULT_IGNORE.
9587
9588 2014-02-19  Tom Tromey  <tromey@redhat.com>
9589
9590         * target-delegates.c: Rebuild.
9591         * target.c (update_current_target): Don't inherit or default
9592         to_set_disconnected_tracing.
9593         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9594         TARGET_DEFAULT_IGNORE.
9595
9596 2014-02-19  Tom Tromey  <tromey@redhat.com>
9597
9598         * target-delegates.c: Rebuild.
9599         * target.c (update_current_target): Don't inherit or default
9600         to_get_min_fast_tracepoint_insn_len.
9601         (return_minus_one): Remove.
9602         * target.h (struct target_ops)
9603         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9604
9605 2014-02-19  Tom Tromey  <tromey@redhat.com>
9606
9607         * target-delegates.c: Rebuild.
9608         * target.c (update_current_target): Don't inherit or default
9609         to_get_raw_trace_data.
9610         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9611         TARGET_DEFAULT_NORETURN.
9612
9613 2014-02-19  Tom Tromey  <tromey@redhat.com>
9614
9615         * target-delegates.c: Rebuild.
9616         * target.c (update_current_target): Don't inherit or default
9617         to_upload_trace_state_variables.
9618         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9619         Use TARGET_DEFAULT_RETURN.
9620
9621 2014-02-19  Tom Tromey  <tromey@redhat.com>
9622
9623         * target-delegates.c: Rebuild.
9624         * target.c (update_current_target): Don't inherit or default
9625         to_upload_tracepoints.
9626         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9627         TARGET_DEFAULT_RETURN.
9628
9629 2014-02-19  Tom Tromey  <tromey@redhat.com>
9630
9631         * target-delegates.c: Rebuild.
9632         * target.c (update_current_target): Don't inherit or default
9633         to_save_trace_data.
9634         * target.h (struct target_ops) <to_save_trace_data>: Use
9635         TARGET_DEFAULT_NORETURN.
9636
9637 2014-02-19  Tom Tromey  <tromey@redhat.com>
9638
9639         * target-delegates.c: Rebuild.
9640         * target.c (update_current_target): Don't inherit or default
9641         to_get_trace_state_variable_value.
9642         * target.h (struct target_ops)
9643         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9644
9645 2014-02-19  Tom Tromey  <tromey@redhat.com>
9646
9647         * target-delegates.c: Rebuild.
9648         * target.c (update_current_target): Don't inherit or default
9649         to_trace_find.
9650         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9651
9652 2014-02-19  Tom Tromey  <tromey@redhat.com>
9653
9654         * target-delegates.c: Rebuild.
9655         * target.c (update_current_target): Don't inherit or default
9656         to_trace_stop.
9657         * target.h (struct target_ops) <to_trace_stop>: Use
9658         TARGET_DEFAULT_NORETURN.
9659
9660 2014-02-19  Tom Tromey  <tromey@redhat.com>
9661
9662         * target-delegates.c: Rebuild.
9663         * target.c (update_current_target): Don't inherit or default
9664         to_get_tracepoint_status.
9665         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9666         TARGET_DEFAULT_NORETURN.
9667
9668 2014-02-19  Tom Tromey  <tromey@redhat.com>
9669
9670         * target-delegates.c: Rebuild.
9671         * target.c (update_current_target): Don't inherit or default
9672         to_get_trace_status.
9673         * target.h (struct target_ops) <to_get_trace_status>: Use
9674         TARGET_DEFAULT_RETURN.
9675
9676 2014-02-19  Tom Tromey  <tromey@redhat.com>
9677
9678         * target-delegates.c: Rebuild.
9679         * target.c (update_current_target): Don't inherit or default
9680         to_trace_start.
9681         * target.h (struct target_ops) <to_trace_start>: Use
9682         TARGET_DEFAULT_NORETURN.
9683
9684 2014-02-19  Tom Tromey  <tromey@redhat.com>
9685
9686         * target-delegates.c: Rebuild.
9687         * target.c (update_current_target): Don't inherit or default
9688         to_trace_set_readonly_regions.
9689         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9690         Use TARGET_DEFAULT_NORETURN.
9691
9692 2014-02-19  Tom Tromey  <tromey@redhat.com>
9693
9694         * target-delegates.c: Rebuild.
9695         * target.c (update_current_target): Don't inherit or default
9696         to_disable_tracepoint.
9697         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9698         TARGET_DEFAULT_NORETURN.
9699
9700 2014-02-19  Tom Tromey  <tromey@redhat.com>
9701
9702         * target-delegates.c: Rebuild.
9703         * target.c (update_current_target): Don't inherit or default
9704         to_enable_tracepoint.
9705         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9706         TARGET_DEFAULT_NORETURN.
9707
9708 2014-02-19  Tom Tromey  <tromey@redhat.com>
9709
9710         * target-delegates.c: Rebuild.
9711         * target.c (update_current_target): Don't inherit or default
9712         to_download_trace_state_variable.
9713         * target.h (struct target_ops) <to_download_trace_state_variable>:
9714         Use TARGET_DEFAULT_NORETURN.
9715
9716 2014-02-19  Tom Tromey  <tromey@redhat.com>
9717
9718         * target-delegates.c: Rebuild.
9719         * target.c (update_current_target): Don't inherit or default
9720         to_can_download_tracepoint.
9721         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9722         TARGET_DEFAULT_RETURN.
9723
9724 2014-02-19  Tom Tromey  <tromey@redhat.com>
9725
9726         * target-delegates.c: Rebuild.
9727         * target.c (update_current_target): Don't inherit or default
9728         to_download_tracepoint.
9729         * target.h (struct target_ops) <to_download_tracepoint>: Use
9730         TARGET_DEFAULT_NORETURN.
9731
9732 2014-02-19  Tom Tromey  <tromey@redhat.com>
9733
9734         * target-delegates.c: Rebuild.
9735         * target.c (update_current_target): Don't inherit or default
9736         to_trace_init.
9737         * target.h (struct target_ops) <to_trace_init>: Use
9738         TARGET_DEFAULT_RETURN.
9739
9740 2014-02-19  Tom Tromey  <tromey@redhat.com>
9741
9742         * target-delegates.c: Rebuild.
9743         * target.c (update_current_target): Don't inherit or default
9744         to_supports_string_tracing.
9745         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9746         TARGET_DEFAULT_RETURN.
9747
9748 2014-02-19  Tom Tromey  <tromey@redhat.com>
9749
9750         * target-delegates.c: Rebuild.
9751         * target.c (update_current_target): Don't inherit or default
9752         to_supports_enable_disable_tracepoint.
9753         * target.h (struct target_ops)
9754         <to_supports_enable_disable_tracepoint>: Use
9755         TARGET_DEFAULT_RETURN.
9756
9757 2014-02-19  Tom Tromey  <tromey@redhat.com>
9758
9759         * target-delegates.c: Rebuild.
9760         * target.c (update_current_target): Don't inherit or default
9761         to_supports_multi_process.
9762         * target.h (struct target_ops) <to_supports_multi_process>: Use
9763         TARGET_DEFAULT_RETURN.
9764
9765 2014-02-19  Tom Tromey  <tromey@redhat.com>
9766
9767         * target-delegates.c: Rebuild.
9768         * target.c (update_current_target): Don't inherit or default
9769         to_get_ada_task_ptid.
9770         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9771         TARGET_DEFAULT_FUNC.
9772
9773 2014-02-19  Tom Tromey  <tromey@redhat.com>
9774
9775         * target-delegates.c: Rebuild.
9776         * target.c (update_current_target): Don't inherit or default
9777         to_thread_architecture.
9778         * target.h (struct target_ops) <to_thread_architecture>: Use
9779         TARGET_DEFAULT_FUNC.
9780
9781 2014-02-19  Tom Tromey  <tromey@redhat.com>
9782
9783         * target-delegates.c: Rebuild.
9784         * target.c (update_current_target): Don't inherit or default
9785         to_execution_direction.
9786         * target.h (struct target_ops) <to_execution_direction>: Use
9787         TARGET_DEFAULT_FUNC.
9788
9789 2014-02-19  Tom Tromey  <tromey@redhat.com>
9790
9791         * target-delegates.c: Rebuild.
9792         * target.c (update_current_target): Don't inherit or default
9793         to_can_execute_reverse.
9794         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9795         TARGET_DEFAULT_RETURN.
9796         (target_can_execute_reverse): Unconditionally delegate.
9797
9798 2014-02-19  Tom Tromey  <tromey@redhat.com>
9799
9800         * target-delegates.c: Rebuild.
9801         * target.c (update_current_target): Don't inherit or default
9802         to_goto_bookmark.
9803         (dummy_goto_bookmark): Remove.
9804         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9805         * target.h (struct target_ops) <to_goto_bookmark>: Use
9806         TARGET_DEFAULT_NORETURN.
9807
9808 2014-02-19  Tom Tromey  <tromey@redhat.com>
9809
9810         * target-delegates.c: Rebuild.
9811         * target.c (update_current_target): Don't inherit or default
9812         to_get_bookmark.
9813         (dummy_get_bookmark): Remove.
9814         (init_dummy_target): Don't inherit or default to_get_bookmark.
9815         * target.h (struct target_ops) <to_get_bookmark>: Use
9816         TARGET_DEFAULT_NORETURN
9817
9818 2014-02-19  Tom Tromey  <tromey@redhat.com>
9819
9820         * target-delegates.c: Rebuild.
9821         * target.c (update_current_target): Don't inherit or default
9822         to_make_corefile_notes.
9823         (init_dummy_target): Don't initialize to_make_corefile_notes.
9824         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9825         TARGET_DEFAULT_FUNC.
9826
9827 2014-02-19  Tom Tromey  <tromey@redhat.com>
9828
9829         * target-delegates.c: Rebuild.
9830         * target.c (update_current_target): Don't inherit or default
9831         to_find_memory_regions.
9832         (init_dummy_target): Don't initialize to_find_memory_regions.
9833         * target.h (struct target_ops) <to_find_memory_regions>: Use
9834         TARGET_DEFAULT_FUNC.
9835
9836 2014-02-19  Tom Tromey  <tromey@redhat.com>
9837
9838         * target-delegates.c: Rebuild.
9839         * target.c (update_current_target): Don't inherit or default
9840         to_log_command.
9841         * target.h (struct target_ops) <to_log_command>: Use
9842         TARGET_DEFAULT_IGNORE.
9843         (target_log_command): Unconditionally delegate.
9844
9845 2014-02-19  Tom Tromey  <tromey@redhat.com>
9846
9847         * target-delegates.c: Rebuild.
9848         * target.c (update_current_target): Don't inherit or default
9849         to_pid_to_exec_file.
9850         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9851         TARGET_DEFAULT_RETURN.
9852
9853 2014-02-19  Tom Tromey  <tromey@redhat.com>
9854
9855         * target-delegates.c: Rebuild.
9856         * target.c (update_current_target): Don't inherit or default
9857         to_thread_name.
9858         (target_thread_name): Unconditionally delegate.
9859         * target.h (struct target_ops) <to_thread_name>: Use
9860         TARGET_DEFAULT_RETURN.
9861
9862 2014-02-19  Tom Tromey  <tromey@redhat.com>
9863
9864         * target-delegates.c: Rebuild.
9865         * target.c (update_current_target): Don't inherit or default
9866         to_extra_thread_info.
9867         * target.h (struct target_ops) <to_extra_thread_info>: Use
9868         TARGET_DEFAULT_RETURN.
9869
9870 2014-02-19  Tom Tromey  <tromey@redhat.com>
9871
9872         * target-delegates.c: Rebuild.
9873         * target.c (update_current_target): Don't inherit or default
9874         to_has_exited.
9875         * target.h (struct target_ops) <to_has_exited>: Use
9876         TARGET_DEFAULT_RETURN..
9877
9878 2014-02-19  Tom Tromey  <tromey@redhat.com>
9879
9880         * target-delegates.c: Rebuild.
9881         * target.c (update_current_target): Don't inherit or default
9882         to_set_syscall_catchpoint.
9883         (return_one): Remove.
9884         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9885         TARGET_DEFAULT_RETURN.
9886
9887 2014-02-19  Tom Tromey  <tromey@redhat.com>
9888
9889         * target-delegates.c: Rebuild.
9890         * target.c (update_current_target): Don't inherit or default
9891         to_insert_exec_catchpoint.
9892         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9893         TARGET_DEFAULT_RETURN.
9894
9895 2014-01-08  Tom Tromey  <tromey@redhat.com>
9896
9897         * target-delegates.c: Rebuild.
9898         * target.c (update_current_target): Don't inherit or default
9899         to_insert_exec_catchpoint.
9900         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9901         TARGET_DEFAULT_RETURN.
9902
9903 2014-02-19  Tom Tromey  <tromey@redhat.com>
9904
9905         * target-delegates.c: Rebuild.
9906         * target.c (update_current_target): Don't inherit or default
9907         to_remove_vfork_catchpoint.
9908         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9909         TARGET_DEFAULT_RETURN.
9910
9911 2014-02-19  Tom Tromey  <tromey@redhat.com>
9912
9913         * target-delegates.c: Rebuild.
9914         * target.c (update_current_target): Don't inherit or default
9915         to_insert_vfork_catchpoint.
9916         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9917         TARGET_DEFAULT_RETURN.
9918
9919 2014-02-19  Tom Tromey  <tromey@redhat.com>
9920
9921         * target-delegates.c: Rebuild.
9922         * target.c (update_current_target): Don't inherit or default
9923         to_remove_fork_catchpoint.
9924         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9925         TARGET_DEFAULT_RETURN.
9926
9927 2014-02-19  Tom Tromey  <tromey@redhat.com>
9928
9929         * target-delegates.c: Rebuild.
9930         * target.c (update_current_target): Don't inherit or default
9931         to_insert_fork_catchpoint.
9932         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9933         TARGET_DEFAULT_RETURN.
9934
9935 2014-02-19  Tom Tromey  <tromey@redhat.com>
9936
9937         * target-delegates.c: Rebuild.
9938         * target.c (update_current_target): Don't inherit or default
9939         to_post_startup_inferior.
9940         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9941         TARGET_DEFAULT_IGNORE.
9942
9943 2014-02-19  Tom Tromey  <tromey@redhat.com>
9944
9945         * target-delegates.c: Rebuild.
9946         * target.c (update_current_target): Don't inherit or default
9947         to_load.
9948         * target.h (struct target_ops) <to_load>: Use
9949         TARGET_DEFAULT_NORETURN.
9950
9951 2014-02-19  Tom Tromey  <tromey@redhat.com>
9952
9953         * target-delegates.c: Rebuild.
9954         * target.c (update_current_target): Don't inherit or default
9955         to_terminal_info.
9956         * target.h (struct target_ops) <to_terminal_info>: Use
9957         TARGET_DEFAULT_FUNC.
9958
9959 2014-02-19  Tom Tromey  <tromey@redhat.com>
9960
9961         * target-delegates.c: Rebuild.
9962         * target.c (update_current_target): Don't inherit or default
9963         to_terminal_save_ours.
9964         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9965         TARGET_DEFAULT_IGNORE.
9966
9967 2014-02-19  Tom Tromey  <tromey@redhat.com>
9968
9969         * target-delegates.c: Rebuild.
9970         * target.c (update_current_target): Don't inherit or default
9971         to_terminal_ours.
9972         * target.h (struct target_ops) <to_terminal_ours>: Use
9973         TARGET_DEFAULT_IGNORE.
9974
9975 2014-02-19  Tom Tromey  <tromey@redhat.com>
9976
9977         * target-delegates.c: Rebuild.
9978         * target.c (update_current_target): Don't inherit or default
9979         to_terminal_ours_for_output.
9980         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9981         TARGET_DEFAULT_IGNORE.
9982
9983 2014-02-19  Tom Tromey  <tromey@redhat.com>
9984
9985         * target-delegates.c: Rebuild.
9986         * target.c (update_current_target): Don't inherit or default
9987         to_terminal_inferior.
9988         * target.h (struct target_ops) <to_terminal_inferior>: Use
9989         TARGET_DEFAULT_IGNORE.
9990
9991 2014-02-19  Tom Tromey  <tromey@redhat.com>
9992
9993         * target-delegates.c: Rebuild.
9994         * target.c (update_current_target): Don't inherit or default
9995         to_terminal_init.
9996         * target.h (struct target_ops) <to_terminal_init>: Use
9997         TARGET_DEFAULT_IGNORE.
9998
9999 2014-02-19  Tom Tromey  <tromey@redhat.com>
10000
10001         * target-delegates.c: Rebuild.
10002         * target.c (update_current_target): Don't inherit or default
10003         to_can_accel_watchpoint_condition.
10004         * target.h (struct target_ops)
10005         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10006
10007 2014-02-19  Tom Tromey  <tromey@redhat.com>
10008
10009         * target-delegates.c: Rebuild.
10010         * target.c (update_current_target): Don't inherit or default
10011         to_region_ok_for_hw_watchpoint.
10012         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10013         Use TARGET_DEFAULT_FUNC.
10014
10015 2014-02-19  Tom Tromey  <tromey@redhat.com>
10016
10017         * target-delegates.c: Rebuild.
10018         * target.c (update_current_target): Don't inherit or default
10019         to_watchpoint_addr_within_range.
10020         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10021         Use TARGET_DEFAULT_FUNC.
10022
10023 2014-02-19  Tom Tromey  <tromey@redhat.com>
10024
10025         * target-delegates.c: Rebuild.
10026         * target.c (update_current_target): Don't inherit or default
10027         to_remove_watchpoint.
10028         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10029         TARGET_DEFAULT_NORETURN.
10030
10031 2014-02-19  Tom Tromey  <tromey@redhat.com>
10032
10033         * target-delegates.c: Rebuild.
10034         * target.c (update_current_target): Don't inherit or default
10035         to_insert_watchpoint.
10036         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10037         TARGET_DEFAULT_RETURN.
10038
10039 2014-02-19  Tom Tromey  <tromey@redhat.com>
10040
10041         * target-delegates.c: Rebuild.
10042         * target.c (update_current_target): Don't inherit or default
10043         to_remove_hw_breakpoint.
10044         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10045         TARGET_DEFAULT_RETURN.
10046
10047 2014-02-19  Tom Tromey  <tromey@redhat.com>
10048
10049         * target-delegates.c: Rebuild.
10050         * target.c (update_current_target): Don't inherit or default
10051         to_insert_hw_breakpoint.
10052         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10053         TARGET_DEFAULT_RETURN.
10054
10055 2014-02-19  Tom Tromey  <tromey@redhat.com>
10056
10057         * target-delegates.c: Rebuild.
10058         * target.c (update_current_target): Don't inherit or default
10059         to_can_use_hw_breakpoint.
10060         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10061         TARGET_DEFAULT_RETURN.
10062
10063 2014-02-19  Tom Tromey  <tromey@redhat.com>
10064
10065         * target-delegates.c: Rebuild.
10066         * target.c (update_current_target): Don't inherit or default
10067         to_files_info.
10068         * target.h (struct target_ops) <to_files_info>: Use
10069         TARGET_DEFAULT_IGNORE.
10070
10071 2014-02-19  Tom Tromey  <tromey@redhat.com>
10072
10073         * target-delegates.c: Rebuild.
10074         * target.c (update_current_target): Don't inherit or default
10075         to_store.
10076         * target.h (struct target_ops) <to_store>: Use
10077         TARGET_DEFAULT_NORETURN.
10078
10079 2014-02-19  Tom Tromey  <tromey@redhat.com>
10080
10081         * target-delegates.c: Rebuild.
10082         * target.c (update_current_target): Don't inherit or default
10083         to_post_attach.
10084         * target.h (struct target_ops) <to_post_attach>: Use
10085         TARGET_DEFAULT_IGNORE.
10086
10087 2014-02-19  Tom Tromey  <tromey@redhat.com>
10088
10089         * target-delegates.c: Rebuild.
10090         * target.c (update_current_target): Don't inherit or default
10091         to_rcmd.
10092         (default_rcmd): New function.
10093         (do_monitor_command): Unconditionally delegate.
10094         * target.h (struct target_ops) <to_rmcd>: Use
10095         TARGET_DEFAULT_FUNC.
10096
10097 2014-02-19  Tom Tromey  <tromey@redhat.com>
10098
10099         * target-delegates.c: Rebuild.
10100         * target.c (init_dummy_target): Don't initialize to_attach.
10101         (target_attach): Unconditionally delegate.
10102         * target.h (struct target_ops) <to_attach>: Use
10103         TARGET_DEFAULT_FUNC.
10104
10105 2014-02-19  Tom Tromey  <tromey@redhat.com>
10106
10107         * target-delegates.c: Rebuild.
10108         * target.c (target_detach): Unconditionally delegate.
10109         (init_dummy_target): Don't initialize to_detach.
10110         * target.h (struct target_ops) <to_detach>: Use
10111         TARGET_DEFAULT_IGNORE.
10112
10113 2014-02-19  Tom Tromey  <tromey@redhat.com>
10114
10115         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10116         Add argument.
10117         (target_augmented_libraries_svr4_read): Add argument.
10118         * target.c (update_current_target): Update.
10119         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10120         argument.
10121
10122 2014-02-19  Tom Tromey  <tromey@redhat.com>
10123
10124         * target.h (struct target_ops) <to_call_history_range>: Add
10125         argument.
10126         * target.c (target_call_history_range): Add argument.
10127         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10128         argument.
10129         (record_btrace_call_history_from): Update.
10130
10131 2014-02-19  Tom Tromey  <tromey@redhat.com>
10132
10133         * target.h (struct target_ops) <to_call_history_from>: Add
10134         argument.
10135         * target.c (target_call_history_from): Add argument.
10136         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10137         argument.
10138
10139 2014-02-19  Tom Tromey  <tromey@redhat.com>
10140
10141         * target.h (struct target_ops) <to_call_history>: Add argument.
10142         * target.c (target_call_history): Add argument.
10143         * record-btrace.c (record_btrace_call_history): Add 'self'
10144         argument.
10145
10146 2014-02-19  Tom Tromey  <tromey@redhat.com>
10147
10148         * target.h (struct target_ops) <to_insn_history_range>: Add
10149         argument.
10150         * target.c (target_insn_history_range): Add argument.
10151         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10152         argument.
10153         (record_btrace_insn_history_from): Update.
10154
10155 2014-02-19  Tom Tromey  <tromey@redhat.com>
10156
10157         * target.h (struct target_ops) <to_insn_history_from>: Add
10158         argument.
10159         * target.c (target_insn_history_from): Add argument.
10160         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10161         argument.
10162
10163 2014-02-19  Tom Tromey  <tromey@redhat.com>
10164
10165         * target.h (struct target_ops) <to_insn_history>: Add argument.
10166         * target.c (target_insn_history): Add argument.
10167         * record-btrace.c (record_btrace_insn_history): Add 'self'
10168         argument.
10169
10170 2014-02-19  Tom Tromey  <tromey@redhat.com>
10171
10172         * target.h (struct target_ops) <to_goto_record>: Add argument.
10173         * target.c (target_goto_record): Add argument.
10174         * record-full.c (record_full_goto): Add 'self' argument.
10175         * record-btrace.c (record_btrace_goto): Add 'self' argument.
10176
10177 2014-02-19  Tom Tromey  <tromey@redhat.com>
10178
10179         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10180         * target.c (target_goto_record_end): Add argument.
10181         * record-full.c (record_full_goto_end): Add 'self' argument.
10182         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10183
10184 2014-02-19  Tom Tromey  <tromey@redhat.com>
10185
10186         * target.h (struct target_ops) <to_goto_record_begin>: Add
10187         argument.
10188         * target.c (target_goto_record_begin): Add argument.
10189         * record-full.c (record_full_goto_begin): Add 'self' argument.
10190         * record-btrace.c (record_btrace_goto_begin): Add 'self'
10191         argument.
10192
10193 2014-02-19  Tom Tromey  <tromey@redhat.com>
10194
10195         * target.h (struct target_ops) <to_record_is_replaying>: Add
10196         argument.
10197         * target.c (target_record_is_replaying): Add argument.
10198         * record-full.c (record_full_is_replaying): Add 'self' argument.
10199         * record-btrace.c (record_btrace_is_replaying): Add 'self'
10200         argument.
10201         (record_btrace_xfer_partial, record_btrace_store_registers)
10202         (record_btrace_prepare_to_store, record_btrace_resume)
10203         (record_btrace_wait, record_btrace_decr_pc_after_break)
10204         (record_btrace_find_new_threads, record_btrace_thread_alive):
10205         Update.
10206
10207 2014-02-19  Tom Tromey  <tromey@redhat.com>
10208
10209         * target.h (struct target_ops) <to_delete_record>: Add argument.
10210         * target.c (target_delete_record): Add argument.
10211         * record-full.c (record_full_delete): Add 'self' argument.
10212
10213 2014-02-19  Tom Tromey  <tromey@redhat.com>
10214
10215         * target.h (struct target_ops) <to_save_record>: Add argument.
10216         * target.c (target_save_record): Add argument.
10217         * record-full.c (record_full_save): Add 'self' argument.
10218         (record_full_save): Add 'self' argument.
10219
10220 2014-02-19  Tom Tromey  <tromey@redhat.com>
10221
10222         * target.h (struct target_ops) <to_info_record>: Add argument.
10223         * target.c (target_info_record): Add argument.
10224         * record.c (info_record_command): Add argument.
10225         * record-full.c (record_full_info): Add 'self' argument.
10226         * record-btrace.c (record_btrace_info): Add 'self' argument.
10227
10228 2014-02-19  Tom Tromey  <tromey@redhat.com>
10229
10230         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10231         * target.c (target_stop_recording): Add argument.
10232         * record.c (record_stop): Add argument.
10233         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10234         argument.
10235
10236 2014-02-19  Tom Tromey  <tromey@redhat.com>
10237
10238         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10239         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10240         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10241         argument.
10242         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10243         (_initialize_amd64_linux_nat): Use it.
10244         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10245         (_initialize_i386_linux_nat): Use it.
10246
10247 2014-02-19  Tom Tromey  <tromey@redhat.com>
10248
10249         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10250         * target.c (target_teardown_btrace): Add argument.
10251         * remote.c (remote_teardown_btrace): Add 'self' argument.
10252         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10253         argument.
10254         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10255         argument.
10256
10257 2014-02-19  Tom Tromey  <tromey@redhat.com>
10258
10259         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10260         * target.c (target_disable_btrace): Add argument.
10261         * remote.c (remote_disable_btrace): Add 'self' argument.
10262         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10263         argument.
10264         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10265         argument.
10266
10267 2014-02-19  Tom Tromey  <tromey@redhat.com>
10268
10269         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10270         * target.c (target_enable_btrace): Add argument.
10271         * remote.c (remote_enable_btrace): Add 'self' argument.
10272         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10273         argument.
10274         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10275         argument.
10276
10277 2014-02-19  Tom Tromey  <tromey@redhat.com>
10278
10279         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10280         (target_can_use_agent): Add argument.
10281         * target.c (update_current_target): Update.
10282         * remote.c (remote_can_use_agent): Add 'self' argument.
10283         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10284
10285 2014-02-19  Tom Tromey  <tromey@redhat.com>
10286
10287         * target.h (struct target_ops) <to_use_agent>: Add argument.
10288         (target_use_agent): Add argument.
10289         * target.c (update_current_target): Update.
10290         * remote.c (remote_use_agent): Add 'self' argument.
10291         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10292
10293 2014-02-19  Tom Tromey  <tromey@redhat.com>
10294
10295         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10296         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10297         (target_traceframe_info): Add argument.
10298         * target.c (update_current_target): Update.
10299         * remote.c (remote_traceframe_info): Add 'self' argument.
10300         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10301
10302 2014-02-19  Tom Tromey  <tromey@redhat.com>
10303
10304         * target.h (target_static_tracepoint_markers_by_strid): Add
10305         argument.
10306         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10307         'self' argument.
10308         * target.c (update_current_target): Update.
10309         * remote.c (struct target_ops)
10310         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10311         * linux-nat.c (struct target_ops)
10312         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10313
10314 2014-02-19  Tom Tromey  <tromey@redhat.com>
10315
10316         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10317         Add argument.
10318         (target_static_tracepoint_marker_at): Add argument.
10319         * target.c (update_current_target): Update.
10320         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10321         argument.
10322
10323 2014-02-19  Tom Tromey  <tromey@redhat.com>
10324
10325         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10326         (target_set_permissions): Add argument.
10327         * target.c (update_current_target): Update.
10328         * remote.c (remote_set_permissions): Add 'self' argument.
10329         (remote_start_remote): Update.
10330
10331 2014-02-19  Tom Tromey  <tromey@redhat.com>
10332
10333         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10334         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10335         (target_get_tib_address): Add argument.
10336         * target.c (update_current_target): Update.
10337         * remote.c (remote_get_tib_address): Add 'self' argument.
10338
10339 2014-02-19  Tom Tromey  <tromey@redhat.com>
10340
10341         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10342         (target_set_trace_notes): Add argument.
10343         * target.c (update_current_target): Update.
10344         * remote.c (remote_set_trace_notes): Add 'self' argument.
10345
10346 2014-02-19  Tom Tromey  <tromey@redhat.com>
10347
10348         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10349         argument.
10350         (target_set_trace_buffer_size): Add argument.
10351         * target.c (update_current_target): Update.
10352         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10353
10354 2014-02-19  Tom Tromey  <tromey@redhat.com>
10355
10356         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10357         argument.
10358         (target_set_circular_trace_buffer): Add argument.
10359         * target.c (update_current_target): Update.
10360         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10361         argument.
10362
10363 2014-02-19  Tom Tromey  <tromey@redhat.com>
10364
10365         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10366         argument.
10367         (target_set_disconnected_tracing): Add argument.
10368         * target.c (update_current_target): Update.
10369         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10370
10371 2014-02-19  Tom Tromey  <tromey@redhat.com>
10372
10373         * target.h (struct target_ops)
10374         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10375         (target_get_min_fast_tracepoint_insn_len): Add argument.
10376         * target.c (update_current_target): Update.
10377         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10378         argument.
10379
10380 2014-02-19  Tom Tromey  <tromey@redhat.com>
10381
10382         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10383         argument.
10384         (target_get_raw_trace_data): Add argument.
10385         * target.c (update_current_target): Update.
10386         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10387
10388 2014-02-19  Tom Tromey  <tromey@redhat.com>
10389
10390         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10391         Add argument.
10392         (target_upload_trace_state_variables): Add argument.
10393         * target.c (update_current_target): Update.
10394         * remote.c (remote_upload_trace_state_variables): Add 'self'
10395         argument.
10396         (remote_start_remote): Update.
10397
10398 2014-02-19  Tom Tromey  <tromey@redhat.com>
10399
10400         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10401         argument.
10402         (target_upload_tracepoints): Add argument.
10403         * target.c (update_current_target): Update.
10404         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10405         (remote_start_remote): Update.
10406
10407 2014-02-19  Tom Tromey  <tromey@redhat.com>
10408
10409         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10410         (target_save_trace_data): Add argument.
10411         * target.c (update_current_target): Update.
10412         * remote.c (remote_save_trace_data): Add 'self' argument.
10413
10414 2014-02-19  Tom Tromey  <tromey@redhat.com>
10415
10416         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10417         argument.
10418         * target.h (struct target_ops)
10419         <to_get_trace_state_variable_value>: Add argument.
10420         (target_get_trace_state_variable_value): Add argument.
10421         * target.c (update_current_target): Update.
10422         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10423         argument.
10424         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10425
10426 2014-02-19  Tom Tromey  <tromey@redhat.com>
10427
10428         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10429         * target.h (struct target_ops) <to_trace_find>: Add argument.
10430         (target_trace_find): Add argument.
10431         * target.c (update_current_target): Update.
10432         * remote.c (remote_trace_find): Add 'self' argument.
10433         * ctf.c (ctf_trace_find): Add 'self' argument.
10434
10435 2014-02-19  Tom Tromey  <tromey@redhat.com>
10436
10437         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10438         (target_trace_stop): Add argument.
10439         * target.c (update_current_target): Update.
10440         * remote.c (remote_trace_stop): Add 'self' argument.
10441
10442 2014-02-19  Tom Tromey  <tromey@redhat.com>
10443
10444         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10445         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10446         argument.
10447         (target_get_tracepoint_status): Add argument.
10448         * target.c (update_current_target): Update.
10449         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10450
10451 2014-02-19  Tom Tromey  <tromey@redhat.com>
10452
10453         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10454         * target.h (struct target_ops) <to_get_trace_status>: Add
10455         argument.
10456         (target_get_trace_status): Add argument.
10457         * target.c (update_current_target): Update.
10458         * remote.c (remote_get_trace_status): Add 'self' argument.
10459         (remote_start_remote, remote_can_download_tracepoint): Update.
10460         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * target.h (struct target_ops) <to_trace_start>: Add argument.
10465         (target_trace_start): Add argument.
10466         * target.c (update_current_target): Update.
10467         * remote.c (remote_trace_start): Add 'self' argument.
10468
10469 2014-02-19  Tom Tromey  <tromey@redhat.com>
10470
10471         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10472         Add argument.
10473         (target_trace_set_readonly_regions): Add argument.
10474         * target.c (update_current_target): Update.
10475         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10476         argument.
10477
10478 2014-02-19  Tom Tromey  <tromey@redhat.com>
10479
10480         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10481         argument.
10482         (target_disable_tracepoint): Add argument.
10483         * target.c (update_current_target): Update.
10484         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10485
10486 2014-02-19  Tom Tromey  <tromey@redhat.com>
10487
10488         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10489         argument.
10490         (target_enable_tracepoint): Add argument.
10491         * target.c (update_current_target): Update.
10492         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10493
10494 2014-02-19  Tom Tromey  <tromey@redhat.com>
10495
10496         * target.h (struct target_ops) <to_download_trace_state_variable>:
10497         Add argument.
10498         (target_download_trace_state_variable): Add argument.
10499         * target.c (update_current_target): Update.
10500         * remote.c (remote_download_trace_state_variable): Add 'self'
10501         argument.
10502
10503 2014-02-19  Tom Tromey  <tromey@redhat.com>
10504
10505         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10506         argument.
10507         (target_can_download_tracepoint): Add argument.
10508         * target.c (update_current_target): Update.
10509         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10510
10511 2014-02-19  Tom Tromey  <tromey@redhat.com>
10512
10513         * target.h (struct target_ops) <to_download_tracepoint>: Add
10514         argument.
10515         (target_download_tracepoint): Add argument.
10516         * target.c (update_current_target): Update.
10517         * remote.c (remote_download_tracepoint): Add 'self' argument.
10518
10519 2014-02-19  Tom Tromey  <tromey@redhat.com>
10520
10521         * target.h (struct target_ops) <to_trace_init>: Add argument.
10522         (target_trace_init): Add argument.
10523         * target.c (update_current_target): Update.
10524         * remote.c (remote_trace_init): Add 'self' argument.
10525
10526 2014-02-19  Tom Tromey  <tromey@redhat.com>
10527
10528         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10529         * target.c (target_fileio_readlink): Add argument.
10530         * remote.c (remote_hostio_readlink): Add 'self' argument.
10531         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10532
10533 2014-02-19  Tom Tromey  <tromey@redhat.com>
10534
10535         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10536         * target.c (target_fileio_unlink): Add argument.
10537         * remote.c (remote_hostio_unlink): Add 'self' argument.
10538         (remote_file_delete): Update.
10539         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10540
10541 2014-02-19  Tom Tromey  <tromey@redhat.com>
10542
10543         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10544         * target.c (target_fileio_close): Add argument.
10545         * remote.c (remote_hostio_close): Add 'self' argument.
10546         (remote_hostio_close_cleanup): Update.
10547         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10548         Update.
10549         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10550
10551 2014-02-19  Tom Tromey  <tromey@redhat.com>
10552
10553         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10554         * target.c (target_fileio_pread): Add argument.
10555         * remote.c (remote_hostio_pread): Add 'self' argument.
10556         (remote_bfd_iovec_pread, remote_file_get): Update.
10557         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10558
10559 2014-02-19  Tom Tromey  <tromey@redhat.com>
10560
10561         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10562         * target.c (target_fileio_pwrite): Add argument.
10563         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10564         (remote_file_put): Update.
10565         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10566
10567 2014-02-19  Tom Tromey  <tromey@redhat.com>
10568
10569         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10570         * target.c (target_fileio_open): Add argument.
10571         * remote.c (remote_hostio_open): Add 'self' argument.
10572         (remote_bfd_iovec_open): Add 'self' argument.
10573         (remote_file_put): Add 'self' argument.
10574         (remote_file_get): Add 'self' argument.
10575         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10576
10577 2014-02-19  Tom Tromey  <tromey@redhat.com>
10578
10579         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10580         Add argument.
10581         (target_can_run_breakpoint_commands): Add argument.
10582         * target.c (update_current_target): Update.
10583         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10584         argument.
10585         (remote_insert_breakpoint): Add 'self' argument.
10586         (remote_insert_hw_breakpoint): Add 'self' argument.
10587         (remote_can_run_breakpoint_commands): Add 'self' argument.
10588
10589 2014-02-19  Tom Tromey  <tromey@redhat.com>
10590
10591         * target.h (struct target_ops)
10592         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10593         (target_supports_evaluation_of_breakpoint_conditions): Add
10594         argument.
10595         * target.c (update_current_target): Update.
10596         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10597         argument.
10598         (remote_insert_breakpoint): Add 'self' argument.
10599         (remote_insert_hw_breakpoint): Add 'self' argument.
10600         (remote_supports_cond_breakpoints): Add 'self' argument.
10601
10602 2014-02-19  Tom Tromey  <tromey@redhat.com>
10603
10604         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10605         argument.
10606         (target_supports_string_tracing): Add argument.
10607         * target.c (update_current_target): Update.
10608         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10609
10610 2014-02-19  Tom Tromey  <tromey@redhat.com>
10611
10612         * target.h (struct target_ops)
10613         <to_supports_disable_randomization>: Add argument.
10614         * target.c (find_default_supports_disable_randomization): Add
10615         argument.
10616         (target_supports_disable_randomization): Add argument.
10617         (find_default_supports_disable_randomization): Add 'self'
10618         argument.
10619         * remote.c (extended_remote_supports_disable_randomization): Add
10620         'self' argument.
10621         (remote_supports_disable_randomization): Add 'self' argument.
10622         (extended_remote_create_inferior): Update.
10623         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10624         'self' argument.
10625
10626 2014-02-19  Tom Tromey  <tromey@redhat.com>
10627
10628         * target.h (struct target_ops)
10629         <to_supports_enable_disable_tracepoint>: Add argument.
10630         (target_supports_enable_disable_tracepoint): Add argument.
10631         * target.c (update_current_target): Update.
10632         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10633         argument.
10634
10635 2014-02-19  Tom Tromey  <tromey@redhat.com>
10636
10637         * target.h (struct target_ops) <to_supports_multi_process>: Add
10638         argument.
10639         (target_supports_multi_process): Add argument.
10640         * target.c (update_current_target): Update.
10641         * remote.c (remote_supports_multi_process): Add 'self' argument.
10642         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10643         argument.
10644         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10645         argument.
10646
10647 2014-02-19  Tom Tromey  <tromey@redhat.com>
10648
10649         * target.h (struct target_ops) <to_execution_direction>: Add
10650         argument.
10651         (target_execution_direction): Add argument.
10652         * target.c (default_execution_direction): Add 'self' argument.
10653         * record-full.c (record_full_execution_direction): Add 'self'
10654         argument.
10655
10656 2014-02-19  Tom Tromey  <tromey@redhat.com>
10657
10658         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10659         argument.
10660         (target_can_execute_reverse): Add argument.
10661         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10662         * record-full.c (record_full_can_execute_reverse): Add 'self'
10663         argument.
10664         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10665         argument.
10666
10667 2014-02-19  Tom Tromey  <tromey@redhat.com>
10668
10669         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10670         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10671         argument.
10672         (target_get_ada_task_ptid): Add argument.
10673         * target.c (update_current_target): Update.
10674         (default_get_ada_task_ptid): Add 'self' argument.
10675         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10676         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10677         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10678         argument.
10679         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10680         argument.
10681         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10682         argument.
10683         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10684         argument.
10685         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10686         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10687         argument.
10688
10689 2014-02-19  Tom Tromey  <tromey@redhat.com>
10690
10691         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10692         (target_goto_bookmark): Add argument.
10693         * target.c (dummy_goto_bookmark): Add 'self' argument.
10694         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10695
10696 2014-02-19  Tom Tromey  <tromey@redhat.com>
10697
10698         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10699         (target_get_bookmark): Add argument.
10700         * target.c (dummy_get_bookmark): Add 'self' argument.
10701         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10702
10703 2014-02-19  Tom Tromey  <tromey@redhat.com>
10704
10705         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10706         argument.
10707         (target_make_corefile_notes): Add argument.
10708         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10709         * procfs.c (procfs_make_note_section): Add 'self' argument.
10710         (procfs_make_note_section): Add 'self' argument.
10711         (procfs_make_note_section): Add 'self' argument.
10712         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10713         argument.
10714         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10715         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10716         * exec.c (exec_make_note_section): Add 'self' argument.
10717         (exec_make_note_section): Add 'self' argument.
10718
10719 2014-02-19  Tom Tromey  <tromey@redhat.com>
10720
10721         * target.h (struct target_ops) <to_find_memory_regions>: Add
10722         argument.
10723         (target_find_memory_regions): Add argument.
10724         * target.c (dummy_find_memory_regions): Add 'self' argument.
10725         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10726         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10727         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10728         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10729         * exec. (exec_do_find_memory_regions): New global.
10730         (exec_set_find_memory_regions): Rewrite.
10731         (exec_find_memory_regions): New function.
10732         (init_exec_ops): Use exec_find_memory_regions.
10733
10734 2014-02-19  Tom Tromey  <tromey@redhat.com>
10735
10736         * target.h (struct target_ops) <to_supports_non_stop>: Add
10737         argument.
10738         * target.c (find_default_supports_non_stop): Add argument.
10739         (target_supports_non_stop): Add argument.
10740         (find_default_supports_non_stop): Add 'self' argument.
10741         * remote.c (remote_supports_non_stop): Add 'self' argument.
10742         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10743
10744 2014-02-19  Tom Tromey  <tromey@redhat.com>
10745
10746         * target.h (struct target_ops) <to_log_command>: Add argument.
10747         (target_log_command): Add argument.
10748         * serial.h (serial_log_command): Add 'self' argument.
10749         * serial.c (serial_log_command): Add 'self' argument.
10750
10751 2014-02-19  Tom Tromey  <tromey@redhat.com>
10752
10753         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10754         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10755         argument.
10756         (target_pid_to_exec_file): Add argument.
10757         * target.c (debug_to_pid_to_exec_file): Add argument.
10758         (update_current_target): Update.
10759         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10760         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10761         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10762         (linux_handle_extended_wait): Update.
10763         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10764         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10765         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10766         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10767
10768 2014-02-19  Tom Tromey  <tromey@redhat.com>
10769
10770         * target.h (struct target_ops) <to_rcmd>: Add argument.
10771         (target_rcmd): Add argument.
10772         * target.c (debug_to_rcmd): Add argument.
10773         (update_current_target, do_monitor_command): Update.
10774         * remote.c (remote_rcmd): Add 'self' argument.
10775         * monitor.c (monitor_rcmd): Add 'self' argument.
10776
10777 2014-02-19  Tom Tromey  <tromey@redhat.com>
10778
10779         * windows-nat.c (windows_stop): Add 'self' argument.
10780         * target.h (struct target_ops) <to_stop>: Add argument.
10781         * target.c (target_stop): Add argument.
10782         (debug_to_stop): Add argument.
10783         (update_current_target): Update.
10784         * remote.c (remote_stop): Add 'self' argument.
10785         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10786         (gdbsim_cntrl_c): Update.
10787         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10788         * procfs.c (procfs_stop): Add 'self' argument.
10789         * nto-procfs.c (procfs_stop): Add 'self' argument.
10790         * monitor.c (monitor_stop): Add 'self' argument.
10791         (monitor_open): Update.
10792         * linux-nat.c (linux_nat_stop): Add argument.
10793         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10794         * gnu-nat.c (gnu_stop): Add 'self' argument.
10795         * darwin-nat.c (darwin_stop): Add 'self' argument.
10796
10797 2014-02-19  Tom Tromey  <tromey@redhat.com>
10798
10799         * target.h (struct target_ops) <to_thread_name>: Add argument.
10800         * target.c (target_thread_name): Add argument.
10801         (update_current_target): Update.
10802         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10803
10804 2014-02-19  Tom Tromey  <tromey@redhat.com>
10805
10806         * target.h (struct target_ops) <to_extra_thread_info>: Add
10807         argument.
10808         (target_extra_thread_info): Add argument.
10809         * target.c (update_current_target): Update.
10810         * remote.c (remote_threads_extra_info): Add 'self' argument.
10811         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10812         argument.
10813         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10814         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10815         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10816         argument.
10817         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10818         argument.
10819         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10820         argument.
10821         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10822         argument.
10823
10824 2014-02-19  Tom Tromey  <tromey@redhat.com>
10825
10826         * target.h (struct target_ops) <to_program_signals>: Add argument.
10827         * target.c (target_program_signals): Add argument.
10828         * remote.c (remote_program_signals): Add 'self' argument.
10829
10830 2014-02-19  Tom Tromey  <tromey@redhat.com>
10831
10832         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10833         * target.c (target_pass_signals): Add argument.
10834         * remote.c (remote_pass_signals): Add 'self' argument.
10835         (remote_start_remote): Update.
10836         * procfs.c (procfs_pass_signals): Add 'self' argument.
10837         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10838         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10839         (linux_nat_create_inferior, linux_nat_attach): Update.
10840
10841 2014-02-19  Tom Tromey  <tromey@redhat.com>
10842
10843         * windows-nat.c (windows_can_run): Add 'self' argument.
10844         * target.h (struct target_ops) <to_can_run>: Add argument.
10845         (target_can_run): Add argument.
10846         * target.c (debug_to_can_run): Add argument.
10847         (update_current_target): Update.
10848         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10849         * inf-child.c (inf_child_can_run): Add 'self' argument.
10850         * go32-nat.c (go32_can_run): Add 'self' argument.
10851
10852 2014-02-19  Tom Tromey  <tromey@redhat.com>
10853
10854         * target.h (struct target_ops) <to_has_exited>: Add argument.
10855         (target_has_exited): Add argument.
10856         * target.c (debug_to_has_exited): Add argument.
10857         (update_current_target): Update.
10858
10859 2014-02-19  Tom Tromey  <tromey@redhat.com>
10860
10861         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10862         argument.
10863         (target_set_syscall_catchpoint): Add argument.
10864         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10865         argument.
10866         * target.c (update_current_target): Update.
10867
10868 2014-02-19  Tom Tromey  <tromey@redhat.com>
10869
10870         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10871         argument.
10872         (target_remove_exec_catchpoint): Add argument.
10873         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10874         (update_current_target): Update.
10875         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10876         argument.
10877
10878 2014-02-19  Tom Tromey  <tromey@redhat.com>
10879
10880         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10881         argument.
10882         (target_insert_exec_catchpoint): Add argument.
10883         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10884         (update_current_target): Update.
10885         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10886         argument.
10887
10888 2014-02-19  Tom Tromey  <tromey@redhat.com>
10889
10890         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10891         argument.
10892         (target_remove_vfork_catchpoint): Add argument.
10893         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10894         (update_current_target): Update.
10895         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10896         argument.
10897
10898 2014-02-19  Tom Tromey  <tromey@redhat.com>
10899
10900         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10901         argument.
10902         (target_insert_vfork_catchpoint): Add argument.
10903         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10904         (update_current_target): Update.
10905         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10906         argument.
10907
10908 2014-02-19  Tom Tromey  <tromey@redhat.com>
10909
10910         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10911         argument.
10912         (target_remove_fork_catchpoint): Add argument.
10913         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10914         (update_current_target): Update.
10915         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10916         argument.
10917
10918 2014-02-19  Tom Tromey  <tromey@redhat.com>
10919
10920         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10921         argument.
10922         (target_insert_fork_catchpoint): Add argument.
10923         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10924         (update_current_target): Update.
10925         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10926         argument.
10927
10928 2014-02-19  Tom Tromey  <tromey@redhat.com>
10929
10930         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10931         argument.
10932         (target_post_startup_inferior): Add argument.
10933         * target.c (debug_to_post_startup_inferior): Add argument.
10934         (update_current_target): Update.
10935         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10936         argument.
10937         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10938         argument.
10939         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10940         argument.
10941         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10942         argument.
10943         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10944         'self' argument.
10945         (super_post_startup_inferior): Likewise.
10946         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10947         'self' argument.
10948         (super_post_startup_inferior): Likewise.
10949         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10950         Add 'self' argument.
10951         (super_post_startup_inferior): Likewise.
10952
10953 2014-02-19  Tom Tromey  <tromey@redhat.com>
10954
10955         * target.h (struct target_ops) <to_load>: Add argument.
10956         * target.c (target_load): Add argument.
10957         (debug_to_load): Add argument.
10958         (update_current_target): Update.
10959         * remote.c (remote_load): Add 'self' argument.
10960         * remote-sim.c (gdbsim_load): Add 'self' argument.
10961         * remote-mips.c (mips_load): Add 'self' argument.
10962         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10963         * monitor.c (monitor_load): Add 'self' argument.
10964         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10965
10966 2014-02-19  Tom Tromey  <tromey@redhat.com>
10967
10968         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10969         (target_terminal_info): Add argument.
10970         * target.c (debug_to_terminal_info): Add argument.
10971         (default_terminal_info): Likewise.
10972         * inflow.c (child_terminal_info): Add 'self' argument.
10973         * inferior.h (child_terminal_info): Add 'self' argument.
10974         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10975
10976 2014-02-19  Tom Tromey  <tromey@redhat.com>
10977
10978         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10979         argument.
10980         (target_terminal_save_ours): Add argument.
10981         * target.c (debug_to_terminal_save_ours): Add argument.
10982         (update_current_target): Update.
10983         * inflow.c (terminal_save_ours): Add 'self' argument.
10984         * inferior.h (terminal_save_ours): Add 'self' argument.
10985
10986 2014-02-19  Tom Tromey  <tromey@redhat.com>
10987
10988         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10989         (target_terminal_ours): Add argument.
10990         * target.c (debug_to_terminal_ours): Add argument.
10991         (update_current_target): Update.
10992         * remote.c (remote_terminal_ours): Add 'self' argument.
10993         (remote_close): Update.
10994         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10995         * inflow.c (terminal_ours): Add 'self' argument.
10996         * inferior.h (terminal_ours): Add 'self' argument.
10997         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10998
10999 2014-02-19  Pedro Alves  <palves@redhat.com>
11000             Tom Tromey  <tromey@redhat.com>
11001
11002         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11003         argument.
11004         (target_terminal_ours_for_output): Add argument.
11005         * target.c (debug_to_terminal_ours_for_output): Add argument.
11006         (update_current_target): Update.
11007         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11008         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11009         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11010
11011 2014-02-19  Tom Tromey  <tromey@redhat.com>
11012
11013         * target.h (struct target_ops) <to_terminal_inferior>: Add
11014         argument.
11015         * target.c (target_terminal_inferior): Add argument.
11016         (update_current_target): Update.
11017         * remote.c (remote_terminal_inferior): Add 'self' argument.
11018         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11019         * inflow.c (terminal_inferior): Add 'self' argument.
11020         * inferior.h (terminal_inferior): Add 'self' argument.
11021         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11022         (go32_terminal_inferior): Add 'self' argument.
11023
11024 2014-02-19  Tom Tromey  <tromey@redhat.com>
11025
11026         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11027         (target_terminal_init): Add argument.
11028         * target.c (debug_to_terminal_init): Add argument.
11029         (update_current_target): Update.
11030         * inflow.c (terminal_init_inferior): Add 'self' argument.
11031         * inferior.h (terminal_init_inferior): Add 'self' argument.
11032         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11033         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target.h (struct target_ops)
11038         <to_can_accel_watchpoint_condition>: Add argument.
11039         (target_can_accel_watchpoint_condition): Add argument.
11040         * target.c (debug_to_can_accel_watchpoint_condition): Add
11041         argument.
11042         (update_current_target): Update.
11043         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11044         'self' argument.
11045
11046 2014-02-19  Tom Tromey  <tromey@redhat.com>
11047
11048         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11049         Add argument.
11050         (target_region_ok_for_hw_watchpoint): Add argument.
11051         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11052         (default_region_ok_for_hw_watchpoint): Add argument.
11053         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11054         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11055         argument.
11056         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11057         argument.
11058         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11059         argument.
11060         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11061         'self' argument.
11062         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11063         'self' argument.
11064         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11065         'self' argument.
11066         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11067         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11068         'self' argument.
11069         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11070         Add 'self' argument.
11071
11072 2014-02-19  Tom Tromey  <tromey@redhat.com>
11073
11074         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11075         argument.
11076         (target_insert_watchpoint): Add argument.
11077         * target.c (debug_to_insert_watchpoint): Add argument.
11078         (update_current_target): Update.
11079         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11080         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11081         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11082         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11083         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11084         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11085         argument.
11086         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11087         (procfs_insert_hw_watchpoint): Add 'self' argument.
11088         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11089         argument.
11090         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11091         argument.
11092         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11093         argument.
11094         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11095         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11096         argument.
11097         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11098         'self' argument.
11099
11100 2014-02-19  Tom Tromey  <tromey@redhat.com>
11101
11102         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11103         argument.
11104         (target_remove_watchpoint): Add argument.
11105         * target.c (debug_to_remove_watchpoint): Add argument.
11106         (update_current_target): Update.
11107         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11108         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11109         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11110         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11111         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11112         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11113         argument.
11114         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11115         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11116         argument.
11117         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11118         argument.
11119         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11120         argument.
11121         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11122         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11123         argument.
11124         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11125         'self' argument.
11126
11127 2014-02-19  Tom Tromey  <tromey@redhat.com>
11128
11129         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11130         argument.
11131         (target_remove_hw_breakpoint): Add argument.
11132         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11133         (update_current_target): Update.
11134         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11135         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11136         argument.
11137         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11138         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11139         argument.
11140         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11141         'self' argument.
11142
11143 2014-02-19  Tom Tromey  <tromey@redhat.com>
11144
11145         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11146         argument.
11147         (target_insert_hw_breakpoint): Add argument.
11148         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11149         (update_current_target): Update.
11150         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11151         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11152         argument.
11153         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11154         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11155         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11156         argument.
11157         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11158         'self' argument.
11159
11160 2014-02-19  Tom Tromey  <tromey@redhat.com>
11161
11162         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11163         argument.
11164         (target_can_use_hardware_watchpoint): Add argument.
11165         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11166         (update_current_target): Update.
11167         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11168         argument.
11169         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11170         argument.
11171         * remote.c (remote_check_watch_resources): Add 'self' argument.
11172         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11173         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11174         argument.
11175         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11176         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11177         argument.
11178         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11179         argument.
11180         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11181         argument.
11182         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11183         argument.
11184         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11185         argument.
11186         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11187         argument.
11188         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11189         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11190         argument.
11191         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11192         'self' argument.
11193
11194 2014-02-19  Tom Tromey  <tromey@redhat.com>
11195
11196         * target.h (struct target_ops) <to_post_attach>: Add argument.
11197         (target_post_attach): Add argument.
11198         * target.c (debug_to_post_attach): Add argument.
11199         (update_current_target): Update.
11200         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11201         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11202         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11203         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11204         * inf-child.c (inf_child_post_attach): Add 'self' argument.
11205
11206 2014-02-19  Tom Tromey  <tromey@redhat.com>
11207
11208         * windows-nat.c (windows_close): Add 'self' argument.
11209         * tracepoint.c (tfile_close): Add 'self' argument.
11210         * target.h (struct target_ops) <to_close>: Add argument.
11211         * target.c (target_close): Add argument.
11212         (update_current_target): Update.
11213         * remote.c (remote_close): Add 'self' argument.
11214         * remote-sim.c (gdbsim_close): Add 'self' argument.
11215         * remote-mips.c (mips_close): Add 'self' argument.
11216         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11217         * record-full.c (record_full_close): Add 'self' argument.
11218         * record-btrace.c (record_btrace_close): Add 'self' argument.
11219         * monitor.h (monitor_close): Add 'self' argument.
11220         * monitor.c (monitor_close): Add 'self' argument.
11221         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11222         * linux-nat.c (linux_nat_close): Add argument.
11223         * go32-nat.c (go32_close): Add 'self' argument.
11224         * exec.c (exec_close_1): Add 'self' argument.
11225         * ctf.c (ctf_close): Add 'self' argument.
11226         * corelow.c (core_close): Add 'self' argument.
11227         (core_close_cleanup): Update.
11228         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11229         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11230
11231 2014-02-19  Tom Tromey  <tromey@redhat.com>
11232
11233         * remote.c (remote_load): New function.
11234         (init_remote_ops): Use it.
11235
11236 2014-02-19  Tom Tromey  <tromey@redhat.com>
11237
11238         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11239         argument.
11240         * common/linux-btrace.h (linux_supports_btrace): Update.
11241         * remote.c (remote_supports_btrace): Add "self" argument.
11242         * target-delegates.c: Rebuild.
11243         * target.c (target_supports_btrace): Remove.
11244         * target.h (struct target_ops) <to_supports_btrace>: Add
11245         target_ops argument.
11246         (target_supports_btrace): New define.
11247
11248 2014-02-19  Tom Tromey  <tromey@redhat.com>
11249
11250         * record-full.c (record_full_beneath_to_resume_ops)
11251         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11252         (record_full_beneath_to_wait)
11253         (record_full_beneath_to_store_registers_ops)
11254         (record_full_beneath_to_store_registers)
11255         (record_full_beneath_to_xfer_partial_ops)
11256         (record_full_beneath_to_xfer_partial)
11257         (record_full_beneath_to_insert_breakpoint_ops)
11258         (record_full_beneath_to_insert_breakpoint)
11259         (record_full_beneath_to_remove_breakpoint_ops)
11260         (record_full_beneath_to_remove_breakpoint)
11261         (record_full_beneath_to_stopped_by_watchpoint)
11262         (record_full_beneath_to_stopped_data_address)
11263         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11264         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11265         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11266         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11267         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11268         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11269         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11270         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11271         (record_full_resume, record_full_wait_1)
11272         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11273         (record_full_store_registers, record_full_xfer_partial)
11274         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11275         (record_full_async, record_full_core_xfer_partial): Use target
11276         delegation.
11277         * target-delegates.c: Rebuild.
11278         * target.c (current_xfer_partial): Remove.
11279         (update_current_target): Do not INHERIT or de_fault
11280         to_insert_breakpoint, to_remove_breakpoint,
11281         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11282         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11283         (default_xfer_partial): Simplify.
11284         (current_xfer_partial): Remove.
11285         (target_wait, target_resume): Simplify.
11286         (find_default_can_async_p, find_default_is_async_p): Update.
11287         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11288         to_xfer_partial, to_stopped_by_watchpoint,
11289         to_stopped_data_address.
11290         (target_store_registers): Simplify.
11291         (forward_target_remove_breakpoint)
11292         (forward_target_insert_breakpoint): Remove.
11293         (target_remove_breakpoint, target_insert_breakpoint)
11294         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11295         * target.h (struct target_ops) <to_resume, to_wait,
11296         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11297         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11298         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11299         markup.
11300         (forward_target_remove_breakpoint)
11301         (forward_target_insert_breakpoint): Remove.
11302         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11303         directly.
11304         (record_btrace_insert_breakpoint): Delegate directly.
11305
11306 2014-02-19  Tom Tromey  <tromey@redhat.com>
11307
11308         PR build/7701:
11309         * target-delegates.c: New file.
11310         * target.c: Include target-delegates.c.
11311         (init_dummy_target): Call install_dummy_methods.
11312         (complete_target_initialization): Call install_delegators.
11313         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11314         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11315         * make-target-delegates: New file.
11316
11317 2014-02-19  Tom Tromey  <tromey@redhat.com>
11318
11319         * record.c (find_record_target): Use find_target_at.
11320         * target.c (find_target_at): New function.
11321         * target.h (find_target_at): Declare.
11322
11323 2014-02-19  Tom Tromey  <tromey@redhat.com>
11324
11325         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11326         Add 'ops' argument.
11327         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11328         'ops' argument.
11329         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11330         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11331         'ops' argument.
11332         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11333         argument.
11334         * linux-nat.c (save_sigtrap): Update.
11335         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11336         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11337         (linux_nat_close): Update.
11338         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11339         argument.
11340         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11341         argument.
11342         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11343         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11344         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11345         (tmp_to_async): Add 'ops' argument.
11346         (record_full_stopped_by_watchpoint, record_full_async)
11347         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11348         argument.
11349         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11350         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11351         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11352         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11353         (remote_is_async_p, remote_async): Add 'ops' argument.
11354         (remote_stopped_data_address): Update.
11355         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11356         * target.c (update_current_target)
11357         (find_default_can_async_p, find_default_is_async_p): Update.
11358         (init_dummy_target): Update.
11359         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11360         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11361         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11362         (target_can_async_p, target_is_async_p, target_async)
11363         (target_stopped_by_watchpoint): Update.
11364
11365 2014-02-19  Yao Qi  <yao@codesourcery.com>
11366
11367         PR gdb/16220
11368         * gdbarch.sh: Remove startup_gdbarch.
11369         * gdbarch.c: Regenerated.
11370         * gdbarch.h: Likewise.
11371
11372 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11373
11374         * rl78-tdep.c (rl78_g10_register_name): New function.
11375         (rl78_return_value): Add g10 support.
11376         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11377         g10.
11378
11379 2014-02-17  Doug Evans  <xdje42@gmail.com>
11380
11381         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11382         (SUBDIR_GUILE_SRCS): Ditto.
11383         (scm-gsmob.o): Ditto.
11384
11385 2014-02-17  Yao Qi  <yao@codesourcery.com>
11386
11387         * gnu-nat.c (ILL_RPC): Declare defined function.
11388
11389 2014-02-17  Yao Qi  <yao@codesourcery.com>
11390
11391         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11392         mach_msg_type_number_t.
11393         (gnu_write_inferior): Likewise.
11394
11395 2014-02-17  Yao Qi  <yao@codesourcery.com>
11396
11397         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11398         in format string.
11399         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11400         (inf_validate_procs, inf_signal): Likewise.
11401         (S_exception_raise_request): Likewise.
11402         (do_mach_notify_dead_name): Likewise.
11403         (steal_exc_port): Likewise.
11404         (gnu_read_inferior): Change 'copy_count''s type to
11405         mach_msg_type_number_t.
11406         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11407         format string.
11408
11409 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11410
11411         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11412         flag.  Adjust all users; in particular...
11413         (gnu_wait): ..., don't decrement its value in here...
11414         (gnu_create_inferior): ..., and instead set the flag in here,
11415         around the startup_inferior call, and call that one with
11416         START_INFERIOR_TRAPS_EXPECTED.
11417
11418         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11419         (ILL_RPC): ... new macro.
11420         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11421         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11422         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11423         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11424         functions with ILL_RPC macro.
11425         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11426         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11427         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11428         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11429         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11430         (S_proc_getlogin_reply, S_proc_getsid_reply)
11431         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11432         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11433         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11434         (S_proc_getnports_reply, S_proc_is_important_reply)
11435         (S_proc_get_code_reply): New stub functions, generated with
11436         ILL_RPC macro.
11437
11438         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11439         collected the type check structures.
11440
11441         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11442
11443 2014-02-14  Doug Evans  <dje@google.com>
11444
11445         * target.c (target_write_partial): Fix result type.
11446
11447 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11448
11449         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11450         the proper offsets to access fpregset_t.
11451
11452 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11453
11454         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11455         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11456         * h8300-tdep.c (setmachinelist): Remove global.
11457         * hppa-tdep.c (hppa_sigtramp): Remove global.
11458         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11459         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11460         * ravenscar-thread.c (update_target_observer): Remove global.
11461         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11462
11463 2014-02-12  Tom Tromey  <tromey@redhat.com>
11464
11465         * common/rsp-low.c: Update comments.
11466         * common/rsp-low.h: Update comments.
11467
11468 2014-02-12  Tom Tromey  <tromey@redhat.com>
11469
11470         * common/rsp-low.c (convert_ascii_to_int): Remove.
11471         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11472
11473 2014-02-12  Tom Tromey  <tromey@redhat.com>
11474
11475         * common/rsp-low.h (unhexify): Don't declare.
11476         * common/rsp-low.c (unhexify): Remove.
11477
11478 2014-02-12  Tom Tromey  <tromey@redhat.com>
11479
11480         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11481         * common/rsp-low.c (convert_int_to_ascii): Remove.
11482
11483 2014-02-12  Tom Tromey  <tromey@redhat.com>
11484
11485         * common/rsp-low.h (hexify): Don't declare.
11486         * common/rsp-low.c (hexify): Remove.
11487
11488 2014-02-12  Tom Tromey  <tromey@redhat.com>
11489
11490         * common/rsp-low.c (hexify): Never take strlen of argument.
11491
11492 2014-02-12  Tom Tromey  <tromey@redhat.com>
11493
11494         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11495         * remote.c (extended_remote_run, remote_rcmd)
11496         (remote_download_trace_state_variable, remote_save_trace_data)
11497         (remote_set_trace_notes): Update.
11498         * tracepoint.c (encode_source_string, tfile_write_status)
11499         (tfile_write_uploaded_tsv): Update.
11500
11501 2014-02-12  Tom Tromey  <tromey@redhat.com>
11502
11503         * tracepoint.c: Include rsp-low.h.
11504         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11505         * remote.c: Include rsp-low.h.
11506         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11507         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11508         (remote_unescape_input): Move to common/rsp-low.c.
11509         * common/rsp-low.h: New file.
11510         * common/rsp-low.c: New file.
11511         * Makefile.in (SFILES): Add common/rsp-low.c.
11512         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11513         (COMMON_OBS): Add rsp-low.o.
11514         (rsp-low.o): New target.
11515
11516 2014-02-12  Tom Tromey  <tromey@redhat.com>
11517
11518         * utils.h: Include print-utils.h.
11519         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11520         (int_string, core_addr_to_string, core_addr_to_string_nz)
11521         (hex_string, hex_string_custom): Don't declare.
11522         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11523         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11524         (hex_string_custom, int_string, core_addr_to_string)
11525         (core_addr_to_string_nz, host_address_to_string): Move to
11526         common/print-utils.c.
11527         * common/print-utils.h: New file.
11528         * common/print-utils.c: New file
11529         * Makefile.in (SFILES): Add common/print-utils.c.
11530         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11531         (COMMON_OBS): Add print-utils.o.
11532         (print-utils.o): New target.
11533
11534 2014-02-12  Tom Tromey  <tromey@redhat.com>
11535
11536         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11537
11538 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11539
11540         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11541
11542 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11543
11544         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11545         if a PT_IO ptrace request returns sucessfully but indicates that 0
11546         bytes were transferred.
11547
11548 2014-02-12  Pedro Alves  <palves@redhat.com>
11549             Kevin Buettner <kevinb@redhat.com>
11550
11551         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11552         TYPE_INSTANCE_FLAG_CODE_SPACE.
11553
11554 2014-02-12  Pedro Alves  <palves@redhat.com>
11555
11556         * h8300-tdep.c (pseudo_from_raw_register)
11557         (raw_from_pseudo_register): New functions.
11558         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11559         them.
11560
11561 2014-02-12  Pedro Alves  <palves@redhat.com>
11562
11563         * h8300-tdep.c (h8300_register_sim_regno): New function.
11564         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11565         gdbarch_register_sim_regno hook.
11566
11567 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11568
11569         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11570
11571 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11572
11573         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11574
11575 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11576
11577         * obsd-tdep.h (obsd_init_abi): New prototype.
11578         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11579         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11580         (obsd_init_abi): New functions.
11581         * i386obsd-tdep.c: Include "obsd-tdep.h".
11582         (i386obsd_init_abi): Call obsd_init_abi.
11583         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11584         (amd64obsd_init_abi): Call obsd_init_abi.
11585         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11586         obsd-tdep.c to gdb_target_obs.
11587
11588 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11589
11590         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11591         double float arguments to 16-byte in the argument slots.
11592
11593 2014-02-11  Doug Evans  <xdje42@gmail.com>
11594
11595         * configure.ac: Don't crash if pkg-config is not found and guile
11596         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11597         in guile checks.
11598         * configure: Regenerate.
11599
11600 2014-02-11  Yao Qi  <yao@codesourcery.com>
11601
11602         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11603         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11604         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11605         * gnu-nat.c (gnu_xfer_memory): Likewise.
11606         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11607         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11608         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11609         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11610
11611 2014-02-11  Yao Qi  <yao@codesourcery.com>
11612
11613         * target.h (enum target_xfer_error): Rename to ...
11614         (enum target_xfer_status): ... it.  New.  All users updated.
11615         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11616         New.
11617         (TARGET_XFER_STATUS_ERROR_P): New macro.
11618         (target_xfer_error_to_string): Remove declaration.
11619         (target_xfer_status_to_string): Declare.
11620         (target_xfer_partial_ftype): Adjust it.
11621         (struct target_ops) <to_xfer_partial>: Return
11622         target_xfer_status.  Add argument xfered_len.  Update
11623         comments.
11624         * target.c (target_xfer_error_to_string): Rename to ...
11625         (target_xfer_status_to_string): ... it.  New.  All callers
11626         updated.
11627         (target_read_live_memory): Likewise.  Call target_xfer_partial
11628         instead of target_read.
11629         (memory_xfer_live_readonly_partial): Return
11630         target_xfer_status.  Add argument xfered_len.
11631         (raw_memory_xfer_partial): Likewise.
11632         (memory_xfer_partial_1): Likewise.
11633         (memory_xfer_partial): Likewise.
11634         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11635         properly.  Update debug message.
11636         (default_xfer_partial, current_xfer_partial): Likewise.
11637         (target_write_partial): Likewise.
11638         (target_read_partial): Likewise.  All callers updated.
11639         (read_whatever_is_readable): Likewise.
11640         (target_write_with_progress): Likewise.
11641         (target_read_alloc_1): Likewise.
11642
11643         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11644         * auxv.c (procfs_xfer_auxv): Likewise.
11645         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11646         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11647         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11648         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11649         * corefile.c (read_memory): Adjust.
11650         * corelow.c (core_xfer_partial): Likewise.
11651         * ctf.c (ctf_xfer_partial): Likewise.
11652         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11653         updated.
11654         (darwin_xfer_partial): Likewise.
11655         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11656         callers updated.
11657         (exec_xfer_partial): Likewise.
11658         * exec.h (section_table_xfer_memory_partial): Update
11659         declaration.
11660         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11661         negative.
11662         (gnu_xfer_partial): Likewise.
11663         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11664         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11665         (ia64_hpux_xfer_solib_got): Likewise.
11666         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11667         type of 'partial_len' to ULONGEST.
11668         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11669         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11670         (linux_nat_xfer_partial): Likewise.
11671         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11672         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11673         * monitor.c (monitor_xfer_memory): Likewise.
11674         (monitor_xfer_partial): Likewise.
11675         * procfs.c (procfs_xfer_partial): Likewise.
11676         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11677         * record-full.c (record_full_xfer_partial): Likewise.
11678         (record_full_core_xfer_partial): Likewise.
11679         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11680         (gdbsim_xfer_partial): Likewise.
11681         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11682         updated.
11683         (remote_write_bytes, remote_read_bytes): Likewise.  All
11684         callers updated.
11685         (remote_flash_erase): Likewise.  All callers updated.
11686         (remote_write_qxfer): Likewise.  All callers updated.
11687         (remote_read_qxfer): Likewise.  All callers updated.
11688         (remote_xfer_partial): Likewise.
11689         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11690         (rs6000_xfer_shared_libraries): Likewise.
11691         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11692         (sol_thread_xfer_partial): Likewise.
11693         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11694         (sparc_xfer_partial): Likewise.
11695         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11696         updated.
11697         (spu_xfer_partial): Likewise.
11698         * spu-multiarch.c (spu_xfer_partial): Likewise.
11699         * tracepoint.c (tfile_xfer_partial): Likewise.
11700         * windows-nat.c (windows_xfer_memory): Likewise.
11701         (windows_xfer_shared_libraries): Likewise.
11702         (windows_xfer_partial): Likewise.
11703         * valprint.c: Replace 'target_xfer_error' with
11704         'target_xfer_status' in comments.
11705
11706 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11707
11708         Checked in by Joel Brobecker <brobecker@adacore.com>.
11709         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11710
11711 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11712
11713         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11714         function parameters.
11715
11716 2014-02-10  Will Newton  <will.newton@linaro.org>
11717
11718         * elfread.c (elf_rel_plt_read): Look for a .got section if
11719         looking up .got.plt fails.
11720         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11721         on address passed to elf_gnu_ifunc_record_cache.
11722         (elf_gnu_ifunc_resolve_addr): Likewise.
11723         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11724
11725 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11726
11727         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11728         (X_RETTURN): New macro.
11729         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11730
11731         * sparc64-tdep.c (sparc64_init_abi): Hook
11732         sparc_in_function_epilogue_p.
11733
11734 2014-02-10  Gary Benson  <gbenson@redhat.com>
11735
11736         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11737         Rename name_matcher to symbol_matcher.
11738
11739 2014-02-10  Gary Benson  <gbenson@redhat.com>
11740
11741         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11742         Use expand_symtabs_file_matcher_ftype and
11743         expand_symtabs_symbol_matcher_ftype.
11744
11745 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11746
11747         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11748         (struct ada_symbol_cache): New.
11749         (ada_free_symbol_cache): Forward declare.
11750         (struct ada_pspace_data): New.
11751         (ada_pspace_data_handle): New static global.
11752         (get_ada_pspace_data, ada_pspace_data_cleanup)
11753         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11754         (cache_space, cache): Delete, now folded inside struct
11755         ada_pspace_data.
11756         (ada_get_symbol_cache): New function.
11757         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11758         implementation.
11759         (_initialize_ada_language): Remove initialization of cache_space.
11760         Move call to observer_attach_inferior_exit up, grouping it
11761         with the other observer registrations inside this function.
11762         Rename command to be more general.  Add call to
11763         register_program_space_data_with_cleanup.
11764
11765 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11766
11767         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11768         ada_new_objfile_observer.
11769         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11770         (_initialize_tasks): Update uses of ada_new_objfile_observer
11771         and ada_tasks_normal_stop_observer.
11772
11773 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11774
11775         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11776         returned by the 'Length attribute to integer.
11777
11778 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11779
11780         * ada-lang.c (_initialize_ada_language): Initialize
11781         cache_space obstack.
11782
11783 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11784
11785         * ada-lang.c (HASH_SIZE): New macro.
11786         (struct cache_entry): New type.
11787         (cache_space, cache): New static globals.
11788         (ada_clear_symbol_cache, find_entry): New functions.
11789         (lookup_cached_symbol, cache_symbol): Implement.
11790         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11791         (_initialize_ada_language): Attach ada_new_objfile_observer
11792         and ada_free_objfile_observer.
11793
11794 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11795
11796         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11797         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11798         struct block * parameter.
11799         (ada_lookup_symbol_list_worker): Constify local variable "block".
11800         Remove cast which is no longer necessary.
11801
11802 2014-02-10  Doug Evans  <xdje42@gmail.com>
11803
11804         Add Guile as an extension language.
11805         * NEWS: Mention Guile scripting.
11806         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11807         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11808         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11809         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11810         (CLIBS): Add GUILE_LIBS.
11811         (install-guile): New rule.
11812         (guile.o): New rule.
11813         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11814         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11815         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11816         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11817         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11818         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11819         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11820         * configure.ac: New option --with-guile.
11821         * configure: Regenerate.
11822         * config.in: Regenerate.
11823         * auto-load.c: Remove #include "python/python.h".  Add #include
11824         "gdb/section-scripts.h".
11825         (source_section_scripts): Handle Guile scripts.
11826         (_initialize_auto_load): Add name of Guile objfile script to
11827         scripts-directory help text.
11828         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11829         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11830         (struct breakpoint): New member scm_bp_object.
11831         * defs.h (enum command_control_type): New value guile_control.
11832         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11833         "extension.h".
11834         (show_user): Update comment.
11835         (_initialize_cli_cmds): Update help text for "show user".  Update help
11836         text for max-user-call-depth.
11837         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11838         "extension.h".
11839         (multi_line_command_p): Add guile_control.
11840         (print_command_lines): Handle guile_control.
11841         (execute_control_command, recurse_read_control_structure): Ditto.
11842         (process_next_line): Recognize "guile" commands.
11843         * disasm.c (gdb_disassemble_info): Make non-static.
11844         * disasm.h: #include "dis-asm.h".
11845         (struct gdbarch): Add forward decl.
11846         (gdb_disassemble_info): Declare.
11847         * extension.c: #include "guile/guile.h".
11848         (extension_languages): Add guile.
11849         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11850         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11851         * gdbtypes.c (get_unsigned_type_max): New function.
11852         (get_signed_type_minmax): New function.
11853         * gdbtypes.h (get_unsigned_type_max): Declare.
11854         (get_signed_type_minmax): Declare.
11855         * guile/README: New file.
11856         * guile/guile-internal.h: New file.
11857         * guile/guile.c: New file.
11858         * guile/guile.h: New file.
11859         * guile/scm-arch.c: New file.
11860         * guile/scm-auto-load.c: New file.
11861         * guile/scm-block.c: New file.
11862         * guile/scm-breakpoint.c: New file.
11863         * guile/scm-disasm.c: New file.
11864         * guile/scm-exception.c: New file.
11865         * guile/scm-frame.c: New file.
11866         * guile/scm-gsmob.c: New file.
11867         * guile/scm-iterator.c: New file.
11868         * guile/scm-lazy-string.c: New file.
11869         * guile/scm-math.c: New file.
11870         * guile/scm-objfile.c: New file.
11871         * guile/scm-ports.c: New file.
11872         * guile/scm-pretty-print.c: New file.
11873         * guile/scm-safe-call.c: New file.
11874         * guile/scm-string.c: New file.
11875         * guile/scm-symbol.c: New file.
11876         * guile/scm-symtab.c: New file.
11877         * guile/scm-type.c: New file.
11878         * guile/scm-utils.c: New file.
11879         * guile/scm-value.c: New file.
11880         * guile/lib/gdb.scm: New file.
11881         * guile/lib/gdb/boot.scm: New file.
11882         * guile/lib/gdb/experimental.scm: New file.
11883         * guile/lib/gdb/init.scm: New file.
11884         * guile/lib/gdb/iterator.scm: New file.
11885         * guile/lib/gdb/printing.scm: New file.
11886         * guile/lib/gdb/types.scm: New file.
11887         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11888         (VPATH): Add $(GUILE_SRCDIR).
11889         (GUILE_DIR): New variable.
11890         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11891         (all): Add stamp-guile dependency.
11892         (stamp-guile): New rule.
11893         (clean-guile, install-guile, uninstall-guile): New rules.
11894         (install-only): Add install-guile dependency.
11895         (uninstall): Add uninstall-guile dependency.
11896         (clean): Add clean-guile dependency.
11897
11898 2014-02-09  Doug Evans  <xdje42@gmail.com>
11899
11900         Revert this patch (which I approved, mea culpa).
11901
11902         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11903
11904         * Makefile.in (all-lib): Remove.
11905         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11906
11907 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11908
11909         Fix Python stack corruption.
11910         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11911         gdb_py_longest.
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-07  Doug Evans  <dje@google.com>
11919
11920         * extension-priv.h (extension_language_script_ops): Add comment.
11921         (extension_language_ops): Add comment.
11922         (active_ext_lang_state): Fix typo in comment.
11923
11924 2014-02-07  Pedro Alves  <palves@redhat.com>
11925
11926         PR breakpoints/16292
11927         * infrun.c (handle_signal_stop) <signal arrives while stepping
11928         over a breakpoint>: Switch back to the stepping thread.
11929
11930 2014-02-07  Yao Qi  <yao@codesourcery.com>
11931
11932         * target.c (target_xfer_partial): Return zero if LEN is zero.
11933
11934 2014-02-07  Yao Qi  <yao@codesourcery.com>
11935
11936         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11937         (ld_so_xfer_auxv): Likewise.
11938         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11939         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11940         * corelow.c (core_xfer_partial): Likewise.
11941         * ctf.c (ctf_xfer_partial): Likewise.
11942         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11943         (darwin_xfer_partial): Likewise.
11944         * exec.c (exec_xfer_partial): Likewise.
11945         * gnu-nat.c (gnu_xfer_partial): Likewise.
11946         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11947         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11948         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11949         * linux-nat.c (linux_xfer_siginfo): Likewise.
11950         (linux_proc_xfer_spu): Likewise.
11951         * procfs.c (procfs_xfer_partial): Likewise.
11952         * record-full.c (record_full_xfer_partial): Likewise.
11953         (record_full_core_xfer_partial): Likewise.
11954         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11955         * remote.c (remote_write_qxfer): Likewise.
11956         (remote_write_qxfer, remote_read_qxfer): Likewise.
11957         (remote_xfer_partial): Likewise.
11958         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11959         (rs6000_xfer_shared_libraries): Likewise.
11960         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11961         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11962         (spu_xfer_partial): Likewise.
11963         * target.c (memory_xfer_partial_1): Likewise.
11964         * tracepoint.c (tfile_xfer_partial): Likewise.
11965         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11966         (windows_xfer_partial): Likewise.
11967
11968 2014-02-07  Yao Qi  <yao@codesourcery.com>
11969
11970         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11971         comments.
11972         (core_xfer_shared_libraries_aix): Likewise.
11973         * gdbarch.c, gdbarch.h: Regenerated.
11974         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11975         ULONGEST.  Change 'len_avail' type to ULONGEST.
11976         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11977         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11978         declaration.
11979         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11980
11981 2014-02-07  Yao Qi  <yao@codesourcery.com>
11982
11983         * corefile.c (memory_error): Get 'exception' from ERR and pass
11984         'exception' to throw_error.
11985
11986 2014-02-06  Doug Evans  <xdje42@gmail.com>
11987
11988         * configure.ac (libpython checking): Remove all but python.o from
11989         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11990         * configure: Regenerate.
11991
11992         * Makefile.in (SFILES): Add extension.c.
11993         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11994         (COMMON_OBS): Add extension.o.
11995         * extension.h: New file.
11996         * extension-priv.h: New file.
11997         * extension.c: New file.
11998
11999         * python/python-internal.h: #include "extension.h".
12000         (gdbpy_auto_load_enabled): Declare.
12001         (gdbpy_apply_val_pretty_printer): Declare.
12002         (gdbpy_apply_frame_filter): Declare.
12003         (gdbpy_preserve_values): Declare.
12004         (gdbpy_breakpoint_cond_says_stop): Declare.
12005         (gdbpy_breakpoint_has_cond): Declare.
12006         (void source_python_script_for_objfile): Delete.
12007         * python/python.c: #include "extension-priv.h".
12008         Delete inclusion of "observer.h".
12009         (extension_language_python): Moved here and renamed from
12010         script_language_python in py-auto-load.c.
12011         Redefined to be of type extension_language_defn.
12012         (python_extension_script_ops): New global.
12013         (python_extension_ops): New global.
12014         (struct python_env): New member previous_active.
12015         (restore_python_env): Call restore_active_ext_lang.
12016         (ensure_python_env): Call set_active_ext_lang.
12017         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12018         New arg extlang.
12019         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12020         New arg extlang.
12021         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12022         New arg extlang.
12023         (gdbpy_eval_from_control_command): Renamed from
12024         eval_python_from_control_command, made static.  New arg extlang.
12025         (gdbpy_source_script) Renamed from source_python_script, made static.
12026         New arg extlang.
12027         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12028         result to int.  New arg extlang.
12029         (gdbpy_source_objfile_script): Renamed from
12030         source_python_script_for_objfile, made static.  New arg extlang.
12031         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12032         static.  New args extlang, extlang_printers.  Change result type to
12033         "void".
12034         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12035         static.  New arg extlang.  Rename arg printers to extlang_printers
12036         and change type to ext_lang_type_printers *.
12037         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12038         static.  Replace argument arg with extlang, extlang_printers.
12039         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12040         (!HAVE_PYTHON, source_python_script): Delete.
12041         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12042         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12043         (!HAVE_PYTHON, start_type_printers): Delete.
12044         (!HAVE_PYTHON, apply_type_printers): Delete.
12045         (!HAVE_PYTHON, free_type_printers): Delete.
12046         (_initialize_python): Delete call to observer_attach_before_prompt.
12047         (finalize_python): Set/restore active extension language.
12048         (gdbpy_finish_initialization) Renamed from
12049         finish_python_initialization, made static.  New arg extlang.
12050         (gdbpy_initialized): New function.
12051         * python/python.h: #include "extension.h".  Delete #include
12052         "value.h", "mi/mi-cmds.h".
12053         (extension_language_python): Declare.
12054         (GDBPY_AUTO_FILE_NAME): Delete.
12055         (enum py_bt_status): Moved to extension.h and renamed to
12056         ext_lang_bt_status.
12057         (enum frame_filter_flags): Moved to extension.h.
12058         (enum py_frame_args): Moved to extension.h and renamed to
12059         ext_lang_frame_args.
12060         (finish_python_initialization): Delete.
12061         (eval_python_from_control_command): Delete.
12062         (source_python_script): Delete.
12063         (apply_val_pretty_printer): Delete.
12064         (apply_frame_filter): Delete.
12065         (preserve_python_values): Delete.
12066         (gdbpy_script_language_defn): Delete.
12067         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12068         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12069
12070         * auto-load.c: #include "extension.h".
12071         (GDB_AUTO_FILE_NAME): Delete.
12072         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12073         (script_language_gdb): Delete, moved to extension.c and renamed to
12074         extension_language_gdb.
12075         (source_gdb_script_for_objfile): Delete.
12076         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12077         (loaded_script): Change type of language member to
12078         struct extension_language_defn *.
12079         (init_loaded_scripts_info): Initialize
12080         unsupported_script_warning_printed.
12081         (maybe_add_script): Make static.  Change type of language arg to
12082         struct extension_language_defn *.
12083         (clear_section_scripts): Reset unsupported_script_warning_printed.
12084         (auto_load_objfile_script_1): Rewrite to use extension language API.
12085         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12086         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12087         (source_section_scripts): Rewrite to use extension language API.
12088         (load_auto_scripts_for_objfile): Rewrite to use
12089         auto_load_scripts_for_objfile.
12090         (collect_matching_scripts_data): Change type of language member to
12091         struct extension_language_defn *.
12092         (auto_load_info_scripts): Change type of language arg to
12093         struct extension_language_defn *.
12094         (unsupported_script_warning_print): New function.
12095         (script_not_found_warning_print): Make static.
12096         (_initialize_auto_load): Rewrite construction of scripts-directory
12097         help.
12098         * auto-load.h (struct objfile): Add forward decl.
12099         (struct script_language): Delete.
12100         (struct auto_load_pspace_info): Add forward decl.
12101         (struct extension_language_defn): Add forward decl.
12102         (maybe_add_script): Delete.
12103         (auto_load_objfile_script): Declare.
12104         (script_not_found_warning_print): Delete.
12105         (auto_load_info_scripts): Update prototype.
12106         (auto_load_gdb_scripts_enabled): Declare.
12107         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12108         auto_load_python_scripts_enabled and made public.
12109         (script_language_python): Delete, moved to python.c.
12110         (gdbpy_script_language_defn): Delete.
12111         (info_auto_load_python_scripts): Update to use
12112         extension_language_python.
12113
12114         * breakpoint.c (condition_command): Replace call to
12115         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12116         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12117         with call to breakpoint_ext_lang_cond_says_stop.
12118         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12119         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12120         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12121         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12122         New arg slang.
12123         (local_setattro): Print name of extension language with existing
12124         stop condition.
12125
12126         * valprint.c (val_print, value_print): Update to call
12127         apply_ext_lang_val_pretty_printer.
12128         * cp-valprint.c (cp_print_value): Update call to
12129         apply_ext_lang_val_pretty_printer.
12130         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12131         (gdbpy_apply_val_pretty_printer): Renamed from
12132         apply_val_pretty_printer.  New arg extlang.
12133         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12134
12135         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12136         extension language API.
12137         * cli/cli-script.c (execute_control_command): Update to call
12138         eval_ext_lang_from_control_command.
12139
12140         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12141         enum ext_lang_bt_status values.  Update call to
12142         apply_ext_lang_frame_filter.
12143         (mi_cmd_stack_list_locals): Ditto.
12144         (mi_cmd_stack_list_args): Ditto.
12145         (mi_cmd_stack_list_variables): Ditto.
12146         * mi/mi-main.c: Delete #include "python/python-internal.h".
12147         Add #include "extension.h".
12148         (mi_cmd_list_features): Replace reference to python internal variable
12149         gdb_python_initialized with call to ext_lang_initialized_p.
12150
12151         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12152         Update to use enum ext_lang_frame_args.  Update to call
12153         apply_ext_lang_frame_filter.
12154         * python/py-framefilter.c (extract_sym): Update to use enum
12155         ext_lang_bt_status.
12156         (extract_value, py_print_type, py_print_value): Ditto.
12157         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12158         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12159         (py_print_frame): Ditto.
12160         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12161         New arg extlang.  Update to use enum ext_lang_bt_status.
12162
12163         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12164         finish_python_initialization.  Replace with call to
12165         finish_ext_lang_initialization.
12166
12167         * typeprint.c (do_free_global_table): Update to call
12168         free_ext_lang_type_printers.
12169         (create_global_typedef_table): Update to call
12170         start_ext_lang_type_printers.
12171         (find_global_typedef): Update to call apply_ext_lang_type_printers.
12172         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12173         (type_print_options): Change type of global_printers from "void *"
12174         to "struct ext_lang_type_printers *".
12175
12176         * value.c (preserve_values): Update to call preserve_ext_lang_values.
12177         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12178         (gdbpy_preserve_values): Renamed from preserve_python_values.
12179         New arg extlang.
12180         (!HAVE_PYTHON, preserve_python_values): Delete.
12181
12182         * utils.c (quit_flag): Delete, moved to extension.c.
12183         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12184         extension.c.
12185
12186         * eval.c: Delete #include "python/python.h".
12187         * main.c: Delete #include "python/python.h".
12188
12189         * defs.h: Update comment.
12190
12191 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
12192
12193         GDB 7.7 released.
12194
12195 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
12196
12197         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12198         defined.
12199
12200 2014-02-05  Yao Qi  <yao@codesourcery.com>
12201
12202         * remote.c (remote_pass_signals): Remove local 'buf' and use
12203         rs->buf.
12204         (remote_program_signals): Likewise.
12205
12206 2014-02-05  Yao Qi  <yao@codesourcery.com>
12207
12208         * ctf.c: Include "inferior.h" and "gdbthread.h".
12209         (CTF_PID): A new macro.
12210         (ctf_open): Call inferior_appeared and add_thread_silent.
12211         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12212         (ctf_thread_alive): New function.
12213         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12214
12215 2014-02-05  Yao Qi  <yao@codesourcery.com>
12216
12217         Revert this patch:
12218
12219         2013-05-24  Yao Qi  <yao@codesourcery.com>
12220
12221         * tracepoint.c (TFILE_PID): Remove.
12222         (tfile_open): Don't add thread and inferior.
12223         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12224         exit_inferior_silent.
12225         (tfile_thread_alive): Remove.
12226         (init_tfile_ops): Don't set field 'to_thread_alive' of
12227         tfile_ops.
12228
12229 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12230
12231         * remote.c (remote_start_remote): Call remote_check_symbols even
12232         if only symbol-file (not file) has been given.
12233
12234 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12235
12236         * gdbarch.sh (skip_entrypoint): New callback.
12237         * gdbarch.c, gdbarch.h: Regenerate.
12238         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12239         * infrun.c (fill_in_stop_func): Likewise.
12240         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12241         (ppc_elfv2_elf_make_msymbol_special): New function.
12242         (ppc_elfv2_skip_entrypoint): Likewise.
12243         (ppc_linux_init_abi): Install them for ELFv2.
12244
12245 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12246
12247         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12248         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12249         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12250         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12251         structures returned in GPRs.
12252
12253 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12254
12255         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12256         offset to the stack parameter list for the ELFv2 ABI.
12257
12258 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12259
12260         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12261         set_gdbarch_convert_from_func_ptr_addr and
12262         set_gdbarch_elf_make_msymbol_special for ELFv1.
12263         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12264         function descriptors on ELFv1.
12265         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12266         set up r12 at function entry.
12267
12268 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12269
12270         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12271         (struct gdbarch_tdep): New member elf_abi.
12272
12273         * rs6000-tdep.c: Include "elf/ppc64.h".
12274         (rs6000_gdbarch_init): Detect ELF ABI version.
12275
12276 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12277
12278         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12279         within a register pair holding a DFP 128-bit value on little-endian.
12280         (ppc64_sysv_abi_return_value_base): Likewise.
12281         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12282         (dfp_pseudo_register_write): Likewise.
12283
12284 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12285
12286         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12287         offset on little-endian when passing _Decimal32.
12288         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12289
12290 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12291
12292         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12293         of the overlapped FP register within the VSX register on little-
12294         endian platforms.
12295         (efpr_pseudo_register_write): Likewise.
12296
12297 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12298
12299         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12300         offset on little-endian when passing small structures.
12301
12302 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12303
12304         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12305         (struct ppc64_sysv_argpos): New data structure.
12306         (ppc64_sysv_abi_push_float): Remove.
12307         (ppc64_sysv_abi_push_val): New function.
12308         (ppc64_sysv_abi_push_integer): Likewise.
12309         (ppc64_sysv_abi_push_freg): Likewise.
12310         (ppc64_sysv_abi_push_vreg): Likewise.
12311         (ppc64_sysv_abi_push_param): Likewise.
12312         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12313         (ppc64_sysv_abi_return_value_base): New function.
12314         (ppc64_sysv_abi_return_value): Refactor to use it.
12315
12316 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12317
12318         * NEWS: Document new target powerpc64le-*-linux*.
12319
12320 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12321
12322         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12323         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12324         core dumps.
12325         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12326         register set used in ELF core dumps.  Add floating-point register set.
12327
12328 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12329
12330         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12331         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12332         penultimate entry from number representing the PC register
12333         to symbolic constant representing the MDR register.  Add
12334         constant for the PC register to the end of the table.
12335
12336 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12337
12338         * bsd-kvm.c: Include <sys/param.h>
12339
12340 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12341
12342         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12343
12344 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12345
12346         * ada-lang.h (clear_ada_sym_cache): Delete.
12347
12348 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12349
12350         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12351
12352 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12353
12354         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12355           the sigreturn register save area only if the syscall is
12356           sigreturn.
12357
12358 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12359
12360         * valops.c (value_slice): Minor reformatting.
12361
12362 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12363
12364         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12365
12366 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12367
12368         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12369         New static globals.
12370         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12371         (ada_ignore_descriptive_types_p): New static global.
12372         (find_parallel_type_by_descriptive_type): Return immediately
12373         if ada_ignore_descriptive_types_p is set.
12374         (_initialize_ada_language): Register new commands "maintenance
12375         set ada", "maintenance show ada", "maintenance set ada
12376         ignore-descriptive-types" and "maintenance show ada
12377         ignore-descriptive-types".
12378         * NEWS: Add entry for new "maint ada set/show
12379         ignore-descriptive-types" commands.
12380
12381 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12382
12383         * record-btrace.c (record_btrace_close): Call btrace_teardown
12384         for all threads.
12385
12386 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12387
12388         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12389         "ui-out.h".
12390
12391 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12392
12393         * ada-typeprint (type_is_full_subrange_of_target_type):
12394         New function.
12395         (print_range): Add parameter bounds_prefered_p.  If not set,
12396         try printing range types using the name of their base type.
12397         (print_range_type): Add parameter bounds_prefered_p.
12398         Use it in call to print_range.
12399         (print_array_type, ada_print_type): Update calls to print_range
12400         and print_range_type.
12401
12402 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12403
12404         * ada-typeprint.c (print_array_type, print_choices, print_range)
12405         (print_range_bound, print_dynamic_range_bound, print_range_type):
12406         Remove declaration.
12407
12408 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12409
12410         * ada-typeprint.c (print_range): Add missing empty line
12411         after local declaration.
12412
12413 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12414
12415         * ada-valprint.c (print_optional_low_bound): Get index_type's
12416         target type for as long as it is a TYPE_CODE_RANGE.
12417
12418 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12419
12420         * procfs.c (procfs_make_note_section): Remove assertion and
12421         associated comment.
12422
12423 2014-01-24  Yao Qi  <yao@codesourcery.com>
12424
12425         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12426         * corelow.c (get_core_siginfo): Likewise.
12427
12428 2014-01-24  Yao Qi  <yao@codesourcery.com>
12429
12430         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12431         ULONGEST.  Don't check 'len' is negative.
12432         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12433
12434 2014-01-23  Tom Tromey  <tromey@redhat.com>
12435
12436         PR python/16485:
12437         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12438         Handle exception from frame.block.
12439         (FrameVars.fetch_frame_locals): Likewise.
12440
12441 2014-01-23  Tom Tromey  <tromey@redhat.com>
12442
12443         PR python/16487:
12444         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12445         on a NULL pointer.  Move "goto error" to correct place.
12446
12447 2014-01-23  Tom Tromey  <tromey@redhat.com>
12448
12449         PR python/16491:
12450         * python/py-framefilter.c (apply_frame_filter): Call
12451         ensure_python_env after computing gdbarch.
12452
12453 2014-01-23  Yao Qi  <yao@codesourcery.com>
12454
12455         * target.c (raw_memory_xfer_partial): Change argument type
12456         from void * to gdb_byte *.
12457         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12458
12459 2014-01-22  Doug Evans  <dje@google.com>
12460
12461         New gdbserver option --debug-format=timestamp.
12462         * NEWS: Mention it.
12463
12464 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12465
12466         * syscalls/s390x-linux.xml: New file.
12467         * syscalls/s390-linux.xml: New file.
12468         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12469         (XML_SYSCALL_FILENAME_S390X): Likewise.
12470         (op_svc): New enum value for SVC opcode.
12471         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12472         (s390_linux_get_syscall_number): New function.
12473         (s390_gdbarch_init): Register '*get_syscall_number' and the
12474         syscall xml file name.
12475         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12476         "s390-linux.xml" and "s390x-linux.xml".
12477         * NEWS: Announce new feature.
12478
12479 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12480
12481         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12482
12483 2014-01-22  Pedro Alves  <palves@redhat.com>
12484
12485         * xtensa-config.c: Include defs.h.
12486
12487 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12488
12489         * common/common-utils.h: Add "ARI:" comment beside __func__
12490         reference.
12491
12492 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12493
12494         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12495         documentation a bit.
12496
12497 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12498
12499         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12500         * configure: Regenerate.
12501         * aclocal.m4: Regenerate.
12502         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12503         New substituted variables.
12504         (install-strip): New target.
12505         (INSTALL_SCRIPT): New substituted variable.
12506         (FLAGS_TO_PASS): Add it.
12507         (install-only): Use $(INSTALL_SCRIPT) rather than
12508         $(INSTALL_PROGRAM) for gcore.
12509
12510 2014-01-20  Tom Tromey  <tromey@redhat.com>
12511
12512         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12513         together.
12514
12515 2014-01-20  Tom Tromey  <tromey@redhat.com>
12516
12517         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12518         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12519         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12520         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12521         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12522         (struct cmd_list_element) <flags>: Remove.
12523         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12524         doc_allocated>: New fields.
12525         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12526         bitfields.
12527         * maint.c (maintenance_do_deprecate): Update.
12528         * top.c (execute_command): Update.
12529
12530 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12531
12532         * xtensa-linux-nat.c: Include asm/ptrace.h.
12533
12534 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12535
12536         * Makefile.in (SFILES): Add d-support.c.
12537         (COMMON_OBS): Add d-support.o.
12538         * d-lang.h (d_parse_symbol): Add comment, now defined in
12539         d-support.c.
12540         * d-lang.c (parse_call_convention)
12541         (parse_attributes, parse_function_types)
12542         (parse_function_args, parse_type, parse_identifier)
12543         (call_convention_p, d_parse_symbol): Move functions to ...
12544         * d-support.c: ... New file.
12545
12546 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12547
12548         * d-lang.h (d_parse_symbol): Add declaration.
12549         * d-lang.c (extract_identifiers)
12550         (extract_type_info): Remove functions.
12551         (parse_call_convention, parse_attributes)
12552         (parse_function_types, parse_function_args)
12553         (parse_type, parse_identifier, call_convention_p)
12554         (d_parse_symbol): New functions.
12555         (d_demangle): Use d_parse_symbol to demangle D symbols.
12556
12557 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12558
12559         * d-lang.h (struct builtin_d_type): New data type.
12560         (builtin_d_type): Add declaration.
12561         * d-lang.c (d_language_arch_info, build_d_types)
12562         (builtin_d_type): New functions.
12563         (enum d_primitive_types): New data type.
12564         (d_language_defn): Change c_language_arch_info to
12565         d_language_arch_info.
12566         (d_type_data): New static variable.
12567         (_initialize_d_language): Initialize d_type_data.
12568
12569 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12570
12571         * d-lang.h (d_main_name): Add declaration.
12572         * d-lang.c (d_main_name): New function.
12573         * symtab.c (find_main_name): Add call to d_main_name.
12574
12575 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12576
12577         * d-lang.c (d_language_defn): Change macro_expansion_c to
12578         macro_expansion_no.
12579
12580 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12581
12582         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12583
12584 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12585
12586         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12587         gdb_exception" declaration.
12588         * remote.c (getpkt_or_notif_sane): Likewise.
12589
12590 2014-01-17  Doug Evans  <dje@google.com>
12591
12592         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12593         function, contents of dirnames_to_char_ptr_vec_append moved here.
12594         (delim_string_to_char_ptr_vec): New function.
12595         (dirnames_to_char_ptr_vec_append): Rewrite.
12596         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12597
12598 2014-01-17  Doug Evans  <dje@google.com>
12599
12600         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12601         and moved here ...
12602         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12603         #include "common-utils.h".
12604         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12605         * common/vec.h (VEC_ASSERT_PASS): Update.
12606         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12607         (MACH_CHECK_ERROR): Update.
12608
12609 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12610
12611         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12612         comments.
12613         * gdbarch.h: Regenerate.
12614
12615 2014-01-16  Tom Tromey  <tromey@redhat.com>
12616
12617         * value.c (struct value) <regnum>: Move earlier.
12618
12619 2014-01-16  Tom Tromey  <tromey@redhat.com>
12620
12621         * remote.c (extended_remote_create_inferior): Rename from
12622         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12623         old implementation.
12624
12625 2014-01-16  Pedro Alves  <palves@redhat.com>
12626
12627         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12628         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12629         the backchain.
12630
12631 2014-01-16  Doug Evans  <dje@google.com>
12632
12633         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12634
12635 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12636
12637         * btrace.h (btrace_thread_flag): New.
12638         (struct btrace_thread_info) <flags>: New.
12639         * record-btrace.c (record_btrace_resume_thread)
12640         (record_btrace_find_thread_to_move, btrace_step_no_history)
12641         (btrace_step_stopped, record_btrace_start_replaying)
12642         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12643         (record_btrace_find_resume_thread): New.
12644         (record_btrace_resume, record_btrace_wait): Extend.
12645         (record_btrace_can_execute_reverse): New.
12646         (record_btrace_open): Fail in non-stop mode.
12647         (record_btrace_set_replay): Split into this, ...
12648         (record_btrace_stop_replaying): ... this, ...
12649         (record_btrace_clear_histories): ... and this.
12650         (init_record_btrace_ops): Init to_can_execute_reverse.
12651         * NEWS: Announce it.
12652
12653 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12654
12655         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12656         (forward_target_decr_pc_after_break)
12657         (target_decr_pc_after_break): New.
12658         * target.c (forward_target_decr_pc_after_break)
12659         (target_decr_pc_after_break): New.
12660         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12661         instead of gdbarch_decr_pc_after_break.
12662         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12663         instead of gdbarch_decr_pc_after_break.
12664         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12665         instead of gdbarch_decr_pc_after_break.
12666         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12667         instead of gdbarch_decr_pc_after_break.
12668         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12669         instead of gdbarch_decr_pc_after_break.
12670         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12671         instead of gdbarch_decr_pc_after_break.
12672
12673 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12674
12675         * btrace.c: Include regcache.h.
12676         (btrace_add_pc): New.
12677         (btrace_enable): Call btrace_add_pc.
12678         (btrace_is_empty): New.
12679         * btrace.h (btrace_is_empty): New.
12680         * record-btrace.c (require_btrace, record_btrace_info): Call
12681         btrace_is_empty.
12682
12683 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12684
12685         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12686         Support delta reads.
12687         (linux_disable_btrace): Change return type.
12688         * common/linux-btrace.h (linux_read_btrace): Change parameters
12689         and return type to allow error reporting.  Update users.
12690         (linux_disable_btrace): Change return type.  Update users.
12691         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12692         New.
12693         (btrace_error): New.
12694         (btrace_block) <begin>: Comment on BEGIN == 0.
12695         * btrace.c (btrace_compute_ftrace): Start from the end of
12696         the current trace.
12697         (btrace_stitch_trace, btrace_clear_history): New.
12698         (btrace_fetch): Read delta trace, return if replaying.
12699         (btrace_clear): Move clear history code to btrace_clear_history.
12700         (parse_xml_btrace): Throw an error if parsing failed.
12701         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12702         and return type to allow error reporting.
12703         (target_read_btrace): Change parameters and return type to allow
12704         error reporting.
12705         * target.c (target_read_btrace): Update.
12706         * remote.c (remote_read_btrace): Support delta reads.  Pass
12707         errors on.
12708         * NEWS: Announce it.
12709
12710 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12711
12712         * record.h (record_btrace_frame_unwind)
12713         (record_btrace_tailcall_frame_unwind): New declarations.
12714         * dwarf2-frame: Include record.h
12715         (dwarf2_frame_cfa): Throw an error for btrace frames.
12716         * record-btrace.c: Include hashtab.h.
12717         (btrace_get_bfun_name): New.
12718         (btrace_call_history): Call btrace_get_bfun_name.
12719         (struct btrace_frame_cache): New.
12720         (bfcache): New.
12721         (bfcache_hash, bfcache_eq, bfcache_new): New.
12722         (btrace_get_frame_function): New.
12723         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12724         (record_btrace_frame_this_id): Compute own id.
12725         (record_btrace_frame_prev_register): Provide PC, throw_error
12726         for all other registers.
12727         (record_btrace_frame_sniffer): Detect btrace frames.
12728         (record_btrace_tailcall_frame_sniffer): New.
12729         (record_btrace_frame_dealloc_cache): New.
12730         (record_btrace_frame_unwind): Add new functions.
12731         (record_btrace_tailcall_frame_unwind): New.
12732         (_initialize_record_btrace): Allocate cache.
12733         * btrace.c (btrace_clear): Call reinit_frame_cache.
12734         * NEWS: Announce it.
12735
12736 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12737
12738         * record-btrace.c (record_btrace_set_replay)
12739         (record_btrace_goto_begin, record_btrace_goto_end)
12740         (record_btrace_goto): New.
12741         (init_record_btrace_ops): Initialize them.
12742         * NEWS: Announce it.
12743
12744 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12745
12746         * record-btrace.c (record_btrace_find_new_threads)
12747         (record_btrace_thread_alive): New.
12748         (init_record_btrace_ops): Initialize to_find_new_threads and
12749         to_thread_alive.
12750
12751 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12752
12753         * record-btrace.c (record_btrace_resume): New.
12754         (record_btrace_wait): New.
12755         (init_record_btrace_ops): Initialize to_wait and to_resume.
12756
12757 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12758
12759         * record-btrace.c (record_btrace_xfer_partial)
12760         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12761         (record_btrace_allow_memory_access): New.
12762         (init_record_btrace_ops): Initialize new methods.
12763         * target.c (raw_memory_xfer_partial): Bail out if target reports
12764         that this memory is not available.
12765
12766 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12767
12768         * target.h (target_ops) <to_insert_breakpoint>
12769         <to_remove_breakpoint>: Add target_ops parameter.
12770         (forward_target_insert_breakpoint): New.
12771         (forward_target_remove_breakpoint): New.
12772         (memory_remove_breakpoint, memory_insert_breakpoint):
12773         Add target_ops parameter.
12774         * target.c (target_insert_breakpoint): Split into this and ...
12775         (forward_target_insert_breakpoint): ... this.
12776         (target_remove_breakpoint): Split into this and ...
12777         (forward_target_remove_breakpoint): ... this.
12778         (debug_to_insert_breakpoint): Add target_ops parameter.
12779         Call forward_target_insert_breakpoint.
12780         (debug_to_remove_breakpoint): Add target_ops parameter.
12781         Call forward_target_remove_breakpoint.
12782         (update_current_target): Do not inherit or default to_insert_breakpoint
12783         and to_remove_breakpoint.
12784         * corelow.c (ignore): Add target_ops parameter.
12785         * exec.c (ignore): Add target_ops parameter.
12786         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12787         Add target_ops parameter.
12788         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12789         Add target_ops parameter.
12790         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12791         Add target_ops parameter.
12792         * record-full.c (record_full_beneath_to_insert_breakpoint)
12793         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12794         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12795         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12796         (record_full_core_remove_breakpoint): Add target_ops parameter.
12797         Update users.
12798         (record_full_beneath_to_insert_breakpoint_ops)
12799         (record_full_beneath_to_remove_breakpoint_ops)
12800         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12801         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12802         tmp_to_remove_breakpoint_ops,
12803         record_full_beneath_to_insert_breakpoint_ops, and
12804         record_full_beneath_to_remove_breakpoint_ops.
12805         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12806         (m32r_remove_breakpoint): Add target_ops parameter.
12807         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12808         Add target_ops parameter.
12809         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12810         Add target_ops parameter.
12811
12812 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12813             Markus Metzger  <markus.t.metzger@intel.com>
12814
12815         * record-btrace.c: Include frame-unwind.h.
12816         (record_btrace_frame_unwind_stop_reason)
12817         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12818         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12819         New.
12820         (init_record_btrace_ops): Install it.
12821
12822 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12823
12824         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12825         get_prev_frame_1.
12826
12827 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12828
12829         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12830         earlier.
12831
12832 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12833
12834         * frame-unwind.c: Include target.h.
12835         (frame_unwind_try_unwinder): New function with code from ...
12836         (frame_unwind_find_by_frame): ... here.  New variable
12837         unwinder_from_target, call also target_get_unwinder)
12838         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12839         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12840         * target.h (struct target_ops): New fields to_get_unwinder and
12841         to_get_tailcall_unwinder.
12842         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12843
12844 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12845
12846         * record-btrace.c (record_btrace_fetch_registers)
12847         (record_btrace_store_registers)
12848         (record_btrace_to_prepare_to_store): New.
12849         (init_record_btrace_ops): Add the above.
12850
12851 2014-01-16  Tom Tromey  <tromey@redhat.com>
12852
12853         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12854         * target.h (struct target_ops) <to_prepare_to_store>: Add
12855         argument.
12856         (target_prepare_to_store): Add argument.
12857         * target.c (debug_to_prepare_to_store): Add argument.
12858         (update_current_target): Update.
12859         * remote.c (remote_prepare_to_store): Add 'self' argument.
12860         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12861         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12862         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12863         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12864         argument.
12865         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12866         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12867         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12868         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12869         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12870
12871 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12872
12873         * btrace.h (replay) <replay>: New.
12874         (btrace_is_replaying): New.
12875         * btrace.c (btrace_clear): Free replay iterator.
12876         (btrace_is_replaying): New.
12877         * record-btrace.c (record_btrace_is_replaying): New.
12878         (record_btrace_info): Print insn number if replaying.
12879         (record_btrace_insn_history): Start at replay position.
12880         (record_btrace_call_history): Start at replay position.
12881         (init_record_btrace_ops): Init to_record_is_replaying.
12882
12883 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12884
12885         * record-btrace.c (record_btrace_insn_history_range): Include
12886         end.
12887         (record_btrace_insn_history_from): Adjust range.
12888         (record_btrace_call_history_range): Include
12889         end.
12890         (record_btrace_call_history_from): Adjust range.
12891         * NEWS: Announce changes.
12892
12893 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12894
12895         * record.h (enum record_print_flag)
12896         <record_print_indent_calls>: New.
12897         * record.c (get_call_history_modifiers): Recognize /c modifier.
12898         (_initialize_record): Document /c modifier.
12899         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12900         Reorder fields.  Optionally indent the function name.  Update
12901         all users.
12902         * NEWS: Announce changes.
12903
12904 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12905
12906         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12907
12908 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12909
12910         * btrace.c (ftrace_new_function): Start counting at one.
12911         * record-btrace.c (record_btrace_info): Adjust number of calls
12912         and insns.
12913         * NEWS: Announce it.
12914
12915 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12916
12917         * record-btrace.c (btrace_call_history_insn_range): Print
12918         insn range as [begin, end].
12919
12920 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12921
12922         * btrace.h (struct btrace_func_link): New.
12923         (enum btrace_function_flag): New.
12924         (struct btrace_inst): Rename to ...
12925         (struct btrace_insn): ...this. Update all users.
12926         (struct btrace_func) <ibegin, iend>: Remove.
12927         (struct btrace_func_link): New.
12928         (struct btrace_func): Rename to ...
12929         (struct btrace_function): ...this. Update all users.
12930         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12931         (number, level, flags>: New.
12932         (struct btrace_insn_iterator): Rename to ...
12933         (struct btrace_insn_history): ...this.
12934         Update all users.
12935         (struct btrace_insn_iterator, btrace_call_iterator): New.
12936         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12937         (struct btrace_target_info) <begin, end, level>
12938         <insn_history, call_history>: New.
12939         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12940         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12941         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12942         (btrace_call_number, btrace_call_begin, btrace_call_end)
12943         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12944         (btrace_find_function_by_number, btrace_set_insn_history)
12945         (btrace_set_call_history): New.
12946         * btrace.c (btrace_init_insn_iterator)
12947         (btrace_init_func_iterator, compute_itrace): Remove.
12948         (ftrace_print_function_name, ftrace_print_filename)
12949         (ftrace_skip_file): Change
12950         parameter to const.
12951         (ftrace_init_func): Remove.
12952         (ftrace_debug): Use new btrace_function fields.
12953         (ftrace_function_switched): Also consider gaining and
12954         losing symbol information).
12955         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12956         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12957         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12958         New.
12959         (ftrace_new_function): Move. Remove debug print.
12960         (ftrace_update_lines, ftrace_update_insns): New.
12961         (ftrace_update_function): Check for call, ret, and jump.
12962         (compute_ftrace): Renamed to ...
12963         (btrace_compute_ftrace): ...this. Rewritten to compute call
12964         stack.
12965         (btrace_fetch, btrace_clear): Updated.
12966         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12967         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12968         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12969         (btrace_call_number, btrace_call_begin, btrace_call_end)
12970         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12971         (btrace_find_function_by_number, btrace_set_insn_history)
12972         (btrace_set_call_history): New.
12973         * record-btrace.c (require_btrace): Use new btrace thread
12974         info fields.
12975         (record_btrace_info, btrace_insn_history)
12976         (record_btrace_insn_history, record_btrace_insn_history_range):
12977         Use new btrace thread info fields and new iterator.
12978         (btrace_func_history_src_line): Rename to ...
12979         (btrace_call_history_src_line): ...this. Use new btrace
12980         thread info fields.
12981         (btrace_func_history): Rename to ...
12982         (btrace_call_history): ...this. Use new btrace thread info
12983         fields and new iterator.
12984         (record_btrace_call_history, record_btrace_call_history_range):
12985         Use new btrace thread info fields and new iterator.
12986
12987 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12988
12989         * frame.h (frame_id_build_unavailable_stack_special): New.
12990         * frame.c (frame_id_build_unavailable_stack_special): New.
12991
12992 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12993
12994         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12995         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12996         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12997         to gdbarch.
12998         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12999         (i386_insn_is_jump, i386_jmp_p): New.
13000         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13001         insn_is_jump to gdbarch.
13002         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13003         * gdbarch.h: Regenerated.
13004         * gdbarch.c: Regenerated.
13005         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13006         (default_insn_is_jump): New.
13007         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13008         (default_insn_is_jump): New.
13009
13010 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13011
13012         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13013         Change to ...
13014         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13015         (btrace_read_type) <btrace_read_new>: Change to ...
13016         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13017
13018 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13019
13020         * common/linux-btrace.c (linux_read_btrace): Free trace from
13021         previous iteration.
13022
13023 2014-01-15  Doug Evans  <dje@google.com>
13024
13025         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13026         uint32_t.
13027
13028 2014-01-15  Tom Tromey  <tromey@redhat.com>
13029
13030         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13031         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13032         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13033         (set_objfile_main_name): New function.
13034         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13035         language_of_main>: New fields.
13036         (set_objfile_main_name): Declare.
13037         * symtab.c (find_main_name): Loop over objfiles to find the main
13038         name and language.
13039         (set_main_name): Now static.
13040         (get_main_info): Add comment.
13041         * symtab.h (set_main_name): Don't declare.
13042
13043 2014-01-15  Tom Tromey  <tromey@redhat.com>
13044
13045         * symtab.c (main_progspace_key): New global.
13046         (struct main_info): New.
13047         (name_of_main, language_of_main): Remove.
13048         (get_main_info, main_info_cleanup): New function.
13049         (set_main_name, main_name, main_language): Use get_main_info.
13050         (_initialize_symtab): Initialize main_progspace_key.
13051
13052 2014-01-15  Tom Tromey  <tromey@redhat.com>
13053
13054         * dbxread.c (process_one_symbol): Update.
13055         * dwarf2read.c (read_partial_die): Update.
13056         * symfile.c (set_initial_language): Call main_language.
13057         * symtab.c (language_of_main): Now static.
13058         (set_main_name): Add 'lang' parameter.
13059         (find_main_name): Update.
13060         (main_language): New function.
13061         (symtab_observer_executable_changed): Update.
13062         * symtab.h (set_main_name): Update.
13063         (language_of_main): Remove.
13064         (main_language): Declare.
13065
13066 2014-01-15  Tom Tromey  <tromey@redhat.com>
13067
13068         * symfile.c (init_entry_point_info): Use new "initialized" field.
13069         Update.
13070         * objfiles.h (struct entry_point) <initialized>: New field.
13071         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13072         (struct objfile) <ei>: ...here.  Remove.
13073         * objfiles.c (entry_point_address_query): Update.
13074
13075 2014-01-15  Tom Tromey  <tromey@redhat.com>
13076
13077         * objfiles.c (entry_point_address_query): Relocate entry point
13078         address.
13079         (objfile_relocate1): Do not relocate entry point address.
13080         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13081         <the_bfd_section_index>: New field.
13082         * symfile.c (init_entry_point_info): Find the entry point's
13083         section.
13084
13085 2014-01-15  Tom Tromey  <tromey@redhat.com>
13086
13087         * solib-frv.c (enable_break): Use entry_point_address_query.
13088
13089 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13090
13091         * NEWS: Add note on improved process record-replay on
13092         arm*-linux* targets.
13093
13094 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13095
13096         * arm-tdep.c (enum arm_record_result): New enum.
13097         (arm_record_unsupported_insn): New function.
13098         (arm_record_coproc_data_proc): Removed.
13099         (thumb2_record_ld_st_multiple): New function.
13100         (thumb2_record_ld_st_dual_ex_tbb): New function.
13101         (thumb2_record_data_proc_sreg_mimm): New function.
13102         (thumb2_record_ps_dest_generic): New function.
13103         (thumb2_record_branch_misc_cntrl): New function.
13104         (thumb2_record_str_single_data): New function.
13105         (thumb2_record_ld_mem_hints): New function.
13106         (thumb2_record_ld_word): New function.
13107         (thumb2_record_lmul_lmla_div): New function.
13108         (thumb2_record_decode_insn_handler): New function.
13109         (decode_insn): Add thumb32 instruction handlers.
13110
13111 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13112
13113         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13114         (struct arm_linux_record_tdep): Declare.
13115         (arm_canonicalize_syscall): New function.
13116         (arm_all_but_pc_registers_record): New function.
13117         (arm_linux_syscall_record): New function.
13118         (arm_linux_init_abi): Add syscall recording constructs.
13119         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13120         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13121         decoding.
13122         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13123         <arm_syscall_record>: New field.
13124         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13125         gdb_target_obs.
13126
13127 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13128
13129         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13130         register for push instruction recording.
13131
13132 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13133
13134         * arm-tdep.c (thumb_record_misc): Update to correct logical
13135         error while recording ldm, ldmia and pop instructions.
13136
13137 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13138
13139         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13140
13141 2014-01-15  Pedro Alves  <palves@redhat.com>
13142
13143         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13144         (go32_resume, go32_fetch_registers, store_register)
13145         (go32_store_registers, go32_prepare_to_store)
13146         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13147         (go32_create_inferior, go32_can_run, go32_terminal_init)
13148         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13149         declarations.
13150
13151 2014-01-15  Tom Tromey  <tromey@redhat.com>
13152
13153         * target.h (async_callback_ftype): New typedef.
13154         (struct target_ops) <to_async>: Use it.
13155
13156 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13157
13158         * python/py-value.c (get_field_type): Remove unnecessary curly
13159         braces for single-statement if block.
13160
13161 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13162
13163         * python/py-type.c (convert_field): Add missing empty line
13164         after declarations.
13165
13166 2014-01-14  Doug Evans  <dje@google.com>
13167
13168         * symfile.h (expand_symtabs_matching): Renamed from
13169         expand_partial_symbol_names.  Update prototype.
13170         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13171         * symfile.c (expand_symtabs_matching): Renamed from
13172         expand_partial_symbol_names.  New args file_matcher, kind.
13173         Rename arg fun to symbol_matcher.
13174         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13175         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13176         ada_expand_partial_symbol_name.
13177         (ada_make_symbol_completion_list): Update to call
13178         expand_symtabs_matching.
13179         (ada_add_global_exceptions): Call expand_symtabs_matching.
13180         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13181         call map_symbol_filenames.
13182         * symtab.c (sources_info): Update to call map_symbol_filenames.
13183         (search_symbols): Call expand_symtabs_matching.
13184         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13185         (default_make_symbol_completion_list_break_on): Update to call
13186         expand_symtabs_matching.
13187         (make_source_files_completion_list): Update to call
13188         map_symbol_filenames.
13189
13190 2014-01-14  Doug Evans  <dje@google.com>
13191
13192         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13193         (expand_symtabs_symbol_matcher_ftype): New typedef.
13194         (quick_symbol_functions.expand_symtabs_matching): Update to use.
13195         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13196         * symfile.c (expand_partial_symbol_names): Update to use
13197         expand_symtabs_symbol_matcher_ftype.
13198         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13199         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13200         Arg name_matcher renamed to symbol_matcher.
13201         * psymtab.c (recursively_search_psymtabs): Update to use
13202         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
13203         sym_matcher.
13204         (expand_symtabs_matching_via_partial): Update to use
13205         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13206         Arg name_matcher renamed to symbol_matcher.
13207
13208 2014-01-14  Doug Evans  <dje@google.com>
13209
13210         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13211         (map_partial_symbol_filenames): Ditto.
13212         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13213         (map_partial_symbol_filenames): Ditto.
13214         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13215         (map_partial_symbol_filenames): Ditto.
13216         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13217         (map_partial_symbol_filenames): Ditto.
13218         * symtab.c: Delete #include "psymtab.h".
13219
13220 2014-01-14  Pedro Alves  <palves@redhat.com>
13221             Tom Tromey  <tromey@redhat.com>
13222
13223         * infrun.c (use_displaced_stepping): Use find_record_target
13224         instead of RECORD_IS_USED.
13225         (adjust_pc_after_break): Use record_full_is_used instead of
13226         RECORD_IS_USED.
13227         * record-btrace.c (record_btrace_open): Call record_preopen
13228         instead of checking RECORD_IS_USED.
13229         * record-full.c (record_full_shortname)
13230         (record_full_core_shortname): New globals.
13231         (record_full_is_used): New function.
13232         (find_full_open): Call record_preopen instead of checking
13233         RECORD_IS_USED.
13234         (init_record_full_ops): Set the target's shortname to
13235         record_full_shortname.
13236         (init_record_full_core_ops): Set the target's shortname to
13237         record_full_core_shortname.
13238         * record-full.h (record_full_is_used): Declare.
13239         * record.c (find_record_target): Make extern.
13240         (record_preopen): New function.
13241         * record.h (RECORD_IS_USED): Delete macro.
13242         (find_record_target, record_preopen): Declare functions.
13243
13244 2014-01-14  Yao Qi  <yao@codesourcery.com>
13245
13246         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13247         'len''s type to ULONGEST.
13248         (core_xfer_shared_libraries_aix): Likewise.
13249         * gdbarch.c, gdbarch.h: Regenerated.
13250         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13251         Change type of 'len' to ULONGEST.
13252         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13253         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13254
13255 2014-01-14  Yao Qi  <yao@codesourcery.com>
13256
13257         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13258         type of 'len' to ULONGEST.
13259         (linux_xfer_osdata_processgroups): Likewise.
13260         (linux_xfer_osdata_threads): Likewise.
13261         (linux_xfer_osdata_fds): Likewise.
13262         (linux_xfer_osdata_isockets): Likewise.
13263         (linux_xfer_osdata_shm): Likewise.
13264         (linux_xfer_osdata_sem): Likewise.
13265         (linux_xfer_osdata_msg): Likewise.
13266         (linux_common_xfer_osdata): Likewise.
13267         (struct osdata_type) <getter>: Likewise.
13268         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13269         the declaration.
13270
13271 2014-01-14  Yao Qi  <yao@codesourcery.com>
13272
13273         * target.h (target_xfer_partial_ftype): Update.
13274         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13275         ULONGEST.
13276         * aix-thread.c (aix_thread_xfer_partial): Change type of
13277         argument 'len' to ULONGEST.
13278         * auxv.c (procfs_xfer_auxv): Likewise.
13279         (ld_so_xfer_auxv): Likewise.
13280         (memory_xfer_auxv): Likewise.
13281         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13282         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13283         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13284         * corelow.c (core_xfer_partial): Likewise.
13285         * ctf.c (ctf_xfer_partial): Likewise.
13286         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13287         '%u'.
13288         (darwin_read_dyld_info): Likewise.
13289         (darwin_xfer_partial): Likewise.
13290         * exec.c (section_table_xfer_memory_partial): Likewise.
13291         (exec_xfer_partial): Likewise.
13292         * exec.h (section_table_xfer_memory_partial): Update
13293         declaration.
13294         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13295         instead of plongest.
13296         (gnu_xfer_partial): Likewise.
13297         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13298         (ia64_hpux_xfer_solib_got): Likewise.
13299         (ia64_hpux_xfer_partial): Likewise.
13300         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13301         * inf-ptrace.c (inf_ptrace_xfer_partial):
13302         * inf-ttrace.c (inf_ttrace_xfer_partial):
13303         * linux-nat.c (linux_xfer_siginfo): Likewise.
13304         (linux_nat_xfer_partial): Likewise.
13305         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13306         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13307         * monitor.c (monitor_xfer_memory): Likewise.
13308         (monitor_xfer_partial): Likewise.
13309         * procfs.c (procfs_xfer_partial): Likewise.
13310         * record-full.c (record_full_xfer_partial): Likewise.
13311         (record_full_core_xfer_partial): Likewise.
13312         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13313         instead of plongest.
13314         (gdbsim_xfer_partial): Likewise.
13315         * remote.c (remote_xfer_partial): Likewise.
13316         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13317         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13318         declaration.
13319         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13320         (rs6000_xfer_shared_libraries): Likewise.
13321         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13322         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13323         (sparc_xfer_partial): Likewise.
13324         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13325         (spu_xfer_partial): Likewise.
13326         * spu-multiarch.c (spu_xfer_partial): Likewise.
13327         * target.c (target_read_live_memory): Likewise.
13328         (memory_xfer_live_readonly_partial): Likewise.
13329         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13330         (target_xfer_partial, default_xfer_partial): Likewise.
13331         (current_xfer_partial): Likewise.
13332         * tracepoint.c (tfile_xfer_partial): Likewise.
13333         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13334         pulongest instead of plongest.
13335         (windows_xfer_partial): Likewise.
13336         (windows_xfer_shared_libraries): Likewise.
13337
13338 2014-01-14  Yao Qi  <yao@codesourcery.com>
13339
13340         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13341         target_xfer_partial_ftype.
13342
13343 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13344
13345         PR python/15464
13346         PR python/16113
13347         * valops.c (value_struct_elt_bitpos): New function
13348         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13349         object to 'None' if the field name is an empty string ("").
13350         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13351         attribute to look for a field when 'name' is 'None'.
13352         (get_field_type): New function
13353
13354 2014-01-13  Doug Evans  <dje@google.com>
13355
13356         PR symtab/16426
13357         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13358         (try_open_dwop_file): Ditto.
13359         * gdb_bfd.c: #include "vec.h".
13360         (bfdp): New typedef.
13361         (struct gdb_bfd_data): New member included_bfds.
13362         (gdb_bfd_unref): Unref all included bfds.
13363         (gdb_bfd_record_inclusion): New function.
13364         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13365
13366 2014-01-13  Tom Tromey  <tromey@redhat.com>
13367
13368         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13369
13370 2014-01-13  Tom Tromey  <tromey@redhat.com>
13371
13372         * defs.h (use_windows): Remove.
13373         * gdb.c (main): Update.
13374         * main.c (captured_main, gdb_main): Update.
13375         * main.h (struct captured_main_args) <use_windows>: Remove.
13376         * top.c (use_windows): Remove.
13377
13378 2014-01-13  Tom Tromey  <tromey@redhat.com>
13379
13380         * defs.h (deprecated_flush_hook): Remove.
13381
13382 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13383
13384         PR threads/16216
13385         * linux-thread-db.c (try_thread_db_load): Add parameter
13386         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13387         (try_thread_db_load_from_pdir_1): Move it there from here.
13388         (try_thread_db_load_from_sdir): Update caller.
13389         (try_thread_db_load_from_dir): Move it there from here.
13390
13391 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13392
13393         * regformats/regdat.sh: Always rewrite the register file.
13394
13395 2014-01-13  Pedro Alves  <palves@redhat.com>
13396
13397         * Makefile.in (CHECK_HEADERS): New variable.
13398         (check-headers:): New rule.
13399
13400 2014-01-13  Tom Tromey  <tromey@redhat.com>
13401
13402         * cli/cli-setshow.c (do_set_command): Update.
13403         * defs.h (deprecated_set_hook): Remove.
13404         * top.c (deprecated_set_hook): Remove.
13405
13406 2014-01-13  Pedro Alves  <palves@redhat.com>
13407
13408         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13409         the tracepoint if the PC is a pseudo-register.
13410
13411 2014-01-13  Tom Tromey  <tromey@redhat.com>
13412
13413         * defs.h (XCALLOC): Remove.
13414         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13415         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13416         * dwarf2loc.c (allocate_piece_closure): Likewise.
13417         * elfread.c (elf_symfile_segments): Likewise.
13418         (elf_symfile_segments): Likewise.
13419         * gdbtypes.c (copy_type_recursive): Likewise.
13420         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13421         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13422         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13423         XCALLOC.
13424         * mt-tdep.c (mt_gdbarch_init): Likewise.
13425         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13426         XCALLOC.
13427         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13428         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13429         * registry.c (registry_alloc_data): Likewise.
13430         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13431         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13432         * serial.c (serial_fdopen_ops): Likewise.
13433         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13434         XCALLOC.
13435         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13436         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13437         not XCALLOC.
13438
13439 2014-01-13  Tom Tromey  <tromey@redhat.com>
13440
13441         * defs.h (XMALLOC): Remove.
13442         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13443         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13444         * cli-out.c (struct ui_out *): Likewise.
13445         * cli/cli-dump.c (add_dump_command): Likewise.
13446         (add_dump_command): Likewise.
13447         * complaints.c (get_complaints): Likewise.
13448         (find_complaint): Likewise.
13449         * dwarf2-frame.c (execute_cfa_program): Likewise.
13450         * dwarf2read.c (abbrev_table_read_table): Likewise.
13451         * gdbarch.sh: Likewise.
13452         * gdbarch.c: Rebuild.
13453         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13454         * interps.c (interp_new): Likewise.
13455         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13456         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13457         * mi/mi-console.c (mi_console_file_new): Likewise.
13458         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13459         * mi/mi-out.c (mi_out_new): Likewise.
13460         * mi/mi-parse.c (mi_parse): Likewise.
13461         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13462         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13463         * observer.c (xalloc_observer_list_node): Likewise.
13464         * regcache.c (regcache_xmalloc_1): Likewise.
13465         * reggroups.c (reggroup_new): Likewise.
13466         (_initialize_reggroup): Likewise.
13467         * registry.c (register_data_with_cleanup): Likewise.
13468         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13469         * ser-base.c (serial_ttystate): Likewise.
13470         * ser-mingw.c (make_pipe_state): Likewise.
13471         * ser-pipe.c (pipe_open): Likewise.
13472         * serial.c (serial_open): Likewise.
13473         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13474         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13475         (tui_alloc_win_info): Likewise.
13476         (tui_add_content_elements): Likewise.
13477         * tui/tui-file.c (tui_file_new): Likewise.
13478         * tui/tui-out.c (tui_out_new): Likewise.
13479         * ui-file.c (mem_file_new): Likewise.
13480         * ui-out.c (push_level): Likewise.
13481         (make_cleanup_ui_out_end): Likewise.
13482         (append_header_to_list): Likewise.
13483         (ui_out_new): Likewise.
13484         * user-regs.c (user_reg_add_builtin): Likewise.
13485
13486 2014-01-13  Tom Tromey  <tromey@redhat.com>
13487
13488         * defs.h (XZALLOC): Remove.
13489         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13490         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13491         (get_ada_tasks_inferior_data): Likewise.
13492         * auto-load.c (get_auto_load_pspace_data): Likewise.
13493         * auxv.c (get_auxv_inferior_data): Likewise.
13494         * bfd-target.c (target_bfd_reopen): Likewise.
13495         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13496         (deprecated_insert_raw_breakpoint): Likewise.
13497         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13498         * corelow.c (core_open): Likewise.
13499         * darwin-nat.c (darwin_check_new_threads): Likewise.
13500         (darwin_attach_pid): Likewise.
13501         * dummy-frame.c (dummy_frame_push): Likewise.
13502         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13503         * dwarf2loc.c (allocate_piece_closure): Likewise.
13504         * elfread.c (elf_symfile_segments): Likewise.
13505         * eval.c (ptrmath_type_p): Likewise.
13506         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13507         * gdbtypes.c (alloc_type_arch): Likewise.
13508         (alloc_type_instance): Likewise.
13509         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13510         * inf-child.c (inf_child_can_use_agent): Likewise.
13511         * inflow.c (get_inflow_inferior_data): Likewise.
13512         * infrun.c (save_infcall_suspend_state): Likewise.
13513         * jit.c (jit_reader_load): Likewise.
13514         (get_jit_objfile_data): Likewise.
13515         (get_jit_program_space_data): Likewise.
13516         (jit_object_open_impl): Likewise.
13517         (jit_symtab_open_impl): Likewise.
13518         (jit_block_open_impl): Likewise.
13519         (jit_frame_sniffer): Likewise.
13520         * linux-fork.c (add_fork): Likewise.
13521         * maint.c (make_command_stats_cleanup): Likewise.
13522         * objfiles.c (get_objfile_pspace_data): Likewise.
13523         * opencl-lang.c (struct lval_closure): Likewise.
13524         * osdata.c (osdata_start_osdata): Likewise.
13525         * progspace.c (new_address_space): Likewise.
13526         (add_program_space): Likewise.
13527         * remote-sim.c (get_sim_inferior_data): Likewise.
13528         * sh-tdep.c (sh_gdbarch_init): Likewise.
13529         * skip.c (Ignore): Likewise.
13530         (skip_delete_command): Likewise.
13531         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13532         (library_list_start_library): Likewise.
13533         (solib_aix_current_sos): Likewise.
13534         * solib-darwin.c (get_darwin_info): Likewise.
13535         (darwin_current_sos): Likewise.
13536         * solib-dsbt.c (get_dsbt_info): Likewise.
13537         * solib-ia64-hpux.c (new_so_list): Likewise.
13538         (ia64_hpux_get_solib_linkage_addr): Likewise.
13539         * solib-spu.c (append_ocl_sos): Likewise.
13540         (spu_current_sos): Likewise.
13541         * solib-svr4.c (get_svr4_info): Likewise.
13542         (svr4_keep_data_in_core): Likewise.
13543         (library_list_start_library): Likewise.
13544         (svr4_default_sos): Likewise.
13545         (svr4_read_so_list): Likewise.
13546         * solib-target.c (library_list_start_library): Likewise.
13547         (solib_target_current_sos): Likewise.
13548         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13549         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13550         * symfile.c (default_symfile_segments): Likewise.
13551         * target-descriptions.c (tdesc_data_init): Likewise.
13552         (tdesc_create_reg): Likewise.
13553         (struct tdesc_type *): Likewise.
13554         (tdesc_create_vector): Likewise.
13555         (tdesc_set_struct_size): Likewise.
13556         (struct tdesc_type *): Likewise.
13557         (tdesc_free_feature): Likewise.
13558         (tdesc_create_feature): Likewise.
13559         * windows-nat.c (windows_add_thread): Likewise.
13560         (windows_make_so): Likewise.
13561         * xml-support.c (gdb_xml_body_text): Likewise.
13562         (gdb_xml_create_parser_and_cleanup): Likewise.
13563         (xml_process_xincludes): Likewise.
13564         * xml-syscall.c (allocate_syscalls_info): Likewise.
13565         (syscall_create_syscall_desc): Likewise.
13566
13567 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13568
13569         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13570         function, with code from i386_stap_parse_special_token.
13571         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13572         (i386_stap_parse_special_token): Move code to the two functions
13573         above; simplify it.
13574
13575 2014-01-09  Pedro Alves  <palves@redhat.com>
13576             Hui Zhu  <hui@codesourcery.com>
13577
13578         PR gdb/16101
13579         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13580         bp_err_string.  Don't mark the location shlib_disabled if the
13581         error thrown wasn't a generic or memory error.  Catch errors
13582         thrown while inserting breakpoints in overlayed code.  Output
13583         error message of software breakpoints.
13584         * remote.c (remote_insert_breakpoint): If this breakpoint has
13585         target-side commands but this stub doesn't support Z0 packets,
13586         throw NOT_SUPPORTED_ERROR error.
13587         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13588         * target.h (target_insert_breakpoint): Extend comment.
13589         (target_insert_hw_breakpoint): Add comment.
13590
13591 2014-01-08  Pedro Alves  <palves@redhat.com>
13592
13593         * remote.c (remote_add_thread): Add threads silently if starting
13594         up.
13595         (remote_notice_new_inferior): If in all-stop, and starting up,
13596         don't call notice_new_inferior.
13597         (get_current_thread): New function, factored out from ...
13598         (add_current_inferior_and_thread): ... this.  Adjust.
13599         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13600         found any thread, then select the remote's current thread as GDB's
13601         current thread too.
13602
13603 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13604
13605         * NEWS: Create a new section for the next release branch.
13606         Rename the section of the current branch, now that it has
13607         been cut.
13608
13609 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13610
13611         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13612         * version.in: Bump version to 7.7.50.DATE-cvs.
13613
13614 2014-01-08  Yao Qi  <yao@codesourcery.com>
13615
13616         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13617         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13618         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13619
13620 2014-01-08  Yao Qi  <yao@codesourcery.com>
13621
13622         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13623         return value of bfd_get_filename to symbol_file_add_from_bfd.
13624
13625 2014-01-08  Pierre Muller  <muller@sourceware.org>
13626
13627         Fix PR16201.
13628         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13629         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13630         to prim_record_mininal_symbol_and_info.
13631         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13632         in call to prim_record_minimal_symbol_and_info.
13633         (read_pe_exported_syms): Set index field of section_data.
13634
13635 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13636
13637         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13638         * features/aarch64.c: Regenerate.
13639
13640 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13641
13642         * target.c (return_null): Define.
13643         (update_current_target): Use it instead of return_zero for
13644         functions that return a pointer.
13645
13646 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13647
13648         * source.c (add_path): Fix check for duplicated paths in the previously
13649         included paths.
13650
13651 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13652
13653         * ada-lang.c: Remove duplicated include statements.
13654         * alphabsd-nat.c: Ditto.
13655         * amd64-darwin-tdep.c: Ditto.
13656         * amd64fbsd-nat.c: Ditto.
13657         * auto-load.c: Ditto.
13658         * ax-gdb.c: Ditto.
13659         * breakpoint.c: Ditto.
13660         * dbxread.c: Ditto.
13661         * fork-child.c: Ditto.
13662         * gdb_usleep.c: Ditto.
13663         * i386-darwin-tdep.c: Ditto.
13664         * i386fbsd-nat.c: Ditto.
13665         * infcmd.c: Ditto.
13666         * inferior.c: Ditto.
13667         * jv-lang.c: Ditto.
13668         * linux-nat.c: Ditto.
13669         * linux-tdep.c: Ditto.
13670         * m68kbsd-nat.c: Ditto.
13671         * m68klinux-nat.c: Ditto.
13672         * microblaze-tdep.c: Ditto.
13673         * mips-linux-tdep.c: Ditto.
13674         * mn10300-tdep.c: Ditto.
13675         * nto-tdep.c: Ditto.
13676         * opencl-lang.c: Ditto.
13677         * osdata.c: Ditto.
13678         * printcmd.c: Ditto.
13679         * regcache.c: Ditto.
13680         * remote-m32r-sdi.c: Ditto.
13681         * remote.c: Ditto.
13682         * symfile.c: Ditto.
13683         * symtab.c: Ditto.
13684         * tilegx-linux-nat.c: Ditto.
13685         * tilegx-tdep.c: Ditto.
13686         * tracepoint.c: Ditto.
13687         * valops.c: Ditto.
13688         * vaxbsd-nat.c: Ditto.
13689         * windows-nat.c: Ditto.
13690         * xtensa-tdep.c: Ditto.
13691
13692 2014-01-07  Yao Qi  <yao@codesourcery.com>
13693
13694         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13695
13696 2014-01-07  Yao Qi  <yao@codesourcery.com>
13697             Joel Brobecker  <brobecker@adacore.com>
13698
13699         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13700         (pdc_write_regs): Likewise.
13701         (fetch_regs_kernel_thread): Likewise.
13702         (store_regs_kernel_thread): Likewise.
13703
13704 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13705
13706         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13707         tagged type objects to their actual type.
13708
13709 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13710
13711         * ada-valprint.c (print_field_values): Add "language" parameter.
13712         Update calls to print_field_values and print_variant_part.
13713         Pass new parameter "language" in call to val_print instead
13714         of "current_language".  Replace call to ada_val_print by call
13715         to val_print.
13716         (print_variant_part): Add "language" parameter.
13717         (ada_val_print_struct_union): Update call to print_field_values.
13718
13719 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13720
13721         * ada-valprint.c (ui_memcpy): Delete.
13722         (ada_print_floating): Update documentation.  Add empty line
13723         between between function documentation and implementation.
13724         Delete variable "buffer".  Use ui_file_xstrdup in place of
13725         ui_file_put.  Minor adjustments following this change.
13726
13727 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13728
13729         * ada-valprint.c (ada_val_print_string): New function,
13730         extracted from ada_val_print_array.
13731         (ada_val_print_array): Replace extracted code by call
13732         to ada_val_print_string followed by a return.  Move
13733         "else" branch to the function's top block.
13734
13735 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13736
13737         * ada-valprint.c (ada_val_print_array): Move implementation
13738         down.  Rename parameter "offset" and "val" into "offset_aligned"
13739         and "original_value" respectively.  Add parameter "offset".
13740
13741 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13742
13743         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13744         re-organizing the code. Change the "???" message printed
13745         when target type is a TYPE_CODE_UNDEF into
13746         "<ref to undefined type>".
13747
13748 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13749
13750         * ada-valprint.c (print_record): Delete, implementation inlined...
13751         (ada_val_print_struct_union): ... here.  Remove call to
13752         ada_check_typedef in inlined implementation.
13753
13754 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13755
13756         * ada-valprint.c (ada_val_print_gnat_array): New function,
13757         extracted from ada_val_print_1;
13758         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13759         (ada_val_print_flt, ada_val_print_struct_union)
13760         (ada_val_print_ref): Likewise.
13761         (ada_val_print_1): Delete variables i and elttype.
13762         Replace extracted-out code by call to corresponding
13763         new functions.
13764
13765 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13766
13767         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13768
13769 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13770
13771         * ada-valprint.c (ada_val_print_1): Replace calls to
13772         ada_val_print_1 by calls to val_print.
13773
13774 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13775
13776         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13777         Update calls to self accordingly.  Replace calls to c_val_print
13778         by calls to val_print.
13779
13780 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13781
13782         * ada-valprint.c (print_record): Delete declaration.
13783         (adjust_type_signedness, ada_val_print_1): Likewise.
13784         (ada_val_print): Move function implementation down.
13785         (print_variant_part, print_field_values, print_record):
13786         Move function implementation up.
13787
13788 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13789
13790         * python/py-type.c (typy_get_name): New function.
13791         (type_object_getset): Add entry for attribute "name".
13792         * NEWS: Add entry mentioning this new attribute.
13793
13794 2014-01-07  Yao Qi  <yao@codesourcery.com>
13795
13796         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13797         statement.
13798
13799 2014-01-07  Yao Qi  <yao@codesourcery.com>
13800
13801         * gnu-nat.c (info_port_rights): Add qualifier const to
13802         argument args.
13803
13804 2014-01-07  Yao Qi  <yao@codesourcery.com>
13805
13806         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13807
13808 2014-01-07  Yao Qi  <yao@codesourcery.com>
13809
13810         * gnu-nat.c (make_inf) Update declaration.
13811         (make_inf): Make it static.
13812         (inf_set_traced): Likewise.
13813         (inf_port_to_thread, inf_task_died_status): Likewise.
13814
13815 2014-01-07  Yao Qi  <yao@codesourcery.com>
13816
13817         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13818
13819 2014-01-07  Yao Qi  <yao@codesourcery.com>
13820
13821         * gnu-nat.c (_initialize_gnu_nat): Declare.
13822
13823 2014-01-07  Yao Qi  <yao@codesourcery.com>
13824
13825         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13826         'enum bfd_endian'.
13827         (struct gdbarch_info) <byte_order>: Change type to
13828         'enum bfd_endian'.
13829         <byte_order_for_code>: Likewise.
13830         * gdbarch.c, gdbarch.h: Regenerated.
13831
13832 2014-01-06  Sasha Smundak  <asmundak@google.com>
13833
13834         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13835
13836 2014-01-06  Tom Tromey  <tromey@redhat.com>
13837
13838         * doublest.c (convert_doublest_to_floatformat): Use const, not
13839         CONST.
13840         * somread.c (som_symtab_read): Likewise.
13841
13842 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13843
13844         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13845         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13846         (gdb_bfd_fopen): Ditto.
13847         (gdb_bfd_openr): Ditto.
13848         (gdb_bfd_openw): Ditto.
13849         (gdb_bfd_openr_iovec): Ditto.
13850         (gdb_bfd_fdopenr): Ditto.
13851         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13852         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13853         with xstrdup.
13854         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13855         with xstrdup.
13856         * symfile-mem.c (symbol_file_add_from_memory): Removed
13857         gdb_bfd_stash_filename.
13858
13859 2014-01-03  Doug Evans  <dje@google.com>
13860
13861         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13862         output.
13863
13864 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13865
13866         Update year range in copyright notice of all files.
13867
13868 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13869
13870         * top.c (print_gdb_version): Set copyright year to 2014.
13871
13872 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13873
13874         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13875
13876 For older changes see ChangeLog-2013.
13877 \f
13878 Local Variables:
13879 mode: change-log
13880 left-margin: 8
13881 fill-column: 74
13882 version-control: never
13883 coding: utf-8
13884 End: