Delete gdb/regformats/microblaze.dat
[external/binutils.git] / gdb / ChangeLog
1 2014-10-15  Pedro Alves  <palves@redhat.com>
2
3         * regformats/microblaze.dat: Delete file.
4
5 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
6
7         * features/Makefile (microblaze-expedite): Replace pc with rpc.
8         * regformats/microblaze-with-stack-protect.dat: Regenerate.
9
10 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
11
12         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
13         as non-trivial.
14
15 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
16
17         PR c++/13403
18         PR c++/15154
19         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
20         with qualified args.
21
22 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
23
24         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
25         of the case where the second operand is a pointer.
26         <BINOP_SUB>: Likewise.
27
28 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
29
30         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
31         only if it is not NULL.
32         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
33         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
34         (struct probe_ops) <clear_semaphore>: Likewise.
35         * tracepoint.c (start_tracing): Call set_semaphore only if it is
36         not NULL.
37         (stop_tracing): Likewise, for clear_semaphore.
38
39 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
40
41         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
42         using language_c, instead of current_language.
43
44 2014-10-13  Doug Evans  <dje@google.com>
45
46         * python/py-objfile.c (objfpy_initialize): New function.
47         (objfpy_new, objfile_to_objfile_object): Call it.
48         * python/py-progspace.c (pspy_initialize): New function.
49         (pspy_new, pspace_to_pspace_object): Call it.
50
51 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
52             Jan Kratochvil  <jan.kratochvil@redhat.com>
53
54         Fix "save breakpoints" for "catch" command.
55         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
56         newline.
57
58 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
59
60         Fix "save breakpoints" for "disable $bpnum" command.
61         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
62
63 2014-10-10  Pedro Alves  <palves@redhat.com>
64
65         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
66         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
67         (HFILES_NO_SRCDIR): Remove solib-irix.h.
68         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
69         and been removed.
70         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
71         * configure.ac: Remove references to IRIX.
72         * configure.host: Add *-*-irix* to the obsolete hosts section.
73         Remove all other references to irix.
74         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
75         Delete files.
76
77 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
78
79         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
80         isn't valid, release the tdesc arch data and return NULL.
81
82 2014-10-10  Pedro Alves  <palves@redhat.com>
83
84         * linux-tdep.c: Include observer.h.
85         (linux_inferior_data): New global.
86         (struct linux_info): New structure.
87         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
88         (get_linux_inferior_data): New functions.
89         (linux_vsyscall_range): Rename to ...
90         (linux_vsyscall_range_raw): ... this.
91         (linux_vsyscall_range): New function; handles caching.
92         (_initialize_linux_tdep): Register linux_inferior_data.  Install
93         inferior_exit and inferior_appeared observers.
94
95 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
96             Pedro Alves  <palves@redhat.com>
97
98         PR symtab/14466
99         * solib-svr4.c (svr4_read_so_list): Rename to ...
100         (svr4_current_sos_1): ... this and change the function comment.
101         (svr4_current_sos): New function.
102
103 2014-10-10  Pedro Alves  <palves@redhat.com>
104
105         * arch-utils.c (default_vsyscall_range): New function.
106         * arch-utils.h (default_vsyscall_range): New declaration.
107         * gdbarch.sh (vsyscall_range): New hook.
108         * gdbarch.h, gdbarch.c: Regenerate.
109         * linux-tdep.c (linux_vsyscall_range): New function.
110         (linux_init_abi): Install linux_vsyscall_range as
111         vsyscall_range gdbarch hook.
112         * memrange.c (address_in_mem_range): New function.
113         * memrange.h (address_in_mem_range): New declaration.
114         * symfile-mem.c (find_vdso_size): Delete function.
115         (add_vsyscall_page): Use gdbarch_vsyscall_range.
116
117 2014-10-10  Pedro Alves  <palves@redhat.com>
118
119         * infrun.c (normal_stop): Fix typo in comment.
120
121 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
122
123         PR tdep/9390
124         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
125         typo when using logical AND to determine instruction type.
126
127 2014-10-09  Yao Qi  <yao@codesourcery.com>
128
129         * infrun.c (handle_signal_stop): Remove local variable
130         'printed'.
131
132 2014-10-08  Stan Shebs  <stan@codesourcery.com>
133
134         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
135
136 2014-10-08  Gary Benson  <gbenson@redhat.com>
137
138         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
139
140 2014-10-08  Gary Benson  <gbenson@redhat.com>
141
142         * common/common-defs.h: Include common-exceptions.h.
143         * exceptions.h: Do not include common-exceptions.h.
144
145 2014-10-08  Gary Benson  <gbenson@redhat.com>
146
147         * common/common-defs.h: Include cleanups.h.
148         * common/common-exceptions.c: Do not include cleanups.h.
149         * utils.h: Likewise.
150
151 2014-10-08  Gary Benson  <gbenson@redhat.com>
152
153         * ada-lang.c: Do not include exceptions.h.
154         * ada-valprint.c: Likewise.
155         * amd64-tdep.c: Likewise.
156         * auto-load.c: Likewise.
157         * block.c: Likewise.
158         * break-catch-throw.c: Likewise.
159         * breakpoint.c: Likewise.
160         * btrace.c: Likewise.
161         * c-lang.c: Likewise.
162         * cli/cli-cmds.c: Likewise.
163         * cli/cli-interp.c: Likewise.
164         * cli/cli-script.c: Likewise.
165         * completer.c: Likewise.
166         * corefile.c: Likewise.
167         * corelow.c: Likewise.
168         * cp-abi.c: Likewise.
169         * cp-support.c: Likewise.
170         * cp-valprint.c: Likewise.
171         * darwin-nat.c: Likewise.
172         * dwarf2-frame-tailcall.c: Likewise.
173         * dwarf2-frame.c: Likewise.
174         * dwarf2loc.c: Likewise.
175         * dwarf2read.c: Likewise.
176         * eval.c: Likewise.
177         * event-loop.c: Likewise.
178         * event-top.c: Likewise.
179         * f-valprint.c: Likewise.
180         * frame-unwind.c: Likewise.
181         * frame.c: Likewise.
182         * gdbtypes.c: Likewise.
183         * gnu-v2-abi.c: Likewise.
184         * gnu-v3-abi.c: Likewise.
185         * guile/scm-auto-load.c: Likewise.
186         * guile/scm-breakpoint.c: Likewise.
187         * guile/scm-cmd.c: Likewise.
188         * guile/scm-frame.c: Likewise.
189         * guile/scm-lazy-string.c: Likewise.
190         * guile/scm-param.c: Likewise.
191         * guile/scm-symbol.c: Likewise.
192         * guile/scm-type.c: Likewise.
193         * hppa-hpux-tdep.c: Likewise.
194         * i386-tdep.c: Likewise.
195         * inf-loop.c: Likewise.
196         * infcall.c: Likewise.
197         * infcmd.c: Likewise.
198         * infrun.c: Likewise.
199         * interps.c: Likewise.
200         * interps.h: Likewise.
201         * jit.c: Likewise.
202         * linespec.c: Likewise.
203         * linux-nat.c: Likewise.
204         * linux-thread-db.c: Likewise.
205         * m32r-rom.c: Likewise.
206         * main.c: Likewise.
207         * memory-map.c: Likewise.
208         * mi/mi-cmd-break.c: Likewise.
209         * mi/mi-cmd-stack.c: Likewise.
210         * mi/mi-interp.c: Likewise.
211         * mi/mi-main.c: Likewise.
212         * monitor.c: Likewise.
213         * nto-procfs.c: Likewise.
214         * objc-lang.c: Likewise.
215         * p-valprint.c: Likewise.
216         * parse.c: Likewise.
217         * ppc-linux-tdep.c: Likewise.
218         * printcmd.c: Likewise.
219         * probe.c: Likewise.
220         * python/py-auto-load.c: Likewise.
221         * python/py-breakpoint.c: Likewise.
222         * python/py-cmd.c: Likewise.
223         * python/py-finishbreakpoint.c: Likewise.
224         * python/py-frame.c: Likewise.
225         * python/py-framefilter.c: Likewise.
226         * python/py-function.c: Likewise.
227         * python/py-gdb-readline.c: Likewise.
228         * python/py-inferior.c: Likewise.
229         * python/py-infthread.c: Likewise.
230         * python/py-lazy-string.c: Likewise.
231         * python/py-linetable.c: Likewise.
232         * python/py-param.c: Likewise.
233         * python/py-prettyprint.c: Likewise.
234         * python/py-symbol.c: Likewise.
235         * python/py-type.c: Likewise.
236         * python/py-value.c: Likewise.
237         * python/python-internal.h: Likewise.
238         * python/python.c: Likewise.
239         * record-btrace.c: Likewise.
240         * record-full.c: Likewise.
241         * regcache.c: Likewise.
242         * remote-fileio.c: Likewise.
243         * remote-mips.c: Likewise.
244         * remote.c: Likewise.
245         * rs6000-aix-tdep.c: Likewise.
246         * rs6000-nat.c: Likewise.
247         * skip.c: Likewise.
248         * solib-darwin.c: Likewise.
249         * solib-dsbt.c: Likewise.
250         * solib-frv.c: Likewise.
251         * solib-ia64-hpux.c: Likewise.
252         * solib-spu.c: Likewise.
253         * solib-svr4.c: Likewise.
254         * solib.c: Likewise.
255         * spu-tdep.c: Likewise.
256         * stack.c: Likewise.
257         * stap-probe.c: Likewise.
258         * symfile-mem.c: Likewise.
259         * symmisc.c: Likewise.
260         * target.c: Likewise.
261         * thread.c: Likewise.
262         * top.c: Likewise.
263         * tracepoint.c: Likewise.
264         * tui/tui-interp.c: Likewise.
265         * typeprint.c: Likewise.
266         * utils.c: Likewise.
267         * valarith.c: Likewise.
268         * valops.c: Likewise.
269         * valprint.c: Likewise.
270         * value.c: Likewise.
271         * varobj.c: Likewise.
272         * windows-nat.c: Likewise.
273         * xml-support.c: Likewise.
274
275 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
276
277         * mips-tdep.c (add_offset_16): Rewrite to implement what the
278         name implies.
279         (extended_mips16_next_pc): Update accordingly.
280
281 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
282
283         * mips-tdep.c (mips16_instruction_is_compact_branch): New
284         function.
285         (micromips_instruction_is_compact_branch): Likewise.
286         (mips16_scan_prologue): Terminate scanning upon seeing a branch
287         or a compact jump, reaching a jump delay slot, or seeing a
288         second non-prologue instruction.
289         (micromips_scan_prologue): Also terminate scanning upon seeing a
290         compact branch or jump, or reaching a branch or jump delay slot.
291         (mips32_scan_prologue): Terminate scanning upon reaching a branch
292         or jump delay slot, or seeing a second non-prologue instruction.
293         (mips32_instruction_has_delay_slot): Retain instruction
294         examination code only, update arguments accordingly and move
295         instruction fetch pieces to...
296         (mips32_insn_at_pc_has_delay_slot): ... this new function.
297         (micromips_instruction_has_delay_slot): Likewise and to...
298         (micromips_insn_at_pc_has_delay_slot): ... this new function.
299         (mips16_instruction_has_delay_slot): Likewise and to...
300         (mips16_insn_at_pc_has_delay_slot): ... this new function.
301         (mips_single_step_through_delay): Update accordingly.
302         (mips_adjust_breakpoint_address): Likewise.
303
304 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
305
306         * mips-tdep.c (micromips_instruction_has_delay_slot): When
307         !mustbe32 also return 1 for 32-bit instructions.
308         (mips16_instruction_has_delay_slot): Likewise.  Add an
309         explanatory comment.
310
311 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
312
313         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
314         symbols special.
315
316 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
317
318         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
319         update comments.
320         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
321         for the breakpoint's address.  Don't preinitialize `placed_size'.
322         (insert_bp_location): Set `reqstd_address' rather than
323         `placed_address'.
324         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
325         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
326         address.
327         (bkpt_remove_location): Likewise.
328         (deprecated_insert_raw_breakpoint): Likewise.
329         (deprecated_remove_raw_breakpoint): Likewise.
330         (find_single_step_breakpoint): Likewise.
331         * mem-break.c (default_memory_insert_breakpoint): Use
332         `reqstd_address' for the breakpoint's address.  Don't set
333         `placed_address' or `placed_size' if breakpoint contents couldn't
334         have been determined.
335         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
336         the breakpoint's address.
337         (remote_insert_hw_breakpoint): Likewise.  Don't set
338         `placed_address' or `placed_size' if breakpoint couldn't have been
339         set.
340         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
341         `reqstd_address' for the breakpoint's address.
342         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
343         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
344         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
345         * microblaze-linux-tdep.c
346         (microblaze_linux_memory_remove_breakpoint): Likewise.
347         * monitor.c (monitor_insert_breakpoint): Likewise.
348         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
349         (procfs_insert_hw_breakpoint): Likewise.
350         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
351         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
352         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
353         * remote-mips.c (mips_insert_breakpoint): Likewise.
354         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
355
356 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
357
358         * valops.c (value_assign): Check for bit field assignments
359         before calling architecture-specific register value
360         conversion functions.
361
362 2014-10-03  Pierre Muller  <muller@sourceware.org>
363
364         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
365
366 2014-10-02  Pedro Alves  <palves@redhat.com>
367
368         * breakpoint.c (breakpoints_should_be_inserted_now): Use
369         threads_are_executing.
370         * breakpoint.h (breakpoints_should_be_inserted_now): Add
371         describing comment.
372         * gdbthread.h (threads_are_executing): Declare.
373         (handle_signal_stop) <random signals>: Don't print about the
374         signal here if stopping.
375         (end_stepping_range): Don't notify observers here.
376         (normal_stop): Update the thread list.  If stopped by a random
377         signal or a stepping range ended, notify observers.
378         * thread.c (threads_executing): New global.
379         (init_thread_list): Clear 'threads_executing'.
380         (set_executing): Set or clear 'threads_executing'.
381         (threads_are_executing): New function.
382         (update_threads_executing): New function.
383         (update_thread_list): Use it.
384
385 2014-10-02  Pedro Alves  <palves@redhat.com>
386
387         PR breakpoints/17431
388         * breakpoint.c (update_breakpoints_after_exec): Don't create
389         overlay, longjmp, std terminate nor exception breakpoints here.
390
391 2014-10-02  Pedro Alves  <palves@redhat.com>
392
393         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
394         Adjust comments.
395         * inferior.c (find_inferior_for_program_space): Give preference to
396         the current inferior.
397         * inferior.h (find_inferior_for_program_space): Update comment.
398         * progspace.c (switch_to_program_space_and_thread): Prefer the
399         current inferior if it's bound to the program space requested.  If
400         the inferior found doesn't have a PID yet, don't bother looking up
401         a thread.
402         * progspace.h (switch_to_program_space_and_thread): Adjust
403         comment.
404         * thread.c (any_thread_of_process, any_live_thread_of_process):
405         Give preference to the current thread.
406
407 2014-10-01  Pedro Alves  <palves@redhat.com>
408
409         * breakpoint.c (insert_bp_location): Error out if inserting a
410         software breakpoint at a read-only address.
411         * target.c (memory_xfer_check_region): New function, factored out
412         from ...
413         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
414         ULONGEST.
415         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
416         against the memory region attributes.
417
418 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
419
420         * NEWS: Announce new exit-code field in -list-thread-groups
421         output.
422         * inferior.c (exit_inferior_1): Don't clear exit code.
423         (inferior_appeared): Clear exit code.
424         * mi/mi-main.c (print_one_inferior): Add printing of the exit
425         code.
426
427 2014-10-01  Pedro Alves  <palves@redhat.com>
428
429         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
430         GENERATED" along with emacs/vi read-only markers.
431         * regformats/aarch64.dat: Regenerate.
432         * regformats/arm-with-iwmmxt.dat: Regenerate.
433         * regformats/arm-with-neon.dat: Regenerate.
434         * regformats/arm-with-vfpv2.dat: Regenerate.
435         * regformats/arm-with-vfpv3.dat: Regenerate.
436         * regformats/i386/amd64-avx-linux.dat: Regenerate.
437         * regformats/i386/amd64-avx.dat: Regenerate.
438         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
439         * regformats/i386/amd64-avx512.dat: Regenerate.
440         * regformats/i386/amd64-linux.dat: Regenerate.
441         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
442         * regformats/i386/amd64-mpx.dat: Regenerate.
443         * regformats/i386/amd64.dat: Regenerate.
444         * regformats/i386/i386-avx-linux.dat: Regenerate.
445         * regformats/i386/i386-avx.dat: Regenerate.
446         * regformats/i386/i386-avx512-linux.dat: Regenerate.
447         * regformats/i386/i386-avx512.dat: Regenerate.
448         * regformats/i386/i386-linux.dat: Regenerate.
449         * regformats/i386/i386-mmx-linux.dat: Regenerate.
450         * regformats/i386/i386-mmx.dat: Regenerate.
451         * regformats/i386/i386-mpx-linux.dat: Regenerate.
452         * regformats/i386/i386-mpx.dat: Regenerate.
453         * regformats/i386/i386.dat: Regenerate.
454         * regformats/i386/x32-avx-linux.dat: Regenerate.
455         * regformats/i386/x32-avx.dat: Regenerate.
456         * regformats/i386/x32-avx512-linux.dat: Regenerate.
457         * regformats/i386/x32-avx512.dat: Regenerate.
458         * regformats/i386/x32-linux.dat: Regenerate.
459         * regformats/i386/x32.dat: Regenerate.
460         * regformats/microblaze-with-stack-protect.dat: Regenerate.
461         * regformats/mips-dsp-linux.dat: Regenerate.
462         * regformats/mips-linux.dat: Regenerate.
463         * regformats/mips64-dsp-linux.dat: Regenerate.
464         * regformats/mips64-linux.dat: Regenerate.
465         * regformats/nios2-linux.dat: Regenerate.
466         * regformats/rs6000/powerpc-32.dat: Regenerate.
467         * regformats/rs6000/powerpc-32l.dat: Regenerate.
468         * regformats/rs6000/powerpc-64l.dat: Regenerate.
469         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
470         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
471         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
472         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
473         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
474         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
475         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
476         * regformats/s390-linux32.dat: Regenerate.
477         * regformats/s390-linux32v1.dat: Regenerate.
478         * regformats/s390-linux32v2.dat: Regenerate.
479         * regformats/s390-linux64.dat: Regenerate.
480         * regformats/s390-linux64v1.dat: Regenerate.
481         * regformats/s390-linux64v2.dat: Regenerate.
482         * regformats/s390-te-linux64.dat: Regenerate.
483         * regformats/s390x-linux64.dat: Regenerate.
484         * regformats/s390x-linux64v1.dat: Regenerate.
485         * regformats/s390x-linux64v2.dat: Regenerate.
486         * regformats/s390x-te-linux64.dat: Regenerate.
487         * regformats/tic6x-c62x-linux.dat: Regenerate.
488         * regformats/tic6x-c62x.dat: Regenerate.
489         * regformats/tic6x-c64x-linux.dat: Regenerate.
490         * regformats/tic6x-c64x.dat: Regenerate.
491         * regformats/tic6x-c64xp-linux.dat: Regenerate.
492         * regformats/tic6x-c64xp.dat: Regenerate.
493
494 2014-10-01  Pedro Alves  <palves@redhat.com>
495
496         * features/Makefile: Update comments.
497         (XMLTOC): List all xml files we build C files from.
498         (clean-cfiles): New rule.
499
500 2014-10-01  Pedro Alves  <palves@redhat.com>
501
502         * features/i386/amd64-avx512-linux.c: Regenerate.
503         * features/i386/amd64-avx512.c: Regenerate.
504         * features/i386/x32-avx512-linux.c: Regenerate.
505         * features/i386/x32-avx512.c: Regenerate.
506
507 2014-10-01  Pedro Alves  <palves@redhat.com>
508
509         * features/Makefile (WHICH): Remove arm-with-m,
510         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
511
512 2014-10-01  Pedro Alves  <palves@redhat.com>
513
514         * features/Makefile (clean): New rule.
515
516 2014-10-01  Pedro Alves  <palves@redhat.com>
517
518         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
519         (zmm14h): Add missing end quotes.
520
521 2014-10-01  Pedro Alves  <palves@redhat.com>
522
523         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
524         * features/aarch64.c: Regenerate.
525
526 2014-09-30  Don Breazeal  <donb@codesourcery.com>
527
528         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
529         code so as to work with follow_fork_inferior.
530         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
531         (inf_ttrace_create_inferior): Remove reference to
532         inf_ttrace_vfork_ppid.
533         (inf_ttrace_attach): Ditto.
534         (inf_ttrace_detach): Ditto.
535         (inf_ttrace_kill): Use current_inferior instead of
536         inf_ttrace_vfork_ppid.
537         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
538         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
539         inferior away from the parent.
540         * infrun.c (follow_fork): Call follow_fork_inferior instead of
541         target_follow_fork.
542         (follow_fork_inferior): New function.
543         (follow_inferior_reset_breakpoints): Make function static.
544         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
545         * linux-nat.c (linux_child_follow_fork): Move target-independent
546         code to infrun.c:follow_fork_inferior.
547
548 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
549
550         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
551         * gdbarch.c: Regenerate.
552         * gdbarch.h: Likewise.
553         * corelow.c (sniff_core_bfd): Drop presence check for deleted
554         gdbarch method 'regset_from_core_section'.
555         (get_core_register_section): Remove handling for the case that
556         regset == NULL and regset_from_core_section is defined.
557         (get_core_registers): Drop check for deleted method.
558         * procfs.c (procfs_do_thread_registers): Adjust comment.
559
560 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
561
562         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
563         (linux_nat_make_corefile_notes): Remove.
564         (linux_target_install_ops): Do not set target method
565         'make_corefile_notes'.
566         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
567         Remove field.
568         (linux_corefile_thread_callback): Instead of args->collect, call
569         linux_collect_thread_registers.
570         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
571         NULL unless there is a regset iterator.
572         (linux_make_corefile_notes_1): Remove.
573         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
574         by linux_make_corefile_notes.
575         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
576
577 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
578
579         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
580         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
581         Remove.
582         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
583
584 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
585
586         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
587         (xtensa_iterate_over_regset_sections): New.
588         (xtensa_gdbarch_init): Adjust gdbarch initialization.
589
590 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
591
592         * vax-tdep.c (vax_regset_from_core_section): Remove.
593         (vax_iterate_over_regset_sections): New.
594         (vax_gdbarch_init): Adjust gdbarch initialization.
595
596 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
597
598         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
599         (tilegx_regset_from_core_section): Remove.
600         (tilegx_iterate_over_regset_sections): New.
601         (tilegx_linux_init_abi): Adjust gdbarch initialization.
602
603 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
604
605         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
606         (sparc_iterate_over_regset_sections): New.
607         (sparc32_gdbarch_init): Adjust gdbarch initialization.
608         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
609         targets.
610         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
611         (sparc64fbsd_init_abi): Call fbsd_init_abi.
612         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
613         target method 'make_corefile_notes'.
614
615 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
616
617         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
618         'sizeof_gregset' and 'sizeof_fpregset'.
619         * sh-tdep.c (sh_regset_from_core_section): Remove.
620         (sh_iterate_over_regset_sections): New.
621         (sh_gdbarch_init): Adjust gdbarch initialization.
622         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
623         sizeof_fpregset.
624         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
625         'sizeof_gregset'.
626
627 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
628
629         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
630         (score7_linux_iterate_over_regset_sections): New.
631         (score_gdbarch_init): Adjust gdbarch initialization.
632
633 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
634
635         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
636         FreeBSD targets.
637         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
638         method 'make_corefile_notes'.
639         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
640         (ppcfbsd_regset_from_core_section): Remove.
641         (ppcfbsd_iterate_over_regset_sections): New.
642         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
643         initialization.
644         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
645         (ppcnbsd_iterate_over_regset_sections): New.
646         (ppcnbsd_init_abi): Adjust.
647         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
648         (ppcobsd_iterate_over_regset_sections): New.
649         (ppcobsd_init_abi): Adjust.
650         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
651         (rs6000_aix_iterate_over_regset_sections): New.
652         (rs6000_aix_init_osabi): Adjust.
653
654 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
655
656         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
657         (nios2_regset_from_core_section): Remove.
658         (nios2_iterate_over_regset_sections): New.
659         (nios2_linux_init_abi): Adjust gdbarch initialization.
660
661 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
662
663         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
664         (am33_iterate_over_regset_sections): New.
665         (am33_linux_init_osabi): Adjust gdbarch initialization.
666
667 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
668
669         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
670         (mips_linux_iterate_over_regset_sections): New.
671         (mips_linux_init_abi): Adjust gdbarch initialization.
672         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
673         (mips64obsd_iterate_over_regset_sections): New.
674         (mips64obsd_init_abi): Adjust.
675         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
676         (mipsnbsd_iterate_over_regset_sections): New.
677         (mipsnbsd_init_abi): Adjust.
678
679 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
680
681         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
682         (m88k_iterate_over_regset_sections): New.
683         (m88k_gdbarch_init): Adjust gdbarch initialization.
684
685 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
686
687         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
688         (ia64_linux_iterate_over_regset_sections): New.
689         (ia64_linux_init_abi): Adjust gdbarch initialization.
690
691 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
692
693         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
694         (m68kbsd_iterate_over_regset_sections): New.
695         (m68kbsd_init_abi): Adjust gdbarch initialization.
696         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
697         (m68k_linux_iterate_over_regset_sections): New.
698         (m68k_linux_init_abi): Adjust gdbarch initialization.
699
700 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
701
702         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
703         (m32r_linux_regset_from_core_section): Remove.
704         (m32r_linux_iterate_over_regset_sections): New.
705         (m32r_linux_init_abi): Adjust gdbarch initialization.
706
707 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
708
709         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
710         (amd64obsd_iterate_over_regset_sections): New.
711         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
712         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
713         Remove.
714         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
715         regset_from_core_section initialization.
716         * i386-tdep.c (i386_regset_from_core_section): Remove.
717         (i386_iterate_over_regset_sections): New.
718         (i386_gdbarch_init): Adjust gdbarch initialization.
719         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
720         (i386_iterate_over_regset_sections): New prototype.
721         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
722         Remove.
723         (i386obsd_aout_iterate_over_regset_sections): New.
724         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
725         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
726         targets.
727         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
728         (amd64fbsd_init_abi): Call fbsd_init_abi.
729         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
730         (i386fbsd4_init_abi): Call fbsd_init_abi.
731         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
732         target method 'make_corefile_notes'.
733         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
734
735 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
736
737         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
738         (hppa_hpux_iterate_over_regset_sections): New.
739         (hppa_hpux_init_abi): Adjust gdbarch initialization.
740         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
741         (hppa_linux_iterate_over_regset_sections): New.
742         (hppa_linux_init_abi): Adjust.
743         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
744         (hppanbsd_iterate_over_regset_sections): New.
745         (hppanbsd_init_abi): Adjust.
746         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
747         (hppaobsd_iterate_over_regset_sections): New.
748         (hppaobsd_init_abi): Adjust.
749
750 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
751
752         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
753         (frv_linux_iterate_over_regset_sections): New.
754         (frv_linux_init_abi): Adjust gdbarch initialization.
755
756 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
757
758         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
759         (armbsd_iterate_over_regset_sections): New prototype.
760         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
761         (armbsd_iterate_over_regset_sections): New.
762         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
763         initialization.
764
765 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
766
767         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
768         (alpha_linux_iterate_over_regset_sections): New.
769         (alpha_linux_init_abi): Adjust gdbarch initialization.
770         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
771         prototype.
772         (alphanbsd_iterate_over_regset_sections): New prototype.
773
774 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
775
776         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
777         Remove.
778         (aarch64_linux_iterate_over_regset_sections): New.
779         (aarch64_linux_init_abi): Adjust gdbarch initialization.
780
781 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
782
783         * fbsd-tdep.c: New file.
784         * fbsd-tdep.h: New file.
785         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
786         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
787         (ALLDEPFILES): Add fbsd-tdep.c.
788
789 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
790
791         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
792         parameter.
793         * gdbarch.h: Regenerate.
794         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
795         iterator.
796         (get_core_register_section): Add parameter 'regset' and use it, if
797         set.  Add parameter 'min_size' and verify the bfd section size
798         against it.
799         (get_core_registers_cb): Add parameter 'regset' and pass it to
800         get_core_register section.  For the "standard" register sections
801         ".reg" and ".reg2", set an appropriate default for human_name.
802         (get_core_registers): Don't abort when the gdbarch has an iterator
803         but no regset_from_core_section.  Add NULL/0 for parameters
804         'regset'/'min_size' in calls to get_core_register_section.
805         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
806         'regset' and use it instead of calling the
807         regset_from_core_section gdbarch method.
808         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
809         * i386-tdep.c (i386_supply_xstateregset)
810         (i386_collect_xstateregset, i386_xstateregset): Moved to
811         i386-linux-tdep.c.
812         (i386_regset_from_core_section): Drop handling for .reg-xfp and
813         .reg-xstate.
814         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
815         core file support only if the regset iterator hasn't been set.
816         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
817         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
818         Moved from i386-tdep.c and renamed to *_linux*.
819         (i386_linux_iterate_over_regset_sections): Add regset parameter to
820         each callback invocation.  Allow any .reg-xstate size when reading
821         from a core file.
822         * amd64-tdep.c (amd64_supply_xstateregset)
823         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
824         amd64-linux-tdep.c.
825         (amd64_regset_from_core_section): Remove.
826         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
827         install an amd64-specific regset_from_core_section gdbarch method.
828         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
829         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
830         Moved from amd64-tdep.c and renamed to *_linux*.
831         (amd64_linux_iterate_over_regset_sections): Add regset parameter
832         to each callback invocation.  Allow any .reg-xstate size when
833         reading from a core file.
834         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
835         (arm_linux_iterate_over_regset_sections): Add regset parameter to
836         each callback invocation.
837         (arm_linux_init_abi): No longer set the regset_from_core_section
838         gdbarch method.
839         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
840         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
841         each callback invocation.
842         (ppc_linux_init_abi): No longer set the regset_from_core_section
843         gdbarch method.
844         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
845         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
846         (s390_regset_from_core_section): Remove.
847         (s390_iterate_over_regset_sections): Add regset parameter to each
848         callback invocation.
849         (s390_gdbarch_init): No longer set the regset_from_core_section
850         gdbarch method.  Drop initialization of deleted tdep fields.
851
852 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
853
854         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
855         (amd64_linux_iterate_over_regset_sections): New.
856         (amd64_linux_init_abi_common): Don't install the regset section
857         list, but the new iterator in gdbarch.
858         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
859         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
860         (arm_linux_iterate_over_regset_sections): ...here.  New function.
861         (arm_linux_init_abi): Set iterator instead of section list.
862         * corelow.c (get_core_registers_cb): New function, logic moved
863         from...
864         (get_core_registers): ...loop body here.  Use new iterator method
865         instead of walking through the regset section list.
866         * gdbarch.sh: Remove 'core_regset_sections'.  New method
867         'iterate_over_regset_sections'.  New typedef
868         'iterate_over_regset_sections_cb'.
869         * gdbarch.c: Regenerate.
870         * gdbarch.h: Likewise.
871         * i386-linux-tdep.c (i386_linux_regset_sections)
872         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
873         Remove.
874         (i386_linux_iterate_over_regset_sections): New.
875         (i386_linux_init_abi): Don't choose a regset section list, but
876         install new iterator in gdbarch.
877         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
878         (linux_collect_regset_section_cb): New function, logic moved
879         from...
880         (linux_collect_thread_registers): ...loop body here.  Use iterator
881         method instead of walking through list.
882         (linux_make_corefile_notes_1): Check for presence of iterator
883         method instead of regset section list.
884         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
885         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
886         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
887         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
888         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
889         (ppc_linux_init_abi): Don't choose from above regset section
890         lists, but install new iterator in gdbarch.
891         * regset.h (struct core_regset_section): Remove.
892         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
893         have_linux_v1, have_linux_v2, and have_tdb.
894         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
895         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
896         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
897         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
898         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
899         (s390_iterate_over_regset_sections): ...here.  New function.  Use
900         new tdep fields.
901         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
902         regset section lists, but install new iterator.
903
904 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
905
906         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
907
908 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
909
910         * progspace.c (print_program_space): Don't prune program spaces
911         before printing them.
912
913 2014-09-25  Pedro Alves  <palves@redhat.com>
914
915         * infrun.c (user_visible_resume_ptid): Don't check
916         singlestep_breakpoints_inserted_p.
917
918 2014-09-25  Pedro Alves  <palves@redhat.com>
919
920         * breakpoint.c (should_be_inserted): Add debug output.
921
922 2014-09-25  Pedro Alves  <palves@redhat.com>
923
924         * infrun.c (stepping_past_instruction_at)
925         (clear_exit_convenience_vars): Point at infrun.h instead of
926         inferior.h.
927         (handle_signal_stop): Fix typo.
928
929 2014-09-24  Yao Qi  <yao@codesourcery.com>
930
931         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
932         bitmask.
933
934 2014-09-22  Gary Benson  <gbenson@redhat.com>
935
936         * target.c (target_stop): Updated comment.
937
938 2014-09-22  Gary Benson  <gbenson@redhat.com>
939
940         * target/target.h (target_stop_ptid): Renamed as...
941         (target_stop_and_wait): New function.  Updated comment.
942         All uses updated.
943         (target_continue_ptid): Renamed as...
944         (target_continue_no_signal): New function.  Updated comment.
945         All uses updated.
946
947 2014-09-22  Pedro Alves  <palves@redhat.com>
948
949         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
950         and "auto" merged.
951         * breakpoint.c (enum ugll_insert_mode): New enum.
952         (always_inserted_mode): Now a plain boolean.
953         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
954         (breakpoints_always_inserted_mode): Delete.
955         (breakpoints_should_be_inserted_now): New function.
956         (insert_breakpoints): Pass UGLL_INSERT to
957         update_global_location_list instead of calling
958         insert_breakpoint_locations manually.
959         (create_solib_event_breakpoint_1): New, factored out from ...
960         (create_solib_event_breakpoint): ... this.
961         (create_and_insert_solib_event_breakpoint): Use
962         create_solib_event_breakpoint_1 instead of calling
963         insert_breakpoint_locations manually.
964         (update_global_location_list): Change parameter type from boolean
965         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
966         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
967         (update_global_location_list_nothrow): Change parameter type from
968         boolean to enum ugll_insert_mode.
969         (_initialize_breakpoint): "breakpoint always-inserted" option is
970         now a boolean command.  Update help text.
971         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
972         (breakpoints_should_be_inserted_now): New declaration.
973         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
974         Remove breakpoints_always_inserted_mode check.
975         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
976         * remote.c (remote_start_remote): Likewise.
977
978 2014-09-22  Pedro Alves  <palves@redhat.com>
979
980         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
981         (insert_breakpoints): Don't call insert_breakpoint_locations here.
982         Instead, pass UGLL_INSERT to update_global_location_list.
983         (update_global_location_list): Change parameter type from boolean
984         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
985         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
986         (create_solib_event_breakpoint_1): New, factored out from ...
987         (create_solib_event_breakpoint): ... this.
988         (create_and_insert_solib_event_breakpoint): Use
989         create_solib_event_breakpoint_1 instead of calling
990         insert_breakpoint_locations manually.
991         (update_global_location_list): Handle UGLL_INSERT.
992
993 2014-09-22  Pedro Alves  <palves@redhat.com>
994
995         * breakpoint.c (enum ugll_insert_mode): New enum.
996         (update_global_location_list)
997         (update_global_location_list_nothrow): Change parameter type from
998         boolean to enum ugll_insert_mode.  All callers adjusted.
999
1000 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1001
1002         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1003         SystemTap support in GDB.
1004
1005 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1006
1007         * linux-nat.c (linux_handle_extended_wait): Call
1008         linux_ptrace_get_extended_event.
1009         (wait_lwp): Call linux_is_extended_waitstatus.
1010         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1011         and linux_is_extended_waitstatus.
1012         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1013         linux_ptrace_get_extended_event.
1014         (linux_ptrace_get_extended_event): New function.
1015         (linux_is_extended_waitstatus): New function.
1016         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1017         (linux_is_extended_waitstatus): New declarations.
1018
1019 2014-09-19  Yao Qi  <yao@codesourcery.com>
1020
1021         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1022         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1023         comments.  Callers update.
1024         (dwarf_decode_lines): Likewise.
1025         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1026         comments.  Skip the line table if  'lowpc' is greater than
1027         'address'.  Don't check
1028         dwarf2_per_objfile->has_section_at_zero.
1029
1030 2014-09-18  Doug Evans  <dje@google.com>
1031
1032         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1033         * python/py-symtab.c (stpy_get_producer): New function.
1034         (symtab_object_getset): Add "producer" attribute.
1035
1036 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1037
1038         PR gdb/17384
1039         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1040         (do_captured_read_memory_integer): Remove.
1041         (safe_read_memory_integer): Use target_read_memory directly instead
1042         of catching errors in do_captured_read_memory_integer.
1043
1044 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1045
1046         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1047         not gdb/doc.
1048
1049 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1050
1051         * objc-lang.c (find_implementation_from_class): Remove dead code.
1052
1053 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1054
1055         PR cli/7233
1056         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1057         "fprintf_unfiltered (gdb_stdlog...)".
1058
1059 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1060
1061         PR breakpoints/12526
1062         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1063         val_bitsize.
1064         * breakpoint.c (watch_command_1): Use these fields to retain
1065         bitfield information.
1066         (extract_bitfield_from_watchpoint_value): New function.
1067         (watchpoint_check): Use it.
1068         (update_watchpoint): Use it.  Optimize the address and length of a
1069         HW watchpoint pointing to a bitfield.
1070         * value.h (unpack_value_bitfield): New prototype.
1071         * value.c (unpack_value_bitfield): Make extern.
1072
1073 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1074
1075         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1076         x86-dregs.o.
1077         * gnu-nat.c (inf_threads): New function.
1078         * gnu-nat.h (inf_threads_ftype): New typedef.
1079         (inf_threads): New declaration.
1080         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1081         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1082         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1083         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1084         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1085         (i386_gnu_dr_get_control): New functions.
1086         (reg_addr): New structure.
1087         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1088         i386 debugging register hooks.
1089         * NEWS: Mention this.
1090
1091 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1092
1093         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1094         vector data transfer instructions.
1095         (arm_record_coproc_data_proc): Updated.
1096
1097 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1098
1099         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1100         arm_record_exreg_ld_st_insn.
1101         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1102         load/store insns.
1103
1104 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1105
1106         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1107         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1108         processing instructions.
1109
1110 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1111
1112         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1113         for advance SIMD struct ld/st insn.
1114         (thumb2_record_decode_insn_handler): Replace stub handler with
1115         thumb2_record_asimd_struct_ld_st.
1116
1117 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1118
1119         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1120         for asimd, vfp and coprocessor insns.
1121         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1122         and coprocessor insns.
1123         (thumb2_record_coproc_insn): New function.
1124         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1125         handlers.
1126         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1127         opcode 110 insns.
1128
1129 2014-09-13  Doug Evans  <xdje42@gmail.com>
1130
1131         * NEWS: Mention new "queue-signal" command.
1132         * infcmd.c (queue_signal_command): New function.
1133         (_initialize_infcmd): Add new queue-signal command.
1134
1135 2014-09-13  Doug Evans  <xdje42@gmail.com>
1136
1137         * linux-nat.c (wait_lwp): Add debugging printf.
1138         (linux_nat_wait_1): Ditto.
1139
1140 2014-09-12  Pedro Alves  <palves@redhat.com>
1141
1142         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1143         (create_and_insert_solib_event_breakpoint): New functions.
1144         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1145         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1146         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1147         (remove_dbx_link_breakpoint): Delete function.
1148         (insert_dbx_link_bpt_in_file): Use
1149         create_and_insert_solib_event_breakpoint instead of
1150         deprecated_insert_raw_breakpoint.
1151         (procfs_wait): Don't check whether we hit __dbx_link here.
1152         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1153         here.
1154         * solib-irix.c (base_breakpoint): Delete global.
1155         (disable_break): Delete function.
1156         (enable_break): Use create_solib_event_breakpoint
1157         instead of deprecated_insert_raw_breakpoint.
1158         (irix_solib_handle_event): New function.
1159         (irix_solib_create_inferior_hook): Don't run the target or disable
1160         the mapping-complete breakpoint here.
1161         (_initialize_irix_solib): Install irix_solib_handle_event as
1162         so_ops->handle_event hook.
1163
1164 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1165             Ulrich Weigand  <uweigand@de.ibm.com>
1166
1167         PR tdep/17379
1168         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1169         instead of read_memory_unsigned_integer.
1170
1171 2014-09-12  Gary Benson  <gbenson@redhat.com>
1172
1173         * nat/linux-waitpid.c: Include common-defs.h.
1174         [GDBSERVER]: Add FIXME comment.
1175         [!GDBSERVER]: Don't include defs.h or signal.h.
1176         (linux_debug) [!GDBSERVER]: Remove empty block.
1177
1178 2014-09-12  Gary Benson  <gbenson@redhat.com>
1179
1180         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1181         Don't include defs.h or server.h.
1182
1183 2014-09-12  Gary Benson  <gbenson@redhat.com>
1184
1185         * nat/linux-btrace.c: Include common-defs.h.
1186         Don't include defs.h, server.h or gdbthread.h.
1187         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1188
1189 2014-09-12  Gary Benson  <gbenson@redhat.com>
1190
1191         * common/agent.c: Include common-defs.h.
1192         Don't include defs.h or server.h.
1193         * common/buffer.c: Likewise.
1194         * common/common-debug.c: Likewise.
1195         * common/common-utils.c: Likewise.
1196         * common/errors.c: Likewise.
1197         * common/filestuff.c: Likewise.
1198         * common/format.c: Likewise.
1199         * common/gdb_vecs.c: Likewise.
1200         * common/print-utils.c: Likewise.
1201         * common/ptid.c: Likewise.
1202         * common/rsp-low.c: Likewise.
1203         * common/signals.c: Likewise.
1204         * common/vec.c: Likewise.
1205         * common/xml-utils.c: Likewise.
1206         * nat/linux-osdata.c: Likewise.
1207         * nat/linux-procfs.c: Likewise.
1208         * nat/linux-ptrace.c: Likewise.
1209         * nat/mips-linux-watch.c: Likewise.
1210         * target/waitstatus.c: Likewise.
1211
1212 2014-09-12  Tom Tromey  <tromey@redhat.com>
1213             Gary Benson  <gbenson@redhat.com>
1214
1215         * common/common-regcache.h: New file.
1216         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1217         * regcache.h: Include common-regcache.h.
1218         (regcache_read_pc): Don't declare.
1219         * regcache.c (get_thread_regcache_for_ptid): New function.
1220         * nat/linux-btrace.c: Don't include regcache.h.
1221         Include common-regcache.h.
1222         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1223
1224 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
1225
1226         * regcache.h (struct regset): Declare.
1227
1228 2014-09-11  Pedro Alves  <palves@redhat.com>
1229
1230         PR gdb/17347
1231         * main.c: Include "infrun.h".
1232         (catch_command_errors, catch_command_errors_const): Wait for the
1233         foreground command to complete.
1234         * top.c (maybe_wait_sync_command_done): New function, factored out
1235         from ...
1236         (maybe_wait_sync_command_done): ... here.
1237         * top.h (maybe_wait_sync_command_done): New declaration.
1238
1239 2014-09-11  Tom Tromey  <tromey@redhat.com>
1240             Gary Benson  <gbenson@redhat.com>
1241
1242         * common/symbol.h: New file.
1243         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1244         * minsyms.c (find_minimal_symbol_address): New function.
1245         * common/agent.c: Include common/symbol.h.
1246         [!GDBSERVER]: Don't include objfiles.h.
1247         (agent_look_up_symbols): Use find_minimal_symbol_address.
1248
1249 2014-09-11  Gary Benson  <gbenson@redhat.com>
1250
1251         * target/target.h (target_stop_ptid, target_continue_ptid):
1252         Declare.
1253         * target.c (target_stop_ptid, target_continue_ptid): New
1254         functions.
1255         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1256         (agent_run_command): Always use target_stop_ptid and
1257         target_continue_ptid.
1258
1259 2014-09-11  Tom Tromey  <tromey@redhat.com>
1260             Gary Benson  <gbenson@redhat.com>
1261
1262         * target/target.h: New file.
1263         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1264         * target.h: Include target/target.h.
1265         (target_read_memory, target_write_memory): Don't declare.
1266         * target.c (target_read_uint32): New function.
1267         * common/agent.c: Include target/target.h.
1268         [!GDBSERVER]: Don't include target.h.
1269         (helper_thread_id): Type changed to uint32_t.
1270         (agent_get_helper_thread_id): Use target_read_uint32.
1271         (agent_run_command): Always use target_read_memory and
1272         target_write_memory.
1273         (agent_capability): Type changed to uint32_t.
1274         (agent_capability_check): Use target_read_uint32.
1275
1276 2014-09-11  Gary Benson  <gbenson@redhat.com>
1277
1278         * common/common-debug.h (show_debug_regs): Declare.
1279         * common/common-debug.c (show_debug_regs): Define.
1280         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
1281         all uses with show_debug_regs.  Replace all uses that considered
1282         debug_hw_points as a multi-value integer with straight boolean
1283         uses.
1284         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
1285         with show_debug_regs.
1286         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
1287         all uses with show_debug_regs.
1288         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
1289         uses with show_debug_regs.
1290
1291 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1292
1293         * findvar.c (address_from_register): Handle targets requiring
1294         a special conversion routine even for plain pointer types.
1295
1296 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1297
1298         * rs6000-nat.c (exec_one_dummy_insn): Remove.
1299         (store_register): Do not call exec_one_dummy_insn.
1300
1301 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1302
1303         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1304         dereference it first.  Use value_enclosing_type instead of
1305         value_type.
1306         (ada_array_length): Likewise.
1307
1308 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1309
1310         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1311         Adjust function implementation and documentation accordingly.
1312         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1313         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1314         Update call to ada_value_ptr_subscript.
1315
1316 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1317
1318         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1319         instead of VAL's type.
1320
1321 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
1322
1323         * amd64-linux-nat.c: Add <sys/uio.h> #include.
1324
1325 2014-09-09  Doug Evans  <xdje42@gmail.com>
1326
1327         PR guile/17367
1328         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1329         last parameter to pkg-config, not first.
1330         * configure.ac: Pass --with-guile provided pkg-config path to
1331         GDB_GUILE_PROGRAM_NAMES.
1332         * configure: Regenerate.
1333
1334 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1335
1336         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1337         Bertazi".
1338
1339 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1340
1341         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1342         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1343         the list of sections determining GDB_OSABI_IRIX.
1344
1345 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1346
1347         * MAINTAINERS (Write After Approval): Add "James Hogan".
1348
1349 2014-09-09  James Hogan  <james.hogan@imgtec.com>
1350
1351         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1352
1353 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
1354
1355         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1356
1357 2014-09-08  Doug Evans  <xdje42@gmail.com>
1358
1359         PR 17247
1360         * guile.c: #include <signal.h>.
1361         (_initialize_guile): Block SIGCHLD while initializing Guile.
1362
1363         Replaces the following, which is reverted.
1364
1365         2014-07-26  Doug Evans  <xdje42@gmail.com>
1366
1367         PR 17185
1368         * configure.ac: Add check for header gc/gc.h.
1369         Add check for function setenv.
1370         * configure: Regenerate.
1371         * config.in: Regenerate.
1372         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1373
1374 2014-09-08  Doug Evans  <xdje42@gmail.com>
1375
1376         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1377         with named constant.  Fix style of pointer comparison.
1378         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1379
1380 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
1381
1382         PR gdb/17035
1383         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1384         decide whether we display the command on "show user".
1385         * cli/cli-script.c (show_user_1): Only verify cmdlines after
1386         printing command name.
1387         * cli/cli-decode.h (cli_user_command_p): Declare new function.
1388         * cli/cli-decode.c (cli_user_command_p): Create helper function
1389         to verify whether cmd_list_element is a user-defined command.
1390
1391 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1392
1393         PR python/17355
1394         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1395         Fix goto out of TRY_CATCH.
1396
1397 2014-09-06  Doug Evans  <xdje42@gmail.com>
1398             Tom Tromey  <tromey@redhat.com>
1399
1400         PR 15276
1401         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1402         $_any_caller_matches.
1403         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1404         * python/lib/gdb/function/caller_is.py: New file.
1405
1406 2014-09-06  Doug Evans  <xdje42@gmail.com>
1407
1408         * infcmd.c (program_info): Fix typo.
1409
1410 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
1411
1412         PR gdb/17235
1413         * stap-probe.c (stap_parse_single_operand): Delete unused variable
1414         'number'.  New variable 'has_digit'.  Rewrite code to deal with
1415         subexpressions on SDT probes.
1416
1417 2014-09-04  Pedro Alves  <palves@redhat.com>
1418
1419         * c-exp.y (parse_number): Skip handling base-switching prefixes if
1420         the input is only one character long.
1421
1422 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
1423
1424         PR fortran/17237
1425         * f-valprint.c (f_val_print): Specify the correct print option to
1426         use when printing integer values.
1427
1428 2014-09-04  Gary Benson  <gbenson@redhat.com>
1429
1430         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1431         Remove code to cope with LWPs wrapped as PIDs.
1432         Add assertions to ensure no wrapped LWPs are passed.
1433
1434 2014-09-04  Pedro Alves  <palves@redhat.com>
1435
1436         * value.c (value_ranges_copy_adjusted): New function, factored out
1437         from ...
1438         (value_contents_copy_raw): ... here.
1439         (unpack_value_bits_as_long_1): Rename back to ...
1440         (unpack_bits_as_long): ... this.  Remove 'original_value' and
1441         'result' parameters.  Change return type to LONGEST.
1442         (unpack_value_bits_as_long): Delete.
1443         (unpack_value_field_as_long_1): Delete.
1444         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1445         (unpack_value_bitfield): New function.
1446         (value_field_bitfield): Reimplement using unpack_value_bitfield.
1447         (value_fetch_lazy): Use unpack_value_bitfield.
1448         * value.h (unpack_value_bits_as_long): Delete declaration.
1449
1450 2014-09-03  Sasha Smundak  <asmundak@google.com>
1451
1452         * python/py-frame.c (frapy_read_register): New function.
1453
1454 2014-09-03  James Hogan  <james.hogan@imgtec.com>
1455
1456         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1457         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1458
1459 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
1460
1461         PR python/16699
1462         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1463         function.
1464         (add_cmd): Set "completer_handle_brkchars" to NULL.
1465         * cli/cli-decode.h (struct cmd_list_element)
1466         <completer_handle_brkchars>: New field.
1467         * command.h (completer_ftype_void): New typedef.
1468         (set_cmd_completer_handle_brkchars): New prototype.
1469         * completer.c (set_gdb_completion_word_break_characters): New
1470         function.
1471         (complete_line_internal): Call "completer_handle_brkchars"
1472         callback from command.
1473         * completer.h: Include "command.h".
1474         (set_gdb_completion_word_break_characters): New prototype.
1475         * python/py-cmd.c (cmdpy_completer_helper): New function.
1476         (cmdpy_completer_handle_brkchars): New function.
1477         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1478         (cmdpy_init): Set completer_handle_brkchars to
1479         cmdpy_completer_handle_brkchars.
1480
1481 2014-09-03  Gary Benson  <gbenson@redhat.com>
1482
1483         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1484         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
1485         Loop conditions changed to equivalent form.
1486         (struct x86_debug_reg_state): Updated dr_ref_count comment.
1487         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1488         ALL_DEBUG_ADDRESS_REGISTERS.
1489
1490 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
1491
1492         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1493         description fix.
1494
1495 2014-09-02  Doug Evans  <dje@google.com>
1496
1497         * typeprint.c (find_global_typedef): Fix comment.
1498
1499 2014-09-02  Gary Benson  <gbenson@redhat.com>
1500
1501         * i386-nat.h: Renamed as...
1502         * x86-nat.h: New file.  All type, function and variable name
1503         prefixes changed from "i386_" to "x86_".  All references updated.
1504         * i386-nat.c: Renamed as...
1505         * x86-nat.c: New file.  All type, function and variable name
1506         prefixes changed from "i386_" to "x86_".  All references updated.
1507         * common/i386-xstate.h: Renamed as...
1508         * common/x86-xstate.h: New file.  All type, function and variable
1509         name prefixes changed from "i386_" to "x86_".  All references
1510         updated.
1511         * nat/i386-cpuid.h: Renamed as...
1512         * nat/x86-cpuid.h: New file.  All type, function and variable name
1513         prefixes changed from "i386_" to "x86_".  All references updated.
1514         * nat/i386-gcc-cpuid.h: Renamed as...
1515         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
1516         name prefixes changed from "i386_" to "x86_".  All references
1517         updated.
1518         * nat/i386-dregs.h: Renamed as...
1519         * nat/x86-dregs.h: New file.  All type, function and variable name
1520         prefixes changed from "i386_" to "x86_".  All references updated.
1521         * nat/i386-dregs.c: Renamed as...
1522         * nat/x86-dregs.c: New file.  All type, function and variable name
1523         prefixes changed from "i386_" to "x86_".  All references updated.
1524
1525 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
1526
1527         * varobj.c (_initialize_varobj): Move to the end of file.
1528
1529 2014-08-29  Gary Benson  <gbenson@redhat.com>
1530
1531         * common/common-exceptions.h: New file.
1532         * common/common-exceptions.c: Likewise.
1533         * Makefile.in (SFILES): Add common/common-exceptions.c.
1534         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1535         (COMMON_OBS): Add common-exceptions.o.
1536         (common-exceptions.o): New rule.
1537         * exceptions.h (common-exceptions.h): Include.
1538         (gdb_setjmp.h): Do not include.
1539         (return_reason): Moved to common-exceptions.h.
1540         (enum return_reason): Likewise.
1541         (RETURN_MASK): Likewise.
1542         (typedef return_mask): Likewise.
1543         (enum errors): Likewise.
1544         (struct gdb_exception): Likewise.
1545         (exceptions_state_mc_init): Likewise.
1546         (exceptions_state_mc_action_iter): Likewise.
1547         (exceptions_state_mc_action_iter_1): Likewise.
1548         (TRY_CATCH): Likewise.
1549         (throw_exception): Likewise.
1550         (throw_verror): Likewise.
1551         (throw_vquit): Likewise.
1552         (throw_error): Likewise.
1553         (throw_quit): Likewise.
1554         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1555         (enum catcher_action): Likewise.
1556         (struct catcher): Likewise.
1557         (current_catcher): Likewise.
1558         (catcher_list_size): Likewise.
1559         (exceptions_state_mc_init): Likewise.
1560         (catcher_pop): Likewise.
1561         (exceptions_state_mc): Likewise.
1562         (exceptions_state_mc_action_iter): Likewise.
1563         (exceptions_state_mc_action_iter_1): Likewise.
1564         (throw_exception): Likewise.
1565         (exception_messages): Likewise.
1566         (exception_messages_size): Likewise.
1567         (throw_it): Likewise.
1568         (throw_verror): Likewise.
1569         (throw_vquit): Likewise.
1570         (throw_error): Likewise.
1571         (throw_quit): Likewise.
1572         (prepare_to_throw_exception): New function.
1573
1574 2014-08-29  Gary Benson  <gbenson@redhat.com>
1575
1576         * common/gdb_setjmp.h: New file.
1577         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1578         * configure.ac: Move sigsetjmp check...
1579         * common/common.m4: ...here.
1580         * configure: Regenerate.
1581         * cp-support.c (SIGJMP_BUF): Delete.
1582         (SIGSETJMP): Likewise.
1583         (SIGLONGJMP): Likewise.
1584         * exceptions.h (gdb_setjmp.h): Include.
1585         (setjmp.h): Do not include.
1586         (EXCEPTIONS_SIGJMP_BUF): Delete.
1587         (EXCEPTIONS_SIGSETJMP): Likewise.
1588         (EXCEPTIONS_SIGLONGJMP): Likewise.
1589         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1590         from gdb_setjmp.h.
1591         * exceptions.c: Likewise.
1592
1593 2014-08-29  Gary Benson  <gbenson@redhat.com>
1594
1595         * cleanups.h: Moved to...
1596         * common/cleanups.h: New file.
1597         * cleanups.c: Moved to...
1598         * common/cleanups.c: New file.  Include common-defs.h and
1599         cleanups.h.  Do not include defs.h.
1600         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1601         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1602         (cleanups.o): New rule.
1603
1604 2014-08-29  Gary Benson  <gbenson@redhat.com>
1605
1606         * common/errors.h (internal_warning): New declaration.
1607         (internal_vwarning): Likewise.
1608         * common/errors.c (internal_warning): New function.
1609         * utils.h (internal_warning): Don't declare.
1610         (internal_vwarning): Likewise.
1611         * utils.c (internal_warning): Removed.
1612
1613 2014-08-29  Gary Benson  <gbenson@redhat.com>
1614
1615         * main.c (captured_main): Use warning during startup.
1616         Prefix startup warning messages with command name.
1617
1618 2014-08-29  Gary Benson  <gbenson@redhat.com>
1619
1620         * main.c (captured_main): Handle usage errors with error.
1621
1622 2014-08-29  Gary Benson  <gbenson@redhat.com>
1623
1624         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1625         exit pair with a call to error.  Wrap the message with _().
1626
1627 2014-08-29  Gary Benson  <gbenson@redhat.com>
1628
1629         * main.c (captured_main): Replace a fprintf/exit
1630         pair with a call to error.  Wrap the message with _().
1631
1632 2014-08-29  Gary Benson  <gbenson@redhat.com>
1633
1634         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1635         pairs with calls to error.  Wrap the message with _().
1636
1637 2014-08-29  Gary Benson  <gbenson@redhat.com>
1638
1639         * utils.c (vwarning): Protect calls to target_terminal_ours
1640         and wrap_here.
1641
1642 2014-08-29  Gary Benson  <gbenson@redhat.com>
1643
1644         * exceptions.c (print_flush): Protect calls to
1645         target_terminal_ours and wrap_here.
1646
1647 2014-08-29  Gary Benson  <gbenson@redhat.com>
1648
1649         * utils.h (filtered_printing_initialized): New declaration.
1650         * utils.c (abort_with_message): New function.
1651         (internal_vproblem): Use abort_with_message for first level
1652         recursive internal problems, and if gdb_stderr is not set up.
1653         Protect calls to target_terminal_ours, begin_line and query.
1654
1655 2014-08-28  Doug Evans  <dje@google.com>
1656
1657         * symtab.c (in_prologue): Move definition to better spot.
1658         (skip_prologue_using_sal): Ditto.
1659
1660 2014-08-28  Doug Evans  <dje@google.com>
1661
1662         * symtab.c (find_function_start_sal): Move definition to better spot.
1663
1664 2014-08-28  Yao Qi  <yao@codesourcery.com>
1665
1666         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1667         found_stack_adjust in forward scan.  Remove condition check
1668         on found_stack_adjust which is always true.  Indent the code.
1669
1670 2014-08-28  Yao Qi  <yao@codesourcery.com>
1671
1672         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1673         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1674         (dwarf_decode_lines): Remove argument
1675         want_line_info.  Remove condition check on want_line_info.
1676         Callers update.
1677
1678 2014-08-27  Doug Evans  <dje@google.com>
1679
1680         * dwarf2read.c (dwarf_record_line): Fix typo.
1681
1682 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1683
1684         * target.h (struct target_ops::to_terminal_save_ours): Remove
1685         declaration.
1686         (target_terminal_save_ours): Remove macro.
1687         * target-delegates.c: Regenerate.
1688         * inf-child.c (inf_child_target): Don't set the nonexistent
1689         field to_terminal_save_ours.
1690         * inferior.h (child_terminal_save_ours): Remove declaration.
1691         * terminal.h (gdb_save_tty_state): New declaration.
1692         * inflow.c (child_terminal_save_ours): Rename to ...
1693         (gdb_save_tty_state): ... this.
1694         * tui/tui.c: Include terminal.h.
1695         (tui_enable): Use gdb_save_tty_state instead of
1696         target_terminal_save_ours.
1697         (tui_disable): Likewise.
1698
1699 2014-08-25  Doug Evans  <dje@google.com>
1700
1701         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1702         Pass NULL instead of 0 for context pointer.
1703
1704 2014-08-25  Yao Qi  <yao@codesourcery.com>
1705
1706         * dwarf2read.c: Fix grammatical error.
1707
1708 2014-08-24  Yao Qi  <yao@codesourcery.com>
1709
1710         * dwarf2read.c (scan_partial_symbols):  Update comments.
1711         Rename argument 'need_pc' with 'set_addrmap'.
1712         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1713         'set_addrmap'.
1714         (add_partial_module): Likewise.
1715         (add_partial_subprogram): Likewise.  Update comments.
1716         (dwarf2_name): Fix typo.
1717
1718 2014-08-22  Doug Evans  <dje@google.com>
1719
1720         PR 17276
1721         * dwarf2read.c (dwarf_record_line_p): New function.
1722         (dwarf_decode_lines_1): Ignore subsequent line number entries
1723         for the same line if any entry had a non-zero discriminator.
1724
1725 2014-08-22  Doug Evans  <dje@google.com>
1726
1727         * buildsym.h (record_line_ftype): New typedef.
1728         (record_line): Use it.
1729         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1730         (dwarf_decode_lines_1): Call them.
1731
1732 2014-08-22  Yao Qi  <yao@codesourcery.com>
1733
1734         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1735         (ctf_end): Remove code.
1736
1737 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1738
1739         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1740         (linux_make_corefile_notes): call update_thread_list, protected against
1741         exceptions.
1742
1743 2014-08-21  Pedro Alves  <palves@redhat.com>
1744
1745         * infcmd.c (attach_command): Remove comment.
1746
1747 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1748
1749         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1750         unsigned LONGEST to ULONGEST.
1751
1752 2014-08-20  Pedro Alves  <palves@redhat.com>
1753
1754         * Makefile.in (check-read1): New rule.
1755
1756 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1757
1758         * value.c (value_from_contents_and_address): Strip resolved_type's
1759         typedef layers before checking its TYPE_DATA_LOCATION.
1760
1761 2014-08-20  Pedro Alves  <palves@redhat.com>
1762
1763         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1764
1765 2014-08-20  Yao Qi  <yao@codesourcery.com>
1766
1767         * amd64-tdep.c (amd64_classify): Add a blank line after the
1768         example.  Move "*/" to a new line.
1769         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1770         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1771         * dwarf2read.c (psymtab_include_file_name): Likewise.
1772
1773 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1774             Pedro Alves  <palves@redhat.com>
1775
1776         PR symtab/14604
1777         PR symtab/14605
1778         * ada-lang.c (coerce_unspec_val_to_type): Use
1779         value_contents_copy_raw.
1780         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1781         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1782         * cp-valprint.c (cp_print_value_fields): Let the common printing
1783         code handle optimized out values.
1784         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1785         * d-valprint.c (dynamic_array_type): Use
1786         value_bits_any_optimized_out.
1787         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1788         check_any_valid fields.
1789         (check_pieced_value_bits): Delete and inline ...
1790         (check_pieced_synthetic_pointer): ... here.
1791         (check_pieced_value_validity): Delete.
1792         (check_pieced_value_invalid): Delete.
1793         (pieced_value_funcs): Remove check_validity and check_any_valid
1794         fields.
1795         (read_pieced_value): Use mark_value_bits_optimized_out.
1796         (write_pieced_value): Switch to use
1797         mark_value_bytes_optimized_out.
1798         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1799         of assuming the whole value is optimized out.
1800         * findvar.c (read_frame_register_value): Remove special handling
1801         of optimized out registers.
1802         (value_from_register): Use mark_value_bytes_optimized_out.
1803         * frame-unwind.c (frame_unwind_got_optimized): Use
1804         mark_value_bytes_optimized_out.
1805         * jv-valprint.c (java_value_print): Adjust.
1806         (java_print_value_fields): Let the common printing code handle
1807         optimized out values.
1808         * mips-tdep.c (mips_print_register): Remove special handling of
1809         optimized out registers.
1810         * opencl-lang.c (lval_func_check_validity): Delete.
1811         (lval_func_check_any_valid): Delete.
1812         (opencl_value_funcs): Remove check_validity and check_any_valid
1813         fields.
1814         * p-valprint.c (pascal_object_print_value_fields): Let the common
1815         printing code handle optimized out values.
1816         * stack.c (read_frame_arg): Remove special handling of optimized
1817         out values.  Fetch both VAL and ENTRYVAL before comparing
1818         contents.  Adjust to value_available_contents_eq rename.
1819         * valprint.c (valprint_check_validity)
1820         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1821         (val_print_array_elements): Adjust.
1822         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1823         (value_bits_any_optimized_out): New function.
1824         (value_entirely_covered_by_range_vector): New function, factored
1825         out from value_entirely_unavailable.
1826         (value_entirely_unavailable): Reimplement.
1827         (value_entirely_optimized_out): New function.
1828         (insert_into_bit_range_vector): New function, factored out from
1829         mark_value_bits_unavailable.
1830         (mark_value_bits_unavailable): Reimplement.
1831         (struct ranges_and_idx): New struct.
1832         (find_first_range_overlap_and_match): New function, factored out
1833         from value_available_contents_bits_eq.
1834         (value_available_contents_bits_eq): Rename to ...
1835         (value_contents_bits_eq): ... this.  Check both unavailable
1836         contents and optimized out contents.
1837         (value_available_contents_eq): Rename to ...
1838         (value_contents_eq): ... this.
1839         (allocate_value_lazy): Remove reference to the old optimized_out
1840         boolean.
1841         (allocate_optimized_out_value): Use
1842         mark_value_bytes_optimized_out.
1843         (require_not_optimized_out): Adjust to check whether the
1844         optimized_out vec is empty.
1845         (ranges_copy_adjusted): New function, factored out from
1846         value_contents_copy_raw.
1847         (value_contents_copy_raw): Also copy the optimized out ranges.
1848         Assert the destination ranges aren't optimized out.
1849         (value_contents_copy): Update comment, remove call to
1850         require_not_optimized_out.
1851         (value_contents_equal): Adjust to check whether the optimized_out
1852         vec is empty.
1853         (set_value_optimized_out, value_optimized_out_const): Delete.
1854         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1855         New functions.
1856         (value_entirely_optimized_out, value_bits_valid): Delete.
1857         (value_copy): Take a VEC copy of the 'optimized_out' field.
1858         (value_primitive_field): Remove special handling of optimized out.
1859         (value_fetch_lazy): Assert that lazy values have no unavailable
1860         regions.  Use value_bits_any_optimized_out.  Remove some special
1861         handling for optimized out values.
1862         * value.h: Add intro comment about <optimized out> and
1863         <unavailable>.
1864         (struct lval_funcs): Remove check_validity and check_any_valid
1865         fields.
1866         (set_value_optimized_out, value_optimized_out_const): Remove.
1867         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1868         New declarations.
1869         (value_bits_any_optimized_out): New declaration.
1870         (value_bits_valid): Delete declaration.
1871         (value_available_contents_eq): Rename to ...
1872         (value_contents_eq): ... this, and extend comments.
1873
1874 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1875
1876         Fix -fsanitize=address on unreadable inferior strings.
1877         * valprint.c (val_print_string): Fix access before BUFFER.
1878
1879 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1880
1881         * target.c (target_struct_size): Remove.
1882         (target_struct_allocsize): Remove.
1883         (DEFAULT_ALLOCSIZE): Remove.
1884         (target_ops_p): New typedef.
1885         (DEF_VEC_P (target_ops_p)): New vector type.
1886         (target_structs): Change type to VEC (target_ops_p).
1887         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1888         (find_default_run_target): Rewrite for loop following changes to
1889         target_structs.
1890
1891 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1892
1893         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1894         Adjust code accordingly.  Adjust function description comment.
1895
1896 2014-08-19  Yao Qi  <yao@codesourcery.com>
1897
1898         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1899         types.
1900
1901 2014-08-19  Alan Modra  <amodra@gmail.com>
1902
1903         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1904         * config.in: Regenerate.
1905         * configure: Regenerate.
1906
1907 2014-08-19  Tom Tromey  <tromey@redhat.com>
1908             Gary Benson  <gbenson@redhat.com>
1909
1910         * common/common-debug.h: New file.
1911         * common/common-debug.c: Likewise.
1912         * debug.c: Likewise.
1913         * Makefile.in (SFILES): Add common/common-debug.c.
1914         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1915         (COMMON_OBS): Add common-debug.o and debug.o.
1916         (common-debug.o): New rule.
1917         * common/common-defs.h: Include common-debug.h.
1918         * common/agent.c (debug_agent_printf): New function.
1919         (DEBUG_AGENT): Redefine.
1920         * nat/i386-dregs.c (debug_printf): Undefine.
1921
1922 2014-08-19  Gary Benson  <gbenson@redhat.com>
1923
1924         * common/common-defs.h: Include print-utils.h.
1925         * utils.h: Do not include print-utils.h.
1926
1927 2014-08-19  Tom Tromey  <tromey@redhat.com>
1928             Gary Benson  <gbenson@redhat.com>
1929
1930         * common/common-types.h: New file.
1931         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1932         * common/common-defs.h: Include common-types.h.
1933         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1934         (ULONGEST): Remove.
1935
1936 2014-08-19  Tom Tromey  <tromey@redhat.com>
1937             Gary Benson  <gbenson@redhat.com>
1938
1939         * common/errors.h: New file.
1940         * common/errors.c: Likewise.
1941         * Makefile.in (SFILES): Add common/errors.c.
1942         (HFILES_NO_SRCDIR): Add common/errors.h.
1943         (COMMON_OBS): Add errors.o.
1944         (errors.o): New rule.
1945         * common/common-defs.h: Include errors.h.
1946         * utils.h (perror_with_name, error, verror, warning, vwarning):
1947         Don't declare.
1948         * common/common-utils.h: (malloc_failure, internal_error):
1949         Likewise.
1950
1951 2014-08-19  Gary Benson  <gbenson@redhat.com>
1952
1953         * utils.c (internal_vproblem): Always print the message.
1954
1955 2014-08-18  Doug Evans  <dje@google.com>
1956
1957         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1958
1959 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1960
1961         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1962         Return 0 if TYPE is dynamic.
1963         (print_range): Add handling of dynamic ranges.
1964
1965 2014-08-18  Keven Boell  <keven.boell@intel.com>
1966             Joel Brobecker  <brobecker@adacore.com>
1967
1968         * gdbtypes.h (struct main_type): Add field "data_location".
1969         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1970         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1971         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1972         a dynamic data location.
1973         (resolve_dynamic_type): Add DW_AT_data_location handling.
1974         (copy_recursive, copy_type): Copy the data_location information
1975         when present.
1976         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1977         * value.c (value_from_contents_and_address): Add
1978         DW_AT_data_location handling.
1979
1980 2014-08-18  Keven Boell  <keven.boell@intel.com>
1981             Joel Brobecker  <brobecker@adacore.com>
1982
1983         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1984         field "get_object_address".
1985         * dwarf2expr.c (execute_stack_op): Add handling for
1986         DW_OP_push_object_address.
1987         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1988         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1989         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1990         (dwarf_expr_get_obj_addr): New function.
1991         (dwarf_expr_ctx_funcs): Add get_object_address field.
1992         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1993         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1994         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1995         (needs_get_obj_addr): New function.
1996         (needs_frame_ctx_funcs): Add get_object_address field.
1997         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1998         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1999         (resolve_dynamic_array): Likewise.
2000
2001 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2002
2003         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2004         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2005         fixed value for records and unions for which some GNAT encodings
2006         are present.
2007
2008 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2009
2010         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2011         rewrite to avoid "else if" and "else" constructs.  Should be
2012         a no-op in practice.
2013
2014 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2015
2016         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2017         of lexical block.
2018
2019 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2020
2021         PR c++/17132
2022         * eval.c: Update all calls to find_overload_match.
2023         * valarith.c: Likewise.
2024         (value_user_defined_cpp_op, value_user_defined_op): New
2025         argument NOSIDE.  Update all callers.
2026         * valops.c (find_overload_match): New argument NOSIDE.
2027         * value.h (find_overload_match): Update signature.
2028
2029 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2030
2031         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2032         'items' methods instead of 'iteritems' method on dictionaries.
2033
2034 2014-08-15  Doug Evans  <dje@google.com>
2035
2036         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2037         closer to use.
2038
2039 2014-08-15  Doug Evans  <dje@google.com>
2040
2041         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2042
2043 2014-08-15  Doug Evans  <dje@google.com>
2044
2045         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2046
2047 2014-08-15  Doug Evans  <dje@google.com>
2048
2049         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2050         unused.
2051
2052 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2053
2054         * dcache.h: Include target.h, to avoid compile time warnings.
2055
2056 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2057
2058         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2059         frame_info" partial declaration.
2060         * gdbarch.h: Regenerate.
2061
2062 2014-08-15  Yao Qi  <yao@codesourcery.com>
2063
2064         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2065         Add parameter 'decode_for_pst_p'.  Callers update.
2066
2067 2014-08-13  Yao Qi  <yao@codesourcery.com>
2068
2069         PR build/17104
2070         * configure.ac: Use local variable 'pos'.
2071         * configure: Regenerated.
2072
2073 2014-08-11  Doug Evans  <dje@google.com>
2074
2075         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2076         message, it is redundant with "Reading symbols from ..." message.
2077
2078 2014-08-10  Doug Evans  <xdje42@gmail.com>
2079
2080         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2081
2082 2014-08-09  Yao Qi  <yao@codesourcery.com>
2083
2084         PR remote/9053
2085         * remote.c (remote_xfer_partial): Remove dead code.
2086
2087 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2088
2089         * ia64-linux-tdep.c: Include "regset.h".
2090         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2091         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2092         (ia64_linux_supply_fpregset): New function.
2093         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2094         (ia64_linux_regset_from_core_section): New function.
2095         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2096         method.
2097
2098 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2099
2100         * m68klinux-tdep.c: Include "regset.h".
2101         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2102         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2103         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2104         (m68k_linux_regset_from_core_section): New function.
2105         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2106         method.
2107
2108 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2109
2110         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2111         function.  Move logic to...
2112         (tilegx_linux_regmap): ... this new register map.
2113         (tilegx_linux_regset): Refer to register map, replace supply
2114         method by regcache_supply_regset, and add collect method.
2115         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2116         TILEGX_FIRST_EASY_REGNUM.
2117
2118 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2119
2120         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2121         that calls regcache_supply_regset and handles the EPC register
2122         separately.  Move main logic to...
2123         (score7_linux_gregmap): ... this new register map.
2124         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2125         (score7_linux_gregset): Refer to register map.  Add collect method.
2126         (score7_linux_regset_from_core_section): Replace
2127         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2128         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2129         (struct regset): Delete unused forward declaraction.
2130         (struct pt_regs): Delete structure definition.
2131         (elf_gregset_t): Delete typedef.
2132
2133 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2134
2135         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2136         (nios2_core_regset): Add collect method.
2137
2138 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2139
2140         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2141         platform-independent and don't write to read-only input buffer.
2142         (m32r_linux_collect_gregset): New function.
2143         (m32r_linux_gregset): Add collect method.
2144
2145 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2146
2147         * hppa-linux-tdep.c (greg_map): Rename to...
2148         (hppa_linux_gregmap): ... this.  Also convert to
2149         regcache_map_entry format.
2150         (hppa_linux_supply_regset): Delete function.
2151         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2152         (hppa_linux_fpregmap): ... this new register map.
2153         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2154         register map, replace supply method by regcache_supply_regset, and
2155         add collect method regcache_collect_regset.
2156
2157 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2158
2159         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2160         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2161         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2162         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2163         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2164         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2165         (frv_linux_supply_gregset): Replace main logic by call to
2166         regcache_supply_regset, but keep clearing gr32-gr63.
2167         (frv_linux_supply_fpregset): Delete function.
2168         (frv_linux_gregset): Refer to appropriate register map and add
2169         regcache_collect_regset as the collect method.
2170         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2171         by regcache_supply_regset.
2172
2173 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2174
2175         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2176         by call to alpha_supply_int_regs.
2177         (alpha_linux_collect_gregset): New function.
2178         (alpha_linux_supply_fpregset): Replace logic by call to
2179         alpha_supply_fp_regs.
2180         (alpha_linux_collect_fpregset): New function.
2181         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2182
2183 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2184
2185         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2186         by call to regcache_collect_regset.
2187         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2188         instead of aarch64_linux_supply_gregset/_fpregset.
2189         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2190         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2191         header file instead.
2192         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2193         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2194         functions.  Move logic to ...
2195         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2196         register maps.
2197         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2198         refer to new register maps, replace *_regset_from_core by
2199         regcache_supply_regset, and also use regcache_collect_regset.
2200         * aarch64-linux-tdep.h: Include "regset.h".
2201         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2202         Delete prototypes.
2203         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2204         macros, moved from C source file.
2205         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2206         variable declarations.
2207
2208 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2209
2210         * s390-linux-nat.c: Include "regset.h".
2211         (regmap_gregset): Delete macro.
2212         (s390_64_regmap_gregset): New register map for
2213         regcache_supply/_collect_regset.
2214         (s390_64_gregset): New regset.
2215         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2216         (regmap_fpregset): Delete macro.
2217         (s390_native_supply, s390_native_collect): Delete functions.
2218         (supply_gregset, fill_gregset): Replace s390-specific regmap
2219         handling by a call to regcache_supply/_collect_regset.
2220         (supply_fpregset, fill_fpregset): Call regcache_supply/
2221         _collect_regset instead of s390_native_supply/_collect.
2222         (fetch_regset, store_regset): Likewise.  Also change the last
2223         parameter to a regset instead of a regmap.
2224         (s390_linux_fetch_inferior_registers)
2225         (390_linux_store_inferior_registers): Adjust last parameter in
2226         calls to fetch_regset and store_regset.
2227         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2228         (s390_gregmap): ... this.  Also make static const and convert to
2229         regcache_map_entry format.
2230         (s390x_regmap_gregset): Delete.
2231         (s390_regmap_fpregset): Rename to...
2232         (s390_fpregmap): ... this.  Make static const and convert to
2233         regcache_map_entry format.
2234         (s390_regmap_upper, s390_regmap_last_break)
2235         (s390x_regmap_last_break, s390_regmap_system_call)
2236         (s390_regmap_tdb): Likewise.
2237         (s390_supply_regset, s390_collect_regset): Remove functions.
2238         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2239         s390_supply_regset.
2240         (s390_gregset, s390_fpregset, s390_upper_regset)
2241         (s390_last_break_regset, s390x_last_break_regset)
2242         (s390_system_call_regset, s390_tdb_regset): Make global and
2243         replace s390_supply/_collect_regset by regcache_supply/
2244         _collect_regset.
2245         (s390x_gregset): Delete.
2246         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2247         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2248         (s390_regmap_fpregset, s390_regmap_last_break)
2249         (s390x_regmap_last_break, s390_regmap_system_call)
2250         (s390_regmap_tdb): Delete global variable declarations.
2251         (s390_gregset, s390_fpregset, s390_last_break_regset)
2252         (s390x_last_break_regset, s390_system_call_regset)
2253         (s390_tdb_regset): New global variable declarations.
2254
2255 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2256
2257         * regcache.c: Include "regset.h".
2258         (regcache_transfer_regset): New local function.
2259         (regcache_supply_regset, regcache_collect_regset): New functions.
2260         * regcache.h (struct regcache_map_entry): New structure.
2261         (REGCACHE_MAP_SKIP): New enum value.
2262         (regcache_supply_regset, regcache_collect_regset): New prototypes.
2263
2264 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2265
2266         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2267         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2268         (ppc_linux_collect_gregset ): Likewise.
2269         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2270         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2271         (ppc_collect_vrregset): Likewise.
2272         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2273         Likewise.
2274
2275 2014-08-07  Yao Qi  <yao@codesourcery.com>
2276
2277         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2278         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2279         * remote.c (remote_read_bytes): Likewise.
2280
2281 2014-08-07  Yao Qi  <yao@codesourcery.com>
2282
2283         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2284
2285 2014-08-07  Yao Qi  <yao@codesourcery.com>
2286
2287         PR remote/17230
2288         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2289         TARGET_XFER_OK instead of 0.
2290
2291 2014-08-07  Gary Benson  <gbenson@redhat.com>
2292
2293         * common/common-defs.h: Include errno.h.
2294         * defs.h: Do not include errno.h.
2295         * ada-typeprint.c: Likewise.
2296         * c-typeprint.c: Likewise.
2297         * core-regset.c: Likewise.
2298         * corefile.c: Likewise.
2299         * corelow.c: Likewise.
2300         * event-loop.c: Likewise.
2301         * f-typeprint.c: Likewise.
2302         * gnu-nat.c: Likewise.
2303         * go32-nat.c: Likewise.
2304         * i386gnu-nat.c: Likewise.
2305         * m2-typeprint.c: Likewise.
2306         * nat/linux-btrace.c: Likewise.
2307         * p-typeprint.c: Likewise.
2308         * procfs.c: Likewise.
2309         * remote-sim.c: Likewise.
2310         * rs6000-nat.c: Likewise.
2311         * target.c: Likewise.
2312         * typeprint.c: Likewise.
2313         * ui-file.c: Likewise.
2314         * valops.c: Likewise.
2315         * valprint.c: Likewise.
2316
2317 2014-08-07  Gary Benson  <gbenson@redhat.com>
2318
2319         * common/common-defs.h: Include string.h.
2320         * aarch64-tdep.c: Do not include string.h.
2321         * ada-exp.y: Likewise.
2322         * ada-lang.c: Likewise.
2323         * ada-lex.l: Likewise.
2324         * ada-typeprint.c: Likewise.
2325         * ada-valprint.c: Likewise.
2326         * aix-thread.c: Likewise.
2327         * alpha-linux-tdep.c: Likewise.
2328         * alpha-mdebug-tdep.c: Likewise.
2329         * alpha-nat.c: Likewise.
2330         * alpha-osf1-tdep.c: Likewise.
2331         * alpha-tdep.c: Likewise.
2332         * alphanbsd-tdep.c: Likewise.
2333         * amd64-dicos-tdep.c: Likewise.
2334         * amd64-linux-tdep.c: Likewise.
2335         * amd64-nat.c: Likewise.
2336         * amd64-sol2-tdep.c: Likewise.
2337         * amd64fbsd-tdep.c: Likewise.
2338         * amd64obsd-tdep.c: Likewise.
2339         * arch-utils.c: Likewise.
2340         * arm-linux-nat.c: Likewise.
2341         * arm-linux-tdep.c: Likewise.
2342         * arm-tdep.c: Likewise.
2343         * arm-wince-tdep.c: Likewise.
2344         * armbsd-tdep.c: Likewise.
2345         * armnbsd-nat.c: Likewise.
2346         * armnbsd-tdep.c: Likewise.
2347         * armobsd-tdep.c: Likewise.
2348         * avr-tdep.c: Likewise.
2349         * ax-gdb.c: Likewise.
2350         * ax-general.c: Likewise.
2351         * bcache.c: Likewise.
2352         * bfin-tdep.c: Likewise.
2353         * breakpoint.c: Likewise.
2354         * build-id.c: Likewise.
2355         * buildsym.c: Likewise.
2356         * c-exp.y: Likewise.
2357         * c-lang.c: Likewise.
2358         * c-typeprint.c: Likewise.
2359         * c-valprint.c: Likewise.
2360         * charset.c: Likewise.
2361         * cli-out.c: Likewise.
2362         * cli/cli-cmds.c: Likewise.
2363         * cli/cli-decode.c: Likewise.
2364         * cli/cli-dump.c: Likewise.
2365         * cli/cli-interp.c: Likewise.
2366         * cli/cli-logging.c: Likewise.
2367         * cli/cli-script.c: Likewise.
2368         * cli/cli-setshow.c: Likewise.
2369         * cli/cli-utils.c: Likewise.
2370         * coffread.c: Likewise.
2371         * common/agent.c: Likewise.
2372         * common/buffer.c: Likewise.
2373         * common/buffer.h: Likewise.
2374         * common/common-utils.c: Likewise.
2375         * common/filestuff.c: Likewise.
2376         * common/filestuff.c: Likewise.
2377         * common/format.c: Likewise.
2378         * common/print-utils.c: Likewise.
2379         * common/rsp-low.c: Likewise.
2380         * common/signals.c: Likewise.
2381         * common/vec.h: Likewise.
2382         * common/xml-utils.c: Likewise.
2383         * core-regset.c: Likewise.
2384         * corefile.c: Likewise.
2385         * corelow.c: Likewise.
2386         * cp-abi.c: Likewise.
2387         * cp-name-parser.y: Likewise.
2388         * cp-support.c: Likewise.
2389         * cp-valprint.c: Likewise.
2390         * cris-tdep.c: Likewise.
2391         * d-exp.y: Likewise.
2392         * darwin-nat.c: Likewise.
2393         * dbxread.c: Likewise.
2394         * dcache.c: Likewise.
2395         * demangle.c: Likewise.
2396         * dicos-tdep.c: Likewise.
2397         * disasm.c: Likewise.
2398         * doublest.c: Likewise.
2399         * dsrec.c: Likewise.
2400         * dummy-frame.c: Likewise.
2401         * dwarf2-frame.c: Likewise.
2402         * dwarf2loc.c: Likewise.
2403         * dwarf2read.c: Likewise.
2404         * elfread.c: Likewise.
2405         * environ.c: Likewise.
2406         * eval.c: Likewise.
2407         * event-loop.c: Likewise.
2408         * exceptions.c: Likewise.
2409         * exec.c: Likewise.
2410         * expprint.c: Likewise.
2411         * f-exp.y: Likewise.
2412         * f-lang.c: Likewise.
2413         * f-typeprint.c: Likewise.
2414         * f-valprint.c: Likewise.
2415         * fbsd-nat.c: Likewise.
2416         * findcmd.c: Likewise.
2417         * findvar.c: Likewise.
2418         * fork-child.c: Likewise.
2419         * frame.c: Likewise.
2420         * frv-linux-tdep.c: Likewise.
2421         * frv-tdep.c: Likewise.
2422         * gdb.c: Likewise.
2423         * gdb_bfd.c: Likewise.
2424         * gdbarch.c: Likewise.
2425         * gdbarch.sh: Likewise.
2426         * gdbtypes.c: Likewise.
2427         * gnu-nat.c: Likewise.
2428         * gnu-v2-abi.c: Likewise.
2429         * gnu-v3-abi.c: Likewise.
2430         * go-exp.y: Likewise.
2431         * go-lang.c: Likewise.
2432         * go32-nat.c: Likewise.
2433         * guile/guile.c: Likewise.
2434         * guile/scm-auto-load.c: Likewise.
2435         * hppa-hpux-tdep.c: Likewise.
2436         * hppa-linux-nat.c: Likewise.
2437         * hppanbsd-tdep.c: Likewise.
2438         * hppaobsd-tdep.c: Likewise.
2439         * i386-cygwin-tdep.c: Likewise.
2440         * i386-dicos-tdep.c: Likewise.
2441         * i386-linux-tdep.c: Likewise.
2442         * i386-nto-tdep.c: Likewise.
2443         * i386-sol2-tdep.c: Likewise.
2444         * i386-tdep.c: Likewise.
2445         * i386bsd-tdep.c: Likewise.
2446         * i386gnu-nat.c: Likewise.
2447         * i386nbsd-tdep.c: Likewise.
2448         * i386obsd-tdep.c: Likewise.
2449         * i387-tdep.c: Likewise.
2450         * ia64-libunwind-tdep.c: Likewise.
2451         * ia64-linux-nat.c: Likewise.
2452         * inf-child.c: Likewise.
2453         * inf-ptrace.c: Likewise.
2454         * inf-ttrace.c: Likewise.
2455         * infcall.c: Likewise.
2456         * infcmd.c: Likewise.
2457         * inflow.c: Likewise.
2458         * infrun.c: Likewise.
2459         * interps.c: Likewise.
2460         * iq2000-tdep.c: Likewise.
2461         * irix5-nat.c: Likewise.
2462         * jv-exp.y: Likewise.
2463         * jv-lang.c: Likewise.
2464         * jv-typeprint.c: Likewise.
2465         * jv-valprint.c: Likewise.
2466         * language.c: Likewise.
2467         * linux-fork.c: Likewise.
2468         * linux-nat.c: Likewise.
2469         * lm32-tdep.c: Likewise.
2470         * m2-exp.y: Likewise.
2471         * m2-typeprint.c: Likewise.
2472         * m32c-tdep.c: Likewise.
2473         * m32r-linux-nat.c: Likewise.
2474         * m32r-linux-tdep.c: Likewise.
2475         * m32r-rom.c: Likewise.
2476         * m32r-tdep.c: Likewise.
2477         * m68hc11-tdep.c: Likewise.
2478         * m68k-tdep.c: Likewise.
2479         * m68kbsd-tdep.c: Likewise.
2480         * m68klinux-nat.c: Likewise.
2481         * m68klinux-tdep.c: Likewise.
2482         * m88k-tdep.c: Likewise.
2483         * machoread.c: Likewise.
2484         * macrocmd.c: Likewise.
2485         * main.c: Likewise.
2486         * mdebugread.c: Likewise.
2487         * mem-break.c: Likewise.
2488         * memattr.c: Likewise.
2489         * memory-map.c: Likewise.
2490         * mep-tdep.c: Likewise.
2491         * mi/mi-cmd-break.c: Likewise.
2492         * mi/mi-cmd-disas.c: Likewise.
2493         * mi/mi-cmd-env.c: Likewise.
2494         * mi/mi-cmd-stack.c: Likewise.
2495         * mi/mi-cmd-var.c: Likewise.
2496         * mi/mi-cmds.c: Likewise.
2497         * mi/mi-console.c: Likewise.
2498         * mi/mi-getopt.c: Likewise.
2499         * mi/mi-interp.c: Likewise.
2500         * mi/mi-main.c: Likewise.
2501         * mi/mi-parse.c: Likewise.
2502         * microblaze-rom.c: Likewise.
2503         * microblaze-tdep.c: Likewise.
2504         * mingw-hdep.c: Likewise.
2505         * minidebug.c: Likewise.
2506         * minsyms.c: Likewise.
2507         * mips-irix-tdep.c: Likewise.
2508         * mips-linux-tdep.c: Likewise.
2509         * mips-tdep.c: Likewise.
2510         * mips64obsd-tdep.c: Likewise.
2511         * mipsnbsd-tdep.c: Likewise.
2512         * mipsread.c: Likewise.
2513         * mn10300-linux-tdep.c: Likewise.
2514         * mn10300-tdep.c: Likewise.
2515         * monitor.c: Likewise.
2516         * moxie-tdep.c: Likewise.
2517         * mt-tdep.c: Likewise.
2518         * nat/linux-btrace.c: Likewise.
2519         * nat/linux-osdata.c: Likewise.
2520         * nat/linux-procfs.c: Likewise.
2521         * nat/linux-ptrace.c: Likewise.
2522         * nat/linux-waitpid.c: Likewise.
2523         * nbsd-tdep.c: Likewise.
2524         * nios2-linux-tdep.c: Likewise.
2525         * nto-procfs.c: Likewise.
2526         * nto-tdep.c: Likewise.
2527         * objc-lang.c: Likewise.
2528         * objfiles.c: Likewise.
2529         * opencl-lang.c: Likewise.
2530         * osabi.c: Likewise.
2531         * osdata.c: Likewise.
2532         * p-exp.y: Likewise.
2533         * p-lang.c: Likewise.
2534         * p-typeprint.c: Likewise.
2535         * parse.c: Likewise.
2536         * posix-hdep.c: Likewise.
2537         * ppc-linux-nat.c: Likewise.
2538         * ppc-sysv-tdep.c: Likewise.
2539         * ppcfbsd-tdep.c: Likewise.
2540         * ppcnbsd-tdep.c: Likewise.
2541         * ppcobsd-tdep.c: Likewise.
2542         * printcmd.c: Likewise.
2543         * procfs.c: Likewise.
2544         * prologue-value.c: Likewise.
2545         * python/py-auto-load.c: Likewise.
2546         * python/py-gdb-readline.c: Likewise.
2547         * ravenscar-thread.c: Likewise.
2548         * regcache.c: Likewise.
2549         * registry.c: Likewise.
2550         * remote-fileio.c: Likewise.
2551         * remote-m32r-sdi.c: Likewise.
2552         * remote-mips.c: Likewise.
2553         * remote-notif.c: Likewise.
2554         * remote-sim.c: Likewise.
2555         * remote.c: Likewise.
2556         * reverse.c: Likewise.
2557         * rs6000-aix-tdep.c: Likewise.
2558         * ser-base.c: Likewise.
2559         * ser-go32.c: Likewise.
2560         * ser-mingw.c: Likewise.
2561         * ser-pipe.c: Likewise.
2562         * ser-tcp.c: Likewise.
2563         * ser-unix.c: Likewise.
2564         * serial.c: Likewise.
2565         * sh-tdep.c: Likewise.
2566         * sh64-tdep.c: Likewise.
2567         * shnbsd-tdep.c: Likewise.
2568         * skip.c: Likewise.
2569         * sol-thread.c: Likewise.
2570         * solib-dsbt.c: Likewise.
2571         * solib-frv.c: Likewise.
2572         * solib-osf.c: Likewise.
2573         * solib-som.c: Likewise.
2574         * solib-spu.c: Likewise.
2575         * solib-target.c: Likewise.
2576         * solib.c: Likewise.
2577         * somread.c: Likewise.
2578         * source.c: Likewise.
2579         * sparc-nat.c: Likewise.
2580         * sparc-sol2-tdep.c: Likewise.
2581         * sparc-tdep.c: Likewise.
2582         * sparc64-tdep.c: Likewise.
2583         * sparc64fbsd-tdep.c: Likewise.
2584         * sparc64nbsd-tdep.c: Likewise.
2585         * sparcnbsd-tdep.c: Likewise.
2586         * spu-linux-nat.c: Likewise.
2587         * spu-multiarch.c: Likewise.
2588         * spu-tdep.c: Likewise.
2589         * stabsread.c: Likewise.
2590         * stack.c: Likewise.
2591         * std-regs.c: Likewise.
2592         * symfile.c: Likewise.
2593         * symmisc.c: Likewise.
2594         * symtab.c: Likewise.
2595         * target.c: Likewise.
2596         * thread.c: Likewise.
2597         * tilegx-linux-nat.c: Likewise.
2598         * tilegx-tdep.c: Likewise.
2599         * top.c: Likewise.
2600         * tracepoint.c: Likewise.
2601         * tui/tui-command.c: Likewise.
2602         * tui/tui-data.c: Likewise.
2603         * tui/tui-disasm.c: Likewise.
2604         * tui/tui-file.c: Likewise.
2605         * tui/tui-layout.c: Likewise.
2606         * tui/tui-out.c: Likewise.
2607         * tui/tui-regs.c: Likewise.
2608         * tui/tui-source.c: Likewise.
2609         * tui/tui-stack.c: Likewise.
2610         * tui/tui-win.c: Likewise.
2611         * tui/tui-windata.c: Likewise.
2612         * tui/tui-winsource.c: Likewise.
2613         * typeprint.c: Likewise.
2614         * ui-file.c: Likewise.
2615         * ui-out.c: Likewise.
2616         * user-regs.c: Likewise.
2617         * utils.c: Likewise.
2618         * v850-tdep.c: Likewise.
2619         * valarith.c: Likewise.
2620         * valops.c: Likewise.
2621         * valprint.c: Likewise.
2622         * value.c: Likewise.
2623         * varobj.c: Likewise.
2624         * vax-tdep.c: Likewise.
2625         * vaxnbsd-tdep.c: Likewise.
2626         * vaxobsd-tdep.c: Likewise.
2627         * windows-nat.c: Likewise.
2628         * xcoffread.c: Likewise.
2629         * xml-support.c: Likewise.
2630         * xstormy16-tdep.c: Likewise.
2631         * xtensa-linux-nat.c: Likewise.
2632
2633 2014-08-07  Gary Benson  <gbenson@redhat.com>
2634
2635         * common/common-defs.h: Include gdb_assert.h.
2636         * aarch64-tdep.c: Do not include gdb_assert.h.
2637         * addrmap.c: Likewise.
2638         * aix-thread.c: Likewise.
2639         * alpha-linux-tdep.c: Likewise.
2640         * alpha-mdebug-tdep.c: Likewise.
2641         * alphanbsd-tdep.c: Likewise.
2642         * amd64-nat.c: Likewise.
2643         * amd64-tdep.c: Likewise.
2644         * amd64bsd-nat.c: Likewise.
2645         * amd64fbsd-nat.c: Likewise.
2646         * amd64fbsd-tdep.c: Likewise.
2647         * amd64nbsd-nat.c: Likewise.
2648         * amd64nbsd-tdep.c: Likewise.
2649         * amd64obsd-nat.c: Likewise.
2650         * amd64obsd-tdep.c: Likewise.
2651         * arch-utils.c: Likewise.
2652         * arm-tdep.c: Likewise.
2653         * armbsd-tdep.c: Likewise.
2654         * auxv.c: Likewise.
2655         * bcache.c: Likewise.
2656         * bfin-tdep.c: Likewise.
2657         * blockframe.c: Likewise.
2658         * breakpoint.c: Likewise.
2659         * bsd-kvm.c: Likewise.
2660         * bsd-uthread.c: Likewise.
2661         * buildsym.c: Likewise.
2662         * c-exp.y: Likewise.
2663         * c-lang.c: Likewise.
2664         * charset.c: Likewise.
2665         * cleanups.c: Likewise.
2666         * cli-out.c: Likewise.
2667         * cli/cli-decode.c: Likewise.
2668         * cli/cli-dump.c: Likewise.
2669         * cli/cli-logging.c: Likewise.
2670         * cli/cli-script.c: Likewise.
2671         * cli/cli-utils.c: Likewise.
2672         * coffread.c: Likewise.
2673         * common/common-utils.c: Likewise.
2674         * common/queue.h: Likewise.
2675         * common/signals.c: Likewise.
2676         * common/vec.h: Likewise.
2677         * complaints.c: Likewise.
2678         * completer.c: Likewise.
2679         * corelow.c: Likewise.
2680         * cp-abi.c: Likewise.
2681         * cp-name-parser.y: Likewise.
2682         * cp-namespace.c: Likewise.
2683         * cp-support.c: Likewise.
2684         * cris-tdep.c: Likewise.
2685         * dbxread.c: Likewise.
2686         * dictionary.c: Likewise.
2687         * doublest.c: Likewise.
2688         * dsrec.c: Likewise.
2689         * dummy-frame.c: Likewise.
2690         * dwarf2-frame-tailcall.c: Likewise.
2691         * dwarf2-frame.c: Likewise.
2692         * dwarf2expr.c: Likewise.
2693         * dwarf2loc.c: Likewise.
2694         * dwarf2read.c: Likewise.
2695         * eval.c: Likewise.
2696         * event-loop.c: Likewise.
2697         * exceptions.c: Likewise.
2698         * expprint.c: Likewise.
2699         * f-valprint.c: Likewise.
2700         * fbsd-nat.c: Likewise.
2701         * findvar.c: Likewise.
2702         * frame-unwind.c: Likewise.
2703         * frame.c: Likewise.
2704         * frv-tdep.c: Likewise.
2705         * gcore.c: Likewise.
2706         * gdb-dlfcn.c: Likewise.
2707         * gdb_bfd.c: Likewise.
2708         * gdbarch.c: Likewise.
2709         * gdbarch.sh: Likewise.
2710         * gdbtypes.c: Likewise.
2711         * gnu-nat.c: Likewise.
2712         * gnu-v3-abi.c: Likewise.
2713         * go-lang.c: Likewise.
2714         * guile/scm-exception.c: Likewise.
2715         * guile/scm-gsmob.c: Likewise.
2716         * guile/scm-lazy-string.c: Likewise.
2717         * guile/scm-math.c: Likewise.
2718         * guile/scm-pretty-print.c: Likewise.
2719         * guile/scm-safe-call.c: Likewise.
2720         * guile/scm-utils.c: Likewise.
2721         * guile/scm-value.c: Likewise.
2722         * h8300-tdep.c: Likewise.
2723         * hppa-hpux-nat.c: Likewise.
2724         * hppa-tdep.c: Likewise.
2725         * hppanbsd-tdep.c: Likewise.
2726         * hppaobsd-tdep.c: Likewise.
2727         * i386-darwin-nat.c: Likewise.
2728         * i386-darwin-tdep.c: Likewise.
2729         * i386-nto-tdep.c: Likewise.
2730         * i386-tdep.c: Likewise.
2731         * i386bsd-nat.c: Likewise.
2732         * i386fbsd-tdep.c: Likewise.
2733         * i386gnu-nat.c: Likewise.
2734         * i386nbsd-tdep.c: Likewise.
2735         * i386obsd-tdep.c: Likewise.
2736         * i387-tdep.c: Likewise.
2737         * ia64-libunwind-tdep.c: Likewise.
2738         * ia64-tdep.c: Likewise.
2739         * inf-ptrace.c: Likewise.
2740         * inf-ttrace.c: Likewise.
2741         * infcall.c: Likewise.
2742         * infcmd.c: Likewise.
2743         * infrun.c: Likewise.
2744         * inline-frame.c: Likewise.
2745         * interps.c: Likewise.
2746         * jv-lang.c: Likewise.
2747         * jv-typeprint.c: Likewise.
2748         * linux-fork.c: Likewise.
2749         * linux-nat.c: Likewise.
2750         * linux-thread-db.c: Likewise.
2751         * m32c-tdep.c: Likewise.
2752         * m32r-linux-nat.c: Likewise.
2753         * m32r-tdep.c: Likewise.
2754         * m68k-tdep.c: Likewise.
2755         * m68kbsd-nat.c: Likewise.
2756         * m68kbsd-tdep.c: Likewise.
2757         * m88k-tdep.c: Likewise.
2758         * machoread.c: Likewise.
2759         * macroexp.c: Likewise.
2760         * macrotab.c: Likewise.
2761         * maint.c: Likewise.
2762         * mdebugread.c: Likewise.
2763         * memory-map.c: Likewise.
2764         * mep-tdep.c: Likewise.
2765         * mi/mi-common.c: Likewise.
2766         * microblaze-tdep.c: Likewise.
2767         * mingw-hdep.c: Likewise.
2768         * mips-linux-nat.c: Likewise.
2769         * mips-linux-tdep.c: Likewise.
2770         * mips-tdep.c: Likewise.
2771         * mips64obsd-tdep.c: Likewise.
2772         * mipsnbsd-tdep.c: Likewise.
2773         * mn10300-linux-tdep.c: Likewise.
2774         * mn10300-tdep.c: Likewise.
2775         * moxie-tdep.c: Likewise.
2776         * mt-tdep.c: Likewise.
2777         * nat/linux-btrace.c: Likewise.
2778         * nat/linux-osdata.c: Likewise.
2779         * nat/linux-ptrace.c: Likewise.
2780         * nat/mips-linux-watch.c: Likewise.
2781         * nios2-linux-tdep.c: Likewise.
2782         * nios2-tdep.c: Likewise.
2783         * objc-lang.c: Likewise.
2784         * objfiles.c: Likewise.
2785         * obsd-nat.c: Likewise.
2786         * opencl-lang.c: Likewise.
2787         * osabi.c: Likewise.
2788         * parse.c: Likewise.
2789         * ppc-linux-nat.c: Likewise.
2790         * ppc-sysv-tdep.c: Likewise.
2791         * ppcfbsd-nat.c: Likewise.
2792         * ppcfbsd-tdep.c: Likewise.
2793         * ppcnbsd-nat.c: Likewise.
2794         * ppcnbsd-tdep.c: Likewise.
2795         * ppcobsd-nat.c: Likewise.
2796         * ppcobsd-tdep.c: Likewise.
2797         * printcmd.c: Likewise.
2798         * procfs.c: Likewise.
2799         * prologue-value.c: Likewise.
2800         * psymtab.c: Likewise.
2801         * python/py-lazy-string.c: Likewise.
2802         * python/py-value.c: Likewise.
2803         * regcache.c: Likewise.
2804         * reggroups.c: Likewise.
2805         * registry.c: Likewise.
2806         * remote-sim.c: Likewise.
2807         * remote.c: Likewise.
2808         * rs6000-aix-tdep.c: Likewise.
2809         * rs6000-tdep.c: Likewise.
2810         * s390-linux-tdep.c: Likewise.
2811         * score-tdep.c: Likewise.
2812         * ser-base.c: Likewise.
2813         * ser-mingw.c: Likewise.
2814         * sh-tdep.c: Likewise.
2815         * sh64-tdep.c: Likewise.
2816         * solib-darwin.c: Likewise.
2817         * solib-spu.c: Likewise.
2818         * solib-svr4.c: Likewise.
2819         * source.c: Likewise.
2820         * sparc-nat.c: Likewise.
2821         * sparc-sol2-tdep.c: Likewise.
2822         * sparc-tdep.c: Likewise.
2823         * sparc64-sol2-tdep.c: Likewise.
2824         * sparc64-tdep.c: Likewise.
2825         * sparc64fbsd-tdep.c: Likewise.
2826         * sparc64nbsd-tdep.c: Likewise.
2827         * sparc64obsd-tdep.c: Likewise.
2828         * sparcnbsd-tdep.c: Likewise.
2829         * sparcobsd-tdep.c: Likewise.
2830         * spu-multiarch.c: Likewise.
2831         * spu-tdep.c: Likewise.
2832         * stabsread.c: Likewise.
2833         * stack.c: Likewise.
2834         * symfile.c: Likewise.
2835         * symtab.c: Likewise.
2836         * target-descriptions.c: Likewise.
2837         * target-memory.c: Likewise.
2838         * target.c: Likewise.
2839         * tic6x-linux-tdep.c: Likewise.
2840         * tic6x-tdep.c: Likewise.
2841         * tilegx-linux-nat.c: Likewise.
2842         * tilegx-tdep.c: Likewise.
2843         * top.c: Likewise.
2844         * tramp-frame.c: Likewise.
2845         * tui/tui-out.c: Likewise.
2846         * tui/tui-winsource.c: Likewise.
2847         * ui-out.c: Likewise.
2848         * user-regs.c: Likewise.
2849         * utils.c: Likewise.
2850         * v850-tdep.c: Likewise.
2851         * valops.c: Likewise.
2852         * value.c: Likewise.
2853         * varobj.c: Likewise.
2854         * vax-nat.c: Likewise.
2855         * xml-syscall.c: Likewise.
2856         * xml-tdesc.c: Likewise.
2857         * xstormy16-tdep.c: Likewise.
2858         * xtensa-linux-nat.c: Likewise.
2859         * xtensa-tdep.c: Likewise.
2860
2861 2014-08-07  Gary Benson  <gbenson@redhat.com>
2862
2863         * common/common-defs.h: Include common-utils.h.
2864         * defs.h: Do not include common-utils.h.
2865         * common/gdb_assert.h: Likewise.
2866         * darwin-nat.h: Likewise.
2867         * nat/linux-btrace.c: Likewise.
2868         * target/waitstatus.h: Likewise.
2869
2870 2014-08-07  Gary Benson  <gbenson@redhat.com>
2871
2872         * common/common-defs.h: Include ptid.h.
2873         * defs.h: Do not include ptid.h.
2874         * inferior.h: Likewise.
2875         * infrun.h: Likewise.
2876         * nat/linux-btrace.h: Likewise.
2877         * nat/linux-osdata.h: Likewise.
2878         * target/waitstatus.h: Likewise.
2879
2880 2014-08-07  Gary Benson  <gbenson@redhat.com>
2881
2882         * common/common-defs.h: Include gdb_locale.h.
2883         * defs.h: Do not include gdb_locale.h.
2884
2885 2014-08-07  Gary Benson  <gbenson@redhat.com>
2886
2887         * common/common-defs.h: Include gdb/signals.h.
2888         * defs.h: Do not include gdb/signals.h.
2889
2890 2014-08-07  Gary Benson  <gbenson@redhat.com>
2891
2892         * common/common-defs.h: Include pathmax.h.
2893         * defs.h: Do not include pathmax.h.
2894
2895 2014-08-07  Gary Benson  <gbenson@redhat.com>
2896
2897         * common/common-defs.h: Include libiberty.h.
2898         * defs.h: Do not include libiberty.h.
2899         * common/queue.h: Likewise.
2900         * cp-name-parser.y: Likewise.
2901         * mi/mi-cmd-catch.c: Likewise.
2902         * python/python.c: Likewise.
2903
2904 2014-08-07  Gary Benson  <gbenson@redhat.com>
2905
2906         * common/common-defs.h: Include ansidecl.h.
2907         * defs.h: Do not include ansidecl.h.
2908         * common/buffer.h: Likewise.
2909         * common/common-utils.h: Likewise.
2910
2911 2014-08-07  Gary Benson  <gbenson@redhat.com>
2912
2913         * common/common-defs.h: Include stddef.h.
2914         * defs.h: Do not include stddef.h.
2915         * common/common-utils.h: Likewise.
2916         * amd64fbsd-nat.c: Likewise.
2917         * bcache.c: Likewise.
2918         * charset.c: Likewise.
2919         * common/buffer.h: Likewise.
2920         * common/vec.h: Likewise.
2921         * i386bsd-nat.c: Likewise.
2922         * nat/linux-btrace.h: Likewise.
2923         * ppcfbsd-nat.c: Likewise.
2924         * ppcnbsd-tdep.h: Likewise.
2925         * ppcobsd-nat.c: Likewise.
2926         * ppcobsd-tdep.h: Likewise.
2927         * python/py-gdb-readline.c: Likewise.
2928
2929 2014-08-07  Gary Benson  <gbenson@redhat.com>
2930
2931         * common/common-defs.h: Include stdarg.h.
2932         * defs.h: Do not include stdarg.h.
2933         * ada-lang.c: Likewise.
2934         * common/common-utils.h: Likewise.
2935         * guile/scm-string.c: Likewise.
2936         * guile/scm-utils.c: Likewise.
2937         * m32c-tdep.c: Likewise.
2938
2939 2014-08-07  Gary Benson  <gbenson@redhat.com>
2940
2941         * common/common-defs.h: Include stdlib.h.
2942         * defs.h: Do not include stdlib.h.
2943         * addrmap.c: Likewise.
2944         * bcache.c: Likewise.
2945         * common/buffer.c: Likewise.
2946         * common/common-utils.c: Likewise.
2947         * cp-name-parser.y: Likewise.
2948         * go32-nat.c: Likewise.
2949         * mn10300-linux-tdep.c: Likewise.
2950         * nat/linux-osdata.c: Likewise.
2951         * tui/tui.c: Likewise.
2952         * windows-nat.c: Likewise.
2953
2954 2014-08-07  Gary Benson  <gbenson@redhat.com>
2955
2956         * common/common-defs.h: Include stdio.h.
2957         * defs.h: Do not include stdio.h.
2958         * ada-lang.c: Likewise.
2959         * common/buffer.c: Likewise.
2960         * common/common-utils.c: Likewise.
2961         * cp-name-parser.y: Likewise.
2962         * gnu-nat.c: Likewise.
2963         * go32-nat.c: Likewise.
2964         * i386gnu-nat.c: Likewise.
2965         * proc-api.c: Likewise.
2966         * proc-events.c: Likewise.
2967         * proc-flags.c: Likewise.
2968         * proc-why.c: Likewise.
2969         * python/python-internal.h: Likewise.
2970         * target-memory.c: Likewise.
2971         * tui/tui-io.c: Likewise.
2972         * tui/tui.c: Likewise.
2973
2974 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2975
2976         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2977         (scan_dyntag_auxv): Same.
2978
2979 2014-08-06  Yao Qi  <yao@codesourcery.com>
2980
2981         * amd64-linux-nat.c: Remove duplicated include
2982         "x86-linux-nat.h".
2983         * i386-linux-nat.c: Likewise.
2984
2985 2014-08-06  Yao Qi  <yao@codesourcery.com>
2986
2987         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2988         operand" with "Special opcode" in comments.
2989
2990 2014-08-05  Gary Benson  <gbenson@redhat.com>
2991
2992         * interps.c (initialize_interps): Remove prototype.
2993         (interpreter_initialized): Remove static global.
2994         (interp_add): Do not call initialize_interps.
2995         (initialize_interps): Remove function.
2996
2997 2014-08-05  Gary Benson  <gbenson@redhat.com>
2998
2999         * utils.c (vwarning): Remove spurious va_end.
3000
3001 2014-08-05  Alan Modra  <amodra@gmail.com>
3002
3003         * charset.c (convert_between_encodings): Cast result of obstack_base.
3004         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3005         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3006         (read_unwind_info): Use size_t for some locals.
3007         * jit.c (finalize_symtab): Likewise.
3008         * utils.c (hashtab_obstack_allocate): Likewise.
3009         * symmisc.c (print_objfile_statistics): Update format strings.
3010
3011 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3012
3013         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3014         (Changes in GDB 7.8): ... here.
3015
3016 2014-08-04  Tom Tromey  <tromey@redhat.com>
3017
3018         * target.c (set_targetdebug): New function.
3019         (initialize_targets): Pass set_targetdebug when creating "set
3020         debug target".
3021
3022 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3023
3024         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3025         if detecting a variable-sized field that is not the last field.
3026         Fix struct type length computation.
3027
3028 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3029
3030         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3031         Add debug trace.
3032
3033 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3034
3035         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3036         Remove "+ 8" offset in computation of CHAIN_VMA.
3037
3038 2014-07-31  Doug Evans  <dje@google.com>
3039
3040         * inflow.c (child_terminal_inferior): Add comment.
3041         (child_terminal_ours_for_output): Add comment.
3042         (child_terminal_ours): Add comment.
3043         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3044         (linux_nat_terminal_ours): Add comment.
3045
3046 2014-07-31  Gary Benson  <gbenson@redhat.com>
3047
3048         * common/btrace-common.h: Do not include defs.h or server.h.
3049         * nat/mips-linux-watch.h: Likewise.
3050         * gdb-dlfcn.h: Do not include defs.h.
3051         * tracefile.h: Likewise.
3052
3053 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3054
3055         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3056
3057 2014-07-30  Tom Tromey  <tromey@redhat.com>
3058
3059         * bsd-kvm.c (bsd_kvm_open): Constify.
3060         * corelow.c (core_open): Constify.
3061         * ctf.c (ctf_open): Constify.
3062         * dbug-rom.c (dbug_open): Constify.
3063         * exec.c (exec_open): Constify.
3064         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3065         * microblaze-rom.c (picobug_open): Constify.
3066         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3067         Constify.
3068         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3069         * record-btrace.c (record_btrace_open): Constify.
3070         * record-full.c (record_full_core_open_1, record_full_open_1)
3071         (record_full_open): Constify.
3072         * remote-m32r-sdi.c (m32r_open): Constify.
3073         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3074         (rockhopper_open, lsi_open): Constify.
3075         * remote-sim.c (gdbsim_open): Constify.
3076         * remote.c (remote_open, extended_remote_open, remote_open_1):
3077         Constify.
3078         * target.h (struct target_ops) <to_open>: Make "arg" const.
3079         * tracefile-tfile.c (tfile_open): Constify.
3080
3081 2014-07-30  Tom Tromey  <tromey@redhat.com>
3082
3083         * breakpoint.c (map_breakpoint_numbers): Update.
3084         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3085         (get_number_const): New function.
3086         (get_number): Rewrite using get_number_const.
3087         (init_number_or_range): Make "string" const.
3088         (number_is_in_list): Make "list" const.
3089         * cli/cli-utils.h (get_number_const): Declare.
3090         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3091         (init_number_or_range, number_is_in_list): Update.
3092         * printcmd.c (map_display_numbers): Update.
3093         * value.c (value_from_history_ref): Constify.
3094         * value.h (value_from_history_ref): Update.
3095
3096 2014-07-30  Tom Tromey  <tromey@redhat.com>
3097
3098         * corefile.c (hook_type, call_extra_exec_file_hooks)
3099         (specify_exec_file_hook): Constify.
3100         * exec.c (exec_file_attach): Make "filename" const.
3101         * gdbcore.h (deprecated_exec_file_display_hook)
3102         (specify_exec_file_hook, exec_file_attach): Constify.
3103         * main.c (captured_main): Use catch_command_errors_const.
3104
3105 2014-07-30  Tom Tromey  <tromey@redhat.com>
3106
3107         * target.c (open_target): New function.
3108         (add_target_with_completer, add_deprecated_target_alias): Use
3109         set_cmd_sfunc, set_cmd_context.
3110         (debug_to_open): Remove.
3111         (setup_target_debug): Update.
3112
3113 2014-07-30  Yao Qi  <yao@codesourcery.com>
3114
3115         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3116         comments.
3117         * parse.c (exp_iterate): Update comments.
3118
3119 2014-07-30  Gary Benson  <gbenson@redhat.com>
3120
3121         * common/common-defs.h: New file.
3122         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3123         * defs.h: Include common-defs.h.
3124         Do not include config.h or build-gnulib/config.h.
3125
3126 2014-07-30  Gary Benson  <gbenson@redhat.com>
3127
3128         * common/common-utils.h: Do not include config.h.
3129         * nat/linux-btrace.h: Likewise.
3130
3131 2014-07-30  Gary Benson  <gbenson@redhat.com>
3132
3133         * btrace.c: Include defs.h.
3134         * common/ptid.c: Include defs.h or server.h as appropriate.
3135         * nat/mips-linux-watch.c: Likewise.
3136
3137 2014-07-29  Tom Tromey  <tromey@redhat.com>
3138
3139         * target.c (target_is_pushed): Simplify.
3140
3141 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3142
3143         GDB 7.8 released.
3144
3145 2014-07-29  Yao Qi  <yao@codesourcery.com>
3146
3147         PR gdb/17206
3148         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3149
3150 2014-07-28  Doug Evans  <xdje42@gmail.com>
3151
3152         PR guile/17203
3153         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3154         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3155         parameters.
3156
3157 2014-07-28  Will Newton  <will.newton@linaro.org>
3158
3159         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3160         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3161         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3162         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3163         (THUMB2_EABI_SYSCALL): Likewise.
3164         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3165         struct tramp_frame.
3166         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3167         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3168
3169 2014-07-27  Doug Evans  <xdje42@gmail.com>
3170
3171         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3172
3173 2014-07-27  Doug Evans  <xdje42@gmail.com>
3174
3175         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3176
3177 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3178             Doug Evans  <xdje42@gmail.com>
3179
3180         PR guile/17146
3181         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3182         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3183         * configure.ac: Try to use guild to compile an scm file, if it fails
3184         then disable guile support.
3185         * configure: Regenerate.
3186         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3187         GUILE_FILE_LIST.
3188         (GUILE_COMPILED_FILES): New variable.
3189         (GUILE_FILES) Update.
3190         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3191         (stamp-guile): Compile scm files.
3192         * guile/guile.c (boot_guile_support): New function.
3193         (standard_throw_args_p): New function.
3194         (print_standard_throw_error, print_throw_error): New functions.
3195         (handle_boot_error): New function.
3196         (initialize_scheme_side): Rewrite to call boot_guile_support.
3197         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3198         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3199
3200 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3201             Doug Evans  <xdje42@gmail.com>
3202
3203         PR guile/17146
3204         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3205         * guile/lib/gdb/support.scm: New file.
3206         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3207         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3208         All uses updated.
3209         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3210         All uses updated.
3211         (%assert-type): Ditto, and renamed to assert-type.
3212         (%exception-print-style): Delete.
3213
3214 2014-07-26  Doug Evans  <xdje42@gmail.com>
3215
3216         PR build/17105
3217         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3218         * configure: Regenerate.
3219         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3220         PYTHON_FILES.
3221         (PYTHON_FILES): New variable.
3222         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3223         (GUILE_FILES): New variable.
3224         (stamp-python, install-python, uninstall-python): Handle empty
3225         file list.
3226         (stamp-guile, install-guile, uninstall-guile): Ditto.
3227
3228 2014-07-26  Doug Evans  <xdje42@gmail.com>
3229
3230         PR guile/17177
3231         * guile/lib/gdb.scm (pretty-printers): Export.
3232         (set-pretty-printers!): Export.
3233         * guile/lib/gdb/printing.scm (gdb module): Update.
3234         (prepend-pretty-printer!, append-pretty-printer!): Update.
3235         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3236         (pretty_printer_list_var): Delete.
3237         (pretty_printer_list): New static global.
3238         (gdbscm_pretty_printers): New function.
3239         (gdbscm_set_pretty_printers_x): New function.
3240         (ppscm_find_pretty_printer_from_gdb): Update.
3241         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3242         (gdbscm_initialize_pretty_printers): Update.
3243
3244 2014-07-26  Doug Evans  <xdje42@gmail.com>
3245
3246         PR 17185
3247         * configure.ac: Add check for header gc/gc.h.
3248         Add check for function setenv.
3249         * configure: Regenerate.
3250         * config.in: Regenerate.
3251         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3252
3253 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
3254
3255         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3256         variation in gdbarch matching.
3257
3258 2014-07-25  Tom Tromey  <tromey@redhat.com>
3259
3260         * exec.c (using_exec_ops): Remove.
3261         (exec_close_1): Update.  Remove extraneous block, reindent.
3262         (add_target_sections): Use target_is_pushed.
3263
3264 2014-07-25  Pedro Alves  <palves@redhat.com>
3265
3266         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3267         * monitor.c (monitor_create_inferior): Likewise.
3268         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3269         * remote-sim.c (gdbsim_create_inferior): Likewise.
3270         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3271         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3272         * windows-nat.c (do_initial_windows_stuff): Likewise.
3273
3274 2014-07-25  Pedro Alves  <palves@redhat.com>
3275
3276         * NEWS: Mention signal passing and "signal" command changes.
3277         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3278         comment.
3279         * breakpoint.c (until_break_command): Adjust clear_proceed_status
3280         call.
3281         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3282         * infcmd.c (proceed_thread_callback, continue_1, step_once)
3283         (jump_command): Adjust clear_proceed_status call.
3284         (signal_command): Warn if other thread that are resumed have
3285         signals that will be delivered.  Adjust clear_proceed_status call.
3286         (until_next_command, finish_command)
3287         (proceed_after_attach_callback, attach_command_post_wait)
3288         (attach_command): Adjust clear_proceed_status call.
3289         * infrun.c (proceed_after_vfork_done): Likewise.
3290         (proceed_after_attach_callback): Adjust comment.
3291         (clear_proceed_status_thread): Clear stop_signal if not in pass
3292         state.
3293         (clear_proceed_status_callback): Delete.
3294         (clear_proceed_status): New 'step' parameter.  Only clear the
3295         proceed status of threads the command being prepared is about to
3296         resume.
3297         (proceed): If passed in an explicit signal, override stop_signal
3298         with it.  Don't pass the last stop signal to the thread we're
3299         resuming.
3300         (init_wait_for_inferior): Adjust clear_proceed_status call.
3301         (switch_back_to_stepped_thread): Clear the signal if it should not
3302         be passed.
3303         * infrun.h (clear_proceed_status): New 'step' parameter.
3304         (user_visible_resume_ptid): Add comment.
3305         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3306         signal is in pass state.
3307         * remote.c (append_pending_thread_resumptions): Likewise.
3308         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3309
3310 2014-07-25  Tom Tromey  <tromey@redhat.com>
3311
3312         * target.h (target_stopped_data_address)
3313         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
3314         parentheses.
3315
3316 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
3317
3318         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3319         comments.
3320         (avr_pointer_to_address): Likewise.
3321
3322 2014-07-24  Tom Tromey  <tromey@redhat.com>
3323
3324         * monitor.c (compile_pattern): Update.
3325         * target.h (struct target_ops) <to_shortname, to_longname,
3326         to_doc>: Now const.
3327
3328 2014-07-24  Tom Tromey  <tromey@redhat.com>
3329
3330         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3331         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3332         (add_info_alias, add_com): Make "doc" const.
3333         (print_doc_line): Make "str" const.
3334         (delete_cmd): Update.
3335         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3336         (print_doc_line): Update.
3337         * cli/cli-script.c (document_command): Update.
3338         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3339         (add_com, add_info, add_info_alias): Update.
3340         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3341         * python/py-cmd.c (cmdpy_destroyer): Update.
3342
3343 2014-07-24  Tom Tromey  <tromey@redhat.com>
3344
3345         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3346         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3347         (help_cmd_list): Constify.
3348         (lookup_cmd): Update.
3349         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3350         const.
3351         (help_cmd_list, apropos_cmd): Update.
3352         * cli/cli-script.c (show_user): Update.
3353         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3354         * cli/cli-setshow.h (cmd_show_list): Update.
3355         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3356         (cmd_show_list): Update.
3357         * guile/scm-cmd.c (cmdscm_destroyer): Update.
3358         * python/py-cmd.c (cmdpy_destroyer): Update.
3359
3360 2014-07-24  Tom Tromey  <tromey@redhat.com>
3361
3362         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3363         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3364         const.
3365         * command.h (deprecate_cmd): Update.
3366         * maint.c (maintenance_do_deprecate): Add casts.
3367
3368 2014-07-24  Tom Tromey  <tromey@redhat.com>
3369
3370         * cli/cli-decode.c (help_cmd): Make parameter "const".
3371         * cli/cli-decode.h (help_cmd): Update.
3372
3373 2014-07-24  Tom Tromey  <tromey@redhat.com>
3374
3375         * stack.c (up_silently_base, down_silently_base): Make argument
3376         const.
3377
3378 2014-07-24  Tom Tromey  <tromey@redhat.com>
3379
3380         * solib.c (solib_add): Make "pattern" const.
3381         * solib.h (solib_add): Update.
3382
3383 2014-07-24  Tom Tromey  <tromey@redhat.com>
3384
3385         * remote.c (remote_serial_open, print_packet, putpkt)
3386         (putpkt_binary): Constify.
3387         * remote.h (putpkt): Update.
3388
3389 2014-07-24  Tom Tromey  <tromey@redhat.com>
3390
3391         * monitor.c (monitor_open): Make "args" const.
3392         * monitor.h (monitor_open): Update.
3393
3394 2014-07-24  Tom Tromey  <tromey@redhat.com>
3395
3396         * maint.c (match_bfd_flags): Make "string" const.
3397         (print_bfd_section_info): Remove casts.
3398         (print_objfile_section_info): Make "string" const.
3399
3400 2014-07-24  Tom Tromey  <tromey@redhat.com>
3401
3402         * inf-child.c (inf_child_open_target): Make "arg" const.
3403         * inf-child.h (inf_child_open_target): Update.
3404
3405 2014-07-24  Tom Tromey  <tromey@redhat.com>
3406
3407         * environ.c (unset_in_environ): Make "var" const.
3408         * environ.h (unset_in_environ): Update.
3409
3410 2014-07-24  Tom Tromey  <tromey@redhat.com>
3411
3412         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3413         Make "cmd" const.
3414         (scan_filename_with_cleanup): Likewise.
3415         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3416         Make arguments const.
3417         (restore_command): Update.
3418
3419 2014-07-24  Pedro Alves  <palves@redhat.com>
3420
3421         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3422
3423 2014-07-24  Tom Tromey  <tromey@redhat.com>
3424             Gary Benson  <gbenson@redhat.com>
3425
3426         * nat/linux-ptrace.c (additional_flags): New global.
3427         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3428         additional_flags; don't check GDBSERVER.
3429         (linux_ptrace_set_additional_flags): New function.
3430         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3431         Declare.
3432         * linux-nat.c (_initialize_linux_nat): Call
3433         linux_ptrace_set_additional_flags.
3434
3435 2014-07-24  Tom Tromey  <tromey@redhat.com>
3436
3437         * make-target-delegates (munge_type, write_debugmethod): New
3438         functions.
3439         (debug_names): New global.
3440         ($TARGET_DEBUG_PRINTER): New global.
3441         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3442         name.
3443         Write debug methods.  Generate init_debug_target.
3444         * target-debug.h: New file.
3445         * target-delegates.c: Rebuild.
3446         * target.c: Include target-debug.h.
3447         (debug_target): Hoist definition.
3448         (target_kill, target_get_section_table, target_memory_map)
3449         (target_flash_erase, target_flash_done, target_detach)
3450         (target_disconnect, target_wait, target_resume)
3451         (target_pass_signals, target_program_signals, target_follow_fork)
3452         (target_mourn_inferior, target_search_memory)
3453         (target_thread_address_space, target_close)
3454         (target_find_new_threads, target_core_of_thread)
3455         (target_verify_memory, target_insert_mask_watchpoint)
3456         (target_remove_mask_watchpoint): Remove targetdebug code.
3457         (debug_to_post_attach, debug_to_prepare_to_store)
3458         (debug_to_files_info, debug_to_insert_breakpoint)
3459         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3460         (debug_to_region_ok_for_hw_watchpoint)
3461         (debug_to_can_accel_watchpoint_condition)
3462         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3463         (debug_to_watchpoint_addr_within_range)
3464         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3465         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3466         (debug_to_terminal_init, debug_to_terminal_inferior)
3467         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3468         (debug_to_terminal_save_ours, debug_to_terminal_info)
3469         (debug_to_load, debug_to_post_startup_inferior)
3470         (debug_to_insert_fork_catchpoint)
3471         (debug_to_remove_fork_catchpoint)
3472         (debug_to_insert_vfork_catchpoint)
3473         (debug_to_remove_vfork_catchpoint)
3474         (debug_to_insert_exec_catchpoint)
3475         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3476         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3477         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3478         (setup_target_debug): Call init_debug_target.
3479         * target.h (TARGET_DEBUG_PRINTER): New macro.
3480         (struct target_ops) <to_resume, to_wait, to_pass_signals,
3481         to_program_signals>: Use TARGET_DEBUG_PRINTER.
3482
3483 2014-07-24  Gary Benson  <gbenson@redhat.com>
3484
3485         * exceptions.h (throw_vfatal): Renamed to...
3486         (throw_vquit): New declaration.
3487         (throw_quit): Likewise.
3488         * exceptions.c (throw_vfatal): Renamed to...
3489         (throw_vquit): New function.
3490         (throw_quit): Likewise.
3491         (throw_error): Call throw_verror rather than throw_it.
3492         * utils.h (vfatal): Removed.
3493         (fatal): Likewise.
3494         * utils.c (vfatal): Removed.
3495         (fatal): Likewise.
3496         (internal_verror): Replaced call to fatal with call to throw_quit.
3497         (quit): Replaced calls to fatal with calls to throw_quit.
3498
3499 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
3500
3501         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3502         target_read_code.
3503
3504 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
3505
3506         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3507         less than zero in conditional expression.
3508
3509 2014-07-23  Tom Tromey  <tromey@redhat.com>
3510
3511         * make-target-delegates ($ARGS_PART): Match trailing close paren.
3512         ($INTRO_PART): Don't match whitespace.
3513         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
3514         argument matching.
3515         ($METHOD): Add $METHOD_TRAILER.
3516         (trim): Rewrite.
3517         (scan_target_h): New sub.
3518         Change main loop not to collect state.
3519         * target-delegates.c: Rebuild.
3520
3521 2014-07-23  Gary Benson  <gbenson@redhat.com>
3522
3523         * cp-support.c (gdb_demangle): Fix build on systems without
3524         sigaltstack.
3525
3526 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3527
3528         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3529         for reference entry value target data value.
3530
3531 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3532
3533         * stack.c (read_frame_arg): Verify value_optimized_out before calling
3534         value_available_contents_eq.
3535
3536 2014-07-22  Pedro Alves  <palves@redhat.com>
3537
3538         * value.c (allocate_optimized_out_value): Don't mark value as
3539         non-lazy.
3540
3541 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
3542
3543         * MAINTAINERS (Write After Approval): Update my email address.
3544
3545 2014-07-20  Doug Evans  <dje@google.com>
3546
3547         PR server/17147
3548         * remote.c (putpkt_binary): Add text to error message.
3549
3550 2014-07-20  Yao Qi  <yao@codesourcery.com>
3551
3552         * eval.c: Remove "Chill" from comments.
3553         * gdbtypes.h: Likewise.
3554         * symtab.h: Likewise.
3555
3556 2014-07-20  Yao Qi  <yao@codesourcery.com>
3557
3558         * std-operator.def: Update comments to TERNOP_SLICE.
3559
3560 2014-07-20  Yao Qi  <yao@codesourcery.com>
3561
3562         * std-operator.def: Remove BINOP_RANGE.
3563         * breakpoint.c (watchpoint_exp_is_const): Update.
3564         * expprint.c (dump_subexp_body_standard): Likewise.
3565         * eval.c (init_array_element): Remove dead code.
3566         (evaluate_subexp_standard): Likewise.
3567
3568 2014-07-20  Yao Qi  <yao@codesourcery.com>
3569
3570         * std-operator.def: Remove BINOP_IN.
3571         * breakpoint.c (watchpoint_exp_is_const): Update.
3572         * eval.c (evaluate_subexp_standard): Likewise.
3573         * expprint.c (dump_subexp_body_standard): Likewise.
3574
3575 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3576
3577         * microblaze-tdep.c (microblaze_register_names): Add
3578         the rshr and rslr register names.
3579         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3580         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3581         Use of tdesc_numbered_register. Use of
3582         microblaze_register_g_packet_guesses. Use of
3583         tdesc_use_registers. Use of set_gdbarch_register_type.
3584         (microblaze_register_g_packet_guesses): New.
3585         * microblaze-tdep.h (microblaze_reg_num): Add
3586         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3587         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3588         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3589         * features/microblaze-core.xml: New file.
3590         * features/microblaze-stack-protect.xml: New file.
3591         * features/microblaze-with-stack-protect.c: New file.
3592         * features/microblaze-with-stack-protect.xml: New file.
3593         * features/microblaze.xml: New file.
3594         * features/microblaze.c: New file.
3595         * features/Makefile (microblaze-with-stack-protect): Add
3596         microblaze-with-stack-protect microblaze and microblaze-expedite.
3597         * regformats/microblaze-with-stack-protect.dat: New file.
3598         * regformats/microblaze.dat: New file.
3599         * doc/gdb.texinfo (MicroBlaze Features): Added.
3600
3601 2014-07-18  Tom Tromey  <tromey@redhat.com>
3602
3603         * exec.c (exec_ops): Now static.
3604         * exec.h (exec_ops): Don't declare.
3605
3606 2014-07-18  Tom Tromey  <tromey@redhat.com>
3607
3608         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3609         to find_target_beneath.
3610         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3611         find_target_beneath.
3612         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3613
3614 2014-07-18  Tom Tromey  <tromey@redhat.com>
3615
3616         PR gdb/17130:
3617         * utils.c (quit): Use target_supports_terminal_ours.
3618         * target.h (target_supports_terminal_ours): Declare.
3619         * target.c (target_supports_delete_record): Don't check
3620         to_delete_record against NULL.
3621         (target_supports_terminal_ours): New function.
3622
3623 2014-07-18  Tom Tromey  <tromey@redhat.com>
3624
3625         PR gdb/17130:
3626         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3627         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3628         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3629         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3630         * windows-nat.c (windows_xfer_partial): Always delegate.
3631         * record-btrace.c (record_btrace_xfer_partial): Simplify
3632         delegation.
3633         (record_btrace_fetch_registers, record_btrace_store_registers)
3634         (record_btrace_prepare_to_store, record_btrace_resume)
3635         (record_btrace_wait, record_btrace_find_new_threads)
3636         (record_btrace_thread_alive): Likewise.
3637         * procfs.c (procfs_xfer_partial): Always delegate.
3638         * corelow.c (core_xfer_partial): Always delegate.
3639         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3640
3641 2014-07-18  Tom Tromey  <tromey@redhat.com>
3642
3643         * exec.c (exec_make_note_section): Move earlier.
3644
3645 2014-07-17  Doug Evans  <dje@google.com>
3646
3647         PR gdb/17170
3648         * maint.c (count_symtabs_and_blocks): Handle NULL
3649         current_program_space.
3650         (report_command_stats): Check global enabled flag in addition to
3651         recorded enabled flag.
3652         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3653
3654 2014-07-16  Pedro Alves  <palves@redhat.com>
3655
3656         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3657
3658 2014-07-16  Tom Tromey  <tromey@redhat.com>
3659
3660         * target.h (struct target_ops) <to_delete_record>: Reformat
3661         comment.
3662
3663 2014-07-16  Tom Tromey  <tromey@redhat.com>
3664
3665         * target-delegates.c: Rebuild.
3666
3667 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3668
3669         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3670         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3671         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3672         (avr_pointer_to_address): Likewise.
3673         (avr_address_class_type_flags): New function.
3674         (avr_address_class_type_flags_to_name): Likewise.
3675         (avr_address_class_name_to_type_flags): Likewise.
3676         (avr_gdbarch_init): Set address_class_type_flags,
3677         address_class_type_flags_to_name and
3678         address_class_name_to_type_flags.
3679
3680 2014-07-15  Pedro Alves  <palves@redhat.com>
3681
3682         * linux-nat.c (kill_callback): Save errno and work with saved
3683         copy.
3684
3685 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3686
3687         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3688
3689 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3690
3691         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3692         breakpoint support correctly.
3693
3694 2014-07-14  Pedro Alves  <palves@redhat.com>
3695
3696         * utils.c (prompt_for_continue): Call target_terminal_ours.
3697
3698 2014-07-14  Pedro Alves  <palves@redhat.com>
3699
3700         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3701         catch_errors.  Don't re-enable stdin or notify observers where,
3702         and rethrow error.
3703         (fetch_inferior_event_wrapper): Delete.
3704
3705 2014-07-14  Pedro Alves  <palves@redhat.com>
3706
3707         PR gdb/17072
3708         * top.c: Include "inf-loop.h".
3709         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3710         field.
3711         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3712         was async before.
3713         (gdb_readline_wrapper): Store whether the target is async, and
3714         make it sync.
3715
3716 2014-07-14  Pedro Alves  <palves@redhat.com>
3717
3718         PR gdb/17072
3719         * top.c (gdb_readline_wrapper_line): Tweak comment.
3720         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3721         the input handler callback.
3722
3723 2014-07-14  Pedro Alves  <palves@redhat.com>
3724
3725         PR gdb/17072
3726         * main.c: Include event-top.h.
3727         (handle_command_errors): New function.
3728         (catch_command_errors, catch_command_errors_const): Use it.
3729
3730 2014-07-14  Pedro Alves  <palves@redhat.com>
3731
3732         * exceptions.c (catch_command_errors, catch_command_errors_const):
3733         Moved to main.c.
3734         * exceptions.h (catch_command_errors_ftype)
3735         (catch_command_errors_const_ftype): Moved to main.c.
3736         (catch_command_errors, catch_command_errors_const): Delete
3737         declarations.
3738         * main.c (catch_command_errors_ftype)
3739         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3740         (catch_command_errors, catch_command_errors_const)): Moved here
3741         from exceptions.c and make static.
3742
3743 2014-07-14  Pedro Alves  <palves@redhat.com>
3744
3745         * exceptions.c (print_any_exception): Delete.
3746         (catch_exceptions_with_msg): Use exception_print instead of
3747         print_any_exception.
3748         (catch_errors): Use exception_fprintf instead of
3749         print_any_exception.
3750         (catch_command_errors, catch_command_errors_const): Use
3751         exception_print instead of print_any_exception.
3752
3753 2014-07-14  Pedro Alves  <palves@redhat.com>
3754
3755         * infcall.c (run_inferior_call): Set 'sync_execution' while
3756         running the inferior call.
3757
3758 2014-07-14  Pedro Alves  <palves@redhat.com>
3759
3760         * value.c (value_contents_equal): Delete function.
3761         * value.h (value_contents_equal): Delete declaration.
3762
3763 2014-07-14  Tom Tromey  <tromey@redhat.com>
3764
3765         PR exp/17106:
3766         * gdbtypes.c (is_dynamic_type_internal): New function, from
3767         is_dynamic_type.
3768         (is_dynamic_type): Rewrite.
3769         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3770         (resolve_dynamic_struct): Likewise.
3771         (resolve_dynamic_type_internal): New function, from
3772         resolve_dynamic_type.
3773         (resolve_dynamic_type): Rewrite.
3774
3775 2014-07-14  Tom Tromey  <tromey@redhat.com>
3776
3777         * target.c (target_require_runnable): Also check record_stratum.
3778         Update comment.
3779
3780 2014-07-11  Yao Qi  <yao@codesourcery.com>
3781
3782         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3783         thumb_instruction_restores_sp return true.
3784
3785 2014-07-11  Yao Qi  <yao@codesourcery.com>
3786
3787         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3788         (thumb_in_function_epilogue_p): Call
3789         thumb_instruction_restores_sp.
3790
3791 2014-07-11  Yao Qi  <yao@codesourcery.com>
3792
3793         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3794         'add sp, #imm'.
3795         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3796
3797 2014-07-11  Gary Benson  <gbenson@redhat.com>
3798
3799         * amd64-linux-nat.c (gdbcore.h): Remove include.
3800         (regset.h): Likewise.
3801         (nat/linux-btrace.h): Likewise.
3802         (btrace.h): Likewise.
3803         (gdb_assert.h): Likewise.
3804         (string.h): Likewise.
3805         (sys/uio.h): Likewise.
3806         (sys/debugreg.h): Likewise.
3807         (sys/syscall.h): Likewise.
3808         (sys/procfs.h): Likewise.
3809         (sys/user.h): Likewise.
3810         (asm/ptrace.h): Likewise.
3811         (i386-nat.h): Likewise.
3812         * i386-linux-nat.c (i386-nat.h): Likewise.
3813         (regset.h): Likewise.
3814         (target.h): Likewise.
3815         (linux-nat.h): Likewise.
3816         (nat/linux-btrace.h): Likewise.
3817         (btrace.h): Likewise.
3818         (gdb_assert.h): Likewise.
3819         (string.h): Likewise.
3820         (sys/uio.h): Likewise.
3821         (sys/user.h): Likewise.
3822         (sys/procfs.h): Likewise.
3823         (sys/reg.h): Likewise.
3824         (sys/debugreg.h): Likewise.
3825         (ORIG_EAX): Remove definition.
3826
3827 2014-07-11  Gary Benson  <gbenson@redhat.com>
3828
3829         * i386-linux-nat.h: New file.
3830         * x86-linux-nat.h: Likewise.
3831         * x86-linux-nat.c: Likewise.
3832         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3833         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3834         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3835         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3836         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3837         (PTRACE_SETREGSET): Likewise.
3838         (arch_lwp_info): Now in x86-linux-nat.c.
3839         (have_ptrace_getregset): Now in x86-linux-nat.h.
3840         (x86_linux_dr_get): Now in x86-linux-nat.c.
3841         (x86_linux_dr_set): Likewise.
3842         (x86_linux_dr_get_addr): Likewise.
3843         (x86_linux_dr_get_control): Likewise.
3844         (x86_linux_dr_get_status): Likewise.
3845         (update_debug_registers_callback): Likewise.
3846         (x86_linux_dr_set_control): Likewise.
3847         (x86_linux_dr_set_addr): Likewise.
3848         (x86_linux_prepare_to_resume): Likewise.
3849         (x86_linux_new_thread): Likewise.
3850         (x86_linux_new_fork): Likewise.
3851         (x86_linux_get_thread_area): Likewise.
3852         (super_post_startup_inferior): Likewise.
3853         (x86_linux_child_post_startup_inferior): Likewise.
3854         (AMD64_LINUX_USER64_CS): Likewise.
3855         (AMD64_LINUX_X32_DS): Likewise.
3856         (x86_linux_read_description): Likewise.
3857         (x86_linux_enable_btrace): Likewise.
3858         (x86_linux_disable_btrace): Likewise.
3859         (x86_linux_teardown_btrace): Likewise.
3860         (x86_linux_read_btrace): Likewise.
3861         (x86_linux_create_target): Likewise.
3862         (x86_linux_add_target): Likewise.
3863         * i386-linux-nat.c (x86-linux-nat.h): New include.
3864         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3865         (PTRACE_SETREGSET): Likewise.
3866         (arch_lwp_info): Now in x86-linux-nat.c.
3867         (have_ptrace_getregset): Now in x86-linux-nat.h.
3868         (x86_linux_dr_get): Now in x86-linux-nat.c.
3869         (x86_linux_dr_set): Likewise.
3870         (x86_linux_dr_get_addr): Likewise.
3871         (x86_linux_dr_get_control): Likewise.
3872         (x86_linux_dr_get_status): Likewise.
3873         (update_debug_registers_callback): Likewise.
3874         (x86_linux_dr_set_control): Likewise.
3875         (x86_linux_dr_set_addr): Likewise.
3876         (x86_linux_prepare_to_resume): Likewise.
3877         (x86_linux_new_thread): Likewise.
3878         (x86_linux_new_fork): Likewise.
3879         (x86_linux_get_thread_area): Likewise.
3880         (super_post_startup_inferior): Likewise.
3881         (x86_linux_child_post_startup_inferior): Likewise.
3882         (AMD64_LINUX_USER64_CS): Likewise.
3883         (AMD64_LINUX_X32_DS): Likewise.
3884         (x86_linux_read_description): Likewise.
3885         (x86_linux_enable_btrace): Likewise.
3886         (x86_linux_disable_btrace): Likewise.
3887         (x86_linux_teardown_btrace): Likewise.
3888         (x86_linux_read_btrace): Likewise.
3889         (x86_linux_create_target): Likewise.
3890         (x86_linux_add_target): Likewise.
3891
3892 2014-07-11  Gary Benson  <gbenson@redhat.com>
3893
3894         * amd64-linux-nat.c: Comment and whitespace changes.
3895         * i386-linux-nat.c: Comment and whitespace changes.
3896
3897 2014-07-11  Gary Benson  <gbenson@redhat.com>
3898
3899         * amd64-linux-nat.c (x86_linux_create_target): New function.
3900         (x86_linux_add_target): Likewise.
3901         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3902         * i386-linux-nat.c (x86_linux_create_target): New function.
3903         (x86_linux_add_target): Likewise.
3904         (_initialize_i386_linux_nat): Delegate to the above new functions.
3905
3906 2014-07-11  Gary Benson  <gbenson@redhat.com>
3907
3908         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3909         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3910         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3911         (ps_get_thread_area): Delegate to the above.
3912
3913 2014-07-11  Gary Benson  <gbenson@redhat.com>
3914
3915         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3916         x86_linux_read_description.  All uses updated.  amd64-specific
3917         code conditionalized.  Conditionalized i386-specific code added.
3918         Redundant cast removed.
3919         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3920         x86_linux_read_description.  All uses updated.  i386-specific
3921         code conditionalized.  Conditionalized amd64-specific code added.
3922         One sizeof replaced with the actual type it is describing.
3923
3924 2014-07-11  Gary Benson  <gbenson@redhat.com>
3925
3926         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3927         x86_linux_dr_get.  All uses updated.
3928         (amd64_linux_dr_set): Renamed to
3929         x86_linux_dr_set.  All uses updated.
3930         (amd64_linux_dr_get_addr): Renamed to
3931         x86_linux_dr_get_addr.  All uses updated.
3932         (amd64_linux_dr_get_control): Renamed to
3933         x86_linux_dr_get_control.  All uses updated.
3934         (amd64_linux_dr_get_status): Renamed to
3935         x86_linux_dr_get_status.  All uses updated.
3936         (amd64_linux_dr_set_control): Renamed to
3937         x86_linux_dr_set_control.  All uses updated.
3938         (amd64_linux_dr_set_addr): Renamed to
3939         x86_linux_dr_set_addr.  All uses updated.
3940         (amd64_linux_prepare_to_resume): Renamed to
3941         x86_linux_prepare_to_resume.  All uses updated.
3942         (amd64_linux_new_thread): Renamed to
3943         x86_linux_new_thread.  All uses updated.
3944         (amd64_linux_new_fork): Renamed to
3945         x86_linux_new_fork.  All uses updated.
3946         (amd64_linux_child_post_startup_inferior): Renamed to
3947         x86_linux_child_post_startup_inferior.  All uses updated.
3948         (amd64_linux_enable_btrace): Renamed to
3949         x86_linux_enable_btrace.  All uses updated.
3950         (amd64_linux_disable_btrace): Renamed to
3951         x86_linux_disable_btrace.  All uses updated.
3952         (amd64_linux_teardown_btrace): Renamed to
3953         x86_linux_teardown_btrace.  All uses updated.
3954         (amd64_linux_read_btrace): Renamed to
3955         x86_linux_read_btrace.  All uses updated.
3956         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3957         x86_linux_dr_get.  All uses updated.
3958         (i386_linux_dr_set): Renamed to
3959         x86_linux_dr_set.  All uses updated.
3960         (i386_linux_dr_get_addr): Renamed to
3961         x86_linux_dr_get_addr.  All uses updated.
3962         (i386_linux_dr_get_control): Renamed to
3963         x86_linux_dr_get_control.  All uses updated.
3964         (i386_linux_dr_get_status): Renamed to
3965         x86_linux_dr_get_status.  All uses updated.
3966         (i386_linux_dr_set_control): Renamed to
3967         x86_linux_dr_set_control.  All uses updated.
3968         (i386_linux_dr_set_addr): Renamed to
3969         x86_linux_dr_set_addr.  All uses updated.
3970         (i386_linux_prepare_to_resume): Renamed to
3971         x86_linux_prepare_to_resume.  All uses updated.
3972         (i386_linux_new_thread): Renamed to
3973         x86_linux_new_thread.  All uses updated.
3974         (i386_linux_new_fork): Renamed to
3975         x86_linux_new_fork.  All uses updated.
3976         (i386_linux_child_post_startup_inferior): Renamed to
3977         x86_linux_child_post_startup_inferior.  All uses updated.
3978         (i386_linux_enable_btrace): Renamed to
3979         x86_linux_enable_btrace.  All uses updated.
3980         (i386_linux_disable_btrace): Renamed to
3981         x86_linux_disable_btrace.  All uses updated.
3982         (i386_linux_teardown_btrace): Renamed to
3983         x86_linux_teardown_btrace.  All uses updated.
3984         (i386_linux_read_btrace): Renamed to
3985         x86_linux_read_btrace.  All uses updated.
3986
3987 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3988
3989         * remote.c (extended_remote_post_attach): New function.
3990         (init_extended_remote_ops): Install it as to_post_attach method.
3991
3992 2014-07-09  Pedro Alves  <palves@redhat.com>
3993
3994         * infcmd.c (attach_command_post_wait): Don't call
3995         target_terminal_inferior here.
3996         (attach_command): Call it here instead.
3997
3998 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3999
4000         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4001         field.
4002         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4003         from varobj.c, with additional checks.
4004         (c_varobj_ops): Fill in is_path_expr_parent field.
4005         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4006         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4007         field.
4008         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4009         ops method.
4010         (varobj_default_is_path_expr_parent): New function.
4011         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4012         (varobj_default_is_path_expr_parent): Declare new function.
4013
4014 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4015
4016         * infcmd.c (finish_backward): Turn internal error into normal error.
4017
4018 2014-07-07  Pedro Alves  <palves@redhat.com>
4019
4020         PR gdb/17096
4021         * remote.c (async_handle_remote_sigint)
4022         (async_handle_remote_sigint_twice): Call
4023         gdb_call_async_signal_handler instead of
4024         mark_async_signal_handler.
4025
4026 2014-07-07  Tom Tromey  <tromey@redhat.com>
4027
4028         * target-delegates.c: Rebuild.
4029         * target.c (target_info_record): Remove.
4030         * record.c (info_record_command): Unconditionally call
4031         to_info_record.
4032         * target.h (struct target_ops) <to_info_record>: Use
4033         TARGET_DEFAULT_IGNORE.
4034         (target_info_record): Remove.
4035
4036 2014-07-07  Tom Tromey  <tromey@redhat.com>
4037
4038         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4039         TARGET_DEFAULT_NORETURN.
4040         * target.c (generic_tls_error): New function.
4041         (target_translate_tls_address): Don't search target stack.
4042         * target-delegates.c: Rebuild.
4043         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4044         stack.
4045         * linux-thread-db.c (thread_db_get_thread_local_address):
4046         Unconditionally call beneath target.
4047
4048 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4049
4050         * cli/cli-logging.c (pop_output_files): Assign targerr to
4051         gdb_stdtargerr.
4052
4053 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4054
4055         * MAINTAINERS (Write After Approval): Update my email address.
4056
4057 2014-07-02  Gary Benson  <gbenson@redhat.com>
4058
4059         * proc-service.c (ps_xfer_memory): Update comment.
4060         (ps_pstop): Remove unused function.
4061         (ps_pcontinue): Likewise.
4062         (ps_lstop): Likewise.
4063         (ps_lcontinue): Likewise.
4064         (ps_lgetxregsize): Likewise.
4065         (ps_lgetxregs): Likewise.
4066         (ps_lsetxregs): Likewise.
4067         (ps_plog): Likewise.
4068         (ps_ptread): Likewise.
4069         (ps_ptwrite): Likewise.
4070
4071 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4072
4073         * dwarf2read.c (add_array_cv_type): New function.
4074         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4075         (read_tag_volatile_type): Likewise.
4076
4077 2014-07-01  Tom Tromey  <tromey@redhat.com>
4078
4079         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4080         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4081         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4082         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4083         * command.h (cmd_cfunc_ftype): Move earlier.
4084         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4085         (add_com, add_info): Use cmd_cfunc_ftype.
4086
4087 2014-06-30  Tom Tromey  <tromey@redhat.com>
4088
4089         * symtab.c (operator_chars): Make parameters and return type
4090         const.
4091         (file_matches): Make "files" const.
4092         (struct search_symbols_data) <files>: Now const.
4093         (search_symbols): Make "regexp" and "files" parameters const.
4094         Update.
4095         (symtab_symbol_info): Remove cast.
4096         (rbreak_command): Update.
4097         * symtab.h (search_symbols): Update.
4098
4099 2014-06-27  Yao Qi  <yao@codesourcery.com>
4100
4101         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4102         Change parameter type to 'struct thread_info *'.  Caller
4103         updated.
4104         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4105         Update declaration.
4106         * dummy-frame.c (struct dummy_frame_id): New.
4107         (dummy_frame_id_eq): New function.
4108         (struct dummy_frame) <id>: Change its type to 'struct
4109         dummy_frame_id'.
4110         (dummy_frame_push): Add parameter ptid and save it in
4111         dummy_frame_id.
4112         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4113         inferior_ptid.
4114         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4115         to inferior_ptid.
4116         (lookup_dummy_frame): Change parameter type to 'struct
4117         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4118         instead of frame_id_eq.
4119         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4120         Update comments.  Compose dummy_frame_id and pass it to
4121         lookup_dummy_frame.
4122         (dummy_frame_discard): Add parameter ptid.
4123         (dummy_frame_sniffer): Compose dummy_frame_id and call
4124         dummy_frame_id_eq instead of frame_id_eq.
4125         (fprint_dummy_frames): Print ptid.
4126         * dummy-frame.h: Remove comments.
4127         (dummy_frame_push): Add ptid in declaration.
4128         (dummy_frame_pop, dummy_frame_discard): Likewise.
4129
4130 2014-06-26  Tom Tromey  <tromey@redhat.com>
4131
4132         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4133         * command.h (error_no_arg): Update.
4134
4135 2014-06-26  Tom Tromey  <tromey@redhat.com>
4136
4137         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4138         (do_show_command): Make "arg" const.
4139         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4140
4141 2014-06-26  Tom Tromey  <tromey@redhat.com>
4142
4143         * record-full.c (record_full_get_bookmark): Make "args" const.
4144         (record_full_goto_bookmark): Make "raw_bookmark" const.
4145         * record.c (record_goto): New function.
4146         (cmd_record_goto): Use it.  Now static.
4147         * record.h (record_goto): Declare.
4148         (cmd_record_goto): Remove declaration.
4149         * target-delegates.c: Rebuild.
4150         * target.h (struct target_ops) <to_get_bookmark,
4151         to_goto_bookmark>: Make parameter const.
4152
4153 2014-06-26  Tom Tromey  <tromey@redhat.com>
4154
4155         * defs.h (generic_load): Update.
4156         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4157         * monitor.c (monitor_load): Make "args" const.
4158         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4159         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4160         const.
4161         (mips_load): Make "file" const.
4162         * remote-sim.c (gdbsim_load): Make "args" const.
4163         * remote.c (remote_load): Make "name" const.
4164         * symfile.c (generic_load): Make "args" const.
4165         * target-delegates.c: Rebuild.
4166         * target.c (target_load): Make "arg" const.
4167         (debug_to_load): Make "args" const.
4168         * target.h (struct target_ops) <to_load>: Make parameter const.
4169         (target_load): Update.
4170
4171 2014-06-26  Tom Tromey  <tromey@redhat.com>
4172
4173         PR symtab/16902:
4174         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4175         (dwarf2_physname, read_partial_die)
4176         (guess_partial_die_structure_name, fixup_partial_die)
4177         (guess_full_die_structure_name, anonymous_struct_prefix)
4178         (dwarf2_name): Use per-BFD obstack.
4179
4180 2014-06-26  Yao Qi  <yao@codesourcery.com>
4181
4182         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4183         dummyframe and this_id into inner block below.
4184
4185 2014-06-26  Yao Qi  <yao@codesourcery.com>
4186
4187         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4188         with "signal_pass[0]" in the initialization of signal_pass.
4189
4190 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4191
4192         * record-btrace.c (record_btrace_generating_corefile)
4193         (record_btrace_prepare_to_generate_core)
4194         (record_btrace_done_generating_core): New.
4195         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4196         (record_btrace_store_registers, record_btrace_prepare_to_store):
4197         Forward request when generating a core file.
4198         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4199         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4200         to_done_generating_core.
4201
4202 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4203
4204         * target.h (target_ops) <to_prepare_to_generate_core>
4205         <to_done_generating_core>: New.
4206         (target_prepare_to_generate_core, target_done_generating_core): New.
4207         * target.c (target_prepare_to_generate_core)
4208         (target_done_generating_core): New.
4209         * target-delegates.c: Regenerate.
4210         * gcore.c: (write_gcore_file): Rename to ...
4211         (write_gcore_file_1): ...this.
4212         (write_gcore_file): Call target_prepare_to_generate_core
4213         and target_done_generating_core.
4214
4215 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4216
4217         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4218         * gcore.c (write_gcore_file): Free memory returned from
4219         make_corefile_notes.
4220         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4221         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4222
4223 2014-06-24  Yao Qi  <yao@codesourcery.com>
4224
4225         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4226         (arm_linux_init_abi): Set skip_trampoline_code with
4227         gdbarch_skip_trampoline_code instead of
4228         find_solib_trampoline_target.
4229
4230 2014-06-24  Yao Qi  <yao@codesourcery.com>
4231
4232         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4233         arm_skip_bx_reg returns non-zero.
4234
4235 2014-06-24  Yao Qi  <yao@codesourcery.com>
4236
4237         * arm-tdep.c (arm_skip_bx_reg): New function.
4238         (arm_skip_stub): Call arm_skip_bx_reg.
4239
4240 2014-06-23  Don Breazeal  <donb@codesourcery.com>
4241
4242         * MAINTAINERS: Add myself as write-after-approval maintainer.
4243
4244 2014-06-23  Pedro Alves  <palves@redhat.com>
4245
4246         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4247         DR_CONTROL before setting DR0..DR3.
4248         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4249         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4250         bits of DR_CONTROL related to the debug register slot being
4251         disabled.  If all slots are vacant, clear local slowdown as well,
4252         and assert DR_CONTROL is 0.
4253
4254 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
4255
4256         * python/lib/gdb/command/xmethods.py
4257         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
4258         current progspace only if the string "progspace" matches LOCUS_RE.
4259
4260 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4261
4262         Fix --with-system-readline with readline-6.3 patch 5.
4263         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4264         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4265         types.
4266
4267 2014-06-20  Tom Tromey  <tromey@redhat.com>
4268
4269         * dwarf2read.c (dw2_get_real_path): Use correct type in
4270         OBSTACK_CALLOC.
4271         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4272
4273 2014-06-20  Gary Benson  <gbenson@redhat.com>
4274
4275         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
4276         * common/glibc_thread_db.h: Likewise.
4277         * common/i386-cpuid.h: Likewise.
4278         * common/i386-gcc-cpuid.h: Likewise.
4279         * common/linux-btrace.h: Likewise.
4280         * common/linux-osdata.h: Likewise.
4281         * common/linux-procfs.h: Likewise.
4282         * common/linux-ptrace.h: Likewise.
4283         * common/mips-linux-watch.h: Likewise.
4284         * common/linux-btrace.c: Moved to nat.
4285         * common/linux-osdata.c: Likewise.
4286         * common/linux-procfs.c: Likewise.
4287         * common/linux-ptrace.c: Likewise.
4288         * common/mips-linux-watch.c: Likewise.
4289         * nat/gdb_thread_db.h: Moved from common.
4290         * nat/glibc_thread_db.h: Likewise.
4291         * nat/i386-cpuid.h: Likewise.
4292         * nat/i386-gcc-cpuid.h: Likewise.
4293         * nat/linux-btrace.c: Likewise.
4294         * nat/linux-btrace.h: Likewise.
4295         * nat/linux-osdata.c: Likewise.
4296         * nat/linux-osdata.h: Likewise.
4297         * nat/linux-procfs.c: Likewise.
4298         * nat/linux-procfs.h: Likewise.
4299         * nat/linux-ptrace.c: Likewise.
4300         * nat/linux-ptrace.h: Likewise.
4301         * nat/mips-linux-watch.c: Likewise.
4302         * nat/mips-linux-watch.h: Likewise.
4303         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4304         (object file files): Reordered.
4305         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4306         of glibc_thread_db.h.
4307
4308 2014-06-20  Gary Benson  <gbenson@redhat.com>
4309
4310         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4311         (i386_dr_low_type): Moved to nat/i386-dregs.h.
4312         (i386_dr_low): Likewise.
4313         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4314         (i386_dr_low_set_addr): Likewise.
4315         (i386_dr_low_get_addr): Likewise.
4316         (i386_dr_low_can_set_control): Likewise.
4317         (i386_dr_low_set_control): Likewise.
4318         (i386_dr_low_get_control): Likewise.
4319         (i386_dr_low_get_status): Likewise.
4320         (i386_get_debug_register_length): Likewise.
4321         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4322         (i386_dr_low): Likewise.
4323         * nat/i386-dregs.c (i386-low.h): Remove include.
4324         (i386-nat.h): Likewise.
4325         (nat/i386-dregs.h): New include.
4326         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4327         (i386_dr_low_set_addr): Likewise.
4328         (i386_dr_low_get_addr): Likewise.
4329         (i386_dr_low_can_set_control): Likewise.
4330         (i386_dr_low_set_control): Likewise.
4331         (i386_dr_low_get_control): Likewise.
4332         (i386_dr_low_get_status): Likewise.
4333         (i386_get_debug_register_length): Likewise.
4334         (debug_hw_points): Likewise.
4335
4336 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
4337
4338         * Makefile.in (SFILES): Add d-exp.y.
4339         (YYFILES): Add d-exp.c.
4340         (YYOBJ): Add d-exp.o.
4341         (local-maintainer-clean): Delete d-exp.c.
4342         * d-exp.y: New file.
4343         * d-lang.h (d_parse): New declaration.
4344         (d_error): New declaration.
4345         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4346         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4347         PREC_ORDER operators.
4348         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4349
4350 2014-06-19  Yao Qi  <yao@codesourcery.com>
4351
4352         * gdbthread.h (any_running): Remove the declaration.
4353         * thread.c (any_running): Remove.
4354
4355 2014-06-19  Yao Qi  <yao@codesourcery.com>
4356
4357         * gdbthread.h (struct thread_info) <state>: Change its type to
4358         'enum thread_state'.  Update comments.
4359
4360 2014-06-19  Pedro Alves  <palves@redhat.com>
4361
4362         * gdbthread.h (ALL_THREADS): Delete.
4363         (ALL_NON_EXITED_THREADS): New macro.
4364         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4365         instead of ALL_THREADS.
4366         * infrun.c (find_thread_needs_step_over)
4367         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4368         instead of ALL_THREADS.
4369         * record-btrace.c (record_btrace_open)
4370         (record_btrace_stop_recording, record_btrace_close)
4371         (record_btrace_is_replaying, record_btrace_resume)
4372         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4373         * remote.c (append_pending_thread_resumptions): Likewise.
4374         * thread.c (thread_apply_all_command): Likewise.
4375
4376 2014-06-19  Gary Benson  <gbenson@redhat.com>
4377
4378         * i386-nat.c (i386_stopped_by_watchpoint):
4379         Use i386_dr_stopped_by_watchpoint.
4380         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4381         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4382
4383 2014-06-19  Gary Benson  <gbenson@redhat.com>
4384
4385         * nat/i386-dregs.c: New file.
4386         * Makefile.in (i386-dregs.o): New rule.
4387         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4388         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4389         * config/i386/darwin.mh (NATDEPFILES): Likewise.
4390         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4391         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4392         * config/i386/go32.mh (NATDEPFILES): Likewise.
4393         * config/i386/linux.mh (NATDEPFILES): Likewise.
4394         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4395         * config/i386/mingw.mh (NATDEPFILES): Likewise.
4396         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4397         * i386-nat.h (debug_hw_points): New declaration.
4398         * i386-nat.c (breakpoint.h): Remove include.
4399         (command.h): Likewise.
4400         (target.h): Likewise.
4401         (gdb_assert.h): Likewise.
4402         (debug_hw_points): Made nonstatic.
4403         (debug_printf): Now in i386-dregs.c.
4404         (TARGET_HAS_DR_LEN_8): Likewise.
4405         (DR_CONTROL_SHIFT): Likewise.
4406         (DR_CONTROL_SIZE): Likewise.
4407         (DR_RW_EXECUTE): Likewise.
4408         (DR_RW_WRITE): Likewise.
4409         (DR_RW_READ): Likewise.
4410         (DR_RW_IORW): Likewise.
4411         (DR_LEN_1): Likewise.
4412         (DR_LEN_2): Likewise.
4413         (DR_LEN_4): Likewise.
4414         (DR_LEN_8): Likewise.
4415         (DR_LOCAL_ENABLE_SHIFT): Likewise.
4416         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4417         (DR_ENABLE_SIZE): Likewise.
4418         (DR_LOCAL_SLOWDOWN): Likewise.
4419         (DR_GLOBAL_SLOWDOWN): Likewise.
4420         (DR_CONTROL_RESERVED): Likewise.
4421         (I386_DR_CONTROL_MASK): Likewise.
4422         (I386_DR_VACANT): Likewise.
4423         (I386_DR_LOCAL_ENABLE): Likewise.
4424         (I386_DR_GLOBAL_ENABLE): Likewise.
4425         (I386_DR_DISABLE): Likewise.
4426         (I386_DR_SET_RW_LEN): Likewise.
4427         (I386_DR_GET_RW_LEN): Likewise.
4428         (I386_DR_WATCH_HIT): Likewise.
4429         (i386_wp_op_t): Likewise.
4430         (i386_show_dr): Likewise.
4431         (i386_length_and_rw_bits): Likewise.
4432         (i386_insert_aligned_watchpoint): Likewise.
4433         (i386_remove_aligned_watchpoint): Likewise.
4434         (i386_handle_nonaligned_watchpoint): Likewise.
4435         (i386_update_inferior_debug_regs): Likewise.
4436         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4437         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4438         (i386_region_ok_for_watchpoint):
4439         Use i386_dr_region_ok_for_watchpoint.
4440         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4441
4442 2014-06-19  Gary Benson  <gbenson@redhat.com>
4443
4444         * i386-nat.c (i386_insert_hw_breakpoint): Use
4445         i386_insert_watchpoint.
4446         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4447
4448 2014-06-19  Gary Benson  <gbenson@redhat.com>
4449
4450         * i386-nat.c (i386_dr_show): Renamed to
4451         i386_show_dr and made static.  All uses updated.
4452         (i386_dr_length_and_rw_bits): Renamed to
4453         i386_length_and_rw_bits and made static.
4454         All uses updated.
4455         (i386_dr_insert_aligned_watchpoint): Renamed to
4456         i386_insert_aligned_watchpoint and made static.
4457         All uses updated.
4458         (i386_dr_remove_aligned_watchpoint): Renamed to
4459         i386_remove_aligned_watchpoint and made static.
4460         All uses updated.
4461         (i386_dr_update_inferior_debug_regs): Renamed to
4462         i386_update_inferior_debug_regs and made static.
4463         All uses updated.
4464         * nat/i386-dregs.h (i386_dr_show): Removed.
4465         (i386_dr_length_and_rw_bits): Likewise.
4466         (i386_dr_insert_aligned_watchpoint): Likewise.
4467         (i386_dr_remove_aligned_watchpoint): Likewise.
4468         (i386_dr_update_inferior_debug_regs): Likewise.
4469
4470 2014-06-19  Gary Benson  <gbenson@redhat.com>
4471
4472         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4473         * configure: Regenerate.
4474         * config.in: Likewise.
4475         * main.c (signal.h): New include.
4476         (setup_alternate_signal_stack): New function.
4477         (captured_main): Call the above.
4478         * cp-support.c (signal.h): New include.
4479         (catch_demangler_crashes): New flag.
4480         (SIGJMP_BUF): New define.
4481         (SIGSETJMP): Likewise.
4482         (SIGLONGJMP): Likewise.
4483         (gdb_demangle_jmp_buf): New static global.
4484         (gdb_demangle_attempt_core_dump): Likewise.
4485         (gdb_demangle_signal_handler): New function.
4486         (gdb_demangle): If catch_demangler_crashes is set, install the
4487         above signal handler before calling bfd_demangle, and restore
4488         the original signal handler afterwards.  Display the offending
4489         symbol and call demangler_warning the first time a segmentation
4490         fault is caught.
4491         (_initialize_cp_support): New maint set/show command.
4492
4493 2014-06-19  Gary Benson  <gbenson@redhat.com>
4494
4495         * utils.h (resource_limit_kind): New enum.
4496         (can_dump_core): New declaration.
4497         (warn_cant_dump_core): Likewise.
4498         (dump_core): Likewise.
4499         * utils.c (dump_core): Made nonstatic.  Added new
4500         parameter "limit_kind".
4501         (can_dump_core): Made nonstatic. Moved printing code to...
4502         (warn_cant_dump_core): New function.
4503         (can_dump_core_warn): Likewise.
4504         (internal_vproblem): Replace calls to can_dump_core with
4505         calls to can_dump_core_warn.  Supply new argument to each.
4506
4507 2014-06-19  Gary Benson  <gbenson@redhat.com>
4508
4509         * utils.h (demangler_vwarning): New declaration.
4510         (demangler_warning): Likewise.
4511         * utils.c (struct internal_problem)
4512         <user_settable_should_quit>: New field.
4513         <user_settable_should_dump_core>: Likewise
4514         (internal_error_problem): Add values for above new fields.
4515         (internal_warning_problem): Likewise.
4516         (demangler_warning_problem): New static global.
4517         (demangler_vwarning): New function.
4518         (demangler_warning): Likewise.
4519         (add_internal_problem_command): Selectively add commands.
4520         (_initialize_utils): New internal problem command.
4521         * maint.c (maintenance_demangler_warning): New function.
4522         (_initialize_maint_cmds): New command.
4523
4524 2014-06-18  Tom Tromey  <tromey@redhat.com>
4525
4526         * f-valprint.c (info_common_command_for_block): Update.
4527         * symtab.h (struct general_symbol_info) <common_block>: Now
4528         const.
4529
4530 2014-06-18  Tom Tromey  <tromey@redhat.com>
4531
4532         * symtab.h (struct symtab) <blockvector>: Now const.
4533         * ada-lang.c (ada_add_global_exceptions): Update.
4534         * buildsym.c (augment_type_symtab): Update.
4535         * dwarf2read.c (dw2_lookup_symbol): Update.
4536         * jit.c (finalize_symtab): Update.
4537         * jv-lang.c (add_class_symtab_symbol): Update.
4538         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4539         Update.
4540         * objfiles.c (objfile_relocate1): Update.
4541         * psymtab.c (lookup_symbol_aux_psymtabs)
4542         (maintenance_check_psymtabs): Update.
4543         * python/py-symtab.c (stpy_global_block, stpy_static_block):
4544         Update.
4545         * spu-tdep.c (spu_catch_start): Update.
4546         * symmisc.c (dump_symtab_1): Update.
4547         * symtab.c (lookup_global_symbol_from_objfile)
4548         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4549         (basic_lookup_transparent_type_quick)
4550         (basic_lookup_transparent_type, find_pc_sect_symtab)
4551         (find_pc_sect_line, search_symbols): Update.
4552         * block.c (find_block_in_blockvector): Make "bl" const.
4553         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4554         const.
4555         (blockvector_contains_pc): Make "bv" const.
4556         (block_for_pc_sect): Update.
4557         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4558         (blockvector_contains_pc): Update.
4559         * breakpoint.c (resolve_sal_pc): Update.
4560         * inline-frame.c (block_starting_point_at): Update.
4561
4562 2014-06-18  Tom Tromey  <tromey@redhat.com>
4563
4564         * completer.c (complete_line): Make "line_buffer" const.
4565         * completer.h (complete_line): Update.
4566
4567 2014-06-18  Tom Tromey  <tromey@redhat.com>
4568
4569         * symtab.c (add_macro_name): Remove unneeded cast.
4570
4571 2014-06-18  Tom Tromey  <tromey@redhat.com>
4572
4573         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4574         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4575
4576 2014-06-18  Tom Tromey  <tromey@redhat.com>
4577
4578         * probe.c (info_probes_for_ops): Make "arg" const.
4579         * probe.h (info_probes_for_ops): Update.
4580
4581 2014-06-18  Tom Tromey  <tromey@redhat.com>
4582
4583         * varobj.c (varobj_create): Update.
4584         * valops.c (value_of_this): Update.
4585         * tracepoint.c (add_local_symbols, scope_info): Update.
4586         * symtab.h (struct general_symbol_info) <block>: Now const.
4587         * symtab.c (skip_prologue_sal)
4588         (default_make_symbol_completion_list_break_on)
4589         (skip_prologue_using_sal): Update.
4590         * stack.h (iterate_over_block_locals)
4591         (iterate_over_block_local_vars): Update.
4592         * stack.c (print_frame_args): Update.
4593         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4594         parameter const.
4595         (get_selected_block): Make return type const.
4596         * python/py-frame.c (frapy_block): Update.
4597         * python/py-block.c (gdbpy_block_for_pc): Update.
4598         * p-exp.y (%union) <bval>: Now const.
4599         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4600         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4601         * m2-exp.y (%union) <bval>: Now const.
4602         * linespec.c (get_current_search_block): Make return type const.
4603         (create_sals_line_offset, find_label_symbols): Update.
4604         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4605         Update.
4606         (block_starting_point_at): Make "block" const.
4607         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4608         (check_exception_resume): Update.
4609         * guile/scm-frame.c (gdbscm_frame_block): Update.
4610         * guile/scm-block.c (gdbscm_lookup_block): Update.
4611         * frame.h (get_frame_block): Update.
4612         (get_selected_block): Make return type const.
4613         * frame.c (frame_id_inner): Update.
4614         * f-valprint.c (info_common_command_for_block)
4615         (info_common_command): Update.
4616         * dwarf2loc.c (dwarf2_find_location_expression)
4617         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4618         (locexpr_describe_location_piece): Update.
4619         * c-exp.y (%union) <bval>: Now const.
4620         * breakpoint.c (resolve_sal_pc): Update.
4621         * blockframe.c (get_frame_block):Make return type const.
4622         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4623         (block_innermost_frame): Update.
4624         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4625         (block_for_pc, block_for_pc_sect): Update.
4626         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4627         'pblock' const.
4628         (block_for_pc_sect, block_for_pc): Make return type const.
4629         * ax-gdb.c (gen_expr): Update.
4630         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4631         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4632         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4633         (ada_read_var_value): Update.
4634         * ada-exp.y (struct name_info) <block>: Now const.
4635         (%union): Likewise.
4636         (block_lookup): Constify.
4637
4638 2014-06-18  Gary Benson  <gbenson@redhat.com>
4639
4640         * nat/i386-dregs.h: New file.
4641         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4642         * i386-nat.h (i386-dregs.h): New include.
4643         (DR_FIRSTADDR): Now in i386-dregs.h.
4644         (DR_LASTADDR): Likewise.
4645         (DR_NADDR): Likewise.
4646         (DR_STATUS): Likewise.
4647         (DR_CONTROL): Likewise.
4648         (i386_debug_reg_state): Likewise.
4649         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4650
4651 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4652
4653         * breakpoint.c (set_longjmp_breakpoint): Call
4654         momentary_breakpoint_from_master with additional argument.
4655         (set_longjmp_breakpoint_for_call_dummy): Call
4656         momentary_breakpoint_from_master with additional argument.
4657         (set_std_terminate_breakpoint): Call
4658         momentary_breakpoint_from_master with additional argument.
4659         (momentary_breakpoint_from_master): Add argument to function
4660         definition and use it to initialize structure member flag.
4661         (clone_momentary_breakpoint): Call
4662         momentary_breakpoint_from_master with additional argument.
4663         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4664         member flags set in momentary_breakpoint_from_master.
4665
4666 2014-06-18  Gary Benson  <gbenson@redhat.com>
4667
4668         * i386-nat.c (i386_show_dr): Renamed to
4669         i386_dr_show and made nonstatic.  All uses updated.
4670         (i386_length_and_rw_bits): Renamed to
4671         i386_dr_length_and_rw_bits and made nonstatic.
4672         All uses updated.
4673         (i386_insert_aligned_watchpoint): Renamed to
4674         i386_dr_insert_aligned_watchpoint and made nonstatic.
4675         All uses updated.
4676         (i386_remove_aligned_watchpoint): Renamed to
4677         i386_dr_remove_aligned_watchpoint and made nonstatic.
4678         All uses updated.
4679         (i386_update_inferior_debug_regs): Renamed to
4680         i386_dr_update_inferior_debug_regs and made nonstatic.
4681         All uses updated.
4682
4683 2014-06-18  Gary Benson  <gbenson@redhat.com>
4684
4685         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4686         (i386_dr_low_can_set_control): Likewise.
4687         (i386_dr_low_set_addr): Likewise.
4688         (i386_dr_low_set_control): Likewise.
4689         (i386_dr_low_get_addr): Likewise.
4690         (i386_dr_low_get_status): Likewise.
4691         (i386_dr_low_get_control): Likewise.
4692         (i386_insert_aligned_watchpoint): Use new macros.
4693         (i386_update_inferior_debug_regs): Likewise.
4694         (i386_stopped_data_address): Likewise.
4695
4696 2014-06-18  Gary Benson  <gbenson@redhat.com>
4697
4698         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4699         New parameter.  All uses updated.
4700
4701 2014-06-18  Gary Benson  <gbenson@redhat.com>
4702
4703         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4704         All uses updated.
4705
4706 2014-06-18  Gary Benson  <gbenson@redhat.com>
4707
4708         * i386-nat.c (debug_printf): New macro.
4709         (i386_get_debug_register_length): Likewise.
4710         (TARGET_HAS_DR_LEN_8): Use above macro.
4711         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4712         and printf_unfiltered.  Use phex to format values.
4713
4714 2014-06-18  Gary Benson  <gbenson@redhat.com>
4715
4716         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4717         Make const.
4718
4719 2014-06-18  Gary Benson  <gbenson@redhat.com>
4720
4721         * i386-nat.c: Comment changes.
4722
4723 2014-06-18  Gary Benson  <gbenson@redhat.com>
4724
4725         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4726
4727 2014-06-18  Gary Benson  <gbenson@redhat.com>
4728
4729         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4730         (i386_insert_aligned_watchpoint): Likewise.
4731         (i386_remove_aligned_watchpoint): Likewise.
4732         (i386_handle_nonaligned_watchpoint): Likewise.
4733
4734 2014-06-18  Gary Benson  <gbenson@redhat.com>
4735
4736         * i386-nat.c: Whitespace changes.
4737
4738 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4739
4740         * MAINTAINERS: Update Roland McGrath's email address.
4741         Thanks to Sergio Durigan Junior for pointing out that he left
4742         Red Hat a while ago, and giving me a current address.
4743
4744 2014-06-17  Tom Tromey  <tromey@redhat.com>
4745
4746         * utils.h (savestring): Remove declaration.
4747
4748 2014-06-17  Tom Tromey  <tromey@redhat.com>
4749
4750         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4751
4752 2014-06-16  Keith Seitz  <keiths@redhat.com>
4753
4754         PR mi/15863
4755         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4756         to update the varobj if inferior_ptid is null_ptid.
4757
4758 2014-06-16  Tom Tromey  <tromey@redhat.com>
4759
4760         * target.h (struct target_ops) <to_info_proc>: Make parameter
4761         const.
4762         (target_info_proc): Update.
4763         * target.c (target_info_proc): Make "args" const.
4764         * procfs.c (procfs_info_proc): Update.
4765         * linux-tdep.c (linux_info_proc): Update.
4766         (linux_core_info_proc_mappings): Make "args" const.
4767         (linux_core_info_proc): Update.
4768         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4769         * gdbarch.c: Rebuild.
4770         * gdbarch.h: Rebuild.
4771         * corelow.c (core_info_proc): Update.
4772
4773 2014-06-16  Tom Tromey  <tromey@redhat.com>
4774
4775         * target.h (struct target_ops) <to_disconnect>: Make parameter
4776         const.
4777         (target_disconnect): Update.
4778         * target.c (target_disconnect): Make "args" const.
4779         * target-delegates.c: Rebuild.
4780         * remote.c (remote_disconnect): Update.
4781         * record.h (record_disconnect): Update.
4782         * record.c (record_disconnect): Update.
4783         * inf-child.c (inf_child_disconnect): Update.
4784
4785 2014-06-16  Tom Tromey  <tromey@redhat.com>
4786
4787         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4788         * target.c (debug_to_rcmd, default_rcmd): Update.
4789         * target-delegates.c: Rebuild.
4790         * remote.c (remote_rcmd): Update.
4791         * monitor.c (monitor_rcmd): Update.
4792
4793 2014-06-16  Pedro Alves  <palves@redhat.com>
4794
4795         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4796         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4797         have OBJF_SHARED set.
4798         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4799         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4800         instead of OBJF_USERLOADED.
4801         * objfiles.h (OBJF_SHARED): Update comment.
4802         (userloaded_objfile_contains_address_p): Rename to ...
4803         (shared_objfile_contains_address_p): ... this, and update
4804         comments.
4805         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4806         new objfile.
4807         (remove_symbol_file_command): Skip objfiles that don't have
4808         OBJF_SHARED set.
4809
4810 2014-06-16  Tom Tromey  <tromey@redhat.com>
4811
4812         * minsyms.h (prim_record_minimal_symbol)
4813         (prim_record_minimal_symbol_and_info): Update comments.
4814
4815 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4816
4817         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4818         or --without-guile, according to how GDB was built.
4819
4820 2014-06-13  Tom Tromey  <tromey@redhat.com>
4821
4822         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4823         to help_list.
4824         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4825         to help_list.
4826         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4827         help_list.
4828         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4829         help_list.Pass all_commands, not -1, to help_list.
4830         * cli/cli-dump.c (dump_command, append_command)
4831         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4832         (binary_dump_command, binary_append_command): Pass all_commands,
4833         not -1, to help_list.
4834         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4835         -1, to help_list.
4836         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4837         -1, to help_list.
4838         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4839         help_list.
4840         * top.c (set_history): Pass all_commands, not -1, to help_list.
4841         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4842         all_commands, not -1, to help_list.
4843         * symfile.c (overlay_command): Pass all_commands, not -1, to
4844         help_list.
4845         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4846         help_list.
4847         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4848         help_list.
4849         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4850         -1, to help_list.
4851         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4852         not -1, to help_list.
4853         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4854         not -1, to help_list.
4855         * maint.c (maintenance_command, maintenance_info_command)
4856         (maintenance_print_command, maintenance_set_cmd): Pass
4857         all_commands, not -1, to help_list.
4858         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4859         help_list.
4860         * language.c (set_check): Pass all_commands, not -1, to help_list.
4861         * infcmd.c (unset_command): Pass all_commands, not -1, to
4862         help_list.
4863         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4864         help_list.
4865         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4866         help_list.
4867         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4868         help_list.
4869         * breakpoint.c (save_command): Pass all_commands, not -1, to
4870         help_list.
4871         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4872         all_commands, not -1, to help_list.
4873
4874 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4875
4876         * regcache.c (struct register_to_invalidate): New structure.
4877         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4878         functions.
4879         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4880
4881 2014-06-12  Yao Qi  <yao@codesourcery.com>
4882
4883         * varobj.c (varobj_get_num_children): Call
4884         varobj_is_dynamic_p.
4885         (varobj_list_children): Likewise.
4886         (varobj_update): Likewise.  Update comments.
4887
4888 2014-06-12  Yao Qi  <yao@codesourcery.com>
4889
4890         * varobj.c (varobj_pretty_printed_p): Rename to ...
4891         (varobj_is_dynamic_p): ... this.  New function.
4892         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4893         (varobj_is_dynamic_p): Declare.
4894         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4895         (mi_print_value_p, varobj_update_one): Likewise.
4896
4897 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4898             Yao Qi  <yao@codesourcery.com>
4899
4900         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4901         (varobj_get_iterator): Wrap up code for pretty-printer by
4902         "#if HAVE_PYTHON" and "#endif".
4903         (update_dynamic_varobj_children): Likewise.
4904
4905 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4906             Yao Qi  <yao@codesourcery.com>
4907
4908         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4909         gdb_python_initialized is false.  Move some code from varobj.c.
4910         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4911         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4912         (struct varobj_item): Moved to varobj-iter.h".
4913         (varobj_clear_saved_item): New function.
4914         (update_dynamic_varobj_children): Move python-related code to
4915         py-varobj.c.
4916         (free_variable): Call varobj_clear_saved_item and
4917         varobj_iter_delete.
4918
4919 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4920             Yao Qi  <yao@codesourcery.com>
4921
4922         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4923         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4924         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4925         (py-varobj.o): New rule.
4926         * python/py-varobj.c: New file.
4927         * python/python-internal.h (py_varobj_get_iterator): Declare.
4928         * varobj-iter.h: New file.
4929         * varobj.c: Include "varobj-iter.h"
4930         (struct varobj) <child_iter>: Change its type from "PyObject *"
4931         to "struct varobj_iter *".
4932         <saved_item>: Likewise.
4933         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4934         [HAVE_PYTHON] (varobj_get_iterator): New function.
4935         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4936         python-specific code to python/py-varobj.c.
4937         (install_visualizer): Call varobj_iter_delete instead of
4938         Py_XDECREF.
4939         * varobj.h (varobj_ensure_python_env): Declare.
4940
4941 2014-06-12  Yao Qi  <yao@codesourcery.com>
4942
4943         * varobj.c (struct varobj_item): New structure.
4944         (create_child_with_value): Update declaration.
4945         (varobj_add_child): Replace arguments 'name' and 'value' with
4946         'item'.  All callers updated.
4947         (install_dynamic_child): Likewise.
4948         (update_dynamic_varobj_children): Likewise.
4949         (varobj_add_child): Likewise.
4950         (create_child_with_value): Likewise.
4951
4952 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4953
4954         * NEWS: Create a new section for the next release branch.
4955         Rename the section of the current branch, now that it has
4956         been cut.
4957
4958 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4959
4960         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4961         * version.in: Bump version to 7.8.50.DATE-cvs.
4962
4963 2014-06-11  Pedro Alves  <palves@redhat.com>
4964
4965         PR remote/17028
4966         * ser-mingw.c (net_windows_socket_check_pending): New function.
4967         (net_windows_select_thread): Ignore spurious wakeups.  Use
4968         net_windows_socket_check_pending.
4969         (net_windows_wait_handle): Check for pending events with
4970         ioctlsocket, through net_windows_socket_check_pending, instead of
4971         checking the socket's event.
4972
4973 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4974
4975         * python/python-internal.h (gdb_PyObject_GetAttrString)
4976         (gdb_PyObject_HasAttrString): New inline function definitions.
4977         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4978         char * of the second argument to PyObject_GetAttrString.
4979
4980 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4981
4982         * serial.c (serial_write): Fix index of character to be printed
4983         in call to serial_logchar when serial debug traces are enabled.
4984
4985 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4986
4987         * gdbtypes (resolve_dynamic_range): Add function description.
4988
4989 2014-06-09  Pedro Alves  <palves@redhat.com>
4990
4991         * linux-nat.c (linux_child_follow_fork): Initialize status with
4992         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4993         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4994         state.
4995
4996 2014-06-09  Gary Benson  <gbenson@redhat.com>
4997
4998         * common/signals.c (gdb_signal_from_host): Reorder to separate
4999         the always-available ANSI-standard signals from the signals that
5000         require checking.
5001         (do_gdb_signal_to_host): Likewise.
5002         * proc-events.c (signal_table): Likewise.
5003
5004 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5005
5006         * common/linux-ptrace.c (linux_disable_event_reporting): New
5007         function.
5008         * common/linux-ptrace.h (linux_disable_event_reporting): New
5009         declaration.
5010         * linux-nat.c (linux_child_follow_fork): Do a single step before
5011         detach.
5012
5013 2014-06-07  Keith Seitz  <keiths@redhat.com>
5014
5015         Revert:
5016         PR c++/16253
5017         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5018         from symbol_matches_domain in symtab.c. All local callers
5019         of symbol_matches_domain updated.
5020         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5021         search STRUCT_DOMAIN.
5022         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5023         independently.  standard_lookup will do that automatically.
5024         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5025         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5026         (cp_lookup_symbol_in_namespace): Likewise.
5027         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5028         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5029         may return a STRUCT_DOMAIN match.
5030         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5031         * cp-support.c: Include language.h.
5032         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5033         VAR_DOMAIN.
5034         * psymtab.c (match_partial_symbol): Compare the requested
5035         domain with the symbol's domain directly.
5036         (lookup_partial_symbol): Likewise.
5037         * symtab.c (lookup_symbol_in_language): Explain when/why
5038         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5039         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5040         appropriate languages.
5041         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5042         and moved to ada-lang.c
5043         (lookup_block_symbol): Explain that this function only returns
5044         symbol matching the requested DOMAIN.
5045         Compare the requested domain with the symbol's domain directly.
5046         (iterate_over_symbols): Compare the requested domain with the
5047         symbol's domain directly.
5048         * symtab.h (symbol_matches_domain): Remove.
5049
5050 2014-06-06  Doug Evans  <xdje42@gmail.com>
5051
5052         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5053         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5054         (gdbscm_guile_version_is_at_least): Declare.
5055         (gdbscm_scm_string_to_int): Declare.
5056         * guile/guile.c (gdbscm_guile_major_version): New global.
5057         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5058         (guile_datadir): New static global.
5059         (gdbscm_guile_data_directory): New function.
5060         (initialize_scheme_side): Update.
5061         (misc_guile_functions): Add guile-data-directory.
5062         (initialize_gdb_module): Fetch guile version number.
5063         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5064         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5065         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5066         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5067         comments.
5068         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5069         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5070         * guile/scm-value.c (gdbscm_value_to_string): Only call
5071         scm_port_conversion_strategy if Guile version >= 2.0.6.
5072
5073 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5074
5075         * main.c (print_gdb_help): Add -q and --silent.
5076
5077 2014-06-06  Gary Benson  <gbenson@redhat.com>
5078
5079         * common/signals.c: Remove preprocessor conditionals for
5080         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5081         SIGSEGV and SIGTERM.
5082         * proc-events.c: Likewise.
5083
5084 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5085
5086         * symfile.c (symfile_free_objfile): Remove restriction to
5087         OBJF_USERLOADED.
5088         * symfile-mem.c (symbol_file_add_from_memory): Call
5089         add_target_sections_of_objfile.
5090
5091 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5092
5093         * guile/scm-value.c (gdbscm_history_append_x): Use
5094         'vlscm_get_value_smob_arg_unsafe' instead of
5095         'vlscm_scm_to_value'.
5096
5097 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5098
5099         PR mi/15806
5100         * utils.c (printchar): Don't escape at all if quoter is NUL.
5101         Update function documentation to clarify effect of parameter
5102         QUOTER.
5103         * remote.c (escape_buffer): Pass '\\' as the quoter to
5104         fputstrn_unfiltered.
5105         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5106         generate the output.
5107         (mi_solib_unloaded): Same.
5108
5109 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5110
5111         * development.sh: Delete.
5112         * Makefile.in (config.status): Adjust dependency on development.sh.
5113         * configure.ac: Adjust development.sh source call.
5114         * configure: Regenerate.
5115
5116 2014-06-04  Doug Evans  <xdje42@gmail.com>
5117
5118         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5119         is_scheme_bkpt, spec.
5120         (bpscm_make_breakpoint_smob): Initialize new members.
5121         (gdbscm_create_breakpoint_x): Split into two ...
5122         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5123         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5124         (scheme_function breakpoint_functions): Update.
5125         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5126         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5127         register-breakpoint!.
5128
5129 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5130
5131         PR server/17023
5132         * mem-break.c (z_type_supported): Return zero if
5133         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5134
5135 2014-06-04  Tom Tromey  <tromey@redhat.com>
5136
5137         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5138         value_from_contents_and_address_unresolved.
5139         (ada_template_to_fixed_record_type_1): Likewise.
5140         (ada_which_variant_applies): Likewise.
5141         * value.h (value_from_contents_and_address_unresolved): Declare.
5142         * value.c (value_from_contents_and_address_unresolved): New
5143         function.
5144         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5145         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5146         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5147
5148 2014-06-04  Tom Tromey  <tromey@redhat.com>
5149
5150         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5151
5152 2014-06-04  Tom Tromey  <tromey@redhat.com>
5153
5154         * procfs.c (procfs_attach): Make "args" const.
5155         * windows-nat.c (windows_attach): Make "args" const.
5156         * nto-procfs.c (procfs_attach): Make "args" const.
5157         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5158         * go32-nat.c (go32_attach): Make "args" const.
5159         * gnu-nat.c (gnu_attach): Make "args" const.
5160         * darwin-nat.c (darwin_attach): Make "args" const.
5161         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5162         * linux-nat.c (linux_nat_attach): Make "args" const.
5163         * remote.c (extended_remote_attach_1, extended_remote_attach):
5164         Make "args" const.
5165         * target.h (struct target_ops) <to_attach>: Make "args" const.
5166         (find_default_attach): Likewise.
5167         * utils.c (parse_pid_to_attach): Make "args" const.
5168         * utils.h (parse_pid_to_attach): Update.
5169
5170 2014-06-04  Tom Tromey  <tromey@redhat.com>
5171
5172         * target-delegates.c: Rebuild.
5173         * target.c (default_thread_address_space): New function.
5174         (target_thread_address_space): Simplify.
5175         * target.h (struct target_ops) <to_thread_address_space>: Add
5176         TARGET_DEFAULT_FUNC.
5177
5178 2014-06-04  Doug Evans  <xdje42@gmail.com>
5179
5180         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5181
5182 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5183
5184         * record-btrace.c: Include event-loop.h and inf-loop.h.
5185         (record_btrace_resume_exec_dir)
5186         (record_btrace_async_inferior_event_handler)
5187         (record_btrace_handle_async_inferior_event): New.
5188         (record_btrace_open): Create async event handler.
5189         (record_btrace_close): Delete async event handler.
5190         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5191         Mark async event handler.
5192         (record_btrace_execution_direction): New.
5193         (init_record_btrace_ops): Initialize to_execution_direction.
5194
5195 2014-06-03  Doug Evans  <xdje42@gmail.com>
5196
5197         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5198         (gdbscm_make_parameter): Ditto.
5199
5200 2014-06-03  Doug Evans  <dje@google.com>
5201
5202         * exec.c (exec_close_1): Call clear_section_table instead of
5203         resize_section_table.
5204         (clear_section_table): New function.
5205         (resize_section_table): Make static.  Rename arg num_added to
5206         adjustment.
5207         * exec.h (clear_section_table): Declare.
5208         (resize_section_table): Delete.
5209         * progspace.c (release_program_space): Call clear_section_table
5210         instead of resize_section_table.
5211
5212 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5213
5214         * NEWS (Python Scripting): Add entry about the new xmethods
5215         feature.
5216
5217 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5218
5219         * python/py-xmethods.c: New file.
5220         * python/py-objfile.c (objfile_object): New field 'xmethods'.
5221         (objfpy_dealloc): XDECREF on the new xmethods field.
5222         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5223         field.
5224         (objfpy_get_xmethods): New function.
5225         (objfile_getset): New entry 'xmethods'.
5226         * python/py-progspace.c (pspace_object): New field 'xmethods'.
5227         (pspy_dealloc): XDECREF on the new xmethods field.
5228         (pspy_new, pspace_to_pspace_object): Initialize xmethods
5229         field.
5230         (pspy_get_xmethods): New function.
5231         (pspace_getset): New entry 'xmethods'.
5232         * python/python-internal.h: Add declarations for new functions.
5233         * python/python.c (_initialize_python): Invoke
5234         gdbpy_initialize_xmethods.
5235         * python/lib/gdb/__init__.py (xmethods): New
5236         attribute.
5237         * python/lib/gdb/xmethod.py: New file.
5238         * python/lib/gdb/command/xmethods.py: New file.
5239
5240 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5241
5242         * eval.c (evaluate_subexp_standard): Call the xmethod if the
5243         best match method returned by find_overload_match is an xmethod.
5244         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5245         the best matching operator returned by find_overload_match is an
5246         xmethod.
5247         * valops.c: #include "extension.h".
5248         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5249         Return void.  The list of matching source methods is returned in
5250         "fn_list" and a vector of matching debug method workers is
5251         returned in "xm_worker_vec".  Update all callers.
5252         (value_find_oload_method_list): Likewise.
5253         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
5254         non-NULL, then the index of the best matching method in this
5255         vector is returned.  Update all callers.
5256         (find_overload_match): Include xmethods while performing overload
5257         resolution.
5258
5259 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5260
5261         * defs.h (enum lval_type): New enumerator "lval_xcallable".
5262         * extension-priv.h (struct extension_language_ops): Add the
5263         xmethod interface.
5264         * extension.c (new_xmethod_worker, clone_xmethod_worker,
5265         get_matching_xmethod_workers, get_xmethod_argtypes,
5266         invoke_xmethod, free_xmethod_worker,
5267         free_xmethod_worker_vec): New functions.
5268         * extension.h: #include "common/vec.h".
5269         New function declarations.
5270         (struct xmethod_worker): New struct.
5271         (VEC (xmethod_worker_ptr)): New vector type.
5272         (xmethod_worker_ptr): New typedef.
5273         (xmethod_worker_vec): Likewise.
5274         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5275         builtin_type.
5276         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5277         (struct builtin_type): New field "xmethod".
5278         * valarith.c (value_ptradd): Assert that the value argument is not
5279         lval_xcallable.
5280         * valops.c (value_must_coerce_to_target): Return 0 for
5281         lval_xcallable values.
5282         * value.c (struct value): New field XM_WORKER in the field
5283         LOCATION.
5284         (value_address, value_raw_address): Return 0 for lval_xcallable
5285         values.
5286         (set_value_address): Assert that the value is not an
5287         lval_xcallable.
5288         (value_free): Free the associated xmethod worker when freeing
5289         lval_xcallable values.
5290         (set_value_component_location): Assert that the WHOLE value is not
5291         lval_xcallable.
5292         (value_of_xmethod, call_xmethod): New functions.
5293         * value.h: Declare "struct xmethod_worker".
5294         Declare new functions value_of_xmethod, call_xmethod.
5295
5296 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
5297             Pedro Alves  <palves@redhat.com>
5298
5299         PR breakpoints/17000
5300         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5301         New function, extracted from software_breakpoint_inserted_here_p.
5302         (software_breakpoint_inserted_here_p): Replace factored out code
5303         by call to find_non_raw_software_breakpoint_inserted_here.
5304         (bp_target_info_copy_insertion_state): New function.
5305         (bkpt_insert_location): Handle the case of a single-step
5306         breakpoint already inserted at the same address.
5307         (bkpt_remove_location): Handle the case of a single-step
5308         breakpoint still inserted at the same address.
5309         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5310         breakpoint already inserted at the same address.
5311         (deprecated_remove_raw_breakpoint): Handle the case of a
5312         non-raw breakpoint still inserted at the same address.
5313         (find_single_step_breakpoint): New function, extracted from
5314         single_step_breakpoint_inserted_here_p.
5315         (find_single_step_breakpoint): New function,
5316         factored out from single_step_breakpoint_inserted_here_p.
5317         (single_step_breakpoint_inserted_here_p): Reimplement.
5318
5319 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
5320
5321         Pushed by Joel Brobecker  <brobecker@adacore.com>
5322         * source.c (show_substitute_path_command): Fix display of matching
5323         substitution rules.
5324
5325 2014-06-03  Gary Benson  <gbenson@redhat.com>
5326
5327         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5328
5329 2014-06-02  Doug Evans  <xdje42@gmail.com>
5330
5331         Add parameter support for Guile.
5332         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5333         (SUBDIR_GUILE_SRCS): Add scm-param.c.
5334         (scm-param.o): New rule.
5335         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5336         (gdbscm_misc_error): Declare.
5337         (gdbscm_canonicalize_command_name): Declare.
5338         (gdbscm_scm_to_host_string): Declare.
5339         (gdbscm_scm_from_host_string): Declare.
5340         (gdbscm_initialize_parameters): Declare.
5341         * guile/guile.c (initialize_gdb_module): Call
5342         gdbscm_initialize_parameters.
5343         * guile/lib/gdb.scm: Export parameter symbols.
5344         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5345         cmdscm_canonicalize_name and made public.  All callers updated.
5346         * guile/scm-exception.c (gdbscm_misc_error): New function.
5347         * guile/scm-param.c: New file.
5348         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5349         (gdbscm_scm_to_host_string): New function.
5350         (gdbscm_scm_from_host_string): New function.
5351         * scm-utils.c (gdbscm_gc_dup_argv): New function.
5352
5353 2014-06-02  Doug Evans  <xdje42@gmail.com>
5354
5355         Add command support for Guile.
5356         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5357         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5358         (scm-cmd.o): New rule.
5359         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5360         (gdbscm_user_error_p): Declare.
5361         (gdbscm_parse_command_name): Declare.
5362         (gdbscm_valid_command_class_p): Declare.
5363         (gdbscm_initialize_commands): Declare.
5364         * guile/guile.c (initialize_gdb_module): Call
5365         gdbscm_initialize_commands.
5366         * guile/lib/gdb.scm: Export command symbols.
5367         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5368         (throw-user-error): New function.
5369         * guile/scm-cmd.c: New file.
5370         * guile/scm-exception.c (user_error_symbol): New static global.
5371         (gdbscm_user_error_p): New function.
5372         (gdbscm_initialize_exceptions): Set user_error_symbol.
5373         * scm-utils.c (gdbscm_gc_xstrdup): New function.
5374
5375 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
5376
5377         * top.c (command_loop): Handle comments here...
5378         (command_line_input): ... not here.
5379
5380 2014-06-02  Doug Evans  <xdje42@gmail.com>
5381
5382         Add progspace support for Guile.
5383         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5384         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5385         (scm-progspace.o): New rule.
5386         * guile/guile-internal.h (pspace_smob): New typedef.
5387         (psscm_pspace_smob_pretty_printers): Declare.
5388         (psscm_pspace_smob_from_pspace): Declare.
5389         (psscm_scm_from_pspace): Declare.
5390         * guile/guile.c (initialize_gdb_module): Call
5391         gdbscm_initialize_pspaces.
5392         * guile/lib/gdb.scm: Export progspace symbols.
5393         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5394         support.
5395         (append-pretty-printer!): Ditto.
5396         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5397         Implement.
5398         * guile/scm-progspace.c: New file.
5399
5400 2014-06-03  Alan Modra  <amodra@gmail.com>
5401
5402         * ppc64-tdep.c (ppc64_standard_linkage8): New.
5403         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5404
5405 2014-06-02  Doug Evans  <dje@google.com>
5406
5407         Add support for skeletonless type units.
5408         * dwarf2read.c (struct dwarf2_per_objfile): New member
5409         n_allocated_type_units.
5410         (struct dwarf2_per_objfile) <tu_stats>: New member
5411         nr_all_type_units_reallocs.
5412         (create_signatured_type_table_from_index): Initialize
5413         n_allocated_type_units
5414         (create_all_type_units): Ditto.
5415         (add_type_unit): Move up in file.  New arg slot.
5416         All callers updated.  Increase space for all_type_units more
5417         efficiently.
5418         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5419         (lookup_dwo_signatured_type): Handle skeletonless TUs.
5420         (lookup_dwp_signatured_type): Ditto.
5421         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5422         All callers updated.
5423         (build_type_psymtabs_1): Leave type_unit_groups as
5424         NULL if no TUs present.
5425         (print_tu_stats): New function.
5426         (process_skeletonless_type_unit): New function.
5427         (process_dwo_file_for_skeletonless_type_units): New
5428         function.
5429         (process_skeletonless_type_units): New function.
5430         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5431         Call print tu_stats if debugging enabled.
5432
5433 2014-06-02  Pedro Alves  <palves@redhat.com>
5434
5435         * breakpoint.c (build_target_command_list): Don't build a command
5436         list if we have any duplicate location that isn't a dprintf.
5437
5438 2014-06-02  Pedro Alves  <palves@redhat.com>
5439
5440         * breakpoint.c (dprintf_breakpoint_hit): New function.
5441         (initialize_breakpoint_ops): Install it as dprintf's
5442         breakpoint_hit method.
5443
5444 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5445
5446         * source.c (substitute_path_rule_matches): Simplify using
5447         filename_ncmp instead of FILENAME_CMP.
5448
5449 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
5450
5451         * source.c (substitute_path_rule_matches): Remove trailing spaces.
5452
5453 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
5454
5455         * configure.ac: When Guile is available, check for the
5456         availability of 'scm_new_smob'.
5457         * configure, config.h.in: Regenerate.
5458         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5459         function.
5460
5461 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5462
5463         * frame.c (struct frame_info): Add stop_string field.
5464         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5465         (get_prev_frame_always): Old content moved into
5466         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
5467         TRY_CATCH, handle MEMORY_ERROR exceptions.
5468         (frame_stop_reason_string): New function definition.
5469         * frame.h (unwind_stop_reason_to_string): Extend comment to
5470         mention frame_stop_reason_string.
5471         (frame_stop_reason_string): New function declaration.
5472         * stack.c (frame_info): Switch to frame_stop_reason_string.
5473         (backtrace_command_1): Switch to frame_stop_reason_string.
5474         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5475         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5476         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5477
5478 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5479
5480         * frame.c (frame_stop_reason_string): Rename to ...
5481         (unwind_stop_reason_to_string): this.
5482         * frame.h (frame_stop_reason_string): Rename to ...
5483         (unwind_stop_reason_to_string): this.
5484         * stack.c (frame_info): Update call to frame_stop_reason_string.
5485         (backtrace_command_1): Likewise.
5486         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5487         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5488
5489 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
5490
5491         * frame.c (remove_prev_frame): New function.
5492         (get_prev_frame_if_no_cycle): Create / discard cleanup using
5493         remove_prev_frame.
5494
5495 2014-05-29  Pedro Alves  <palves@redhat.com>
5496
5497         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5498         and make it const.  When a single-step decays to a continue,
5499         clear 'step', not 'hw_step'.  Pass whether the caller wanted
5500         to step to user_visible_resume_ptid, not what we ask the
5501         target to do.
5502
5503 2014-05-29  Pedro Alves  <palves@redhat.com>
5504
5505         * infrun.c (process_event_stop_test, handle_step_into_function)
5506         (handle_step_into_function_backward): Adjust.
5507         Don't set the even thread's stop_step and call stop_waiting before
5508         calling end_stepping_range.  Instead do that ...
5509         (end_stepping_range): ... here.  Take an ecs pointer parameter.
5510
5511 2014-05-29  Pedro Alves  <palves@redhat.com>
5512
5513         * infrun.c (stop_stepping): Rename to ...
5514         (stop_waiting): ... this.
5515         (proceed): Update comment.
5516         (process_event_stop_test, handle_inferior_event)
5517         (handle_signal_stop, handle_step_into_function)
5518         (handle_step_into_function_backward): Update.
5519
5520 2014-05-29  Pedro Alves  <palves@redhat.com>
5521
5522         * infcall.c (run_inferior_call): Don't check whether the current
5523         thread is running after the proceed call.
5524
5525 2014-05-29  Pedro Alves  <palves@redhat.com>
5526             Tom Tromey  <tromey@redhat.com>
5527
5528         * NEWS: Mention "maint set target-async", "set mi-async", and that
5529         background execution commands are now always available.
5530         * target.h (target_async_permitted): Update comment.
5531         * target.c (target_async_permitted, target_async_permitted_1):
5532         Default to 1.
5533         (set_target_async_command): Rename to ...
5534         (maint_set_target_async_command): ... this.
5535         (show_target_async_command): Rename to ...
5536         (maint_show_target_async_command): ... this.
5537         (_initialize_target): Adjust.
5538         * infcmd.c (prepare_execution_command): Make extern.
5539         * inferior.h (prepare_execution_command): Declare.
5540         * infrun.c (set_observer_mode): Leave target async alone.
5541         * mi/mi-interp.c (mi_interpreter_init): Install
5542         mi_on_sync_execution_done as sync_execution_done observer.
5543         (mi_on_sync_execution_done): New function.
5544         (mi_execute_command_input_handler): Don't print the prompt if we
5545         just started a synchronous command with an async target.
5546         (mi_on_resume): Check sync_execution before printing prompt.
5547         * mi/mi-main.h (mi_async_p): Declare.
5548         * mi/mi-main.c: Include gdbcmd.h.
5549         (mi_async_p): New function.
5550         (mi_async, mi_async_1): New globals.
5551         (set_mi_async_command, show_mi_async_command, mi_async): New
5552         functions.
5553         (exec_continue): Call prepare_execution_command.
5554         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5555         (mi_execute_async_cli_command): Use mi_async_p.
5556         (_initialize_mi_main): Install "set mi-async".  Make
5557         "target-async" a deprecated alias.
5558
5559 2014-05-29  Pedro Alves  <palves@redhat.com>
5560
5561         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5562         (_initialize_cli_interp): Adjust.
5563         * event-loop.c: Include "observer.h".
5564         (start_event_loop): Notify 'command_error' observers instead of
5565         calling display_gdb_prompt.  Remove FIXME comment.
5566         * event-top.c (display_gdb_prompt): Remove call into the
5567         interpreters.
5568         * inf-loop.c: Include "observer.h".
5569         (inferior_event_handler): Notify 'command_error' observers instead
5570         of calling display_gdb_prompt.
5571         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5572         observers instead of calling display_gdb_prompt.
5573         * interps.c (interp_set): Don't call display_gdb_prompt.
5574         (current_interp_display_prompt_p): Delete.
5575         * interps.h (interp_prompt_p): Delete declaration.
5576         (interp_prompt_p_ftype): Delete.
5577         (struct interp_procs) <prompt_proc_p>: Delete field.
5578         (current_interp_display_prompt_p): Delete declaration.
5579         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5580         (_initialize_mi_interp): Adjust.
5581         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5582         'command_error' observers.
5583         (tui_on_sync_execution_done, tui_on_command_error): New
5584         functions.
5585         (tui_display_prompt_p): Delete.
5586         (_initialize_tui_interp): Adjust.
5587
5588 2014-05-29  Pedro Alves  <palves@redhat.com>
5589
5590         PR gdb/13860
5591         * cli/cli-interp.c: Include infrun.h and observer.h.
5592         (cli_uiout, cli_interp): New globals.
5593         (cli_on_signal_received, cli_on_end_stepping_range)
5594         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5595         functions.
5596         (cli_interpreter_init): Install them as 'end_stepping_range',
5597         'signal_received' 'signal_exited', 'exited' and 'no_history'
5598         observers.
5599         (_initialize_cli_interp): Remove cli_interp local.
5600         * infrun.c (handle_inferior_event): Call the several stop reason
5601         observers instead of printing the stop reason directly.
5602         (end_stepping_range): New function.
5603         (print_end_stepping_range_reason, print_signal_exited_reason)
5604         (print_exited_reason, print_signal_received_reason)
5605         (print_no_history_reason): Make static, and add an uiout
5606         parameter.  Print to that instead of to CURRENT_UIOUT.
5607         * infrun.h (print_end_stepping_range_reason)
5608         (print_signal_exited_reason, print_exited_reason)
5609         (print_signal_received_reason print_no_history_reason): New
5610         declarations.
5611         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5612         'mi_uiout'.
5613         <cli_uiout>: New field.
5614         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5615         uiout for CLI output.  Install 'signal_received',
5616         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5617         observers.
5618         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5619         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5620         (mi_on_no_history): New functions.
5621         (ui_out_free_cleanup): Delete function.
5622         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5623         instead use the one already stored in the MI interpreter data.
5624         (mi_ui_out): Adjust.
5625         * tui/tui-interp.c: Include infrun.h and observer.h.
5626         (tui_interp): New global.
5627         (tui_on_signal_received, tui_on_end_stepping_range)
5628         (tui_on_signal_exited, tui_on_exited)
5629         (tui_on_no_history): New functions.
5630         (tui_init): Install them as 'end_stepping_range',
5631         'signal_received' 'signal_exited', 'exited' and 'no_history'
5632         observers.
5633         (_initialize_tui_interp): Delete tui_interp local.
5634
5635 2014-05-29  Pedro Alves  <palves@redhat.com>
5636
5637         PR gdb/15713
5638         * linux-nat.c (linux_nat_resume_callback): Rename the second
5639         parameter to 'except'.  Skip LP if it points to EXCEPT.
5640         (linux_nat_resume): Don't mark the event lwp as not stopped
5641         before resuming sibling lwps.  Instead ask
5642         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5643         stopped after actually resuming it.
5644         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5645         resuming it.
5646         (wait_lwp): Mark the lwp as stopped here.
5647         (stop_wait_callback): Mark the lwp as not stopped right after
5648         resuming it.  Don't mark lwps as stopped here.
5649         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5650         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5651
5652 2014-05-29  Pedro Alves  <palves@redhat.com>
5653
5654         PR PR15693
5655         * infrun.c (resume): Determine how much to resume depending on
5656         whether the caller wanted a step, not whether we can hardware step
5657         the target.  Mark all threads that we intend to run as running,
5658         unless we're calling an inferior function.
5659         (normal_stop): If the thread is running an infcall, don't finish
5660         thread state.
5661         * target.c (target_resume): Don't mark threads as running here.
5662
5663 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5664
5665         * serial.c (_initialize_serial): Remove support for
5666         the "set remotebaud" and "show remotebaud" commands.
5667         * NEWS: Add entry documenting the removal of that command.
5668
5669 2014-05-28  Yao Qi  <yao@codesourcery.com>
5670
5671         * charset.c: Fix typo in comments.
5672
5673 2014-05-27  Gary Benson  <gbenson@redhat.com>
5674
5675         * utils.c (internal_vproblem): Prompt for a bug report.
5676
5677 2014-05-26  Andy Wingo  <wingo@igalia.com>
5678
5679         * guile/scm-arch.c (arscm_mark_arch_smob):
5680         * guile/scm-block.c (bkscm_mark_block_smob)
5681         (bkscm_mark_block_syms_progress_smob):
5682         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5683         * guile/scm-exception.c (exscm_mark_exception_smob):
5684         * guile/scm-frame.c (frscm_mark_frame_smob):
5685         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5686         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5687         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5688         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5689         (ppscm_mark_pretty_printer_worker_smob):
5690         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5691         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5692         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5693         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5694         mark functions.
5695         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5696         function.
5697
5698 2014-05-26  Andy Wingo  <wingo@igalia.com>
5699             Doug Evans  <xdje42@gmail.com>
5700
5701         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5702         empty_base_class.  All uses updated.
5703         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5704         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5705         Adapt all callers.
5706         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5707         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5708         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5709         (gdbscm_gsmob_has_property_p, add_property_name)
5710         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5711         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5712         (gdb-object-has-property?, gdb-object-properties): Remove.
5713         (gdb-object-kind): Renamed from gsmob-kind.
5714
5715 2014-05-26  Andy Wingo  <wingo@igalia.com>
5716
5717         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5718         * configure: Regenerate.
5719
5720 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5721
5722         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5723
5724 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5725
5726         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5727         (replay_memory_access_read_only, replay_memory_access_read_write)
5728         (replay_memory_access_types, replay_memory_access)
5729         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5730         (cmd_set_record_btrace, cmd_show_record_btrace)
5731         (cmd_show_replay_memory_access): New.
5732         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5733         (record_btrace_remove_breakpoint): Replace
5734         record_btrace_allow_memory_access with replay_memory_access.
5735         (_initialize_record_btrace): Add commands.
5736         * NEWS: Announce it.
5737
5738 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5739
5740         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5741
5742 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5743
5744         * MAINTAINERS (Write After Approval): Move self back from
5745         paper trail.
5746
5747 2014-05-22  Pedro Alves  <palves@redhat.com>
5748
5749         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5750         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5751         (disable_randomization, enum exec_direction_kind)
5752         (execution_direction, stop_registers, start_remote)
5753         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5754         (wait_for_inferior, normal_stop, get_last_target_status)
5755         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5756         (insert_step_resume_breakpoint_at_sal)
5757         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5758         (set_step_info, print_stop_event, signal_stop_state)
5759         (signal_print_state, signal_pass_state, signal_stop_update)
5760         (signal_print_update, signal_pass_update)
5761         (update_signals_program_target, clear_exit_convenience_vars)
5762         (displaced_step_dump_bytes, update_observer_mode)
5763         (signal_catch_update, gdb_signal_from_command): Move
5764         declarations ...
5765         * infrun.h: ... to this new file.
5766         * amd64-tdep.c: Include infrun.h.
5767         * annotate.c: Include infrun.h.
5768         * arch-utils.c: Include infrun.h.
5769         * arm-linux-tdep.c: Include infrun.h.
5770         * arm-tdep.c: Include infrun.h.
5771         * break-catch-sig.c: Include infrun.h.
5772         * breakpoint.c: Include infrun.h.
5773         * common/agent.c: Include infrun.h instead of inferior.h.
5774         * corelow.c: Include infrun.h.
5775         * event-top.c: Include infrun.h.
5776         * go32-nat.c: Include infrun.h.
5777         * i386-tdep.c: Include infrun.h.
5778         * inf-loop.c: Include infrun.h.
5779         * infcall.c: Include infrun.h.
5780         * infcmd.c: Include infrun.h.
5781         * infrun.c: Include infrun.h.
5782         * linux-fork.c: Include infrun.h.
5783         * linux-nat.c: Include infrun.h.
5784         * linux-thread-db.c: Include infrun.h.
5785         * monitor.c: Include infrun.h.
5786         * nto-tdep.c: Include infrun.h.
5787         * procfs.c: Include infrun.h.
5788         * record-btrace.c: Include infrun.h.
5789         * record-full.c: Include infrun.h.
5790         * remote-m32r-sdi.c: Include infrun.h.
5791         * remote-mips.c: Include infrun.h.
5792         * remote-notif.c: Include infrun.h.
5793         * remote-sim.c: Include infrun.h.
5794         * remote.c: Include infrun.h.
5795         * reverse.c: Include infrun.h.
5796         * rs6000-tdep.c: Include infrun.h.
5797         * s390-linux-tdep.c: Include infrun.h.
5798         * solib-irix.c: Include infrun.h.
5799         * solib-osf.c: Include infrun.h.
5800         * solib-svr4.c: Include infrun.h.
5801         * target.c: Include infrun.h.
5802         * top.c: Include infrun.h.
5803         * windows-nat.c: Include infrun.h.
5804         * mi/mi-interp.c: Include infrun.h.
5805         * mi/mi-main.c: Include infrun.h.
5806         * python/py-threadevent.c: Include infrun.h.
5807
5808 2014-05-22  Pedro Alves  <palves@redhat.com>
5809
5810         * infrun.c (handle_inferior_event): Store the exit code for
5811         --return-child-result here, instead of ...
5812         (print_exited_reason): ... here.
5813
5814 2014-05-21  Pedro Alves  <palves@redhat.com>
5815
5816         PR gdb/13860
5817         * gdbthread.h (struct thread_control_state): New field
5818         `command_interp'.
5819         * infrun.c (follow_fork): Copy the new thread control field to the
5820         child fork thread.
5821         (clear_proceed_status_thread): Clear the new thread control field.
5822         (proceed): Set the new thread control field.
5823         * interps.h (command_interp): Declare.
5824         * interps.c (command_interpreter): New global.
5825         (command_interp): New function.
5826         (interp_exec): Set `command_interpreter' while here.
5827         * cli-out.c (cli_uiout_dtor): New function.
5828         (cli_ui_out_impl): Install it.
5829         * mi/mi-interp.c: Include cli-out.h.
5830         (mi_cmd_interpreter_exec): Add comment.
5831         (restore_current_uiout_cleanup): New function.
5832         (ui_out_free_cleanup): New function.
5833         (mi_on_normal_stop): If finishing an execution command started by
5834         a CLI command, or any kind of breakpoint-like event triggered,
5835         print the stop event to the output (CLI) stream.
5836         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5837
5838 2014-05-21  Pedro Alves  <palves@redhat.com>
5839
5840         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5841         current source line having changed.
5842         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5843         * infrun.c (normal_stop): Adjust call to
5844         set_current_sal_from_frame.
5845         * source.c (clear_lines_listed_range): New function.
5846         (set_current_source_symtab_and_line, identify_source_line): Clear
5847         the lines listed range.
5848         (line_info): Handle the first "info line" after the current source
5849         line having changed.
5850         * stack.c (print_stack_frame): Remove center handling.
5851         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5852         center sal.line.
5853
5854 2014-05-21  Pedro Alves  <palves@redhat.com>
5855
5856         * inf-child.c (inf_child_mourn_inferior): New function.
5857         * inf-child.h (inf_child_mourn_inferior): New declaration.
5858         * darwin-nat.c (darwin_mourn_inferior): Use
5859         inf_child_mourn_inferior.
5860         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5861         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5862         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5863         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5864         * windows-nat.c (windows_mourn_inferior): Likewise.
5865
5866 2014-05-21  Doug Evans  <xdje42@gmail.com>
5867
5868         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5869
5870 2014-05-21  Doug Evans  <xdje42@gmail.com>
5871
5872         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5873         (gdbscm_out_of_range_error): Ditto.
5874         (gdbscm_memory_error): Ditto.
5875         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5876         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5877         (gdbscm_out_of_range_error): Update.
5878         (gdbscm_memory_error): Update.
5879         (gdbscm_scm_to_target_string_unsafe): Delete.
5880
5881 2014-05-21  Pedro Alves  <palves@redhat.com>
5882
5883         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5884         globals.
5885         (inf_child_open_target): New function.
5886         (inf_child_open): Use inf_child_open_target to push the target
5887         instead of erroring out.
5888         (inf_child_disconnect, inf_child_close)
5889         (inf_child_maybe_unpush_target): New functions.
5890         (inf_child_target): Install inf_child_disconnect and
5891         inf_child_close.  Store a pointer to the returned object.
5892         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5893         declarations.
5894         * target.c (auto_connect_native_target): New global.
5895         (show_default_run_target): New function.
5896         (find_default_run_target): Return NULL if automatically connecting
5897         to the native target is disabled.
5898         (_initialize_target): Install set/show auto-connect-native-target.
5899         * NEWS: Mention "set auto-connect-native-target", and "target
5900         native".
5901         * linux-nat.c (super_close): New global.
5902         (linux_nat_close): Call super_close.
5903         (linux_nat_add_target): Store a pointer to the base class's
5904         to_close method.
5905         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5906         inf_child_maybe_unpush.
5907         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5908         already pushed.
5909         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5910         the inferior.  Use inf_child_maybe_unpush_target.
5911         (inf_ttrace_attach): Don't push the target if it is already
5912         pushed.
5913         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5914         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5915         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5916         (darwin_attach_pid): Don't push the target if it is already
5917         pushed.
5918         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5919         mourning the inferior.  Use inf_child_maybe_unpush_target.
5920         (gnu_detach): Use inf_child_maybe_unpush_target.
5921         * go32-nat.c (go32_create_inferior): Don't push the target if it
5922         is already pushed.
5923         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5924         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5925         (procfs_open): Rename to ...
5926         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5927         comments.  Can target_preopen before changing node.  Call
5928         inf_child_open_target to push the target explicitly.
5929         (procfs_attach): Don't push the target if it is already pushed.
5930         (procfs_detach): Use inf_child_maybe_unpush_target.
5931         (procfs_create_inferior): Don't push the target if it is already
5932         pushed.
5933         (nto_native_ops): New global.
5934         (procfs_open): Reimplement.
5935         (procfs_native_open): New function.
5936         (init_procfs_targets): Install procfs_native_open as to_open of
5937         "target native".  Store a pointer to the "native" target in
5938         nto_native_ops.
5939         * procfs.c (procfs_attach): Don't push the target if it is already
5940         pushed.
5941         (procfs_detach): Use inf_child_maybe_unpush_target.
5942         (procfs_mourn_inferior): Only unpush the target after mourning the
5943         inferior.  Use inf_child_maybe_unpush_target.
5944         (procfs_init_inferior): Don't push the target if it is already
5945         pushed.
5946         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5947         if it is already pushed.
5948
5949 2014-05-21  Pedro Alves  <palves@redhat.com>
5950
5951         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5952         and "procfs" targets are now called "native" instead.
5953
5954 2014-05-21  Pedro Alves  <palves@redhat.com>
5955
5956         * go32-nat.c (go32_open): Delete.
5957         (go32_target): Don't override the to_open method.
5958
5959 2014-05-21  Pedro Alves  <palves@redhat.com>
5960
5961         * nto-procfs.c (procfs_can_run): New function.
5962         (nto_procfs_ops): New global.
5963         (init_procfs_targets): New, based on procfs_target.  Install
5964         "target native" in addition to "target procfs".
5965         (_initialize_procfs): Call init_procfs_targets instead of adding
5966         the target here.
5967
5968 2014-05-21  Pedro Alves  <palves@redhat.com>
5969
5970         * windows-nat.c (windows_target): Don't override to_shortname,
5971         to_longname or to_doc.
5972
5973 2014-05-21  Pedro Alves  <palves@redhat.com>
5974
5975         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5976         to_doc.
5977
5978 2014-05-21  Pedro Alves  <palves@redhat.com>
5979
5980         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5981         to_shortname, to_longname or to_doc.
5982
5983 2014-05-21  Pedro Alves  <palves@redhat.com>
5984
5985         * go32-nat.c (go32_target): Don't override to_shortname,
5986         to_longname or to_doc.
5987
5988 2014-05-21  Pedro Alves  <palves@redhat.com>
5989
5990         * inf-child.c (inf_child_open): Remove mention of "child".
5991         (inf_child_target): Rename target to "native" instead of "child".
5992
5993 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5994
5995         * Makefile.in (SFILES): Delete "regset.c".
5996         (COMMON_OBS): Delete "regset.o".
5997         * regset.c: Remove.
5998         * regset.h (regset_alloc): Delete prototype.
5999
6000 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6001
6002         * sparc-linux-tdep.c (sparc32_linux_gregset)
6003         (sparc32_linux_fpregset): New static regset structures.
6004         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6005         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6006         'fpregset' fields.
6007         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6008         (sparc64_linux_fpregset): New static regset structures.
6009         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6010         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6011         New static regset structures.
6012         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6013         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6014         New static regset structures.
6015         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6016         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6017         New static regset structures.
6018         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6019         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6020         New static regset structures.
6021         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6022
6023 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6024
6025         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6026         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6027         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6028         for all regmap types and variables.
6029         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6030         (sparc32_linux_supply_core_gregset)
6031         (sparc32_linux_collect_core_gregset)
6032         (sparc32_linux_supply_core_fpregset)
6033         (sparc32_linux_collect_core_fpregset): Likewise.
6034         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6035         (sparc_gregmap, sparc_fpregmap): ... these.
6036         (sparc_supply_gregset, sparc_collect_gregset)
6037         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6038         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6039         (_initialize_sparc_nat): Rename regmaps.
6040         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6041         (sparc_gregmap, sparc_fpregmap): ... these.
6042         (sparc_supply_gregset, sparc_collect_gregset)
6043         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6044         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6045         Rename macros to...
6046         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6047         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6048         Likewise.
6049         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6050         Rename to...
6051         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6052         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6053         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6054         regmaps.
6055         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6056         (sparc32_bsd_fpregset): Rename to...
6057         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6058         (sparc32_bsd_fpregmap): ... these.
6059         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6060         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6061         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6062         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6063         (struct sparc_gregmap, struct sparc_fpregmap)
6064         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6065         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6066         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6067         (sparc32_supply_regset, sparc32_collect_gregset)
6068         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6069         prototypes.
6070         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6071         (sparc64_linux_ptrace_gregmap): ... this.
6072         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6073         (_initialize_sparc64_linux_nat): Rename regmaps.
6074         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6075         (sparc64_linux_core_gregmap): ... this.
6076         (sparc64_linux_supply_core_gregset)
6077         (sparc64_linux_collect_core_gregset)
6078         (sparc64_linux_supply_core_fpregset)
6079         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6080         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6081         (sparc64_sol2_fpregset): Rename to...
6082         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6083         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6084         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6085         regmaps.
6086         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6087         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6088         (sparc64_bsd_fpregset): Rename to...
6089         (struct sparc_gregmap, sparc64_sol2_gregmap)
6090         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6091         (sparc64_bsd_fpregmap): ... these.
6092         (sparc64_supply_gregset, sparc64_collect_gregset)
6093         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6094         prototypes.
6095         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6096         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6097         (sparc64fbsd_gregmap): ... this.
6098         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6099         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6100         Rename regmaps.
6101         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6102         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6103         (sparc64nbsd_collect_fpregset): Likewise.
6104         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6105         (sparc64nbsd_gregmap): ... this.
6106         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6107         regmaps.
6108         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6109         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6110         (sparc64obsd_gregmap): ... this.
6111         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6112         regmaps.
6113         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6114         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6115         (sparc32nbsd_gregmap): ... this.
6116         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6117         regmaps.
6118
6119 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6120
6121         * score-tdep.c (score7_linux_gregset): New static regset
6122         structure.
6123         (score7_linux_regset_from_core_section): Remove dynamic regset
6124         allocation.
6125         (score_gdbarch_init): Drop allocation of tdep structure.
6126         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6127
6128 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6129
6130         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6131         regset structures.
6132         (am33_regset_from_core_section): Remove dynamic regset
6133         allocations.
6134
6135 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6136
6137         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6138         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6139         structures.
6140         (mips_linux_regset_from_core_section): Remove dynamic regset
6141         allocations.
6142         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6143         'gregset64', 'fpregset', and 'fpregset64'.
6144         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6145         deleted tdep fields.
6146
6147 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6148
6149         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6150         regset structures.
6151         (amd64_regset_from_core_section): Remove dynamic regset
6152         allocations.
6153         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6154         structure.
6155         (amd64obsd_regset_from_core_section): Remove dynamic regset
6156         allocation.
6157         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6158         Likewise.
6159         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6160         x86-common regset supply function.
6161         * i386-tdep.c (i386_collect_gregset): Make static.
6162         (i386_gregset): New global regset structure.
6163         (i386_fpregset, i386_xstateregset): New static regset structures.
6164         (i386_regset_from_core_section): Remove dynamic regset
6165         allocations.
6166         (i386_gdbarch_init): Remove initialization of tdep fields
6167         'gregset', 'fpregset', and 'xstateregset'.
6168         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6169         'fpregset', and 'xstateregset'.
6170         (i386_collect_gregset): Remove prototype.
6171         (i386_gregset): New declaration.
6172         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6173         structure.
6174         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6175         allocation.
6176
6177 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6178
6179         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6180         (arm_linux_vfpregset): New static regset structures.
6181         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6182         regset structures.
6183         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6184         and 'vfpregset' fields.
6185
6186 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6187
6188         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6189         (aarch64_linux_fpregset): New static regset structures.
6190         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6191         of regset structures.
6192         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6193         'fpregset' fields.
6194
6195 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6196
6197         * regset.h (struct regset): Remove gdbarch field.
6198         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6199         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6200         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6201         Likewise.
6202         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6203         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6204         (ppc32_linux_vsxregset): Likewise.
6205         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6206         via the regcache instead of the regset.
6207         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6208         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6209         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6210         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6211         Likewise.
6212
6213 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6214
6215         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6216         Constify structures.
6217         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6218         (alphanbsd_aout_gregset): Likewise.
6219         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6220         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6221         Likewise.
6222         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6223         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6224         Likewise.
6225         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6226         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6227         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6228         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6229         * m88k-tdep.c (m88k_gregset): Likewise.
6230         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6231         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6232         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6233         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6234         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6235         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6236         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6237         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6238         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6239         Likewise.
6240         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6241         * sh-tdep.h (sh_corefile_gregset): Likewise.
6242         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6243         * vax-tdep.c (vax_gregset): Likewise.
6244
6245 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6246
6247         Fix TLS access for -static -pthread.
6248         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6249         (try_thread_db_load_1): Initialize it.
6250         (thread_db_get_thread_local_address): Call it if LM is zero.
6251         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6252         * target.h (struct target_ops) (to_get_thread_local_address): Add
6253         load_module_addr comment.
6254
6255 2014-05-21  Pedro Alves  <palves@redhat.com>
6256
6257         * dcache.c (dcache_read_memory_partial): If reading the cache line
6258         fails, fallback to reading just the memory the caller wanted.
6259
6260 2014-05-20  Doug Evans  <dje@google.com>
6261
6262         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6263         instead of get_current_arch.
6264
6265 2014-05-20  Pedro Alves  <palves@redhat.com>
6266
6267         * NEWS: Mention that compare-sections now works with all targets.
6268
6269         * remote.c (PACKET_qCRC): New enum value.
6270         (remote_verify_memory): Don't send qCRC if the target has no
6271         execution.  Use packet_support/packet_ok.  If the target doesn't
6272         support the qCRC packet, fallback to a deep memory copy.
6273         (compare_sections_command): Say "target image" instead of "remote
6274         executable".
6275         (_initialize_remote): Add PACKET_qCRC to the list of config
6276         packets that have no associated command.  Extend comment.
6277         * target.c (simple_verify_memory, default_verify_memory): New
6278         function.
6279         * target.h (struct target_ops) <to_verify_memory>: Default to
6280         default_verify_memory.
6281         (simple_verify_memory): New declaration.
6282         * target-delegates.c: Regenerate.
6283
6284 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
6285
6286         * record-btrace.c (record_btrace_step_thread): Check for empty history.
6287
6288 2014-05-20  Hui Zhu  <hui@codesourcery.com>
6289             Yao Qi  <yao@codesourcery.com>
6290
6291         PR backtrace/16558
6292         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6293         and change address of sp and pc.
6294
6295 2014-05-19  Tom Tromey  <tromey@redhat.com>
6296
6297         * gdbtypes.c (rank_function): Use XNEWVEC.
6298         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6299
6300 2014-05-19  Doug Evans  <dje@google.com>
6301
6302         * dwarf2read.c (build_type_psymtabs_1): Renamed from
6303         build_type_unit_groups and moved closer to only caller.  Remove
6304         arguments.  All references updated.  Remove outdated .gdb_index
6305         comment.
6306         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6307         build_type_psymtabs_1.
6308
6309 2014-05-19  Doug Evans  <dje@google.com>
6310
6311         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6312         n_type_unit_groups, all_type_unit_groups.  All uses removed.
6313         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6314         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
6315         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
6316         (add_type_unit_group_to_table): Delete.
6317
6318 2014-05-19  Doug Evans  <dje@google.com>
6319
6320         * eval.c (evaluate_subexp_standard): Add some comments.
6321
6322 2014-05-17  Doug Evans  <xdje42@gmail.com>
6323
6324         * progspace.c (remove_program_space): Delete, unused.
6325         * progspace.h (remove_program_space): Ditto.
6326
6327 2014-05-17  Doug Evans  <xdje42@gmail.com>
6328
6329         * inferior.c (prune_inferiors): Fix comment.
6330         (remove_inferior_command): Call prune_program_spaces.
6331
6332 2014-05-16  Doug Evans  <dje@google.com>
6333
6334         New command line option -D.
6335         * NEWS: Mention it.
6336         * main.c (set_gdb_data_directory): New function.
6337         (captured_main): Recognize -D.  Flag error for --data-directory "".
6338         Call set_gdb_data_directory.
6339         (print_gdb_help): Print --data-directory, -D.
6340         * main.h (set_gdb_data_directory): Declare.
6341         * top.c (staged_gdb_datadir): New static global.
6342         (set_gdb_datadir): Call set_gdb_data_directory
6343         (show_gdb_datadir): New function.
6344         (init_main): Update init of data-directory parameter.
6345
6346 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
6347
6348         Import the "dirfd" gnulib module.
6349         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6350         * gnulib/aclocal.m4: Update.
6351         * gnulib/config.in: Update.
6352         * gnulib/configure: Update.
6353         * gnulib/import/Makefile.am: Update.
6354         * gnulib/import/Makefile.in: Update.
6355         * gnulib/import/dirfd.c: New.
6356         * gnulib/import/m4/dirfd.m4: New.
6357         * gnulib/import/m4/gnulib-cache.m4: Update.
6358         * gnulib/import/m4/gnulib-comp.m4: Update.
6359
6360 2014-05-16  Pierre Muller  <muller@sourceware.org>
6361             Yao Qi  <yao@codesourcery.com>
6362
6363         * valprint.c (print_wchar): Move the code on checking whether
6364         W is a printable wide char to the default branch of switch
6365         statement below.  Call wchar_printable instead of gdb_iswprint.
6366
6367 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
6368
6369         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6370         ldr.w and ldrd instructions.
6371
6372 2014-05-15  Doug Evans  <dje@google.com>
6373
6374         * dwarf2read.c (read_structure_type): Delete outdated comments.
6375
6376 2014-05-14  Tom Tromey  <tromey@redhat.com>
6377
6378         * macrocmd.c (print_macro_definition): Reindent.
6379
6380 2014-05-13  Doug Evans  <xdje42@gmail.com>
6381
6382         * python/py-cmd.c (cmdpy_completer): Add comment.
6383         (completers): Make const.
6384
6385 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
6386
6387         * infrun.c (resume): Remove should_resume (unused).  Move up
6388         declaration of resume_ptid.
6389
6390 2014-05-13  Tom Tromey  <tromey@redhat.com>
6391
6392         * language.h (unop_type_check): Remove.
6393         (binop_type_check): Don't declare.
6394
6395 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6396
6397         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6398         call to regcache_raw_collect.
6399
6400 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6401
6402         * mi/mi-console.c (mi_console_raw_packet): Use the value from
6403         mi_console->quote as the quoting character.
6404
6405 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
6406
6407         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6408
6409 2014-04-29  Tom Tromey  <tromey@redhat.com>
6410
6411         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6412         "show debug varobj".
6413
6414 2014-05-07  Kyle McMartin  <kyle@redhat.com>
6415
6416         Pushed by Joel Brobecker  <brobecker@adacore.com>.
6417         * aarch64-tdep.c (aarch64_software_single_step): New function.
6418         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6419         with aarch64_software_single_step.
6420
6421 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
6422
6423         GDB 7.7.1 released.
6424
6425 2014-05-05  Keith Seitz  <keiths@redhat.com>
6426
6427         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6428         variable or history value is successfully parsed.
6429
6430 2014-05-05  Yao Qi  <yao@codesourcery.com>
6431             Pedro Alves  <palves@redhat.com>
6432
6433         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6434         address of blocks that intersects the requested range.  Trim
6435         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6436         sections.
6437         * ctf.c (ctf_xfer_partial): Likewise.
6438
6439 2014-05-05  Yao Qi  <yao@codesourcery.com>
6440
6441         * printcmd.c (display_command): Remove the check to
6442         target_has_execution.
6443
6444 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
6445
6446         * ppcobsd-nat.c: Include "obsd-nat.h".
6447         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6448         add_target.
6449         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6450
6451 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6452
6453         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6454         and 16-bit signed and unsigned arguments.  Update comment.
6455         (stap_parse_probe_arguments): Extend code to handle such
6456         arguments.  Use warning instead of complaint to notify about
6457         unrecognized bitness.
6458
6459 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
6460
6461         PR breakpoints/16889
6462         * stap-probe.c (stap_parse_probe_arguments): Simplify
6463         check for non-prefixed probes (i.e., probes whose
6464         arguments do not start with "N@").  Always set the
6465         argument type to a sane value.
6466
6467 2014-05-01  David Taylor  <dtaylor@emc.com>
6468
6469         * remote.c (compare_sections_command): Add -r option to compare
6470         all loadable read-only sections.
6471
6472 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
6473
6474         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6475         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6476         Update all callers.
6477         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6478         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6479         Remove unused CORE_ADDR argument.  Update all callers.
6480
6481 2014-04-29  Pedro Alves  <palves@redhat.com>
6482
6483         * remote.c (struct packet_config) <detect>: Extend comment.
6484         (add_packet_config_cmd): Don't set the config's detect or support
6485         fields here.
6486         (init_all_packet_configs): Also initialize the config's 'detect'
6487         field.
6488         (reset_all_packet_configs_support): New function.
6489         (remote_open_1): Call reset_all_packet_configs_support instead of
6490         init_all_packet_configs.
6491         (_initialize_remote): Initialize all packet configs.  Assert that
6492         all packets have an associated command, except a few known
6493         outliers.
6494
6495 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6496
6497         * dwarf2read.c (read_subrange_type): Handle dynamic
6498         DW_AT_lower_bound attributes.
6499
6500 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6501
6502         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6503         dynamic bounds before computing its upper bound.
6504         (ada_discrete_type_low_bound): Same as above with the lower bound.
6505
6506 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6507
6508         * dwarf2read.c (is_dynamic_type): Return true for dynamic
6509         range types.  Adjust the array handling implementation to
6510         take advantage of this change.
6511         (resolve_dynamic_range): New function, mostly extracted from
6512         resolve_dynamic_bounds.
6513         (resolve_dynamic_array): New function, mostly extracted from
6514         resolve_dynamic_bounds.
6515         (resolve_dynamic_bounds): Delete.
6516         (resolve_dynamic_type): Reimplement.  Add handling of
6517         TYPE_CODE_RANGE types.
6518
6519 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6520
6521         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6522         handling of parallel ___XA types.
6523
6524 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
6525
6526         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6527         unnecessary second call to static_unwrap_type.
6528
6529 2014-04-27  Hui Zhu  <hui@codesourcery.com>
6530
6531         * stack.c (print_frame_info): Call do_gdb_disassembly with
6532         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6533
6534 2014-04-26  Doug Evans  <xdje42@gmail.com>
6535
6536         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6537
6538 2014-04-25  Pedro Alves  <palves@redhat.com>
6539
6540         PR server/16255
6541         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6542         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
6543         and newline from built string.
6544         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6545         (linux_ptrace_attach_fail_reason): ... this.
6546         * linux-nat.c (linux_nat_attach): Adjust to use
6547         linux_ptrace_attach_fail_reason.
6548
6549 2014-04-25  Pedro Alves  <palves@redhat.com>
6550
6551         * remote.c (struct remote_state): Remove multi_process_aware,
6552         non_stop_aware, cond_tracepoints, cond_breakpoints,
6553         breakpoint_commands, fast_tracepoints, static_tracepoints,
6554         install_in_trace, disconnected_tracing,
6555         enable_disable_tracepoints, string_tracing, and
6556         augmented_libraries_svr4_read fields.
6557         (remote_multi_process_p): Move further below in the file.
6558         (struct packet_config): Add comments.
6559         (update_packet_config): Delete function.
6560         (show_packet_config_cmd): Use packet_config_support.
6561         (add_packet_config_cmd): Use NULL as set callback.
6562         (packet_ok): "set remote foo-packet"-style commands no longer
6563         change config->supported -- adjust.
6564         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6565         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6566         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6567         (PACKET_QNonStop, PACKET_multiprocess_feature)
6568         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6569         (PACKET_DisconnectedTracing_feature)
6570         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6571         (set_remote_protocol_packet_cmd): Delete function.
6572         (packet_config_support, packet_support): New functions.
6573         (set_remote_protocol_Z_packet_cmd): Don't call
6574         update_packet_config.
6575         (remote_query_attached, remote_pass_signals)
6576         (remote_program_signals, remote_threads_info)
6577         (remote_threads_extra_info, remote_start_remote): Use
6578         packet_support.
6579         (remote_start_remote): Use packet_config_support and
6580         packet_support.
6581         (init_all_packet_configs): Set all packets to unknown support,
6582         instead of calling update_packet_config.
6583         (remote_check_symbols): Use packet_support.
6584         (remote_supported_packet): Unconditionally set the packet config's
6585         support status.
6586         (remote_multi_process_feature, remote_non_stop_feature)
6587         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6588         (remote_breakpoint_commands_feature)
6589         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6590         (remote_install_in_trace_feature)
6591         (remote_disconnected_tracing_feature)
6592         (remote_enable_disable_tracepoint_feature)
6593         (remote_string_tracing_feature)
6594         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6595         (remote_protocol_features): Adjust to use remote_supported_packet
6596         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6597         "ConditionalTracepoints", "ConditionalBreakpoints",
6598         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6599         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6600         "EnableDisableTracepoints", and "tracenz".
6601         (remote_query_supported): Use packet_support.
6602         (remote_open_1): Adjust.
6603         (extended_remote_attach_1): Use packet_support.  Switch on the
6604         result of packet_ok instead of checking whether the packet ended
6605         up disabled.
6606         (remote_vcont_resume): Use packet_support.
6607         (remote_resume, remote_stop_ns, fetch_register_using_p)
6608         (remote_prepare_to_store, store_register_using_P)
6609         (check_binary_download, remote_write_bytes): Use packet_support.
6610         (remote_vkill): Use packet_support.  Switch on the result of
6611         packet_ok instead of checking whether the packet ended up
6612         disabled.
6613         (extended_remote_supports_disable_randomization): Use
6614         packet_support.
6615         (extended_remote_run): Switch on the result of packet_ok instead
6616         of checking whether the packet ended up disabled.
6617         (remote_insert_breakpoint, remote_remove_breakpoint)
6618         (remote_insert_watchpoint, remote_remove_watchpoint)
6619         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6620         packet_support.
6621         (remote_search_memory): Use packet_config_support.
6622         (remote_get_thread_local_address, remote_get_tib_address)
6623         (remote_hostio_send_command, remote_can_execute_reverse): Use
6624         packet_support.
6625         (remote_supports_cond_tracepoints)
6626         (remote_supports_cond_breakpoints)
6627         (remote_supports_fast_tracepoints)
6628         (remote_supports_static_tracepoints)
6629         (remote_supports_install_in_trace)
6630         (remote_supports_enable_disable_tracepoint)
6631         (remote_supports_string_tracing)
6632         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6633         the packet config says the feature is enabled or disabled.
6634         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6635         (remote_get_trace_status): Use packet_support.
6636         (remote_set_disconnected_tracing): Adjust to check whether the
6637         feature is enabled with packet_support.
6638         (remote_set_trace_buffer_size, remote_use_agent)
6639         (remote_can_use_agent, remote_supports_btrace): Use
6640         packet_support.
6641         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6642         Use packet_config_support.
6643         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6644         the packet config says the feature is enabled or disabled.
6645         (set_range_stepping): Use packet_support.
6646
6647 2014-04-25  Tom Tromey  <tromey@redhat.com>
6648
6649         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6650         argument.
6651
6652 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6653
6654         * NEWS: Mention support for C99 variable length arrays.
6655
6656 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6657
6658         * ada-lang.c (standard_exc): Expand introductory comment.
6659
6660 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6661             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6662
6663         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6664         AVX512 registers.
6665         (amd64_linux_read_description): Add code to handle AVX512 xstate
6666         mask and return respective tdesc.
6667         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6668         and features/i386/x32-avx512-linux.c.
6669         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6670         (amd64_linux_core_read_description): Add code to handle AVX512
6671         xstate mask and return respective tdesc.
6672         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6673         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6674         calculation.
6675         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6676         (tdesc_amd64_avx512_linux): New prototype.
6677         (tdesc_x32_avx512_linux): Likewise.
6678         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6679         features/i386/x32-avx512.c.
6680         (amd64_ymm_avx512_names): New register names for pseudo
6681         registers YMM16-31.
6682         (amd64_ymmh_avx512_names): New register names for raw registers
6683         YMMH16-31.
6684         (amd64_k_names): New register names for K registers.
6685         (amd64_zmmh_names): New register names for ZMM raw registers.
6686         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6687         (amd64_xmm_avx512_names): New register names for XMM16-31
6688         registers.
6689         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6690         registers.
6691         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6692         if feature is present.
6693         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6694         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6695         (AMD64_NUM_REGS): Adjust to new number of registers.
6696         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6697         registers supplied via XSTATE by AVX512 registers.
6698         (i386_linux_read_description): Add case for AVX512.
6699         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6700         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6701         (i386_linux_core_read_description): Add case for AVX512.
6702         (i386_linux_init_abi): Install supported register note section
6703         for AVX512.
6704         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6705         AVX512.
6706         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6707         registers to be number of zmm7h + 1.
6708         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6709         * i386-tdep.c: Include features/i386/i386-avx512.c.
6710         (i386_zmm_names): Add ZMM pseudo register names array.
6711         (i386_zmmh_names): Add ZMM raw register names array.
6712         (i386_k_names): Add K raw register names array.
6713         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6714         registers. AVX512 has 16 more ZMM registers than there are YMM
6715         registers.
6716         (i386_zmmh_regnum_p): Add function to look up register number of
6717         ZMM raw registers.
6718         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6719         (i386_k_regnum_p): Likewise for K raw registers.
6720         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6721         registers added by AVX512.
6722         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6723         registers added by AVX512.
6724         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6725         added by AVX512.
6726         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6727         (i386_pseudo_register_name): Add ZMM pseudo registers.
6728         (i386_zmm_type): Construct and return vector registers type for ZMM
6729         registers.
6730         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6731         ZMM0-31 pseudo registers and K registers.
6732         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6733         and YMM16-31 registers from register cache.
6734         (i386_pseudo_register_write): Add code to write  K, ZMM and
6735         YMM16-31 registers.
6736         (i386_register_reggroup_p): Add code to include/exclude AVX512
6737         registers in/from respective register groups.
6738         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6739         registers if feature is present in xcr0.
6740         (i386_gdbarch_init): Add code to initialize AVX512 feature
6741         variables in tdep structure, wire in pseudo registers and call
6742         initialize_tdesc_i386_avx512.
6743         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6744         variables.
6745         (i386_regnum): Add AVX512 registers.
6746         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6747         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6748         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6749         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6750         512 bits wide.
6751         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6752         (i386_ymm_avx512_regnum_p): Likewise.
6753         (i386_k_regnum_p): Likewise.
6754         (i386_zmm_regnum_p): Likewise.
6755         (i386_zmmh_regnum_p): Likewise.
6756         * i387-tdep.c : Update year in copyright notice.
6757         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6758         XSAVE buffer.
6759         (XSAVE_YMM_AVX512_ADDR): New macro.
6760         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6761         XSAVE buffer.
6762         (XSAVE_XMM_AVX512_ADDR): New macro.
6763         (xsave_avx512_k_offset): New table for K register offsets in
6764         XSAVE buffer.
6765         (XSAVE_AVX512_K_ADDR): New macro.
6766         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6767         in XSAVE buffer.
6768         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6769         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6770         buffer.
6771         (i387_collect_xsave): Add code to collect AVX512 registers from
6772         XSAVE buffer.
6773         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6774         of XMM16-31 registers.
6775         (I387_NUM_K_REGS): New define for number of K registers.
6776         (I387_K0_REGNUM): New define for K0 register number.
6777         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6778         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6779         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6780         registers.
6781         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6782         (I387_XMM16_REGNUM): New define for XMM16 register number.
6783         (I387_YMM0_REGNUM): New define for YMM0 register number.
6784         (I387_KEND_REGNUM): New define for last K register number.
6785         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6786         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6787         number.
6788         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6789         number.
6790         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6791         size.
6792         * features/Makefile: Add AVX512 related files.
6793         * features/i386/32bit-avx512.xml: New file.
6794         * features/i386/64bit-avx512.xml: Likewise.
6795         * features/i386/amd64-avx512-linux.c: Likewise.
6796         * features/i386/amd64-avx512-linux.xml: Likewise.
6797         * features/i386/amd64-avx512.c: Likewise.
6798         * features/i386/amd64-avx512.xml: Likewise.
6799         * features/i386/i386-avx512-linux.c: Likewise.
6800         * features/i386/i386-avx512-linux.xml: Likewise.
6801         * features/i386/i386-avx512.c: Likewise.
6802         * features/i386/i386-avx512.xml: Likewise.
6803         * features/i386/x32-avx512-linux.c: Likewise.
6804         * features/i386/x32-avx512-linux.xml: Likewise.
6805         * features/i386/x32-avx512.c: Likewise.
6806         * features/i386/x32-avx512.xml: Likewise.
6807         * regformats/i386/amd64-avx512-linux.dat: New file.
6808         * regformats/i386/amd64-avx512.dat: Likewise.
6809         * regformats/i386/i386-avx512-linux.dat: Likewise.
6810         * regformats/i386/i386-avx512.dat: Likewise.
6811         * regformats/i386/x32-avx512-linux.dat: Likewise.
6812         * regformats/i386/x32-avx512.dat: Likewise.
6813         * NEWS: Add note about new support for AVX512.
6814
6815
6816 2014-04-23  Pedro Alves  <palves@redhat.com>
6817
6818         * breakpoint.c (insert_bp_location): Tolerate errors if the
6819         breakpoint is set in a user-loaded objfile.
6820         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6821         location is marked shlib_disabled.  If the breakpoint is set in a
6822         user-loaded objfile is a GDB-side memory breakpoint, validate it
6823         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6824         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6825         flag.
6826         * mem-break.c (memory_validate_breakpoint): New function.
6827         * objfiles.c (userloaded_objfile_contains_address_p): New
6828         function.
6829         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6830         * target.h (memory_validate_breakpoint): New declaration.
6831
6832 2014-04-23  Pedro Alves  <palves@redhat.com>
6833
6834         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6835         the breakpoint is set in a shared library, only suppress
6836         errors for software breakpoints, not hardware breakpoints.
6837
6838 2014-04-22  Pedro Alves  <palves@redhat.com>
6839
6840         * infrun.c (schedlock_applies): New function, factored out from
6841         find_thread_needs_step_over.
6842         (find_thread_needs_step_over): Use it.
6843         (switch_back_to_stepped_thread): Always clear trap_expected if the
6844         step over is finished.  Return early if scheduler locking applies.
6845         Look for the stepping thread and a potential step-over thread with
6846         a single loop.
6847         (currently_stepping_or_nexting_callback): Delete.
6848
6849 2014-04-22  Nick Clifton  <nickc@redhat.com>
6850
6851         * NEWS: Mention that ARM sim now supports tracing.
6852
6853 2014-04-22  Yao Qi  <yao@codesourcery.com>
6854
6855         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6856         to ...
6857         * tracefile.c (tracefile_fetch_registers): ... it.  New
6858         function.
6859         * tracefile.h (tracefile_fetch_registers): Declare.
6860         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6861         tracefile_fetch_registers.
6862
6863 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6864
6865         PR gdb/14018
6866         * windows-nat.c (thread_rec): Don't display a warning when
6867         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6868         fails for any reason, set th->suspended to -1, so that we don't
6869         try to resume such a thread.  Also, don't return NULL in these
6870         cases, to avoid completely ruin the session due to "PC register is
6871         not available" error.
6872         (do_windows_fetch_inferior_registers): Check errors in
6873         GetThreadContext call.
6874         (windows_continue): Accept an additional argument KILLED; if not
6875         zero, ignore errors in the SetThreadContext call, since the
6876         inferior was killed and is shutting down.
6877         (windows_resume, get_windows_debug_event)
6878         (windows_create_inferior, windows_mourn_inferior)
6879         (windows_kill_inferior): All callers of windows_continue changed
6880         to adjust to its new calling sequence.
6881
6882 2014-04-19  Yao Qi  <yao@codesourcery.com>
6883
6884         * ctf.c (ctf_open): Call post_create_inferior.
6885
6886 2014-04-19  Yao Qi  <yao@codesourcery.com>
6887
6888         * ctf.c (handle_id): New static variable.
6889         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6890         value.  Get the declaration of event "register" and get length
6891         of field "contents".
6892
6893 2014-04-19  Yao Qi  <yao@codesourcery.com>
6894
6895         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6896
6897 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6898
6899         * valops.c (oload_method_static): Remove unnecessary argument
6900         METHOD.  Update all callers.
6901
6902 2014-04-18  Pedro alves  <palves@redhat.com>
6903             Tom Tromey  <tromey@redhat.com>
6904
6905         PR backtrace/15558
6906         * frame.c (get_prev_frame_1): Rename to ...
6907         (get_prev_frame_always): ... this, and make extern.  Adjust.
6908         (skip_artificial_frames): Use get_prev_frame_always.
6909         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6910         (get_frame_unwind_stop_reason): Adjust to rename.
6911         * frame.h (get_prev_frame_always): Declare.
6912         * inline-frame.c: Include frame.h.
6913         (inline_frame_this_id): Use get_prev_frame_always.
6914
6915 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6916
6917         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6918         code by using bfd_mach_o_get_base_address.
6919
6920 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6921
6922         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6923         (spu_ax_pseudo_register_collect): New function.
6924         (spu_ax_pseudo_register_push_stack): Likewise.
6925         (spu_dwarf_reg_to_regnum): Likewise.
6926         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6927
6928 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6929
6930         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6931         Replace FRAME argument with FRAME_ID.
6932         * gdbarch.c, gdbarch.h: Regenerate.
6933         * findvar.c (default_value_from_register): Add GDBARCH argument;
6934         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6935         (value_from_register): Update call to gdbarch_value_from_register.
6936         * value.h (default_value_from_register): Update prototype.
6937         * s390-linux-tdep.c (s390_value_from_register): Update interface
6938         and call to default_value_from_register.
6939         * spu-tdep.c (spu_value_from_register): Likewise.
6940
6941         * findvar.c (address_from_register): Remove TYPE argument.
6942         Do not call value_from_register; use gdbarch_value_from_register
6943         with null_frame_id instead.
6944         * value.h (address_from_register): Update prototype.
6945         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6946         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6947         address_from_register interface change.
6948
6949 2014-04-17  Yao Qi  <yao@codesourcery.com>
6950
6951         * gdbtypes.h: Update comments to link to types and macros'
6952         definitions.
6953
6954 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6955
6956         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6957
6958 2014-04-16  Keith Seitz  <keiths@redhat.com>
6959
6960         PR gdb/15827
6961         * dwarf2read.c (skip_one_die): Check that all relative-offset
6962         sibling DIEs fall within range of the current reader's buffer.
6963         (read_partial_die): Likewise.
6964
6965 2014-04-16  Keith Seitz  <keiths@redhat.com>
6966
6967         PR c++/16597
6968         * cp-namespace.c (lookup_symbol_file): If the type name of
6969         `this' is NULL, return immediately.
6970
6971 2014-04-14  Keith Seitz  <keiths@redhat.com>
6972
6973         PR c++/16253
6974         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6975         from symbol_matches_domain in symtab.c. All local callers
6976         of symbol_matches_domain updated.
6977         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6978         search STRUCT_DOMAIN.
6979         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6980         independently.  standard_lookup will do that automatically.
6981         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6982         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6983         (cp_lookup_symbol_in_namespace): Likewise.
6984         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6985         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6986         may return a STRUCT_DOMAIN match.
6987         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6988         * cp-support.c: Include language.h.
6989         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6990         VAR_DOMAIN.
6991         * psymtab.c (match_partial_symbol): Compare the requested
6992         domain with the symbol's domain directly.
6993         (lookup_partial_symbol): Likewise.
6994         * symtab.c (lookup_symbol_in_language): Explain when/why
6995         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6996         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6997         appropriate languages.
6998         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6999         and moved to ada-lang.c
7000         (lookup_block_symbol): Explain that this function only returns
7001         symbol matching the requested DOMAIN.
7002         Compare the requested domain with the symbol's domain directly.
7003         (iterate_over_symbols): Compare the requested domain with the
7004         symbol's domain directly.
7005         * symtab.h (symbol_matches_domain): Remove.
7006
7007 2014-04-14  Tom Tromey  <tromey@redhat.com>
7008
7009         PR c++/15246:
7010         * c-exp.y (type_aggregate_p): New function.
7011         (qualified_name, classify_inner_name): Use it.
7012         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7013         and TYPE_TARGET_TYPE of an enum type.
7014         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7015         an enum type.
7016         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7017         handle TYPE_DECLARED_CLASS.
7018         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7019         types.
7020         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7021         * valops.c (enum_constant_from_type): New function.
7022         (value_aggregate_elt): Use it.
7023         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7024         TYPE_CODE_ENUM.
7025
7026 2014-04-14  Tom Tromey  <tromey@redhat.com>
7027
7028         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7029         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7030         const.
7031         * value.h (value_aggregate_elt): Update.
7032
7033 2014-04-14  Tom Tromey  <tromey@redhat.com>
7034
7035         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7036
7037 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7038
7039         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7040         (evaluate_subexp_standard): Pass noside argument.
7041         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7042         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7043         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7044         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7045         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7046
7047 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7048
7049         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7050         points to a constant blob.
7051
7052 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7053
7054         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7055         property and store it as the high bound and flag the range accordingly.
7056         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7057         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7058         * gdbtypes.h (enum range_flags): New enum.
7059         (struct range_bounds): Add flags member.
7060
7061 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7062
7063         * c-typeprint.c (c_type_print_varspec_suffix): Added
7064         check for not yet resolved high bound. If unresolved, print
7065         "variable length" string to the console instead of random
7066         length.
7067
7068 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7069
7070         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7071         value.
7072         (ada_template_to_fixed_record_type_1): Likewise.
7073         (ada_to_fixed_type_1): Likewise.
7074         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7075         (cp_print_value): Likewise.
7076         * d-valprint.c (dynamic_array_type): Likewise.
7077         * findvar.c (address_of_variable): Likewise.
7078         * jv-valprint.c (java_value_print): Likewise.
7079         * valops.c (value_ind): Likewise.
7080         * value.c (coerce_ref): Likewise.
7081
7082 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7083
7084         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7085         value and retrieve the dynamic type size.
7086
7087 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7088
7089         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7090         passed to sizeof is dynamic evaluate the argument to compute the length.
7091
7092 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7093             Joel Brobecker  <brobecker@adacore.com>
7094
7095         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7096         (dwarf2_evaluate_property): New function.
7097         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7098         * dwarf2read.c (attr_to_dynamic_prop): New function.
7099         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7100         attribute.
7101         * gdbtypes.c: Include dwarf2loc.h.
7102         (is_dynamic_type): New function.
7103         (resolve_dynamic_type): New function.
7104         (resolve_dynamic_bounds): New function.
7105         (get_type_length): New function.
7106         (check_typedef): Use get_type_length to compute type length.
7107         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7108         (TYPE_LOW_BOUND_KIND): New macro.
7109         (is_dynamic_type): New function prototype.
7110         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7111         to resolve dynamic properties of the type. Update comment.
7112         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7113
7114 2014-04-14  Richard Henderson  <rth@redhat.com>
7115
7116         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7117
7118 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7119             Doug Evans  <xdje42@gmail.com>
7120
7121         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7122         dereference TYPE_CODE_REF values.
7123
7124 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7125
7126         Revert the following changes due to regressions:
7127
7128         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7129         (dwarf2_evaluate_property): New function.
7130         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7131         * dwarf2read.c (attr_to_dynamic_prop): New function.
7132         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7133         attribute.
7134         * gdbtypes.c: Include dwarf2loc.h.
7135         (is_dynamic_type): New function.
7136         (resolve_dynamic_type): New function.
7137         (resolve_dynamic_bounds): New function.
7138         (get_type_length): New function.
7139         (check_typedef): Use get_type_length to compute type length.
7140         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7141         (TYPE_LOW_BOUND_KIND): New macro.
7142         (is_dynamic_type): New function prototype.
7143         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7144         to resolve dynamic properties of the type. Update comment.
7145         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7146
7147         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7148         passed to sizeof is dynamic evaluate the argument to compute the length.
7149
7150         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7151         value and retrieve the dynamic type size.
7152
7153         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7154         (ada_template_to_fixed_record_type_1): Likewise.
7155         (ada_to_fixed_type_1): Likewise.
7156         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7157         (cp_print_value): Likewise.
7158         * d-valprint.c (dynamic_array_type): Likewise.
7159         * eval.c (evaluate_subexp_with_coercion): Likewise.
7160         * findvar.c (address_of_variable): Likewise.
7161         * jv-valprint.c (java_value_print): Likewise.
7162         * valops.c (value_ind): Likewise.
7163         * value.c (coerce_ref): Likewise.
7164
7165         * c-typeprint.c (c_type_print_varspec_suffix): Added
7166         check for not yet resolved high bound. If unresolved, print
7167         "variable length" string to the console instead of random
7168         length.
7169
7170         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7171         property and store it as the high bound and flag the range accordingly.
7172         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7173         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7174         * gdbtypes.h (enum range_flags): New enum.
7175         (struct range_bounds): Add flags member.
7176
7177         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7178         points to a constant blob.
7179
7180         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7181         (evaluate_subexp_standard): Pass noside argument.
7182         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7183         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7184         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7185         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7186         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7187
7188 2014-04-11  Keith Seitz  <keiths@redhat.com>
7189
7190         PR c++/16675
7191         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7192         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7193         reference types.
7194
7195 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7196
7197         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7198         (evaluate_subexp_standard): Pass noside argument.
7199         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7200         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7201         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7202         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7203         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7204
7205 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7206
7207         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7208         points to a constant blob.
7209
7210 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7211
7212         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7213         property and store it as the high bound and flag the range accordingly.
7214         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7215         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7216         * gdbtypes.h (enum range_flags): New enum.
7217         (struct range_bounds): Add flags member.
7218
7219 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7220
7221         * c-typeprint.c (c_type_print_varspec_suffix): Added
7222         check for not yet resolved high bound. If unresolved, print
7223         "variable length" string to the console instead of random
7224         length.
7225
7226 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7227
7228         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7229         (ada_template_to_fixed_record_type_1): Likewise.
7230         (ada_to_fixed_type_1): Likewise.
7231         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7232         (cp_print_value): Likewise.
7233         * d-valprint.c (dynamic_array_type): Likewise.
7234         * eval.c (evaluate_subexp_with_coercion): Likewise.
7235         * findvar.c (address_of_variable): Likewise.
7236         * jv-valprint.c (java_value_print): Likewise.
7237         * valops.c (value_ind): Likewise.
7238         * value.c (coerce_ref): Likewise.
7239
7240 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7241
7242         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7243         value and retrieve the dynamic type size.
7244
7245 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7246
7247         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7248         passed to sizeof is dynamic evaluate the argument to compute the length.
7249
7250 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7251
7252         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7253         (dwarf2_evaluate_property): New function.
7254         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7255         * dwarf2read.c (attr_to_dynamic_prop): New function.
7256         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7257         attribute.
7258         * gdbtypes.c: Include dwarf2loc.h.
7259         (is_dynamic_type): New function.
7260         (resolve_dynamic_type): New function.
7261         (resolve_dynamic_bounds): New function.
7262         (get_type_length): New function.
7263         (check_typedef): Use get_type_length to compute type length.
7264         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7265         (TYPE_LOW_BOUND_KIND): New macro.
7266         (is_dynamic_type): New function prototype.
7267         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7268         to resolve dynamic properties of the type. Update comment.
7269         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7270
7271 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7272
7273         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7274         declaring high/low bounds and change uses accordingly. Call
7275         create_range_type instead of create_static_range_type.
7276         * gdbtypes.c (create_range_type): New function.
7277         (create_range_type): Convert bounds into struct bound_prop and pass
7278         them to create_range_type.
7279         * gdbtypes.h (struct bound_prop): New struct.
7280         (create_range_type): New function prototype.
7281         (struct range_bounds): Use struct bound_prop instead of LONGEST for
7282         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7283         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7284         part of the bound.
7285         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7286
7287 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7288
7289         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7290         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7291         * ada-lang.c: All uses of create_range_type updated.
7292         * coffread.c: All uses of create_range_type updated.
7293         * dwarf2read.c: All uses of create_range_type updated.
7294         * f-exp.y: All uses of create_range_type updated.
7295         * m2-valprint.c: All uses of create_range_type updated.
7296         * mdebugread.c: All uses of create_range_type updated.
7297         * stabsread.c: All uses of create_range_type updated.
7298         * valops.c: All uses of create_range_type updated.
7299         * valprint.c: All uses of create_range_type updated.
7300
7301 2014-04-10  Pedro Alves  <palves@redhat.com>
7302
7303         * breakpoint.c (single_step_breakpoints)
7304         (single_step_gdbarch): Move up in the file.
7305         (one_breakpoint_xfer_memory): New function, factored out from ...
7306         (breakpoint_xfer_memory): ... here.  Also process single-step
7307         breakpoints.
7308
7309 2014-04-09  Tristan Gingold  <gingold@adacore.com>
7310
7311         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7312         comments.
7313         (darwin_decode_exception_message): Free port only after use.
7314
7315 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
7316
7317         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7318         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7319         when setting the size of call_length.
7320
7321 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
7322
7323         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7324         dereference TYPE_CODE_REF values.
7325
7326 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
7327
7328         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7329         end of warning message.
7330
7331 2014-04-03  Doug Evans  <dje@google.com>
7332
7333         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7334         of stub_comp_unit_die, stub_comp_dir is non-NULL.
7335
7336 2014-04-02  Alan Modra  <amodra@gmail.com>
7337
7338         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7339         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
7340         (struct symbol_file_add_from_memory_args): Add size field.
7341         (find_vdso_size): New function.
7342         (add_vsyscall_page): Attempt to find vdso size.
7343
7344 2014-04-01  Doug Evans  <dje@google.com>
7345
7346         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7347
7348 2014-04-01  Tristan Gingold  <gingold@adacore.com>
7349
7350         * darwin-nat.c (darwin_encode_reply): Add prototype.
7351         (darwin_decode_exception_message): Reply to unknown inferiors.
7352         (darwin_decode_message): Handle message by id.  Ignore message
7353         to unknown inferior.
7354         (darwin_wait): Discard unknown messages, add debug trace.
7355
7356 2014-03-31  Doug Evans  <dje@google.com>
7357
7358         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7359         comp_dir_string.
7360
7361 2014-03-31  Doug Evans  <dje@google.com>
7362
7363         New option "set print symbol-loading".
7364         * NEWS: Mention it.
7365         * solib.c (solib_read_symbols): Only print symbol loading messages
7366         if requested.
7367         (solib_add): If symbol loading is in "brief" mode, notify user
7368         symbols are being loaded.
7369         (reload_shared_libraries_1): Ditto.
7370         * symfile.c (print_symbol_loading_off): New static global.
7371         (print_symbol_loading_brief): New static global.
7372         (print_symbol_loading_full): New static global.
7373         (print_symbol_loading_enums): New static global.
7374         (print_symbol_loading): New static global.
7375         (print_symbol_loading_p): New function.
7376         (symbol_file_add_with_addrs): Only print symbol loading messages
7377         if requested.
7378         (_initialize_symfile): Register "print symbol-loading" set/show
7379         command.
7380         * symfile.h (print_symbol_loading_p): Declare.
7381
7382 2014-03-30  Doug Evans  <xdje42@gmail.com>
7383
7384         * infrun.c (set_last_target_status): New function.
7385         (handle_inferior_event): Call it.
7386
7387 2014-03-30  Doug Evans  <xdje42@gmail.com>
7388
7389         * inferior.h (enum stop_kind): Improve comment.
7390
7391 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
7392
7393         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7394         a reference, strip the reference layer before calling
7395         the lang_ops value_has_mutated callback.
7396
7397 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7398
7399         Remove some globals from our parser.
7400         * language.c (unk_lang_parser): Add "struct parser_state"
7401         argument.
7402         * language.h (struct language_defn) <la_parser>: Likewise.
7403         * parse.c (expout, expout_size, expout_ptr): Remove variables.
7404         (initialize_expout): Add "struct parser_state" argument.
7405         Rewrite function to use the parser state.
7406         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7407         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7408         write_exp_elt_longcst, write_exp_elt_dblcst,
7409         write_exp_elt_decfloatcst, write_exp_elt_type,
7410         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7411         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7412         write_dollar_variable): Likewise.
7413         (parse_exp_in_context_1): Use parser state.
7414         (insert_type_address_space): Add "struct parser_state" argument.
7415         Use parser state.
7416         (increase_expout_size): New function.
7417         * parser-defs.h: Forward declare "struct language_defn" and
7418         "struct parser_state".
7419         (expout, expout_size, expout_ptr): Remove extern declarations.
7420         (parse_gdbarch, parse_language): Rewrite macro declarations to
7421         accept the parser state.
7422         (struct parser_state): New struct.
7423         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7424         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7425         write_exp_elt_decfloatcst, write_exp_elt_type,
7426         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7427         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7428         write_exp_msymbol, write_dollar_variable,
7429         mark_struct_expression, insert_type_address_space): Add "struct
7430         parser_state" argument.
7431         (increase_expout_size): New function.
7432         * utils.c (do_clear_parser_state): New function.
7433         (make_cleanup_clear_parser_state): Likewise.
7434         * utils.h (make_cleanup_clear_parser_state): New function
7435         prototype.
7436         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7437         Update calls to write_exp* in order to pass the parser state.
7438         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7439         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7440         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7441         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7442         * stap-probe.c (stap_parse_register_operand): Likewise.
7443         (stap_parse_single_operand): Likewise.
7444         (stap_parse_argument_1): Likewise.
7445         (stap_parse_argument): Use parser state.
7446         * stap-probe.h: Include "parser-defs.h".
7447         (struct stap_parse_info) <pstate>: New field.
7448         * c-exp.y (parse_type): Rewrite to use parser state.
7449         (yyparse): Redefine to c_parse_internal.
7450         (pstate): New global variable.
7451         (parse_number): Add "struct parser_state" argument.
7452         (write_destructor_name): Likewise.
7453         (type_exp): Update calls to write_exp* and similars in order to
7454         use parser state.
7455         (exp1, exp, variable, qualified_name, space_identifier,
7456         typename, typebase): Likewise.
7457         (write_destructor_name, parse_number, lex_one_token,
7458         classify_name, classify_inner_name, c_parse): Add "struct
7459         parser_state" argument.  Update function to use parser state.
7460         * c-lang.h: Forward declare "struct parser_state".
7461         (c_parse): Add "struct parser_state" argument.
7462         * ada-exp.y (parse_type): Rewrite macro to use parser state.
7463         (yyparse): Redefine macro to ada_parse_internal.
7464         (pstate): New variable.
7465         (write_int, write_object_renaming, write_var_or_type,
7466         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7467         type_int, type_long, type_long_long, type_float, type_double,
7468         type_long_double, type_char, type_boolean, type_system_address):
7469         Add "struct parser_state" argument.
7470         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7471         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7472         var_or_type, aggregate, aggregate_component_list,
7473         positional_list, others, component_group,
7474         component_associations): Update calls to write_exp* and similar
7475         functions in order to use parser state.
7476         (ada_parse, write_var_from_sym, write_int,
7477         write_exp_op_with_string, write_object_renaming,
7478         find_primitive_type, write_selectors, write_ambiguous_var,
7479         write_var_or_type, write_name_assoc, type_int, type_long,
7480         type_long_long, type_float, type_double, type_long_double,
7481         type_char, type_boolean, type_system_address): Add "struct
7482         parser_state" argument.  Adjust function to use parser state.
7483         * ada-lang.c (parse): Likewise.
7484         * ada-lang.h: Forward declare "struct parser_state".
7485         (ada_parse): Add "struct parser_state" argument.
7486         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
7487         calls to both functions.
7488         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7489         parser state.
7490         (yyparse): Redefine macro to f_parse_internal.
7491         (pstate): New variable.
7492         (parse_number): Add "struct parser_state" argument.
7493         (type_exp, exp, subrange, typebase): Update calls to write_exp*
7494         and similars in order to use parser state.
7495         (parse_number): Adjust code to use parser state.
7496         (yylex): Likewise.
7497         (f_parse): New function.
7498         * f-lang.h: Forward declare "struct parser_state".
7499         (f_parse): Add "struct parser_state" argument.
7500         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7501         parser state.
7502         (yyparse): Redefine macro for java_parse_internal.
7503         (pstate): New variable.
7504         (push_expression_name, push_expression_name, insert_exp): Add
7505         "struct parser_state" argument.
7506         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7507         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7508         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7509         PostIncrementExpression, PostDecrementExpression,
7510         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7511         UnaryExpressionNotPlusMinus, CastExpression,
7512         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7513         RelationalExpression, EqualityExpression, AndExpression,
7514         ExclusiveOrExpression, InclusiveOrExpression,
7515         ConditionalAndExpression, ConditionalOrExpression,
7516         ConditionalExpression, Assignment, LeftHandSide): Update
7517         calls to write_exp* and similars in order to use parser state.
7518         (parse_number): Ajust code to use parser state.
7519         (yylex): Likewise.
7520         (java_parse): New function.
7521         (push_variable): Add "struct parser_state" argument.  Adjust
7522         code to user parser state.
7523         (push_fieldnames, push_qualified_expression_name,
7524         push_expression_name, insert_exp): Likewise.
7525         * jv-lang.h: Forward declare "struct parser_state".
7526         (java_parse): Add "struct parser_state" argument.
7527         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7528         parser state.
7529         (yyparse): Redefine macro to m2_parse_internal.
7530         (pstate): New variable.
7531         (type_exp, exp, fblock, variable, type): Update calls to
7532         write_exp* and similars to use parser state.
7533         (yylex): Likewise.
7534         (m2_parse): New function.
7535         * m2-lang.h: Forward declare "struct parser_state".
7536         (m2_parse): Add "struct parser_state" argument.
7537         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7538         * objc-lang.h: Forward declare "struct parser_state".
7539         (end_msglist): Add "struct parser_state" argument.
7540         * p-exp.y (parse_type): Rewrite macro to use parser state.
7541         (yyparse): Redefine macro to pascal_parse_internal.
7542         (pstate): New variable.
7543         (parse_number): Add "struct parser_state" argument.
7544         (type_exp, exp1, exp, qualified_name, variable): Update calls to
7545         write_exp* and similars in order to use parser state.
7546         (parse_number, yylex): Adjust code to use parser state.
7547         (pascal_parse): New function.
7548         * p-lang.h: Forward declare "struct parser_state".
7549         (pascal_parse): Add "struct parser_state" argument.
7550         * go-exp.y (parse_type): Rewrite macro to use parser state.
7551         (yyparse): Redefine macro to go_parse_internal.
7552         (pstate): New variable.
7553         (parse_number): Add "struct parser_state" argument.
7554         (type_exp, exp1, exp, variable, type): Update calls to
7555         write_exp* and similars in order to use parser state.
7556         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7557         to use parser state.
7558         (go_parse): Likewise.
7559         * go-lang.h: Forward declare "struct parser_state".
7560         (go_parse): Add "struct parser_state" argument.
7561
7562 2014-03-27  Doug Evans  <dje@google.com>
7563
7564         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7565
7566 2014-03-27  Doug Evans  <dje@google.com>
7567
7568         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7569         Remove argument abbrev_section.  All callers updated.
7570
7571 2014-03-27  Doug Evans  <dje@google.com>
7572
7573         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7574         addr_base, ranges_base.
7575
7576 2014-03-26  Keith Seitz  <keiths@redhat.com>
7577
7578         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7579         types, not VAR_DOMAIN.
7580
7581 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7582
7583         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7584         "ra" registers.
7585         * features/nios2-linux.c: Regenerated.
7586         * features/nios2.c: Regenerated.
7587
7588 2014-03-25  Pedro Alves  <palves@redhat.com>
7589
7590         * cli/cli-script.c (script_from_file): Force the interpreter to
7591         sync mode.
7592
7593 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7594
7595         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7596         small stack allocation.
7597
7598 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7599
7600         * darwin-nat.c (exc_server): Remove unused prototype.
7601         (darwin_dump_message): Correctly display data on x86_64.
7602         (darwin_encode_reply): Fix style.
7603         Add comments and fix indentation.
7604
7605 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7606
7607         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7608
7609 2014-03-22  Doug Evans  <xdje42@gmail.com>
7610
7611         * infcmd.c: Whitespace fixes.
7612         (interrupt_command): Merge two function comments into one.
7613
7614 2014-03-22  Doug Evans  <xdje42@gmail.com>
7615
7616         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7617         All uses updated.
7618
7619 2014-03-22  Yao Qi  <yao@codesourcery.com>
7620
7621         * remote.c (target_read_live_memory): Remove.
7622         (memory_xfer_live_readonly_partial): Rename it to
7623         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7624         All callers updated.  Call remote_read_bytes_1
7625         instead of target_read_live_memory.
7626         * tracepoint.c (set_traceframe_number): Remove.
7627         (make_cleanup_restore_traceframe_number): Likewise .
7628         * tracepoint.h (set_traceframe_number): Remove declaration.
7629         (make_cleanup_restore_traceframe_number): Likewise.
7630
7631 2014-03-22  Yao Qi  <yao@codesourcery.com>
7632
7633         * remote.c (remote_read_bytes): Move code on reading from the
7634         remote stub to ...
7635         (remote_read_bytes_1): ... here.  New function.
7636
7637 2014-03-22  Yao Qi  <yao@codesourcery.com>
7638
7639         * ctf.c (ctf_xfer_partial): Check the return value of
7640         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7641         return TARGET_XFER_UNAVAILABLE.
7642         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7643         * target.c (target_read_live_memory): Move it to remote.c.
7644         (memory_xfer_live_readonly_partial): Likewise.
7645         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7646         * remote.c (target_read_live_memory): Moved from target.c.
7647         (memory_xfer_live_readonly_partial): Likewise.
7648         (remote_read_bytes): Factored out from
7649         memory_xfer_partial_1.
7650
7651 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7652
7653         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7654         NULL pointer.
7655
7656 2014-03-21  Pedro Alves  <palves@redhat.com>
7657
7658         * infrun.c (normal_stop): Extend comment.
7659
7660 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7661             Pedro Alves  <palves@redhat.com>
7662
7663         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7664         static buffer.
7665         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7666         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7667         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7668
7669 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7670
7671         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7672         `z' formatted output modifier.
7673
7674 2014-03-20  Tom Tromey  <tromey@redhat.com>
7675             Sergio Durigan Junior  <sergiodj@redhat.com>
7676
7677         * probe.c (parse_probes): Turn assert into an ordinary error.
7678         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7679         exceptions when parsing probes.  Rearrange the code for clarity.
7680
7681 2014-03-20  Tom Tromey  <tromey@redhat.com>
7682
7683         PR gdb/14135
7684         * top.c (execute_command): Only dispatch events if the command
7685         started the target.
7686
7687 2014-03-20  Tom Tromey  <tromey@redhat.com>
7688
7689         PR cli/15718
7690         * infcall.c: Include event-top.h.
7691         (run_inferior_call): Call async_disable_stdin if needed.
7692
7693 2014-03-20  Pedro Alves  <palves@redhat.com>
7694
7695         * infrun.c (prepare_to_proceed): Delete.
7696         (thread_still_needs_step_over): New function.
7697         (find_thread_needs_step_over): New function.
7698         (proceed): If the current thread needs a step-over, set its
7699         steping_over_breakpoint flag.  Adjust to use
7700         find_thread_needs_step_over instead of prepare_to_proceed.
7701         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7702         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7703         breakpoint.
7704         (switch_back_to_stepped_thread): Step over breakpoints of all
7705         threads not the stepping thread, before switching back to the
7706         stepping thread.
7707
7708 2014-03-20  Pedro Alves  <palves@redhat.com>
7709
7710         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7711         extern.
7712         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7713         * infrun.c (saved_singlestep_ptid)
7714         (stepping_past_singlestep_breakpoint): Delete.
7715         (resume): Remove stepping_past_singlestep_breakpoint handling.
7716         (proceed): Store the prev_pc of the stepping thread too.
7717         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7718         singlestep_pc.
7719         (enum infwait_states): Delete infwait_thread_hop_state.
7720         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7721         field.
7722         (handle_inferior_event): Adjust.
7723         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7724         handling and the thread-hop code.  Before removing single-step
7725         breakpoints, check whether the thread hit a single-step breakpoint
7726         of another thread.  If it did, the trap is not a random signal.
7727         (switch_back_to_stepped_thread): If the event thread hit a
7728         single-step breakpoint, unblock it before switching to the
7729         stepping thread.  Handle the case of the stepped thread having
7730         advanced already.
7731         (keep_going): Handle the case of the current thread moving past a
7732         single-step breakpoint.
7733
7734 2014-03-20  Pedro Alves  <palves@redhat.com>
7735
7736         PR breakpoints/7143
7737         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7738         are being stepped over.
7739         (breakpoint_address_match): Make extern.
7740         * breakpoint.h (breakpoint_address_match): New declaration.
7741         * inferior.h (stepping_past_instruction_at): New declaration.
7742         * infrun.c (struct step_over_info): New type.
7743         (step_over_info): New global.
7744         (set_step_over_info, clear_step_over_info)
7745         (stepping_past_instruction_at): New functions.
7746         (handle_inferior_event): Clear the step-over info when
7747         trap_expected is cleared.
7748         (resume): Remove now stale comment.
7749         (clear_proceed_status): Clear step-over info.
7750         (proceed): Adjust step-over handling to set or clear the step-over
7751         info instead of removing all breakpoints.
7752         (handle_signal_stop): When setting up a thread-hop, don't remove
7753         breakpoints here.
7754         (stop_stepping): Clear step-over info.
7755         (keep_going): Adjust step-over handling to set or clear step-over
7756         info and then always inserting breakpoints, instead of removing
7757         all breakpoints when stepping over one.
7758
7759 2014-03-20  Pedro Alves  <palves@redhat.com>
7760
7761         * infrun.c (previous_inferior_ptid): Adjust comment.
7762         (deferred_step_ptid): Delete.
7763         (infrun_thread_ptid_changed, prepare_to_proceed)
7764         (init_wait_for_inferior): Adjust.
7765         (handle_signal_stop): Delete deferred_step_ptid handling.
7766
7767 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7768
7769         PR gdb/15358
7770         * defs.h (sync_quit_force_run): New declaration.
7771         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7772         * event-top.c (async_sigterm_handler): New declaration.
7773         (async_sigterm_token): New variable.
7774         (async_init_signals): Create also async_sigterm_token.
7775         (async_sigterm_handler): New function.
7776         (sync_quit_force_run): New variable.
7777         (handle_sigterm): Replace quit_force call by other calls.
7778         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7779
7780 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7781
7782         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7783         offset into SPE pseudo registers.
7784
7785 2014-03-18  Pedro Alves  <palves@redhat.com>
7786
7787         PR gdb/13860
7788         * inferior.h (print_stop_event): Declare.
7789         * infrun.c (print_stop_event): New, factored out from ...
7790         (normal_stop): ... this.
7791         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7792         of bpstat_print/print_stack_frame.
7793
7794 2014-03-17  Tom Tromey  <tromey@redhat.com>
7795
7796         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7797
7798 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7799
7800         * ada-lang.c (decode_constrained_packed_array): Perform a
7801         minimal coercion for reference with coerce_ref instead of
7802         ada_coerce_ref.
7803
7804 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7805
7806         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7807         (darwin_solib_create_inferior_hook): Emit a warning if version
7808         is unhandled.
7809
7810 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7811
7812         * python/py-value.c (get_field_flag): Cast flag_name argument to
7813         PyObject_GetAttrString to support Python 2.4.
7814
7815 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7816
7817         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7818         (Global Maintainers): Remove Jan Kratochvil.
7819
7820 2014-03-14  Pedro Alves  <palves@redhat.com>
7821
7822         * inferior.h (terminal_ours_for_output): Rename to ...
7823         (child_terminal_ours_for_output): ... this.
7824         (terminal_save_ours): Rename to ...
7825         (child_terminal_save_ours): ... this.
7826         (terminal_ours): Rename to ...
7827         (child_terminal_ours): ... this.
7828         (terminal_inferior): Rename to ...
7829         (child_terminal_inferior): ... this.
7830         (terminal_init_inferior): Rename to ...
7831         (child_terminal_init_inferior): ... this.
7832         (terminal_init_inferior_with_pgrp): Rename to ...
7833         (child_terminal_init_inferior_with_pgrp): ... this.
7834         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7835         (child_terminal_init_with_pgrp): ... this.
7836         (terminal_save_ours): Rename to ...
7837         (child_terminal_save_ours): ... this.
7838         (terminal_init_inferior): Rename to ...
7839         (child_terminal_init): ... this.  Adjust.
7840         (terminal_inferior): Rename to ...
7841         (child_terminal_inferior): ... this.
7842         (terminal_ours_for_output): Rename to ...
7843         (child_terminal_ours_for_output): ... this.  Adjust.
7844         (terminal_ours): Rename to ...
7845         (child_terminal_ours): ... this.
7846         (terminal_ours_1): Rename to ...
7847         (child_terminal_ours_1): ... this.  Adjust.
7848         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7849         * windows-nat.c (do_initial_windows_stuff): Adjust.
7850         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7851         (gnu_terminal_init): ... this.  Adjust.
7852         (gnu_target): Adjust.
7853         * inf-child.c (inf_child_target): Adjust.
7854
7855 2014-03-13  Doug Evans  <xdje42@gmail.com>
7856
7857         PR guile/16612
7858         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7859         new eq?-hashtab.
7860
7861 2014-03-13  Doug Evans  <xdje42@gmail.com>
7862
7863         * value.c (record_latest_value): Call release_value_or_incref
7864         instead of release_value.
7865
7866 2014-03-13  Pedro Alves  <palves@redhat.com>
7867
7868         * procfs.c (procfs_target): Don't override to_shortname,
7869         to_longname or to_doc.
7870
7871 2014-03-13  Pedro Alves  <palves@redhat.com>
7872
7873         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7874         Unix in user visible strings.
7875
7876 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7877
7878         * gdbtypes.h: Annotate comments for Doxygen, add a page
7879         block comment with some general info.
7880
7881 2014-03-12  Pedro Alves  <palves@redhat.com>
7882
7883         * infcmd.c (prepare_execution_command): New function, factored out
7884         from several execution commands.
7885         (run_command_1, continue_command, step_1, jump_command)
7886         (signal_command, until_command, advance_command, finish_command)
7887         (attach_command): Use prepare_execution_command.
7888
7889 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7890
7891         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7892         (MAX_BPTS): Define.
7893         (MAX_WPTS): Define.
7894         (struct arm_linux_thread_points): Removed.
7895         (struct arm_linux_process_info): New.
7896         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7897         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7898         (arm_linux_find_breakpoints_by_tid): Removed.
7899         (struct arch_lwp_info): New.
7900         (arm_linux_find_process_pid): New functions.
7901         (arm_linux_add_process): New functions.
7902         (arm_linux_process_info_get): New functions.
7903         (arm_linux_forget_process): New function.
7904         (arm_linux_get_debug_reg_state): New function.
7905         (struct update_registers_data): New.
7906         (update_registers_callback): New function.
7907         (arm_linux_insert_hw_breakpoint1): Updated.
7908         (arm_linux_remove_hw_breakpoint1): Updated.
7909         (arm_linux_insert_hw_breakpoint): Updated.
7910         (arm_linux_remove_hw_breakpoint): Updated.
7911         (arm_linux_insert_watchpoint): Updated.
7912         (arm_linux_remove_watchpoint): Updated.
7913         (arm_linux_new_thread): Updated.
7914         (arm_linux_prepare_to_resume): New function.
7915         (arm_linux_new_fork): New function.
7916         (_initialize_arm_linux_nat): Updated.
7917
7918 2014-03-12  Pedro Alves  <palves@redhat.com>
7919
7920         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7921
7922 2014-03-12  Tom Tromey  <tromey@redhat.com>
7923
7924         * inf-child.c (return_zero): New function.
7925         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7926         * aix-thread.c (aix_thread_inferior_created): New function.
7927         (aix_thread_attach): Remove.
7928         (init_aix_thread_ops): Don't set to_attach.
7929         (_initialize_aix_thread): Register inferior_created observer.
7930         * corelow.c (init_core_ops): Don't set to_attach or
7931         to_create_inferior.
7932         * exec.c (init_exec_ops): Don't set to_attach or
7933         to_create_inferior.
7934         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7935         target calls.
7936         (attach_command): Use find_attach_target.  Make direct target
7937         calls.
7938         * record-btrace.c (init_record_btrace_ops): Don't set
7939         to_create_inferior.
7940         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7941         Remove.
7942         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7943         set to_create_inferior.
7944         * target.c (complete_target_initialization): Add assertion.
7945         (target_create_inferior): Remove.
7946         (find_default_attach, find_default_create_inferior): Remove.
7947         (find_attach_target, find_run_target): New functions.
7948         (find_default_is_async_p, find_default_can_async_p)
7949         (target_supports_non_stop, target_attach): Remove.
7950         (init_dummy_target): Don't set to_create_inferior or
7951         to_supports_non_stop.
7952         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7953         TARGET_DEFAULT_FUNC.
7954         <to_create_inferior>: Add comment.
7955         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7956         TARGET_DEFAULT_RETURN.
7957         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7958         (find_attach_target, find_run_target): Declare.
7959         (target_create_inferior): Remove.
7960         (target_has_execution_1): Update comment.
7961         (target_supports_non_stop): Remove.
7962         * target-delegates.c: Rebuild.
7963
7964 2014-03-12  Pedro Alves  <palves@redhat.com>
7965
7966         * inf-child.h: Update comment to not mention Unix.
7967
7968 2014-03-12  Pedro Alves  <palves@redhat.com>
7969
7970         * inf-child.c: Update top comment to not mention Unix.  Add
7971         generic comment describing how this target is meant to be used.
7972         (inf_child_post_attach, inf_child_post_startup_inferior)
7973         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7974         Unix in comment.
7975
7976 2014-03-12  Pedro Alves  <palves@redhat.com>
7977
7978         * nto-procfs.c: Include inf-child.h.
7979         (procfs_ops): Delete global.
7980         (procfs_can_run): Delete method.
7981         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7982         target pointer instead of referencing procfs_ops.
7983         (procfs_prepare_to_store): Delete.
7984         (init_procfs_ops): Delete function.
7985         (procfs_target): New function, based on init_procfs_ops, but
7986         inherit inf_child_target.
7987         (_initialize_procfs): Use procfs_target.
7988
7989 2014-03-12  Pedro Alves  <palves@redhat.com>
7990
7991         * windows-nat.c: Include inf-child.h.
7992         (windows_ops): Delete global.
7993         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7994         methods.
7995         (init_windows_ops): Delete function.
7996         (windows_target): New function, based on init_windows_ops, but
7997         inherit inf_child_target.
7998         (_initialize_windows_nat): Use windows_target.  Install x86
7999         specific target methods here.
8000
8001 2014-03-10  Doug Evans  <xdje42@gmail.com>
8002
8003         * guile/guile.c (call_initialize_gdb_module): New function.
8004         (initialize_guile): Replace call to scm_init_guile with call to
8005         scm_with_guile.
8006
8007 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8008
8009         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8010         in call to TYPE_CODE macro.
8011
8012 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8013
8014         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8015         Resolve tagged types to full view.
8016
8017 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8018
8019         * target.h (target_insert_breakpoint): Remove "hardware" from its
8020         comments.
8021
8022 2014-03-07  Doug Evans  <dje@google.com>
8023
8024         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8025
8026 2014-03-07  Doug Evans  <dje@google.com>
8027
8028         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8029         Remove unused local comp_dir_attr.  Assert exactly one of
8030         stub_comp_unit_die, stub_comp_dir is non-NULL.
8031
8032 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8033
8034         * target.h (complete_target_initialization, add_target):
8035         Add comment.
8036
8037 2014-03-07  Pedro Alves  <palves@redhat.com>
8038
8039         * go32-nat.c: Include inf-child.h.
8040         (go32_ops): Delete global.
8041         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8042         Delete methods.
8043         (go32_create_inferior): Push the passed in target pointer instead
8044         of referencing go32_ops.
8045         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8046         (go32_target): New function, based on init_go32_ops, but inherit
8047         inf_child_target.
8048         (_initialize_go32_nat): Use go32_target.  Move parts of
8049         init_go32_ops here.
8050
8051 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8052
8053         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8054         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8055         SYMBOL_VALUE_ADDRESS.
8056         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8057
8058 2014-03-06  Yao Qi  <yao@codesourcery.com>
8059
8060         * breakpoint.c (get_tracepoint_by_number): Remove argument
8061         optional_p.  All callers updated.  Adjust comments.  Update
8062         output message.
8063         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8064
8065 2014-03-06  Yao Qi  <yao@codesourcery.com>
8066
8067         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8068         early if get_number returns zero.  Use 'p' instead of 'args'.
8069
8070 2014-03-06  Yao Qi  <yao@codesourcery.com>
8071
8072         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8073         message.
8074
8075 2014-03-06  Yao Qi  <yao@codesourcery.com>
8076
8077         PR breakpoints/16508
8078         * tracepoint.c (check_trace_running): New function.
8079         (trace_find_command): Move code to check_trace_running and
8080         call check_trace_running.
8081         (trace_find_pc_command): Likewise.
8082         (trace_find_tracepoint_command): Likewise.
8083         (trace_find_line_command): Likewise.
8084         (trace_find_range_command): Likewise.
8085         * tracepoint.h (check_trace_running): Likewise.
8086         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8087
8088 2014-03-06  Yao Qi  <yao@codesourcery.com>
8089
8090         * target.h (struct target_ops) <to_traceframe_info>: Use
8091         TARGET_DEFAULT_NORETURN (tcomplain ()).
8092         * target-delegates.c: Regenerated.
8093
8094 2014-03-05  Pedro Alves  <palves@redhat.com>
8095
8096         PR gdb/16575
8097         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8098         void.  Update comment.
8099         (dcache_xfer_memory): Delete.
8100         (dcache_read_memory_partial): New, based on the read bits of
8101         dcache_xfer_memory.
8102         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8103         adjust.  Discard cache lines if the reason for the update was
8104         error.
8105         * dcache.h (dcache_xfer_memory): Delete declaration.
8106         (dcache_read_memory_partial): New declaration.
8107         (dcache_update): Update prototype.
8108         * target.c (raw_memory_xfer_partial): Update the dcache here.
8109         (memory_xfer_partial_1): Don't handle dcache writes here.
8110
8111 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8112
8113         * remote-sim.c (gdbsim_load): Add const to prog.
8114
8115 2014-03-03  Tom Tromey  <tromey@redhat.com>
8116
8117         * elfread.c (probe_key): Change to bfd_data.
8118         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8119         now per-BFD, not per-objfile.
8120         * stap-probe.c (stap_probe_destroy): Update comment.
8121         (handle_stap_probe): Allocate on the per-BFD obstack.
8122
8123 2014-03-03  Tom Tromey  <tromey@redhat.com>
8124
8125         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8126         * breakpoint.c (create_longjmp_master_breakpoint): Use
8127         get_probe_address.
8128         (add_location_to_breakpoint, bkpt_probe_insert_location)
8129         (bkpt_probe_remove_location): Update.
8130         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8131         * elfread.c (elf_symfile_relocate_probe): Remove.
8132         (elf_probe_fns): Update.
8133         (insert_exception_resume_breakpoint): Change type of "probe"
8134         parameter to bound_probe.
8135         (check_exception_resume): Update.
8136         * objfiles.c (objfile_relocate1): Don't relocate probes.
8137         * probe.c (bound_probe_s): New typedef.
8138         (parse_probes): Use get_probe_address.  Set sal's objfile.
8139         (find_probe_by_pc): Return a bound_probe.
8140         (collect_probes): Return a VEC(bound_probe_s).
8141         (compare_probes): Update.
8142         (gen_ui_out_table_header_info): Change type of "probes"
8143         parameter.  Update.
8144         (info_probes_for_ops): Update.
8145         (get_probe_address): New function.
8146         (probe_safe_evaluate_at_pc): Update.
8147         * probe.h (struct probe_ops) <get_probe_address>: New field.
8148         <set_semaphore, clear_semaphore>: Add objfile parameter.
8149         (struct probe) <objfile>: Remove field.
8150         <arch>: New field.
8151         <address>: Update comment.
8152         (struct bound_probe): New.
8153         (find_probe_by_pc): Return a bound_probe.
8154         (get_probe_address): Declare.
8155         * solib-svr4.c (struct probe_and_action) <address>: New field.
8156         (hash_probe_and_action, equal_probe_and_action): Update.
8157         (register_solib_event_probe): Add address parameter.
8158         (solib_event_probe_at): Update.
8159         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8160         get_probe_address.
8161         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8162         (stap_get_probe_address): New function.
8163         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8164         (compile_probe_arg): Update.
8165         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8166         address.
8167         (handle_stap_probe): Don't relocate the probe.
8168         (stap_relocate): Remove.
8169         (stap_gen_info_probes_table_values): Update.
8170         (stap_probe_ops): Remove stap_relocate.
8171         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8172         (debug_sym_probe_fns): Update.
8173         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8174         * symtab.c (init_sal): Use memset.
8175         * symtab.h (struct symtab_and_line) <objfile>: New field.
8176         * tracepoint.c (start_tracing, stop_tracing): Update.
8177
8178 2014-03-03  Tom Tromey  <tromey@redhat.com>
8179
8180         * probe.h (parse_probes, find_probe_by_pc)
8181         (find_probes_in_objfile): Fix comments.
8182
8183 2014-03-02  Doug Evans  <xdje42@gmail.com>
8184
8185         * infrun.c (handle_signal_stop): Replace test for
8186         TARGET_WAITKIND_STOPPED with an assert.
8187
8188 2014-03-02  Doug Evans  <xdje42@gmail.com>
8189
8190         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8191
8192 2014-03-02  Doug Evans  <xdje42@gmail.com>
8193
8194         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8195
8196 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8197
8198         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8199
8200 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8201
8202         * i386obsd-nat.c: Include "obsd-nat.h".
8203         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8204         add_target.
8205         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8206
8207 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8208
8209         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8210
8211 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8212
8213         * mips64obsd-nat.c: Include "obsd-nath".
8214         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8215         add_target
8216         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8217
8218 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8219
8220         * amd64obsd-nat.c: Include "obsd-nat,h.
8221         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8222         add_target.
8223         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8224
8225 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
8226
8227         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8228         (find_overload_match): Update call to find_oload_champ.
8229         (find_oload_champ_namespace_loop): Likewise
8230
8231 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
8232
8233         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8234
8235         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8236         * config/sparc/obsd64.mh: New file.
8237         * sparc64obsd-nat.c: New file.
8238
8239         * obsd-nat.h: New file.
8240         * obsd-nat.c: New file.
8241         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8242         (ALLDEPFILES): Add obsd-nat.c.
8243
8244 2014-02-28  Tom Tromey  <tromey@redhat.com>
8245
8246         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
8247         * cli-out.h (cli_ui_out_impl): Now const.
8248         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
8249         * ui-out.c (struct ui_out) <impl>: Now const.
8250         (default_ui_out_impl): Now const.
8251         (ui_out_new): Make 'impl' parameter const.
8252         * ui-out.h (ui_out_new): Update.
8253
8254 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8255
8256         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8257
8258 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8259
8260         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8261
8262 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
8263
8264         Additional PR 8882 fix.
8265         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8266
8267 2014-02-27  Pedro Alves  <palves@redhat.com>
8268
8269         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8270         isn't set.
8271
8272 2014-02-27  Pedro Alves  <palves@redhat.com>
8273
8274         PR 12702
8275         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8276         * nat/linux-waitpid.c: Include string.h.
8277         (status_to_str): Moved here and made extern.
8278         * nat/linux-waitpid.h (status_to_str): New declaration.
8279
8280 2014-02-27  Hui Zhu  <hui@codesourcery.com>
8281
8282         PR 12702
8283         * infrun.c (ptid_match): Move ...
8284         * common/ptid.c (ptid_match): ... here.
8285         * inferior.h (ptid_match): Move ...
8286         * common/ptid.h (ptid_match): ... here.
8287
8288 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8289
8290         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8291         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8292         gdb_target_obs.
8293
8294 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
8295
8296         * obsd-tdep.c (obsd_auxv_parse): New function.
8297         (obsd_init_abi): Set auxv_parse.
8298
8299         * gdbarch.sh (auxv_parse): New.
8300         * gdbarch.h: Regenerated.
8301         * gdbarch.c: Regenerated.
8302         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8303
8304 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
8305
8306         * guile/scm-value.c (gdbscm_history_append_x): New function.
8307         (value_functions): Add it.
8308
8309 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8310
8311         * dwarf2read.c (attr_value_as_address): New function.
8312         (dwarf2_find_base_address, read_call_site_scope): Use
8313         attr_value_as_address in place of DW_ADDR.
8314         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8315         the low and high addresses.  Slight rework of the handling
8316         of the high pc being a constant form, and limit it to
8317         DWARF verson 4 or higher.
8318         (dwarf2_record_block_ranges): Likewise.
8319         (read_partial_die): Likewise.
8320         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8321
8322 2014-02-26  Tom Tromey  <tromey@redhat.com>
8323
8324         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8325
8326 2014-02-26  Tom Tromey  <tromey@redhat.com>
8327
8328         * elfread.c (elf_read_minimal_symbols): Return early if
8329         minimal symbols have already been read.  Add "ei" parameter.
8330         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8331         * minsyms.c (prim_record_minimal_symbol_full): Update.
8332         * objfiles.h (struct objstats) <n_minsyms>: Move...
8333         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8334         * symmisc.c (print_objfile_statistics): Update.
8335
8336 2014-02-26  Tom Tromey  <tromey@redhat.com>
8337
8338         * elfread.c (elf_read_minimal_symbols): New function, from
8339         elf_symfile_read.
8340         (elf_symfile_read): Call it.
8341
8342 2014-02-26  Tom Tromey  <tromey@redhat.com>
8343
8344         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8345         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8346         (lookup_minimal_symbol_solib_trampoline)
8347         (lookup_minimal_symbol_by_pc_section_1)
8348         (lookup_minimal_symbol_and_objfile): Update.
8349         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8350         Don't allocate a minimal symbol if minsyms have already been read.
8351         (build_minimal_symbol_hash_tables): Update.
8352         (install_minimal_symbols): Do nothing if minsyms already read.
8353         Use the per-BFD obstack.
8354         (terminate_minimal_symbol_table): Use the per-BFD obstack.
8355         * objfiles.c (allocate_objfile): Call
8356         terminate_minimal_symbol_table later.
8357         (have_minimal_symbols): Update.
8358         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8359         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8360         Move from struct objfile.
8361         <minsyms_read>: New field.
8362         (struct objfile) <msymbols, minimal_symbol_count,
8363         msymbol_hash, msymbol_demangled_hash>: Move.
8364         (ALL_OBJFILE_MSYMBOLS): Update.
8365         * symfile.c (read_symbols): Set minsyms_read.
8366         (reread_symbols): Update.
8367         * symmisc.c (dump_objfile, dump_msymbols): Update.
8368
8369 2014-02-26  Tom Tromey  <tromey@redhat.com>
8370
8371         * minsyms.c (msymbols_sort): Remove.
8372         * minsyms.h (msymbols_sort): Remove.
8373         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8374         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8375         * elfread.c (elf_symtab_read): Don't add section offsets.
8376         * xcoffread.c (record_minimal_symbol): Don't add section offset
8377         to minimal symbol address.
8378         * somread.c (text_offset, data_offset): Remove.
8379         (som_symtab_read): Don't add section offsets to minimal symbol
8380         addresses.
8381         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8382         Don't add section offsets to minimal symbols.
8383         * coffread.c (coff_symtab_read): Don't add section offsets
8384         to minimal symbol addresses.
8385         * machoread.c (macho_symtab_add_minsym): Don't add section offset
8386         to minimal symbol addresses.
8387         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8388         section offset to minimal symbol addresses.
8389         * mdebugread.c (parse_partial_symbols): Don't add section
8390         offset to minimal symbol addresses.
8391         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8392         offset to minimal symbol addresses.
8393
8394 2014-02-26  Tom Tromey  <tromey@redhat.com>
8395
8396         * ada-lang.c (ada_main_name): Update.
8397         (ada_add_standard_exceptions): Update.
8398         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8399         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8400         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8401         * auxv.c (ld_so_xfer_auxv): Update.
8402         * avr-tdep.c (avr_scan_prologue): Update.
8403         * ax-gdb.c (gen_var_ref): Update.
8404         * blockframe.c (get_pc_function_start)
8405         (find_pc_partial_function_gnu_ifunc): Update.
8406         * breakpoint.c (create_overlay_event_breakpoint)
8407         (create_longjmp_master_breakpoint)
8408         (create_std_terminate_master_breakpoint)
8409         (create_exception_master_breakpoint): Update.
8410         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8411         * c-valprint.c (c_val_print): Update.
8412         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8413         * common/agent.c (agent_look_up_symbols): Update.
8414         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8415         * dwarf2loc.c (call_site_to_target_addr): Update.
8416         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8417         * elfread.c (elf_gnu_ifunc_record_cache)
8418         (elf_gnu_ifunc_resolve_by_got): Update.
8419         * findvar.c (default_read_var_value): Update.
8420         * frame.c (inside_main_func): Update.
8421         * frv-tdep.c (frv_frame_this_id): Update.
8422         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8423         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8424         Update.
8425         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8426         (hppa_hpux_find_dummy_bpaddr): Update.
8427         * hppa-tdep.c (hppa_symbol_address): Update.
8428         * infcmd.c (until_next_command): Update.
8429         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8430         Update.
8431         * linespec.c (minsym_found, add_minsym): Update.
8432         * linux-nat.c (get_signo): Update.
8433         * linux-thread-db.c (inferior_has_bug): Update.
8434         * m32c-tdep.c (m32c_return_value)
8435         (m32c_m16c_address_to_pointer): Update.
8436         * m32r-tdep.c (m32r_frame_this_id): Update.
8437         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8438         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8439         * maint.c (maintenance_translate_address): Update.
8440         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8441         (frob_address): New function.
8442         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8443         frob_address.  Rename parameter to "pc_in".
8444         (compare_minimal_symbols, compact_minimal_symbols): Use raw
8445         addresses.
8446         (find_solib_trampoline_target, minimal_symbol_upper_bound):
8447         Update.
8448         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8449         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8450         * objc-lang.c (find_objc_msgsend): Update.
8451         * objfiles.c (objfile_relocate1): Update.
8452         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8453         * p-valprint.c (pascal_val_print): Update.
8454         * parse.c (write_exp_msymbol): Update.
8455         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8456         (ppc_elfv2_skip_entrypoint): Update.
8457         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8458         * printcmd.c (build_address_symbolic, msym_info)
8459         (address_info): Update.
8460         * proc-service.c (ps_pglobal_lookup): Update.
8461         * psymtab.c (find_pc_sect_psymtab_closer)
8462         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8463         Change msymbol parameter to bound_minimal_symbol.
8464         * ravenscar-thread.c (get_running_thread_id): Update.
8465         * remote.c (remote_check_symbols): Update.
8466         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8467         address.
8468         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8469         * solib-dsbt.c (lm_base): Update.
8470         * solib-frv.c (lm_base, main_got): Update.
8471         * solib-irix.c (locate_base): Update.
8472         * solib-som.c (som_solib_create_inferior_hook)
8473         (link_map_start): Update.
8474         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8475         * solib-svr4.c (elf_locate_base, enable_break): Update.
8476         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8477         (flush_ea_cache): Update.
8478         * stabsread.c (define_symbol, scan_file_globals): Update.
8479         * stack.c (find_frame_funname): Update.
8480         * symfile-debug.c (debug_qf_expand_symtabs_matching)
8481         (debug_qf_find_pc_sect_symtab): Update.
8482         * symfile.c (simple_read_overlay_table)
8483         (simple_overlay_update): Update.
8484         * symfile.h (struct quick_symbol_functions)
8485         <find_pc_sect_symtab>: Change type of msymbol to
8486         bound_minimal_symbol.
8487         * symmisc.c (dump_msymbols): Update.
8488         * symtab.c (find_pc_sect_symtab_via_partial)
8489         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8490         (search_symbols, print_msymbol_info): Update.
8491         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8492         (MSYMBOL_VALUE_ADDRESS): Redefine.
8493         (BMSYMBOL_VALUE_ADDRESS): New macro.
8494         * tracepoint.c (scope_info): Update.
8495         * tui/tui-disasm.c (tui_find_disassembly_address)
8496         (tui_get_begin_asm_address): Update.
8497         * valops.c (find_function_in_inferior): Update.
8498         * value.c (value_static_field, value_fn_field): Update.
8499
8500 2014-02-26  Tom Tromey  <tromey@redhat.com>
8501
8502         * ada-lang.c (ada_update_initial_language): Update.
8503         (ada_main_name, ada_has_this_exception_support): Update.
8504         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8505         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8506         * arm-tdep.c (arm_skip_stub): Update.
8507         * auxv.c (ld_so_xfer_auxv): Update.
8508         * avr-tdep.c (avr_scan_prologue): Update.
8509         * ax-gdb.c (gen_var_ref): Update.
8510         * breakpoint.c (struct breakpoint_objfile_data)
8511         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8512         type to bound_minimal_symbol.
8513         (create_overlay_event_breakpoint)
8514         (create_longjmp_master_breakpoint)
8515         (create_std_terminate_master_breakpoint)
8516         (create_exception_master_breakpoint): Update.
8517         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8518         * c-exp.y (classify_name): Update.
8519         * coffread.c (coff_symfile_read): Update.
8520         * common/agent.c (agent_look_up_symbols): Update.
8521         * d-lang.c (d_main_name): Update.
8522         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8523         * dec-thread.c (enable_dec_thread): Update.
8524         * dwarf2loc.c (call_site_to_target_addr): Update.
8525         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8526         * eval.c (evaluate_subexp_standard): Update.
8527         * findvar.c (struct minsym_lookup_data) <result>: Change type
8528         to bound_minimal_symbol.
8529         <objfile>: Remove.
8530         (minsym_lookup_iterator_cb, default_read_var_value): Update.
8531         * frame.c (inside_main_func): Update.
8532         * frv-tdep.c (frv_frame_this_id): Update.
8533         * gcore.c (call_target_sbrk): Update.
8534         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8535         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8536         Update.
8537         * go-lang.c (go_main_name): Update.
8538         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8539         (hppa_hpux_find_import_stub_for_addr): Update.
8540         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8541         Update.  Change return type.
8542         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8543         type.
8544         * jit.c (jit_breakpoint_re_set_internal): Update.
8545         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8546         Update.
8547         * linux-nat.c (get_signo): Update.
8548         * linux-thread-db.c (inferior_has_bug): Update
8549         * m32c-tdep.c (m32c_return_value)
8550         (m32c_m16c_address_to_pointer): Update.
8551         * m32r-tdep.c (m32r_frame_this_id): Update.
8552         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8553         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8554         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8555         lookup_minimal_symbol.  Change return type.
8556         (lookup_minimal_symbol): Remove.
8557         (lookup_bound_minimal_symbol): Update.
8558         (lookup_minimal_symbol_text): Change return type.
8559         (lookup_minimal_symbol_solib_trampoline): Change return type.
8560         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8561         (lookup_minimal_symbol_solib_trampoline): Change return type.
8562         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8563         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8564         (value_nsstring, find_imps): Update.
8565         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8566         * p-lang.c (pascal_main_name): Update.
8567         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8568         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8569         * proc-service.c (ps_pglobal_lookup): Update.
8570         * ravenscar-thread.c (get_running_thread_msymbol): Change
8571         return type.
8572         (has_ravenscar_runtime, get_running_thread_id): Update.
8573         * remote.c (remote_check_symbols): Update.
8574         * sol-thread.c (ps_pglobal_lookup): Update.
8575         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8576         * solib-dsbt.c (lm_base): Update.
8577         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8578         Update.
8579         * solib-irix.c (locate_base): Update.
8580         * solib-som.c (som_solib_create_inferior_hook)
8581         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8582         Update.
8583         * solib-spu.c (spu_enable_break): Update.
8584         * solib-svr4.c (elf_locate_base, enable_break): Update.
8585         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8586         (flush_ea_cache): Update.
8587         * stabsread.c (define_symbol): Update.
8588         * symfile.c (simple_read_overlay_table): Update.
8589         * symtab.c (find_pc_sect_line): Update.
8590         * tracepoint.c (scope_info): Update.
8591         * tui-disasm.c (tui_get_begin_asm_address): Update.
8592         * value.c (value_static_field): Update.
8593
8594 2014-02-26  Tom Tromey  <tromey@redhat.com>
8595
8596         * minsyms.c (prim_record_minimal_symbol_full): Use
8597         SET_MSYMBOL_VALUE_ADDRESS.
8598         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8599         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8600         SET_MSYMBOL_VALUE_ADDRESS.
8601         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8602         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8603
8604 2014-02-26  Tom Tromey  <tromey@redhat.com>
8605
8606         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8607         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8608         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8609         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8610         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8611         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8612         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8613         * ada-lang.c (ada_main_name): Update.
8614         (ada_lookup_simple_minsym): Update.
8615         (ada_make_symbol_completion_list): Update.
8616         (ada_add_standard_exceptions): Update.
8617         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8618         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8619         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8620         * arm-tdep.c (skip_prologue_function): Update.
8621         (arm_skip_stack_protector, arm_skip_stub): Update.
8622         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8623         (arm_wince_skip_main_prologue): Update.
8624         * auxv.c (ld_so_xfer_auxv): Update.
8625         * avr-tdep.c (avr_scan_prologue): Update.
8626         * ax-gdb.c (gen_var_ref): Update.
8627         * block.c (call_site_for_pc): Update.
8628         * blockframe.c (get_pc_function_start): Update.
8629         (find_pc_partial_function_gnu_ifunc): Update.
8630         * breakpoint.c (create_overlay_event_breakpoint): Update.
8631         (create_longjmp_master_breakpoint): Update.
8632         (create_std_terminate_master_breakpoint): Update.
8633         (create_exception_master_breakpoint): Update.
8634         (resolve_sal_pc): Update.
8635         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8636         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8637         Update.
8638         * c-valprint.c (c_val_print): Update.
8639         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8640         * coffread.c (coff_symfile_read): Update.
8641         * common/agent.c (agent_look_up_symbols): Update.
8642         * dbxread.c (find_stab_function_addr): Update.
8643         (end_psymtab): Update.
8644         * dwarf2loc.c (call_site_to_target_addr): Update.
8645         (func_verify_no_selftailcall): Update.
8646         (tailcall_dump): Update.
8647         (call_site_find_chain_1): Update.
8648         (dwarf_expr_reg_to_entry_parameter): Update.
8649         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8650         (elf_gnu_ifunc_resolve_by_got): Update.
8651         * f-valprint.c (info_common_command): Update.
8652         * findvar.c (read_var_value): Update.
8653         * frame.c (get_prev_frame_1): Update.
8654         (inside_main_func): Update.
8655         * frv-tdep.c (frv_skip_main_prologue): Update.
8656         (frv_frame_this_id): Update.
8657         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8658         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8659         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8660         (gnuv3_skip_trampoline): Update.
8661         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8662         (hppa64_hpux_in_solib_call_trampoline): Update.
8663         (hppa_hpux_skip_trampoline_code): Update.
8664         (hppa64_hpux_search_dummy_call_sequence): Update.
8665         (hppa_hpux_find_import_stub_for_addr): Update.
8666         (hppa_hpux_find_dummy_bpaddr): Update.
8667         * hppa-tdep.c (hppa_symbol_address)
8668         (hppa_lookup_stub_minimal_symbol): Update.
8669         * i386-tdep.c (i386_skip_main_prologue): Update.
8670         (i386_pe_skip_trampoline_code): Update.
8671         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8672         * infcall.c (get_function_name): Update.
8673         * infcmd.c (until_next_command): Update.
8674         * jit.c (jit_breakpoint_re_set_internal): Update.
8675         (jit_inferior_init): Update.
8676         * linespec.c (minsym_found): Update.
8677         (add_minsym): Update.
8678         * linux-fork.c (info_checkpoints_command): Update.
8679         * linux-nat.c (get_signo): Update.
8680         * linux-thread-db.c (inferior_has_bug): Update.
8681         * m32c-tdep.c (m32c_return_value): Update.
8682         (m32c_m16c_address_to_pointer): Update.
8683         (m32c_m16c_pointer_to_address): Update.
8684         * m32r-tdep.c (m32r_frame_this_id): Update.
8685         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8686         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8687         * maint.c (maintenance_translate_address): Update.
8688         * minsyms.c (add_minsym_to_hash_table): Update.
8689         (add_minsym_to_demangled_hash_table): Update.
8690         (msymbol_objfile): Update.
8691         (lookup_minimal_symbol): Update.
8692         (iterate_over_minimal_symbols): Update.
8693         (lookup_minimal_symbol_text): Update.
8694         (lookup_minimal_symbol_by_pc_name): Update.
8695         (lookup_minimal_symbol_solib_trampoline): Update.
8696         (lookup_minimal_symbol_by_pc_section_1): Update.
8697         (lookup_minimal_symbol_and_objfile): Update.
8698         (prim_record_minimal_symbol_full): Update.
8699         (compare_minimal_symbols): Update.
8700         (compact_minimal_symbols): Update.
8701         (build_minimal_symbol_hash_tables): Update.
8702         (install_minimal_symbols): Update.
8703         (terminate_minimal_symbol_table): Update.
8704         (find_solib_trampoline_target): Update.
8705         (minimal_symbol_upper_bound): Update.
8706         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8707         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8708         (mips_skip_pic_trampoline_code): Update.
8709         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8710         * objc-lang.c (selectors_info): Update.
8711         (classes_info): Update.
8712         (find_methods): Update.
8713         (find_imps): Update.
8714         (find_objc_msgsend): Update.
8715         * objfiles.c (objfile_relocate1): Update.
8716         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8717         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8718         * p-valprint.c (pascal_val_print): Update.
8719         * parse.c (write_exp_msymbol): Update.
8720         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8721         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8722         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8723         * printcmd.c (build_address_symbolic): Update.
8724         (sym_info): Update.
8725         (address_info): Update.
8726         * proc-service.c (ps_pglobal_lookup): Update.
8727         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8728         (find_pc_sect_psymtab): Update.
8729         * python/py-framefilter.c (py_print_frame): Update.
8730         * ravenscar-thread.c (get_running_thread_id): Update.
8731         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8732         Update.
8733         * remote.c (remote_check_symbols): Update.
8734         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8735         (rs6000_skip_trampoline_code): Update.
8736         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8737         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8738         * solib-dsbt.c (lm_base): Update.
8739         * solib-frv.c (lm_base): Update.
8740         (main_got): Update.
8741         * solib-irix.c (locate_base): Update.
8742         * solib-som.c (som_solib_create_inferior_hook): Update.
8743         (som_solib_desire_dynamic_linker_symbols): Update.
8744         (link_map_start): Update.
8745         * solib-spu.c (spu_enable_break): Update.
8746         (ocl_enable_break): Update.
8747         * solib-svr4.c (elf_locate_base): Update.
8748         (enable_break): Update.
8749         * spu-tdep.c (spu_get_overlay_table): Update.
8750         (spu_catch_start): Update.
8751         (flush_ea_cache): Update.
8752         * stabsread.c (define_symbol): Update.
8753         (scan_file_globals): Update.
8754         * stack.c (find_frame_funname): Update.
8755         (frame_info): Update.
8756         * symfile.c (simple_read_overlay_table): Update.
8757         (simple_overlay_update): Update.
8758         * symmisc.c (dump_msymbols): Update.
8759         * symtab.c (fixup_section): Update.
8760         (find_pc_sect_line): Update.
8761         (skip_prologue_sal): Update.
8762         (search_symbols): Update.
8763         (print_msymbol_info): Update.
8764         (rbreak_command): Update.
8765         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8766         (completion_list_objc_symbol): Update.
8767         (default_make_symbol_completion_list_break_on): Update.
8768         * tracepoint.c (scope_info): Update.
8769         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8770         (tui_get_begin_asm_address): Update.
8771         * valops.c (find_function_in_inferior): Update.
8772         * value.c (value_static_field): Update.
8773         (value_fn_field): Update.
8774
8775 2014-02-26  Tom Tromey  <tromey@redhat.com>
8776
8777         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8778         bound minimal symbols.  Move code that knows about minsym
8779         table layout...
8780         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8781         function.
8782         * minsyms.h (minimal_symbol_upper_bound): Declare.
8783         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8784         minimal_symbol_upper_bound.
8785
8786 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8787
8788         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8789         Use the type's name if its basic type does not have a tag.
8790
8791 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8792
8793         * dwarf2read.c (read_subrange_type): Add comment.
8794
8795 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8796
8797         * dwarf2read.c (update_enumeration_type_from_children): New
8798         function, mostly extracted from process_structure_scope.
8799         (read_enumeration_type): Call update_enumeration_type_from_children.
8800         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8801         and flag_flag_enum fields.
8802
8803 2014-02-26  Pedro Alves  <palves@redhat.com>
8804
8805         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8806         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8807         to_xfer_partial method.
8808
8809 2014-02-26  Pedro Alves  <palves@redhat.com>
8810
8811         * target.c (complete_target_initialization): Don't install
8812         default_xfer_partial as to_xfer_partial hook.
8813         (nomemory): Delete.
8814         (update_current_target): Don't INHERIT nor de_fault
8815         deprecated_xfer_memory.  Delete de_fault macro.
8816         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8817         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8818         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8819         field.
8820
8821 2014-02-26  Pedro Alves  <palves@redhat.com>
8822
8823         * go32-nat.c (my_write_child): New function.
8824         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8825         (go32_xfer_partial): New function.
8826         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8827         Instead install a to_xfer_partial hook.
8828
8829 2014-02-26  Pedro Alves  <palves@redhat.com>
8830
8831         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8832         to_xfer_partial helper.  Rewrite.
8833         (procfs_xfer_partial): New function.
8834         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8835         Install a to_xfer_partial hook.
8836
8837 2014-02-26  Pedro Alves  <palves@redhat.com>
8838
8839         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8840         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8841         (m32r_xfer_partial): New function.
8842         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8843         Install a to_xfer_partial hook.
8844
8845 2014-02-26  Pedro Alves  <palves@redhat.com>
8846
8847         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8848         helper.
8849         (mips_xfer_partial): New function.
8850         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8851         hook.  Install a to_xfer_partial hook.
8852
8853 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8854
8855         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8856         * gdbtypes.c (create_array_type_with_stride): New function,
8857         renaming create_array_type, but with an added parameter
8858         called "bit_stride".
8859         (create_array_type): Re-implement using
8860         create_array_type_with_stride.
8861         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8862         and DW_AT_bit_stride attributes.
8863
8864 2014-02-26  Pedro Alves  <palves@redhat.com>
8865
8866         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8867         task-specific breakpoints.
8868
8869 2014-02-25  Pedro Alves  <palves@redhat.com>
8870
8871         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8872         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8873
8874 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8875
8876         * defs.h: Annotate comments for Doxygen.
8877
8878 2014-02-25  Tom Tromey  <tromey@redhat.com>
8879
8880         * target.h (target_ignore): Don't declare.
8881         * target.c (target_ignore): Remove.
8882
8883 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8884
8885         PR gdb/16626
8886         * auto-load.c (auto_load_objfile_script_1): Change filename to
8887         debugfile.
8888
8889 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8890
8891         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8892         documentation.  Adjust prototype to match the target_ops
8893         to_xfer_partial method.  Adjust implementation accordingly.
8894
8895 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8896
8897         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8898         to_traceframe_info.
8899
8900 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8901
8902         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8903         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8904         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8905         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8906         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8907         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8908         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8909         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8910         New constants.
8911         (rl78_register_type): Use a data pointer type for SP and
8912         new pseudo registers mentioned above.  Use a 16 bit integer
8913         type for all other register pairs.
8914         (rl78_register_name, rl78_g10_register_name): Update for
8915         new pseudo registers.
8916         (rl78_pseudo_register_read): Likewise.
8917         (rl78_pseudo_register_write): Likewise.
8918         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8919         to the newly added pseudo registers.
8920
8921 2014-02-24  Doug Evans  <dje@google.com>
8922
8923         * value.c (record_latest_value): Fix comment.
8924         * printcmd.c (print_command_1): Remove code to handle -1 return from
8925         record_latest_value.
8926
8927 2014-02-24  Pedro Alves  <palves@redhat.com>
8928
8929         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8930         deprecated_xfer_memory hook.
8931         (procfs_xfer_partial): Call procfs_xfer_memory instead
8932         of the deprecated_xfer_memory target hook.
8933         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8934         helper.
8935
8936 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8937
8938         * windows-nat.c (windows_xfer_shared_libraries): Return
8939         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8940         requested object is TARGET_OBJECT_LIBRARIES.
8941
8942 2014-02-24  Yao Qi  <yao@codesourcery.com>
8943
8944         * target.h (enum target_xfer_status)
8945         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8946         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8947         explicitly.  New.
8948         * corefile.c (memory_error_message): User updated.
8949         * exec.c (section_table_read_available_memory): Likewise.
8950         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8951         * target.c (target_xfer_status_to_string): Likewise.
8952         (raw_memory_xfer_partial): Likewise.
8953         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8954         * valops.c (read_value_memory): Likewise.
8955         * exec.h: Update comments.
8956
8957 2014-02-24  Yao Qi  <yao@codesourcery.com>
8958
8959         * target.c (target_xfer_status_to_string): Rename argument err
8960         to status.
8961         * target.h (target_xfer_status_to_string): Update declaration.
8962         Replace target_xfer_error_to_string with
8963         target_xfer_status_to_string in comment.
8964
8965 2014-02-24  Yao Qi  <yao@codesourcery.com>
8966
8967         * mips-linux-nat.c (super_close): Update its type.
8968         (mips_linux_close): Pass 'self' to super_close.
8969
8970 2014-02-24  Yao Qi  <yao@codesourcery.com>
8971
8972         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8973         * corefile.c (read_memory): Adjusted.
8974         * target.c (target_write_with_progress): Adjusted.
8975
8976 2014-02-23  Yao Qi  <yao@codesourcery.com>
8977
8978         Revert two patches:
8979
8980         2013-10-25  Yao Qi  <yao@codesourcery.com>
8981
8982         * remote.c (remote_traceframe_info): Return early if
8983         traceframe is not selected.
8984
8985         2013-07-19  Yao Qi  <yao@codesourcery.com>
8986
8987         * target.c (update_current_target): Change the default action
8988         of 'to_traceframe_info' from tcomplain to return_zero.
8989         * target.h (struct target_ops) <to_traceframe_info>: Add more
8990         comments.
8991
8992 2014-02-23  Yao Qi  <yao@codesourcery.com>
8993
8994         * valops.c (read_value_memory): Rewrite it.  Call
8995         target_xfer_partial in a loop.
8996         * exec.h (section_table_available_memory): Remove declaration.
8997         Move comments to ...
8998         * exec.c (section_table_available_memory): ... here.  Make it
8999         static.
9000
9001 2014-02-23  Yao Qi  <yao@codesourcery.com>
9002
9003         * exec.c (section_table_read_available_memory): New function.
9004         * exec.h (section_table_read_available_memory): Declare.
9005         * ctf.c (ctf_xfer_partial): Call
9006         section_table_read_available_memory.
9007         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9008
9009 2014-02-23  Yao Qi  <yao@codesourcery.com>
9010
9011         * ctf.c (ctf_xfer_partial): Move code to ...
9012         * exec.c (exec_read_partial_read_only): ... it.  New function.
9013         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9014         * tracefile.c: Include "exec.h".
9015         * exec.h (exec_read_partial_read_only): Declare.
9016
9017 2014-02-23  Yao Qi  <yao@codesourcery.com>
9018
9019         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9020         (tfile_has_memory): Remove.
9021         (init_tfile_ops): Don't set fields to_has_all_memory and
9022         to_has_memory of tfile_ops.
9023         * tracefile.c (tracefile_has_all_memory): New function.
9024         (tracefile_has_memory): New function.
9025         (init_tracefile_ops): Initialize fields to_has_all_memory and
9026         to_has_memory of 'ops'.
9027
9028 2014-02-23  Yao Qi  <yao@codesourcery.com>
9029
9030         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9031         (ctf_thread_alive, ctf_get_trace_status): Remove.
9032         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9033         init_tracefile_ops.
9034         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9035         (tfile_has_stack, tfile_has_registers): Remove.
9036         (tfile_thread_alive): Remove.
9037         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9038         init_tracefile_ops.
9039         * tracefile.c (tracefile_has_stack): New function.
9040         (tracefile_has_registers): New function.
9041         (tracefile_thread_alive): New function.
9042         (tracefile_get_trace_status): New function.
9043         (init_tracefile_ops): New function.
9044         * tracefile.h (init_tracefile_ops): Declare.
9045
9046 2014-02-23  Yao Qi  <yao@codesourcery.com>
9047
9048         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9049         (O_LARGEFILE): Likewise.
9050         (tfile_ops): Likewise.
9051         (TRACE_HEADER_SIZE): Likewise.
9052         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9053         (cur_data_size): Likewise.
9054         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9055         (tfile_close, tfile_files_info): Likewise.
9056         (tfile_get_trace_status): Likewise.
9057         (tfile_get_tracepoint_status): Likewise.
9058         (tfile_get_traceframe_address): Likewise.
9059         (tfile_trace_find, match_blocktype): Likewise.
9060         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9061         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9062         (tfile_get_trace_state_variable_value): Likewise.
9063         (tfile_has_all_memory, tfile_has_memory): Likewise.
9064         (tfile_has_stack, tfile_has_registers): Likewise.
9065         (tfile_thread_alive, build_traceframe_info): Likewise.
9066         (tfile_traceframe_info, init_tfile_ops): Likewise.
9067         (_initialize_tracepoint): Don't call init_tfile_ops
9068         and add_target_with_completer.
9069         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9070         exec.h, completer.h and filenames.h.
9071         (_initialize_tracefile_tfile): New function.
9072
9073 2014-02-23  Yao Qi  <yao@codesourcery.com>
9074
9075         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9076         tracefile-tfile.o.
9077         (HFILES_NO_SRCDIR): Add tracefile.h.
9078         * ctf.c: Include "tracefile.h".
9079         * tracefile.h: New file.
9080         * tracefile.c: New file
9081         * tracefile-tfile.c: New file.
9082         * tracepoint.c: Include "tracefile.h".
9083         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9084         (stop_reason_names): Add const.
9085         (trace_file_writer_xfree): Move it to tracefile.c.
9086         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9087         (trace_save_ctf): Likewise.
9088         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9089         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9090         (tfile_write_header, tfile_write_regblock_type): Likewise.
9091         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9092         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9093         (tfile_write_raw_data, tfile_end): Likewise.
9094         (tfile_trace_file_writer_new): Likewise.
9095         (free_uploaded_tp): Make it extern.
9096         (free_uploaded_tsv): Make it extern.
9097         (_initialize_tracepoint): Move code to register command 'tsave'
9098         to tracefile.c.
9099         * tracepoint.h (stop_reason_names): Declare.
9100         (struct trace_frame_write_ops): Move it to tracefile.h.
9101         (struct trace_file_write_ops): Likewise.
9102         (struct trace_file_writer): Likewise.
9103         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9104
9105 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9106
9107         PR gdb/16594
9108         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9109         process name.
9110         (get_cores_used_by_process): New parameter num_cores, use it.
9111         (linux_xfer_osdata_processes): Pass num_cores to it.
9112         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9113         process name.
9114
9115 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9116
9117         * target.c (memory_xfer_partial): Fix length arg in call to
9118         breakpoint_xfer_memory.
9119
9120 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9121
9122         PR tdep/16397
9123         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9124         number comes after the + or - signs.  Adjust length of register
9125         name to be extracted.
9126
9127 2014-02-20  Tom Tromey  <tromey@redhat.com>
9128
9129         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9130         (ada_varobj_ops): Mark "extern".
9131
9132 2014-02-20  Tom Tromey  <tromey@redhat.com>
9133
9134         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9135
9136 2014-02-20  Doug Evans  <xdje42@gmail.com>
9137
9138         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9139         All callers updated.
9140         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9141         All callers updated.
9142         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9143         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9144
9145 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9146             Joel Brobecker  <brobecker@adacore.com>
9147             Doug Evans  <xdje42@gmail.com>
9148
9149         PR symtab/16581
9150         * dwarf2read.c (struct die_info): New member in_process.
9151         (reset_die_in_process): New function.
9152         (process_die): Set it at the start, reset when returning.
9153         (inherit_abstract_dies): Only call process_die if origin_child_die
9154         not already being processed.
9155
9156 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9157
9158         * windows-nat.c (handle_unload_dll): Add function documentation.
9159         (do_initial_windows_stuff): Add comment explaining why we wait
9160         until after inferior initialization has finished before
9161         processing all DLLs.
9162
9163 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9164
9165         * windows-nat.c (get_module_name): Delete.
9166         (windows_get_exec_module_filename): New function, mostly
9167         inspired from get_module_name.
9168         (windows_pid_to_exec_file): Replace call to get_module_name
9169         by call to windows_get_exec_module_filename.
9170
9171 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9172
9173         * windows-nat.c (handle_load_dll): Rewrite this function's
9174         introductory comment.  Remove code using get_module_name
9175         to get the DLL's name.
9176
9177 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9178
9179         * windows-nat.c (get_windows_debug_event): Ignore
9180         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9181         if windows_initialization_done == 0.
9182         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9183         Adjust implementation to always load all DLLs.
9184         (do_initial_windows_stuff): Replace call to
9185         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9186
9187 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9188
9189         * windows-nat.c (_initialize_windows_nat): Deprecate the
9190         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9191         and "assf" aliases into commands, and deprecate them as well.
9192         * NEWS: Add entry explaining that "dll-symbols" and its two
9193         aliases are now deprecated.
9194
9195 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9196
9197         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9198         new-line in debug string.  Remove trailing spaces.
9199
9200 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9201
9202         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9203
9204 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9205
9206         * NEWS: Add entry for the new feature
9207         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9208         and class values.
9209
9210 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9211
9212         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9213
9214 2014-02-19  Pedro Alves  <palves@redhat.com>
9215
9216         * common/ptid.h (struct ptid): Mention that process_stratum
9217         targets should prefer ptid.lwp.
9218
9219 2014-02-19  Pedro Alves  <palves@redhat.com>
9220
9221         * remote.c (remote_thread_alive, write_ptid, read_ptid)
9222         (read_ptid, remote_newthread_step, remote_threads_extra_info)
9223         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9224         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9225         store remote thread ids rather than ptid.tid.
9226         (_initialize_remote): Adjust.
9227
9228 2014-02-19  Tom Tromey  <tromey@redhat.com>
9229
9230         * target.c (target_get_unwinder): Rewrite.
9231         (target_get_tailcall_unwinder): Rewrite.
9232         * record-btrace.c (record_btrace_to_get_unwinder): New function.
9233         (record_btrace_to_get_tailcall_unwinder): New function.
9234         (init_record_btrace_ops): Update.
9235         * target.h (struct target_ops) <to_get_unwinder,
9236         to_get_tailcall_unwinder>: Now function pointers.  Use
9237         TARGET_DEFAULT_RETURN.
9238
9239 2014-02-19  Tom Tromey  <tromey@redhat.com>
9240
9241         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9242         argument.
9243         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9244
9245 2014-02-19  Tom Tromey  <tromey@redhat.com>
9246
9247         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9248         directly.
9249         * target-delegates.c: Rebuild.
9250         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9251         TARGET_DEFAULT_FUNC.
9252         * target.c (default_target_decr_pc_after_break): Rename from
9253         forward_target_decr_pc_after_break.  Simplify.
9254         (target_decr_pc_after_break): Rely on delegation.
9255
9256 2014-02-19  Tom Tromey  <tromey@redhat.com>
9257
9258         * target.c (update_current_target): Do not INHERIT to_doc or
9259         to_magic.  Do not de_fault to_open or to_close.
9260
9261 2014-02-19  Tom Tromey  <tromey@redhat.com>
9262
9263         * gcore.h (objfile_find_memory_regions): Declare.
9264         * gcore.c (objfile_find_memory_regions): No longer static.  Add
9265         "self" argument.
9266         (_initialize_gcore): Don't call exec_set_find_memory_regions.
9267         * exec.c: Include gcore.h.
9268         (exec_set_find_memory_regions): Remove.
9269         (exec_find_memory_regions): Remove.
9270         (exec_do_find_memory_regions): Remove.
9271         (init_exec_ops): Update.
9272         * defs.h (exec_set_find_memory_regions): Remove.
9273
9274 2014-02-19  Tom Tromey  <tromey@redhat.com>
9275
9276         * target-delegates.c: Rebuild.
9277         * target.h (struct target_ops) <to_extra_thread_info,
9278         to_thread_name, to_pid_to_exec_file, to_get_section_table,
9279         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9280         not 0, in TARGET_DEFAULT_RETURN.
9281
9282 2014-02-19  Tom Tromey  <tromey@redhat.com>
9283
9284         * target.c (complete_target_initialization): Remove casts.  Use
9285         return_zero_has_execution.
9286         (return_zero): Add "ignore" argument.
9287         (return_zero_has_execution): New function.
9288         (init_dummy_target): Remove casts.  Use
9289         return_zero_has_execution.
9290
9291 2014-02-19  Tom Tromey  <tromey@redhat.com>
9292
9293         * target.c (update_current_target): Update comments.  Do not
9294         INHERIT to_stratum.
9295
9296 2014-02-19  Tom Tromey  <tromey@redhat.com>
9297
9298         * arm-linux-nat.c (arm_linux_read_description): Delegate when
9299         needed.
9300         * corelow.c (core_read_description): Delegate when needed.
9301         * remote.c (remote_read_description): Delegate when needed.
9302         * target-delegates.c: Rebuild.
9303         * target.c (target_read_description): Rewrite.
9304         * target.h (struct target_ops) <to_read_description>: Update
9305         comment.  Use TARGET_DEFAULT_RETURN.
9306
9307 2014-02-19  Tom Tromey  <tromey@redhat.com>
9308
9309         * target-delegates.c: Rebuild.
9310         * target.c (update_current_target): Don't inherit or default
9311         to_can_run.
9312         (find_default_run_target): Check against delegate_can_run.
9313         * target.h (struct target_ops) <to_can_run>: Use
9314         TARGET_DEFAULT_RETURN.
9315
9316 2014-02-19  Tom Tromey  <tromey@redhat.com>
9317
9318         * target-delegates.c: Rebuild.
9319         * target.c (target_disconnect): Unconditionally delegate.
9320         * target.h (struct target_ops) <to_disconnect>: Use
9321         TARGET_DEFAULT_NORETURN.
9322
9323 2014-02-19  Tom Tromey  <tromey@redhat.com>
9324
9325         * record.c (record_stop): Unconditionally delegate.
9326         * target-delegates.c: Rebuild.
9327         * target.c (target_stop_recording): Unconditionally delegate.
9328         * target.h (struct target_ops) <to_stop_recording>: Use
9329         TARGET_DEFAULT_IGNORE.
9330
9331 2014-02-19  Tom Tromey  <tromey@redhat.com>
9332
9333         * target-delegates.c: Rebuild.
9334         * target.c (target_enable_btrace): Unconditionally delegate.
9335         * target.h (struct target_ops) <to_enable_btrace>: Use
9336         TARGET_DEFAULT_NORETURN.
9337
9338 2014-02-19  Tom Tromey  <tromey@redhat.com>
9339
9340         * target-delegates.c: Rebuild.
9341         * target.c (target_read_btrace): Unconditionally delegate.
9342         * target.h (struct target_ops) <to_read_btrace>: Use
9343         TARGET_DEFAULT_NORETURN.
9344
9345 2014-02-19  Tom Tromey  <tromey@redhat.com>
9346
9347         * target-delegates.c: Rebuild.
9348         * target.c (target_teardown_btrace): Unconditionally delegate.
9349         * target.h (struct target_ops) <to_teardown_btrace>: Use
9350         TARGET_DEFAULT_NORETURN.
9351
9352 2014-02-19  Tom Tromey  <tromey@redhat.com>
9353
9354         * target-delegates.c: Rebuild.
9355         * target.c (target_disable_btrace): Unconditionally delegate.
9356         * target.h (struct target_ops) <to_disable_btrace>: Use
9357         TARGET_DEFAULT_NORETURN.
9358
9359 2014-02-19  Tom Tromey  <tromey@redhat.com>
9360
9361         * target-delegates.c: Rebuild.
9362         * target.c (default_search_memory): New function.
9363         (simple_search_memory): Update comment.
9364         (target_search_memory): Unconditionally delegate.
9365         * target.h (struct target_ops) <to_search_memory>: Use
9366         TARGET_DEFAULT_FUNC.
9367
9368 2014-02-19  Tom Tromey  <tromey@redhat.com>
9369
9370         * auxv.c (default_auxv_parse): No longer static.
9371         (target_auxv_parse): Unconditionally delegate.
9372         * auxv.h (default_auxv_parse): Declare.
9373         * target-delegates.c: Rebuild.
9374         * target.c: Include auxv.h.
9375         * target.h (struct target_ops) <to_auxv_parse>: Use
9376         TARGET_DEFAULT_FUNC.
9377
9378 2014-02-19  Tom Tromey  <tromey@redhat.com>
9379
9380         * target-delegates.c: Rebuild.
9381         * target.c (target_memory_map): Unconditionally delegate.
9382         * target.h (struct target_ops) <to_memory_map>: Use
9383         TARGET_DEFAULT_RETURN.
9384
9385 2014-02-19  Tom Tromey  <tromey@redhat.com>
9386
9387         * target-delegates.c: Rebuild.
9388         * target.c (target_thread_alive): Unconditionally delegate.
9389         * target.h (struct target_ops) <to_thread_alive>: Use
9390         TARGET_DEFAULT_RETURN.
9391
9392 2014-02-19  Tom Tromey  <tromey@redhat.com>
9393
9394         * target-delegates.c: Rebuild.
9395         * target.c (target_save_record): Unconditionally delegate.
9396         * target.h (struct target_ops) <to_save_record>: Use
9397         TARGET_DEFAULT_NORETURN.
9398
9399 2014-02-19  Tom Tromey  <tromey@redhat.com>
9400
9401         * target-delegates.c: Rebuild.
9402         * target.c (target_delete_record): Unconditionally delegate.
9403         * target.h (struct target_ops) <to_delete_record>: Use
9404         TARGET_DEFAULT_NORETURN.
9405
9406 2014-02-19  Tom Tromey  <tromey@redhat.com>
9407
9408         * target-delegates.c: Rebuild.
9409         * target.c (target_record_is_replaying): Unconditionally
9410         delegate.
9411         * target.h (struct target_ops) <to_record_is_replaying>: Use
9412         TARGET_DEFAULT_RETURN.
9413
9414 2014-02-19  Tom Tromey  <tromey@redhat.com>
9415
9416         * target-delegates.c: Rebuild.
9417         * target.c (target_goto_record_begin): Unconditionally delegate.
9418         * target.h (struct target_ops) <to_goto_record_begin>: Use
9419         TARGET_DEFAULT_NORETURN.
9420
9421 2014-02-19  Tom Tromey  <tromey@redhat.com>
9422
9423         * target-delegates.c: Rebuild.
9424         * target.c (target_goto_record_end): Unconditionally delegate.
9425         * target.h (struct target_ops) <to_goto_record_end>: Use
9426         TARGET_DEFAULT_NORETURN.
9427
9428 2014-02-19  Tom Tromey  <tromey@redhat.com>
9429
9430         * target-delegates.c: Rebuild.
9431         * target.c (target_goto_record): Unconditionally delegate.
9432         * target.h (struct target_ops) <to_goto_record>: Use
9433         TARGET_DEFAULT_NORETURN.
9434
9435 2014-02-19  Tom Tromey  <tromey@redhat.com>
9436
9437         * target-delegates.c: Rebuild.
9438         * target.c (target_insn_history): Unconditionally delegate.
9439         * target.h (struct target_ops) <to_insn_history>: Use
9440         TARGET_DEFAULT_NORETURN.
9441
9442 2014-02-19  Tom Tromey  <tromey@redhat.com>
9443
9444         * target-delegates.c: Rebuild.
9445         * target.c (target_insn_history_from): Unconditionally delegate.
9446         * target.h (struct target_ops) <to_insn_history_from>: Use
9447         TARGET_DEFAULT_NORETURN.
9448
9449 2014-02-19  Tom Tromey  <tromey@redhat.com>
9450
9451         * target-delegates.c: Rebuild.
9452         * target.c (target_insn_history_range): Unconditionally delegate.
9453         * target.h (struct target_ops) <to_insn_history_range>: Use
9454         TARGET_DEFAULT_NORETURN.
9455
9456 2014-02-19  Tom Tromey  <tromey@redhat.com>
9457
9458         * target-delegates.c: Rebuild.
9459         * target.c (target_call_history): Unconditionally delegate.
9460         * target.h (struct target_ops) <to_call_history>: Use
9461         TARGET_DEFAULT_NORETURN.
9462
9463 2014-02-19  Tom Tromey  <tromey@redhat.com>
9464
9465         * target-delegates.c: Rebuild.
9466         * target.c (target_call_history_from): Unconditionally delegate.
9467         * target.h (struct target_ops) <to_call_history_from>: Use
9468         TARGET_DEFAULT_NORETURN.
9469
9470 2014-02-19  Tom Tromey  <tromey@redhat.com>
9471
9472         * target-delegates.c: Rebuild.
9473         * target.c (target_call_history_range): Unconditionally delegate.
9474         * target.h (struct target_ops) <to_call_history_range>: Use
9475         TARGET_DEFAULT_NORETURN.
9476
9477 2014-02-19  Tom Tromey  <tromey@redhat.com>
9478
9479         * target-delegates.c: Rebuild.
9480         * target.c (target_verify_memory): Unconditionally delegate.
9481         * target.h (struct target_ops) <to_verify_memory>: Use
9482         TARGET_DEFAULT_NORETURN.
9483
9484 2014-02-19  Tom Tromey  <tromey@redhat.com>
9485
9486         * target-delegates.c: Rebuild.
9487         * target.c (target_core_of_thread): Unconditionally delegate.
9488         * target.h (struct target_ops) <to_core_of_thread>: Use
9489         TARGET_DEFAULT_RETURN.
9490
9491 2014-02-19  Tom Tromey  <tromey@redhat.com>
9492
9493         * target-delegates.c: Rebuild.
9494         * target.c (target_flash_done): Unconditionally delegate.
9495         * target.h (struct target_ops) <to_flash_done>: Use
9496         TARGET_DEFAULT_NORETURN.
9497
9498 2014-02-19  Tom Tromey  <tromey@redhat.com>
9499
9500         * target-delegates.c: Rebuild.
9501         * target.c (target_flash_erase): Unconditionally delegate.
9502         * target.h (struct target_ops) <to_flash_erase>: Use
9503         TARGET_DEFAULT_NORETURN.
9504
9505 2014-02-19  Tom Tromey  <tromey@redhat.com>
9506
9507         * target-delegates.c: Rebuild.
9508         * target.c (target_get_section_table): Unconditionally delegate.
9509         * target.h (struct target_ops) <to_get_section_table>: Use
9510         TARGET_DEFAULT_RETURN.
9511
9512 2014-02-19  Tom Tromey  <tromey@redhat.com>
9513
9514         * target-delegates.c: Rebuild.
9515         * target.c (target_pid_to_str): Unconditionally delegate.
9516         (init_dummy_target): Don't initialize to_pid_to_str.
9517         (default_pid_to_str): Rename from dummy_pid_to_str.
9518         * target.h (struct target_ops) <to_pid_to_str>: Use
9519         TARGET_DEFAULT_FUNC.
9520
9521 2014-02-19  Tom Tromey  <tromey@redhat.com>
9522
9523         * target-delegates.c: Rebuild.
9524         * target.c (target_find_new_threads): Unconditionally delegate.
9525         * target.h (struct target_ops) <to_find_new_threads>: Use
9526         TARGET_DEFAULT_RETURN.
9527
9528 2014-02-19  Tom Tromey  <tromey@redhat.com>
9529
9530         * target-delegates.c: Rebuild.
9531         * target.c (target_program_signals): Unconditionally delegate.
9532         * target.h (struct target_ops) <to_program_signals>: Use
9533         TARGET_DEFAULT_IGNORE.
9534
9535 2014-02-19  Tom Tromey  <tromey@redhat.com>
9536
9537         * target-delegates.c: Rebuild.
9538         * target.c (target_pass_signals): Unconditionally delegate.
9539         * target.h (struct target_ops) <to_pass_signals>: Use
9540         TARGET_DEFAULT_IGNORE.
9541
9542 2014-02-19  Tom Tromey  <tromey@redhat.com>
9543
9544         * target-delegates.c: Rebuild.
9545         * target.c (default_mourn_inferior): New function.
9546         (target_mourn_inferior): Unconditionally delegate.
9547         * target.h (struct target_ops) <to_mourn_inferior>: Use
9548         TARGET_DEFAULT_FUNC.
9549
9550 2014-02-19  Tom Tromey  <tromey@redhat.com>
9551
9552         * target-delegates.c: Rebuild.
9553         * target.c (default_follow_fork): New function.
9554         (target_follow_fork): Unconditionally delegate.
9555         * target.h (struct target_ops) <to_follow_fork>: Use
9556         TARGET_DEFAULT_FUNC.
9557
9558 2014-02-19  Tom Tromey  <tromey@redhat.com>
9559
9560         * target-delegates.c: Rebuild.
9561         * target.c (target_kill): Unconditionally delegate.
9562         * target.h (struct target_ops) <to_kill>: Use
9563         TARGET_DEFAULT_NORETURN.
9564
9565 2014-02-19  Tom Tromey  <tromey@redhat.com>
9566
9567         * target-delegates.c: Rebuild.
9568         * target.c (target_masked_watch_num_registers): Unconditionally
9569         delegate.
9570         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9571         Use TARGET_DEFAULT_RETURN.
9572
9573 2014-02-19  Tom Tromey  <tromey@redhat.com>
9574
9575         * target-delegates.c: Rebuild.
9576         * target.c (target_remove_mask_watchpoint): Unconditionally
9577         delegate.
9578         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9579         TARGET_DEFAULT_RETURN.
9580
9581 2014-02-19  Tom Tromey  <tromey@redhat.com>
9582
9583         * target-delegates.c: Rebuild.
9584         * target.c (target_insert_mask_watchpoint): Unconditionally
9585         delegate.
9586         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9587         TARGET_DEFAULT_RETURN.
9588
9589 2014-02-19  Tom Tromey  <tromey@redhat.com>
9590
9591         * target-delegates.c: Rebuild.
9592         * target.c (target_ranged_break_num_registers): Unconditionally
9593         delegate.
9594         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9595         Use TARGET_DEFAULT_RETURN.
9596
9597 2014-02-19  Tom Tromey  <tromey@redhat.com>
9598
9599         * target-delegates.c: Rebuild.
9600         * target.c (target_fetch_registers): Unconditionally delegate.
9601         * target.h (struct target_ops) <to_fetch_registers>: Use
9602         TARGET_DEFAULT_NORETURN.
9603
9604 2014-02-19  Tom Tromey  <tromey@redhat.com>
9605
9606         * target-delegates.c: Rebuild.
9607         * target.c (update_current_target): Don't inherit or default
9608         to_stop.
9609         * target.h (struct target_ops) <to_stop>: Use
9610         TARGET_DEFAULT_IGNORE.
9611
9612 2014-02-19  Tom Tromey  <tromey@redhat.com>
9613
9614         * target-delegates.c: Rebuild.
9615         * target.c (update_current_target): Don't inherit or default
9616         to_can_run_breakpoint_commands.
9617         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9618         Use TARGET_DEFAULT_RETURN.
9619
9620 2014-02-19  Tom Tromey  <tromey@redhat.com>
9621
9622         * target-delegates.c: Rebuild.
9623         * target.c (update_current_target): Don't inherit or default
9624         to_supports_evaluation_of_breakpoint_conditions.
9625         * target.h (struct target_ops)
9626         <to_supports_evaluation_of_breakpoint_conditions>: 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_augmented_libraries_svr4_read.
9634         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9635         Use TARGET_DEFAULT_RETURN.
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_can_use_agent.
9642         * target.h (struct target_ops) <to_can_use_agent>: Use
9643         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_use_agent.
9650         * target.h (struct target_ops) <to_use_agent>: Use
9651         TARGET_DEFAULT_NORETURN.
9652
9653 2014-02-19  Tom Tromey  <tromey@redhat.com>
9654
9655         * target-delegates.c: Rebuild.
9656         * target.c (update_current_target): Don't inherit or default
9657         to_traceframe_info.
9658         (return_null): Remove.
9659         * target.h (struct target_ops) <to_traceframe_info>: Use
9660         TARGET_DEFAULT_RETURN.
9661
9662 2014-02-19  Tom Tromey  <tromey@redhat.com>
9663
9664         * target-delegates.c: Rebuild.
9665         * target.c (update_current_target): Don't inherit or default
9666         to_static_tracepoint_markers_by_strid.
9667         * target.h (struct target_ops)
9668         <to_static_tracepoint_markers_by_strid>: Use
9669         TARGET_DEFAULT_NORETURN.
9670
9671 2014-02-19  Tom Tromey  <tromey@redhat.com>
9672
9673         * target-delegates.c: Rebuild.
9674         * target.c (update_current_target): Don't inherit or default
9675         to_static_tracepoint_marker_at.
9676         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9677         Use TARGET_DEFAULT_RETURN.
9678
9679 2014-02-19  Tom Tromey  <tromey@redhat.com>
9680
9681         * target-delegates.c: Rebuild.
9682         * target.c (update_current_target): Don't inherit or default
9683         to_set_permissions.
9684         * target.h (struct target_ops) <to_set_permissions>: Use
9685         TARGET_DEFAULT_IGNORE.
9686
9687 2014-02-19  Tom Tromey  <tromey@redhat.com>
9688
9689         * target-delegates.c: Rebuild.
9690         * target.c (update_current_target): Don't inherit or default
9691         to_get_tib_address.
9692         * target.h (struct target_ops) <to_get_tib_address>: Use
9693         TARGET_DEFAULT_NORETURN.
9694
9695 2014-02-19  Tom Tromey  <tromey@redhat.com>
9696
9697         * target-delegates.c: Rebuild.
9698         * target.c (update_current_target): Don't inherit or default
9699         to_set_trace_notes.
9700         * target.h (struct target_ops) <to_set_trace_notes>: Use
9701         TARGET_DEFAULT_RETURN.
9702
9703 2014-02-19  Tom Tromey  <tromey@redhat.com>
9704
9705         * target-delegates.c: Rebuild.
9706         * target.c (update_current_target): Don't initialize
9707         to_set_trace_buffer_size.
9708         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9709         TARGET_DEFAULT_IGNORE.
9710
9711 2014-02-19  Tom Tromey  <tromey@redhat.com>
9712
9713         * target-delegates.c: Rebuild.
9714         * target.c (update_current_target): Don't inherit or default
9715         to_set_circular_trace_buffer.
9716         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9717         TARGET_DEFAULT_IGNORE.
9718
9719 2014-02-19  Tom Tromey  <tromey@redhat.com>
9720
9721         * target-delegates.c: Rebuild.
9722         * target.c (update_current_target): Don't inherit or default
9723         to_set_disconnected_tracing.
9724         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9725         TARGET_DEFAULT_IGNORE.
9726
9727 2014-02-19  Tom Tromey  <tromey@redhat.com>
9728
9729         * target-delegates.c: Rebuild.
9730         * target.c (update_current_target): Don't inherit or default
9731         to_get_min_fast_tracepoint_insn_len.
9732         (return_minus_one): Remove.
9733         * target.h (struct target_ops)
9734         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9735
9736 2014-02-19  Tom Tromey  <tromey@redhat.com>
9737
9738         * target-delegates.c: Rebuild.
9739         * target.c (update_current_target): Don't inherit or default
9740         to_get_raw_trace_data.
9741         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9742         TARGET_DEFAULT_NORETURN.
9743
9744 2014-02-19  Tom Tromey  <tromey@redhat.com>
9745
9746         * target-delegates.c: Rebuild.
9747         * target.c (update_current_target): Don't inherit or default
9748         to_upload_trace_state_variables.
9749         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9750         Use TARGET_DEFAULT_RETURN.
9751
9752 2014-02-19  Tom Tromey  <tromey@redhat.com>
9753
9754         * target-delegates.c: Rebuild.
9755         * target.c (update_current_target): Don't inherit or default
9756         to_upload_tracepoints.
9757         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9758         TARGET_DEFAULT_RETURN.
9759
9760 2014-02-19  Tom Tromey  <tromey@redhat.com>
9761
9762         * target-delegates.c: Rebuild.
9763         * target.c (update_current_target): Don't inherit or default
9764         to_save_trace_data.
9765         * target.h (struct target_ops) <to_save_trace_data>: Use
9766         TARGET_DEFAULT_NORETURN.
9767
9768 2014-02-19  Tom Tromey  <tromey@redhat.com>
9769
9770         * target-delegates.c: Rebuild.
9771         * target.c (update_current_target): Don't inherit or default
9772         to_get_trace_state_variable_value.
9773         * target.h (struct target_ops)
9774         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9775
9776 2014-02-19  Tom Tromey  <tromey@redhat.com>
9777
9778         * target-delegates.c: Rebuild.
9779         * target.c (update_current_target): Don't inherit or default
9780         to_trace_find.
9781         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9782
9783 2014-02-19  Tom Tromey  <tromey@redhat.com>
9784
9785         * target-delegates.c: Rebuild.
9786         * target.c (update_current_target): Don't inherit or default
9787         to_trace_stop.
9788         * target.h (struct target_ops) <to_trace_stop>: Use
9789         TARGET_DEFAULT_NORETURN.
9790
9791 2014-02-19  Tom Tromey  <tromey@redhat.com>
9792
9793         * target-delegates.c: Rebuild.
9794         * target.c (update_current_target): Don't inherit or default
9795         to_get_tracepoint_status.
9796         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9797         TARGET_DEFAULT_NORETURN.
9798
9799 2014-02-19  Tom Tromey  <tromey@redhat.com>
9800
9801         * target-delegates.c: Rebuild.
9802         * target.c (update_current_target): Don't inherit or default
9803         to_get_trace_status.
9804         * target.h (struct target_ops) <to_get_trace_status>: Use
9805         TARGET_DEFAULT_RETURN.
9806
9807 2014-02-19  Tom Tromey  <tromey@redhat.com>
9808
9809         * target-delegates.c: Rebuild.
9810         * target.c (update_current_target): Don't inherit or default
9811         to_trace_start.
9812         * target.h (struct target_ops) <to_trace_start>: Use
9813         TARGET_DEFAULT_NORETURN.
9814
9815 2014-02-19  Tom Tromey  <tromey@redhat.com>
9816
9817         * target-delegates.c: Rebuild.
9818         * target.c (update_current_target): Don't inherit or default
9819         to_trace_set_readonly_regions.
9820         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9821         Use TARGET_DEFAULT_NORETURN.
9822
9823 2014-02-19  Tom Tromey  <tromey@redhat.com>
9824
9825         * target-delegates.c: Rebuild.
9826         * target.c (update_current_target): Don't inherit or default
9827         to_disable_tracepoint.
9828         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9829         TARGET_DEFAULT_NORETURN.
9830
9831 2014-02-19  Tom Tromey  <tromey@redhat.com>
9832
9833         * target-delegates.c: Rebuild.
9834         * target.c (update_current_target): Don't inherit or default
9835         to_enable_tracepoint.
9836         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9837         TARGET_DEFAULT_NORETURN.
9838
9839 2014-02-19  Tom Tromey  <tromey@redhat.com>
9840
9841         * target-delegates.c: Rebuild.
9842         * target.c (update_current_target): Don't inherit or default
9843         to_download_trace_state_variable.
9844         * target.h (struct target_ops) <to_download_trace_state_variable>:
9845         Use TARGET_DEFAULT_NORETURN.
9846
9847 2014-02-19  Tom Tromey  <tromey@redhat.com>
9848
9849         * target-delegates.c: Rebuild.
9850         * target.c (update_current_target): Don't inherit or default
9851         to_can_download_tracepoint.
9852         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9853         TARGET_DEFAULT_RETURN.
9854
9855 2014-02-19  Tom Tromey  <tromey@redhat.com>
9856
9857         * target-delegates.c: Rebuild.
9858         * target.c (update_current_target): Don't inherit or default
9859         to_download_tracepoint.
9860         * target.h (struct target_ops) <to_download_tracepoint>: Use
9861         TARGET_DEFAULT_NORETURN.
9862
9863 2014-02-19  Tom Tromey  <tromey@redhat.com>
9864
9865         * target-delegates.c: Rebuild.
9866         * target.c (update_current_target): Don't inherit or default
9867         to_trace_init.
9868         * target.h (struct target_ops) <to_trace_init>: Use
9869         TARGET_DEFAULT_RETURN.
9870
9871 2014-02-19  Tom Tromey  <tromey@redhat.com>
9872
9873         * target-delegates.c: Rebuild.
9874         * target.c (update_current_target): Don't inherit or default
9875         to_supports_string_tracing.
9876         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9877         TARGET_DEFAULT_RETURN.
9878
9879 2014-02-19  Tom Tromey  <tromey@redhat.com>
9880
9881         * target-delegates.c: Rebuild.
9882         * target.c (update_current_target): Don't inherit or default
9883         to_supports_enable_disable_tracepoint.
9884         * target.h (struct target_ops)
9885         <to_supports_enable_disable_tracepoint>: Use
9886         TARGET_DEFAULT_RETURN.
9887
9888 2014-02-19  Tom Tromey  <tromey@redhat.com>
9889
9890         * target-delegates.c: Rebuild.
9891         * target.c (update_current_target): Don't inherit or default
9892         to_supports_multi_process.
9893         * target.h (struct target_ops) <to_supports_multi_process>: Use
9894         TARGET_DEFAULT_RETURN.
9895
9896 2014-02-19  Tom Tromey  <tromey@redhat.com>
9897
9898         * target-delegates.c: Rebuild.
9899         * target.c (update_current_target): Don't inherit or default
9900         to_get_ada_task_ptid.
9901         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9902         TARGET_DEFAULT_FUNC.
9903
9904 2014-02-19  Tom Tromey  <tromey@redhat.com>
9905
9906         * target-delegates.c: Rebuild.
9907         * target.c (update_current_target): Don't inherit or default
9908         to_thread_architecture.
9909         * target.h (struct target_ops) <to_thread_architecture>: Use
9910         TARGET_DEFAULT_FUNC.
9911
9912 2014-02-19  Tom Tromey  <tromey@redhat.com>
9913
9914         * target-delegates.c: Rebuild.
9915         * target.c (update_current_target): Don't inherit or default
9916         to_execution_direction.
9917         * target.h (struct target_ops) <to_execution_direction>: Use
9918         TARGET_DEFAULT_FUNC.
9919
9920 2014-02-19  Tom Tromey  <tromey@redhat.com>
9921
9922         * target-delegates.c: Rebuild.
9923         * target.c (update_current_target): Don't inherit or default
9924         to_can_execute_reverse.
9925         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9926         TARGET_DEFAULT_RETURN.
9927         (target_can_execute_reverse): Unconditionally delegate.
9928
9929 2014-02-19  Tom Tromey  <tromey@redhat.com>
9930
9931         * target-delegates.c: Rebuild.
9932         * target.c (update_current_target): Don't inherit or default
9933         to_goto_bookmark.
9934         (dummy_goto_bookmark): Remove.
9935         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9936         * target.h (struct target_ops) <to_goto_bookmark>: Use
9937         TARGET_DEFAULT_NORETURN.
9938
9939 2014-02-19  Tom Tromey  <tromey@redhat.com>
9940
9941         * target-delegates.c: Rebuild.
9942         * target.c (update_current_target): Don't inherit or default
9943         to_get_bookmark.
9944         (dummy_get_bookmark): Remove.
9945         (init_dummy_target): Don't inherit or default to_get_bookmark.
9946         * target.h (struct target_ops) <to_get_bookmark>: Use
9947         TARGET_DEFAULT_NORETURN
9948
9949 2014-02-19  Tom Tromey  <tromey@redhat.com>
9950
9951         * target-delegates.c: Rebuild.
9952         * target.c (update_current_target): Don't inherit or default
9953         to_make_corefile_notes.
9954         (init_dummy_target): Don't initialize to_make_corefile_notes.
9955         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9956         TARGET_DEFAULT_FUNC.
9957
9958 2014-02-19  Tom Tromey  <tromey@redhat.com>
9959
9960         * target-delegates.c: Rebuild.
9961         * target.c (update_current_target): Don't inherit or default
9962         to_find_memory_regions.
9963         (init_dummy_target): Don't initialize to_find_memory_regions.
9964         * target.h (struct target_ops) <to_find_memory_regions>: Use
9965         TARGET_DEFAULT_FUNC.
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_log_command.
9972         * target.h (struct target_ops) <to_log_command>: Use
9973         TARGET_DEFAULT_IGNORE.
9974         (target_log_command): Unconditionally delegate.
9975
9976 2014-02-19  Tom Tromey  <tromey@redhat.com>
9977
9978         * target-delegates.c: Rebuild.
9979         * target.c (update_current_target): Don't inherit or default
9980         to_pid_to_exec_file.
9981         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9982         TARGET_DEFAULT_RETURN.
9983
9984 2014-02-19  Tom Tromey  <tromey@redhat.com>
9985
9986         * target-delegates.c: Rebuild.
9987         * target.c (update_current_target): Don't inherit or default
9988         to_thread_name.
9989         (target_thread_name): Unconditionally delegate.
9990         * target.h (struct target_ops) <to_thread_name>: Use
9991         TARGET_DEFAULT_RETURN.
9992
9993 2014-02-19  Tom Tromey  <tromey@redhat.com>
9994
9995         * target-delegates.c: Rebuild.
9996         * target.c (update_current_target): Don't inherit or default
9997         to_extra_thread_info.
9998         * target.h (struct target_ops) <to_extra_thread_info>: Use
9999         TARGET_DEFAULT_RETURN.
10000
10001 2014-02-19  Tom Tromey  <tromey@redhat.com>
10002
10003         * target-delegates.c: Rebuild.
10004         * target.c (update_current_target): Don't inherit or default
10005         to_has_exited.
10006         * target.h (struct target_ops) <to_has_exited>: Use
10007         TARGET_DEFAULT_RETURN..
10008
10009 2014-02-19  Tom Tromey  <tromey@redhat.com>
10010
10011         * target-delegates.c: Rebuild.
10012         * target.c (update_current_target): Don't inherit or default
10013         to_set_syscall_catchpoint.
10014         (return_one): Remove.
10015         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10016         TARGET_DEFAULT_RETURN.
10017
10018 2014-02-19  Tom Tromey  <tromey@redhat.com>
10019
10020         * target-delegates.c: Rebuild.
10021         * target.c (update_current_target): Don't inherit or default
10022         to_insert_exec_catchpoint.
10023         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10024         TARGET_DEFAULT_RETURN.
10025
10026 2014-01-08  Tom Tromey  <tromey@redhat.com>
10027
10028         * target-delegates.c: Rebuild.
10029         * target.c (update_current_target): Don't inherit or default
10030         to_insert_exec_catchpoint.
10031         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10032         TARGET_DEFAULT_RETURN.
10033
10034 2014-02-19  Tom Tromey  <tromey@redhat.com>
10035
10036         * target-delegates.c: Rebuild.
10037         * target.c (update_current_target): Don't inherit or default
10038         to_remove_vfork_catchpoint.
10039         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10040         TARGET_DEFAULT_RETURN.
10041
10042 2014-02-19  Tom Tromey  <tromey@redhat.com>
10043
10044         * target-delegates.c: Rebuild.
10045         * target.c (update_current_target): Don't inherit or default
10046         to_insert_vfork_catchpoint.
10047         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10048         TARGET_DEFAULT_RETURN.
10049
10050 2014-02-19  Tom Tromey  <tromey@redhat.com>
10051
10052         * target-delegates.c: Rebuild.
10053         * target.c (update_current_target): Don't inherit or default
10054         to_remove_fork_catchpoint.
10055         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10056         TARGET_DEFAULT_RETURN.
10057
10058 2014-02-19  Tom Tromey  <tromey@redhat.com>
10059
10060         * target-delegates.c: Rebuild.
10061         * target.c (update_current_target): Don't inherit or default
10062         to_insert_fork_catchpoint.
10063         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10064         TARGET_DEFAULT_RETURN.
10065
10066 2014-02-19  Tom Tromey  <tromey@redhat.com>
10067
10068         * target-delegates.c: Rebuild.
10069         * target.c (update_current_target): Don't inherit or default
10070         to_post_startup_inferior.
10071         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10072         TARGET_DEFAULT_IGNORE.
10073
10074 2014-02-19  Tom Tromey  <tromey@redhat.com>
10075
10076         * target-delegates.c: Rebuild.
10077         * target.c (update_current_target): Don't inherit or default
10078         to_load.
10079         * target.h (struct target_ops) <to_load>: Use
10080         TARGET_DEFAULT_NORETURN.
10081
10082 2014-02-19  Tom Tromey  <tromey@redhat.com>
10083
10084         * target-delegates.c: Rebuild.
10085         * target.c (update_current_target): Don't inherit or default
10086         to_terminal_info.
10087         * target.h (struct target_ops) <to_terminal_info>: Use
10088         TARGET_DEFAULT_FUNC.
10089
10090 2014-02-19  Tom Tromey  <tromey@redhat.com>
10091
10092         * target-delegates.c: Rebuild.
10093         * target.c (update_current_target): Don't inherit or default
10094         to_terminal_save_ours.
10095         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10096         TARGET_DEFAULT_IGNORE.
10097
10098 2014-02-19  Tom Tromey  <tromey@redhat.com>
10099
10100         * target-delegates.c: Rebuild.
10101         * target.c (update_current_target): Don't inherit or default
10102         to_terminal_ours.
10103         * target.h (struct target_ops) <to_terminal_ours>: Use
10104         TARGET_DEFAULT_IGNORE.
10105
10106 2014-02-19  Tom Tromey  <tromey@redhat.com>
10107
10108         * target-delegates.c: Rebuild.
10109         * target.c (update_current_target): Don't inherit or default
10110         to_terminal_ours_for_output.
10111         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10112         TARGET_DEFAULT_IGNORE.
10113
10114 2014-02-19  Tom Tromey  <tromey@redhat.com>
10115
10116         * target-delegates.c: Rebuild.
10117         * target.c (update_current_target): Don't inherit or default
10118         to_terminal_inferior.
10119         * target.h (struct target_ops) <to_terminal_inferior>: Use
10120         TARGET_DEFAULT_IGNORE.
10121
10122 2014-02-19  Tom Tromey  <tromey@redhat.com>
10123
10124         * target-delegates.c: Rebuild.
10125         * target.c (update_current_target): Don't inherit or default
10126         to_terminal_init.
10127         * target.h (struct target_ops) <to_terminal_init>: Use
10128         TARGET_DEFAULT_IGNORE.
10129
10130 2014-02-19  Tom Tromey  <tromey@redhat.com>
10131
10132         * target-delegates.c: Rebuild.
10133         * target.c (update_current_target): Don't inherit or default
10134         to_can_accel_watchpoint_condition.
10135         * target.h (struct target_ops)
10136         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10137
10138 2014-02-19  Tom Tromey  <tromey@redhat.com>
10139
10140         * target-delegates.c: Rebuild.
10141         * target.c (update_current_target): Don't inherit or default
10142         to_region_ok_for_hw_watchpoint.
10143         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10144         Use TARGET_DEFAULT_FUNC.
10145
10146 2014-02-19  Tom Tromey  <tromey@redhat.com>
10147
10148         * target-delegates.c: Rebuild.
10149         * target.c (update_current_target): Don't inherit or default
10150         to_watchpoint_addr_within_range.
10151         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10152         Use TARGET_DEFAULT_FUNC.
10153
10154 2014-02-19  Tom Tromey  <tromey@redhat.com>
10155
10156         * target-delegates.c: Rebuild.
10157         * target.c (update_current_target): Don't inherit or default
10158         to_remove_watchpoint.
10159         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10160         TARGET_DEFAULT_NORETURN.
10161
10162 2014-02-19  Tom Tromey  <tromey@redhat.com>
10163
10164         * target-delegates.c: Rebuild.
10165         * target.c (update_current_target): Don't inherit or default
10166         to_insert_watchpoint.
10167         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10168         TARGET_DEFAULT_RETURN.
10169
10170 2014-02-19  Tom Tromey  <tromey@redhat.com>
10171
10172         * target-delegates.c: Rebuild.
10173         * target.c (update_current_target): Don't inherit or default
10174         to_remove_hw_breakpoint.
10175         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10176         TARGET_DEFAULT_RETURN.
10177
10178 2014-02-19  Tom Tromey  <tromey@redhat.com>
10179
10180         * target-delegates.c: Rebuild.
10181         * target.c (update_current_target): Don't inherit or default
10182         to_insert_hw_breakpoint.
10183         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10184         TARGET_DEFAULT_RETURN.
10185
10186 2014-02-19  Tom Tromey  <tromey@redhat.com>
10187
10188         * target-delegates.c: Rebuild.
10189         * target.c (update_current_target): Don't inherit or default
10190         to_can_use_hw_breakpoint.
10191         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10192         TARGET_DEFAULT_RETURN.
10193
10194 2014-02-19  Tom Tromey  <tromey@redhat.com>
10195
10196         * target-delegates.c: Rebuild.
10197         * target.c (update_current_target): Don't inherit or default
10198         to_files_info.
10199         * target.h (struct target_ops) <to_files_info>: Use
10200         TARGET_DEFAULT_IGNORE.
10201
10202 2014-02-19  Tom Tromey  <tromey@redhat.com>
10203
10204         * target-delegates.c: Rebuild.
10205         * target.c (update_current_target): Don't inherit or default
10206         to_store.
10207         * target.h (struct target_ops) <to_store>: Use
10208         TARGET_DEFAULT_NORETURN.
10209
10210 2014-02-19  Tom Tromey  <tromey@redhat.com>
10211
10212         * target-delegates.c: Rebuild.
10213         * target.c (update_current_target): Don't inherit or default
10214         to_post_attach.
10215         * target.h (struct target_ops) <to_post_attach>: Use
10216         TARGET_DEFAULT_IGNORE.
10217
10218 2014-02-19  Tom Tromey  <tromey@redhat.com>
10219
10220         * target-delegates.c: Rebuild.
10221         * target.c (update_current_target): Don't inherit or default
10222         to_rcmd.
10223         (default_rcmd): New function.
10224         (do_monitor_command): Unconditionally delegate.
10225         * target.h (struct target_ops) <to_rmcd>: Use
10226         TARGET_DEFAULT_FUNC.
10227
10228 2014-02-19  Tom Tromey  <tromey@redhat.com>
10229
10230         * target-delegates.c: Rebuild.
10231         * target.c (init_dummy_target): Don't initialize to_attach.
10232         (target_attach): Unconditionally delegate.
10233         * target.h (struct target_ops) <to_attach>: Use
10234         TARGET_DEFAULT_FUNC.
10235
10236 2014-02-19  Tom Tromey  <tromey@redhat.com>
10237
10238         * target-delegates.c: Rebuild.
10239         * target.c (target_detach): Unconditionally delegate.
10240         (init_dummy_target): Don't initialize to_detach.
10241         * target.h (struct target_ops) <to_detach>: Use
10242         TARGET_DEFAULT_IGNORE.
10243
10244 2014-02-19  Tom Tromey  <tromey@redhat.com>
10245
10246         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10247         Add argument.
10248         (target_augmented_libraries_svr4_read): Add argument.
10249         * target.c (update_current_target): Update.
10250         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10251         argument.
10252
10253 2014-02-19  Tom Tromey  <tromey@redhat.com>
10254
10255         * target.h (struct target_ops) <to_call_history_range>: Add
10256         argument.
10257         * target.c (target_call_history_range): Add argument.
10258         * record-btrace.c (record_btrace_call_history_range): Add 'self'
10259         argument.
10260         (record_btrace_call_history_from): Update.
10261
10262 2014-02-19  Tom Tromey  <tromey@redhat.com>
10263
10264         * target.h (struct target_ops) <to_call_history_from>: Add
10265         argument.
10266         * target.c (target_call_history_from): Add argument.
10267         * record-btrace.c (record_btrace_call_history_from): Add 'self'
10268         argument.
10269
10270 2014-02-19  Tom Tromey  <tromey@redhat.com>
10271
10272         * target.h (struct target_ops) <to_call_history>: Add argument.
10273         * target.c (target_call_history): Add argument.
10274         * record-btrace.c (record_btrace_call_history): Add 'self'
10275         argument.
10276
10277 2014-02-19  Tom Tromey  <tromey@redhat.com>
10278
10279         * target.h (struct target_ops) <to_insn_history_range>: Add
10280         argument.
10281         * target.c (target_insn_history_range): Add argument.
10282         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10283         argument.
10284         (record_btrace_insn_history_from): Update.
10285
10286 2014-02-19  Tom Tromey  <tromey@redhat.com>
10287
10288         * target.h (struct target_ops) <to_insn_history_from>: Add
10289         argument.
10290         * target.c (target_insn_history_from): Add argument.
10291         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10292         argument.
10293
10294 2014-02-19  Tom Tromey  <tromey@redhat.com>
10295
10296         * target.h (struct target_ops) <to_insn_history>: Add argument.
10297         * target.c (target_insn_history): Add argument.
10298         * record-btrace.c (record_btrace_insn_history): Add 'self'
10299         argument.
10300
10301 2014-02-19  Tom Tromey  <tromey@redhat.com>
10302
10303         * target.h (struct target_ops) <to_goto_record>: Add argument.
10304         * target.c (target_goto_record): Add argument.
10305         * record-full.c (record_full_goto): Add 'self' argument.
10306         * record-btrace.c (record_btrace_goto): Add 'self' argument.
10307
10308 2014-02-19  Tom Tromey  <tromey@redhat.com>
10309
10310         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10311         * target.c (target_goto_record_end): Add argument.
10312         * record-full.c (record_full_goto_end): Add 'self' argument.
10313         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10314
10315 2014-02-19  Tom Tromey  <tromey@redhat.com>
10316
10317         * target.h (struct target_ops) <to_goto_record_begin>: Add
10318         argument.
10319         * target.c (target_goto_record_begin): Add argument.
10320         * record-full.c (record_full_goto_begin): Add 'self' argument.
10321         * record-btrace.c (record_btrace_goto_begin): Add 'self'
10322         argument.
10323
10324 2014-02-19  Tom Tromey  <tromey@redhat.com>
10325
10326         * target.h (struct target_ops) <to_record_is_replaying>: Add
10327         argument.
10328         * target.c (target_record_is_replaying): Add argument.
10329         * record-full.c (record_full_is_replaying): Add 'self' argument.
10330         * record-btrace.c (record_btrace_is_replaying): Add 'self'
10331         argument.
10332         (record_btrace_xfer_partial, record_btrace_store_registers)
10333         (record_btrace_prepare_to_store, record_btrace_resume)
10334         (record_btrace_wait, record_btrace_decr_pc_after_break)
10335         (record_btrace_find_new_threads, record_btrace_thread_alive):
10336         Update.
10337
10338 2014-02-19  Tom Tromey  <tromey@redhat.com>
10339
10340         * target.h (struct target_ops) <to_delete_record>: Add argument.
10341         * target.c (target_delete_record): Add argument.
10342         * record-full.c (record_full_delete): Add 'self' argument.
10343
10344 2014-02-19  Tom Tromey  <tromey@redhat.com>
10345
10346         * target.h (struct target_ops) <to_save_record>: Add argument.
10347         * target.c (target_save_record): Add argument.
10348         * record-full.c (record_full_save): Add 'self' argument.
10349         (record_full_save): Add 'self' argument.
10350
10351 2014-02-19  Tom Tromey  <tromey@redhat.com>
10352
10353         * target.h (struct target_ops) <to_info_record>: Add argument.
10354         * target.c (target_info_record): Add argument.
10355         * record.c (info_record_command): Add argument.
10356         * record-full.c (record_full_info): Add 'self' argument.
10357         * record-btrace.c (record_btrace_info): Add 'self' argument.
10358
10359 2014-02-19  Tom Tromey  <tromey@redhat.com>
10360
10361         * target.h (struct target_ops) <to_stop_recording>: Add argument.
10362         * target.c (target_stop_recording): Add argument.
10363         * record.c (record_stop): Add argument.
10364         * record-btrace.c (record_btrace_stop_recording): Add 'self'
10365         argument.
10366
10367 2014-02-19  Tom Tromey  <tromey@redhat.com>
10368
10369         * target.h (struct target_ops) <to_read_btrace>: Add argument.
10370         * target.c (struct target_ops) <to_read_btrace>: Add argument.
10371         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10372         argument.
10373         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10374         (_initialize_amd64_linux_nat): Use it.
10375         * i386-linux-nat.c (i386_linux_read_btrace): New function.
10376         (_initialize_i386_linux_nat): Use it.
10377
10378 2014-02-19  Tom Tromey  <tromey@redhat.com>
10379
10380         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10381         * target.c (target_teardown_btrace): Add argument.
10382         * remote.c (remote_teardown_btrace): Add 'self' argument.
10383         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10384         argument.
10385         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10386         argument.
10387
10388 2014-02-19  Tom Tromey  <tromey@redhat.com>
10389
10390         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10391         * target.c (target_disable_btrace): Add argument.
10392         * remote.c (remote_disable_btrace): Add 'self' argument.
10393         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10394         argument.
10395         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10396         argument.
10397
10398 2014-02-19  Tom Tromey  <tromey@redhat.com>
10399
10400         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10401         * target.c (target_enable_btrace): Add argument.
10402         * remote.c (remote_enable_btrace): Add 'self' argument.
10403         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10404         argument.
10405         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10406         argument.
10407
10408 2014-02-19  Tom Tromey  <tromey@redhat.com>
10409
10410         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10411         (target_can_use_agent): Add argument.
10412         * target.c (update_current_target): Update.
10413         * remote.c (remote_can_use_agent): Add 'self' argument.
10414         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10415
10416 2014-02-19  Tom Tromey  <tromey@redhat.com>
10417
10418         * target.h (struct target_ops) <to_use_agent>: Add argument.
10419         (target_use_agent): Add argument.
10420         * target.c (update_current_target): Update.
10421         * remote.c (remote_use_agent): Add 'self' argument.
10422         * inf-child.c (inf_child_use_agent): Add 'self' argument.
10423
10424 2014-02-19  Tom Tromey  <tromey@redhat.com>
10425
10426         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10427         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10428         (target_traceframe_info): Add argument.
10429         * target.c (update_current_target): Update.
10430         * remote.c (remote_traceframe_info): Add 'self' argument.
10431         * ctf.c (ctf_traceframe_info): Add 'self' argument.
10432
10433 2014-02-19  Tom Tromey  <tromey@redhat.com>
10434
10435         * target.h (target_static_tracepoint_markers_by_strid): Add
10436         argument.
10437         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10438         'self' argument.
10439         * target.c (update_current_target): Update.
10440         * remote.c (struct target_ops)
10441         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10442         * linux-nat.c (struct target_ops)
10443         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10444
10445 2014-02-19  Tom Tromey  <tromey@redhat.com>
10446
10447         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10448         Add argument.
10449         (target_static_tracepoint_marker_at): Add argument.
10450         * target.c (update_current_target): Update.
10451         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10452         argument.
10453
10454 2014-02-19  Tom Tromey  <tromey@redhat.com>
10455
10456         * target.h (struct target_ops) <to_set_permissions>: Add argument.
10457         (target_set_permissions): Add argument.
10458         * target.c (update_current_target): Update.
10459         * remote.c (remote_set_permissions): Add 'self' argument.
10460         (remote_start_remote): Update.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10465         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10466         (target_get_tib_address): Add argument.
10467         * target.c (update_current_target): Update.
10468         * remote.c (remote_get_tib_address): Add 'self' argument.
10469
10470 2014-02-19  Tom Tromey  <tromey@redhat.com>
10471
10472         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10473         (target_set_trace_notes): Add argument.
10474         * target.c (update_current_target): Update.
10475         * remote.c (remote_set_trace_notes): Add 'self' argument.
10476
10477 2014-02-19  Tom Tromey  <tromey@redhat.com>
10478
10479         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10480         argument.
10481         (target_set_trace_buffer_size): Add argument.
10482         * target.c (update_current_target): Update.
10483         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10484
10485 2014-02-19  Tom Tromey  <tromey@redhat.com>
10486
10487         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10488         argument.
10489         (target_set_circular_trace_buffer): Add argument.
10490         * target.c (update_current_target): Update.
10491         * remote.c (remote_set_circular_trace_buffer): Add 'self'
10492         argument.
10493
10494 2014-02-19  Tom Tromey  <tromey@redhat.com>
10495
10496         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10497         argument.
10498         (target_set_disconnected_tracing): Add argument.
10499         * target.c (update_current_target): Update.
10500         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10501
10502 2014-02-19  Tom Tromey  <tromey@redhat.com>
10503
10504         * target.h (struct target_ops)
10505         <to_get_min_fast_tracepoint_insn_len>: Add argument.
10506         (target_get_min_fast_tracepoint_insn_len): Add argument.
10507         * target.c (update_current_target): Update.
10508         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10509         argument.
10510
10511 2014-02-19  Tom Tromey  <tromey@redhat.com>
10512
10513         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10514         argument.
10515         (target_get_raw_trace_data): Add argument.
10516         * target.c (update_current_target): Update.
10517         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10518
10519 2014-02-19  Tom Tromey  <tromey@redhat.com>
10520
10521         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10522         Add argument.
10523         (target_upload_trace_state_variables): Add argument.
10524         * target.c (update_current_target): Update.
10525         * remote.c (remote_upload_trace_state_variables): Add 'self'
10526         argument.
10527         (remote_start_remote): Update.
10528
10529 2014-02-19  Tom Tromey  <tromey@redhat.com>
10530
10531         * target.h (struct target_ops) <to_upload_tracepoints>: Add
10532         argument.
10533         (target_upload_tracepoints): Add argument.
10534         * target.c (update_current_target): Update.
10535         * remote.c (remote_upload_tracepoints): Add 'self' argument.
10536         (remote_start_remote): Update.
10537
10538 2014-02-19  Tom Tromey  <tromey@redhat.com>
10539
10540         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10541         (target_save_trace_data): Add argument.
10542         * target.c (update_current_target): Update.
10543         * remote.c (remote_save_trace_data): Add 'self' argument.
10544
10545 2014-02-19  Tom Tromey  <tromey@redhat.com>
10546
10547         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10548         argument.
10549         * target.h (struct target_ops)
10550         <to_get_trace_state_variable_value>: Add argument.
10551         (target_get_trace_state_variable_value): Add argument.
10552         * target.c (update_current_target): Update.
10553         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10554         argument.
10555         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10556
10557 2014-02-19  Tom Tromey  <tromey@redhat.com>
10558
10559         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10560         * target.h (struct target_ops) <to_trace_find>: Add argument.
10561         (target_trace_find): Add argument.
10562         * target.c (update_current_target): Update.
10563         * remote.c (remote_trace_find): Add 'self' argument.
10564         * ctf.c (ctf_trace_find): Add 'self' argument.
10565
10566 2014-02-19  Tom Tromey  <tromey@redhat.com>
10567
10568         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10569         (target_trace_stop): Add argument.
10570         * target.c (update_current_target): Update.
10571         * remote.c (remote_trace_stop): Add 'self' argument.
10572
10573 2014-02-19  Tom Tromey  <tromey@redhat.com>
10574
10575         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10576         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10577         argument.
10578         (target_get_tracepoint_status): Add argument.
10579         * target.c (update_current_target): Update.
10580         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10581
10582 2014-02-19  Tom Tromey  <tromey@redhat.com>
10583
10584         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10585         * target.h (struct target_ops) <to_get_trace_status>: Add
10586         argument.
10587         (target_get_trace_status): Add argument.
10588         * target.c (update_current_target): Update.
10589         * remote.c (remote_get_trace_status): Add 'self' argument.
10590         (remote_start_remote, remote_can_download_tracepoint): Update.
10591         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10592
10593 2014-02-19  Tom Tromey  <tromey@redhat.com>
10594
10595         * target.h (struct target_ops) <to_trace_start>: Add argument.
10596         (target_trace_start): Add argument.
10597         * target.c (update_current_target): Update.
10598         * remote.c (remote_trace_start): Add 'self' argument.
10599
10600 2014-02-19  Tom Tromey  <tromey@redhat.com>
10601
10602         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10603         Add argument.
10604         (target_trace_set_readonly_regions): Add argument.
10605         * target.c (update_current_target): Update.
10606         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10607         argument.
10608
10609 2014-02-19  Tom Tromey  <tromey@redhat.com>
10610
10611         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10612         argument.
10613         (target_disable_tracepoint): Add argument.
10614         * target.c (update_current_target): Update.
10615         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10616
10617 2014-02-19  Tom Tromey  <tromey@redhat.com>
10618
10619         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10620         argument.
10621         (target_enable_tracepoint): Add argument.
10622         * target.c (update_current_target): Update.
10623         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10624
10625 2014-02-19  Tom Tromey  <tromey@redhat.com>
10626
10627         * target.h (struct target_ops) <to_download_trace_state_variable>:
10628         Add argument.
10629         (target_download_trace_state_variable): Add argument.
10630         * target.c (update_current_target): Update.
10631         * remote.c (remote_download_trace_state_variable): Add 'self'
10632         argument.
10633
10634 2014-02-19  Tom Tromey  <tromey@redhat.com>
10635
10636         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10637         argument.
10638         (target_can_download_tracepoint): Add argument.
10639         * target.c (update_current_target): Update.
10640         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10641
10642 2014-02-19  Tom Tromey  <tromey@redhat.com>
10643
10644         * target.h (struct target_ops) <to_download_tracepoint>: Add
10645         argument.
10646         (target_download_tracepoint): Add argument.
10647         * target.c (update_current_target): Update.
10648         * remote.c (remote_download_tracepoint): Add 'self' argument.
10649
10650 2014-02-19  Tom Tromey  <tromey@redhat.com>
10651
10652         * target.h (struct target_ops) <to_trace_init>: Add argument.
10653         (target_trace_init): Add argument.
10654         * target.c (update_current_target): Update.
10655         * remote.c (remote_trace_init): Add 'self' argument.
10656
10657 2014-02-19  Tom Tromey  <tromey@redhat.com>
10658
10659         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10660         * target.c (target_fileio_readlink): Add argument.
10661         * remote.c (remote_hostio_readlink): Add 'self' argument.
10662         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10663
10664 2014-02-19  Tom Tromey  <tromey@redhat.com>
10665
10666         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10667         * target.c (target_fileio_unlink): Add argument.
10668         * remote.c (remote_hostio_unlink): Add 'self' argument.
10669         (remote_file_delete): Update.
10670         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10671
10672 2014-02-19  Tom Tromey  <tromey@redhat.com>
10673
10674         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10675         * target.c (target_fileio_close): Add argument.
10676         * remote.c (remote_hostio_close): Add 'self' argument.
10677         (remote_hostio_close_cleanup): Update.
10678         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10679         Update.
10680         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10681
10682 2014-02-19  Tom Tromey  <tromey@redhat.com>
10683
10684         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10685         * target.c (target_fileio_pread): Add argument.
10686         * remote.c (remote_hostio_pread): Add 'self' argument.
10687         (remote_bfd_iovec_pread, remote_file_get): Update.
10688         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10689
10690 2014-02-19  Tom Tromey  <tromey@redhat.com>
10691
10692         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10693         * target.c (target_fileio_pwrite): Add argument.
10694         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10695         (remote_file_put): Update.
10696         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10697
10698 2014-02-19  Tom Tromey  <tromey@redhat.com>
10699
10700         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10701         * target.c (target_fileio_open): Add argument.
10702         * remote.c (remote_hostio_open): Add 'self' argument.
10703         (remote_bfd_iovec_open): Add 'self' argument.
10704         (remote_file_put): Add 'self' argument.
10705         (remote_file_get): Add 'self' argument.
10706         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10707
10708 2014-02-19  Tom Tromey  <tromey@redhat.com>
10709
10710         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10711         Add argument.
10712         (target_can_run_breakpoint_commands): Add argument.
10713         * target.c (update_current_target): Update.
10714         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10715         argument.
10716         (remote_insert_breakpoint): Add 'self' argument.
10717         (remote_insert_hw_breakpoint): Add 'self' argument.
10718         (remote_can_run_breakpoint_commands): Add 'self' argument.
10719
10720 2014-02-19  Tom Tromey  <tromey@redhat.com>
10721
10722         * target.h (struct target_ops)
10723         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10724         (target_supports_evaluation_of_breakpoint_conditions): Add
10725         argument.
10726         * target.c (update_current_target): Update.
10727         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10728         argument.
10729         (remote_insert_breakpoint): Add 'self' argument.
10730         (remote_insert_hw_breakpoint): Add 'self' argument.
10731         (remote_supports_cond_breakpoints): Add 'self' argument.
10732
10733 2014-02-19  Tom Tromey  <tromey@redhat.com>
10734
10735         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10736         argument.
10737         (target_supports_string_tracing): Add argument.
10738         * target.c (update_current_target): Update.
10739         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10740
10741 2014-02-19  Tom Tromey  <tromey@redhat.com>
10742
10743         * target.h (struct target_ops)
10744         <to_supports_disable_randomization>: Add argument.
10745         * target.c (find_default_supports_disable_randomization): Add
10746         argument.
10747         (target_supports_disable_randomization): Add argument.
10748         (find_default_supports_disable_randomization): Add 'self'
10749         argument.
10750         * remote.c (extended_remote_supports_disable_randomization): Add
10751         'self' argument.
10752         (remote_supports_disable_randomization): Add 'self' argument.
10753         (extended_remote_create_inferior): Update.
10754         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10755         'self' argument.
10756
10757 2014-02-19  Tom Tromey  <tromey@redhat.com>
10758
10759         * target.h (struct target_ops)
10760         <to_supports_enable_disable_tracepoint>: Add argument.
10761         (target_supports_enable_disable_tracepoint): Add argument.
10762         * target.c (update_current_target): Update.
10763         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10764         argument.
10765
10766 2014-02-19  Tom Tromey  <tromey@redhat.com>
10767
10768         * target.h (struct target_ops) <to_supports_multi_process>: Add
10769         argument.
10770         (target_supports_multi_process): Add argument.
10771         * target.c (update_current_target): Update.
10772         * remote.c (remote_supports_multi_process): Add 'self' argument.
10773         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10774         argument.
10775         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10776         argument.
10777
10778 2014-02-19  Tom Tromey  <tromey@redhat.com>
10779
10780         * target.h (struct target_ops) <to_execution_direction>: Add
10781         argument.
10782         (target_execution_direction): Add argument.
10783         * target.c (default_execution_direction): Add 'self' argument.
10784         * record-full.c (record_full_execution_direction): Add 'self'
10785         argument.
10786
10787 2014-02-19  Tom Tromey  <tromey@redhat.com>
10788
10789         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10790         argument.
10791         (target_can_execute_reverse): Add argument.
10792         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10793         * record-full.c (record_full_can_execute_reverse): Add 'self'
10794         argument.
10795         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10796         argument.
10797
10798 2014-02-19  Tom Tromey  <tromey@redhat.com>
10799
10800         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10801         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10802         argument.
10803         (target_get_ada_task_ptid): Add argument.
10804         * target.c (update_current_target): Update.
10805         (default_get_ada_task_ptid): Add 'self' argument.
10806         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10807         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10808         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10809         argument.
10810         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10811         argument.
10812         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10813         argument.
10814         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10815         argument.
10816         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10817         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10818         argument.
10819
10820 2014-02-19  Tom Tromey  <tromey@redhat.com>
10821
10822         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10823         (target_goto_bookmark): Add argument.
10824         * target.c (dummy_goto_bookmark): Add 'self' argument.
10825         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10826
10827 2014-02-19  Tom Tromey  <tromey@redhat.com>
10828
10829         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10830         (target_get_bookmark): Add argument.
10831         * target.c (dummy_get_bookmark): Add 'self' argument.
10832         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10833
10834 2014-02-19  Tom Tromey  <tromey@redhat.com>
10835
10836         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10837         argument.
10838         (target_make_corefile_notes): Add argument.
10839         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10840         * procfs.c (procfs_make_note_section): Add 'self' argument.
10841         (procfs_make_note_section): Add 'self' argument.
10842         (procfs_make_note_section): Add 'self' argument.
10843         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10844         argument.
10845         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10846         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10847         * exec.c (exec_make_note_section): Add 'self' argument.
10848         (exec_make_note_section): Add 'self' argument.
10849
10850 2014-02-19  Tom Tromey  <tromey@redhat.com>
10851
10852         * target.h (struct target_ops) <to_find_memory_regions>: Add
10853         argument.
10854         (target_find_memory_regions): Add argument.
10855         * target.c (dummy_find_memory_regions): Add 'self' argument.
10856         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10857         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10858         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10859         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10860         * exec. (exec_do_find_memory_regions): New global.
10861         (exec_set_find_memory_regions): Rewrite.
10862         (exec_find_memory_regions): New function.
10863         (init_exec_ops): Use exec_find_memory_regions.
10864
10865 2014-02-19  Tom Tromey  <tromey@redhat.com>
10866
10867         * target.h (struct target_ops) <to_supports_non_stop>: Add
10868         argument.
10869         * target.c (find_default_supports_non_stop): Add argument.
10870         (target_supports_non_stop): Add argument.
10871         (find_default_supports_non_stop): Add 'self' argument.
10872         * remote.c (remote_supports_non_stop): Add 'self' argument.
10873         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10874
10875 2014-02-19  Tom Tromey  <tromey@redhat.com>
10876
10877         * target.h (struct target_ops) <to_log_command>: Add argument.
10878         (target_log_command): Add argument.
10879         * serial.h (serial_log_command): Add 'self' argument.
10880         * serial.c (serial_log_command): Add 'self' argument.
10881
10882 2014-02-19  Tom Tromey  <tromey@redhat.com>
10883
10884         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10885         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10886         argument.
10887         (target_pid_to_exec_file): Add argument.
10888         * target.c (debug_to_pid_to_exec_file): Add argument.
10889         (update_current_target): Update.
10890         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10891         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10892         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10893         (linux_handle_extended_wait): Update.
10894         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10895         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10896         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10897         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10898
10899 2014-02-19  Tom Tromey  <tromey@redhat.com>
10900
10901         * target.h (struct target_ops) <to_rcmd>: Add argument.
10902         (target_rcmd): Add argument.
10903         * target.c (debug_to_rcmd): Add argument.
10904         (update_current_target, do_monitor_command): Update.
10905         * remote.c (remote_rcmd): Add 'self' argument.
10906         * monitor.c (monitor_rcmd): Add 'self' argument.
10907
10908 2014-02-19  Tom Tromey  <tromey@redhat.com>
10909
10910         * windows-nat.c (windows_stop): Add 'self' argument.
10911         * target.h (struct target_ops) <to_stop>: Add argument.
10912         * target.c (target_stop): Add argument.
10913         (debug_to_stop): Add argument.
10914         (update_current_target): Update.
10915         * remote.c (remote_stop): Add 'self' argument.
10916         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10917         (gdbsim_cntrl_c): Update.
10918         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10919         * procfs.c (procfs_stop): Add 'self' argument.
10920         * nto-procfs.c (procfs_stop): Add 'self' argument.
10921         * monitor.c (monitor_stop): Add 'self' argument.
10922         (monitor_open): Update.
10923         * linux-nat.c (linux_nat_stop): Add argument.
10924         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10925         * gnu-nat.c (gnu_stop): Add 'self' argument.
10926         * darwin-nat.c (darwin_stop): Add 'self' argument.
10927
10928 2014-02-19  Tom Tromey  <tromey@redhat.com>
10929
10930         * target.h (struct target_ops) <to_thread_name>: Add argument.
10931         * target.c (target_thread_name): Add argument.
10932         (update_current_target): Update.
10933         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10934
10935 2014-02-19  Tom Tromey  <tromey@redhat.com>
10936
10937         * target.h (struct target_ops) <to_extra_thread_info>: Add
10938         argument.
10939         (target_extra_thread_info): Add argument.
10940         * target.c (update_current_target): Update.
10941         * remote.c (remote_threads_extra_info): Add 'self' argument.
10942         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10943         argument.
10944         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10945         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10946         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10947         argument.
10948         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10949         argument.
10950         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10951         argument.
10952         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10953         argument.
10954
10955 2014-02-19  Tom Tromey  <tromey@redhat.com>
10956
10957         * target.h (struct target_ops) <to_program_signals>: Add argument.
10958         * target.c (target_program_signals): Add argument.
10959         * remote.c (remote_program_signals): Add 'self' argument.
10960
10961 2014-02-19  Tom Tromey  <tromey@redhat.com>
10962
10963         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10964         * target.c (target_pass_signals): Add argument.
10965         * remote.c (remote_pass_signals): Add 'self' argument.
10966         (remote_start_remote): Update.
10967         * procfs.c (procfs_pass_signals): Add 'self' argument.
10968         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10969         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10970         (linux_nat_create_inferior, linux_nat_attach): Update.
10971
10972 2014-02-19  Tom Tromey  <tromey@redhat.com>
10973
10974         * windows-nat.c (windows_can_run): Add 'self' argument.
10975         * target.h (struct target_ops) <to_can_run>: Add argument.
10976         (target_can_run): Add argument.
10977         * target.c (debug_to_can_run): Add argument.
10978         (update_current_target): Update.
10979         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10980         * inf-child.c (inf_child_can_run): Add 'self' argument.
10981         * go32-nat.c (go32_can_run): Add 'self' argument.
10982
10983 2014-02-19  Tom Tromey  <tromey@redhat.com>
10984
10985         * target.h (struct target_ops) <to_has_exited>: Add argument.
10986         (target_has_exited): Add argument.
10987         * target.c (debug_to_has_exited): Add argument.
10988         (update_current_target): Update.
10989
10990 2014-02-19  Tom Tromey  <tromey@redhat.com>
10991
10992         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10993         argument.
10994         (target_set_syscall_catchpoint): Add argument.
10995         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10996         argument.
10997         * target.c (update_current_target): Update.
10998
10999 2014-02-19  Tom Tromey  <tromey@redhat.com>
11000
11001         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11002         argument.
11003         (target_remove_exec_catchpoint): Add argument.
11004         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11005         (update_current_target): Update.
11006         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11007         argument.
11008
11009 2014-02-19  Tom Tromey  <tromey@redhat.com>
11010
11011         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11012         argument.
11013         (target_insert_exec_catchpoint): Add argument.
11014         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11015         (update_current_target): Update.
11016         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11017         argument.
11018
11019 2014-02-19  Tom Tromey  <tromey@redhat.com>
11020
11021         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11022         argument.
11023         (target_remove_vfork_catchpoint): Add argument.
11024         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11025         (update_current_target): Update.
11026         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11027         argument.
11028
11029 2014-02-19  Tom Tromey  <tromey@redhat.com>
11030
11031         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11032         argument.
11033         (target_insert_vfork_catchpoint): Add argument.
11034         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11035         (update_current_target): Update.
11036         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11037         argument.
11038
11039 2014-02-19  Tom Tromey  <tromey@redhat.com>
11040
11041         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11042         argument.
11043         (target_remove_fork_catchpoint): Add argument.
11044         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11045         (update_current_target): Update.
11046         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11047         argument.
11048
11049 2014-02-19  Tom Tromey  <tromey@redhat.com>
11050
11051         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11052         argument.
11053         (target_insert_fork_catchpoint): Add argument.
11054         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11055         (update_current_target): Update.
11056         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11057         argument.
11058
11059 2014-02-19  Tom Tromey  <tromey@redhat.com>
11060
11061         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11062         argument.
11063         (target_post_startup_inferior): Add argument.
11064         * target.c (debug_to_post_startup_inferior): Add argument.
11065         (update_current_target): Update.
11066         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11067         argument.
11068         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11069         argument.
11070         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11071         argument.
11072         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11073         argument.
11074         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11075         'self' argument.
11076         (super_post_startup_inferior): Likewise.
11077         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11078         'self' argument.
11079         (super_post_startup_inferior): Likewise.
11080         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11081         Add 'self' argument.
11082         (super_post_startup_inferior): Likewise.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target.h (struct target_ops) <to_load>: Add argument.
11087         * target.c (target_load): Add argument.
11088         (debug_to_load): Add argument.
11089         (update_current_target): Update.
11090         * remote.c (remote_load): Add 'self' argument.
11091         * remote-sim.c (gdbsim_load): Add 'self' argument.
11092         * remote-mips.c (mips_load): Add 'self' argument.
11093         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11094         * monitor.c (monitor_load): Add 'self' argument.
11095         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11096
11097 2014-02-19  Tom Tromey  <tromey@redhat.com>
11098
11099         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11100         (target_terminal_info): Add argument.
11101         * target.c (debug_to_terminal_info): Add argument.
11102         (default_terminal_info): Likewise.
11103         * inflow.c (child_terminal_info): Add 'self' argument.
11104         * inferior.h (child_terminal_info): Add 'self' argument.
11105         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11106
11107 2014-02-19  Tom Tromey  <tromey@redhat.com>
11108
11109         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11110         argument.
11111         (target_terminal_save_ours): Add argument.
11112         * target.c (debug_to_terminal_save_ours): Add argument.
11113         (update_current_target): Update.
11114         * inflow.c (terminal_save_ours): Add 'self' argument.
11115         * inferior.h (terminal_save_ours): Add 'self' argument.
11116
11117 2014-02-19  Tom Tromey  <tromey@redhat.com>
11118
11119         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11120         (target_terminal_ours): Add argument.
11121         * target.c (debug_to_terminal_ours): Add argument.
11122         (update_current_target): Update.
11123         * remote.c (remote_terminal_ours): Add 'self' argument.
11124         (remote_close): Update.
11125         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11126         * inflow.c (terminal_ours): Add 'self' argument.
11127         * inferior.h (terminal_ours): Add 'self' argument.
11128         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11129
11130 2014-02-19  Pedro Alves  <palves@redhat.com>
11131             Tom Tromey  <tromey@redhat.com>
11132
11133         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11134         argument.
11135         (target_terminal_ours_for_output): Add argument.
11136         * target.c (debug_to_terminal_ours_for_output): Add argument.
11137         (update_current_target): Update.
11138         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11139         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11140         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11141
11142 2014-02-19  Tom Tromey  <tromey@redhat.com>
11143
11144         * target.h (struct target_ops) <to_terminal_inferior>: Add
11145         argument.
11146         * target.c (target_terminal_inferior): Add argument.
11147         (update_current_target): Update.
11148         * remote.c (remote_terminal_inferior): Add 'self' argument.
11149         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11150         * inflow.c (terminal_inferior): Add 'self' argument.
11151         * inferior.h (terminal_inferior): Add 'self' argument.
11152         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11153         (go32_terminal_inferior): Add 'self' argument.
11154
11155 2014-02-19  Tom Tromey  <tromey@redhat.com>
11156
11157         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11158         (target_terminal_init): Add argument.
11159         * target.c (debug_to_terminal_init): Add argument.
11160         (update_current_target): Update.
11161         * inflow.c (terminal_init_inferior): Add 'self' argument.
11162         * inferior.h (terminal_init_inferior): Add 'self' argument.
11163         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11164         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11165
11166 2014-02-19  Tom Tromey  <tromey@redhat.com>
11167
11168         * target.h (struct target_ops)
11169         <to_can_accel_watchpoint_condition>: Add argument.
11170         (target_can_accel_watchpoint_condition): Add argument.
11171         * target.c (debug_to_can_accel_watchpoint_condition): Add
11172         argument.
11173         (update_current_target): Update.
11174         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11175         'self' argument.
11176
11177 2014-02-19  Tom Tromey  <tromey@redhat.com>
11178
11179         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11180         Add argument.
11181         (target_region_ok_for_hw_watchpoint): Add argument.
11182         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11183         (default_region_ok_for_hw_watchpoint): Add argument.
11184         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11185         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11186         argument.
11187         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11188         argument.
11189         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11190         argument.
11191         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11192         'self' argument.
11193         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11194         'self' argument.
11195         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11196         'self' argument.
11197         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11198         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11199         'self' argument.
11200         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11201         Add 'self' argument.
11202
11203 2014-02-19  Tom Tromey  <tromey@redhat.com>
11204
11205         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11206         argument.
11207         (target_insert_watchpoint): Add argument.
11208         * target.c (debug_to_insert_watchpoint): Add argument.
11209         (update_current_target): Update.
11210         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11211         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11212         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11213         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11214         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11215         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11216         argument.
11217         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11218         (procfs_insert_hw_watchpoint): Add 'self' argument.
11219         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11220         argument.
11221         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11222         argument.
11223         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11224         argument.
11225         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11226         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11227         argument.
11228         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11229         'self' argument.
11230
11231 2014-02-19  Tom Tromey  <tromey@redhat.com>
11232
11233         * target.h (struct target_ops) <to_remove_watchpoint>: Add
11234         argument.
11235         (target_remove_watchpoint): Add argument.
11236         * target.c (debug_to_remove_watchpoint): Add argument.
11237         (update_current_target): Update.
11238         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11239         * remote.c (remote_remove_watchpoint): Add 'self' argument.
11240         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11241         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11242         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11243         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11244         argument.
11245         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11246         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11247         argument.
11248         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11249         argument.
11250         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11251         argument.
11252         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11253         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11254         argument.
11255         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11256         'self' argument.
11257
11258 2014-02-19  Tom Tromey  <tromey@redhat.com>
11259
11260         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11261         argument.
11262         (target_remove_hw_breakpoint): Add argument.
11263         * target.c (debug_to_remove_hw_breakpoint): Add argument.
11264         (update_current_target): Update.
11265         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11266         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11267         argument.
11268         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11269         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11270         argument.
11271         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11272         'self' argument.
11273
11274 2014-02-19  Tom Tromey  <tromey@redhat.com>
11275
11276         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11277         argument.
11278         (target_insert_hw_breakpoint): Add argument.
11279         * target.c (debug_to_insert_hw_breakpoint): Add argument.
11280         (update_current_target): Update.
11281         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11282         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11283         argument.
11284         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11285         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11286         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11287         argument.
11288         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11289         'self' argument.
11290
11291 2014-02-19  Tom Tromey  <tromey@redhat.com>
11292
11293         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11294         argument.
11295         (target_can_use_hardware_watchpoint): Add argument.
11296         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11297         (update_current_target): Update.
11298         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11299         argument.
11300         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11301         argument.
11302         * remote.c (remote_check_watch_resources): Add 'self' argument.
11303         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11304         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11305         argument.
11306         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11307         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11308         argument.
11309         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11310         argument.
11311         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11312         argument.
11313         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11314         argument.
11315         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11316         argument.
11317         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11318         argument.
11319         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11320         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11321         argument.
11322         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11323         'self' argument.
11324
11325 2014-02-19  Tom Tromey  <tromey@redhat.com>
11326
11327         * target.h (struct target_ops) <to_post_attach>: Add argument.
11328         (target_post_attach): Add argument.
11329         * target.c (debug_to_post_attach): Add argument.
11330         (update_current_target): Update.
11331         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11332         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11333         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11334         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11335         * inf-child.c (inf_child_post_attach): Add 'self' argument.
11336
11337 2014-02-19  Tom Tromey  <tromey@redhat.com>
11338
11339         * windows-nat.c (windows_close): Add 'self' argument.
11340         * tracepoint.c (tfile_close): Add 'self' argument.
11341         * target.h (struct target_ops) <to_close>: Add argument.
11342         * target.c (target_close): Add argument.
11343         (update_current_target): Update.
11344         * remote.c (remote_close): Add 'self' argument.
11345         * remote-sim.c (gdbsim_close): Add 'self' argument.
11346         * remote-mips.c (mips_close): Add 'self' argument.
11347         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11348         * record-full.c (record_full_close): Add 'self' argument.
11349         * record-btrace.c (record_btrace_close): Add 'self' argument.
11350         * monitor.h (monitor_close): Add 'self' argument.
11351         * monitor.c (monitor_close): Add 'self' argument.
11352         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11353         * linux-nat.c (linux_nat_close): Add argument.
11354         * go32-nat.c (go32_close): Add 'self' argument.
11355         * exec.c (exec_close_1): Add 'self' argument.
11356         * ctf.c (ctf_close): Add 'self' argument.
11357         * corelow.c (core_close): Add 'self' argument.
11358         (core_close_cleanup): Update.
11359         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11360         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11361
11362 2014-02-19  Tom Tromey  <tromey@redhat.com>
11363
11364         * remote.c (remote_load): New function.
11365         (init_remote_ops): Use it.
11366
11367 2014-02-19  Tom Tromey  <tromey@redhat.com>
11368
11369         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11370         argument.
11371         * common/linux-btrace.h (linux_supports_btrace): Update.
11372         * remote.c (remote_supports_btrace): Add "self" argument.
11373         * target-delegates.c: Rebuild.
11374         * target.c (target_supports_btrace): Remove.
11375         * target.h (struct target_ops) <to_supports_btrace>: Add
11376         target_ops argument.
11377         (target_supports_btrace): New define.
11378
11379 2014-02-19  Tom Tromey  <tromey@redhat.com>
11380
11381         * record-full.c (record_full_beneath_to_resume_ops)
11382         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11383         (record_full_beneath_to_wait)
11384         (record_full_beneath_to_store_registers_ops)
11385         (record_full_beneath_to_store_registers)
11386         (record_full_beneath_to_xfer_partial_ops)
11387         (record_full_beneath_to_xfer_partial)
11388         (record_full_beneath_to_insert_breakpoint_ops)
11389         (record_full_beneath_to_insert_breakpoint)
11390         (record_full_beneath_to_remove_breakpoint_ops)
11391         (record_full_beneath_to_remove_breakpoint)
11392         (record_full_beneath_to_stopped_by_watchpoint)
11393         (record_full_beneath_to_stopped_data_address)
11394         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11395         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11396         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11397         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11398         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11399         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11400         (tmp_to_stopped_data_address, tmp_to_async): Remove.
11401         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
11402         (record_full_resume, record_full_wait_1)
11403         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11404         (record_full_store_registers, record_full_xfer_partial)
11405         (record_full_insert_breakpoint, record_full_remove_breakpoint)
11406         (record_full_async, record_full_core_xfer_partial): Use target
11407         delegation.
11408         * target-delegates.c: Rebuild.
11409         * target.c (current_xfer_partial): Remove.
11410         (update_current_target): Do not INHERIT or de_fault
11411         to_insert_breakpoint, to_remove_breakpoint,
11412         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11413         to_is_async_p, to_async.  Do not set to_xfer_partial field.
11414         (default_xfer_partial): Simplify.
11415         (current_xfer_partial): Remove.
11416         (target_wait, target_resume): Simplify.
11417         (find_default_can_async_p, find_default_is_async_p): Update.
11418         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11419         to_xfer_partial, to_stopped_by_watchpoint,
11420         to_stopped_data_address.
11421         (target_store_registers): Simplify.
11422         (forward_target_remove_breakpoint)
11423         (forward_target_insert_breakpoint): Remove.
11424         (target_remove_breakpoint, target_insert_breakpoint)
11425         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11426         * target.h (struct target_ops) <to_resume, to_wait,
11427         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11428         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11429         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11430         markup.
11431         (forward_target_remove_breakpoint)
11432         (forward_target_insert_breakpoint): Remove.
11433         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11434         directly.
11435         (record_btrace_insert_breakpoint): Delegate directly.
11436
11437 2014-02-19  Tom Tromey  <tromey@redhat.com>
11438
11439         PR build/7701:
11440         * target-delegates.c: New file.
11441         * target.c: Include target-delegates.c.
11442         (init_dummy_target): Call install_dummy_methods.
11443         (complete_target_initialization): Call install_delegators.
11444         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11445         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11446         * make-target-delegates: New file.
11447
11448 2014-02-19  Tom Tromey  <tromey@redhat.com>
11449
11450         * record.c (find_record_target): Use find_target_at.
11451         * target.c (find_target_at): New function.
11452         * target.h (find_target_at): Declare.
11453
11454 2014-02-19  Tom Tromey  <tromey@redhat.com>
11455
11456         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11457         Add 'ops' argument.
11458         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11459         'ops' argument.
11460         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11461         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11462         'ops' argument.
11463         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11464         argument.
11465         * linux-nat.c (save_sigtrap): Update.
11466         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11467         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11468         (linux_nat_close): Update.
11469         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11470         argument.
11471         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11472         argument.
11473         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11474         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11475         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11476         (tmp_to_async): Add 'ops' argument.
11477         (record_full_stopped_by_watchpoint, record_full_async)
11478         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11479         argument.
11480         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11481         (m32r_stopped_by_watchpoint): Add 'ops' argument.
11482         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11483         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11484         (remote_is_async_p, remote_async): Add 'ops' argument.
11485         (remote_stopped_data_address): Update.
11486         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11487         * target.c (update_current_target)
11488         (find_default_can_async_p, find_default_is_async_p): Update.
11489         (init_dummy_target): Update.
11490         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11491         * target.h (struct target_ops) <to_stopped_by_watchpoint,
11492         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11493         (target_can_async_p, target_is_async_p, target_async)
11494         (target_stopped_by_watchpoint): Update.
11495
11496 2014-02-19  Yao Qi  <yao@codesourcery.com>
11497
11498         PR gdb/16220
11499         * gdbarch.sh: Remove startup_gdbarch.
11500         * gdbarch.c: Regenerated.
11501         * gdbarch.h: Likewise.
11502
11503 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
11504
11505         * rl78-tdep.c (rl78_g10_register_name): New function.
11506         (rl78_return_value): Add g10 support.
11507         (rl78_gdbarch_init): Register rl78_g10_register_name for the
11508         g10.
11509
11510 2014-02-17  Doug Evans  <xdje42@gmail.com>
11511
11512         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11513         (SUBDIR_GUILE_SRCS): Ditto.
11514         (scm-gsmob.o): Ditto.
11515
11516 2014-02-17  Yao Qi  <yao@codesourcery.com>
11517
11518         * gnu-nat.c (ILL_RPC): Declare defined function.
11519
11520 2014-02-17  Yao Qi  <yao@codesourcery.com>
11521
11522         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11523         mach_msg_type_number_t.
11524         (gnu_write_inferior): Likewise.
11525
11526 2014-02-17  Yao Qi  <yao@codesourcery.com>
11527
11528         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11529         in format string.
11530         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11531         (inf_validate_procs, inf_signal): Likewise.
11532         (S_exception_raise_request): Likewise.
11533         (do_mach_notify_dead_name): Likewise.
11534         (steal_exc_port): Likewise.
11535         (gnu_read_inferior): Change 'copy_count''s type to
11536         mach_msg_type_number_t.
11537         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
11538         format string.
11539
11540 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
11541
11542         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11543         flag.  Adjust all users; in particular...
11544         (gnu_wait): ..., don't decrement its value in here...
11545         (gnu_create_inferior): ..., and instead set the flag in here,
11546         around the startup_inferior call, and call that one with
11547         START_INFERIOR_TRAPS_EXPECTED.
11548
11549         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11550         (ILL_RPC): ... new macro.
11551         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11552         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11553         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11554         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11555         functions with ILL_RPC macro.
11556         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11557         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11558         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11559         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11560         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11561         (S_proc_getlogin_reply, S_proc_getsid_reply)
11562         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11563         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11564         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11565         (S_proc_getnports_reply, S_proc_is_important_reply)
11566         (S_proc_get_code_reply): New stub functions, generated with
11567         ILL_RPC macro.
11568
11569         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11570         collected the type check structures.
11571
11572         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11573
11574 2014-02-14  Doug Evans  <dje@google.com>
11575
11576         * target.c (target_write_partial): Fix result type.
11577
11578 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11579
11580         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11581         the proper offsets to access fpregset_t.
11582
11583 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11584
11585         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11586         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11587         * h8300-tdep.c (setmachinelist): Remove global.
11588         * hppa-tdep.c (hppa_sigtramp): Remove global.
11589         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11590         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11591         * ravenscar-thread.c (update_target_observer): Remove global.
11592         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11593
11594 2014-02-12  Tom Tromey  <tromey@redhat.com>
11595
11596         * common/rsp-low.c: Update comments.
11597         * common/rsp-low.h: Update comments.
11598
11599 2014-02-12  Tom Tromey  <tromey@redhat.com>
11600
11601         * common/rsp-low.c (convert_ascii_to_int): Remove.
11602         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11603
11604 2014-02-12  Tom Tromey  <tromey@redhat.com>
11605
11606         * common/rsp-low.h (unhexify): Don't declare.
11607         * common/rsp-low.c (unhexify): Remove.
11608
11609 2014-02-12  Tom Tromey  <tromey@redhat.com>
11610
11611         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11612         * common/rsp-low.c (convert_int_to_ascii): Remove.
11613
11614 2014-02-12  Tom Tromey  <tromey@redhat.com>
11615
11616         * common/rsp-low.h (hexify): Don't declare.
11617         * common/rsp-low.c (hexify): Remove.
11618
11619 2014-02-12  Tom Tromey  <tromey@redhat.com>
11620
11621         * common/rsp-low.c (hexify): Never take strlen of argument.
11622
11623 2014-02-12  Tom Tromey  <tromey@redhat.com>
11624
11625         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11626         * remote.c (extended_remote_run, remote_rcmd)
11627         (remote_download_trace_state_variable, remote_save_trace_data)
11628         (remote_set_trace_notes): Update.
11629         * tracepoint.c (encode_source_string, tfile_write_status)
11630         (tfile_write_uploaded_tsv): Update.
11631
11632 2014-02-12  Tom Tromey  <tromey@redhat.com>
11633
11634         * tracepoint.c: Include rsp-low.h.
11635         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11636         * remote.c: Include rsp-low.h.
11637         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11638         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11639         (remote_unescape_input): Move to common/rsp-low.c.
11640         * common/rsp-low.h: New file.
11641         * common/rsp-low.c: New file.
11642         * Makefile.in (SFILES): Add common/rsp-low.c.
11643         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11644         (COMMON_OBS): Add rsp-low.o.
11645         (rsp-low.o): New target.
11646
11647 2014-02-12  Tom Tromey  <tromey@redhat.com>
11648
11649         * utils.h: Include print-utils.h.
11650         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11651         (int_string, core_addr_to_string, core_addr_to_string_nz)
11652         (hex_string, hex_string_custom): Don't declare.
11653         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11654         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11655         (hex_string_custom, int_string, core_addr_to_string)
11656         (core_addr_to_string_nz, host_address_to_string): Move to
11657         common/print-utils.c.
11658         * common/print-utils.h: New file.
11659         * common/print-utils.c: New file
11660         * Makefile.in (SFILES): Add common/print-utils.c.
11661         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11662         (COMMON_OBS): Add print-utils.o.
11663         (print-utils.o): New target.
11664
11665 2014-02-12  Tom Tromey  <tromey@redhat.com>
11666
11667         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11668
11669 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11670
11671         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11672
11673 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11674
11675         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11676         if a PT_IO ptrace request returns sucessfully but indicates that 0
11677         bytes were transferred.
11678
11679 2014-02-12  Pedro Alves  <palves@redhat.com>
11680             Kevin Buettner <kevinb@redhat.com>
11681
11682         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11683         TYPE_INSTANCE_FLAG_CODE_SPACE.
11684
11685 2014-02-12  Pedro Alves  <palves@redhat.com>
11686
11687         * h8300-tdep.c (pseudo_from_raw_register)
11688         (raw_from_pseudo_register): New functions.
11689         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11690         them.
11691
11692 2014-02-12  Pedro Alves  <palves@redhat.com>
11693
11694         * h8300-tdep.c (h8300_register_sim_regno): New function.
11695         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11696         gdbarch_register_sim_regno hook.
11697
11698 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11699
11700         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11701
11702 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11703
11704         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11705
11706 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11707
11708         * obsd-tdep.h (obsd_init_abi): New prototype.
11709         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11710         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11711         (obsd_init_abi): New functions.
11712         * i386obsd-tdep.c: Include "obsd-tdep.h".
11713         (i386obsd_init_abi): Call obsd_init_abi.
11714         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11715         (amd64obsd_init_abi): Call obsd_init_abi.
11716         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11717         obsd-tdep.c to gdb_target_obs.
11718
11719 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11720
11721         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11722         double float arguments to 16-byte in the argument slots.
11723
11724 2014-02-11  Doug Evans  <xdje42@gmail.com>
11725
11726         * configure.ac: Don't crash if pkg-config is not found and guile
11727         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11728         in guile checks.
11729         * configure: Regenerate.
11730
11731 2014-02-11  Yao Qi  <yao@codesourcery.com>
11732
11733         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11734         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11735         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11736         * gnu-nat.c (gnu_xfer_memory): Likewise.
11737         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11738         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11739         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11740         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11741
11742 2014-02-11  Yao Qi  <yao@codesourcery.com>
11743
11744         * target.h (enum target_xfer_error): Rename to ...
11745         (enum target_xfer_status): ... it.  New.  All users updated.
11746         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11747         New.
11748         (TARGET_XFER_STATUS_ERROR_P): New macro.
11749         (target_xfer_error_to_string): Remove declaration.
11750         (target_xfer_status_to_string): Declare.
11751         (target_xfer_partial_ftype): Adjust it.
11752         (struct target_ops) <to_xfer_partial>: Return
11753         target_xfer_status.  Add argument xfered_len.  Update
11754         comments.
11755         * target.c (target_xfer_error_to_string): Rename to ...
11756         (target_xfer_status_to_string): ... it.  New.  All callers
11757         updated.
11758         (target_read_live_memory): Likewise.  Call target_xfer_partial
11759         instead of target_read.
11760         (memory_xfer_live_readonly_partial): Return
11761         target_xfer_status.  Add argument xfered_len.
11762         (raw_memory_xfer_partial): Likewise.
11763         (memory_xfer_partial_1): Likewise.
11764         (memory_xfer_partial): Likewise.
11765         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11766         properly.  Update debug message.
11767         (default_xfer_partial, current_xfer_partial): Likewise.
11768         (target_write_partial): Likewise.
11769         (target_read_partial): Likewise.  All callers updated.
11770         (read_whatever_is_readable): Likewise.
11771         (target_write_with_progress): Likewise.
11772         (target_read_alloc_1): Likewise.
11773
11774         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11775         * auxv.c (procfs_xfer_auxv): Likewise.
11776         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11777         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11778         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11779         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11780         * corefile.c (read_memory): Adjust.
11781         * corelow.c (core_xfer_partial): Likewise.
11782         * ctf.c (ctf_xfer_partial): Likewise.
11783         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11784         updated.
11785         (darwin_xfer_partial): Likewise.
11786         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11787         callers updated.
11788         (exec_xfer_partial): Likewise.
11789         * exec.h (section_table_xfer_memory_partial): Update
11790         declaration.
11791         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11792         negative.
11793         (gnu_xfer_partial): Likewise.
11794         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11795         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11796         (ia64_hpux_xfer_solib_got): Likewise.
11797         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11798         type of 'partial_len' to ULONGEST.
11799         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11800         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11801         (linux_nat_xfer_partial): Likewise.
11802         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11803         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11804         * monitor.c (monitor_xfer_memory): Likewise.
11805         (monitor_xfer_partial): Likewise.
11806         * procfs.c (procfs_xfer_partial): Likewise.
11807         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11808         * record-full.c (record_full_xfer_partial): Likewise.
11809         (record_full_core_xfer_partial): Likewise.
11810         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11811         (gdbsim_xfer_partial): Likewise.
11812         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11813         updated.
11814         (remote_write_bytes, remote_read_bytes): Likewise.  All
11815         callers updated.
11816         (remote_flash_erase): Likewise.  All callers updated.
11817         (remote_write_qxfer): Likewise.  All callers updated.
11818         (remote_read_qxfer): Likewise.  All callers updated.
11819         (remote_xfer_partial): Likewise.
11820         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11821         (rs6000_xfer_shared_libraries): Likewise.
11822         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11823         (sol_thread_xfer_partial): Likewise.
11824         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11825         (sparc_xfer_partial): Likewise.
11826         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11827         updated.
11828         (spu_xfer_partial): Likewise.
11829         * spu-multiarch.c (spu_xfer_partial): Likewise.
11830         * tracepoint.c (tfile_xfer_partial): Likewise.
11831         * windows-nat.c (windows_xfer_memory): Likewise.
11832         (windows_xfer_shared_libraries): Likewise.
11833         (windows_xfer_partial): Likewise.
11834         * valprint.c: Replace 'target_xfer_error' with
11835         'target_xfer_status' in comments.
11836
11837 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11838
11839         Checked in by Joel Brobecker <brobecker@adacore.com>.
11840         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11841
11842 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11843
11844         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11845         function parameters.
11846
11847 2014-02-10  Will Newton  <will.newton@linaro.org>
11848
11849         * elfread.c (elf_rel_plt_read): Look for a .got section if
11850         looking up .got.plt fails.
11851         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11852         on address passed to elf_gnu_ifunc_record_cache.
11853         (elf_gnu_ifunc_resolve_addr): Likewise.
11854         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11855
11856 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11857
11858         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11859         (X_RETTURN): New macro.
11860         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11861
11862         * sparc64-tdep.c (sparc64_init_abi): Hook
11863         sparc_in_function_epilogue_p.
11864
11865 2014-02-10  Gary Benson  <gbenson@redhat.com>
11866
11867         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11868         Rename name_matcher to symbol_matcher.
11869
11870 2014-02-10  Gary Benson  <gbenson@redhat.com>
11871
11872         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11873         Use expand_symtabs_file_matcher_ftype and
11874         expand_symtabs_symbol_matcher_ftype.
11875
11876 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11877
11878         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11879         (struct ada_symbol_cache): New.
11880         (ada_free_symbol_cache): Forward declare.
11881         (struct ada_pspace_data): New.
11882         (ada_pspace_data_handle): New static global.
11883         (get_ada_pspace_data, ada_pspace_data_cleanup)
11884         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11885         (cache_space, cache): Delete, now folded inside struct
11886         ada_pspace_data.
11887         (ada_get_symbol_cache): New function.
11888         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11889         implementation.
11890         (_initialize_ada_language): Remove initialization of cache_space.
11891         Move call to observer_attach_inferior_exit up, grouping it
11892         with the other observer registrations inside this function.
11893         Rename command to be more general.  Add call to
11894         register_program_space_data_with_cleanup.
11895
11896 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11897
11898         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11899         ada_new_objfile_observer.
11900         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11901         (_initialize_tasks): Update uses of ada_new_objfile_observer
11902         and ada_tasks_normal_stop_observer.
11903
11904 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11905
11906         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11907         returned by the 'Length attribute to integer.
11908
11909 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11910
11911         * ada-lang.c (_initialize_ada_language): Initialize
11912         cache_space obstack.
11913
11914 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11915
11916         * ada-lang.c (HASH_SIZE): New macro.
11917         (struct cache_entry): New type.
11918         (cache_space, cache): New static globals.
11919         (ada_clear_symbol_cache, find_entry): New functions.
11920         (lookup_cached_symbol, cache_symbol): Implement.
11921         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11922         (_initialize_ada_language): Attach ada_new_objfile_observer
11923         and ada_free_objfile_observer.
11924
11925 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11926
11927         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11928         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11929         struct block * parameter.
11930         (ada_lookup_symbol_list_worker): Constify local variable "block".
11931         Remove cast which is no longer necessary.
11932
11933 2014-02-10  Doug Evans  <xdje42@gmail.com>
11934
11935         Add Guile as an extension language.
11936         * NEWS: Mention Guile scripting.
11937         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11938         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11939         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11940         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11941         (CLIBS): Add GUILE_LIBS.
11942         (install-guile): New rule.
11943         (guile.o): New rule.
11944         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11945         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11946         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11947         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11948         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11949         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11950         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11951         * configure.ac: New option --with-guile.
11952         * configure: Regenerate.
11953         * config.in: Regenerate.
11954         * auto-load.c: Remove #include "python/python.h".  Add #include
11955         "gdb/section-scripts.h".
11956         (source_section_scripts): Handle Guile scripts.
11957         (_initialize_auto_load): Add name of Guile objfile script to
11958         scripts-directory help text.
11959         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11960         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11961         (struct breakpoint): New member scm_bp_object.
11962         * defs.h (enum command_control_type): New value guile_control.
11963         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11964         "extension.h".
11965         (show_user): Update comment.
11966         (_initialize_cli_cmds): Update help text for "show user".  Update help
11967         text for max-user-call-depth.
11968         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11969         "extension.h".
11970         (multi_line_command_p): Add guile_control.
11971         (print_command_lines): Handle guile_control.
11972         (execute_control_command, recurse_read_control_structure): Ditto.
11973         (process_next_line): Recognize "guile" commands.
11974         * disasm.c (gdb_disassemble_info): Make non-static.
11975         * disasm.h: #include "dis-asm.h".
11976         (struct gdbarch): Add forward decl.
11977         (gdb_disassemble_info): Declare.
11978         * extension.c: #include "guile/guile.h".
11979         (extension_languages): Add guile.
11980         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11981         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11982         * gdbtypes.c (get_unsigned_type_max): New function.
11983         (get_signed_type_minmax): New function.
11984         * gdbtypes.h (get_unsigned_type_max): Declare.
11985         (get_signed_type_minmax): Declare.
11986         * guile/README: New file.
11987         * guile/guile-internal.h: New file.
11988         * guile/guile.c: New file.
11989         * guile/guile.h: New file.
11990         * guile/scm-arch.c: New file.
11991         * guile/scm-auto-load.c: New file.
11992         * guile/scm-block.c: New file.
11993         * guile/scm-breakpoint.c: New file.
11994         * guile/scm-disasm.c: New file.
11995         * guile/scm-exception.c: New file.
11996         * guile/scm-frame.c: New file.
11997         * guile/scm-gsmob.c: New file.
11998         * guile/scm-iterator.c: New file.
11999         * guile/scm-lazy-string.c: New file.
12000         * guile/scm-math.c: New file.
12001         * guile/scm-objfile.c: New file.
12002         * guile/scm-ports.c: New file.
12003         * guile/scm-pretty-print.c: New file.
12004         * guile/scm-safe-call.c: New file.
12005         * guile/scm-string.c: New file.
12006         * guile/scm-symbol.c: New file.
12007         * guile/scm-symtab.c: New file.
12008         * guile/scm-type.c: New file.
12009         * guile/scm-utils.c: New file.
12010         * guile/scm-value.c: New file.
12011         * guile/lib/gdb.scm: New file.
12012         * guile/lib/gdb/boot.scm: New file.
12013         * guile/lib/gdb/experimental.scm: New file.
12014         * guile/lib/gdb/init.scm: New file.
12015         * guile/lib/gdb/iterator.scm: New file.
12016         * guile/lib/gdb/printing.scm: New file.
12017         * guile/lib/gdb/types.scm: New file.
12018         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12019         (VPATH): Add $(GUILE_SRCDIR).
12020         (GUILE_DIR): New variable.
12021         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12022         (all): Add stamp-guile dependency.
12023         (stamp-guile): New rule.
12024         (clean-guile, install-guile, uninstall-guile): New rules.
12025         (install-only): Add install-guile dependency.
12026         (uninstall): Add uninstall-guile dependency.
12027         (clean): Add clean-guile dependency.
12028
12029 2014-02-09  Doug Evans  <xdje42@gmail.com>
12030
12031         Revert this patch (which I approved, mea culpa).
12032
12033         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12034
12035         * Makefile.in (all-lib): Remove.
12036         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12037
12038 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12039
12040         Fix Python stack corruption.
12041         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12042         gdb_py_longest.
12043
12044 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12045
12046         * Makefile.in (all-lib): Remove.
12047         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12048
12049 2014-02-07  Doug Evans  <dje@google.com>
12050
12051         * extension-priv.h (extension_language_script_ops): Add comment.
12052         (extension_language_ops): Add comment.
12053         (active_ext_lang_state): Fix typo in comment.
12054
12055 2014-02-07  Pedro Alves  <palves@redhat.com>
12056
12057         PR breakpoints/16292
12058         * infrun.c (handle_signal_stop) <signal arrives while stepping
12059         over a breakpoint>: Switch back to the stepping thread.
12060
12061 2014-02-07  Yao Qi  <yao@codesourcery.com>
12062
12063         * target.c (target_xfer_partial): Return zero if LEN is zero.
12064
12065 2014-02-07  Yao Qi  <yao@codesourcery.com>
12066
12067         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12068         (ld_so_xfer_auxv): Likewise.
12069         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12070         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12071         * corelow.c (core_xfer_partial): Likewise.
12072         * ctf.c (ctf_xfer_partial): Likewise.
12073         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12074         (darwin_xfer_partial): Likewise.
12075         * exec.c (exec_xfer_partial): Likewise.
12076         * gnu-nat.c (gnu_xfer_partial): Likewise.
12077         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12078         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12079         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12080         * linux-nat.c (linux_xfer_siginfo): Likewise.
12081         (linux_proc_xfer_spu): Likewise.
12082         * procfs.c (procfs_xfer_partial): Likewise.
12083         * record-full.c (record_full_xfer_partial): Likewise.
12084         (record_full_core_xfer_partial): Likewise.
12085         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12086         * remote.c (remote_write_qxfer): Likewise.
12087         (remote_write_qxfer, remote_read_qxfer): Likewise.
12088         (remote_xfer_partial): Likewise.
12089         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12090         (rs6000_xfer_shared_libraries): Likewise.
12091         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12092         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12093         (spu_xfer_partial): Likewise.
12094         * target.c (memory_xfer_partial_1): Likewise.
12095         * tracepoint.c (tfile_xfer_partial): Likewise.
12096         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12097         (windows_xfer_partial): Likewise.
12098
12099 2014-02-07  Yao Qi  <yao@codesourcery.com>
12100
12101         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12102         comments.
12103         (core_xfer_shared_libraries_aix): Likewise.
12104         * gdbarch.c, gdbarch.h: Regenerated.
12105         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12106         ULONGEST.  Change 'len_avail' type to ULONGEST.
12107         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12108         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12109         declaration.
12110         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12111
12112 2014-02-07  Yao Qi  <yao@codesourcery.com>
12113
12114         * corefile.c (memory_error): Get 'exception' from ERR and pass
12115         'exception' to throw_error.
12116
12117 2014-02-06  Doug Evans  <xdje42@gmail.com>
12118
12119         * configure.ac (libpython checking): Remove all but python.o from
12120         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12121         * configure: Regenerate.
12122
12123         * Makefile.in (SFILES): Add extension.c.
12124         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12125         (COMMON_OBS): Add extension.o.
12126         * extension.h: New file.
12127         * extension-priv.h: New file.
12128         * extension.c: New file.
12129
12130         * python/python-internal.h: #include "extension.h".
12131         (gdbpy_auto_load_enabled): Declare.
12132         (gdbpy_apply_val_pretty_printer): Declare.
12133         (gdbpy_apply_frame_filter): Declare.
12134         (gdbpy_preserve_values): Declare.
12135         (gdbpy_breakpoint_cond_says_stop): Declare.
12136         (gdbpy_breakpoint_has_cond): Declare.
12137         (void source_python_script_for_objfile): Delete.
12138         * python/python.c: #include "extension-priv.h".
12139         Delete inclusion of "observer.h".
12140         (extension_language_python): Moved here and renamed from
12141         script_language_python in py-auto-load.c.
12142         Redefined to be of type extension_language_defn.
12143         (python_extension_script_ops): New global.
12144         (python_extension_ops): New global.
12145         (struct python_env): New member previous_active.
12146         (restore_python_env): Call restore_active_ext_lang.
12147         (ensure_python_env): Call set_active_ext_lang.
12148         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12149         New arg extlang.
12150         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12151         New arg extlang.
12152         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12153         New arg extlang.
12154         (gdbpy_eval_from_control_command): Renamed from
12155         eval_python_from_control_command, made static.  New arg extlang.
12156         (gdbpy_source_script) Renamed from source_python_script, made static.
12157         New arg extlang.
12158         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12159         result to int.  New arg extlang.
12160         (gdbpy_source_objfile_script): Renamed from
12161         source_python_script_for_objfile, made static.  New arg extlang.
12162         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12163         static.  New args extlang, extlang_printers.  Change result type to
12164         "void".
12165         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12166         static.  New arg extlang.  Rename arg printers to extlang_printers
12167         and change type to ext_lang_type_printers *.
12168         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12169         static.  Replace argument arg with extlang, extlang_printers.
12170         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12171         (!HAVE_PYTHON, source_python_script): Delete.
12172         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12173         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12174         (!HAVE_PYTHON, start_type_printers): Delete.
12175         (!HAVE_PYTHON, apply_type_printers): Delete.
12176         (!HAVE_PYTHON, free_type_printers): Delete.
12177         (_initialize_python): Delete call to observer_attach_before_prompt.
12178         (finalize_python): Set/restore active extension language.
12179         (gdbpy_finish_initialization) Renamed from
12180         finish_python_initialization, made static.  New arg extlang.
12181         (gdbpy_initialized): New function.
12182         * python/python.h: #include "extension.h".  Delete #include
12183         "value.h", "mi/mi-cmds.h".
12184         (extension_language_python): Declare.
12185         (GDBPY_AUTO_FILE_NAME): Delete.
12186         (enum py_bt_status): Moved to extension.h and renamed to
12187         ext_lang_bt_status.
12188         (enum frame_filter_flags): Moved to extension.h.
12189         (enum py_frame_args): Moved to extension.h and renamed to
12190         ext_lang_frame_args.
12191         (finish_python_initialization): Delete.
12192         (eval_python_from_control_command): Delete.
12193         (source_python_script): Delete.
12194         (apply_val_pretty_printer): Delete.
12195         (apply_frame_filter): Delete.
12196         (preserve_python_values): Delete.
12197         (gdbpy_script_language_defn): Delete.
12198         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12199         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12200
12201         * auto-load.c: #include "extension.h".
12202         (GDB_AUTO_FILE_NAME): Delete.
12203         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12204         (script_language_gdb): Delete, moved to extension.c and renamed to
12205         extension_language_gdb.
12206         (source_gdb_script_for_objfile): Delete.
12207         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12208         (loaded_script): Change type of language member to
12209         struct extension_language_defn *.
12210         (init_loaded_scripts_info): Initialize
12211         unsupported_script_warning_printed.
12212         (maybe_add_script): Make static.  Change type of language arg to
12213         struct extension_language_defn *.
12214         (clear_section_scripts): Reset unsupported_script_warning_printed.
12215         (auto_load_objfile_script_1): Rewrite to use extension language API.
12216         (auto_load_objfile_script): Make public.  Remove support-compiled-in
12217         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12218         (source_section_scripts): Rewrite to use extension language API.
12219         (load_auto_scripts_for_objfile): Rewrite to use
12220         auto_load_scripts_for_objfile.
12221         (collect_matching_scripts_data): Change type of language member to
12222         struct extension_language_defn *.
12223         (auto_load_info_scripts): Change type of language arg to
12224         struct extension_language_defn *.
12225         (unsupported_script_warning_print): New function.
12226         (script_not_found_warning_print): Make static.
12227         (_initialize_auto_load): Rewrite construction of scripts-directory
12228         help.
12229         * auto-load.h (struct objfile): Add forward decl.
12230         (struct script_language): Delete.
12231         (struct auto_load_pspace_info): Add forward decl.
12232         (struct extension_language_defn): Add forward decl.
12233         (maybe_add_script): Delete.
12234         (auto_load_objfile_script): Declare.
12235         (script_not_found_warning_print): Delete.
12236         (auto_load_info_scripts): Update prototype.
12237         (auto_load_gdb_scripts_enabled): Declare.
12238         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12239         auto_load_python_scripts_enabled and made public.
12240         (script_language_python): Delete, moved to python.c.
12241         (gdbpy_script_language_defn): Delete.
12242         (info_auto_load_python_scripts): Update to use
12243         extension_language_python.
12244
12245         * breakpoint.c (condition_command): Replace call to
12246         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12247         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12248         with call to breakpoint_ext_lang_cond_says_stop.
12249         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12250         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
12251         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12252         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12253         New arg slang.
12254         (local_setattro): Print name of extension language with existing
12255         stop condition.
12256
12257         * valprint.c (val_print, value_print): Update to call
12258         apply_ext_lang_val_pretty_printer.
12259         * cp-valprint.c (cp_print_value): Update call to
12260         apply_ext_lang_val_pretty_printer.
12261         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12262         (gdbpy_apply_val_pretty_printer): Renamed from
12263         apply_val_pretty_printer.  New arg extlang.
12264         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12265
12266         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12267         extension language API.
12268         * cli/cli-script.c (execute_control_command): Update to call
12269         eval_ext_lang_from_control_command.
12270
12271         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12272         enum ext_lang_bt_status values.  Update call to
12273         apply_ext_lang_frame_filter.
12274         (mi_cmd_stack_list_locals): Ditto.
12275         (mi_cmd_stack_list_args): Ditto.
12276         (mi_cmd_stack_list_variables): Ditto.
12277         * mi/mi-main.c: Delete #include "python/python-internal.h".
12278         Add #include "extension.h".
12279         (mi_cmd_list_features): Replace reference to python internal variable
12280         gdb_python_initialized with call to ext_lang_initialized_p.
12281
12282         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12283         Update to use enum ext_lang_frame_args.  Update to call
12284         apply_ext_lang_frame_filter.
12285         * python/py-framefilter.c (extract_sym): Update to use enum
12286         ext_lang_bt_status.
12287         (extract_value, py_print_type, py_print_value): Ditto.
12288         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12289         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12290         (py_print_frame): Ditto.
12291         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12292         New arg extlang.  Update to use enum ext_lang_bt_status.
12293
12294         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12295         finish_python_initialization.  Replace with call to
12296         finish_ext_lang_initialization.
12297
12298         * typeprint.c (do_free_global_table): Update to call
12299         free_ext_lang_type_printers.
12300         (create_global_typedef_table): Update to call
12301         start_ext_lang_type_printers.
12302         (find_global_typedef): Update to call apply_ext_lang_type_printers.
12303         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12304         (type_print_options): Change type of global_printers from "void *"
12305         to "struct ext_lang_type_printers *".
12306
12307         * value.c (preserve_values): Update to call preserve_ext_lang_values.
12308         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12309         (gdbpy_preserve_values): Renamed from preserve_python_values.
12310         New arg extlang.
12311         (!HAVE_PYTHON, preserve_python_values): Delete.
12312
12313         * utils.c (quit_flag): Delete, moved to extension.c.
12314         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12315         extension.c.
12316
12317         * eval.c: Delete #include "python/python.h".
12318         * main.c: Delete #include "python/python.h".
12319
12320         * defs.h: Update comment.
12321
12322 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
12323
12324         GDB 7.7 released.
12325
12326 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
12327
12328         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12329         defined.
12330
12331 2014-02-05  Yao Qi  <yao@codesourcery.com>
12332
12333         * remote.c (remote_pass_signals): Remove local 'buf' and use
12334         rs->buf.
12335         (remote_program_signals): Likewise.
12336
12337 2014-02-05  Yao Qi  <yao@codesourcery.com>
12338
12339         * ctf.c: Include "inferior.h" and "gdbthread.h".
12340         (CTF_PID): A new macro.
12341         (ctf_open): Call inferior_appeared and add_thread_silent.
12342         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12343         (ctf_thread_alive): New function.
12344         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12345
12346 2014-02-05  Yao Qi  <yao@codesourcery.com>
12347
12348         Revert this patch:
12349
12350         2013-05-24  Yao Qi  <yao@codesourcery.com>
12351
12352         * tracepoint.c (TFILE_PID): Remove.
12353         (tfile_open): Don't add thread and inferior.
12354         (tfile_close): Don't set 'inferior_ptid'.  Don't call
12355         exit_inferior_silent.
12356         (tfile_thread_alive): Remove.
12357         (init_tfile_ops): Don't set field 'to_thread_alive' of
12358         tfile_ops.
12359
12360 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
12361
12362         * remote.c (remote_start_remote): Call remote_check_symbols even
12363         if only symbol-file (not file) has been given.
12364
12365 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12366
12367         * gdbarch.sh (skip_entrypoint): New callback.
12368         * gdbarch.c, gdbarch.h: Regenerate.
12369         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12370         * infrun.c (fill_in_stop_func): Likewise.
12371         * ppc-linux-tdep.c: Include "elf/ppc64.h".
12372         (ppc_elfv2_elf_make_msymbol_special): New function.
12373         (ppc_elfv2_skip_entrypoint): Likewise.
12374         (ppc_linux_init_abi): Install them for ELFv2.
12375
12376 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12377
12378         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12379         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12380         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12381         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
12382         structures returned in GPRs.
12383
12384 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12385
12386         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12387         offset to the stack parameter list for the ELFv2 ABI.
12388
12389 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12390
12391         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12392         set_gdbarch_convert_from_func_ptr_addr and
12393         set_gdbarch_elf_make_msymbol_special for ELFv1.
12394         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12395         function descriptors on ELFv1.
12396         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
12397         set up r12 at function entry.
12398
12399 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12400
12401         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12402         (struct gdbarch_tdep): New member elf_abi.
12403
12404         * rs6000-tdep.c: Include "elf/ppc64.h".
12405         (rs6000_gdbarch_init): Detect ELF ABI version.
12406
12407 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12408
12409         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12410         within a register pair holding a DFP 128-bit value on little-endian.
12411         (ppc64_sysv_abi_return_value_base): Likewise.
12412         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12413         (dfp_pseudo_register_write): Likewise.
12414
12415 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12416
12417         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12418         offset on little-endian when passing _Decimal32.
12419         (ppc64_sysv_abi_return_value_base): Likewise for return values.
12420
12421 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12422
12423         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12424         of the overlapped FP register within the VSX register on little-
12425         endian platforms.
12426         (efpr_pseudo_register_write): Likewise.
12427
12428 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12429
12430         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12431         offset on little-endian when passing small structures.
12432
12433 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12434
12435         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12436         (struct ppc64_sysv_argpos): New data structure.
12437         (ppc64_sysv_abi_push_float): Remove.
12438         (ppc64_sysv_abi_push_val): New function.
12439         (ppc64_sysv_abi_push_integer): Likewise.
12440         (ppc64_sysv_abi_push_freg): Likewise.
12441         (ppc64_sysv_abi_push_vreg): Likewise.
12442         (ppc64_sysv_abi_push_param): Likewise.
12443         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12444         (ppc64_sysv_abi_return_value_base): New function.
12445         (ppc64_sysv_abi_return_value): Refactor to use it.
12446
12447 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12448
12449         * NEWS: Document new target powerpc64le-*-linux*.
12450
12451 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
12452
12453         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12454         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12455         core dumps.
12456         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12457         register set used in ELF core dumps.  Add floating-point register set.
12458
12459 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
12460
12461         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12462         dwarf2_to_gdb[] table using symbolic constants.  Adjust
12463         penultimate entry from number representing the PC register
12464         to symbolic constant representing the MDR register.  Add
12465         constant for the PC register to the end of the table.
12466
12467 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12468
12469         * bsd-kvm.c: Include <sys/param.h>
12470
12471 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
12472
12473         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12474
12475 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
12476
12477         * ada-lang.h (clear_ada_sym_cache): Delete.
12478
12479 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12480
12481         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12482
12483 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
12484
12485         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12486           the sigreturn register save area only if the syscall is
12487           sigreturn.
12488
12489 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
12490
12491         * valops.c (value_slice): Minor reformatting.
12492
12493 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
12494
12495         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12496
12497 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
12498
12499         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12500         New static globals.
12501         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12502         (ada_ignore_descriptive_types_p): New static global.
12503         (find_parallel_type_by_descriptive_type): Return immediately
12504         if ada_ignore_descriptive_types_p is set.
12505         (_initialize_ada_language): Register new commands "maintenance
12506         set ada", "maintenance show ada", "maintenance set ada
12507         ignore-descriptive-types" and "maintenance show ada
12508         ignore-descriptive-types".
12509         * NEWS: Add entry for new "maint ada set/show
12510         ignore-descriptive-types" commands.
12511
12512 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
12513
12514         * record-btrace.c (record_btrace_close): Call btrace_teardown
12515         for all threads.
12516
12517 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12518
12519         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12520         "ui-out.h".
12521
12522 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12523
12524         * ada-typeprint (type_is_full_subrange_of_target_type):
12525         New function.
12526         (print_range): Add parameter bounds_prefered_p.  If not set,
12527         try printing range types using the name of their base type.
12528         (print_range_type): Add parameter bounds_prefered_p.
12529         Use it in call to print_range.
12530         (print_array_type, ada_print_type): Update calls to print_range
12531         and print_range_type.
12532
12533 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12534
12535         * ada-typeprint.c (print_array_type, print_choices, print_range)
12536         (print_range_bound, print_dynamic_range_bound, print_range_type):
12537         Remove declaration.
12538
12539 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12540
12541         * ada-typeprint.c (print_range): Add missing empty line
12542         after local declaration.
12543
12544 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12545
12546         * ada-valprint.c (print_optional_low_bound): Get index_type's
12547         target type for as long as it is a TYPE_CODE_RANGE.
12548
12549 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12550
12551         * procfs.c (procfs_make_note_section): Remove assertion and
12552         associated comment.
12553
12554 2014-01-24  Yao Qi  <yao@codesourcery.com>
12555
12556         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12557         * corelow.c (get_core_siginfo): Likewise.
12558
12559 2014-01-24  Yao Qi  <yao@codesourcery.com>
12560
12561         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12562         ULONGEST.  Don't check 'len' is negative.
12563         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12564
12565 2014-01-23  Tom Tromey  <tromey@redhat.com>
12566
12567         PR python/16485:
12568         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12569         Handle exception from frame.block.
12570         (FrameVars.fetch_frame_locals): Likewise.
12571
12572 2014-01-23  Tom Tromey  <tromey@redhat.com>
12573
12574         PR python/16487:
12575         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12576         on a NULL pointer.  Move "goto error" to correct place.
12577
12578 2014-01-23  Tom Tromey  <tromey@redhat.com>
12579
12580         PR python/16491:
12581         * python/py-framefilter.c (apply_frame_filter): Call
12582         ensure_python_env after computing gdbarch.
12583
12584 2014-01-23  Yao Qi  <yao@codesourcery.com>
12585
12586         * target.c (raw_memory_xfer_partial): Change argument type
12587         from void * to gdb_byte *.
12588         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12589
12590 2014-01-22  Doug Evans  <dje@google.com>
12591
12592         New gdbserver option --debug-format=timestamp.
12593         * NEWS: Mention it.
12594
12595 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12596
12597         * syscalls/s390x-linux.xml: New file.
12598         * syscalls/s390-linux.xml: New file.
12599         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12600         (XML_SYSCALL_FILENAME_S390X): Likewise.
12601         (op_svc): New enum value for SVC opcode.
12602         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12603         (s390_linux_get_syscall_number): New function.
12604         (s390_gdbarch_init): Register '*get_syscall_number' and the
12605         syscall xml file name.
12606         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12607         "s390-linux.xml" and "s390x-linux.xml".
12608         * NEWS: Announce new feature.
12609
12610 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12611
12612         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12613
12614 2014-01-22  Pedro Alves  <palves@redhat.com>
12615
12616         * xtensa-config.c: Include defs.h.
12617
12618 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12619
12620         * common/common-utils.h: Add "ARI:" comment beside __func__
12621         reference.
12622
12623 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12624
12625         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12626         documentation a bit.
12627
12628 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12629
12630         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12631         * configure: Regenerate.
12632         * aclocal.m4: Regenerate.
12633         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12634         New substituted variables.
12635         (install-strip): New target.
12636         (INSTALL_SCRIPT): New substituted variable.
12637         (FLAGS_TO_PASS): Add it.
12638         (install-only): Use $(INSTALL_SCRIPT) rather than
12639         $(INSTALL_PROGRAM) for gcore.
12640
12641 2014-01-20  Tom Tromey  <tromey@redhat.com>
12642
12643         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12644         together.
12645
12646 2014-01-20  Tom Tromey  <tromey@redhat.com>
12647
12648         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12649         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12650         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12651         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12652         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12653         (struct cmd_list_element) <flags>: Remove.
12654         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12655         doc_allocated>: New fields.
12656         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12657         bitfields.
12658         * maint.c (maintenance_do_deprecate): Update.
12659         * top.c (execute_command): Update.
12660
12661 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12662
12663         * xtensa-linux-nat.c: Include asm/ptrace.h.
12664
12665 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12666
12667         * Makefile.in (SFILES): Add d-support.c.
12668         (COMMON_OBS): Add d-support.o.
12669         * d-lang.h (d_parse_symbol): Add comment, now defined in
12670         d-support.c.
12671         * d-lang.c (parse_call_convention)
12672         (parse_attributes, parse_function_types)
12673         (parse_function_args, parse_type, parse_identifier)
12674         (call_convention_p, d_parse_symbol): Move functions to ...
12675         * d-support.c: ... New file.
12676
12677 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12678
12679         * d-lang.h (d_parse_symbol): Add declaration.
12680         * d-lang.c (extract_identifiers)
12681         (extract_type_info): Remove functions.
12682         (parse_call_convention, parse_attributes)
12683         (parse_function_types, parse_function_args)
12684         (parse_type, parse_identifier, call_convention_p)
12685         (d_parse_symbol): New functions.
12686         (d_demangle): Use d_parse_symbol to demangle D symbols.
12687
12688 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12689
12690         * d-lang.h (struct builtin_d_type): New data type.
12691         (builtin_d_type): Add declaration.
12692         * d-lang.c (d_language_arch_info, build_d_types)
12693         (builtin_d_type): New functions.
12694         (enum d_primitive_types): New data type.
12695         (d_language_defn): Change c_language_arch_info to
12696         d_language_arch_info.
12697         (d_type_data): New static variable.
12698         (_initialize_d_language): Initialize d_type_data.
12699
12700 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12701
12702         * d-lang.h (d_main_name): Add declaration.
12703         * d-lang.c (d_main_name): New function.
12704         * symtab.c (find_main_name): Add call to d_main_name.
12705
12706 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12707
12708         * d-lang.c (d_language_defn): Change macro_expansion_c to
12709         macro_expansion_no.
12710
12711 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12712
12713         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12714
12715 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12716
12717         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12718         gdb_exception" declaration.
12719         * remote.c (getpkt_or_notif_sane): Likewise.
12720
12721 2014-01-17  Doug Evans  <dje@google.com>
12722
12723         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12724         function, contents of dirnames_to_char_ptr_vec_append moved here.
12725         (delim_string_to_char_ptr_vec): New function.
12726         (dirnames_to_char_ptr_vec_append): Rewrite.
12727         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12728
12729 2014-01-17  Doug Evans  <dje@google.com>
12730
12731         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12732         and moved here ...
12733         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12734         #include "common-utils.h".
12735         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12736         * common/vec.h (VEC_ASSERT_PASS): Update.
12737         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12738         (MACH_CHECK_ERROR): Update.
12739
12740 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12741
12742         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12743         comments.
12744         * gdbarch.h: Regenerate.
12745
12746 2014-01-16  Tom Tromey  <tromey@redhat.com>
12747
12748         * value.c (struct value) <regnum>: Move earlier.
12749
12750 2014-01-16  Tom Tromey  <tromey@redhat.com>
12751
12752         * remote.c (extended_remote_create_inferior): Rename from
12753         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12754         old implementation.
12755
12756 2014-01-16  Pedro Alves  <palves@redhat.com>
12757
12758         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12759         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12760         the backchain.
12761
12762 2014-01-16  Doug Evans  <dje@google.com>
12763
12764         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12765
12766 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12767
12768         * btrace.h (btrace_thread_flag): New.
12769         (struct btrace_thread_info) <flags>: New.
12770         * record-btrace.c (record_btrace_resume_thread)
12771         (record_btrace_find_thread_to_move, btrace_step_no_history)
12772         (btrace_step_stopped, record_btrace_start_replaying)
12773         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12774         (record_btrace_find_resume_thread): New.
12775         (record_btrace_resume, record_btrace_wait): Extend.
12776         (record_btrace_can_execute_reverse): New.
12777         (record_btrace_open): Fail in non-stop mode.
12778         (record_btrace_set_replay): Split into this, ...
12779         (record_btrace_stop_replaying): ... this, ...
12780         (record_btrace_clear_histories): ... and this.
12781         (init_record_btrace_ops): Init to_can_execute_reverse.
12782         * NEWS: Announce it.
12783
12784 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12785
12786         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12787         (forward_target_decr_pc_after_break)
12788         (target_decr_pc_after_break): New.
12789         * target.c (forward_target_decr_pc_after_break)
12790         (target_decr_pc_after_break): New.
12791         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12792         instead of gdbarch_decr_pc_after_break.
12793         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12794         instead of gdbarch_decr_pc_after_break.
12795         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12796         instead of gdbarch_decr_pc_after_break.
12797         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12798         instead of gdbarch_decr_pc_after_break.
12799         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12800         instead of gdbarch_decr_pc_after_break.
12801         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12802         instead of gdbarch_decr_pc_after_break.
12803
12804 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12805
12806         * btrace.c: Include regcache.h.
12807         (btrace_add_pc): New.
12808         (btrace_enable): Call btrace_add_pc.
12809         (btrace_is_empty): New.
12810         * btrace.h (btrace_is_empty): New.
12811         * record-btrace.c (require_btrace, record_btrace_info): Call
12812         btrace_is_empty.
12813
12814 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12815
12816         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12817         Support delta reads.
12818         (linux_disable_btrace): Change return type.
12819         * common/linux-btrace.h (linux_read_btrace): Change parameters
12820         and return type to allow error reporting.  Update users.
12821         (linux_disable_btrace): Change return type.  Update users.
12822         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12823         New.
12824         (btrace_error): New.
12825         (btrace_block) <begin>: Comment on BEGIN == 0.
12826         * btrace.c (btrace_compute_ftrace): Start from the end of
12827         the current trace.
12828         (btrace_stitch_trace, btrace_clear_history): New.
12829         (btrace_fetch): Read delta trace, return if replaying.
12830         (btrace_clear): Move clear history code to btrace_clear_history.
12831         (parse_xml_btrace): Throw an error if parsing failed.
12832         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12833         and return type to allow error reporting.
12834         (target_read_btrace): Change parameters and return type to allow
12835         error reporting.
12836         * target.c (target_read_btrace): Update.
12837         * remote.c (remote_read_btrace): Support delta reads.  Pass
12838         errors on.
12839         * NEWS: Announce it.
12840
12841 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12842
12843         * record.h (record_btrace_frame_unwind)
12844         (record_btrace_tailcall_frame_unwind): New declarations.
12845         * dwarf2-frame: Include record.h
12846         (dwarf2_frame_cfa): Throw an error for btrace frames.
12847         * record-btrace.c: Include hashtab.h.
12848         (btrace_get_bfun_name): New.
12849         (btrace_call_history): Call btrace_get_bfun_name.
12850         (struct btrace_frame_cache): New.
12851         (bfcache): New.
12852         (bfcache_hash, bfcache_eq, bfcache_new): New.
12853         (btrace_get_frame_function): New.
12854         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12855         (record_btrace_frame_this_id): Compute own id.
12856         (record_btrace_frame_prev_register): Provide PC, throw_error
12857         for all other registers.
12858         (record_btrace_frame_sniffer): Detect btrace frames.
12859         (record_btrace_tailcall_frame_sniffer): New.
12860         (record_btrace_frame_dealloc_cache): New.
12861         (record_btrace_frame_unwind): Add new functions.
12862         (record_btrace_tailcall_frame_unwind): New.
12863         (_initialize_record_btrace): Allocate cache.
12864         * btrace.c (btrace_clear): Call reinit_frame_cache.
12865         * NEWS: Announce it.
12866
12867 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12868
12869         * record-btrace.c (record_btrace_set_replay)
12870         (record_btrace_goto_begin, record_btrace_goto_end)
12871         (record_btrace_goto): New.
12872         (init_record_btrace_ops): Initialize them.
12873         * NEWS: Announce it.
12874
12875 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12876
12877         * record-btrace.c (record_btrace_find_new_threads)
12878         (record_btrace_thread_alive): New.
12879         (init_record_btrace_ops): Initialize to_find_new_threads and
12880         to_thread_alive.
12881
12882 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12883
12884         * record-btrace.c (record_btrace_resume): New.
12885         (record_btrace_wait): New.
12886         (init_record_btrace_ops): Initialize to_wait and to_resume.
12887
12888 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12889
12890         * record-btrace.c (record_btrace_xfer_partial)
12891         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12892         (record_btrace_allow_memory_access): New.
12893         (init_record_btrace_ops): Initialize new methods.
12894         * target.c (raw_memory_xfer_partial): Bail out if target reports
12895         that this memory is not available.
12896
12897 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12898
12899         * target.h (target_ops) <to_insert_breakpoint>
12900         <to_remove_breakpoint>: Add target_ops parameter.
12901         (forward_target_insert_breakpoint): New.
12902         (forward_target_remove_breakpoint): New.
12903         (memory_remove_breakpoint, memory_insert_breakpoint):
12904         Add target_ops parameter.
12905         * target.c (target_insert_breakpoint): Split into this and ...
12906         (forward_target_insert_breakpoint): ... this.
12907         (target_remove_breakpoint): Split into this and ...
12908         (forward_target_remove_breakpoint): ... this.
12909         (debug_to_insert_breakpoint): Add target_ops parameter.
12910         Call forward_target_insert_breakpoint.
12911         (debug_to_remove_breakpoint): Add target_ops parameter.
12912         Call forward_target_remove_breakpoint.
12913         (update_current_target): Do not inherit or default to_insert_breakpoint
12914         and to_remove_breakpoint.
12915         * corelow.c (ignore): Add target_ops parameter.
12916         * exec.c (ignore): Add target_ops parameter.
12917         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12918         Add target_ops parameter.
12919         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12920         Add target_ops parameter.
12921         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12922         Add target_ops parameter.
12923         * record-full.c (record_full_beneath_to_insert_breakpoint)
12924         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12925         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12926         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12927         (record_full_core_remove_breakpoint): Add target_ops parameter.
12928         Update users.
12929         (record_full_beneath_to_insert_breakpoint_ops)
12930         (record_full_beneath_to_remove_breakpoint_ops)
12931         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12932         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12933         tmp_to_remove_breakpoint_ops,
12934         record_full_beneath_to_insert_breakpoint_ops, and
12935         record_full_beneath_to_remove_breakpoint_ops.
12936         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12937         (m32r_remove_breakpoint): Add target_ops parameter.
12938         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12939         Add target_ops parameter.
12940         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12941         Add target_ops parameter.
12942
12943 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12944             Markus Metzger  <markus.t.metzger@intel.com>
12945
12946         * record-btrace.c: Include frame-unwind.h.
12947         (record_btrace_frame_unwind_stop_reason)
12948         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12949         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12950         New.
12951         (init_record_btrace_ops): Install it.
12952
12953 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12954
12955         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12956         get_prev_frame_1.
12957
12958 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12959
12960         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12961         earlier.
12962
12963 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12964
12965         * frame-unwind.c: Include target.h.
12966         (frame_unwind_try_unwinder): New function with code from ...
12967         (frame_unwind_find_by_frame): ... here.  New variable
12968         unwinder_from_target, call also target_get_unwinder)
12969         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12970         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12971         * target.h (struct target_ops): New fields to_get_unwinder and
12972         to_get_tailcall_unwinder.
12973         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12974
12975 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12976
12977         * record-btrace.c (record_btrace_fetch_registers)
12978         (record_btrace_store_registers)
12979         (record_btrace_to_prepare_to_store): New.
12980         (init_record_btrace_ops): Add the above.
12981
12982 2014-01-16  Tom Tromey  <tromey@redhat.com>
12983
12984         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12985         * target.h (struct target_ops) <to_prepare_to_store>: Add
12986         argument.
12987         (target_prepare_to_store): Add argument.
12988         * target.c (debug_to_prepare_to_store): Add argument.
12989         (update_current_target): Update.
12990         * remote.c (remote_prepare_to_store): Add 'self' argument.
12991         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12992         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12993         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12994         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12995         argument.
12996         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12997         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12998         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12999         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13000         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13001
13002 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13003
13004         * btrace.h (replay) <replay>: New.
13005         (btrace_is_replaying): New.
13006         * btrace.c (btrace_clear): Free replay iterator.
13007         (btrace_is_replaying): New.
13008         * record-btrace.c (record_btrace_is_replaying): New.
13009         (record_btrace_info): Print insn number if replaying.
13010         (record_btrace_insn_history): Start at replay position.
13011         (record_btrace_call_history): Start at replay position.
13012         (init_record_btrace_ops): Init to_record_is_replaying.
13013
13014 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13015
13016         * record-btrace.c (record_btrace_insn_history_range): Include
13017         end.
13018         (record_btrace_insn_history_from): Adjust range.
13019         (record_btrace_call_history_range): Include
13020         end.
13021         (record_btrace_call_history_from): Adjust range.
13022         * NEWS: Announce changes.
13023
13024 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13025
13026         * record.h (enum record_print_flag)
13027         <record_print_indent_calls>: New.
13028         * record.c (get_call_history_modifiers): Recognize /c modifier.
13029         (_initialize_record): Document /c modifier.
13030         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13031         Reorder fields.  Optionally indent the function name.  Update
13032         all users.
13033         * NEWS: Announce changes.
13034
13035 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13036
13037         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13038
13039 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13040
13041         * btrace.c (ftrace_new_function): Start counting at one.
13042         * record-btrace.c (record_btrace_info): Adjust number of calls
13043         and insns.
13044         * NEWS: Announce it.
13045
13046 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13047
13048         * record-btrace.c (btrace_call_history_insn_range): Print
13049         insn range as [begin, end].
13050
13051 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13052
13053         * btrace.h (struct btrace_func_link): New.
13054         (enum btrace_function_flag): New.
13055         (struct btrace_inst): Rename to ...
13056         (struct btrace_insn): ...this. Update all users.
13057         (struct btrace_func) <ibegin, iend>: Remove.
13058         (struct btrace_func_link): New.
13059         (struct btrace_func): Rename to ...
13060         (struct btrace_function): ...this. Update all users.
13061         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13062         (number, level, flags>: New.
13063         (struct btrace_insn_iterator): Rename to ...
13064         (struct btrace_insn_history): ...this.
13065         Update all users.
13066         (struct btrace_insn_iterator, btrace_call_iterator): New.
13067         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13068         (struct btrace_target_info) <begin, end, level>
13069         <insn_history, call_history>: New.
13070         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13071         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13072         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13073         (btrace_call_number, btrace_call_begin, btrace_call_end)
13074         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13075         (btrace_find_function_by_number, btrace_set_insn_history)
13076         (btrace_set_call_history): New.
13077         * btrace.c (btrace_init_insn_iterator)
13078         (btrace_init_func_iterator, compute_itrace): Remove.
13079         (ftrace_print_function_name, ftrace_print_filename)
13080         (ftrace_skip_file): Change
13081         parameter to const.
13082         (ftrace_init_func): Remove.
13083         (ftrace_debug): Use new btrace_function fields.
13084         (ftrace_function_switched): Also consider gaining and
13085         losing symbol information).
13086         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13087         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13088         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13089         New.
13090         (ftrace_new_function): Move. Remove debug print.
13091         (ftrace_update_lines, ftrace_update_insns): New.
13092         (ftrace_update_function): Check for call, ret, and jump.
13093         (compute_ftrace): Renamed to ...
13094         (btrace_compute_ftrace): ...this. Rewritten to compute call
13095         stack.
13096         (btrace_fetch, btrace_clear): Updated.
13097         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13098         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13099         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13100         (btrace_call_number, btrace_call_begin, btrace_call_end)
13101         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13102         (btrace_find_function_by_number, btrace_set_insn_history)
13103         (btrace_set_call_history): New.
13104         * record-btrace.c (require_btrace): Use new btrace thread
13105         info fields.
13106         (record_btrace_info, btrace_insn_history)
13107         (record_btrace_insn_history, record_btrace_insn_history_range):
13108         Use new btrace thread info fields and new iterator.
13109         (btrace_func_history_src_line): Rename to ...
13110         (btrace_call_history_src_line): ...this. Use new btrace
13111         thread info fields.
13112         (btrace_func_history): Rename to ...
13113         (btrace_call_history): ...this. Use new btrace thread info
13114         fields and new iterator.
13115         (record_btrace_call_history, record_btrace_call_history_range):
13116         Use new btrace thread info fields and new iterator.
13117
13118 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13119
13120         * frame.h (frame_id_build_unavailable_stack_special): New.
13121         * frame.c (frame_id_build_unavailable_stack_special): New.
13122
13123 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13124
13125         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13126         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13127         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13128         to gdbarch.
13129         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13130         (i386_insn_is_jump, i386_jmp_p): New.
13131         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13132         insn_is_jump to gdbarch.
13133         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13134         * gdbarch.h: Regenerated.
13135         * gdbarch.c: Regenerated.
13136         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13137         (default_insn_is_jump): New.
13138         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13139         (default_insn_is_jump): New.
13140
13141 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13142
13143         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13144         Change to ...
13145         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13146         (btrace_read_type) <btrace_read_new>: Change to ...
13147         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13148
13149 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13150
13151         * common/linux-btrace.c (linux_read_btrace): Free trace from
13152         previous iteration.
13153
13154 2014-01-15  Doug Evans  <dje@google.com>
13155
13156         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13157         uint32_t.
13158
13159 2014-01-15  Tom Tromey  <tromey@redhat.com>
13160
13161         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13162         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13163         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13164         (set_objfile_main_name): New function.
13165         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13166         language_of_main>: New fields.
13167         (set_objfile_main_name): Declare.
13168         * symtab.c (find_main_name): Loop over objfiles to find the main
13169         name and language.
13170         (set_main_name): Now static.
13171         (get_main_info): Add comment.
13172         * symtab.h (set_main_name): Don't declare.
13173
13174 2014-01-15  Tom Tromey  <tromey@redhat.com>
13175
13176         * symtab.c (main_progspace_key): New global.
13177         (struct main_info): New.
13178         (name_of_main, language_of_main): Remove.
13179         (get_main_info, main_info_cleanup): New function.
13180         (set_main_name, main_name, main_language): Use get_main_info.
13181         (_initialize_symtab): Initialize main_progspace_key.
13182
13183 2014-01-15  Tom Tromey  <tromey@redhat.com>
13184
13185         * dbxread.c (process_one_symbol): Update.
13186         * dwarf2read.c (read_partial_die): Update.
13187         * symfile.c (set_initial_language): Call main_language.
13188         * symtab.c (language_of_main): Now static.
13189         (set_main_name): Add 'lang' parameter.
13190         (find_main_name): Update.
13191         (main_language): New function.
13192         (symtab_observer_executable_changed): Update.
13193         * symtab.h (set_main_name): Update.
13194         (language_of_main): Remove.
13195         (main_language): Declare.
13196
13197 2014-01-15  Tom Tromey  <tromey@redhat.com>
13198
13199         * symfile.c (init_entry_point_info): Use new "initialized" field.
13200         Update.
13201         * objfiles.h (struct entry_point) <initialized>: New field.
13202         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13203         (struct objfile) <ei>: ...here.  Remove.
13204         * objfiles.c (entry_point_address_query): Update.
13205
13206 2014-01-15  Tom Tromey  <tromey@redhat.com>
13207
13208         * objfiles.c (entry_point_address_query): Relocate entry point
13209         address.
13210         (objfile_relocate1): Do not relocate entry point address.
13211         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13212         <the_bfd_section_index>: New field.
13213         * symfile.c (init_entry_point_info): Find the entry point's
13214         section.
13215
13216 2014-01-15  Tom Tromey  <tromey@redhat.com>
13217
13218         * solib-frv.c (enable_break): Use entry_point_address_query.
13219
13220 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13221
13222         * NEWS: Add note on improved process record-replay on
13223         arm*-linux* targets.
13224
13225 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13226
13227         * arm-tdep.c (enum arm_record_result): New enum.
13228         (arm_record_unsupported_insn): New function.
13229         (arm_record_coproc_data_proc): Removed.
13230         (thumb2_record_ld_st_multiple): New function.
13231         (thumb2_record_ld_st_dual_ex_tbb): New function.
13232         (thumb2_record_data_proc_sreg_mimm): New function.
13233         (thumb2_record_ps_dest_generic): New function.
13234         (thumb2_record_branch_misc_cntrl): New function.
13235         (thumb2_record_str_single_data): New function.
13236         (thumb2_record_ld_mem_hints): New function.
13237         (thumb2_record_ld_word): New function.
13238         (thumb2_record_lmul_lmla_div): New function.
13239         (thumb2_record_decode_insn_handler): New function.
13240         (decode_insn): Add thumb32 instruction handlers.
13241
13242 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13243
13244         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13245         (struct arm_linux_record_tdep): Declare.
13246         (arm_canonicalize_syscall): New function.
13247         (arm_all_but_pc_registers_record): New function.
13248         (arm_linux_syscall_record): New function.
13249         (arm_linux_init_abi): Add syscall recording constructs.
13250         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13251         decoding.  (arm_record_coproc_data_proc): Update arm syscall
13252         decoding.
13253         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13254         <arm_syscall_record>: New field.
13255         * configure.tgt (arm*-*-linux*): Add linux-record.o to
13256         gdb_target_obs.
13257
13258 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13259
13260         * arm-tdep.c (thumb_record_misc): Update to use sp as base
13261         register for push instruction recording.
13262
13263 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13264
13265         * arm-tdep.c (thumb_record_misc): Update to correct logical
13266         error while recording ldm, ldmia and pop instructions.
13267
13268 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
13269
13270         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13271
13272 2014-01-15  Pedro Alves  <palves@redhat.com>
13273
13274         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13275         (go32_resume, go32_fetch_registers, store_register)
13276         (go32_store_registers, go32_prepare_to_store)
13277         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13278         (go32_create_inferior, go32_can_run, go32_terminal_init)
13279         (go32_terminal_inferior, go32_terminal_ours): Delete forward
13280         declarations.
13281
13282 2014-01-15  Tom Tromey  <tromey@redhat.com>
13283
13284         * target.h (async_callback_ftype): New typedef.
13285         (struct target_ops) <to_async>: Use it.
13286
13287 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13288
13289         * python/py-value.c (get_field_type): Remove unnecessary curly
13290         braces for single-statement if block.
13291
13292 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
13293
13294         * python/py-type.c (convert_field): Add missing empty line
13295         after declarations.
13296
13297 2014-01-14  Doug Evans  <dje@google.com>
13298
13299         * symfile.h (expand_symtabs_matching): Renamed from
13300         expand_partial_symbol_names.  Update prototype.
13301         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13302         * symfile.c (expand_symtabs_matching): Renamed from
13303         expand_partial_symbol_names.  New args file_matcher, kind.
13304         Rename arg fun to symbol_matcher.
13305         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13306         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13307         ada_expand_partial_symbol_name.
13308         (ada_make_symbol_completion_list): Update to call
13309         expand_symtabs_matching.
13310         (ada_add_global_exceptions): Call expand_symtabs_matching.
13311         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13312         call map_symbol_filenames.
13313         * symtab.c (sources_info): Update to call map_symbol_filenames.
13314         (search_symbols): Call expand_symtabs_matching.
13315         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13316         (default_make_symbol_completion_list_break_on): Update to call
13317         expand_symtabs_matching.
13318         (make_source_files_completion_list): Update to call
13319         map_symbol_filenames.
13320
13321 2014-01-14  Doug Evans  <dje@google.com>
13322
13323         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13324         (expand_symtabs_symbol_matcher_ftype): New typedef.
13325         (quick_symbol_functions.expand_symtabs_matching): Update to use.
13326         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13327         * symfile.c (expand_partial_symbol_names): Update to use
13328         expand_symtabs_symbol_matcher_ftype.
13329         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13330         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13331         Arg name_matcher renamed to symbol_matcher.
13332         * psymtab.c (recursively_search_psymtabs): Update to use
13333         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
13334         sym_matcher.
13335         (expand_symtabs_matching_via_partial): Update to use
13336         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13337         Arg name_matcher renamed to symbol_matcher.
13338
13339 2014-01-14  Doug Evans  <dje@google.com>
13340
13341         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13342         (map_partial_symbol_filenames): Ditto.
13343         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13344         (map_partial_symbol_filenames): Ditto.
13345         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13346         (map_partial_symbol_filenames): Ditto.
13347         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13348         (map_partial_symbol_filenames): Ditto.
13349         * symtab.c: Delete #include "psymtab.h".
13350
13351 2014-01-14  Pedro Alves  <palves@redhat.com>
13352             Tom Tromey  <tromey@redhat.com>
13353
13354         * infrun.c (use_displaced_stepping): Use find_record_target
13355         instead of RECORD_IS_USED.
13356         (adjust_pc_after_break): Use record_full_is_used instead of
13357         RECORD_IS_USED.
13358         * record-btrace.c (record_btrace_open): Call record_preopen
13359         instead of checking RECORD_IS_USED.
13360         * record-full.c (record_full_shortname)
13361         (record_full_core_shortname): New globals.
13362         (record_full_is_used): New function.
13363         (find_full_open): Call record_preopen instead of checking
13364         RECORD_IS_USED.
13365         (init_record_full_ops): Set the target's shortname to
13366         record_full_shortname.
13367         (init_record_full_core_ops): Set the target's shortname to
13368         record_full_core_shortname.
13369         * record-full.h (record_full_is_used): Declare.
13370         * record.c (find_record_target): Make extern.
13371         (record_preopen): New function.
13372         * record.h (RECORD_IS_USED): Delete macro.
13373         (find_record_target, record_preopen): Declare functions.
13374
13375 2014-01-14  Yao Qi  <yao@codesourcery.com>
13376
13377         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13378         'len''s type to ULONGEST.
13379         (core_xfer_shared_libraries_aix): Likewise.
13380         * gdbarch.c, gdbarch.h: Regenerated.
13381         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13382         Change type of 'len' to ULONGEST.
13383         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13384         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13385
13386 2014-01-14  Yao Qi  <yao@codesourcery.com>
13387
13388         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13389         type of 'len' to ULONGEST.
13390         (linux_xfer_osdata_processgroups): Likewise.
13391         (linux_xfer_osdata_threads): Likewise.
13392         (linux_xfer_osdata_fds): Likewise.
13393         (linux_xfer_osdata_isockets): Likewise.
13394         (linux_xfer_osdata_shm): Likewise.
13395         (linux_xfer_osdata_sem): Likewise.
13396         (linux_xfer_osdata_msg): Likewise.
13397         (linux_common_xfer_osdata): Likewise.
13398         (struct osdata_type) <getter>: Likewise.
13399         * common/linux-osdata.h (linux_common_xfer_osdata): Update
13400         the declaration.
13401
13402 2014-01-14  Yao Qi  <yao@codesourcery.com>
13403
13404         * target.h (target_xfer_partial_ftype): Update.
13405         (struct target_ops) <to_xfer_partial>: Change 'len' type to
13406         ULONGEST.
13407         * aix-thread.c (aix_thread_xfer_partial): Change type of
13408         argument 'len' to ULONGEST.
13409         * auxv.c (procfs_xfer_auxv): Likewise.
13410         (ld_so_xfer_auxv): Likewise.
13411         (memory_xfer_auxv): Likewise.
13412         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13413         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13414         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13415         * corelow.c (core_xfer_partial): Likewise.
13416         * ctf.c (ctf_xfer_partial): Likewise.
13417         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
13418         '%u'.
13419         (darwin_read_dyld_info): Likewise.
13420         (darwin_xfer_partial): Likewise.
13421         * exec.c (section_table_xfer_memory_partial): Likewise.
13422         (exec_xfer_partial): Likewise.
13423         * exec.h (section_table_xfer_memory_partial): Update
13424         declaration.
13425         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
13426         instead of plongest.
13427         (gnu_xfer_partial): Likewise.
13428         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13429         (ia64_hpux_xfer_solib_got): Likewise.
13430         (ia64_hpux_xfer_partial): Likewise.
13431         * ia64-linux-nat.c (ia64_linux_xfer_partial):
13432         * inf-ptrace.c (inf_ptrace_xfer_partial):
13433         * inf-ttrace.c (inf_ttrace_xfer_partial):
13434         * linux-nat.c (linux_xfer_siginfo): Likewise.
13435         (linux_nat_xfer_partial): Likewise.
13436         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13437         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13438         * monitor.c (monitor_xfer_memory): Likewise.
13439         (monitor_xfer_partial): Likewise.
13440         * procfs.c (procfs_xfer_partial): Likewise.
13441         * record-full.c (record_full_xfer_partial): Likewise.
13442         (record_full_core_xfer_partial): Likewise.
13443         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
13444         instead of plongest.
13445         (gdbsim_xfer_partial): Likewise.
13446         * remote.c (remote_xfer_partial): Likewise.
13447         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13448         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13449         declaration.
13450         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13451         (rs6000_xfer_shared_libraries): Likewise.
13452         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13453         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13454         (sparc_xfer_partial): Likewise.
13455         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13456         (spu_xfer_partial): Likewise.
13457         * spu-multiarch.c (spu_xfer_partial): Likewise.
13458         * target.c (target_read_live_memory): Likewise.
13459         (memory_xfer_live_readonly_partial): Likewise.
13460         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13461         (target_xfer_partial, default_xfer_partial): Likewise.
13462         (current_xfer_partial): Likewise.
13463         * tracepoint.c (tfile_xfer_partial): Likewise.
13464         * windows-nat.c (windows_xfer_memory): Likewise.  Call
13465         pulongest instead of plongest.
13466         (windows_xfer_partial): Likewise.
13467         (windows_xfer_shared_libraries): Likewise.
13468
13469 2014-01-14  Yao Qi  <yao@codesourcery.com>
13470
13471         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13472         target_xfer_partial_ftype.
13473
13474 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
13475
13476         PR python/15464
13477         PR python/16113
13478         * valops.c (value_struct_elt_bitpos): New function
13479         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13480         object to 'None' if the field name is an empty string ("").
13481         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13482         attribute to look for a field when 'name' is 'None'.
13483         (get_field_type): New function
13484
13485 2014-01-13  Doug Evans  <dje@google.com>
13486
13487         PR symtab/16426
13488         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13489         (try_open_dwop_file): Ditto.
13490         * gdb_bfd.c: #include "vec.h".
13491         (bfdp): New typedef.
13492         (struct gdb_bfd_data): New member included_bfds.
13493         (gdb_bfd_unref): Unref all included bfds.
13494         (gdb_bfd_record_inclusion): New function.
13495         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13496
13497 2014-01-13  Tom Tromey  <tromey@redhat.com>
13498
13499         * gdbcore.h (deprecated_core_resize_section_table): Remove.
13500
13501 2014-01-13  Tom Tromey  <tromey@redhat.com>
13502
13503         * defs.h (use_windows): Remove.
13504         * gdb.c (main): Update.
13505         * main.c (captured_main, gdb_main): Update.
13506         * main.h (struct captured_main_args) <use_windows>: Remove.
13507         * top.c (use_windows): Remove.
13508
13509 2014-01-13  Tom Tromey  <tromey@redhat.com>
13510
13511         * defs.h (deprecated_flush_hook): Remove.
13512
13513 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13514
13515         PR threads/16216
13516         * linux-thread-db.c (try_thread_db_load): Add parameter
13517         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
13518         (try_thread_db_load_from_pdir_1): Move it there from here.
13519         (try_thread_db_load_from_sdir): Update caller.
13520         (try_thread_db_load_from_dir): Move it there from here.
13521
13522 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
13523
13524         * regformats/regdat.sh: Always rewrite the register file.
13525
13526 2014-01-13  Pedro Alves  <palves@redhat.com>
13527
13528         * Makefile.in (CHECK_HEADERS): New variable.
13529         (check-headers:): New rule.
13530
13531 2014-01-13  Tom Tromey  <tromey@redhat.com>
13532
13533         * cli/cli-setshow.c (do_set_command): Update.
13534         * defs.h (deprecated_set_hook): Remove.
13535         * top.c (deprecated_set_hook): Remove.
13536
13537 2014-01-13  Pedro Alves  <palves@redhat.com>
13538
13539         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13540         the tracepoint if the PC is a pseudo-register.
13541
13542 2014-01-13  Tom Tromey  <tromey@redhat.com>
13543
13544         * defs.h (XCALLOC): Remove.
13545         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13546         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13547         * dwarf2loc.c (allocate_piece_closure): Likewise.
13548         * elfread.c (elf_symfile_segments): Likewise.
13549         (elf_symfile_segments): Likewise.
13550         * gdbtypes.c (copy_type_recursive): Likewise.
13551         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13552         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13553         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13554         XCALLOC.
13555         * mt-tdep.c (mt_gdbarch_init): Likewise.
13556         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13557         XCALLOC.
13558         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13559         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13560         * registry.c (registry_alloc_data): Likewise.
13561         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13562         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13563         * serial.c (serial_fdopen_ops): Likewise.
13564         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13565         XCALLOC.
13566         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13567         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13568         not XCALLOC.
13569
13570 2014-01-13  Tom Tromey  <tromey@redhat.com>
13571
13572         * defs.h (XMALLOC): Remove.
13573         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13574         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13575         * cli-out.c (struct ui_out *): Likewise.
13576         * cli/cli-dump.c (add_dump_command): Likewise.
13577         (add_dump_command): Likewise.
13578         * complaints.c (get_complaints): Likewise.
13579         (find_complaint): Likewise.
13580         * dwarf2-frame.c (execute_cfa_program): Likewise.
13581         * dwarf2read.c (abbrev_table_read_table): Likewise.
13582         * gdbarch.sh: Likewise.
13583         * gdbarch.c: Rebuild.
13584         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13585         * interps.c (interp_new): Likewise.
13586         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13587         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13588         * mi/mi-console.c (mi_console_file_new): Likewise.
13589         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13590         * mi/mi-out.c (mi_out_new): Likewise.
13591         * mi/mi-parse.c (mi_parse): Likewise.
13592         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13593         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13594         * observer.c (xalloc_observer_list_node): Likewise.
13595         * regcache.c (regcache_xmalloc_1): Likewise.
13596         * reggroups.c (reggroup_new): Likewise.
13597         (_initialize_reggroup): Likewise.
13598         * registry.c (register_data_with_cleanup): Likewise.
13599         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13600         * ser-base.c (serial_ttystate): Likewise.
13601         * ser-mingw.c (make_pipe_state): Likewise.
13602         * ser-pipe.c (pipe_open): Likewise.
13603         * serial.c (serial_open): Likewise.
13604         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13605         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13606         (tui_alloc_win_info): Likewise.
13607         (tui_add_content_elements): Likewise.
13608         * tui/tui-file.c (tui_file_new): Likewise.
13609         * tui/tui-out.c (tui_out_new): Likewise.
13610         * ui-file.c (mem_file_new): Likewise.
13611         * ui-out.c (push_level): Likewise.
13612         (make_cleanup_ui_out_end): Likewise.
13613         (append_header_to_list): Likewise.
13614         (ui_out_new): Likewise.
13615         * user-regs.c (user_reg_add_builtin): Likewise.
13616
13617 2014-01-13  Tom Tromey  <tromey@redhat.com>
13618
13619         * defs.h (XZALLOC): Remove.
13620         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13621         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13622         (get_ada_tasks_inferior_data): Likewise.
13623         * auto-load.c (get_auto_load_pspace_data): Likewise.
13624         * auxv.c (get_auxv_inferior_data): Likewise.
13625         * bfd-target.c (target_bfd_reopen): Likewise.
13626         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13627         (deprecated_insert_raw_breakpoint): Likewise.
13628         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13629         * corelow.c (core_open): Likewise.
13630         * darwin-nat.c (darwin_check_new_threads): Likewise.
13631         (darwin_attach_pid): Likewise.
13632         * dummy-frame.c (dummy_frame_push): Likewise.
13633         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13634         * dwarf2loc.c (allocate_piece_closure): Likewise.
13635         * elfread.c (elf_symfile_segments): Likewise.
13636         * eval.c (ptrmath_type_p): Likewise.
13637         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13638         * gdbtypes.c (alloc_type_arch): Likewise.
13639         (alloc_type_instance): Likewise.
13640         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13641         * inf-child.c (inf_child_can_use_agent): Likewise.
13642         * inflow.c (get_inflow_inferior_data): Likewise.
13643         * infrun.c (save_infcall_suspend_state): Likewise.
13644         * jit.c (jit_reader_load): Likewise.
13645         (get_jit_objfile_data): Likewise.
13646         (get_jit_program_space_data): Likewise.
13647         (jit_object_open_impl): Likewise.
13648         (jit_symtab_open_impl): Likewise.
13649         (jit_block_open_impl): Likewise.
13650         (jit_frame_sniffer): Likewise.
13651         * linux-fork.c (add_fork): Likewise.
13652         * maint.c (make_command_stats_cleanup): Likewise.
13653         * objfiles.c (get_objfile_pspace_data): Likewise.
13654         * opencl-lang.c (struct lval_closure): Likewise.
13655         * osdata.c (osdata_start_osdata): Likewise.
13656         * progspace.c (new_address_space): Likewise.
13657         (add_program_space): Likewise.
13658         * remote-sim.c (get_sim_inferior_data): Likewise.
13659         * sh-tdep.c (sh_gdbarch_init): Likewise.
13660         * skip.c (Ignore): Likewise.
13661         (skip_delete_command): Likewise.
13662         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13663         (library_list_start_library): Likewise.
13664         (solib_aix_current_sos): Likewise.
13665         * solib-darwin.c (get_darwin_info): Likewise.
13666         (darwin_current_sos): Likewise.
13667         * solib-dsbt.c (get_dsbt_info): Likewise.
13668         * solib-ia64-hpux.c (new_so_list): Likewise.
13669         (ia64_hpux_get_solib_linkage_addr): Likewise.
13670         * solib-spu.c (append_ocl_sos): Likewise.
13671         (spu_current_sos): Likewise.
13672         * solib-svr4.c (get_svr4_info): Likewise.
13673         (svr4_keep_data_in_core): Likewise.
13674         (library_list_start_library): Likewise.
13675         (svr4_default_sos): Likewise.
13676         (svr4_read_so_list): Likewise.
13677         * solib-target.c (library_list_start_library): Likewise.
13678         (solib_target_current_sos): Likewise.
13679         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13680         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13681         * symfile.c (default_symfile_segments): Likewise.
13682         * target-descriptions.c (tdesc_data_init): Likewise.
13683         (tdesc_create_reg): Likewise.
13684         (struct tdesc_type *): Likewise.
13685         (tdesc_create_vector): Likewise.
13686         (tdesc_set_struct_size): Likewise.
13687         (struct tdesc_type *): Likewise.
13688         (tdesc_free_feature): Likewise.
13689         (tdesc_create_feature): Likewise.
13690         * windows-nat.c (windows_add_thread): Likewise.
13691         (windows_make_so): Likewise.
13692         * xml-support.c (gdb_xml_body_text): Likewise.
13693         (gdb_xml_create_parser_and_cleanup): Likewise.
13694         (xml_process_xincludes): Likewise.
13695         * xml-syscall.c (allocate_syscalls_info): Likewise.
13696         (syscall_create_syscall_desc): Likewise.
13697
13698 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13699
13700         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13701         function, with code from i386_stap_parse_special_token.
13702         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13703         (i386_stap_parse_special_token): Move code to the two functions
13704         above; simplify it.
13705
13706 2014-01-09  Pedro Alves  <palves@redhat.com>
13707             Hui Zhu  <hui@codesourcery.com>
13708
13709         PR gdb/16101
13710         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13711         bp_err_string.  Don't mark the location shlib_disabled if the
13712         error thrown wasn't a generic or memory error.  Catch errors
13713         thrown while inserting breakpoints in overlayed code.  Output
13714         error message of software breakpoints.
13715         * remote.c (remote_insert_breakpoint): If this breakpoint has
13716         target-side commands but this stub doesn't support Z0 packets,
13717         throw NOT_SUPPORTED_ERROR error.
13718         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13719         * target.h (target_insert_breakpoint): Extend comment.
13720         (target_insert_hw_breakpoint): Add comment.
13721
13722 2014-01-08  Pedro Alves  <palves@redhat.com>
13723
13724         * remote.c (remote_add_thread): Add threads silently if starting
13725         up.
13726         (remote_notice_new_inferior): If in all-stop, and starting up,
13727         don't call notice_new_inferior.
13728         (get_current_thread): New function, factored out from ...
13729         (add_current_inferior_and_thread): ... this.  Adjust.
13730         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13731         found any thread, then select the remote's current thread as GDB's
13732         current thread too.
13733
13734 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13735
13736         * NEWS: Create a new section for the next release branch.
13737         Rename the section of the current branch, now that it has
13738         been cut.
13739
13740 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13741
13742         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13743         * version.in: Bump version to 7.7.50.DATE-cvs.
13744
13745 2014-01-08  Yao Qi  <yao@codesourcery.com>
13746
13747         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13748         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13749         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13750
13751 2014-01-08  Yao Qi  <yao@codesourcery.com>
13752
13753         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13754         return value of bfd_get_filename to symbol_file_add_from_bfd.
13755
13756 2014-01-08  Pierre Muller  <muller@sourceware.org>
13757
13758         Fix PR16201.
13759         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13760         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13761         to prim_record_mininal_symbol_and_info.
13762         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13763         in call to prim_record_minimal_symbol_and_info.
13764         (read_pe_exported_syms): Set index field of section_data.
13765
13766 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13767
13768         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13769         * features/aarch64.c: Regenerate.
13770
13771 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13772
13773         * target.c (return_null): Define.
13774         (update_current_target): Use it instead of return_zero for
13775         functions that return a pointer.
13776
13777 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13778
13779         * source.c (add_path): Fix check for duplicated paths in the previously
13780         included paths.
13781
13782 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13783
13784         * ada-lang.c: Remove duplicated include statements.
13785         * alphabsd-nat.c: Ditto.
13786         * amd64-darwin-tdep.c: Ditto.
13787         * amd64fbsd-nat.c: Ditto.
13788         * auto-load.c: Ditto.
13789         * ax-gdb.c: Ditto.
13790         * breakpoint.c: Ditto.
13791         * dbxread.c: Ditto.
13792         * fork-child.c: Ditto.
13793         * gdb_usleep.c: Ditto.
13794         * i386-darwin-tdep.c: Ditto.
13795         * i386fbsd-nat.c: Ditto.
13796         * infcmd.c: Ditto.
13797         * inferior.c: Ditto.
13798         * jv-lang.c: Ditto.
13799         * linux-nat.c: Ditto.
13800         * linux-tdep.c: Ditto.
13801         * m68kbsd-nat.c: Ditto.
13802         * m68klinux-nat.c: Ditto.
13803         * microblaze-tdep.c: Ditto.
13804         * mips-linux-tdep.c: Ditto.
13805         * mn10300-tdep.c: Ditto.
13806         * nto-tdep.c: Ditto.
13807         * opencl-lang.c: Ditto.
13808         * osdata.c: Ditto.
13809         * printcmd.c: Ditto.
13810         * regcache.c: Ditto.
13811         * remote-m32r-sdi.c: Ditto.
13812         * remote.c: Ditto.
13813         * symfile.c: Ditto.
13814         * symtab.c: Ditto.
13815         * tilegx-linux-nat.c: Ditto.
13816         * tilegx-tdep.c: Ditto.
13817         * tracepoint.c: Ditto.
13818         * valops.c: Ditto.
13819         * vaxbsd-nat.c: Ditto.
13820         * windows-nat.c: Ditto.
13821         * xtensa-tdep.c: Ditto.
13822
13823 2014-01-07  Yao Qi  <yao@codesourcery.com>
13824
13825         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13826
13827 2014-01-07  Yao Qi  <yao@codesourcery.com>
13828             Joel Brobecker  <brobecker@adacore.com>
13829
13830         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13831         (pdc_write_regs): Likewise.
13832         (fetch_regs_kernel_thread): Likewise.
13833         (store_regs_kernel_thread): Likewise.
13834
13835 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13836
13837         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13838         tagged type objects to their actual type.
13839
13840 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13841
13842         * ada-valprint.c (print_field_values): Add "language" parameter.
13843         Update calls to print_field_values and print_variant_part.
13844         Pass new parameter "language" in call to val_print instead
13845         of "current_language".  Replace call to ada_val_print by call
13846         to val_print.
13847         (print_variant_part): Add "language" parameter.
13848         (ada_val_print_struct_union): Update call to print_field_values.
13849
13850 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13851
13852         * ada-valprint.c (ui_memcpy): Delete.
13853         (ada_print_floating): Update documentation.  Add empty line
13854         between between function documentation and implementation.
13855         Delete variable "buffer".  Use ui_file_xstrdup in place of
13856         ui_file_put.  Minor adjustments following this change.
13857
13858 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13859
13860         * ada-valprint.c (ada_val_print_string): New function,
13861         extracted from ada_val_print_array.
13862         (ada_val_print_array): Replace extracted code by call
13863         to ada_val_print_string followed by a return.  Move
13864         "else" branch to the function's top block.
13865
13866 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13867
13868         * ada-valprint.c (ada_val_print_array): Move implementation
13869         down.  Rename parameter "offset" and "val" into "offset_aligned"
13870         and "original_value" respectively.  Add parameter "offset".
13871
13872 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13873
13874         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13875         re-organizing the code. Change the "???" message printed
13876         when target type is a TYPE_CODE_UNDEF into
13877         "<ref to undefined type>".
13878
13879 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13880
13881         * ada-valprint.c (print_record): Delete, implementation inlined...
13882         (ada_val_print_struct_union): ... here.  Remove call to
13883         ada_check_typedef in inlined implementation.
13884
13885 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13886
13887         * ada-valprint.c (ada_val_print_gnat_array): New function,
13888         extracted from ada_val_print_1;
13889         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13890         (ada_val_print_flt, ada_val_print_struct_union)
13891         (ada_val_print_ref): Likewise.
13892         (ada_val_print_1): Delete variables i and elttype.
13893         Replace extracted-out code by call to corresponding
13894         new functions.
13895
13896 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13897
13898         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13899
13900 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13901
13902         * ada-valprint.c (ada_val_print_1): Replace calls to
13903         ada_val_print_1 by calls to val_print.
13904
13905 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13906
13907         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13908         Update calls to self accordingly.  Replace calls to c_val_print
13909         by calls to val_print.
13910
13911 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13912
13913         * ada-valprint.c (print_record): Delete declaration.
13914         (adjust_type_signedness, ada_val_print_1): Likewise.
13915         (ada_val_print): Move function implementation down.
13916         (print_variant_part, print_field_values, print_record):
13917         Move function implementation up.
13918
13919 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13920
13921         * python/py-type.c (typy_get_name): New function.
13922         (type_object_getset): Add entry for attribute "name".
13923         * NEWS: Add entry mentioning this new attribute.
13924
13925 2014-01-07  Yao Qi  <yao@codesourcery.com>
13926
13927         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13928         statement.
13929
13930 2014-01-07  Yao Qi  <yao@codesourcery.com>
13931
13932         * gnu-nat.c (info_port_rights): Add qualifier const to
13933         argument args.
13934
13935 2014-01-07  Yao Qi  <yao@codesourcery.com>
13936
13937         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13938
13939 2014-01-07  Yao Qi  <yao@codesourcery.com>
13940
13941         * gnu-nat.c (make_inf) Update declaration.
13942         (make_inf): Make it static.
13943         (inf_set_traced): Likewise.
13944         (inf_port_to_thread, inf_task_died_status): Likewise.
13945
13946 2014-01-07  Yao Qi  <yao@codesourcery.com>
13947
13948         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13949
13950 2014-01-07  Yao Qi  <yao@codesourcery.com>
13951
13952         * gnu-nat.c (_initialize_gnu_nat): Declare.
13953
13954 2014-01-07  Yao Qi  <yao@codesourcery.com>
13955
13956         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13957         'enum bfd_endian'.
13958         (struct gdbarch_info) <byte_order>: Change type to
13959         'enum bfd_endian'.
13960         <byte_order_for_code>: Likewise.
13961         * gdbarch.c, gdbarch.h: Regenerated.
13962
13963 2014-01-06  Sasha Smundak  <asmundak@google.com>
13964
13965         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13966
13967 2014-01-06  Tom Tromey  <tromey@redhat.com>
13968
13969         * doublest.c (convert_doublest_to_floatformat): Use const, not
13970         CONST.
13971         * somread.c (som_symtab_read): Likewise.
13972
13973 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13974
13975         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13976         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13977         (gdb_bfd_fopen): Ditto.
13978         (gdb_bfd_openr): Ditto.
13979         (gdb_bfd_openw): Ditto.
13980         (gdb_bfd_openr_iovec): Ditto.
13981         (gdb_bfd_fdopenr): Ditto.
13982         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13983         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13984         with xstrdup.
13985         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13986         with xstrdup.
13987         * symfile-mem.c (symbol_file_add_from_memory): Removed
13988         gdb_bfd_stash_filename.
13989
13990 2014-01-03  Doug Evans  <dje@google.com>
13991
13992         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13993         output.
13994
13995 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13996
13997         Update year range in copyright notice of all files.
13998
13999 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14000
14001         * top.c (print_gdb_version): Set copyright year to 2014.
14002
14003 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14004
14005         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14006
14007 For older changes see ChangeLog-2013.
14008 \f
14009 Local Variables:
14010 mode: change-log
14011 left-margin: 8
14012 fill-column: 74
14013 version-control: never
14014 coding: utf-8
14015 End: