go32-nat.c: Don't override to_open.
[external/binutils.git] / gdb / ChangeLog
1 2014-05-21  Pedro Alves  <palves@redhat.com>
2
3         * go32-nat.c (go32_open): Delete.
4         (go32_target): Don't override the to_open method.
5
6 2014-05-21  Pedro Alves  <palves@redhat.com>
7
8         * nto-procfs.c (procfs_can_run): New function.
9         (nto_procfs_ops): New global.
10         (init_procfs_targets): New, based on procfs_target.  Install
11         "target native" in addition to "target procfs".
12         (_initialize_procfs): Call init_procfs_targets instead of adding
13         the target here.
14
15 2014-05-21  Pedro Alves  <palves@redhat.com>
16
17         * windows-nat.c (windows_target): Don't override to_shortname,
18         to_longname or to_doc.
19
20 2014-05-21  Pedro Alves  <palves@redhat.com>
21
22         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
23         to_doc.
24
25 2014-05-21  Pedro Alves  <palves@redhat.com>
26
27         * darwin-nat.c (_initialize_darwin_inferior): Don't override
28         to_shortname, to_longname or to_doc.
29
30 2014-05-21  Pedro Alves  <palves@redhat.com>
31
32         * go32-nat.c (go32_target): Don't override to_shortname,
33         to_longname or to_doc.
34
35 2014-05-21  Pedro Alves  <palves@redhat.com>
36
37         * inf-child.c (inf_child_open): Remove mention of "child".
38         (inf_child_target): Rename target to "native" instead of "child".
39
40 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
41
42         * Makefile.in (SFILES): Delete "regset.c".
43         (COMMON_OBS): Delete "regset.o".
44         * regset.c: Remove.
45         * regset.h (regset_alloc): Delete prototype.
46
47 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
48
49         * sparc-linux-tdep.c (sparc32_linux_gregset)
50         (sparc32_linux_fpregset): New static regset structures.
51         (sparc32_linux_init_abi): Drop dynamic regset allocations.
52         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
53         'fpregset' fields.
54         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
55         (sparc64_linux_fpregset): New static regset structures.
56         (sparc64_linux_init_abi): Drop dynamic regset allocations.
57         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
58         New static regset structures.
59         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
60         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
61         New static regset structures.
62         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
63         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
64         New static regset structures.
65         (sparc64obsd_init_abi): Drop dynamic regset allocations.
66         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
67         New static regset structures.
68         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
69
70 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
71
72         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
73         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
74         register maps ("regmaps") from "*regset" to "*regmap".  Do this
75         for all regmap types and variables.
76         * sparc-linux-tdep.c (sparc32_linux_step_trap)
77         (sparc32_linux_supply_core_gregset)
78         (sparc32_linux_collect_core_gregset)
79         (sparc32_linux_supply_core_fpregset)
80         (sparc32_linux_collect_core_fpregset): Likewise.
81         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
82         (sparc_gregmap, sparc_fpregmap): ... these.
83         (sparc_supply_gregset, sparc_collect_gregset)
84         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
85         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
86         (_initialize_sparc_nat): Rename regmaps.
87         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
88         (sparc_gregmap, sparc_fpregmap): ... these.
89         (sparc_supply_gregset, sparc_collect_gregset)
90         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
91         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
92         Rename macros to...
93         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
94         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
95         Likewise.
96         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
97         Rename to...
98         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
99         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
100         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
101         regmaps.
102         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
103         (sparc32_bsd_fpregset): Rename to...
104         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
105         (sparc32_bsd_fpregmap): ... these.
106         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
107         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
108         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
109         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
110         (struct sparc_gregmap, struct sparc_fpregmap)
111         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
112         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
113         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
114         (sparc32_supply_regset, sparc32_collect_gregset)
115         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
116         prototypes.
117         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
118         (sparc64_linux_ptrace_gregmap): ... this.
119         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
120         (_initialize_sparc64_linux_nat): Rename regmaps.
121         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
122         (sparc64_linux_core_gregmap): ... this.
123         (sparc64_linux_supply_core_gregset)
124         (sparc64_linux_collect_core_gregset)
125         (sparc64_linux_supply_core_fpregset)
126         (sparc64_linux_collect_core_fpregset): Rename regmaps.
127         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
128         (sparc64_sol2_fpregset): Rename to...
129         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
130         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
131         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
132         regmaps.
133         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
134         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
135         (sparc64_bsd_fpregset): Rename to...
136         (struct sparc_gregmap, sparc64_sol2_gregmap)
137         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
138         (sparc64_bsd_fpregmap): ... these.
139         (sparc64_supply_gregset, sparc64_collect_gregset)
140         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
141         prototypes.
142         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
143         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
144         (sparc64fbsd_gregmap): ... this.
145         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
146         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
147         Rename regmaps.
148         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
149         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
150         (sparc64nbsd_collect_fpregset): Likewise.
151         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
152         (sparc64nbsd_gregmap): ... this.
153         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
154         regmaps.
155         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
156         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
157         (sparc64obsd_gregmap): ... this.
158         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
159         regmaps.
160         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
161         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
162         (sparc32nbsd_gregmap): ... this.
163         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
164         regmaps.
165
166 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
167
168         * score-tdep.c (score7_linux_gregset): New static regset
169         structure.
170         (score7_linux_regset_from_core_section): Remove dynamic regset
171         allocation.
172         (score_gdbarch_init): Drop allocation of tdep structure.
173         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
174
175 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
176
177         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
178         regset structures.
179         (am33_regset_from_core_section): Remove dynamic regset
180         allocations.
181
182 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
183
184         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
185         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
186         structures.
187         (mips_linux_regset_from_core_section): Remove dynamic regset
188         allocations.
189         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
190         'gregset64', 'fpregset', and 'fpregset64'.
191         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
192         deleted tdep fields.
193
194 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
195
196         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
197         regset structures.
198         (amd64_regset_from_core_section): Remove dynamic regset
199         allocations.
200         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
201         structure.
202         (amd64obsd_regset_from_core_section): Remove dynamic regset
203         allocation.
204         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
205         Likewise.
206         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
207         x86-common regset supply function.
208         * i386-tdep.c (i386_collect_gregset): Make static.
209         (i386_gregset): New global regset structure.
210         (i386_fpregset, i386_xstateregset): New static regset structures.
211         (i386_regset_from_core_section): Remove dynamic regset
212         allocations.
213         (i386_gdbarch_init): Remove initialization of tdep fields
214         'gregset', 'fpregset', and 'xstateregset'.
215         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
216         'fpregset', and 'xstateregset'.
217         (i386_collect_gregset): Remove prototype.
218         (i386_gregset): New declaration.
219         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
220         structure.
221         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
222         allocation.
223
224 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
225
226         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
227         (arm_linux_vfpregset): New static regset structures.
228         (arm_linux_regset_from_core_section): Remove dynamic allocation of
229         regset structures.
230         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
231         and 'vfpregset' fields.
232
233 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
234
235         * aarch64-linux-tdep.c (aarch64_linux_gregset)
236         (aarch64_linux_fpregset): New static regset structures.
237         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
238         of regset structures.
239         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
240         'fpregset' fields.
241
242 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
243
244         * regset.h (struct regset): Remove gdbarch field.
245         * regset.c (regset_alloc): Drop initialization of gdbarch field.
246         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
247         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
248         Likewise.
249         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
250         (ppc32_linux_fpregset, ppc32_linux_vrregset)
251         (ppc32_linux_vsxregset): Likewise.
252         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
253         via the regcache instead of the regset.
254         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
255         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
256         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
257         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
258         Likewise.
259
260 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
261
262         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
263         Constify structures.
264         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
265         (alphanbsd_aout_gregset): Likewise.
266         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
267         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
268         Likewise.
269         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
270         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
271         Likewise.
272         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
273         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
274         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
275         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
276         * m88k-tdep.c (m88k_gregset): Likewise.
277         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
278         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
279         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
280         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
281         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
282         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
283         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
284         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
285         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
286         Likewise.
287         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
288         * sh-tdep.h (sh_corefile_gregset): Likewise.
289         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
290         * vax-tdep.c (vax_gregset): Likewise.
291
292 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
293
294         Fix TLS access for -static -pthread.
295         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
296         (try_thread_db_load_1): Initialize it.
297         (thread_db_get_thread_local_address): Call it if LM is zero.
298         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
299         * target.h (struct target_ops) (to_get_thread_local_address): Add
300         load_module_addr comment.
301
302 2014-05-21  Pedro Alves  <palves@redhat.com>
303
304         * dcache.c (dcache_read_memory_partial): If reading the cache line
305         fails, fallback to reading just the memory the caller wanted.
306
307 2014-05-20  Doug Evans  <dje@google.com>
308
309         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
310         instead of get_current_arch.
311
312 2014-05-20  Pedro Alves  <palves@redhat.com>
313
314         * NEWS: Mention that compare-sections now works with all targets.
315
316         * remote.c (PACKET_qCRC): New enum value.
317         (remote_verify_memory): Don't send qCRC if the target has no
318         execution.  Use packet_support/packet_ok.  If the target doesn't
319         support the qCRC packet, fallback to a deep memory copy.
320         (compare_sections_command): Say "target image" instead of "remote
321         executable".
322         (_initialize_remote): Add PACKET_qCRC to the list of config
323         packets that have no associated command.  Extend comment.
324         * target.c (simple_verify_memory, default_verify_memory): New
325         function.
326         * target.h (struct target_ops) <to_verify_memory>: Default to
327         default_verify_memory.
328         (simple_verify_memory): New declaration.
329         * target-delegates.c: Regenerate.
330
331 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
332
333         * record-btrace.c (record_btrace_step_thread): Check for empty history.
334
335 2014-05-20  Hui Zhu  <hui@codesourcery.com>
336             Yao Qi  <yao@codesourcery.com>
337
338         PR backtrace/16558
339         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
340         and change address of sp and pc.
341
342 2014-05-19  Tom Tromey  <tromey@redhat.com>
343
344         * gdbtypes.c (rank_function): Use XNEWVEC.
345         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
346
347 2014-05-19  Doug Evans  <dje@google.com>
348
349         * dwarf2read.c (build_type_psymtabs_1): Renamed from
350         build_type_unit_groups and moved closer to only caller.  Remove
351         arguments.  All references updated.  Remove outdated .gdb_index
352         comment.
353         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
354         build_type_psymtabs_1.
355
356 2014-05-19  Doug Evans  <dje@google.com>
357
358         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
359         n_type_unit_groups, all_type_unit_groups.  All uses removed.
360         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
361         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
362         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
363         (add_type_unit_group_to_table): Delete.
364
365 2014-05-19  Doug Evans  <dje@google.com>
366
367         * eval.c (evaluate_subexp_standard): Add some comments.
368
369 2014-05-17  Doug Evans  <xdje42@gmail.com>
370
371         * progspace.c (remove_program_space): Delete, unused.
372         * progspace.h (remove_program_space): Ditto.
373
374 2014-05-17  Doug Evans  <xdje42@gmail.com>
375
376         * inferior.c (prune_inferiors): Fix comment.
377         (remove_inferior_command): Call prune_program_spaces.
378
379 2014-05-16  Doug Evans  <dje@google.com>
380
381         New command line option -D.
382         * NEWS: Mention it.
383         * main.c (set_gdb_data_directory): New function.
384         (captured_main): Recognize -D.  Flag error for --data-directory "".
385         Call set_gdb_data_directory.
386         (print_gdb_help): Print --data-directory, -D.
387         * main.h (set_gdb_data_directory): Declare.
388         * top.c (staged_gdb_datadir): New static global.
389         (set_gdb_datadir): Call set_gdb_data_directory
390         (show_gdb_datadir): New function.
391         (init_main): Update init of data-directory parameter.
392
393 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
394
395         Import the "dirfd" gnulib module.
396         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
397         * gnulib/aclocal.m4: Update.
398         * gnulib/config.in: Update.
399         * gnulib/configure: Update.
400         * gnulib/import/Makefile.am: Update.
401         * gnulib/import/Makefile.in: Update.
402         * gnulib/import/dirfd.c: New.
403         * gnulib/import/m4/dirfd.m4: New.
404         * gnulib/import/m4/gnulib-cache.m4: Update.
405         * gnulib/import/m4/gnulib-comp.m4: Update.
406
407 2014-05-16  Pierre Muller  <muller@sourceware.org>
408             Yao Qi  <yao@codesourcery.com>
409
410         * valprint.c (print_wchar): Move the code on checking whether
411         W is a printable wide char to the default branch of switch
412         statement below.  Call wchar_printable instead of gdb_iswprint.
413
414 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
415
416         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
417         ldr.w and ldrd instructions.
418
419 2014-05-15  Doug Evans  <dje@google.com>
420
421         * dwarf2read.c (read_structure_type): Delete outdated comments.
422
423 2014-05-14  Tom Tromey  <tromey@redhat.com>
424
425         * macrocmd.c (print_macro_definition): Reindent.
426
427 2014-05-13  Doug Evans  <xdje42@gmail.com>
428
429         * python/py-cmd.c (cmdpy_completer): Add comment.
430         (completers): Make const.
431
432 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
433
434         * infrun.c (resume): Remove should_resume (unused).  Move up
435         declaration of resume_ptid.
436
437 2014-05-13  Tom Tromey  <tromey@redhat.com>
438
439         * language.h (unop_type_check): Remove.
440         (binop_type_check): Don't declare.
441
442 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
443
444         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
445         call to regcache_raw_collect.
446
447 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
448
449         * mi/mi-console.c (mi_console_raw_packet): Use the value from
450         mi_console->quote as the quoting character.
451
452 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
453
454         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
455
456 2014-04-29  Tom Tromey  <tromey@redhat.com>
457
458         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
459         "show debug varobj".
460
461 2014-05-07  Kyle McMartin  <kyle@redhat.com>
462
463         Pushed by Joel Brobecker  <brobecker@adacore.com>.
464         * aarch64-tdep.c (aarch64_software_single_step): New function.
465         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
466         with aarch64_software_single_step.
467
468 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
469
470         GDB 7.7.1 released.
471
472 2014-05-05  Keith Seitz  <keiths@redhat.com>
473
474         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
475         variable or history value is successfully parsed.
476
477 2014-05-05  Yao Qi  <yao@codesourcery.com>
478             Pedro Alves  <palves@redhat.com>
479
480         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
481         address of blocks that intersects the requested range.  Trim
482         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
483         sections.
484         * ctf.c (ctf_xfer_partial): Likewise.
485
486 2014-05-05  Yao Qi  <yao@codesourcery.com>
487
488         * printcmd.c (display_command): Remove the check to
489         target_has_execution.
490
491 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
492
493         * ppcobsd-nat.c: Include "obsd-nat.h".
494         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
495         add_target.
496         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
497
498 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
499
500         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
501         and 16-bit signed and unsigned arguments.  Update comment.
502         (stap_parse_probe_arguments): Extend code to handle such
503         arguments.  Use warning instead of complaint to notify about
504         unrecognized bitness.
505
506 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
507
508         PR breakpoints/16889
509         * stap-probe.c (stap_parse_probe_arguments): Simplify
510         check for non-prefixed probes (i.e., probes whose
511         arguments do not start with "N@").  Always set the
512         argument type to a sane value.
513
514 2014-05-01  David Taylor  <dtaylor@emc.com>
515
516         * remote.c (compare_sections_command): Add -r option to compare
517         all loadable read-only sections.
518
519 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
520
521         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
522         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
523         Update all callers.
524         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
525         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
526         Remove unused CORE_ADDR argument.  Update all callers.
527
528 2014-04-29  Pedro Alves  <palves@redhat.com>
529
530         * remote.c (struct packet_config) <detect>: Extend comment.
531         (add_packet_config_cmd): Don't set the config's detect or support
532         fields here.
533         (init_all_packet_configs): Also initialize the config's 'detect'
534         field.
535         (reset_all_packet_configs_support): New function.
536         (remote_open_1): Call reset_all_packet_configs_support instead of
537         init_all_packet_configs.
538         (_initialize_remote): Initialize all packet configs.  Assert that
539         all packets have an associated command, except a few known
540         outliers.
541
542 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
543
544         * dwarf2read.c (read_subrange_type): Handle dynamic
545         DW_AT_lower_bound attributes.
546
547 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
548
549         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
550         dynamic bounds before computing its upper bound.
551         (ada_discrete_type_low_bound): Same as above with the lower bound.
552
553 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
554
555         * dwarf2read.c (is_dynamic_type): Return true for dynamic
556         range types.  Adjust the array handling implementation to
557         take advantage of this change.
558         (resolve_dynamic_range): New function, mostly extracted from
559         resolve_dynamic_bounds.
560         (resolve_dynamic_array): New function, mostly extracted from
561         resolve_dynamic_bounds.
562         (resolve_dynamic_bounds): Delete.
563         (resolve_dynamic_type): Reimplement.  Add handling of
564         TYPE_CODE_RANGE types.
565
566 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
567
568         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
569         handling of parallel ___XA types.
570
571 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
572
573         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
574         unnecessary second call to static_unwrap_type.
575
576 2014-04-27  Hui Zhu  <hui@codesourcery.com>
577
578         * stack.c (print_frame_info): Call do_gdb_disassembly with
579         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
580
581 2014-04-26  Doug Evans  <xdje42@gmail.com>
582
583         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
584
585 2014-04-25  Pedro Alves  <palves@redhat.com>
586
587         PR server/16255
588         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
589         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
590         and newline from built string.
591         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
592         (linux_ptrace_attach_fail_reason): ... this.
593         * linux-nat.c (linux_nat_attach): Adjust to use
594         linux_ptrace_attach_fail_reason.
595
596 2014-04-25  Pedro Alves  <palves@redhat.com>
597
598         * remote.c (struct remote_state): Remove multi_process_aware,
599         non_stop_aware, cond_tracepoints, cond_breakpoints,
600         breakpoint_commands, fast_tracepoints, static_tracepoints,
601         install_in_trace, disconnected_tracing,
602         enable_disable_tracepoints, string_tracing, and
603         augmented_libraries_svr4_read fields.
604         (remote_multi_process_p): Move further below in the file.
605         (struct packet_config): Add comments.
606         (update_packet_config): Delete function.
607         (show_packet_config_cmd): Use packet_config_support.
608         (add_packet_config_cmd): Use NULL as set callback.
609         (packet_ok): "set remote foo-packet"-style commands no longer
610         change config->supported -- adjust.
611         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
612         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
613         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
614         (PACKET_QNonStop, PACKET_multiprocess_feature)
615         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
616         (PACKET_DisconnectedTracing_feature)
617         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
618         (set_remote_protocol_packet_cmd): Delete function.
619         (packet_config_support, packet_support): New functions.
620         (set_remote_protocol_Z_packet_cmd): Don't call
621         update_packet_config.
622         (remote_query_attached, remote_pass_signals)
623         (remote_program_signals, remote_threads_info)
624         (remote_threads_extra_info, remote_start_remote): Use
625         packet_support.
626         (remote_start_remote): Use packet_config_support and
627         packet_support.
628         (init_all_packet_configs): Set all packets to unknown support,
629         instead of calling update_packet_config.
630         (remote_check_symbols): Use packet_support.
631         (remote_supported_packet): Unconditionally set the packet config's
632         support status.
633         (remote_multi_process_feature, remote_non_stop_feature)
634         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
635         (remote_breakpoint_commands_feature)
636         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
637         (remote_install_in_trace_feature)
638         (remote_disconnected_tracing_feature)
639         (remote_enable_disable_tracepoint_feature)
640         (remote_string_tracing_feature)
641         (remote_augmented_libraries_svr4_read_feature): Delete functions.
642         (remote_protocol_features): Adjust to use remote_supported_packet
643         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
644         "ConditionalTracepoints", "ConditionalBreakpoints",
645         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
646         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
647         "EnableDisableTracepoints", and "tracenz".
648         (remote_query_supported): Use packet_support.
649         (remote_open_1): Adjust.
650         (extended_remote_attach_1): Use packet_support.  Switch on the
651         result of packet_ok instead of checking whether the packet ended
652         up disabled.
653         (remote_vcont_resume): Use packet_support.
654         (remote_resume, remote_stop_ns, fetch_register_using_p)
655         (remote_prepare_to_store, store_register_using_P)
656         (check_binary_download, remote_write_bytes): Use packet_support.
657         (remote_vkill): Use packet_support.  Switch on the result of
658         packet_ok instead of checking whether the packet ended up
659         disabled.
660         (extended_remote_supports_disable_randomization): Use
661         packet_support.
662         (extended_remote_run): Switch on the result of packet_ok instead
663         of checking whether the packet ended up disabled.
664         (remote_insert_breakpoint, remote_remove_breakpoint)
665         (remote_insert_watchpoint, remote_remove_watchpoint)
666         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
667         packet_support.
668         (remote_search_memory): Use packet_config_support.
669         (remote_get_thread_local_address, remote_get_tib_address)
670         (remote_hostio_send_command, remote_can_execute_reverse): Use
671         packet_support.
672         (remote_supports_cond_tracepoints)
673         (remote_supports_cond_breakpoints)
674         (remote_supports_fast_tracepoints)
675         (remote_supports_static_tracepoints)
676         (remote_supports_install_in_trace)
677         (remote_supports_enable_disable_tracepoint)
678         (remote_supports_string_tracing)
679         (remote_can_run_breakpoint_commands): Rewrite, checking whether
680         the packet config says the feature is enabled or disabled.
681         (remote_download_tracepoint, remote_trace_set_readonly_regions)
682         (remote_get_trace_status): Use packet_support.
683         (remote_set_disconnected_tracing): Adjust to check whether the
684         feature is enabled with packet_support.
685         (remote_set_trace_buffer_size, remote_use_agent)
686         (remote_can_use_agent, remote_supports_btrace): Use
687         packet_support.
688         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
689         Use packet_config_support.
690         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
691         the packet config says the feature is enabled or disabled.
692         (set_range_stepping): Use packet_support.
693
694 2014-04-25  Tom Tromey  <tromey@redhat.com>
695
696         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
697         argument.
698
699 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
700
701         * NEWS: Mention support for C99 variable length arrays.
702
703 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
704
705         * ada-lang.c (standard_exc): Expand introductory comment.
706
707 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
708             Walfred Tedeschi  <walfred.tedeschi@intel.com>
709
710         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
711         AVX512 registers.
712         (amd64_linux_read_description): Add code to handle AVX512 xstate
713         mask and return respective tdesc.
714         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
715         and features/i386/x32-avx512-linux.c.
716         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
717         (amd64_linux_core_read_description): Add code to handle AVX512
718         xstate mask and return respective tdesc.
719         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
720         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
721         calculation.
722         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
723         (tdesc_amd64_avx512_linux): New prototype.
724         (tdesc_x32_avx512_linux): Likewise.
725         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
726         features/i386/x32-avx512.c.
727         (amd64_ymm_avx512_names): New register names for pseudo
728         registers YMM16-31.
729         (amd64_ymmh_avx512_names): New register names for raw registers
730         YMMH16-31.
731         (amd64_k_names): New register names for K registers.
732         (amd64_zmmh_names): New register names for ZMM raw registers.
733         (amd64_zmm_names): New registers names for ZMM pseudo registers.
734         (amd64_xmm_avx512_names): New register names for XMM16-31
735         registers.
736         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
737         registers.
738         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
739         if feature is present.
740         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
741         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
742         (AMD64_NUM_REGS): Adjust to new number of registers.
743         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
744         registers supplied via XSTATE by AVX512 registers.
745         (i386_linux_read_description): Add case for AVX512.
746         * i386-linux-tdep.c: Include i386-avx512-linux.c.
747         (i386_linux_gregset_reg_offset): Add AVX512 registers.
748         (i386_linux_core_read_description): Add case for AVX512.
749         (i386_linux_init_abi): Install supported register note section
750         for AVX512.
751         (_initialize_i386_linux_tdep): Add call to tdesc init function for
752         AVX512.
753         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
754         registers to be number of zmm7h + 1.
755         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
756         * i386-tdep.c: Include features/i386/i386-avx512.c.
757         (i386_zmm_names): Add ZMM pseudo register names array.
758         (i386_zmmh_names): Add ZMM raw register names array.
759         (i386_k_names): Add K raw register names array.
760         (num_lower_zmm_regs): Add constant for the number of lower ZMM
761         registers. AVX512 has 16 more ZMM registers than there are YMM
762         registers.
763         (i386_zmmh_regnum_p): Add function to look up register number of
764         ZMM raw registers.
765         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
766         (i386_k_regnum_p): Likewise for K raw registers.
767         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
768         registers added by AVX512.
769         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
770         registers added by AVX512.
771         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
772         added by AVX512.
773         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
774         (i386_pseudo_register_name): Add ZMM pseudo registers.
775         (i386_zmm_type): Construct and return vector registers type for ZMM
776         registers.
777         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
778         ZMM0-31 pseudo registers and K registers.
779         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
780         and YMM16-31 registers from register cache.
781         (i386_pseudo_register_write): Add code to write  K, ZMM and
782         YMM16-31 registers.
783         (i386_register_reggroup_p): Add code to include/exclude AVX512
784         registers in/from respective register groups.
785         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
786         registers if feature is present in xcr0.
787         (i386_gdbarch_init): Add code to initialize AVX512 feature
788         variables in tdep structure, wire in pseudo registers and call
789         initialize_tdesc_i386_avx512.
790         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
791         variables.
792         (i386_regnum): Add AVX512 registers.
793         (I386_SSE_NUM_REGS): New define for number of SSE registers.
794         (I386_AVX_NUM_REGS): Likewise for AVX registers.
795         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
796         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
797         512 bits wide.
798         (i386_xmm_avx512_regnum_p): New prototype for register look up.
799         (i386_ymm_avx512_regnum_p): Likewise.
800         (i386_k_regnum_p): Likewise.
801         (i386_zmm_regnum_p): Likewise.
802         (i386_zmmh_regnum_p): Likewise.
803         * i387-tdep.c : Update year in copyright notice.
804         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
805         XSAVE buffer.
806         (XSAVE_YMM_AVX512_ADDR): New macro.
807         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
808         XSAVE buffer.
809         (XSAVE_XMM_AVX512_ADDR): New macro.
810         (xsave_avx512_k_offset): New table for K register offsets in
811         XSAVE buffer.
812         (XSAVE_AVX512_K_ADDR): New macro.
813         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
814         in XSAVE buffer.
815         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
816         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
817         buffer.
818         (i387_collect_xsave): Add code to collect AVX512 registers from
819         XSAVE buffer.
820         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
821         of XMM16-31 registers.
822         (I387_NUM_K_REGS): New define for number of K registers.
823         (I387_K0_REGNUM): New define for K0 register number.
824         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
825         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
826         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
827         registers.
828         (I387_YMM16H_REGNUM): New define for YMM16H register number.
829         (I387_XMM16_REGNUM): New define for XMM16 register number.
830         (I387_YMM0_REGNUM): New define for YMM0 register number.
831         (I387_KEND_REGNUM): New define for last K register number.
832         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
833         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
834         number.
835         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
836         number.
837         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
838         size.
839         * features/Makefile: Add AVX512 related files.
840         * features/i386/32bit-avx512.xml: New file.
841         * features/i386/64bit-avx512.xml: Likewise.
842         * features/i386/amd64-avx512-linux.c: Likewise.
843         * features/i386/amd64-avx512-linux.xml: Likewise.
844         * features/i386/amd64-avx512.c: Likewise.
845         * features/i386/amd64-avx512.xml: Likewise.
846         * features/i386/i386-avx512-linux.c: Likewise.
847         * features/i386/i386-avx512-linux.xml: Likewise.
848         * features/i386/i386-avx512.c: Likewise.
849         * features/i386/i386-avx512.xml: Likewise.
850         * features/i386/x32-avx512-linux.c: Likewise.
851         * features/i386/x32-avx512-linux.xml: Likewise.
852         * features/i386/x32-avx512.c: Likewise.
853         * features/i386/x32-avx512.xml: Likewise.
854         * regformats/i386/amd64-avx512-linux.dat: New file.
855         * regformats/i386/amd64-avx512.dat: Likewise.
856         * regformats/i386/i386-avx512-linux.dat: Likewise.
857         * regformats/i386/i386-avx512.dat: Likewise.
858         * regformats/i386/x32-avx512-linux.dat: Likewise.
859         * regformats/i386/x32-avx512.dat: Likewise.
860         * NEWS: Add note about new support for AVX512.
861
862
863 2014-04-23  Pedro Alves  <palves@redhat.com>
864
865         * breakpoint.c (insert_bp_location): Tolerate errors if the
866         breakpoint is set in a user-loaded objfile.
867         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
868         location is marked shlib_disabled.  If the breakpoint is set in a
869         user-loaded objfile is a GDB-side memory breakpoint, validate it
870         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
871         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
872         flag.
873         * mem-break.c (memory_validate_breakpoint): New function.
874         * objfiles.c (userloaded_objfile_contains_address_p): New
875         function.
876         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
877         * target.h (memory_validate_breakpoint): New declaration.
878
879 2014-04-23  Pedro Alves  <palves@redhat.com>
880
881         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
882         the breakpoint is set in a shared library, only suppress
883         errors for software breakpoints, not hardware breakpoints.
884
885 2014-04-22  Pedro Alves  <palves@redhat.com>
886
887         * infrun.c (schedlock_applies): New function, factored out from
888         find_thread_needs_step_over.
889         (find_thread_needs_step_over): Use it.
890         (switch_back_to_stepped_thread): Always clear trap_expected if the
891         step over is finished.  Return early if scheduler locking applies.
892         Look for the stepping thread and a potential step-over thread with
893         a single loop.
894         (currently_stepping_or_nexting_callback): Delete.
895
896 2014-04-22  Nick Clifton  <nickc@redhat.com>
897
898         * NEWS: Mention that ARM sim now supports tracing.
899
900 2014-04-22  Yao Qi  <yao@codesourcery.com>
901
902         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
903         to ...
904         * tracefile.c (tracefile_fetch_registers): ... it.  New
905         function.
906         * tracefile.h (tracefile_fetch_registers): Declare.
907         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
908         tracefile_fetch_registers.
909
910 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
911
912         PR gdb/14018
913         * windows-nat.c (thread_rec): Don't display a warning when
914         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
915         fails for any reason, set th->suspended to -1, so that we don't
916         try to resume such a thread.  Also, don't return NULL in these
917         cases, to avoid completely ruin the session due to "PC register is
918         not available" error.
919         (do_windows_fetch_inferior_registers): Check errors in
920         GetThreadContext call.
921         (windows_continue): Accept an additional argument KILLED; if not
922         zero, ignore errors in the SetThreadContext call, since the
923         inferior was killed and is shutting down.
924         (windows_resume, get_windows_debug_event)
925         (windows_create_inferior, windows_mourn_inferior)
926         (windows_kill_inferior): All callers of windows_continue changed
927         to adjust to its new calling sequence.
928
929 2014-04-19  Yao Qi  <yao@codesourcery.com>
930
931         * ctf.c (ctf_open): Call post_create_inferior.
932
933 2014-04-19  Yao Qi  <yao@codesourcery.com>
934
935         * ctf.c (handle_id): New static variable.
936         (ctf_open_dir): Get handle_id from bt_context_add_trace return
937         value.  Get the declaration of event "register" and get length
938         of field "contents".
939
940 2014-04-19  Yao Qi  <yao@codesourcery.com>
941
942         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
943
944 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
945
946         * valops.c (oload_method_static): Remove unnecessary argument
947         METHOD.  Update all callers.
948
949 2014-04-18  Pedro alves  <palves@redhat.com>
950             Tom Tromey  <tromey@redhat.com>
951
952         PR backtrace/15558
953         * frame.c (get_prev_frame_1): Rename to ...
954         (get_prev_frame_always): ... this, and make extern.  Adjust.
955         (skip_artificial_frames): Use get_prev_frame_always.
956         (frame_unwind_caller_id, frame_pop, get_prev_frame)
957         (get_frame_unwind_stop_reason): Adjust to rename.
958         * frame.h (get_prev_frame_always): Declare.
959         * inline-frame.c: Include frame.h.
960         (inline_frame_this_id): Use get_prev_frame_always.
961
962 2014-04-18  Tristan Gingold  <gingold@adacore.com>
963
964         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
965         code by using bfd_mach_o_get_base_address.
966
967 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
968
969         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
970         (spu_ax_pseudo_register_collect): New function.
971         (spu_ax_pseudo_register_push_stack): Likewise.
972         (spu_dwarf_reg_to_regnum): Likewise.
973         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
974
975 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
976
977         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
978         Replace FRAME argument with FRAME_ID.
979         * gdbarch.c, gdbarch.h: Regenerate.
980         * findvar.c (default_value_from_register): Add GDBARCH argument;
981         replace FRAME by FRAME_ID.  No longer call get_frame_id.
982         (value_from_register): Update call to gdbarch_value_from_register.
983         * value.h (default_value_from_register): Update prototype.
984         * s390-linux-tdep.c (s390_value_from_register): Update interface
985         and call to default_value_from_register.
986         * spu-tdep.c (spu_value_from_register): Likewise.
987
988         * findvar.c (address_from_register): Remove TYPE argument.
989         Do not call value_from_register; use gdbarch_value_from_register
990         with null_frame_id instead.
991         * value.h (address_from_register): Update prototype.
992         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
993         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
994         address_from_register interface change.
995
996 2014-04-17  Yao Qi  <yao@codesourcery.com>
997
998         * gdbtypes.h: Update comments to link to types and macros'
999         definitions.
1000
1001 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
1002
1003         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1004
1005 2014-04-16  Keith Seitz  <keiths@redhat.com>
1006
1007         PR gdb/15827
1008         * dwarf2read.c (skip_one_die): Check that all relative-offset
1009         sibling DIEs fall within range of the current reader's buffer.
1010         (read_partial_die): Likewise.
1011
1012 2014-04-16  Keith Seitz  <keiths@redhat.com>
1013
1014         PR c++/16597
1015         * cp-namespace.c (lookup_symbol_file): If the type name of
1016         `this' is NULL, return immediately.
1017
1018 2014-04-14  Keith Seitz  <keiths@redhat.com>
1019
1020         PR c++/16253
1021         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1022         from symbol_matches_domain in symtab.c. All local callers
1023         of symbol_matches_domain updated.
1024         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1025         search STRUCT_DOMAIN.
1026         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1027         independently.  standard_lookup will do that automatically.
1028         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1029         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1030         (cp_lookup_symbol_in_namespace): Likewise.
1031         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1032         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1033         may return a STRUCT_DOMAIN match.
1034         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1035         * cp-support.c: Include language.h.
1036         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1037         VAR_DOMAIN.
1038         * psymtab.c (match_partial_symbol): Compare the requested
1039         domain with the symbol's domain directly.
1040         (lookup_partial_symbol): Likewise.
1041         * symtab.c (lookup_symbol_in_language): Explain when/why
1042         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1043         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1044         appropriate languages.
1045         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1046         and moved to ada-lang.c
1047         (lookup_block_symbol): Explain that this function only returns
1048         symbol matching the requested DOMAIN.
1049         Compare the requested domain with the symbol's domain directly.
1050         (iterate_over_symbols): Compare the requested domain with the
1051         symbol's domain directly.
1052         * symtab.h (symbol_matches_domain): Remove.
1053
1054 2014-04-14  Tom Tromey  <tromey@redhat.com>
1055
1056         PR c++/15246:
1057         * c-exp.y (type_aggregate_p): New function.
1058         (qualified_name, classify_inner_name): Use it.
1059         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1060         and TYPE_TARGET_TYPE of an enum type.
1061         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1062         an enum type.
1063         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1064         handle TYPE_DECLARED_CLASS.
1065         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1066         types.
1067         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1068         * valops.c (enum_constant_from_type): New function.
1069         (value_aggregate_elt): Use it.
1070         * cp-namespace.c (cp_lookup_nested_symbol): Handle
1071         TYPE_CODE_ENUM.
1072
1073 2014-04-14  Tom Tromey  <tromey@redhat.com>
1074
1075         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1076         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1077         const.
1078         * value.h (value_aggregate_elt): Update.
1079
1080 2014-04-14  Tom Tromey  <tromey@redhat.com>
1081
1082         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1083
1084 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1085
1086         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1087         (evaluate_subexp_standard): Pass noside argument.
1088         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1089         if noside equals EVAL_NORMAL. If the subscript yields a vla type
1090         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1091         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1092         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1093
1094 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1095
1096         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1097         points to a constant blob.
1098
1099 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1100
1101         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1102         property and store it as the high bound and flag the range accordingly.
1103         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1104         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1105         * gdbtypes.h (enum range_flags): New enum.
1106         (struct range_bounds): Add flags member.
1107
1108 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1109
1110         * c-typeprint.c (c_type_print_varspec_suffix): Added
1111         check for not yet resolved high bound. If unresolved, print
1112         "variable length" string to the console instead of random
1113         length.
1114
1115 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1116
1117         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1118         value.
1119         (ada_template_to_fixed_record_type_1): Likewise.
1120         (ada_to_fixed_type_1): Likewise.
1121         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1122         (cp_print_value): Likewise.
1123         * d-valprint.c (dynamic_array_type): Likewise.
1124         * findvar.c (address_of_variable): Likewise.
1125         * jv-valprint.c (java_value_print): Likewise.
1126         * valops.c (value_ind): Likewise.
1127         * value.c (coerce_ref): Likewise.
1128
1129 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1130
1131         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1132         value and retrieve the dynamic type size.
1133
1134 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1135
1136         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1137         passed to sizeof is dynamic evaluate the argument to compute the length.
1138
1139 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
1140             Joel Brobecker  <brobecker@adacore.com>
1141
1142         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1143         (dwarf2_evaluate_property): New function.
1144         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1145         * dwarf2read.c (attr_to_dynamic_prop): New function.
1146         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1147         attribute.
1148         * gdbtypes.c: Include dwarf2loc.h.
1149         (is_dynamic_type): New function.
1150         (resolve_dynamic_type): New function.
1151         (resolve_dynamic_bounds): New function.
1152         (get_type_length): New function.
1153         (check_typedef): Use get_type_length to compute type length.
1154         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1155         (TYPE_LOW_BOUND_KIND): New macro.
1156         (is_dynamic_type): New function prototype.
1157         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1158         to resolve dynamic properties of the type. Update comment.
1159         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1160
1161 2014-04-14  Richard Henderson  <rth@redhat.com>
1162
1163         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1164
1165 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
1166             Doug Evans  <xdje42@gmail.com>
1167
1168         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1169         dereference TYPE_CODE_REF values.
1170
1171 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
1172
1173         Revert the following changes due to regressions:
1174
1175         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1176         (dwarf2_evaluate_property): New function.
1177         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1178         * dwarf2read.c (attr_to_dynamic_prop): New function.
1179         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1180         attribute.
1181         * gdbtypes.c: Include dwarf2loc.h.
1182         (is_dynamic_type): New function.
1183         (resolve_dynamic_type): New function.
1184         (resolve_dynamic_bounds): New function.
1185         (get_type_length): New function.
1186         (check_typedef): Use get_type_length to compute type length.
1187         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1188         (TYPE_LOW_BOUND_KIND): New macro.
1189         (is_dynamic_type): New function prototype.
1190         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1191         to resolve dynamic properties of the type. Update comment.
1192         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1193
1194         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1195         passed to sizeof is dynamic evaluate the argument to compute the length.
1196
1197         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1198         value and retrieve the dynamic type size.
1199
1200         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1201         (ada_template_to_fixed_record_type_1): Likewise.
1202         (ada_to_fixed_type_1): Likewise.
1203         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1204         (cp_print_value): Likewise.
1205         * d-valprint.c (dynamic_array_type): Likewise.
1206         * eval.c (evaluate_subexp_with_coercion): Likewise.
1207         * findvar.c (address_of_variable): Likewise.
1208         * jv-valprint.c (java_value_print): Likewise.
1209         * valops.c (value_ind): Likewise.
1210         * value.c (coerce_ref): Likewise.
1211
1212         * c-typeprint.c (c_type_print_varspec_suffix): Added
1213         check for not yet resolved high bound. If unresolved, print
1214         "variable length" string to the console instead of random
1215         length.
1216
1217         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1218         property and store it as the high bound and flag the range accordingly.
1219         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1220         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1221         * gdbtypes.h (enum range_flags): New enum.
1222         (struct range_bounds): Add flags member.
1223
1224         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1225         points to a constant blob.
1226
1227         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1228         (evaluate_subexp_standard): Pass noside argument.
1229         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1230         if noside equals EVAL_NORMAL. If the subscript yields a vla type
1231         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1232         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1233         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1234
1235 2014-04-11  Keith Seitz  <keiths@redhat.com>
1236
1237         PR c++/16675
1238         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1239         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1240         reference types.
1241
1242 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1243
1244         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1245         (evaluate_subexp_standard): Pass noside argument.
1246         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1247         if noside equals EVAL_NORMAL. If the subscript yields a vla type
1248         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1249         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1250         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1251
1252 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1253
1254         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1255         points to a constant blob.
1256
1257 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1258
1259         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1260         property and store it as the high bound and flag the range accordingly.
1261         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1262         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1263         * gdbtypes.h (enum range_flags): New enum.
1264         (struct range_bounds): Add flags member.
1265
1266 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1267
1268         * c-typeprint.c (c_type_print_varspec_suffix): Added
1269         check for not yet resolved high bound. If unresolved, print
1270         "variable length" string to the console instead of random
1271         length.
1272
1273 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1274
1275         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1276         (ada_template_to_fixed_record_type_1): Likewise.
1277         (ada_to_fixed_type_1): Likewise.
1278         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1279         (cp_print_value): Likewise.
1280         * d-valprint.c (dynamic_array_type): Likewise.
1281         * eval.c (evaluate_subexp_with_coercion): Likewise.
1282         * findvar.c (address_of_variable): Likewise.
1283         * jv-valprint.c (java_value_print): Likewise.
1284         * valops.c (value_ind): Likewise.
1285         * value.c (coerce_ref): Likewise.
1286
1287 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1288
1289         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1290         value and retrieve the dynamic type size.
1291
1292 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1293
1294         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1295         passed to sizeof is dynamic evaluate the argument to compute the length.
1296
1297 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1298
1299         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1300         (dwarf2_evaluate_property): New function.
1301         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1302         * dwarf2read.c (attr_to_dynamic_prop): New function.
1303         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1304         attribute.
1305         * gdbtypes.c: Include dwarf2loc.h.
1306         (is_dynamic_type): New function.
1307         (resolve_dynamic_type): New function.
1308         (resolve_dynamic_bounds): New function.
1309         (get_type_length): New function.
1310         (check_typedef): Use get_type_length to compute type length.
1311         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1312         (TYPE_LOW_BOUND_KIND): New macro.
1313         (is_dynamic_type): New function prototype.
1314         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1315         to resolve dynamic properties of the type. Update comment.
1316         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1317
1318 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1319
1320         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1321         declaring high/low bounds and change uses accordingly. Call
1322         create_range_type instead of create_static_range_type.
1323         * gdbtypes.c (create_range_type): New function.
1324         (create_range_type): Convert bounds into struct bound_prop and pass
1325         them to create_range_type.
1326         * gdbtypes.h (struct bound_prop): New struct.
1327         (create_range_type): New function prototype.
1328         (struct range_bounds): Use struct bound_prop instead of LONGEST for
1329         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1330         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1331         part of the bound.
1332         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1333
1334 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
1335
1336         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1337         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1338         * ada-lang.c: All uses of create_range_type updated.
1339         * coffread.c: All uses of create_range_type updated.
1340         * dwarf2read.c: All uses of create_range_type updated.
1341         * f-exp.y: All uses of create_range_type updated.
1342         * m2-valprint.c: All uses of create_range_type updated.
1343         * mdebugread.c: All uses of create_range_type updated.
1344         * stabsread.c: All uses of create_range_type updated.
1345         * valops.c: All uses of create_range_type updated.
1346         * valprint.c: All uses of create_range_type updated.
1347
1348 2014-04-10  Pedro Alves  <palves@redhat.com>
1349
1350         * breakpoint.c (single_step_breakpoints)
1351         (single_step_gdbarch): Move up in the file.
1352         (one_breakpoint_xfer_memory): New function, factored out from ...
1353         (breakpoint_xfer_memory): ... here.  Also process single-step
1354         breakpoints.
1355
1356 2014-04-09  Tristan Gingold  <gingold@adacore.com>
1357
1358         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1359         comments.
1360         (darwin_decode_exception_message): Free port only after use.
1361
1362 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
1363
1364         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1365         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1366         when setting the size of call_length.
1367
1368 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
1369
1370         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1371         dereference TYPE_CODE_REF values.
1372
1373 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
1374
1375         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1376         end of warning message.
1377
1378 2014-04-03  Doug Evans  <dje@google.com>
1379
1380         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1381         of stub_comp_unit_die, stub_comp_dir is non-NULL.
1382
1383 2014-04-02  Alan Modra  <amodra@gmail.com>
1384
1385         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1386         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
1387         (struct symbol_file_add_from_memory_args): Add size field.
1388         (find_vdso_size): New function.
1389         (add_vsyscall_page): Attempt to find vdso size.
1390
1391 2014-04-01  Doug Evans  <dje@google.com>
1392
1393         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1394
1395 2014-04-01  Tristan Gingold  <gingold@adacore.com>
1396
1397         * darwin-nat.c (darwin_encode_reply): Add prototype.
1398         (darwin_decode_exception_message): Reply to unknown inferiors.
1399         (darwin_decode_message): Handle message by id.  Ignore message
1400         to unknown inferior.
1401         (darwin_wait): Discard unknown messages, add debug trace.
1402
1403 2014-03-31  Doug Evans  <dje@google.com>
1404
1405         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1406         comp_dir_string.
1407
1408 2014-03-31  Doug Evans  <dje@google.com>
1409
1410         New option "set print symbol-loading".
1411         * NEWS: Mention it.
1412         * solib.c (solib_read_symbols): Only print symbol loading messages
1413         if requested.
1414         (solib_add): If symbol loading is in "brief" mode, notify user
1415         symbols are being loaded.
1416         (reload_shared_libraries_1): Ditto.
1417         * symfile.c (print_symbol_loading_off): New static global.
1418         (print_symbol_loading_brief): New static global.
1419         (print_symbol_loading_full): New static global.
1420         (print_symbol_loading_enums): New static global.
1421         (print_symbol_loading): New static global.
1422         (print_symbol_loading_p): New function.
1423         (symbol_file_add_with_addrs): Only print symbol loading messages
1424         if requested.
1425         (_initialize_symfile): Register "print symbol-loading" set/show
1426         command.
1427         * symfile.h (print_symbol_loading_p): Declare.
1428
1429 2014-03-30  Doug Evans  <xdje42@gmail.com>
1430
1431         * infrun.c (set_last_target_status): New function.
1432         (handle_inferior_event): Call it.
1433
1434 2014-03-30  Doug Evans  <xdje42@gmail.com>
1435
1436         * inferior.h (enum stop_kind): Improve comment.
1437
1438 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
1439
1440         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1441         a reference, strip the reference layer before calling
1442         the lang_ops value_has_mutated callback.
1443
1444 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
1445
1446         Remove some globals from our parser.
1447         * language.c (unk_lang_parser): Add "struct parser_state"
1448         argument.
1449         * language.h (struct language_defn) <la_parser>: Likewise.
1450         * parse.c (expout, expout_size, expout_ptr): Remove variables.
1451         (initialize_expout): Add "struct parser_state" argument.
1452         Rewrite function to use the parser state.
1453         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1454         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1455         write_exp_elt_longcst, write_exp_elt_dblcst,
1456         write_exp_elt_decfloatcst, write_exp_elt_type,
1457         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1458         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1459         write_dollar_variable): Likewise.
1460         (parse_exp_in_context_1): Use parser state.
1461         (insert_type_address_space): Add "struct parser_state" argument.
1462         Use parser state.
1463         (increase_expout_size): New function.
1464         * parser-defs.h: Forward declare "struct language_defn" and
1465         "struct parser_state".
1466         (expout, expout_size, expout_ptr): Remove extern declarations.
1467         (parse_gdbarch, parse_language): Rewrite macro declarations to
1468         accept the parser state.
1469         (struct parser_state): New struct.
1470         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1471         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1472         write_exp_elt_decfloatcst, write_exp_elt_type,
1473         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1474         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1475         write_exp_msymbol, write_dollar_variable,
1476         mark_struct_expression, insert_type_address_space): Add "struct
1477         parser_state" argument.
1478         (increase_expout_size): New function.
1479         * utils.c (do_clear_parser_state): New function.
1480         (make_cleanup_clear_parser_state): Likewise.
1481         * utils.h (make_cleanup_clear_parser_state): New function
1482         prototype.
1483         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1484         Update calls to write_exp* in order to pass the parser state.
1485         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1486         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1487         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1488         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1489         * stap-probe.c (stap_parse_register_operand): Likewise.
1490         (stap_parse_single_operand): Likewise.
1491         (stap_parse_argument_1): Likewise.
1492         (stap_parse_argument): Use parser state.
1493         * stap-probe.h: Include "parser-defs.h".
1494         (struct stap_parse_info) <pstate>: New field.
1495         * c-exp.y (parse_type): Rewrite to use parser state.
1496         (yyparse): Redefine to c_parse_internal.
1497         (pstate): New global variable.
1498         (parse_number): Add "struct parser_state" argument.
1499         (write_destructor_name): Likewise.
1500         (type_exp): Update calls to write_exp* and similars in order to
1501         use parser state.
1502         (exp1, exp, variable, qualified_name, space_identifier,
1503         typename, typebase): Likewise.
1504         (write_destructor_name, parse_number, lex_one_token,
1505         classify_name, classify_inner_name, c_parse): Add "struct
1506         parser_state" argument.  Update function to use parser state.
1507         * c-lang.h: Forward declare "struct parser_state".
1508         (c_parse): Add "struct parser_state" argument.
1509         * ada-exp.y (parse_type): Rewrite macro to use parser state.
1510         (yyparse): Redefine macro to ada_parse_internal.
1511         (pstate): New variable.
1512         (write_int, write_object_renaming, write_var_or_type,
1513         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1514         type_int, type_long, type_long_long, type_float, type_double,
1515         type_long_double, type_char, type_boolean, type_system_address):
1516         Add "struct parser_state" argument.
1517         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1518         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1519         var_or_type, aggregate, aggregate_component_list,
1520         positional_list, others, component_group,
1521         component_associations): Update calls to write_exp* and similar
1522         functions in order to use parser state.
1523         (ada_parse, write_var_from_sym, write_int,
1524         write_exp_op_with_string, write_object_renaming,
1525         find_primitive_type, write_selectors, write_ambiguous_var,
1526         write_var_or_type, write_name_assoc, type_int, type_long,
1527         type_long_long, type_float, type_double, type_long_double,
1528         type_char, type_boolean, type_system_address): Add "struct
1529         parser_state" argument.  Adjust function to use parser state.
1530         * ada-lang.c (parse): Likewise.
1531         * ada-lang.h: Forward declare "struct parser_state".
1532         (ada_parse): Add "struct parser_state" argument.
1533         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
1534         calls to both functions.
1535         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1536         parser state.
1537         (yyparse): Redefine macro to f_parse_internal.
1538         (pstate): New variable.
1539         (parse_number): Add "struct parser_state" argument.
1540         (type_exp, exp, subrange, typebase): Update calls to write_exp*
1541         and similars in order to use parser state.
1542         (parse_number): Adjust code to use parser state.
1543         (yylex): Likewise.
1544         (f_parse): New function.
1545         * f-lang.h: Forward declare "struct parser_state".
1546         (f_parse): Add "struct parser_state" argument.
1547         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1548         parser state.
1549         (yyparse): Redefine macro for java_parse_internal.
1550         (pstate): New variable.
1551         (push_expression_name, push_expression_name, insert_exp): Add
1552         "struct parser_state" argument.
1553         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1554         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1555         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1556         PostIncrementExpression, PostDecrementExpression,
1557         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1558         UnaryExpressionNotPlusMinus, CastExpression,
1559         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1560         RelationalExpression, EqualityExpression, AndExpression,
1561         ExclusiveOrExpression, InclusiveOrExpression,
1562         ConditionalAndExpression, ConditionalOrExpression,
1563         ConditionalExpression, Assignment, LeftHandSide): Update
1564         calls to write_exp* and similars in order to use parser state.
1565         (parse_number): Ajust code to use parser state.
1566         (yylex): Likewise.
1567         (java_parse): New function.
1568         (push_variable): Add "struct parser_state" argument.  Adjust
1569         code to user parser state.
1570         (push_fieldnames, push_qualified_expression_name,
1571         push_expression_name, insert_exp): Likewise.
1572         * jv-lang.h: Forward declare "struct parser_state".
1573         (java_parse): Add "struct parser_state" argument.
1574         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1575         parser state.
1576         (yyparse): Redefine macro to m2_parse_internal.
1577         (pstate): New variable.
1578         (type_exp, exp, fblock, variable, type): Update calls to
1579         write_exp* and similars to use parser state.
1580         (yylex): Likewise.
1581         (m2_parse): New function.
1582         * m2-lang.h: Forward declare "struct parser_state".
1583         (m2_parse): Add "struct parser_state" argument.
1584         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1585         * objc-lang.h: Forward declare "struct parser_state".
1586         (end_msglist): Add "struct parser_state" argument.
1587         * p-exp.y (parse_type): Rewrite macro to use parser state.
1588         (yyparse): Redefine macro to pascal_parse_internal.
1589         (pstate): New variable.
1590         (parse_number): Add "struct parser_state" argument.
1591         (type_exp, exp1, exp, qualified_name, variable): Update calls to
1592         write_exp* and similars in order to use parser state.
1593         (parse_number, yylex): Adjust code to use parser state.
1594         (pascal_parse): New function.
1595         * p-lang.h: Forward declare "struct parser_state".
1596         (pascal_parse): Add "struct parser_state" argument.
1597         * go-exp.y (parse_type): Rewrite macro to use parser state.
1598         (yyparse): Redefine macro to go_parse_internal.
1599         (pstate): New variable.
1600         (parse_number): Add "struct parser_state" argument.
1601         (type_exp, exp1, exp, variable, type): Update calls to
1602         write_exp* and similars in order to use parser state.
1603         (parse_number, lex_one_token, classify_name, yylex): Adjust code
1604         to use parser state.
1605         (go_parse): Likewise.
1606         * go-lang.h: Forward declare "struct parser_state".
1607         (go_parse): Add "struct parser_state" argument.
1608
1609 2014-03-27  Doug Evans  <dje@google.com>
1610
1611         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
1612
1613 2014-03-27  Doug Evans  <dje@google.com>
1614
1615         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1616         Remove argument abbrev_section.  All callers updated.
1617
1618 2014-03-27  Doug Evans  <dje@google.com>
1619
1620         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1621         addr_base, ranges_base.
1622
1623 2014-03-26  Keith Seitz  <keiths@redhat.com>
1624
1625         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1626         types, not VAR_DOMAIN.
1627
1628 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
1629
1630         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1631         "ra" registers.
1632         * features/nios2-linux.c: Regenerated.
1633         * features/nios2.c: Regenerated.
1634
1635 2014-03-25  Pedro Alves  <palves@redhat.com>
1636
1637         * cli/cli-script.c (script_from_file): Force the interpreter to
1638         sync mode.
1639
1640 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
1641
1642         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1643         small stack allocation.
1644
1645 2014-03-24  Tristan Gingold  <gingold@adacore.com>
1646
1647         * darwin-nat.c (exc_server): Remove unused prototype.
1648         (darwin_dump_message): Correctly display data on x86_64.
1649         (darwin_encode_reply): Fix style.
1650         Add comments and fix indentation.
1651
1652 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
1653
1654         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1655
1656 2014-03-22  Doug Evans  <xdje42@gmail.com>
1657
1658         * infcmd.c: Whitespace fixes.
1659         (interrupt_command): Merge two function comments into one.
1660
1661 2014-03-22  Doug Evans  <xdje42@gmail.com>
1662
1663         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1664         All uses updated.
1665
1666 2014-03-22  Yao Qi  <yao@codesourcery.com>
1667
1668         * remote.c (target_read_live_memory): Remove.
1669         (memory_xfer_live_readonly_partial): Rename it to
1670         remote_xfer_live_readonly_partial.  Remove argument 'object'.
1671         All callers updated.  Call remote_read_bytes_1
1672         instead of target_read_live_memory.
1673         * tracepoint.c (set_traceframe_number): Remove.
1674         (make_cleanup_restore_traceframe_number): Likewise .
1675         * tracepoint.h (set_traceframe_number): Remove declaration.
1676         (make_cleanup_restore_traceframe_number): Likewise.
1677
1678 2014-03-22  Yao Qi  <yao@codesourcery.com>
1679
1680         * remote.c (remote_read_bytes): Move code on reading from the
1681         remote stub to ...
1682         (remote_read_bytes_1): ... here.  New function.
1683
1684 2014-03-22  Yao Qi  <yao@codesourcery.com>
1685
1686         * ctf.c (ctf_xfer_partial): Check the return value of
1687         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1688         return TARGET_XFER_UNAVAILABLE.
1689         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1690         * target.c (target_read_live_memory): Move it to remote.c.
1691         (memory_xfer_live_readonly_partial): Likewise.
1692         (memory_xfer_partial_1): Move some code to remote_read_bytes.
1693         * remote.c (target_read_live_memory): Moved from target.c.
1694         (memory_xfer_live_readonly_partial): Likewise.
1695         (remote_read_bytes): Factored out from
1696         memory_xfer_partial_1.
1697
1698 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
1699
1700         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1701         NULL pointer.
1702
1703 2014-03-21  Pedro Alves  <palves@redhat.com>
1704
1705         * infrun.c (normal_stop): Extend comment.
1706
1707 2014-03-21  Hui Zhu  <hui@codesourcery.com>
1708             Pedro Alves  <palves@redhat.com>
1709
1710         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1711         static buffer.
1712         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1713         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1714         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1715
1716 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
1717
1718         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1719         `z' formatted output modifier.
1720
1721 2014-03-20  Tom Tromey  <tromey@redhat.com>
1722             Sergio Durigan Junior  <sergiodj@redhat.com>
1723
1724         * probe.c (parse_probes): Turn assert into an ordinary error.
1725         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1726         exceptions when parsing probes.  Rearrange the code for clarity.
1727
1728 2014-03-20  Tom Tromey  <tromey@redhat.com>
1729
1730         PR gdb/14135
1731         * top.c (execute_command): Only dispatch events if the command
1732         started the target.
1733
1734 2014-03-20  Tom Tromey  <tromey@redhat.com>
1735
1736         PR cli/15718
1737         * infcall.c: Include event-top.h.
1738         (run_inferior_call): Call async_disable_stdin if needed.
1739
1740 2014-03-20  Pedro Alves  <palves@redhat.com>
1741
1742         * infrun.c (prepare_to_proceed): Delete.
1743         (thread_still_needs_step_over): New function.
1744         (find_thread_needs_step_over): New function.
1745         (proceed): If the current thread needs a step-over, set its
1746         steping_over_breakpoint flag.  Adjust to use
1747         find_thread_needs_step_over instead of prepare_to_proceed.
1748         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1749         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1750         breakpoint.
1751         (switch_back_to_stepped_thread): Step over breakpoints of all
1752         threads not the stepping thread, before switching back to the
1753         stepping thread.
1754
1755 2014-03-20  Pedro Alves  <palves@redhat.com>
1756
1757         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1758         extern.
1759         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1760         * infrun.c (saved_singlestep_ptid)
1761         (stepping_past_singlestep_breakpoint): Delete.
1762         (resume): Remove stepping_past_singlestep_breakpoint handling.
1763         (proceed): Store the prev_pc of the stepping thread too.
1764         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
1765         singlestep_pc.
1766         (enum infwait_states): Delete infwait_thread_hop_state.
1767         (struct execution_control_state) <hit_singlestep_breakpoint>: New
1768         field.
1769         (handle_inferior_event): Adjust.
1770         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1771         handling and the thread-hop code.  Before removing single-step
1772         breakpoints, check whether the thread hit a single-step breakpoint
1773         of another thread.  If it did, the trap is not a random signal.
1774         (switch_back_to_stepped_thread): If the event thread hit a
1775         single-step breakpoint, unblock it before switching to the
1776         stepping thread.  Handle the case of the stepped thread having
1777         advanced already.
1778         (keep_going): Handle the case of the current thread moving past a
1779         single-step breakpoint.
1780
1781 2014-03-20  Pedro Alves  <palves@redhat.com>
1782
1783         PR breakpoints/7143
1784         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1785         are being stepped over.
1786         (breakpoint_address_match): Make extern.
1787         * breakpoint.h (breakpoint_address_match): New declaration.
1788         * inferior.h (stepping_past_instruction_at): New declaration.
1789         * infrun.c (struct step_over_info): New type.
1790         (step_over_info): New global.
1791         (set_step_over_info, clear_step_over_info)
1792         (stepping_past_instruction_at): New functions.
1793         (handle_inferior_event): Clear the step-over info when
1794         trap_expected is cleared.
1795         (resume): Remove now stale comment.
1796         (clear_proceed_status): Clear step-over info.
1797         (proceed): Adjust step-over handling to set or clear the step-over
1798         info instead of removing all breakpoints.
1799         (handle_signal_stop): When setting up a thread-hop, don't remove
1800         breakpoints here.
1801         (stop_stepping): Clear step-over info.
1802         (keep_going): Adjust step-over handling to set or clear step-over
1803         info and then always inserting breakpoints, instead of removing
1804         all breakpoints when stepping over one.
1805
1806 2014-03-20  Pedro Alves  <palves@redhat.com>
1807
1808         * infrun.c (previous_inferior_ptid): Adjust comment.
1809         (deferred_step_ptid): Delete.
1810         (infrun_thread_ptid_changed, prepare_to_proceed)
1811         (init_wait_for_inferior): Adjust.
1812         (handle_signal_stop): Delete deferred_step_ptid handling.
1813
1814 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1815
1816         PR gdb/15358
1817         * defs.h (sync_quit_force_run): New declaration.
1818         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1819         * event-top.c (async_sigterm_handler): New declaration.
1820         (async_sigterm_token): New variable.
1821         (async_init_signals): Create also async_sigterm_token.
1822         (async_sigterm_handler): New function.
1823         (sync_quit_force_run): New variable.
1824         (handle_sigterm): Replace quit_force call by other calls.
1825         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1826
1827 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
1828
1829         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1830         offset into SPE pseudo registers.
1831
1832 2014-03-18  Pedro Alves  <palves@redhat.com>
1833
1834         PR gdb/13860
1835         * inferior.h (print_stop_event): Declare.
1836         * infrun.c (print_stop_event): New, factored out from ...
1837         (normal_stop): ... this.
1838         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1839         of bpstat_print/print_stack_frame.
1840
1841 2014-03-17  Tom Tromey  <tromey@redhat.com>
1842
1843         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1844
1845 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
1846
1847         * ada-lang.c (decode_constrained_packed_array): Perform a
1848         minimal coercion for reference with coerce_ref instead of
1849         ada_coerce_ref.
1850
1851 2014-03-17  Tristan Gingold  <gingold@adacore.com>
1852
1853         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1854         (darwin_solib_create_inferior_hook): Emit a warning if version
1855         is unhandled.
1856
1857 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
1858
1859         * python/py-value.c (get_field_flag): Cast flag_name argument to
1860         PyObject_GetAttrString to support Python 2.4.
1861
1862 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1863
1864         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1865         (Global Maintainers): Remove Jan Kratochvil.
1866
1867 2014-03-14  Pedro Alves  <palves@redhat.com>
1868
1869         * inferior.h (terminal_ours_for_output): Rename to ...
1870         (child_terminal_ours_for_output): ... this.
1871         (terminal_save_ours): Rename to ...
1872         (child_terminal_save_ours): ... this.
1873         (terminal_ours): Rename to ...
1874         (child_terminal_ours): ... this.
1875         (terminal_inferior): Rename to ...
1876         (child_terminal_inferior): ... this.
1877         (terminal_init_inferior): Rename to ...
1878         (child_terminal_init_inferior): ... this.
1879         (terminal_init_inferior_with_pgrp): Rename to ...
1880         (child_terminal_init_inferior_with_pgrp): ... this.
1881         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1882         (child_terminal_init_with_pgrp): ... this.
1883         (terminal_save_ours): Rename to ...
1884         (child_terminal_save_ours): ... this.
1885         (terminal_init_inferior): Rename to ...
1886         (child_terminal_init): ... this.  Adjust.
1887         (terminal_inferior): Rename to ...
1888         (child_terminal_inferior): ... this.
1889         (terminal_ours_for_output): Rename to ...
1890         (child_terminal_ours_for_output): ... this.  Adjust.
1891         (terminal_ours): Rename to ...
1892         (child_terminal_ours): ... this.
1893         (terminal_ours_1): Rename to ...
1894         (child_terminal_ours_1): ... this.  Adjust.
1895         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1896         * windows-nat.c (do_initial_windows_stuff): Adjust.
1897         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1898         (gnu_terminal_init): ... this.  Adjust.
1899         (gnu_target): Adjust.
1900         * inf-child.c (inf_child_target): Adjust.
1901
1902 2014-03-13  Doug Evans  <xdje42@gmail.com>
1903
1904         PR guile/16612
1905         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1906         new eq?-hashtab.
1907
1908 2014-03-13  Doug Evans  <xdje42@gmail.com>
1909
1910         * value.c (record_latest_value): Call release_value_or_incref
1911         instead of release_value.
1912
1913 2014-03-13  Pedro Alves  <palves@redhat.com>
1914
1915         * procfs.c (procfs_target): Don't override to_shortname,
1916         to_longname or to_doc.
1917
1918 2014-03-13  Pedro Alves  <palves@redhat.com>
1919
1920         * inf-child.c (inf_child_open, inf_child_target): Don't mention
1921         Unix in user visible strings.
1922
1923 2014-03-12  Stan Shebs  <stan@codesourcery.com>
1924
1925         * gdbtypes.h: Annotate comments for Doxygen, add a page
1926         block comment with some general info.
1927
1928 2014-03-12  Pedro Alves  <palves@redhat.com>
1929
1930         * infcmd.c (prepare_execution_command): New function, factored out
1931         from several execution commands.
1932         (run_command_1, continue_command, step_1, jump_command)
1933         (signal_command, until_command, advance_command, finish_command)
1934         (attach_command): Use prepare_execution_command.
1935
1936 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
1937
1938         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1939         (MAX_BPTS): Define.
1940         (MAX_WPTS): Define.
1941         (struct arm_linux_thread_points): Removed.
1942         (struct arm_linux_process_info): New.
1943         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1944         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1945         (arm_linux_find_breakpoints_by_tid): Removed.
1946         (struct arch_lwp_info): New.
1947         (arm_linux_find_process_pid): New functions.
1948         (arm_linux_add_process): New functions.
1949         (arm_linux_process_info_get): New functions.
1950         (arm_linux_forget_process): New function.
1951         (arm_linux_get_debug_reg_state): New function.
1952         (struct update_registers_data): New.
1953         (update_registers_callback): New function.
1954         (arm_linux_insert_hw_breakpoint1): Updated.
1955         (arm_linux_remove_hw_breakpoint1): Updated.
1956         (arm_linux_insert_hw_breakpoint): Updated.
1957         (arm_linux_remove_hw_breakpoint): Updated.
1958         (arm_linux_insert_watchpoint): Updated.
1959         (arm_linux_remove_watchpoint): Updated.
1960         (arm_linux_new_thread): Updated.
1961         (arm_linux_prepare_to_resume): New function.
1962         (arm_linux_new_fork): New function.
1963         (_initialize_arm_linux_nat): Updated.
1964
1965 2014-03-12  Pedro Alves  <palves@redhat.com>
1966
1967         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1968
1969 2014-03-12  Tom Tromey  <tromey@redhat.com>
1970
1971         * inf-child.c (return_zero): New function.
1972         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1973         * aix-thread.c (aix_thread_inferior_created): New function.
1974         (aix_thread_attach): Remove.
1975         (init_aix_thread_ops): Don't set to_attach.
1976         (_initialize_aix_thread): Register inferior_created observer.
1977         * corelow.c (init_core_ops): Don't set to_attach or
1978         to_create_inferior.
1979         * exec.c (init_exec_ops): Don't set to_attach or
1980         to_create_inferior.
1981         * infcmd.c (run_command_1): Use find_run_target.  Make direct
1982         target calls.
1983         (attach_command): Use find_attach_target.  Make direct target
1984         calls.
1985         * record-btrace.c (init_record_btrace_ops): Don't set
1986         to_create_inferior.
1987         * record-full.c (record_full_can_async_p, record_full_is_async_p):
1988         Remove.
1989         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
1990         set to_create_inferior.
1991         * target.c (complete_target_initialization): Add assertion.
1992         (target_create_inferior): Remove.
1993         (find_default_attach, find_default_create_inferior): Remove.
1994         (find_attach_target, find_run_target): New functions.
1995         (find_default_is_async_p, find_default_can_async_p)
1996         (target_supports_non_stop, target_attach): Remove.
1997         (init_dummy_target): Don't set to_create_inferior or
1998         to_supports_non_stop.
1999         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
2000         TARGET_DEFAULT_FUNC.
2001         <to_create_inferior>: Add comment.
2002         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2003         TARGET_DEFAULT_RETURN.
2004         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2005         (find_attach_target, find_run_target): Declare.
2006         (target_create_inferior): Remove.
2007         (target_has_execution_1): Update comment.
2008         (target_supports_non_stop): Remove.
2009         * target-delegates.c: Rebuild.
2010
2011 2014-03-12  Pedro Alves  <palves@redhat.com>
2012
2013         * inf-child.h: Update comment to not mention Unix.
2014
2015 2014-03-12  Pedro Alves  <palves@redhat.com>
2016
2017         * inf-child.c: Update top comment to not mention Unix.  Add
2018         generic comment describing how this target is meant to be used.
2019         (inf_child_post_attach, inf_child_post_startup_inferior)
2020         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2021         Unix in comment.
2022
2023 2014-03-12  Pedro Alves  <palves@redhat.com>
2024
2025         * nto-procfs.c: Include inf-child.h.
2026         (procfs_ops): Delete global.
2027         (procfs_can_run): Delete method.
2028         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2029         target pointer instead of referencing procfs_ops.
2030         (procfs_prepare_to_store): Delete.
2031         (init_procfs_ops): Delete function.
2032         (procfs_target): New function, based on init_procfs_ops, but
2033         inherit inf_child_target.
2034         (_initialize_procfs): Use procfs_target.
2035
2036 2014-03-12  Pedro Alves  <palves@redhat.com>
2037
2038         * windows-nat.c: Include inf-child.h.
2039         (windows_ops): Delete global.
2040         (windows_open, windows_prepare_to_store, windows_can_run): Delete
2041         methods.
2042         (init_windows_ops): Delete function.
2043         (windows_target): New function, based on init_windows_ops, but
2044         inherit inf_child_target.
2045         (_initialize_windows_nat): Use windows_target.  Install x86
2046         specific target methods here.
2047
2048 2014-03-10  Doug Evans  <xdje42@gmail.com>
2049
2050         * guile/guile.c (call_initialize_gdb_module): New function.
2051         (initialize_guile): Replace call to scm_init_guile with call to
2052         scm_with_guile.
2053
2054 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
2055
2056         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2057         in call to TYPE_CODE macro.
2058
2059 2014-03-10  Jerome Guitton  <guitton@adacore.com>
2060
2061         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2062         Resolve tagged types to full view.
2063
2064 2014-03-10  Hui Zhu  <hui@codesourcery.com>
2065
2066         * target.h (target_insert_breakpoint): Remove "hardware" from its
2067         comments.
2068
2069 2014-03-07  Doug Evans  <dje@google.com>
2070
2071         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2072
2073 2014-03-07  Doug Evans  <dje@google.com>
2074
2075         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2076         Remove unused local comp_dir_attr.  Assert exactly one of
2077         stub_comp_unit_die, stub_comp_dir is non-NULL.
2078
2079 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
2080
2081         * target.h (complete_target_initialization, add_target):
2082         Add comment.
2083
2084 2014-03-07  Pedro Alves  <palves@redhat.com>
2085
2086         * go32-nat.c: Include inf-child.h.
2087         (go32_ops): Delete global.
2088         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2089         Delete methods.
2090         (go32_create_inferior): Push the passed in target pointer instead
2091         of referencing go32_ops.
2092         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
2093         (go32_target): New function, based on init_go32_ops, but inherit
2094         inf_child_target.
2095         (_initialize_go32_nat): Use go32_target.  Move parts of
2096         init_go32_ops here.
2097
2098 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
2099
2100         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2101         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2102         SYMBOL_VALUE_ADDRESS.
2103         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2104
2105 2014-03-06  Yao Qi  <yao@codesourcery.com>
2106
2107         * breakpoint.c (get_tracepoint_by_number): Remove argument
2108         optional_p.  All callers updated.  Adjust comments.  Update
2109         output message.
2110         * breakpoint.h (get_tracepoint_by_number): Update declaration.
2111
2112 2014-03-06  Yao Qi  <yao@codesourcery.com>
2113
2114         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
2115         early if get_number returns zero.  Use 'p' instead of 'args'.
2116
2117 2014-03-06  Yao Qi  <yao@codesourcery.com>
2118
2119         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2120         message.
2121
2122 2014-03-06  Yao Qi  <yao@codesourcery.com>
2123
2124         PR breakpoints/16508
2125         * tracepoint.c (check_trace_running): New function.
2126         (trace_find_command): Move code to check_trace_running and
2127         call check_trace_running.
2128         (trace_find_pc_command): Likewise.
2129         (trace_find_tracepoint_command): Likewise.
2130         (trace_find_line_command): Likewise.
2131         (trace_find_range_command): Likewise.
2132         * tracepoint.h (check_trace_running): Likewise.
2133         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2134
2135 2014-03-06  Yao Qi  <yao@codesourcery.com>
2136
2137         * target.h (struct target_ops) <to_traceframe_info>: Use
2138         TARGET_DEFAULT_NORETURN (tcomplain ()).
2139         * target-delegates.c: Regenerated.
2140
2141 2014-03-05  Pedro Alves  <palves@redhat.com>
2142
2143         PR gdb/16575
2144         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
2145         void.  Update comment.
2146         (dcache_xfer_memory): Delete.
2147         (dcache_read_memory_partial): New, based on the read bits of
2148         dcache_xfer_memory.
2149         (dcache_update): Add status parameter.  Use ULONGEST for len, and
2150         adjust.  Discard cache lines if the reason for the update was
2151         error.
2152         * dcache.h (dcache_xfer_memory): Delete declaration.
2153         (dcache_read_memory_partial): New declaration.
2154         (dcache_update): Update prototype.
2155         * target.c (raw_memory_xfer_partial): Update the dcache here.
2156         (memory_xfer_partial_1): Don't handle dcache writes here.
2157
2158 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
2159
2160         * remote-sim.c (gdbsim_load): Add const to prog.
2161
2162 2014-03-03  Tom Tromey  <tromey@redhat.com>
2163
2164         * elfread.c (probe_key): Change to bfd_data.
2165         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2166         now per-BFD, not per-objfile.
2167         * stap-probe.c (stap_probe_destroy): Update comment.
2168         (handle_stap_probe): Allocate on the per-BFD obstack.
2169
2170 2014-03-03  Tom Tromey  <tromey@redhat.com>
2171
2172         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2173         * breakpoint.c (create_longjmp_master_breakpoint): Use
2174         get_probe_address.
2175         (add_location_to_breakpoint, bkpt_probe_insert_location)
2176         (bkpt_probe_remove_location): Update.
2177         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2178         * elfread.c (elf_symfile_relocate_probe): Remove.
2179         (elf_probe_fns): Update.
2180         (insert_exception_resume_breakpoint): Change type of "probe"
2181         parameter to bound_probe.
2182         (check_exception_resume): Update.
2183         * objfiles.c (objfile_relocate1): Don't relocate probes.
2184         * probe.c (bound_probe_s): New typedef.
2185         (parse_probes): Use get_probe_address.  Set sal's objfile.
2186         (find_probe_by_pc): Return a bound_probe.
2187         (collect_probes): Return a VEC(bound_probe_s).
2188         (compare_probes): Update.
2189         (gen_ui_out_table_header_info): Change type of "probes"
2190         parameter.  Update.
2191         (info_probes_for_ops): Update.
2192         (get_probe_address): New function.
2193         (probe_safe_evaluate_at_pc): Update.
2194         * probe.h (struct probe_ops) <get_probe_address>: New field.
2195         <set_semaphore, clear_semaphore>: Add objfile parameter.
2196         (struct probe) <objfile>: Remove field.
2197         <arch>: New field.
2198         <address>: Update comment.
2199         (struct bound_probe): New.
2200         (find_probe_by_pc): Return a bound_probe.
2201         (get_probe_address): Declare.
2202         * solib-svr4.c (struct probe_and_action) <address>: New field.
2203         (hash_probe_and_action, equal_probe_and_action): Update.
2204         (register_solib_event_probe): Add address parameter.
2205         (solib_event_probe_at): Update.
2206         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
2207         get_probe_address.
2208         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2209         (stap_get_probe_address): New function.
2210         (stap_can_evaluate_probe_arguments, compute_probe_arg)
2211         (compile_probe_arg): Update.
2212         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2213         address.
2214         (handle_stap_probe): Don't relocate the probe.
2215         (stap_relocate): Remove.
2216         (stap_gen_info_probes_table_values): Update.
2217         (stap_probe_ops): Remove stap_relocate.
2218         * symfile-debug.c (debug_sym_relocate_probe): Remove.
2219         (debug_sym_probe_fns): Update.
2220         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2221         * symtab.c (init_sal): Use memset.
2222         * symtab.h (struct symtab_and_line) <objfile>: New field.
2223         * tracepoint.c (start_tracing, stop_tracing): Update.
2224
2225 2014-03-03  Tom Tromey  <tromey@redhat.com>
2226
2227         * probe.h (parse_probes, find_probe_by_pc)
2228         (find_probes_in_objfile): Fix comments.
2229
2230 2014-03-02  Doug Evans  <xdje42@gmail.com>
2231
2232         * infrun.c (handle_signal_stop): Replace test for
2233         TARGET_WAITKIND_STOPPED with an assert.
2234
2235 2014-03-02  Doug Evans  <xdje42@gmail.com>
2236
2237         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2238
2239 2014-03-02  Doug Evans  <xdje42@gmail.com>
2240
2241         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2242
2243 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2244
2245         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2246
2247 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2248
2249         * i386obsd-nat.c: Include "obsd-nat.h".
2250         (_initialize_i386obsd_nat): Call obsd_add_target instead of
2251         add_target.
2252         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2253
2254 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2255
2256         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2257
2258 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2259
2260         * mips64obsd-nat.c: Include "obsd-nath".
2261         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2262         add_target
2263         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2264
2265 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
2266
2267         * amd64obsd-nat.c: Include "obsd-nat,h.
2268         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2269         add_target.
2270         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2271
2272 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
2273
2274         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2275         (find_overload_match): Update call to find_oload_champ.
2276         (find_oload_champ_namespace_loop): Likewise
2277
2278 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
2279
2280         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2281
2282         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2283         * config/sparc/obsd64.mh: New file.
2284         * sparc64obsd-nat.c: New file.
2285
2286         * obsd-nat.h: New file.
2287         * obsd-nat.c: New file.
2288         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2289         (ALLDEPFILES): Add obsd-nat.c.
2290
2291 2014-02-28  Tom Tromey  <tromey@redhat.com>
2292
2293         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
2294         * cli-out.h (cli_ui_out_impl): Now const.
2295         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
2296         * ui-out.c (struct ui_out) <impl>: Now const.
2297         (default_ui_out_impl): Now const.
2298         (ui_out_new): Make 'impl' parameter const.
2299         * ui-out.h (ui_out_new): Update.
2300
2301 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2302
2303         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2304
2305 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2306
2307         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2308
2309 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2310
2311         Additional PR 8882 fix.
2312         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2313
2314 2014-02-27  Pedro Alves  <palves@redhat.com>
2315
2316         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2317         isn't set.
2318
2319 2014-02-27  Pedro Alves  <palves@redhat.com>
2320
2321         PR 12702
2322         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2323         * nat/linux-waitpid.c: Include string.h.
2324         (status_to_str): Moved here and made extern.
2325         * nat/linux-waitpid.h (status_to_str): New declaration.
2326
2327 2014-02-27  Hui Zhu  <hui@codesourcery.com>
2328
2329         PR 12702
2330         * infrun.c (ptid_match): Move ...
2331         * common/ptid.c (ptid_match): ... here.
2332         * inferior.h (ptid_match): Move ...
2333         * common/ptid.h (ptid_match): ... here.
2334
2335 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2336
2337         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2338         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2339         gdb_target_obs.
2340
2341 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
2342
2343         * obsd-tdep.c (obsd_auxv_parse): New function.
2344         (obsd_init_abi): Set auxv_parse.
2345
2346         * gdbarch.sh (auxv_parse): New.
2347         * gdbarch.h: Regenerated.
2348         * gdbarch.c: Regenerated.
2349         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2350
2351 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
2352
2353         * guile/scm-value.c (gdbscm_history_append_x): New function.
2354         (value_functions): Add it.
2355
2356 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
2357
2358         * dwarf2read.c (attr_value_as_address): New function.
2359         (dwarf2_find_base_address, read_call_site_scope): Use
2360         attr_value_as_address in place of DW_ADDR.
2361         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2362         the low and high addresses.  Slight rework of the handling
2363         of the high pc being a constant form, and limit it to
2364         DWARF verson 4 or higher.
2365         (dwarf2_record_block_ranges): Likewise.
2366         (read_partial_die): Likewise.
2367         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2368
2369 2014-02-26  Tom Tromey  <tromey@redhat.com>
2370
2371         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2372
2373 2014-02-26  Tom Tromey  <tromey@redhat.com>
2374
2375         * elfread.c (elf_read_minimal_symbols): Return early if
2376         minimal symbols have already been read.  Add "ei" parameter.
2377         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2378         * minsyms.c (prim_record_minimal_symbol_full): Update.
2379         * objfiles.h (struct objstats) <n_minsyms>: Move...
2380         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2381         * symmisc.c (print_objfile_statistics): Update.
2382
2383 2014-02-26  Tom Tromey  <tromey@redhat.com>
2384
2385         * elfread.c (elf_read_minimal_symbols): New function, from
2386         elf_symfile_read.
2387         (elf_symfile_read): Call it.
2388
2389 2014-02-26  Tom Tromey  <tromey@redhat.com>
2390
2391         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2392         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2393         (lookup_minimal_symbol_solib_trampoline)
2394         (lookup_minimal_symbol_by_pc_section_1)
2395         (lookup_minimal_symbol_and_objfile): Update.
2396         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2397         Don't allocate a minimal symbol if minsyms have already been read.
2398         (build_minimal_symbol_hash_tables): Update.
2399         (install_minimal_symbols): Do nothing if minsyms already read.
2400         Use the per-BFD obstack.
2401         (terminate_minimal_symbol_table): Use the per-BFD obstack.
2402         * objfiles.c (allocate_objfile): Call
2403         terminate_minimal_symbol_table later.
2404         (have_minimal_symbols): Update.
2405         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2406         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2407         Move from struct objfile.
2408         <minsyms_read>: New field.
2409         (struct objfile) <msymbols, minimal_symbol_count,
2410         msymbol_hash, msymbol_demangled_hash>: Move.
2411         (ALL_OBJFILE_MSYMBOLS): Update.
2412         * symfile.c (read_symbols): Set minsyms_read.
2413         (reread_symbols): Update.
2414         * symmisc.c (dump_objfile, dump_msymbols): Update.
2415
2416 2014-02-26  Tom Tromey  <tromey@redhat.com>
2417
2418         * minsyms.c (msymbols_sort): Remove.
2419         * minsyms.h (msymbols_sort): Remove.
2420         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2421         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2422         * elfread.c (elf_symtab_read): Don't add section offsets.
2423         * xcoffread.c (record_minimal_symbol): Don't add section offset
2424         to minimal symbol address.
2425         * somread.c (text_offset, data_offset): Remove.
2426         (som_symtab_read): Don't add section offsets to minimal symbol
2427         addresses.
2428         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2429         Don't add section offsets to minimal symbols.
2430         * coffread.c (coff_symtab_read): Don't add section offsets
2431         to minimal symbol addresses.
2432         * machoread.c (macho_symtab_add_minsym): Don't add section offset
2433         to minimal symbol addresses.
2434         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2435         section offset to minimal symbol addresses.
2436         * mdebugread.c (parse_partial_symbols): Don't add section
2437         offset to minimal symbol addresses.
2438         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2439         offset to minimal symbol addresses.
2440
2441 2014-02-26  Tom Tromey  <tromey@redhat.com>
2442
2443         * ada-lang.c (ada_main_name): Update.
2444         (ada_add_standard_exceptions): Update.
2445         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2446         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2447         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2448         * auxv.c (ld_so_xfer_auxv): Update.
2449         * avr-tdep.c (avr_scan_prologue): Update.
2450         * ax-gdb.c (gen_var_ref): Update.
2451         * blockframe.c (get_pc_function_start)
2452         (find_pc_partial_function_gnu_ifunc): Update.
2453         * breakpoint.c (create_overlay_event_breakpoint)
2454         (create_longjmp_master_breakpoint)
2455         (create_std_terminate_master_breakpoint)
2456         (create_exception_master_breakpoint): Update.
2457         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2458         * c-valprint.c (c_val_print): Update.
2459         * coff-pe-read.c (add_pe_forwarded_sym): Update.
2460         * common/agent.c (agent_look_up_symbols): Update.
2461         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2462         * dwarf2loc.c (call_site_to_target_addr): Update.
2463         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2464         * elfread.c (elf_gnu_ifunc_record_cache)
2465         (elf_gnu_ifunc_resolve_by_got): Update.
2466         * findvar.c (default_read_var_value): Update.
2467         * frame.c (inside_main_func): Update.
2468         * frv-tdep.c (frv_frame_this_id): Update.
2469         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2470         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2471         Update.
2472         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2473         (hppa_hpux_find_dummy_bpaddr): Update.
2474         * hppa-tdep.c (hppa_symbol_address): Update.
2475         * infcmd.c (until_next_command): Update.
2476         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2477         Update.
2478         * linespec.c (minsym_found, add_minsym): Update.
2479         * linux-nat.c (get_signo): Update.
2480         * linux-thread-db.c (inferior_has_bug): Update.
2481         * m32c-tdep.c (m32c_return_value)
2482         (m32c_m16c_address_to_pointer): Update.
2483         * m32r-tdep.c (m32r_frame_this_id): Update.
2484         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2485         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2486         * maint.c (maintenance_translate_address): Update.
2487         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2488         (frob_address): New function.
2489         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2490         frob_address.  Rename parameter to "pc_in".
2491         (compare_minimal_symbols, compact_minimal_symbols): Use raw
2492         addresses.
2493         (find_solib_trampoline_target, minimal_symbol_upper_bound):
2494         Update.
2495         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2496         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2497         * objc-lang.c (find_objc_msgsend): Update.
2498         * objfiles.c (objfile_relocate1): Update.
2499         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2500         * p-valprint.c (pascal_val_print): Update.
2501         * parse.c (write_exp_msymbol): Update.
2502         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2503         (ppc_elfv2_skip_entrypoint): Update.
2504         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2505         * printcmd.c (build_address_symbolic, msym_info)
2506         (address_info): Update.
2507         * proc-service.c (ps_pglobal_lookup): Update.
2508         * psymtab.c (find_pc_sect_psymtab_closer)
2509         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2510         Change msymbol parameter to bound_minimal_symbol.
2511         * ravenscar-thread.c (get_running_thread_id): Update.
2512         * remote.c (remote_check_symbols): Update.
2513         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2514         address.
2515         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2516         * solib-dsbt.c (lm_base): Update.
2517         * solib-frv.c (lm_base, main_got): Update.
2518         * solib-irix.c (locate_base): Update.
2519         * solib-som.c (som_solib_create_inferior_hook)
2520         (link_map_start): Update.
2521         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2522         * solib-svr4.c (elf_locate_base, enable_break): Update.
2523         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2524         (flush_ea_cache): Update.
2525         * stabsread.c (define_symbol, scan_file_globals): Update.
2526         * stack.c (find_frame_funname): Update.
2527         * symfile-debug.c (debug_qf_expand_symtabs_matching)
2528         (debug_qf_find_pc_sect_symtab): Update.
2529         * symfile.c (simple_read_overlay_table)
2530         (simple_overlay_update): Update.
2531         * symfile.h (struct quick_symbol_functions)
2532         <find_pc_sect_symtab>: Change type of msymbol to
2533         bound_minimal_symbol.
2534         * symmisc.c (dump_msymbols): Update.
2535         * symtab.c (find_pc_sect_symtab_via_partial)
2536         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2537         (search_symbols, print_msymbol_info): Update.
2538         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2539         (MSYMBOL_VALUE_ADDRESS): Redefine.
2540         (BMSYMBOL_VALUE_ADDRESS): New macro.
2541         * tracepoint.c (scope_info): Update.
2542         * tui/tui-disasm.c (tui_find_disassembly_address)
2543         (tui_get_begin_asm_address): Update.
2544         * valops.c (find_function_in_inferior): Update.
2545         * value.c (value_static_field, value_fn_field): Update.
2546
2547 2014-02-26  Tom Tromey  <tromey@redhat.com>
2548
2549         * ada-lang.c (ada_update_initial_language): Update.
2550         (ada_main_name, ada_has_this_exception_support): Update.
2551         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2552         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2553         * arm-tdep.c (arm_skip_stub): Update.
2554         * auxv.c (ld_so_xfer_auxv): Update.
2555         * avr-tdep.c (avr_scan_prologue): Update.
2556         * ax-gdb.c (gen_var_ref): Update.
2557         * breakpoint.c (struct breakpoint_objfile_data)
2558         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2559         type to bound_minimal_symbol.
2560         (create_overlay_event_breakpoint)
2561         (create_longjmp_master_breakpoint)
2562         (create_std_terminate_master_breakpoint)
2563         (create_exception_master_breakpoint): Update.
2564         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2565         * c-exp.y (classify_name): Update.
2566         * coffread.c (coff_symfile_read): Update.
2567         * common/agent.c (agent_look_up_symbols): Update.
2568         * d-lang.c (d_main_name): Update.
2569         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2570         * dec-thread.c (enable_dec_thread): Update.
2571         * dwarf2loc.c (call_site_to_target_addr): Update.
2572         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2573         * eval.c (evaluate_subexp_standard): Update.
2574         * findvar.c (struct minsym_lookup_data) <result>: Change type
2575         to bound_minimal_symbol.
2576         <objfile>: Remove.
2577         (minsym_lookup_iterator_cb, default_read_var_value): Update.
2578         * frame.c (inside_main_func): Update.
2579         * frv-tdep.c (frv_frame_this_id): Update.
2580         * gcore.c (call_target_sbrk): Update.
2581         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2582         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2583         Update.
2584         * go-lang.c (go_main_name): Update.
2585         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2586         (hppa_hpux_find_import_stub_for_addr): Update.
2587         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2588         Update.  Change return type.
2589         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2590         type.
2591         * jit.c (jit_breakpoint_re_set_internal): Update.
2592         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2593         Update.
2594         * linux-nat.c (get_signo): Update.
2595         * linux-thread-db.c (inferior_has_bug): Update
2596         * m32c-tdep.c (m32c_return_value)
2597         (m32c_m16c_address_to_pointer): Update.
2598         * m32r-tdep.c (m32r_frame_this_id): Update.
2599         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2600         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2601         * minsyms.c (lookup_minimal_symbol_internal): Rename to
2602         lookup_minimal_symbol.  Change return type.
2603         (lookup_minimal_symbol): Remove.
2604         (lookup_bound_minimal_symbol): Update.
2605         (lookup_minimal_symbol_text): Change return type.
2606         (lookup_minimal_symbol_solib_trampoline): Change return type.
2607         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2608         (lookup_minimal_symbol_solib_trampoline): Change return type.
2609         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2610         * objc-lang.c (lookup_objc_class, lookup_child_selector)
2611         (value_nsstring, find_imps): Update.
2612         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2613         * p-lang.c (pascal_main_name): Update.
2614         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2615         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2616         * proc-service.c (ps_pglobal_lookup): Update.
2617         * ravenscar-thread.c (get_running_thread_msymbol): Change
2618         return type.
2619         (has_ravenscar_runtime, get_running_thread_id): Update.
2620         * remote.c (remote_check_symbols): Update.
2621         * sol-thread.c (ps_pglobal_lookup): Update.
2622         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2623         * solib-dsbt.c (lm_base): Update.
2624         * solib-frv.c (lm_base, frv_relocate_section_addresses):
2625         Update.
2626         * solib-irix.c (locate_base): Update.
2627         * solib-som.c (som_solib_create_inferior_hook)
2628         (som_solib_desire_dynamic_linker_symbols, link_map_start):
2629         Update.
2630         * solib-spu.c (spu_enable_break): Update.
2631         * solib-svr4.c (elf_locate_base, enable_break): Update.
2632         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2633         (flush_ea_cache): Update.
2634         * stabsread.c (define_symbol): Update.
2635         * symfile.c (simple_read_overlay_table): Update.
2636         * symtab.c (find_pc_sect_line): Update.
2637         * tracepoint.c (scope_info): Update.
2638         * tui-disasm.c (tui_get_begin_asm_address): Update.
2639         * value.c (value_static_field): Update.
2640
2641 2014-02-26  Tom Tromey  <tromey@redhat.com>
2642
2643         * minsyms.c (prim_record_minimal_symbol_full): Use
2644         SET_MSYMBOL_VALUE_ADDRESS.
2645         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2646         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2647         SET_MSYMBOL_VALUE_ADDRESS.
2648         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2649         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2650
2651 2014-02-26  Tom Tromey  <tromey@redhat.com>
2652
2653         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2654         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2655         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2656         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2657         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2658         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2659         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2660         * ada-lang.c (ada_main_name): Update.
2661         (ada_lookup_simple_minsym): Update.
2662         (ada_make_symbol_completion_list): Update.
2663         (ada_add_standard_exceptions): Update.
2664         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2665         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2666         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2667         * arm-tdep.c (skip_prologue_function): Update.
2668         (arm_skip_stack_protector, arm_skip_stub): Update.
2669         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2670         (arm_wince_skip_main_prologue): Update.
2671         * auxv.c (ld_so_xfer_auxv): Update.
2672         * avr-tdep.c (avr_scan_prologue): Update.
2673         * ax-gdb.c (gen_var_ref): Update.
2674         * block.c (call_site_for_pc): Update.
2675         * blockframe.c (get_pc_function_start): Update.
2676         (find_pc_partial_function_gnu_ifunc): Update.
2677         * breakpoint.c (create_overlay_event_breakpoint): Update.
2678         (create_longjmp_master_breakpoint): Update.
2679         (create_std_terminate_master_breakpoint): Update.
2680         (create_exception_master_breakpoint): Update.
2681         (resolve_sal_pc): Update.
2682         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2683         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2684         Update.
2685         * c-valprint.c (c_val_print): Update.
2686         * coff-pe-read.c (add_pe_forwarded_sym): Update.
2687         * coffread.c (coff_symfile_read): Update.
2688         * common/agent.c (agent_look_up_symbols): Update.
2689         * dbxread.c (find_stab_function_addr): Update.
2690         (end_psymtab): Update.
2691         * dwarf2loc.c (call_site_to_target_addr): Update.
2692         (func_verify_no_selftailcall): Update.
2693         (tailcall_dump): Update.
2694         (call_site_find_chain_1): Update.
2695         (dwarf_expr_reg_to_entry_parameter): Update.
2696         * elfread.c (elf_gnu_ifunc_record_cache): Update.
2697         (elf_gnu_ifunc_resolve_by_got): Update.
2698         * f-valprint.c (info_common_command): Update.
2699         * findvar.c (read_var_value): Update.
2700         * frame.c (get_prev_frame_1): Update.
2701         (inside_main_func): Update.
2702         * frv-tdep.c (frv_skip_main_prologue): Update.
2703         (frv_frame_this_id): Update.
2704         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2705         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2706         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2707         (gnuv3_skip_trampoline): Update.
2708         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2709         (hppa64_hpux_in_solib_call_trampoline): Update.
2710         (hppa_hpux_skip_trampoline_code): Update.
2711         (hppa64_hpux_search_dummy_call_sequence): Update.
2712         (hppa_hpux_find_import_stub_for_addr): Update.
2713         (hppa_hpux_find_dummy_bpaddr): Update.
2714         * hppa-tdep.c (hppa_symbol_address)
2715         (hppa_lookup_stub_minimal_symbol): Update.
2716         * i386-tdep.c (i386_skip_main_prologue): Update.
2717         (i386_pe_skip_trampoline_code): Update.
2718         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2719         * infcall.c (get_function_name): Update.
2720         * infcmd.c (until_next_command): Update.
2721         * jit.c (jit_breakpoint_re_set_internal): Update.
2722         (jit_inferior_init): Update.
2723         * linespec.c (minsym_found): Update.
2724         (add_minsym): Update.
2725         * linux-fork.c (info_checkpoints_command): Update.
2726         * linux-nat.c (get_signo): Update.
2727         * linux-thread-db.c (inferior_has_bug): Update.
2728         * m32c-tdep.c (m32c_return_value): Update.
2729         (m32c_m16c_address_to_pointer): Update.
2730         (m32c_m16c_pointer_to_address): Update.
2731         * m32r-tdep.c (m32r_frame_this_id): Update.
2732         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2733         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2734         * maint.c (maintenance_translate_address): Update.
2735         * minsyms.c (add_minsym_to_hash_table): Update.
2736         (add_minsym_to_demangled_hash_table): Update.
2737         (msymbol_objfile): Update.
2738         (lookup_minimal_symbol): Update.
2739         (iterate_over_minimal_symbols): Update.
2740         (lookup_minimal_symbol_text): Update.
2741         (lookup_minimal_symbol_by_pc_name): Update.
2742         (lookup_minimal_symbol_solib_trampoline): Update.
2743         (lookup_minimal_symbol_by_pc_section_1): Update.
2744         (lookup_minimal_symbol_and_objfile): Update.
2745         (prim_record_minimal_symbol_full): Update.
2746         (compare_minimal_symbols): Update.
2747         (compact_minimal_symbols): Update.
2748         (build_minimal_symbol_hash_tables): Update.
2749         (install_minimal_symbols): Update.
2750         (terminate_minimal_symbol_table): Update.
2751         (find_solib_trampoline_target): Update.
2752         (minimal_symbol_upper_bound): Update.
2753         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2754         * mips-tdep.c (mips_stub_frame_sniffer): Update.
2755         (mips_skip_pic_trampoline_code): Update.
2756         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2757         * objc-lang.c (selectors_info): Update.
2758         (classes_info): Update.
2759         (find_methods): Update.
2760         (find_imps): Update.
2761         (find_objc_msgsend): Update.
2762         * objfiles.c (objfile_relocate1): Update.
2763         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2764         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2765         * p-valprint.c (pascal_val_print): Update.
2766         * parse.c (write_exp_msymbol): Update.
2767         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2768         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2769         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2770         * printcmd.c (build_address_symbolic): Update.
2771         (sym_info): Update.
2772         (address_info): Update.
2773         * proc-service.c (ps_pglobal_lookup): Update.
2774         * psymtab.c (find_pc_sect_psymtab_closer): Update.
2775         (find_pc_sect_psymtab): Update.
2776         * python/py-framefilter.c (py_print_frame): Update.
2777         * ravenscar-thread.c (get_running_thread_id): Update.
2778         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2779         Update.
2780         * remote.c (remote_check_symbols): Update.
2781         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2782         (rs6000_skip_trampoline_code): Update.
2783         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2784         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2785         * solib-dsbt.c (lm_base): Update.
2786         * solib-frv.c (lm_base): Update.
2787         (main_got): Update.
2788         * solib-irix.c (locate_base): Update.
2789         * solib-som.c (som_solib_create_inferior_hook): Update.
2790         (som_solib_desire_dynamic_linker_symbols): Update.
2791         (link_map_start): Update.
2792         * solib-spu.c (spu_enable_break): Update.
2793         (ocl_enable_break): Update.
2794         * solib-svr4.c (elf_locate_base): Update.
2795         (enable_break): Update.
2796         * spu-tdep.c (spu_get_overlay_table): Update.
2797         (spu_catch_start): Update.
2798         (flush_ea_cache): Update.
2799         * stabsread.c (define_symbol): Update.
2800         (scan_file_globals): Update.
2801         * stack.c (find_frame_funname): Update.
2802         (frame_info): Update.
2803         * symfile.c (simple_read_overlay_table): Update.
2804         (simple_overlay_update): Update.
2805         * symmisc.c (dump_msymbols): Update.
2806         * symtab.c (fixup_section): Update.
2807         (find_pc_sect_line): Update.
2808         (skip_prologue_sal): Update.
2809         (search_symbols): Update.
2810         (print_msymbol_info): Update.
2811         (rbreak_command): Update.
2812         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2813         (completion_list_objc_symbol): Update.
2814         (default_make_symbol_completion_list_break_on): Update.
2815         * tracepoint.c (scope_info): Update.
2816         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2817         (tui_get_begin_asm_address): Update.
2818         * valops.c (find_function_in_inferior): Update.
2819         * value.c (value_static_field): Update.
2820         (value_fn_field): Update.
2821
2822 2014-02-26  Tom Tromey  <tromey@redhat.com>
2823
2824         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2825         bound minimal symbols.  Move code that knows about minsym
2826         table layout...
2827         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
2828         function.
2829         * minsyms.h (minimal_symbol_upper_bound): Declare.
2830         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2831         minimal_symbol_upper_bound.
2832
2833 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
2834
2835         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2836         Use the type's name if its basic type does not have a tag.
2837
2838 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
2839
2840         * dwarf2read.c (read_subrange_type): Add comment.
2841
2842 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
2843
2844         * dwarf2read.c (update_enumeration_type_from_children): New
2845         function, mostly extracted from process_structure_scope.
2846         (read_enumeration_type): Call update_enumeration_type_from_children.
2847         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2848         and flag_flag_enum fields.
2849
2850 2014-02-26  Pedro Alves  <palves@redhat.com>
2851
2852         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2853         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2854         to_xfer_partial method.
2855
2856 2014-02-26  Pedro Alves  <palves@redhat.com>
2857
2858         * target.c (complete_target_initialization): Don't install
2859         default_xfer_partial as to_xfer_partial hook.
2860         (nomemory): Delete.
2861         (update_current_target): Don't INHERIT nor de_fault
2862         deprecated_xfer_memory.  Delete de_fault macro.
2863         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2864         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2865         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2866         field.
2867
2868 2014-02-26  Pedro Alves  <palves@redhat.com>
2869
2870         * go32-nat.c (my_write_child): New function.
2871         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2872         (go32_xfer_partial): New function.
2873         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2874         Instead install a to_xfer_partial hook.
2875
2876 2014-02-26  Pedro Alves  <palves@redhat.com>
2877
2878         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2879         to_xfer_partial helper.  Rewrite.
2880         (procfs_xfer_partial): New function.
2881         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2882         Install a to_xfer_partial hook.
2883
2884 2014-02-26  Pedro Alves  <palves@redhat.com>
2885
2886         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2887         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2888         (m32r_xfer_partial): New function.
2889         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2890         Install a to_xfer_partial hook.
2891
2892 2014-02-26  Pedro Alves  <palves@redhat.com>
2893
2894         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2895         helper.
2896         (mips_xfer_partial): New function.
2897         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2898         hook.  Install a to_xfer_partial hook.
2899
2900 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
2901
2902         * gdbtypes.h (create_array_type_with_stride): Add declaration.
2903         * gdbtypes.c (create_array_type_with_stride): New function,
2904         renaming create_array_type, but with an added parameter
2905         called "bit_stride".
2906         (create_array_type): Re-implement using
2907         create_array_type_with_stride.
2908         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2909         and DW_AT_bit_stride attributes.
2910
2911 2014-02-26  Pedro Alves  <palves@redhat.com>
2912
2913         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2914         task-specific breakpoints.
2915
2916 2014-02-25  Pedro Alves  <palves@redhat.com>
2917
2918         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2919         handling of object == TARGET_OBJECT_UNWIND_TABLE.
2920
2921 2014-02-25  Stan Shebs  <stan@codesourcery.com>
2922
2923         * defs.h: Annotate comments for Doxygen.
2924
2925 2014-02-25  Tom Tromey  <tromey@redhat.com>
2926
2927         * target.h (target_ignore): Don't declare.
2928         * target.c (target_ignore): Remove.
2929
2930 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2931
2932         PR gdb/16626
2933         * auto-load.c (auto_load_objfile_script_1): Change filename to
2934         debugfile.
2935
2936 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
2937
2938         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2939         documentation.  Adjust prototype to match the target_ops
2940         to_xfer_partial method.  Adjust implementation accordingly.
2941
2942 2014-02-25  Hui Zhu  <hui@codesourcery.com>
2943
2944         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2945         to_traceframe_info.
2946
2947 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
2948
2949         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2950         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2951         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2952         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2953         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2954         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2955         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2956         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2957         New constants.
2958         (rl78_register_type): Use a data pointer type for SP and
2959         new pseudo registers mentioned above.  Use a 16 bit integer
2960         type for all other register pairs.
2961         (rl78_register_name, rl78_g10_register_name): Update for
2962         new pseudo registers.
2963         (rl78_pseudo_register_read): Likewise.
2964         (rl78_pseudo_register_write): Likewise.
2965         (rl78_dwarf_reg_to_regnum): Return register numbers representing
2966         to the newly added pseudo registers.
2967
2968 2014-02-24  Doug Evans  <dje@google.com>
2969
2970         * value.c (record_latest_value): Fix comment.
2971         * printcmd.c (print_command_1): Remove code to handle -1 return from
2972         record_latest_value.
2973
2974 2014-02-24  Pedro Alves  <palves@redhat.com>
2975
2976         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2977         deprecated_xfer_memory hook.
2978         (procfs_xfer_partial): Call procfs_xfer_memory instead
2979         of the deprecated_xfer_memory target hook.
2980         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2981         helper.
2982
2983 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
2984
2985         * windows-nat.c (windows_xfer_shared_libraries): Return
2986         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2987         requested object is TARGET_OBJECT_LIBRARIES.
2988
2989 2014-02-24  Yao Qi  <yao@codesourcery.com>
2990
2991         * target.h (enum target_xfer_status)
2992         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2993         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2994         explicitly.  New.
2995         * corefile.c (memory_error_message): User updated.
2996         * exec.c (section_table_read_available_memory): Likewise.
2997         * record-btrace.c (record_btrace_xfer_partial): Likewise.
2998         * target.c (target_xfer_status_to_string): Likewise.
2999         (raw_memory_xfer_partial): Likewise.
3000         (memory_xfer_partial_1, target_xfer_partial): Likewise.
3001         * valops.c (read_value_memory): Likewise.
3002         * exec.h: Update comments.
3003
3004 2014-02-24  Yao Qi  <yao@codesourcery.com>
3005
3006         * target.c (target_xfer_status_to_string): Rename argument err
3007         to status.
3008         * target.h (target_xfer_status_to_string): Update declaration.
3009         Replace target_xfer_error_to_string with
3010         target_xfer_status_to_string in comment.
3011
3012 2014-02-24  Yao Qi  <yao@codesourcery.com>
3013
3014         * mips-linux-nat.c (super_close): Update its type.
3015         (mips_linux_close): Pass 'self' to super_close.
3016
3017 2014-02-24  Yao Qi  <yao@codesourcery.com>
3018
3019         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3020         * corefile.c (read_memory): Adjusted.
3021         * target.c (target_write_with_progress): Adjusted.
3022
3023 2014-02-23  Yao Qi  <yao@codesourcery.com>
3024
3025         Revert two patches:
3026
3027         2013-10-25  Yao Qi  <yao@codesourcery.com>
3028
3029         * remote.c (remote_traceframe_info): Return early if
3030         traceframe is not selected.
3031
3032         2013-07-19  Yao Qi  <yao@codesourcery.com>
3033
3034         * target.c (update_current_target): Change the default action
3035         of 'to_traceframe_info' from tcomplain to return_zero.
3036         * target.h (struct target_ops) <to_traceframe_info>: Add more
3037         comments.
3038
3039 2014-02-23  Yao Qi  <yao@codesourcery.com>
3040
3041         * valops.c (read_value_memory): Rewrite it.  Call
3042         target_xfer_partial in a loop.
3043         * exec.h (section_table_available_memory): Remove declaration.
3044         Move comments to ...
3045         * exec.c (section_table_available_memory): ... here.  Make it
3046         static.
3047
3048 2014-02-23  Yao Qi  <yao@codesourcery.com>
3049
3050         * exec.c (section_table_read_available_memory): New function.
3051         * exec.h (section_table_read_available_memory): Declare.
3052         * ctf.c (ctf_xfer_partial): Call
3053         section_table_read_available_memory.
3054         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3055
3056 2014-02-23  Yao Qi  <yao@codesourcery.com>
3057
3058         * ctf.c (ctf_xfer_partial): Move code to ...
3059         * exec.c (exec_read_partial_read_only): ... it.  New function.
3060         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3061         * tracefile.c: Include "exec.h".
3062         * exec.h (exec_read_partial_read_only): Declare.
3063
3064 2014-02-23  Yao Qi  <yao@codesourcery.com>
3065
3066         * tracefile-tfile.c (tfile_has_all_memory): Remove.
3067         (tfile_has_memory): Remove.
3068         (init_tfile_ops): Don't set fields to_has_all_memory and
3069         to_has_memory of tfile_ops.
3070         * tracefile.c (tracefile_has_all_memory): New function.
3071         (tracefile_has_memory): New function.
3072         (init_tracefile_ops): Initialize fields to_has_all_memory and
3073         to_has_memory of 'ops'.
3074
3075 2014-02-23  Yao Qi  <yao@codesourcery.com>
3076
3077         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3078         (ctf_thread_alive, ctf_get_trace_status): Remove.
3079         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
3080         init_tracefile_ops.
3081         * tracefile-tfile.c (tfile_get_trace_status): Remove.
3082         (tfile_has_stack, tfile_has_registers): Remove.
3083         (tfile_thread_alive): Remove.
3084         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
3085         init_tracefile_ops.
3086         * tracefile.c (tracefile_has_stack): New function.
3087         (tracefile_has_registers): New function.
3088         (tracefile_thread_alive): New function.
3089         (tracefile_get_trace_status): New function.
3090         (init_tracefile_ops): New function.
3091         * tracefile.h (init_tracefile_ops): Declare.
3092
3093 2014-02-23  Yao Qi  <yao@codesourcery.com>
3094
3095         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3096         (O_LARGEFILE): Likewise.
3097         (tfile_ops): Likewise.
3098         (TRACE_HEADER_SIZE): Likewise.
3099         (trace_fd, trace_frames_offset, cur_offset): Likewise.
3100         (cur_data_size): Likewise.
3101         (tfile_read, tfile_open, tfile_interp_line): Likewise.
3102         (tfile_close, tfile_files_info): Likewise.
3103         (tfile_get_trace_status): Likewise.
3104         (tfile_get_tracepoint_status): Likewise.
3105         (tfile_get_traceframe_address): Likewise.
3106         (tfile_trace_find, match_blocktype): Likewise.
3107         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3108         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3109         (tfile_get_trace_state_variable_value): Likewise.
3110         (tfile_has_all_memory, tfile_has_memory): Likewise.
3111         (tfile_has_stack, tfile_has_registers): Likewise.
3112         (tfile_thread_alive, build_traceframe_info): Likewise.
3113         (tfile_traceframe_info, init_tfile_ops): Likewise.
3114         (_initialize_tracepoint): Don't call init_tfile_ops
3115         and add_target_with_completer.
3116         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3117         exec.h, completer.h and filenames.h.
3118         (_initialize_tracefile_tfile): New function.
3119
3120 2014-02-23  Yao Qi  <yao@codesourcery.com>
3121
3122         * Makefile.in (REMOTE_OBS): Append tracefile.o and
3123         tracefile-tfile.o.
3124         (HFILES_NO_SRCDIR): Add tracefile.h.
3125         * ctf.c: Include "tracefile.h".
3126         * tracefile.h: New file.
3127         * tracefile.c: New file
3128         * tracefile-tfile.c: New file.
3129         * tracepoint.c: Include "tracefile.h".
3130         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3131         (stop_reason_names): Add const.
3132         (trace_file_writer_xfree): Move it to tracefile.c.
3133         (trace_save, trace_save_command, trace_save_tfile): Likewise.
3134         (trace_save_ctf): Likewise.
3135         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3136         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3137         (tfile_write_header, tfile_write_regblock_type): Likewise.
3138         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3139         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3140         (tfile_write_raw_data, tfile_end): Likewise.
3141         (tfile_trace_file_writer_new): Likewise.
3142         (free_uploaded_tp): Make it extern.
3143         (free_uploaded_tsv): Make it extern.
3144         (_initialize_tracepoint): Move code to register command 'tsave'
3145         to tracefile.c.
3146         * tracepoint.h (stop_reason_names): Declare.
3147         (struct trace_frame_write_ops): Move it to tracefile.h.
3148         (struct trace_file_write_ops): Likewise.
3149         (struct trace_file_writer): Likewise.
3150         (free_uploaded_tsvs, free_uploaded_tps): Declare.
3151
3152 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3153
3154         PR gdb/16594
3155         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3156         process name.
3157         (get_cores_used_by_process): New parameter num_cores, use it.
3158         (linux_xfer_osdata_processes): Pass num_cores to it.
3159         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3160         process name.
3161
3162 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
3163
3164         * target.c (memory_xfer_partial): Fix length arg in call to
3165         breakpoint_xfer_memory.
3166
3167 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
3168
3169         PR tdep/16397
3170         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3171         number comes after the + or - signs.  Adjust length of register
3172         name to be extracted.
3173
3174 2014-02-20  Tom Tromey  <tromey@redhat.com>
3175
3176         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3177         (ada_varobj_ops): Mark "extern".
3178
3179 2014-02-20  Tom Tromey  <tromey@redhat.com>
3180
3181         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3182
3183 2014-02-20  Doug Evans  <xdje42@gmail.com>
3184
3185         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3186         All callers updated.
3187         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3188         All callers updated.
3189         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3190         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3191
3192 2014-02-20  lin zuojian  <manjian2006@gmail.com>
3193             Joel Brobecker  <brobecker@adacore.com>
3194             Doug Evans  <xdje42@gmail.com>
3195
3196         PR symtab/16581
3197         * dwarf2read.c (struct die_info): New member in_process.
3198         (reset_die_in_process): New function.
3199         (process_die): Set it at the start, reset when returning.
3200         (inherit_abstract_dies): Only call process_die if origin_child_die
3201         not already being processed.
3202
3203 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3204
3205         * windows-nat.c (handle_unload_dll): Add function documentation.
3206         (do_initial_windows_stuff): Add comment explaining why we wait
3207         until after inferior initialization has finished before
3208         processing all DLLs.
3209
3210 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3211
3212         * windows-nat.c (get_module_name): Delete.
3213         (windows_get_exec_module_filename): New function, mostly
3214         inspired from get_module_name.
3215         (windows_pid_to_exec_file): Replace call to get_module_name
3216         by call to windows_get_exec_module_filename.
3217
3218 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3219
3220         * windows-nat.c (handle_load_dll): Rewrite this function's
3221         introductory comment.  Remove code using get_module_name
3222         to get the DLL's name.
3223
3224 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3225
3226         * windows-nat.c (get_windows_debug_event): Ignore
3227         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3228         if windows_initialization_done == 0.
3229         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3230         Adjust implementation to always load all DLLs.
3231         (do_initial_windows_stuff): Replace call to
3232         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3233
3234 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3235
3236         * windows-nat.c (_initialize_windows_nat): Deprecate the
3237         "dll-symbols" command.  Turn the "add-shared-symbol-files"
3238         and "assf" aliases into commands, and deprecate them as well.
3239         * NEWS: Add entry explaining that "dll-symbols" and its two
3240         aliases are now deprecated.
3241
3242 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
3243
3244         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3245         new-line in debug string.  Remove trailing spaces.
3246
3247 2014-02-19  Stan Shebs  <stan@codesourcery.com>
3248
3249         * darwin-nat.c (darwin_xfer_partial): Fix return type.
3250
3251 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
3252
3253         * NEWS: Add entry for the new feature
3254         * python/py-value.c (valpy_binop): Call value_x_binop for struct
3255         and class values.
3256
3257 2014-02-19  Stan Shebs  <stan@codesourcery.com>
3258
3259         * MAINTAINERS: List Yao Qi as nios2 maintainer.
3260
3261 2014-02-19  Pedro Alves  <palves@redhat.com>
3262
3263         * common/ptid.h (struct ptid): Mention that process_stratum
3264         targets should prefer ptid.lwp.
3265
3266 2014-02-19  Pedro Alves  <palves@redhat.com>
3267
3268         * remote.c (remote_thread_alive, write_ptid, read_ptid)
3269         (read_ptid, remote_newthread_step, remote_threads_extra_info)
3270         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3271         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3272         store remote thread ids rather than ptid.tid.
3273         (_initialize_remote): Adjust.
3274
3275 2014-02-19  Tom Tromey  <tromey@redhat.com>
3276
3277         * target.c (target_get_unwinder): Rewrite.
3278         (target_get_tailcall_unwinder): Rewrite.
3279         * record-btrace.c (record_btrace_to_get_unwinder): New function.
3280         (record_btrace_to_get_tailcall_unwinder): New function.
3281         (init_record_btrace_ops): Update.
3282         * target.h (struct target_ops) <to_get_unwinder,
3283         to_get_tailcall_unwinder>: Now function pointers.  Use
3284         TARGET_DEFAULT_RETURN.
3285
3286 2014-02-19  Tom Tromey  <tromey@redhat.com>
3287
3288         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3289         argument.
3290         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3291
3292 2014-02-19  Tom Tromey  <tromey@redhat.com>
3293
3294         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3295         directly.
3296         * target-delegates.c: Rebuild.
3297         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3298         TARGET_DEFAULT_FUNC.
3299         * target.c (default_target_decr_pc_after_break): Rename from
3300         forward_target_decr_pc_after_break.  Simplify.
3301         (target_decr_pc_after_break): Rely on delegation.
3302
3303 2014-02-19  Tom Tromey  <tromey@redhat.com>
3304
3305         * target.c (update_current_target): Do not INHERIT to_doc or
3306         to_magic.  Do not de_fault to_open or to_close.
3307
3308 2014-02-19  Tom Tromey  <tromey@redhat.com>
3309
3310         * gcore.h (objfile_find_memory_regions): Declare.
3311         * gcore.c (objfile_find_memory_regions): No longer static.  Add
3312         "self" argument.
3313         (_initialize_gcore): Don't call exec_set_find_memory_regions.
3314         * exec.c: Include gcore.h.
3315         (exec_set_find_memory_regions): Remove.
3316         (exec_find_memory_regions): Remove.
3317         (exec_do_find_memory_regions): Remove.
3318         (init_exec_ops): Update.
3319         * defs.h (exec_set_find_memory_regions): Remove.
3320
3321 2014-02-19  Tom Tromey  <tromey@redhat.com>
3322
3323         * target-delegates.c: Rebuild.
3324         * target.h (struct target_ops) <to_extra_thread_info,
3325         to_thread_name, to_pid_to_exec_file, to_get_section_table,
3326         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3327         not 0, in TARGET_DEFAULT_RETURN.
3328
3329 2014-02-19  Tom Tromey  <tromey@redhat.com>
3330
3331         * target.c (complete_target_initialization): Remove casts.  Use
3332         return_zero_has_execution.
3333         (return_zero): Add "ignore" argument.
3334         (return_zero_has_execution): New function.
3335         (init_dummy_target): Remove casts.  Use
3336         return_zero_has_execution.
3337
3338 2014-02-19  Tom Tromey  <tromey@redhat.com>
3339
3340         * target.c (update_current_target): Update comments.  Do not
3341         INHERIT to_stratum.
3342
3343 2014-02-19  Tom Tromey  <tromey@redhat.com>
3344
3345         * arm-linux-nat.c (arm_linux_read_description): Delegate when
3346         needed.
3347         * corelow.c (core_read_description): Delegate when needed.
3348         * remote.c (remote_read_description): Delegate when needed.
3349         * target-delegates.c: Rebuild.
3350         * target.c (target_read_description): Rewrite.
3351         * target.h (struct target_ops) <to_read_description>: Update
3352         comment.  Use TARGET_DEFAULT_RETURN.
3353
3354 2014-02-19  Tom Tromey  <tromey@redhat.com>
3355
3356         * target-delegates.c: Rebuild.
3357         * target.c (update_current_target): Don't inherit or default
3358         to_can_run.
3359         (find_default_run_target): Check against delegate_can_run.
3360         * target.h (struct target_ops) <to_can_run>: Use
3361         TARGET_DEFAULT_RETURN.
3362
3363 2014-02-19  Tom Tromey  <tromey@redhat.com>
3364
3365         * target-delegates.c: Rebuild.
3366         * target.c (target_disconnect): Unconditionally delegate.
3367         * target.h (struct target_ops) <to_disconnect>: Use
3368         TARGET_DEFAULT_NORETURN.
3369
3370 2014-02-19  Tom Tromey  <tromey@redhat.com>
3371
3372         * record.c (record_stop): Unconditionally delegate.
3373         * target-delegates.c: Rebuild.
3374         * target.c (target_stop_recording): Unconditionally delegate.
3375         * target.h (struct target_ops) <to_stop_recording>: Use
3376         TARGET_DEFAULT_IGNORE.
3377
3378 2014-02-19  Tom Tromey  <tromey@redhat.com>
3379
3380         * target-delegates.c: Rebuild.
3381         * target.c (target_enable_btrace): Unconditionally delegate.
3382         * target.h (struct target_ops) <to_enable_btrace>: Use
3383         TARGET_DEFAULT_NORETURN.
3384
3385 2014-02-19  Tom Tromey  <tromey@redhat.com>
3386
3387         * target-delegates.c: Rebuild.
3388         * target.c (target_read_btrace): Unconditionally delegate.
3389         * target.h (struct target_ops) <to_read_btrace>: Use
3390         TARGET_DEFAULT_NORETURN.
3391
3392 2014-02-19  Tom Tromey  <tromey@redhat.com>
3393
3394         * target-delegates.c: Rebuild.
3395         * target.c (target_teardown_btrace): Unconditionally delegate.
3396         * target.h (struct target_ops) <to_teardown_btrace>: Use
3397         TARGET_DEFAULT_NORETURN.
3398
3399 2014-02-19  Tom Tromey  <tromey@redhat.com>
3400
3401         * target-delegates.c: Rebuild.
3402         * target.c (target_disable_btrace): Unconditionally delegate.
3403         * target.h (struct target_ops) <to_disable_btrace>: Use
3404         TARGET_DEFAULT_NORETURN.
3405
3406 2014-02-19  Tom Tromey  <tromey@redhat.com>
3407
3408         * target-delegates.c: Rebuild.
3409         * target.c (default_search_memory): New function.
3410         (simple_search_memory): Update comment.
3411         (target_search_memory): Unconditionally delegate.
3412         * target.h (struct target_ops) <to_search_memory>: Use
3413         TARGET_DEFAULT_FUNC.
3414
3415 2014-02-19  Tom Tromey  <tromey@redhat.com>
3416
3417         * auxv.c (default_auxv_parse): No longer static.
3418         (target_auxv_parse): Unconditionally delegate.
3419         * auxv.h (default_auxv_parse): Declare.
3420         * target-delegates.c: Rebuild.
3421         * target.c: Include auxv.h.
3422         * target.h (struct target_ops) <to_auxv_parse>: Use
3423         TARGET_DEFAULT_FUNC.
3424
3425 2014-02-19  Tom Tromey  <tromey@redhat.com>
3426
3427         * target-delegates.c: Rebuild.
3428         * target.c (target_memory_map): Unconditionally delegate.
3429         * target.h (struct target_ops) <to_memory_map>: Use
3430         TARGET_DEFAULT_RETURN.
3431
3432 2014-02-19  Tom Tromey  <tromey@redhat.com>
3433
3434         * target-delegates.c: Rebuild.
3435         * target.c (target_thread_alive): Unconditionally delegate.
3436         * target.h (struct target_ops) <to_thread_alive>: Use
3437         TARGET_DEFAULT_RETURN.
3438
3439 2014-02-19  Tom Tromey  <tromey@redhat.com>
3440
3441         * target-delegates.c: Rebuild.
3442         * target.c (target_save_record): Unconditionally delegate.
3443         * target.h (struct target_ops) <to_save_record>: Use
3444         TARGET_DEFAULT_NORETURN.
3445
3446 2014-02-19  Tom Tromey  <tromey@redhat.com>
3447
3448         * target-delegates.c: Rebuild.
3449         * target.c (target_delete_record): Unconditionally delegate.
3450         * target.h (struct target_ops) <to_delete_record>: Use
3451         TARGET_DEFAULT_NORETURN.
3452
3453 2014-02-19  Tom Tromey  <tromey@redhat.com>
3454
3455         * target-delegates.c: Rebuild.
3456         * target.c (target_record_is_replaying): Unconditionally
3457         delegate.
3458         * target.h (struct target_ops) <to_record_is_replaying>: Use
3459         TARGET_DEFAULT_RETURN.
3460
3461 2014-02-19  Tom Tromey  <tromey@redhat.com>
3462
3463         * target-delegates.c: Rebuild.
3464         * target.c (target_goto_record_begin): Unconditionally delegate.
3465         * target.h (struct target_ops) <to_goto_record_begin>: Use
3466         TARGET_DEFAULT_NORETURN.
3467
3468 2014-02-19  Tom Tromey  <tromey@redhat.com>
3469
3470         * target-delegates.c: Rebuild.
3471         * target.c (target_goto_record_end): Unconditionally delegate.
3472         * target.h (struct target_ops) <to_goto_record_end>: Use
3473         TARGET_DEFAULT_NORETURN.
3474
3475 2014-02-19  Tom Tromey  <tromey@redhat.com>
3476
3477         * target-delegates.c: Rebuild.
3478         * target.c (target_goto_record): Unconditionally delegate.
3479         * target.h (struct target_ops) <to_goto_record>: Use
3480         TARGET_DEFAULT_NORETURN.
3481
3482 2014-02-19  Tom Tromey  <tromey@redhat.com>
3483
3484         * target-delegates.c: Rebuild.
3485         * target.c (target_insn_history): Unconditionally delegate.
3486         * target.h (struct target_ops) <to_insn_history>: Use
3487         TARGET_DEFAULT_NORETURN.
3488
3489 2014-02-19  Tom Tromey  <tromey@redhat.com>
3490
3491         * target-delegates.c: Rebuild.
3492         * target.c (target_insn_history_from): Unconditionally delegate.
3493         * target.h (struct target_ops) <to_insn_history_from>: Use
3494         TARGET_DEFAULT_NORETURN.
3495
3496 2014-02-19  Tom Tromey  <tromey@redhat.com>
3497
3498         * target-delegates.c: Rebuild.
3499         * target.c (target_insn_history_range): Unconditionally delegate.
3500         * target.h (struct target_ops) <to_insn_history_range>: Use
3501         TARGET_DEFAULT_NORETURN.
3502
3503 2014-02-19  Tom Tromey  <tromey@redhat.com>
3504
3505         * target-delegates.c: Rebuild.
3506         * target.c (target_call_history): Unconditionally delegate.
3507         * target.h (struct target_ops) <to_call_history>: Use
3508         TARGET_DEFAULT_NORETURN.
3509
3510 2014-02-19  Tom Tromey  <tromey@redhat.com>
3511
3512         * target-delegates.c: Rebuild.
3513         * target.c (target_call_history_from): Unconditionally delegate.
3514         * target.h (struct target_ops) <to_call_history_from>: Use
3515         TARGET_DEFAULT_NORETURN.
3516
3517 2014-02-19  Tom Tromey  <tromey@redhat.com>
3518
3519         * target-delegates.c: Rebuild.
3520         * target.c (target_call_history_range): Unconditionally delegate.
3521         * target.h (struct target_ops) <to_call_history_range>: Use
3522         TARGET_DEFAULT_NORETURN.
3523
3524 2014-02-19  Tom Tromey  <tromey@redhat.com>
3525
3526         * target-delegates.c: Rebuild.
3527         * target.c (target_verify_memory): Unconditionally delegate.
3528         * target.h (struct target_ops) <to_verify_memory>: Use
3529         TARGET_DEFAULT_NORETURN.
3530
3531 2014-02-19  Tom Tromey  <tromey@redhat.com>
3532
3533         * target-delegates.c: Rebuild.
3534         * target.c (target_core_of_thread): Unconditionally delegate.
3535         * target.h (struct target_ops) <to_core_of_thread>: Use
3536         TARGET_DEFAULT_RETURN.
3537
3538 2014-02-19  Tom Tromey  <tromey@redhat.com>
3539
3540         * target-delegates.c: Rebuild.
3541         * target.c (target_flash_done): Unconditionally delegate.
3542         * target.h (struct target_ops) <to_flash_done>: Use
3543         TARGET_DEFAULT_NORETURN.
3544
3545 2014-02-19  Tom Tromey  <tromey@redhat.com>
3546
3547         * target-delegates.c: Rebuild.
3548         * target.c (target_flash_erase): Unconditionally delegate.
3549         * target.h (struct target_ops) <to_flash_erase>: Use
3550         TARGET_DEFAULT_NORETURN.
3551
3552 2014-02-19  Tom Tromey  <tromey@redhat.com>
3553
3554         * target-delegates.c: Rebuild.
3555         * target.c (target_get_section_table): Unconditionally delegate.
3556         * target.h (struct target_ops) <to_get_section_table>: Use
3557         TARGET_DEFAULT_RETURN.
3558
3559 2014-02-19  Tom Tromey  <tromey@redhat.com>
3560
3561         * target-delegates.c: Rebuild.
3562         * target.c (target_pid_to_str): Unconditionally delegate.
3563         (init_dummy_target): Don't initialize to_pid_to_str.
3564         (default_pid_to_str): Rename from dummy_pid_to_str.
3565         * target.h (struct target_ops) <to_pid_to_str>: Use
3566         TARGET_DEFAULT_FUNC.
3567
3568 2014-02-19  Tom Tromey  <tromey@redhat.com>
3569
3570         * target-delegates.c: Rebuild.
3571         * target.c (target_find_new_threads): Unconditionally delegate.
3572         * target.h (struct target_ops) <to_find_new_threads>: Use
3573         TARGET_DEFAULT_RETURN.
3574
3575 2014-02-19  Tom Tromey  <tromey@redhat.com>
3576
3577         * target-delegates.c: Rebuild.
3578         * target.c (target_program_signals): Unconditionally delegate.
3579         * target.h (struct target_ops) <to_program_signals>: Use
3580         TARGET_DEFAULT_IGNORE.
3581
3582 2014-02-19  Tom Tromey  <tromey@redhat.com>
3583
3584         * target-delegates.c: Rebuild.
3585         * target.c (target_pass_signals): Unconditionally delegate.
3586         * target.h (struct target_ops) <to_pass_signals>: Use
3587         TARGET_DEFAULT_IGNORE.
3588
3589 2014-02-19  Tom Tromey  <tromey@redhat.com>
3590
3591         * target-delegates.c: Rebuild.
3592         * target.c (default_mourn_inferior): New function.
3593         (target_mourn_inferior): Unconditionally delegate.
3594         * target.h (struct target_ops) <to_mourn_inferior>: Use
3595         TARGET_DEFAULT_FUNC.
3596
3597 2014-02-19  Tom Tromey  <tromey@redhat.com>
3598
3599         * target-delegates.c: Rebuild.
3600         * target.c (default_follow_fork): New function.
3601         (target_follow_fork): Unconditionally delegate.
3602         * target.h (struct target_ops) <to_follow_fork>: Use
3603         TARGET_DEFAULT_FUNC.
3604
3605 2014-02-19  Tom Tromey  <tromey@redhat.com>
3606
3607         * target-delegates.c: Rebuild.
3608         * target.c (target_kill): Unconditionally delegate.
3609         * target.h (struct target_ops) <to_kill>: Use
3610         TARGET_DEFAULT_NORETURN.
3611
3612 2014-02-19  Tom Tromey  <tromey@redhat.com>
3613
3614         * target-delegates.c: Rebuild.
3615         * target.c (target_masked_watch_num_registers): Unconditionally
3616         delegate.
3617         * target.h (struct target_ops) <to_masked_watch_num_registers>:
3618         Use TARGET_DEFAULT_RETURN.
3619
3620 2014-02-19  Tom Tromey  <tromey@redhat.com>
3621
3622         * target-delegates.c: Rebuild.
3623         * target.c (target_remove_mask_watchpoint): Unconditionally
3624         delegate.
3625         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3626         TARGET_DEFAULT_RETURN.
3627
3628 2014-02-19  Tom Tromey  <tromey@redhat.com>
3629
3630         * target-delegates.c: Rebuild.
3631         * target.c (target_insert_mask_watchpoint): Unconditionally
3632         delegate.
3633         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3634         TARGET_DEFAULT_RETURN.
3635
3636 2014-02-19  Tom Tromey  <tromey@redhat.com>
3637
3638         * target-delegates.c: Rebuild.
3639         * target.c (target_ranged_break_num_registers): Unconditionally
3640         delegate.
3641         * target.h (struct target_ops) <to_ranged_break_num_registers>:
3642         Use TARGET_DEFAULT_RETURN.
3643
3644 2014-02-19  Tom Tromey  <tromey@redhat.com>
3645
3646         * target-delegates.c: Rebuild.
3647         * target.c (target_fetch_registers): Unconditionally delegate.
3648         * target.h (struct target_ops) <to_fetch_registers>: Use
3649         TARGET_DEFAULT_NORETURN.
3650
3651 2014-02-19  Tom Tromey  <tromey@redhat.com>
3652
3653         * target-delegates.c: Rebuild.
3654         * target.c (update_current_target): Don't inherit or default
3655         to_stop.
3656         * target.h (struct target_ops) <to_stop>: Use
3657         TARGET_DEFAULT_IGNORE.
3658
3659 2014-02-19  Tom Tromey  <tromey@redhat.com>
3660
3661         * target-delegates.c: Rebuild.
3662         * target.c (update_current_target): Don't inherit or default
3663         to_can_run_breakpoint_commands.
3664         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3665         Use TARGET_DEFAULT_RETURN.
3666
3667 2014-02-19  Tom Tromey  <tromey@redhat.com>
3668
3669         * target-delegates.c: Rebuild.
3670         * target.c (update_current_target): Don't inherit or default
3671         to_supports_evaluation_of_breakpoint_conditions.
3672         * target.h (struct target_ops)
3673         <to_supports_evaluation_of_breakpoint_conditions>: Use
3674         TARGET_DEFAULT_RETURN.
3675
3676 2014-02-19  Tom Tromey  <tromey@redhat.com>
3677
3678         * target-delegates.c: Rebuild.
3679         * target.c (update_current_target): Don't inherit or default
3680         to_augmented_libraries_svr4_read.
3681         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3682         Use TARGET_DEFAULT_RETURN.
3683
3684 2014-02-19  Tom Tromey  <tromey@redhat.com>
3685
3686         * target-delegates.c: Rebuild.
3687         * target.c (update_current_target): Don't inherit or default
3688         to_can_use_agent.
3689         * target.h (struct target_ops) <to_can_use_agent>: Use
3690         TARGET_DEFAULT_RETURN.
3691
3692 2014-02-19  Tom Tromey  <tromey@redhat.com>
3693
3694         * target-delegates.c: Rebuild.
3695         * target.c (update_current_target): Don't inherit or default
3696         to_use_agent.
3697         * target.h (struct target_ops) <to_use_agent>: Use
3698         TARGET_DEFAULT_NORETURN.
3699
3700 2014-02-19  Tom Tromey  <tromey@redhat.com>
3701
3702         * target-delegates.c: Rebuild.
3703         * target.c (update_current_target): Don't inherit or default
3704         to_traceframe_info.
3705         (return_null): Remove.
3706         * target.h (struct target_ops) <to_traceframe_info>: Use
3707         TARGET_DEFAULT_RETURN.
3708
3709 2014-02-19  Tom Tromey  <tromey@redhat.com>
3710
3711         * target-delegates.c: Rebuild.
3712         * target.c (update_current_target): Don't inherit or default
3713         to_static_tracepoint_markers_by_strid.
3714         * target.h (struct target_ops)
3715         <to_static_tracepoint_markers_by_strid>: Use
3716         TARGET_DEFAULT_NORETURN.
3717
3718 2014-02-19  Tom Tromey  <tromey@redhat.com>
3719
3720         * target-delegates.c: Rebuild.
3721         * target.c (update_current_target): Don't inherit or default
3722         to_static_tracepoint_marker_at.
3723         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3724         Use TARGET_DEFAULT_RETURN.
3725
3726 2014-02-19  Tom Tromey  <tromey@redhat.com>
3727
3728         * target-delegates.c: Rebuild.
3729         * target.c (update_current_target): Don't inherit or default
3730         to_set_permissions.
3731         * target.h (struct target_ops) <to_set_permissions>: Use
3732         TARGET_DEFAULT_IGNORE.
3733
3734 2014-02-19  Tom Tromey  <tromey@redhat.com>
3735
3736         * target-delegates.c: Rebuild.
3737         * target.c (update_current_target): Don't inherit or default
3738         to_get_tib_address.
3739         * target.h (struct target_ops) <to_get_tib_address>: Use
3740         TARGET_DEFAULT_NORETURN.
3741
3742 2014-02-19  Tom Tromey  <tromey@redhat.com>
3743
3744         * target-delegates.c: Rebuild.
3745         * target.c (update_current_target): Don't inherit or default
3746         to_set_trace_notes.
3747         * target.h (struct target_ops) <to_set_trace_notes>: Use
3748         TARGET_DEFAULT_RETURN.
3749
3750 2014-02-19  Tom Tromey  <tromey@redhat.com>
3751
3752         * target-delegates.c: Rebuild.
3753         * target.c (update_current_target): Don't initialize
3754         to_set_trace_buffer_size.
3755         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3756         TARGET_DEFAULT_IGNORE.
3757
3758 2014-02-19  Tom Tromey  <tromey@redhat.com>
3759
3760         * target-delegates.c: Rebuild.
3761         * target.c (update_current_target): Don't inherit or default
3762         to_set_circular_trace_buffer.
3763         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3764         TARGET_DEFAULT_IGNORE.
3765
3766 2014-02-19  Tom Tromey  <tromey@redhat.com>
3767
3768         * target-delegates.c: Rebuild.
3769         * target.c (update_current_target): Don't inherit or default
3770         to_set_disconnected_tracing.
3771         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3772         TARGET_DEFAULT_IGNORE.
3773
3774 2014-02-19  Tom Tromey  <tromey@redhat.com>
3775
3776         * target-delegates.c: Rebuild.
3777         * target.c (update_current_target): Don't inherit or default
3778         to_get_min_fast_tracepoint_insn_len.
3779         (return_minus_one): Remove.
3780         * target.h (struct target_ops)
3781         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3782
3783 2014-02-19  Tom Tromey  <tromey@redhat.com>
3784
3785         * target-delegates.c: Rebuild.
3786         * target.c (update_current_target): Don't inherit or default
3787         to_get_raw_trace_data.
3788         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3789         TARGET_DEFAULT_NORETURN.
3790
3791 2014-02-19  Tom Tromey  <tromey@redhat.com>
3792
3793         * target-delegates.c: Rebuild.
3794         * target.c (update_current_target): Don't inherit or default
3795         to_upload_trace_state_variables.
3796         * target.h (struct target_ops) <to_upload_trace_state_variables>:
3797         Use TARGET_DEFAULT_RETURN.
3798
3799 2014-02-19  Tom Tromey  <tromey@redhat.com>
3800
3801         * target-delegates.c: Rebuild.
3802         * target.c (update_current_target): Don't inherit or default
3803         to_upload_tracepoints.
3804         * target.h (struct target_ops) <to_upload_tracepoints>: Use
3805         TARGET_DEFAULT_RETURN.
3806
3807 2014-02-19  Tom Tromey  <tromey@redhat.com>
3808
3809         * target-delegates.c: Rebuild.
3810         * target.c (update_current_target): Don't inherit or default
3811         to_save_trace_data.
3812         * target.h (struct target_ops) <to_save_trace_data>: Use
3813         TARGET_DEFAULT_NORETURN.
3814
3815 2014-02-19  Tom Tromey  <tromey@redhat.com>
3816
3817         * target-delegates.c: Rebuild.
3818         * target.c (update_current_target): Don't inherit or default
3819         to_get_trace_state_variable_value.
3820         * target.h (struct target_ops)
3821         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3822
3823 2014-02-19  Tom Tromey  <tromey@redhat.com>
3824
3825         * target-delegates.c: Rebuild.
3826         * target.c (update_current_target): Don't inherit or default
3827         to_trace_find.
3828         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3829
3830 2014-02-19  Tom Tromey  <tromey@redhat.com>
3831
3832         * target-delegates.c: Rebuild.
3833         * target.c (update_current_target): Don't inherit or default
3834         to_trace_stop.
3835         * target.h (struct target_ops) <to_trace_stop>: Use
3836         TARGET_DEFAULT_NORETURN.
3837
3838 2014-02-19  Tom Tromey  <tromey@redhat.com>
3839
3840         * target-delegates.c: Rebuild.
3841         * target.c (update_current_target): Don't inherit or default
3842         to_get_tracepoint_status.
3843         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3844         TARGET_DEFAULT_NORETURN.
3845
3846 2014-02-19  Tom Tromey  <tromey@redhat.com>
3847
3848         * target-delegates.c: Rebuild.
3849         * target.c (update_current_target): Don't inherit or default
3850         to_get_trace_status.
3851         * target.h (struct target_ops) <to_get_trace_status>: Use
3852         TARGET_DEFAULT_RETURN.
3853
3854 2014-02-19  Tom Tromey  <tromey@redhat.com>
3855
3856         * target-delegates.c: Rebuild.
3857         * target.c (update_current_target): Don't inherit or default
3858         to_trace_start.
3859         * target.h (struct target_ops) <to_trace_start>: Use
3860         TARGET_DEFAULT_NORETURN.
3861
3862 2014-02-19  Tom Tromey  <tromey@redhat.com>
3863
3864         * target-delegates.c: Rebuild.
3865         * target.c (update_current_target): Don't inherit or default
3866         to_trace_set_readonly_regions.
3867         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3868         Use TARGET_DEFAULT_NORETURN.
3869
3870 2014-02-19  Tom Tromey  <tromey@redhat.com>
3871
3872         * target-delegates.c: Rebuild.
3873         * target.c (update_current_target): Don't inherit or default
3874         to_disable_tracepoint.
3875         * target.h (struct target_ops) <to_disable_tracepoint>: Use
3876         TARGET_DEFAULT_NORETURN.
3877
3878 2014-02-19  Tom Tromey  <tromey@redhat.com>
3879
3880         * target-delegates.c: Rebuild.
3881         * target.c (update_current_target): Don't inherit or default
3882         to_enable_tracepoint.
3883         * target.h (struct target_ops) <to_enable_tracepoint>: Use
3884         TARGET_DEFAULT_NORETURN.
3885
3886 2014-02-19  Tom Tromey  <tromey@redhat.com>
3887
3888         * target-delegates.c: Rebuild.
3889         * target.c (update_current_target): Don't inherit or default
3890         to_download_trace_state_variable.
3891         * target.h (struct target_ops) <to_download_trace_state_variable>:
3892         Use TARGET_DEFAULT_NORETURN.
3893
3894 2014-02-19  Tom Tromey  <tromey@redhat.com>
3895
3896         * target-delegates.c: Rebuild.
3897         * target.c (update_current_target): Don't inherit or default
3898         to_can_download_tracepoint.
3899         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3900         TARGET_DEFAULT_RETURN.
3901
3902 2014-02-19  Tom Tromey  <tromey@redhat.com>
3903
3904         * target-delegates.c: Rebuild.
3905         * target.c (update_current_target): Don't inherit or default
3906         to_download_tracepoint.
3907         * target.h (struct target_ops) <to_download_tracepoint>: Use
3908         TARGET_DEFAULT_NORETURN.
3909
3910 2014-02-19  Tom Tromey  <tromey@redhat.com>
3911
3912         * target-delegates.c: Rebuild.
3913         * target.c (update_current_target): Don't inherit or default
3914         to_trace_init.
3915         * target.h (struct target_ops) <to_trace_init>: Use
3916         TARGET_DEFAULT_RETURN.
3917
3918 2014-02-19  Tom Tromey  <tromey@redhat.com>
3919
3920         * target-delegates.c: Rebuild.
3921         * target.c (update_current_target): Don't inherit or default
3922         to_supports_string_tracing.
3923         * target.h (struct target_ops) <to_supports_string_tracing>: Use
3924         TARGET_DEFAULT_RETURN.
3925
3926 2014-02-19  Tom Tromey  <tromey@redhat.com>
3927
3928         * target-delegates.c: Rebuild.
3929         * target.c (update_current_target): Don't inherit or default
3930         to_supports_enable_disable_tracepoint.
3931         * target.h (struct target_ops)
3932         <to_supports_enable_disable_tracepoint>: Use
3933         TARGET_DEFAULT_RETURN.
3934
3935 2014-02-19  Tom Tromey  <tromey@redhat.com>
3936
3937         * target-delegates.c: Rebuild.
3938         * target.c (update_current_target): Don't inherit or default
3939         to_supports_multi_process.
3940         * target.h (struct target_ops) <to_supports_multi_process>: Use
3941         TARGET_DEFAULT_RETURN.
3942
3943 2014-02-19  Tom Tromey  <tromey@redhat.com>
3944
3945         * target-delegates.c: Rebuild.
3946         * target.c (update_current_target): Don't inherit or default
3947         to_get_ada_task_ptid.
3948         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3949         TARGET_DEFAULT_FUNC.
3950
3951 2014-02-19  Tom Tromey  <tromey@redhat.com>
3952
3953         * target-delegates.c: Rebuild.
3954         * target.c (update_current_target): Don't inherit or default
3955         to_thread_architecture.
3956         * target.h (struct target_ops) <to_thread_architecture>: Use
3957         TARGET_DEFAULT_FUNC.
3958
3959 2014-02-19  Tom Tromey  <tromey@redhat.com>
3960
3961         * target-delegates.c: Rebuild.
3962         * target.c (update_current_target): Don't inherit or default
3963         to_execution_direction.
3964         * target.h (struct target_ops) <to_execution_direction>: Use
3965         TARGET_DEFAULT_FUNC.
3966
3967 2014-02-19  Tom Tromey  <tromey@redhat.com>
3968
3969         * target-delegates.c: Rebuild.
3970         * target.c (update_current_target): Don't inherit or default
3971         to_can_execute_reverse.
3972         * target.h (struct target_ops) <to_can_execute_reverse>: Use
3973         TARGET_DEFAULT_RETURN.
3974         (target_can_execute_reverse): Unconditionally delegate.
3975
3976 2014-02-19  Tom Tromey  <tromey@redhat.com>
3977
3978         * target-delegates.c: Rebuild.
3979         * target.c (update_current_target): Don't inherit or default
3980         to_goto_bookmark.
3981         (dummy_goto_bookmark): Remove.
3982         (init_dummy_target): Don't inherit or default to_goto_bookmark.
3983         * target.h (struct target_ops) <to_goto_bookmark>: Use
3984         TARGET_DEFAULT_NORETURN.
3985
3986 2014-02-19  Tom Tromey  <tromey@redhat.com>
3987
3988         * target-delegates.c: Rebuild.
3989         * target.c (update_current_target): Don't inherit or default
3990         to_get_bookmark.
3991         (dummy_get_bookmark): Remove.
3992         (init_dummy_target): Don't inherit or default to_get_bookmark.
3993         * target.h (struct target_ops) <to_get_bookmark>: Use
3994         TARGET_DEFAULT_NORETURN
3995
3996 2014-02-19  Tom Tromey  <tromey@redhat.com>
3997
3998         * target-delegates.c: Rebuild.
3999         * target.c (update_current_target): Don't inherit or default
4000         to_make_corefile_notes.
4001         (init_dummy_target): Don't initialize to_make_corefile_notes.
4002         * target.h (struct target_ops) <to_make_corefile_notes>: Use
4003         TARGET_DEFAULT_FUNC.
4004
4005 2014-02-19  Tom Tromey  <tromey@redhat.com>
4006
4007         * target-delegates.c: Rebuild.
4008         * target.c (update_current_target): Don't inherit or default
4009         to_find_memory_regions.
4010         (init_dummy_target): Don't initialize to_find_memory_regions.
4011         * target.h (struct target_ops) <to_find_memory_regions>: Use
4012         TARGET_DEFAULT_FUNC.
4013
4014 2014-02-19  Tom Tromey  <tromey@redhat.com>
4015
4016         * target-delegates.c: Rebuild.
4017         * target.c (update_current_target): Don't inherit or default
4018         to_log_command.
4019         * target.h (struct target_ops) <to_log_command>: Use
4020         TARGET_DEFAULT_IGNORE.
4021         (target_log_command): Unconditionally delegate.
4022
4023 2014-02-19  Tom Tromey  <tromey@redhat.com>
4024
4025         * target-delegates.c: Rebuild.
4026         * target.c (update_current_target): Don't inherit or default
4027         to_pid_to_exec_file.
4028         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4029         TARGET_DEFAULT_RETURN.
4030
4031 2014-02-19  Tom Tromey  <tromey@redhat.com>
4032
4033         * target-delegates.c: Rebuild.
4034         * target.c (update_current_target): Don't inherit or default
4035         to_thread_name.
4036         (target_thread_name): Unconditionally delegate.
4037         * target.h (struct target_ops) <to_thread_name>: Use
4038         TARGET_DEFAULT_RETURN.
4039
4040 2014-02-19  Tom Tromey  <tromey@redhat.com>
4041
4042         * target-delegates.c: Rebuild.
4043         * target.c (update_current_target): Don't inherit or default
4044         to_extra_thread_info.
4045         * target.h (struct target_ops) <to_extra_thread_info>: Use
4046         TARGET_DEFAULT_RETURN.
4047
4048 2014-02-19  Tom Tromey  <tromey@redhat.com>
4049
4050         * target-delegates.c: Rebuild.
4051         * target.c (update_current_target): Don't inherit or default
4052         to_has_exited.
4053         * target.h (struct target_ops) <to_has_exited>: Use
4054         TARGET_DEFAULT_RETURN..
4055
4056 2014-02-19  Tom Tromey  <tromey@redhat.com>
4057
4058         * target-delegates.c: Rebuild.
4059         * target.c (update_current_target): Don't inherit or default
4060         to_set_syscall_catchpoint.
4061         (return_one): Remove.
4062         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4063         TARGET_DEFAULT_RETURN.
4064
4065 2014-02-19  Tom Tromey  <tromey@redhat.com>
4066
4067         * target-delegates.c: Rebuild.
4068         * target.c (update_current_target): Don't inherit or default
4069         to_insert_exec_catchpoint.
4070         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4071         TARGET_DEFAULT_RETURN.
4072
4073 2014-01-08  Tom Tromey  <tromey@redhat.com>
4074
4075         * target-delegates.c: Rebuild.
4076         * target.c (update_current_target): Don't inherit or default
4077         to_insert_exec_catchpoint.
4078         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4079         TARGET_DEFAULT_RETURN.
4080
4081 2014-02-19  Tom Tromey  <tromey@redhat.com>
4082
4083         * target-delegates.c: Rebuild.
4084         * target.c (update_current_target): Don't inherit or default
4085         to_remove_vfork_catchpoint.
4086         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4087         TARGET_DEFAULT_RETURN.
4088
4089 2014-02-19  Tom Tromey  <tromey@redhat.com>
4090
4091         * target-delegates.c: Rebuild.
4092         * target.c (update_current_target): Don't inherit or default
4093         to_insert_vfork_catchpoint.
4094         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4095         TARGET_DEFAULT_RETURN.
4096
4097 2014-02-19  Tom Tromey  <tromey@redhat.com>
4098
4099         * target-delegates.c: Rebuild.
4100         * target.c (update_current_target): Don't inherit or default
4101         to_remove_fork_catchpoint.
4102         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4103         TARGET_DEFAULT_RETURN.
4104
4105 2014-02-19  Tom Tromey  <tromey@redhat.com>
4106
4107         * target-delegates.c: Rebuild.
4108         * target.c (update_current_target): Don't inherit or default
4109         to_insert_fork_catchpoint.
4110         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4111         TARGET_DEFAULT_RETURN.
4112
4113 2014-02-19  Tom Tromey  <tromey@redhat.com>
4114
4115         * target-delegates.c: Rebuild.
4116         * target.c (update_current_target): Don't inherit or default
4117         to_post_startup_inferior.
4118         * target.h (struct target_ops) <to_post_startup_inferior>: Use
4119         TARGET_DEFAULT_IGNORE.
4120
4121 2014-02-19  Tom Tromey  <tromey@redhat.com>
4122
4123         * target-delegates.c: Rebuild.
4124         * target.c (update_current_target): Don't inherit or default
4125         to_load.
4126         * target.h (struct target_ops) <to_load>: Use
4127         TARGET_DEFAULT_NORETURN.
4128
4129 2014-02-19  Tom Tromey  <tromey@redhat.com>
4130
4131         * target-delegates.c: Rebuild.
4132         * target.c (update_current_target): Don't inherit or default
4133         to_terminal_info.
4134         * target.h (struct target_ops) <to_terminal_info>: Use
4135         TARGET_DEFAULT_FUNC.
4136
4137 2014-02-19  Tom Tromey  <tromey@redhat.com>
4138
4139         * target-delegates.c: Rebuild.
4140         * target.c (update_current_target): Don't inherit or default
4141         to_terminal_save_ours.
4142         * target.h (struct target_ops) <to_terminal_save_ours>: Use
4143         TARGET_DEFAULT_IGNORE.
4144
4145 2014-02-19  Tom Tromey  <tromey@redhat.com>
4146
4147         * target-delegates.c: Rebuild.
4148         * target.c (update_current_target): Don't inherit or default
4149         to_terminal_ours.
4150         * target.h (struct target_ops) <to_terminal_ours>: Use
4151         TARGET_DEFAULT_IGNORE.
4152
4153 2014-02-19  Tom Tromey  <tromey@redhat.com>
4154
4155         * target-delegates.c: Rebuild.
4156         * target.c (update_current_target): Don't inherit or default
4157         to_terminal_ours_for_output.
4158         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4159         TARGET_DEFAULT_IGNORE.
4160
4161 2014-02-19  Tom Tromey  <tromey@redhat.com>
4162
4163         * target-delegates.c: Rebuild.
4164         * target.c (update_current_target): Don't inherit or default
4165         to_terminal_inferior.
4166         * target.h (struct target_ops) <to_terminal_inferior>: Use
4167         TARGET_DEFAULT_IGNORE.
4168
4169 2014-02-19  Tom Tromey  <tromey@redhat.com>
4170
4171         * target-delegates.c: Rebuild.
4172         * target.c (update_current_target): Don't inherit or default
4173         to_terminal_init.
4174         * target.h (struct target_ops) <to_terminal_init>: Use
4175         TARGET_DEFAULT_IGNORE.
4176
4177 2014-02-19  Tom Tromey  <tromey@redhat.com>
4178
4179         * target-delegates.c: Rebuild.
4180         * target.c (update_current_target): Don't inherit or default
4181         to_can_accel_watchpoint_condition.
4182         * target.h (struct target_ops)
4183         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4184
4185 2014-02-19  Tom Tromey  <tromey@redhat.com>
4186
4187         * target-delegates.c: Rebuild.
4188         * target.c (update_current_target): Don't inherit or default
4189         to_region_ok_for_hw_watchpoint.
4190         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4191         Use TARGET_DEFAULT_FUNC.
4192
4193 2014-02-19  Tom Tromey  <tromey@redhat.com>
4194
4195         * target-delegates.c: Rebuild.
4196         * target.c (update_current_target): Don't inherit or default
4197         to_watchpoint_addr_within_range.
4198         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4199         Use TARGET_DEFAULT_FUNC.
4200
4201 2014-02-19  Tom Tromey  <tromey@redhat.com>
4202
4203         * target-delegates.c: Rebuild.
4204         * target.c (update_current_target): Don't inherit or default
4205         to_remove_watchpoint.
4206         * target.h (struct target_ops) <to_remove_watchpoint>: Use
4207         TARGET_DEFAULT_NORETURN.
4208
4209 2014-02-19  Tom Tromey  <tromey@redhat.com>
4210
4211         * target-delegates.c: Rebuild.
4212         * target.c (update_current_target): Don't inherit or default
4213         to_insert_watchpoint.
4214         * target.h (struct target_ops) <to_insert_watchpoint>: Use
4215         TARGET_DEFAULT_RETURN.
4216
4217 2014-02-19  Tom Tromey  <tromey@redhat.com>
4218
4219         * target-delegates.c: Rebuild.
4220         * target.c (update_current_target): Don't inherit or default
4221         to_remove_hw_breakpoint.
4222         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4223         TARGET_DEFAULT_RETURN.
4224
4225 2014-02-19  Tom Tromey  <tromey@redhat.com>
4226
4227         * target-delegates.c: Rebuild.
4228         * target.c (update_current_target): Don't inherit or default
4229         to_insert_hw_breakpoint.
4230         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4231         TARGET_DEFAULT_RETURN.
4232
4233 2014-02-19  Tom Tromey  <tromey@redhat.com>
4234
4235         * target-delegates.c: Rebuild.
4236         * target.c (update_current_target): Don't inherit or default
4237         to_can_use_hw_breakpoint.
4238         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4239         TARGET_DEFAULT_RETURN.
4240
4241 2014-02-19  Tom Tromey  <tromey@redhat.com>
4242
4243         * target-delegates.c: Rebuild.
4244         * target.c (update_current_target): Don't inherit or default
4245         to_files_info.
4246         * target.h (struct target_ops) <to_files_info>: Use
4247         TARGET_DEFAULT_IGNORE.
4248
4249 2014-02-19  Tom Tromey  <tromey@redhat.com>
4250
4251         * target-delegates.c: Rebuild.
4252         * target.c (update_current_target): Don't inherit or default
4253         to_store.
4254         * target.h (struct target_ops) <to_store>: Use
4255         TARGET_DEFAULT_NORETURN.
4256
4257 2014-02-19  Tom Tromey  <tromey@redhat.com>
4258
4259         * target-delegates.c: Rebuild.
4260         * target.c (update_current_target): Don't inherit or default
4261         to_post_attach.
4262         * target.h (struct target_ops) <to_post_attach>: Use
4263         TARGET_DEFAULT_IGNORE.
4264
4265 2014-02-19  Tom Tromey  <tromey@redhat.com>
4266
4267         * target-delegates.c: Rebuild.
4268         * target.c (update_current_target): Don't inherit or default
4269         to_rcmd.
4270         (default_rcmd): New function.
4271         (do_monitor_command): Unconditionally delegate.
4272         * target.h (struct target_ops) <to_rmcd>: Use
4273         TARGET_DEFAULT_FUNC.
4274
4275 2014-02-19  Tom Tromey  <tromey@redhat.com>
4276
4277         * target-delegates.c: Rebuild.
4278         * target.c (init_dummy_target): Don't initialize to_attach.
4279         (target_attach): Unconditionally delegate.
4280         * target.h (struct target_ops) <to_attach>: Use
4281         TARGET_DEFAULT_FUNC.
4282
4283 2014-02-19  Tom Tromey  <tromey@redhat.com>
4284
4285         * target-delegates.c: Rebuild.
4286         * target.c (target_detach): Unconditionally delegate.
4287         (init_dummy_target): Don't initialize to_detach.
4288         * target.h (struct target_ops) <to_detach>: Use
4289         TARGET_DEFAULT_IGNORE.
4290
4291 2014-02-19  Tom Tromey  <tromey@redhat.com>
4292
4293         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4294         Add argument.
4295         (target_augmented_libraries_svr4_read): Add argument.
4296         * target.c (update_current_target): Update.
4297         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4298         argument.
4299
4300 2014-02-19  Tom Tromey  <tromey@redhat.com>
4301
4302         * target.h (struct target_ops) <to_call_history_range>: Add
4303         argument.
4304         * target.c (target_call_history_range): Add argument.
4305         * record-btrace.c (record_btrace_call_history_range): Add 'self'
4306         argument.
4307         (record_btrace_call_history_from): Update.
4308
4309 2014-02-19  Tom Tromey  <tromey@redhat.com>
4310
4311         * target.h (struct target_ops) <to_call_history_from>: Add
4312         argument.
4313         * target.c (target_call_history_from): Add argument.
4314         * record-btrace.c (record_btrace_call_history_from): Add 'self'
4315         argument.
4316
4317 2014-02-19  Tom Tromey  <tromey@redhat.com>
4318
4319         * target.h (struct target_ops) <to_call_history>: Add argument.
4320         * target.c (target_call_history): Add argument.
4321         * record-btrace.c (record_btrace_call_history): Add 'self'
4322         argument.
4323
4324 2014-02-19  Tom Tromey  <tromey@redhat.com>
4325
4326         * target.h (struct target_ops) <to_insn_history_range>: Add
4327         argument.
4328         * target.c (target_insn_history_range): Add argument.
4329         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4330         argument.
4331         (record_btrace_insn_history_from): Update.
4332
4333 2014-02-19  Tom Tromey  <tromey@redhat.com>
4334
4335         * target.h (struct target_ops) <to_insn_history_from>: Add
4336         argument.
4337         * target.c (target_insn_history_from): Add argument.
4338         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4339         argument.
4340
4341 2014-02-19  Tom Tromey  <tromey@redhat.com>
4342
4343         * target.h (struct target_ops) <to_insn_history>: Add argument.
4344         * target.c (target_insn_history): Add argument.
4345         * record-btrace.c (record_btrace_insn_history): Add 'self'
4346         argument.
4347
4348 2014-02-19  Tom Tromey  <tromey@redhat.com>
4349
4350         * target.h (struct target_ops) <to_goto_record>: Add argument.
4351         * target.c (target_goto_record): Add argument.
4352         * record-full.c (record_full_goto): Add 'self' argument.
4353         * record-btrace.c (record_btrace_goto): Add 'self' argument.
4354
4355 2014-02-19  Tom Tromey  <tromey@redhat.com>
4356
4357         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4358         * target.c (target_goto_record_end): Add argument.
4359         * record-full.c (record_full_goto_end): Add 'self' argument.
4360         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4361
4362 2014-02-19  Tom Tromey  <tromey@redhat.com>
4363
4364         * target.h (struct target_ops) <to_goto_record_begin>: Add
4365         argument.
4366         * target.c (target_goto_record_begin): Add argument.
4367         * record-full.c (record_full_goto_begin): Add 'self' argument.
4368         * record-btrace.c (record_btrace_goto_begin): Add 'self'
4369         argument.
4370
4371 2014-02-19  Tom Tromey  <tromey@redhat.com>
4372
4373         * target.h (struct target_ops) <to_record_is_replaying>: Add
4374         argument.
4375         * target.c (target_record_is_replaying): Add argument.
4376         * record-full.c (record_full_is_replaying): Add 'self' argument.
4377         * record-btrace.c (record_btrace_is_replaying): Add 'self'
4378         argument.
4379         (record_btrace_xfer_partial, record_btrace_store_registers)
4380         (record_btrace_prepare_to_store, record_btrace_resume)
4381         (record_btrace_wait, record_btrace_decr_pc_after_break)
4382         (record_btrace_find_new_threads, record_btrace_thread_alive):
4383         Update.
4384
4385 2014-02-19  Tom Tromey  <tromey@redhat.com>
4386
4387         * target.h (struct target_ops) <to_delete_record>: Add argument.
4388         * target.c (target_delete_record): Add argument.
4389         * record-full.c (record_full_delete): Add 'self' argument.
4390
4391 2014-02-19  Tom Tromey  <tromey@redhat.com>
4392
4393         * target.h (struct target_ops) <to_save_record>: Add argument.
4394         * target.c (target_save_record): Add argument.
4395         * record-full.c (record_full_save): Add 'self' argument.
4396         (record_full_save): Add 'self' argument.
4397
4398 2014-02-19  Tom Tromey  <tromey@redhat.com>
4399
4400         * target.h (struct target_ops) <to_info_record>: Add argument.
4401         * target.c (target_info_record): Add argument.
4402         * record.c (info_record_command): Add argument.
4403         * record-full.c (record_full_info): Add 'self' argument.
4404         * record-btrace.c (record_btrace_info): Add 'self' argument.
4405
4406 2014-02-19  Tom Tromey  <tromey@redhat.com>
4407
4408         * target.h (struct target_ops) <to_stop_recording>: Add argument.
4409         * target.c (target_stop_recording): Add argument.
4410         * record.c (record_stop): Add argument.
4411         * record-btrace.c (record_btrace_stop_recording): Add 'self'
4412         argument.
4413
4414 2014-02-19  Tom Tromey  <tromey@redhat.com>
4415
4416         * target.h (struct target_ops) <to_read_btrace>: Add argument.
4417         * target.c (struct target_ops) <to_read_btrace>: Add argument.
4418         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4419         argument.
4420         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4421         (_initialize_amd64_linux_nat): Use it.
4422         * i386-linux-nat.c (i386_linux_read_btrace): New function.
4423         (_initialize_i386_linux_nat): Use it.
4424
4425 2014-02-19  Tom Tromey  <tromey@redhat.com>
4426
4427         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4428         * target.c (target_teardown_btrace): Add argument.
4429         * remote.c (remote_teardown_btrace): Add 'self' argument.
4430         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4431         argument.
4432         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4433         argument.
4434
4435 2014-02-19  Tom Tromey  <tromey@redhat.com>
4436
4437         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4438         * target.c (target_disable_btrace): Add argument.
4439         * remote.c (remote_disable_btrace): Add 'self' argument.
4440         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4441         argument.
4442         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4443         argument.
4444
4445 2014-02-19  Tom Tromey  <tromey@redhat.com>
4446
4447         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4448         * target.c (target_enable_btrace): Add argument.
4449         * remote.c (remote_enable_btrace): Add 'self' argument.
4450         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4451         argument.
4452         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4453         argument.
4454
4455 2014-02-19  Tom Tromey  <tromey@redhat.com>
4456
4457         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4458         (target_can_use_agent): Add argument.
4459         * target.c (update_current_target): Update.
4460         * remote.c (remote_can_use_agent): Add 'self' argument.
4461         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4462
4463 2014-02-19  Tom Tromey  <tromey@redhat.com>
4464
4465         * target.h (struct target_ops) <to_use_agent>: Add argument.
4466         (target_use_agent): Add argument.
4467         * target.c (update_current_target): Update.
4468         * remote.c (remote_use_agent): Add 'self' argument.
4469         * inf-child.c (inf_child_use_agent): Add 'self' argument.
4470
4471 2014-02-19  Tom Tromey  <tromey@redhat.com>
4472
4473         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4474         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4475         (target_traceframe_info): Add argument.
4476         * target.c (update_current_target): Update.
4477         * remote.c (remote_traceframe_info): Add 'self' argument.
4478         * ctf.c (ctf_traceframe_info): Add 'self' argument.
4479
4480 2014-02-19  Tom Tromey  <tromey@redhat.com>
4481
4482         * target.h (target_static_tracepoint_markers_by_strid): Add
4483         argument.
4484         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4485         'self' argument.
4486         * target.c (update_current_target): Update.
4487         * remote.c (struct target_ops)
4488         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4489         * linux-nat.c (struct target_ops)
4490         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4491
4492 2014-02-19  Tom Tromey  <tromey@redhat.com>
4493
4494         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4495         Add argument.
4496         (target_static_tracepoint_marker_at): Add argument.
4497         * target.c (update_current_target): Update.
4498         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4499         argument.
4500
4501 2014-02-19  Tom Tromey  <tromey@redhat.com>
4502
4503         * target.h (struct target_ops) <to_set_permissions>: Add argument.
4504         (target_set_permissions): Add argument.
4505         * target.c (update_current_target): Update.
4506         * remote.c (remote_set_permissions): Add 'self' argument.
4507         (remote_start_remote): Update.
4508
4509 2014-02-19  Tom Tromey  <tromey@redhat.com>
4510
4511         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4512         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4513         (target_get_tib_address): Add argument.
4514         * target.c (update_current_target): Update.
4515         * remote.c (remote_get_tib_address): Add 'self' argument.
4516
4517 2014-02-19  Tom Tromey  <tromey@redhat.com>
4518
4519         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4520         (target_set_trace_notes): Add argument.
4521         * target.c (update_current_target): Update.
4522         * remote.c (remote_set_trace_notes): Add 'self' argument.
4523
4524 2014-02-19  Tom Tromey  <tromey@redhat.com>
4525
4526         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4527         argument.
4528         (target_set_trace_buffer_size): Add argument.
4529         * target.c (update_current_target): Update.
4530         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4531
4532 2014-02-19  Tom Tromey  <tromey@redhat.com>
4533
4534         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4535         argument.
4536         (target_set_circular_trace_buffer): Add argument.
4537         * target.c (update_current_target): Update.
4538         * remote.c (remote_set_circular_trace_buffer): Add 'self'
4539         argument.
4540
4541 2014-02-19  Tom Tromey  <tromey@redhat.com>
4542
4543         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4544         argument.
4545         (target_set_disconnected_tracing): Add argument.
4546         * target.c (update_current_target): Update.
4547         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4548
4549 2014-02-19  Tom Tromey  <tromey@redhat.com>
4550
4551         * target.h (struct target_ops)
4552         <to_get_min_fast_tracepoint_insn_len>: Add argument.
4553         (target_get_min_fast_tracepoint_insn_len): Add argument.
4554         * target.c (update_current_target): Update.
4555         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4556         argument.
4557
4558 2014-02-19  Tom Tromey  <tromey@redhat.com>
4559
4560         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4561         argument.
4562         (target_get_raw_trace_data): Add argument.
4563         * target.c (update_current_target): Update.
4564         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4565
4566 2014-02-19  Tom Tromey  <tromey@redhat.com>
4567
4568         * target.h (struct target_ops) <to_upload_trace_state_variables>:
4569         Add argument.
4570         (target_upload_trace_state_variables): Add argument.
4571         * target.c (update_current_target): Update.
4572         * remote.c (remote_upload_trace_state_variables): Add 'self'
4573         argument.
4574         (remote_start_remote): Update.
4575
4576 2014-02-19  Tom Tromey  <tromey@redhat.com>
4577
4578         * target.h (struct target_ops) <to_upload_tracepoints>: Add
4579         argument.
4580         (target_upload_tracepoints): Add argument.
4581         * target.c (update_current_target): Update.
4582         * remote.c (remote_upload_tracepoints): Add 'self' argument.
4583         (remote_start_remote): Update.
4584
4585 2014-02-19  Tom Tromey  <tromey@redhat.com>
4586
4587         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4588         (target_save_trace_data): Add argument.
4589         * target.c (update_current_target): Update.
4590         * remote.c (remote_save_trace_data): Add 'self' argument.
4591
4592 2014-02-19  Tom Tromey  <tromey@redhat.com>
4593
4594         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4595         argument.
4596         * target.h (struct target_ops)
4597         <to_get_trace_state_variable_value>: Add argument.
4598         (target_get_trace_state_variable_value): Add argument.
4599         * target.c (update_current_target): Update.
4600         * remote.c (remote_get_trace_state_variable_value): Add 'self'
4601         argument.
4602         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4603
4604 2014-02-19  Tom Tromey  <tromey@redhat.com>
4605
4606         * tracepoint.c (tfile_trace_find): Add 'self' argument.
4607         * target.h (struct target_ops) <to_trace_find>: Add argument.
4608         (target_trace_find): Add argument.
4609         * target.c (update_current_target): Update.
4610         * remote.c (remote_trace_find): Add 'self' argument.
4611         * ctf.c (ctf_trace_find): Add 'self' argument.
4612
4613 2014-02-19  Tom Tromey  <tromey@redhat.com>
4614
4615         * target.h (struct target_ops) <to_trace_stop>: Add argument.
4616         (target_trace_stop): Add argument.
4617         * target.c (update_current_target): Update.
4618         * remote.c (remote_trace_stop): Add 'self' argument.
4619
4620 2014-02-19  Tom Tromey  <tromey@redhat.com>
4621
4622         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4623         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4624         argument.
4625         (target_get_tracepoint_status): Add argument.
4626         * target.c (update_current_target): Update.
4627         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4628
4629 2014-02-19  Tom Tromey  <tromey@redhat.com>
4630
4631         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4632         * target.h (struct target_ops) <to_get_trace_status>: Add
4633         argument.
4634         (target_get_trace_status): Add argument.
4635         * target.c (update_current_target): Update.
4636         * remote.c (remote_get_trace_status): Add 'self' argument.
4637         (remote_start_remote, remote_can_download_tracepoint): Update.
4638         * ctf.c (ctf_get_trace_status): Add 'self' argument.
4639
4640 2014-02-19  Tom Tromey  <tromey@redhat.com>
4641
4642         * target.h (struct target_ops) <to_trace_start>: Add argument.
4643         (target_trace_start): Add argument.
4644         * target.c (update_current_target): Update.
4645         * remote.c (remote_trace_start): Add 'self' argument.
4646
4647 2014-02-19  Tom Tromey  <tromey@redhat.com>
4648
4649         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4650         Add argument.
4651         (target_trace_set_readonly_regions): Add argument.
4652         * target.c (update_current_target): Update.
4653         * remote.c (remote_trace_set_readonly_regions): Add 'self'
4654         argument.
4655
4656 2014-02-19  Tom Tromey  <tromey@redhat.com>
4657
4658         * target.h (struct target_ops) <to_disable_tracepoint>: Add
4659         argument.
4660         (target_disable_tracepoint): Add argument.
4661         * target.c (update_current_target): Update.
4662         * remote.c (remote_disable_tracepoint): Add 'self' argument.
4663
4664 2014-02-19  Tom Tromey  <tromey@redhat.com>
4665
4666         * target.h (struct target_ops) <to_enable_tracepoint>: Add
4667         argument.
4668         (target_enable_tracepoint): Add argument.
4669         * target.c (update_current_target): Update.
4670         * remote.c (remote_enable_tracepoint): Add 'self' argument.
4671
4672 2014-02-19  Tom Tromey  <tromey@redhat.com>
4673
4674         * target.h (struct target_ops) <to_download_trace_state_variable>:
4675         Add argument.
4676         (target_download_trace_state_variable): Add argument.
4677         * target.c (update_current_target): Update.
4678         * remote.c (remote_download_trace_state_variable): Add 'self'
4679         argument.
4680
4681 2014-02-19  Tom Tromey  <tromey@redhat.com>
4682
4683         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4684         argument.
4685         (target_can_download_tracepoint): Add argument.
4686         * target.c (update_current_target): Update.
4687         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4688
4689 2014-02-19  Tom Tromey  <tromey@redhat.com>
4690
4691         * target.h (struct target_ops) <to_download_tracepoint>: Add
4692         argument.
4693         (target_download_tracepoint): Add argument.
4694         * target.c (update_current_target): Update.
4695         * remote.c (remote_download_tracepoint): Add 'self' argument.
4696
4697 2014-02-19  Tom Tromey  <tromey@redhat.com>
4698
4699         * target.h (struct target_ops) <to_trace_init>: Add argument.
4700         (target_trace_init): Add argument.
4701         * target.c (update_current_target): Update.
4702         * remote.c (remote_trace_init): Add 'self' argument.
4703
4704 2014-02-19  Tom Tromey  <tromey@redhat.com>
4705
4706         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4707         * target.c (target_fileio_readlink): Add argument.
4708         * remote.c (remote_hostio_readlink): Add 'self' argument.
4709         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4710
4711 2014-02-19  Tom Tromey  <tromey@redhat.com>
4712
4713         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4714         * target.c (target_fileio_unlink): Add argument.
4715         * remote.c (remote_hostio_unlink): Add 'self' argument.
4716         (remote_file_delete): Update.
4717         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4718
4719 2014-02-19  Tom Tromey  <tromey@redhat.com>
4720
4721         * target.h (struct target_ops) <to_fileio_close>: Add argument.
4722         * target.c (target_fileio_close): Add argument.
4723         * remote.c (remote_hostio_close): Add 'self' argument.
4724         (remote_hostio_close_cleanup): Update.
4725         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4726         Update.
4727         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4728
4729 2014-02-19  Tom Tromey  <tromey@redhat.com>
4730
4731         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4732         * target.c (target_fileio_pread): Add argument.
4733         * remote.c (remote_hostio_pread): Add 'self' argument.
4734         (remote_bfd_iovec_pread, remote_file_get): Update.
4735         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4736
4737 2014-02-19  Tom Tromey  <tromey@redhat.com>
4738
4739         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4740         * target.c (target_fileio_pwrite): Add argument.
4741         * remote.c (remote_hostio_pwrite): Add 'self' argument.
4742         (remote_file_put): Update.
4743         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4744
4745 2014-02-19  Tom Tromey  <tromey@redhat.com>
4746
4747         * target.h (struct target_ops) <to_fileio_open>: Add argument.
4748         * target.c (target_fileio_open): Add argument.
4749         * remote.c (remote_hostio_open): Add 'self' argument.
4750         (remote_bfd_iovec_open): Add 'self' argument.
4751         (remote_file_put): Add 'self' argument.
4752         (remote_file_get): Add 'self' argument.
4753         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4754
4755 2014-02-19  Tom Tromey  <tromey@redhat.com>
4756
4757         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4758         Add argument.
4759         (target_can_run_breakpoint_commands): Add argument.
4760         * target.c (update_current_target): Update.
4761         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4762         argument.
4763         (remote_insert_breakpoint): Add 'self' argument.
4764         (remote_insert_hw_breakpoint): Add 'self' argument.
4765         (remote_can_run_breakpoint_commands): Add 'self' argument.
4766
4767 2014-02-19  Tom Tromey  <tromey@redhat.com>
4768
4769         * target.h (struct target_ops)
4770         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4771         (target_supports_evaluation_of_breakpoint_conditions): Add
4772         argument.
4773         * target.c (update_current_target): Update.
4774         * remote.c (remote_supports_cond_breakpoints): Add 'self'
4775         argument.
4776         (remote_insert_breakpoint): Add 'self' argument.
4777         (remote_insert_hw_breakpoint): Add 'self' argument.
4778         (remote_supports_cond_breakpoints): Add 'self' argument.
4779
4780 2014-02-19  Tom Tromey  <tromey@redhat.com>
4781
4782         * target.h (struct target_ops) <to_supports_string_tracing>: Add
4783         argument.
4784         (target_supports_string_tracing): Add argument.
4785         * target.c (update_current_target): Update.
4786         * remote.c (remote_supports_string_tracing): Add 'self' argument.
4787
4788 2014-02-19  Tom Tromey  <tromey@redhat.com>
4789
4790         * target.h (struct target_ops)
4791         <to_supports_disable_randomization>: Add argument.
4792         * target.c (find_default_supports_disable_randomization): Add
4793         argument.
4794         (target_supports_disable_randomization): Add argument.
4795         (find_default_supports_disable_randomization): Add 'self'
4796         argument.
4797         * remote.c (extended_remote_supports_disable_randomization): Add
4798         'self' argument.
4799         (remote_supports_disable_randomization): Add 'self' argument.
4800         (extended_remote_create_inferior): Update.
4801         * linux-nat.c (linux_nat_supports_disable_randomization): Add
4802         'self' argument.
4803
4804 2014-02-19  Tom Tromey  <tromey@redhat.com>
4805
4806         * target.h (struct target_ops)
4807         <to_supports_enable_disable_tracepoint>: Add argument.
4808         (target_supports_enable_disable_tracepoint): Add argument.
4809         * target.c (update_current_target): Update.
4810         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4811         argument.
4812
4813 2014-02-19  Tom Tromey  <tromey@redhat.com>
4814
4815         * target.h (struct target_ops) <to_supports_multi_process>: Add
4816         argument.
4817         (target_supports_multi_process): Add argument.
4818         * target.c (update_current_target): Update.
4819         * remote.c (remote_supports_multi_process): Add 'self' argument.
4820         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4821         argument.
4822         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4823         argument.
4824
4825 2014-02-19  Tom Tromey  <tromey@redhat.com>
4826
4827         * target.h (struct target_ops) <to_execution_direction>: Add
4828         argument.
4829         (target_execution_direction): Add argument.
4830         * target.c (default_execution_direction): Add 'self' argument.
4831         * record-full.c (record_full_execution_direction): Add 'self'
4832         argument.
4833
4834 2014-02-19  Tom Tromey  <tromey@redhat.com>
4835
4836         * target.h (struct target_ops) <to_can_execute_reverse>: Add
4837         argument.
4838         (target_can_execute_reverse): Add argument.
4839         * remote.c (remote_can_execute_reverse): Add 'self' argument.
4840         * record-full.c (record_full_can_execute_reverse): Add 'self'
4841         argument.
4842         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4843         argument.
4844
4845 2014-02-19  Tom Tromey  <tromey@redhat.com>
4846
4847         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4848         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4849         argument.
4850         (target_get_ada_task_ptid): Add argument.
4851         * target.c (update_current_target): Update.
4852         (default_get_ada_task_ptid): Add 'self' argument.
4853         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4854         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4855         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4856         argument.
4857         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4858         argument.
4859         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4860         argument.
4861         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4862         argument.
4863         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4864         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4865         argument.
4866
4867 2014-02-19  Tom Tromey  <tromey@redhat.com>
4868
4869         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4870         (target_goto_bookmark): Add argument.
4871         * target.c (dummy_goto_bookmark): Add 'self' argument.
4872         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4873
4874 2014-02-19  Tom Tromey  <tromey@redhat.com>
4875
4876         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4877         (target_get_bookmark): Add argument.
4878         * target.c (dummy_get_bookmark): Add 'self' argument.
4879         * record-full.c (record_full_get_bookmark): Add 'self' argument.
4880
4881 2014-02-19  Tom Tromey  <tromey@redhat.com>
4882
4883         * target.h (struct target_ops) <to_make_corefile_notes>: Add
4884         argument.
4885         (target_make_corefile_notes): Add argument.
4886         * target.c (dummy_make_corefile_notes): Add 'self' argument.
4887         * procfs.c (procfs_make_note_section): Add 'self' argument.
4888         (procfs_make_note_section): Add 'self' argument.
4889         (procfs_make_note_section): Add 'self' argument.
4890         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4891         argument.
4892         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4893         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4894         * exec.c (exec_make_note_section): Add 'self' argument.
4895         (exec_make_note_section): Add 'self' argument.
4896
4897 2014-02-19  Tom Tromey  <tromey@redhat.com>
4898
4899         * target.h (struct target_ops) <to_find_memory_regions>: Add
4900         argument.
4901         (target_find_memory_regions): Add argument.
4902         * target.c (dummy_find_memory_regions): Add 'self' argument.
4903         * procfs.c (proc_find_memory_regions): Add 'self' argument.
4904         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4905         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4906         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4907         * exec. (exec_do_find_memory_regions): New global.
4908         (exec_set_find_memory_regions): Rewrite.
4909         (exec_find_memory_regions): New function.
4910         (init_exec_ops): Use exec_find_memory_regions.
4911
4912 2014-02-19  Tom Tromey  <tromey@redhat.com>
4913
4914         * target.h (struct target_ops) <to_supports_non_stop>: Add
4915         argument.
4916         * target.c (find_default_supports_non_stop): Add argument.
4917         (target_supports_non_stop): Add argument.
4918         (find_default_supports_non_stop): Add 'self' argument.
4919         * remote.c (remote_supports_non_stop): Add 'self' argument.
4920         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4921
4922 2014-02-19  Tom Tromey  <tromey@redhat.com>
4923
4924         * target.h (struct target_ops) <to_log_command>: Add argument.
4925         (target_log_command): Add argument.
4926         * serial.h (serial_log_command): Add 'self' argument.
4927         * serial.c (serial_log_command): Add 'self' argument.
4928
4929 2014-02-19  Tom Tromey  <tromey@redhat.com>
4930
4931         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4932         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4933         argument.
4934         (target_pid_to_exec_file): Add argument.
4935         * target.c (debug_to_pid_to_exec_file): Add argument.
4936         (update_current_target): Update.
4937         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4938         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4939         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4940         (linux_handle_extended_wait): Update.
4941         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4942         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4943         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4944         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4945
4946 2014-02-19  Tom Tromey  <tromey@redhat.com>
4947
4948         * target.h (struct target_ops) <to_rcmd>: Add argument.
4949         (target_rcmd): Add argument.
4950         * target.c (debug_to_rcmd): Add argument.
4951         (update_current_target, do_monitor_command): Update.
4952         * remote.c (remote_rcmd): Add 'self' argument.
4953         * monitor.c (monitor_rcmd): Add 'self' argument.
4954
4955 2014-02-19  Tom Tromey  <tromey@redhat.com>
4956
4957         * windows-nat.c (windows_stop): Add 'self' argument.
4958         * target.h (struct target_ops) <to_stop>: Add argument.
4959         * target.c (target_stop): Add argument.
4960         (debug_to_stop): Add argument.
4961         (update_current_target): Update.
4962         * remote.c (remote_stop): Add 'self' argument.
4963         * remote-sim.c (gdbsim_stop): Add 'self' argument.
4964         (gdbsim_cntrl_c): Update.
4965         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4966         * procfs.c (procfs_stop): Add 'self' argument.
4967         * nto-procfs.c (procfs_stop): Add 'self' argument.
4968         * monitor.c (monitor_stop): Add 'self' argument.
4969         (monitor_open): Update.
4970         * linux-nat.c (linux_nat_stop): Add argument.
4971         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4972         * gnu-nat.c (gnu_stop): Add 'self' argument.
4973         * darwin-nat.c (darwin_stop): Add 'self' argument.
4974
4975 2014-02-19  Tom Tromey  <tromey@redhat.com>
4976
4977         * target.h (struct target_ops) <to_thread_name>: Add argument.
4978         * target.c (target_thread_name): Add argument.
4979         (update_current_target): Update.
4980         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4981
4982 2014-02-19  Tom Tromey  <tromey@redhat.com>
4983
4984         * target.h (struct target_ops) <to_extra_thread_info>: Add
4985         argument.
4986         (target_extra_thread_info): Add argument.
4987         * target.c (update_current_target): Update.
4988         * remote.c (remote_threads_extra_info): Add 'self' argument.
4989         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4990         argument.
4991         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4992         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4993         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4994         argument.
4995         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4996         argument.
4997         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4998         argument.
4999         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5000         argument.
5001
5002 2014-02-19  Tom Tromey  <tromey@redhat.com>
5003
5004         * target.h (struct target_ops) <to_program_signals>: Add argument.
5005         * target.c (target_program_signals): Add argument.
5006         * remote.c (remote_program_signals): Add 'self' argument.
5007
5008 2014-02-19  Tom Tromey  <tromey@redhat.com>
5009
5010         * target.h (struct target_ops) <to_pass_signals>: Add argument.
5011         * target.c (target_pass_signals): Add argument.
5012         * remote.c (remote_pass_signals): Add 'self' argument.
5013         (remote_start_remote): Update.
5014         * procfs.c (procfs_pass_signals): Add 'self' argument.
5015         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5016         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5017         (linux_nat_create_inferior, linux_nat_attach): Update.
5018
5019 2014-02-19  Tom Tromey  <tromey@redhat.com>
5020
5021         * windows-nat.c (windows_can_run): Add 'self' argument.
5022         * target.h (struct target_ops) <to_can_run>: Add argument.
5023         (target_can_run): Add argument.
5024         * target.c (debug_to_can_run): Add argument.
5025         (update_current_target): Update.
5026         * nto-procfs.c (procfs_can_run): Add 'self' argument.
5027         * inf-child.c (inf_child_can_run): Add 'self' argument.
5028         * go32-nat.c (go32_can_run): Add 'self' argument.
5029
5030 2014-02-19  Tom Tromey  <tromey@redhat.com>
5031
5032         * target.h (struct target_ops) <to_has_exited>: Add argument.
5033         (target_has_exited): Add argument.
5034         * target.c (debug_to_has_exited): Add argument.
5035         (update_current_target): Update.
5036
5037 2014-02-19  Tom Tromey  <tromey@redhat.com>
5038
5039         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5040         argument.
5041         (target_set_syscall_catchpoint): Add argument.
5042         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5043         argument.
5044         * target.c (update_current_target): Update.
5045
5046 2014-02-19  Tom Tromey  <tromey@redhat.com>
5047
5048         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5049         argument.
5050         (target_remove_exec_catchpoint): Add argument.
5051         * target.c (debug_to_remove_exec_catchpoint): Add argument.
5052         (update_current_target): Update.
5053         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5054         argument.
5055
5056 2014-02-19  Tom Tromey  <tromey@redhat.com>
5057
5058         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5059         argument.
5060         (target_insert_exec_catchpoint): Add argument.
5061         * target.c (debug_to_insert_exec_catchpoint): Add argument.
5062         (update_current_target): Update.
5063         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5064         argument.
5065
5066 2014-02-19  Tom Tromey  <tromey@redhat.com>
5067
5068         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5069         argument.
5070         (target_remove_vfork_catchpoint): Add argument.
5071         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5072         (update_current_target): Update.
5073         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5074         argument.
5075
5076 2014-02-19  Tom Tromey  <tromey@redhat.com>
5077
5078         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5079         argument.
5080         (target_insert_vfork_catchpoint): Add argument.
5081         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5082         (update_current_target): Update.
5083         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5084         argument.
5085
5086 2014-02-19  Tom Tromey  <tromey@redhat.com>
5087
5088         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5089         argument.
5090         (target_remove_fork_catchpoint): Add argument.
5091         * target.c (debug_to_remove_fork_catchpoint): Add argument.
5092         (update_current_target): Update.
5093         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5094         argument.
5095
5096 2014-02-19  Tom Tromey  <tromey@redhat.com>
5097
5098         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5099         argument.
5100         (target_insert_fork_catchpoint): Add argument.
5101         * target.c (debug_to_insert_fork_catchpoint): Add argument.
5102         (update_current_target): Update.
5103         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5104         argument.
5105
5106 2014-02-19  Tom Tromey  <tromey@redhat.com>
5107
5108         * target.h (struct target_ops) <to_post_startup_inferior>: Add
5109         argument.
5110         (target_post_startup_inferior): Add argument.
5111         * target.c (debug_to_post_startup_inferior): Add argument.
5112         (update_current_target): Update.
5113         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5114         argument.
5115         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5116         argument.
5117         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5118         argument.
5119         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5120         argument.
5121         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5122         'self' argument.
5123         (super_post_startup_inferior): Likewise.
5124         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5125         'self' argument.
5126         (super_post_startup_inferior): Likewise.
5127         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5128         Add 'self' argument.
5129         (super_post_startup_inferior): Likewise.
5130
5131 2014-02-19  Tom Tromey  <tromey@redhat.com>
5132
5133         * target.h (struct target_ops) <to_load>: Add argument.
5134         * target.c (target_load): Add argument.
5135         (debug_to_load): Add argument.
5136         (update_current_target): Update.
5137         * remote.c (remote_load): Add 'self' argument.
5138         * remote-sim.c (gdbsim_load): Add 'self' argument.
5139         * remote-mips.c (mips_load): Add 'self' argument.
5140         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5141         * monitor.c (monitor_load): Add 'self' argument.
5142         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5143
5144 2014-02-19  Tom Tromey  <tromey@redhat.com>
5145
5146         * target.h (struct target_ops) <to_terminal_info>: Add argument.
5147         (target_terminal_info): Add argument.
5148         * target.c (debug_to_terminal_info): Add argument.
5149         (default_terminal_info): Likewise.
5150         * inflow.c (child_terminal_info): Add 'self' argument.
5151         * inferior.h (child_terminal_info): Add 'self' argument.
5152         * go32-nat.c (go32_terminal_info): Add 'self' argument.
5153
5154 2014-02-19  Tom Tromey  <tromey@redhat.com>
5155
5156         * target.h (struct target_ops) <to_terminal_save_ours>: Add
5157         argument.
5158         (target_terminal_save_ours): Add argument.
5159         * target.c (debug_to_terminal_save_ours): Add argument.
5160         (update_current_target): Update.
5161         * inflow.c (terminal_save_ours): Add 'self' argument.
5162         * inferior.h (terminal_save_ours): Add 'self' argument.
5163
5164 2014-02-19  Tom Tromey  <tromey@redhat.com>
5165
5166         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5167         (target_terminal_ours): Add argument.
5168         * target.c (debug_to_terminal_ours): Add argument.
5169         (update_current_target): Update.
5170         * remote.c (remote_terminal_ours): Add 'self' argument.
5171         (remote_close): Update.
5172         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5173         * inflow.c (terminal_ours): Add 'self' argument.
5174         * inferior.h (terminal_ours): Add 'self' argument.
5175         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5176
5177 2014-02-19  Pedro Alves  <palves@redhat.com>
5178             Tom Tromey  <tromey@redhat.com>
5179
5180         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5181         argument.
5182         (target_terminal_ours_for_output): Add argument.
5183         * target.c (debug_to_terminal_ours_for_output): Add argument.
5184         (update_current_target): Update.
5185         * inflow.c (terminal_ours_for_output): Add 'self' argument.
5186         * inferior.h (terminal_ours_for_output): Add 'self' argument.
5187         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5188
5189 2014-02-19  Tom Tromey  <tromey@redhat.com>
5190
5191         * target.h (struct target_ops) <to_terminal_inferior>: Add
5192         argument.
5193         * target.c (target_terminal_inferior): Add argument.
5194         (update_current_target): Update.
5195         * remote.c (remote_terminal_inferior): Add 'self' argument.
5196         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5197         * inflow.c (terminal_inferior): Add 'self' argument.
5198         * inferior.h (terminal_inferior): Add 'self' argument.
5199         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5200         (go32_terminal_inferior): Add 'self' argument.
5201
5202 2014-02-19  Tom Tromey  <tromey@redhat.com>
5203
5204         * target.h (struct target_ops) <to_terminal_init>: Add argument.
5205         (target_terminal_init): Add argument.
5206         * target.c (debug_to_terminal_init): Add argument.
5207         (update_current_target): Update.
5208         * inflow.c (terminal_init_inferior): Add 'self' argument.
5209         * inferior.h (terminal_init_inferior): Add 'self' argument.
5210         * go32-nat.c (go32_terminal_init): Add 'self' argument.
5211         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5212
5213 2014-02-19  Tom Tromey  <tromey@redhat.com>
5214
5215         * target.h (struct target_ops)
5216         <to_can_accel_watchpoint_condition>: Add argument.
5217         (target_can_accel_watchpoint_condition): Add argument.
5218         * target.c (debug_to_can_accel_watchpoint_condition): Add
5219         argument.
5220         (update_current_target): Update.
5221         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5222         'self' argument.
5223
5224 2014-02-19  Tom Tromey  <tromey@redhat.com>
5225
5226         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5227         Add argument.
5228         (target_region_ok_for_hw_watchpoint): Add argument.
5229         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5230         (default_region_ok_for_hw_watchpoint): Add argument.
5231         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5232         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5233         argument.
5234         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5235         argument.
5236         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5237         argument.
5238         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5239         'self' argument.
5240         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5241         'self' argument.
5242         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5243         'self' argument.
5244         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5245         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5246         'self' argument.
5247         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5248         Add 'self' argument.
5249
5250 2014-02-19  Tom Tromey  <tromey@redhat.com>
5251
5252         * target.h (struct target_ops) <to_insert_watchpoint>: Add
5253         argument.
5254         (target_insert_watchpoint): Add argument.
5255         * target.c (debug_to_insert_watchpoint): Add argument.
5256         (update_current_target): Update.
5257         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5258         * remote.c (remote_insert_watchpoint): Add 'self' argument.
5259         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5260         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5261         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5262         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5263         argument.
5264         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5265         (procfs_insert_hw_watchpoint): Add 'self' argument.
5266         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5267         argument.
5268         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5269         argument.
5270         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5271         argument.
5272         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5273         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5274         argument.
5275         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5276         'self' argument.
5277
5278 2014-02-19  Tom Tromey  <tromey@redhat.com>
5279
5280         * target.h (struct target_ops) <to_remove_watchpoint>: Add
5281         argument.
5282         (target_remove_watchpoint): Add argument.
5283         * target.c (debug_to_remove_watchpoint): Add argument.
5284         (update_current_target): Update.
5285         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5286         * remote.c (remote_remove_watchpoint): Add 'self' argument.
5287         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5288         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5289         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5290         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5291         argument.
5292         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5293         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5294         argument.
5295         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5296         argument.
5297         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5298         argument.
5299         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5300         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5301         argument.
5302         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5303         'self' argument.
5304
5305 2014-02-19  Tom Tromey  <tromey@redhat.com>
5306
5307         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5308         argument.
5309         (target_remove_hw_breakpoint): Add argument.
5310         * target.c (debug_to_remove_hw_breakpoint): Add argument.
5311         (update_current_target): Update.
5312         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5313         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5314         argument.
5315         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5316         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5317         argument.
5318         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5319         'self' argument.
5320
5321 2014-02-19  Tom Tromey  <tromey@redhat.com>
5322
5323         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5324         argument.
5325         (target_insert_hw_breakpoint): Add argument.
5326         * target.c (debug_to_insert_hw_breakpoint): Add argument.
5327         (update_current_target): Update.
5328         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5329         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5330         argument.
5331         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5332         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5333         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5334         argument.
5335         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5336         'self' argument.
5337
5338 2014-02-19  Tom Tromey  <tromey@redhat.com>
5339
5340         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5341         argument.
5342         (target_can_use_hardware_watchpoint): Add argument.
5343         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5344         (update_current_target): Update.
5345         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5346         argument.
5347         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5348         argument.
5349         * remote.c (remote_check_watch_resources): Add 'self' argument.
5350         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5351         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5352         argument.
5353         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5354         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5355         argument.
5356         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5357         argument.
5358         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5359         argument.
5360         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5361         argument.
5362         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5363         argument.
5364         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5365         argument.
5366         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5367         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5368         argument.
5369         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5370         'self' argument.
5371
5372 2014-02-19  Tom Tromey  <tromey@redhat.com>
5373
5374         * target.h (struct target_ops) <to_post_attach>: Add argument.
5375         (target_post_attach): Add argument.
5376         * target.c (debug_to_post_attach): Add argument.
5377         (update_current_target): Update.
5378         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5379         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5380         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5381         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5382         * inf-child.c (inf_child_post_attach): Add 'self' argument.
5383
5384 2014-02-19  Tom Tromey  <tromey@redhat.com>
5385
5386         * windows-nat.c (windows_close): Add 'self' argument.
5387         * tracepoint.c (tfile_close): Add 'self' argument.
5388         * target.h (struct target_ops) <to_close>: Add argument.
5389         * target.c (target_close): Add argument.
5390         (update_current_target): Update.
5391         * remote.c (remote_close): Add 'self' argument.
5392         * remote-sim.c (gdbsim_close): Add 'self' argument.
5393         * remote-mips.c (mips_close): Add 'self' argument.
5394         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5395         * record-full.c (record_full_close): Add 'self' argument.
5396         * record-btrace.c (record_btrace_close): Add 'self' argument.
5397         * monitor.h (monitor_close): Add 'self' argument.
5398         * monitor.c (monitor_close): Add 'self' argument.
5399         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5400         * linux-nat.c (linux_nat_close): Add argument.
5401         * go32-nat.c (go32_close): Add 'self' argument.
5402         * exec.c (exec_close_1): Add 'self' argument.
5403         * ctf.c (ctf_close): Add 'self' argument.
5404         * corelow.c (core_close): Add 'self' argument.
5405         (core_close_cleanup): Update.
5406         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5407         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5408
5409 2014-02-19  Tom Tromey  <tromey@redhat.com>
5410
5411         * remote.c (remote_load): New function.
5412         (init_remote_ops): Use it.
5413
5414 2014-02-19  Tom Tromey  <tromey@redhat.com>
5415
5416         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5417         argument.
5418         * common/linux-btrace.h (linux_supports_btrace): Update.
5419         * remote.c (remote_supports_btrace): Add "self" argument.
5420         * target-delegates.c: Rebuild.
5421         * target.c (target_supports_btrace): Remove.
5422         * target.h (struct target_ops) <to_supports_btrace>: Add
5423         target_ops argument.
5424         (target_supports_btrace): New define.
5425
5426 2014-02-19  Tom Tromey  <tromey@redhat.com>
5427
5428         * record-full.c (record_full_beneath_to_resume_ops)
5429         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5430         (record_full_beneath_to_wait)
5431         (record_full_beneath_to_store_registers_ops)
5432         (record_full_beneath_to_store_registers)
5433         (record_full_beneath_to_xfer_partial_ops)
5434         (record_full_beneath_to_xfer_partial)
5435         (record_full_beneath_to_insert_breakpoint_ops)
5436         (record_full_beneath_to_insert_breakpoint)
5437         (record_full_beneath_to_remove_breakpoint_ops)
5438         (record_full_beneath_to_remove_breakpoint)
5439         (record_full_beneath_to_stopped_by_watchpoint)
5440         (record_full_beneath_to_stopped_data_address)
5441         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5442         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5443         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5444         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5445         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5446         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5447         (tmp_to_stopped_data_address, tmp_to_async): Remove.
5448         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
5449         (record_full_resume, record_full_wait_1)
5450         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5451         (record_full_store_registers, record_full_xfer_partial)
5452         (record_full_insert_breakpoint, record_full_remove_breakpoint)
5453         (record_full_async, record_full_core_xfer_partial): Use target
5454         delegation.
5455         * target-delegates.c: Rebuild.
5456         * target.c (current_xfer_partial): Remove.
5457         (update_current_target): Do not INHERIT or de_fault
5458         to_insert_breakpoint, to_remove_breakpoint,
5459         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5460         to_is_async_p, to_async.  Do not set to_xfer_partial field.
5461         (default_xfer_partial): Simplify.
5462         (current_xfer_partial): Remove.
5463         (target_wait, target_resume): Simplify.
5464         (find_default_can_async_p, find_default_is_async_p): Update.
5465         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5466         to_xfer_partial, to_stopped_by_watchpoint,
5467         to_stopped_data_address.
5468         (target_store_registers): Simplify.
5469         (forward_target_remove_breakpoint)
5470         (forward_target_insert_breakpoint): Remove.
5471         (target_remove_breakpoint, target_insert_breakpoint)
5472         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5473         * target.h (struct target_ops) <to_resume, to_wait,
5474         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5475         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5476         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5477         markup.
5478         (forward_target_remove_breakpoint)
5479         (forward_target_insert_breakpoint): Remove.
5480         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5481         directly.
5482         (record_btrace_insert_breakpoint): Delegate directly.
5483
5484 2014-02-19  Tom Tromey  <tromey@redhat.com>
5485
5486         PR build/7701:
5487         * target-delegates.c: New file.
5488         * target.c: Include target-delegates.c.
5489         (init_dummy_target): Call install_dummy_methods.
5490         (complete_target_initialization): Call install_delegators.
5491         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5492         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5493         * make-target-delegates: New file.
5494
5495 2014-02-19  Tom Tromey  <tromey@redhat.com>
5496
5497         * record.c (find_record_target): Use find_target_at.
5498         * target.c (find_target_at): New function.
5499         * target.h (find_target_at): Declare.
5500
5501 2014-02-19  Tom Tromey  <tromey@redhat.com>
5502
5503         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5504         Add 'ops' argument.
5505         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5506         'ops' argument.
5507         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5508         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5509         'ops' argument.
5510         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5511         argument.
5512         * linux-nat.c (save_sigtrap): Update.
5513         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5514         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5515         (linux_nat_close): Update.
5516         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5517         argument.
5518         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5519         argument.
5520         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5521         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5522         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5523         (tmp_to_async): Add 'ops' argument.
5524         (record_full_stopped_by_watchpoint, record_full_async)
5525         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5526         argument.
5527         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5528         (m32r_stopped_by_watchpoint): Add 'ops' argument.
5529         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5530         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5531         (remote_is_async_p, remote_async): Add 'ops' argument.
5532         (remote_stopped_data_address): Update.
5533         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5534         * target.c (update_current_target)
5535         (find_default_can_async_p, find_default_is_async_p): Update.
5536         (init_dummy_target): Update.
5537         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5538         * target.h (struct target_ops) <to_stopped_by_watchpoint,
5539         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5540         (target_can_async_p, target_is_async_p, target_async)
5541         (target_stopped_by_watchpoint): Update.
5542
5543 2014-02-19  Yao Qi  <yao@codesourcery.com>
5544
5545         PR gdb/16220
5546         * gdbarch.sh: Remove startup_gdbarch.
5547         * gdbarch.c: Regenerated.
5548         * gdbarch.h: Likewise.
5549
5550 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
5551
5552         * rl78-tdep.c (rl78_g10_register_name): New function.
5553         (rl78_return_value): Add g10 support.
5554         (rl78_gdbarch_init): Register rl78_g10_register_name for the
5555         g10.
5556
5557 2014-02-17  Doug Evans  <xdje42@gmail.com>
5558
5559         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5560         (SUBDIR_GUILE_SRCS): Ditto.
5561         (scm-gsmob.o): Ditto.
5562
5563 2014-02-17  Yao Qi  <yao@codesourcery.com>
5564
5565         * gnu-nat.c (ILL_RPC): Declare defined function.
5566
5567 2014-02-17  Yao Qi  <yao@codesourcery.com>
5568
5569         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5570         mach_msg_type_number_t.
5571         (gnu_write_inferior): Likewise.
5572
5573 2014-02-17  Yao Qi  <yao@codesourcery.com>
5574
5575         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5576         in format string.
5577         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5578         (inf_validate_procs, inf_signal): Likewise.
5579         (S_exception_raise_request): Likewise.
5580         (do_mach_notify_dead_name): Likewise.
5581         (steal_exc_port): Likewise.
5582         (gnu_read_inferior): Change 'copy_count''s type to
5583         mach_msg_type_number_t.
5584         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
5585         format string.
5586
5587 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
5588
5589         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5590         flag.  Adjust all users; in particular...
5591         (gnu_wait): ..., don't decrement its value in here...
5592         (gnu_create_inferior): ..., and instead set the flag in here,
5593         around the startup_inferior call, and call that one with
5594         START_INFERIOR_TRAPS_EXPECTED.
5595
5596         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5597         (ILL_RPC): ... new macro.
5598         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5599         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5600         (do_mach_notify_send_once, S_proc_setmsgport_reply)
5601         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5602         functions with ILL_RPC macro.
5603         (S_proc_pid2task_reply, S_proc_task2pid_reply)
5604         (S_proc_task2proc_reply, S_proc_proc2task_reply)
5605         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5606         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5607         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5608         (S_proc_getlogin_reply, S_proc_getsid_reply)
5609         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5610         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5611         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5612         (S_proc_getnports_reply, S_proc_is_important_reply)
5613         (S_proc_get_code_reply): New stub functions, generated with
5614         ILL_RPC macro.
5615
5616         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5617         collected the type check structures.
5618
5619         * reply_mig_hack.awk: Don't expect to see the auto keyword.
5620
5621 2014-02-14  Doug Evans  <dje@google.com>
5622
5623         * target.c (target_write_partial): Fix result type.
5624
5625 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
5626
5627         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5628         the proper offsets to access fpregset_t.
5629
5630 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
5631
5632         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5633         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5634         * h8300-tdep.c (setmachinelist): Remove global.
5635         * hppa-tdep.c (hppa_sigtramp): Remove global.
5636         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5637         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5638         * ravenscar-thread.c (update_target_observer): Remove global.
5639         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5640
5641 2014-02-12  Tom Tromey  <tromey@redhat.com>
5642
5643         * common/rsp-low.c: Update comments.
5644         * common/rsp-low.h: Update comments.
5645
5646 2014-02-12  Tom Tromey  <tromey@redhat.com>
5647
5648         * common/rsp-low.c (convert_ascii_to_int): Remove.
5649         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5650
5651 2014-02-12  Tom Tromey  <tromey@redhat.com>
5652
5653         * common/rsp-low.h (unhexify): Don't declare.
5654         * common/rsp-low.c (unhexify): Remove.
5655
5656 2014-02-12  Tom Tromey  <tromey@redhat.com>
5657
5658         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5659         * common/rsp-low.c (convert_int_to_ascii): Remove.
5660
5661 2014-02-12  Tom Tromey  <tromey@redhat.com>
5662
5663         * common/rsp-low.h (hexify): Don't declare.
5664         * common/rsp-low.c (hexify): Remove.
5665
5666 2014-02-12  Tom Tromey  <tromey@redhat.com>
5667
5668         * common/rsp-low.c (hexify): Never take strlen of argument.
5669
5670 2014-02-12  Tom Tromey  <tromey@redhat.com>
5671
5672         * common/rsp-low.c (bin2hex): Never take strlen of argument.
5673         * remote.c (extended_remote_run, remote_rcmd)
5674         (remote_download_trace_state_variable, remote_save_trace_data)
5675         (remote_set_trace_notes): Update.
5676         * tracepoint.c (encode_source_string, tfile_write_status)
5677         (tfile_write_uploaded_tsv): Update.
5678
5679 2014-02-12  Tom Tromey  <tromey@redhat.com>
5680
5681         * tracepoint.c: Include rsp-low.h.
5682         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5683         * remote.c: Include rsp-low.h.
5684         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5685         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5686         (remote_unescape_input): Move to common/rsp-low.c.
5687         * common/rsp-low.h: New file.
5688         * common/rsp-low.c: New file.
5689         * Makefile.in (SFILES): Add common/rsp-low.c.
5690         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5691         (COMMON_OBS): Add rsp-low.o.
5692         (rsp-low.o): New target.
5693
5694 2014-02-12  Tom Tromey  <tromey@redhat.com>
5695
5696         * utils.h: Include print-utils.h.
5697         (host_address_to_string, plongest, pulongest, phex, phex_nz)
5698         (int_string, core_addr_to_string, core_addr_to_string_nz)
5699         (hex_string, hex_string_custom): Don't declare.
5700         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5701         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5702         (hex_string_custom, int_string, core_addr_to_string)
5703         (core_addr_to_string_nz, host_address_to_string): Move to
5704         common/print-utils.c.
5705         * common/print-utils.h: New file.
5706         * common/print-utils.c: New file
5707         * Makefile.in (SFILES): Add common/print-utils.c.
5708         (HFILES_NO_SRCDIR): Add common/print-utils.h.
5709         (COMMON_OBS): Add print-utils.o.
5710         (print-utils.o): New target.
5711
5712 2014-02-12  Tom Tromey  <tromey@redhat.com>
5713
5714         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5715
5716 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
5717
5718         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5719
5720 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
5721
5722         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5723         if a PT_IO ptrace request returns sucessfully but indicates that 0
5724         bytes were transferred.
5725
5726 2014-02-12  Pedro Alves  <palves@redhat.com>
5727             Kevin Buettner <kevinb@redhat.com>
5728
5729         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5730         TYPE_INSTANCE_FLAG_CODE_SPACE.
5731
5732 2014-02-12  Pedro Alves  <palves@redhat.com>
5733
5734         * h8300-tdep.c (pseudo_from_raw_register)
5735         (raw_from_pseudo_register): New functions.
5736         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5737         them.
5738
5739 2014-02-12  Pedro Alves  <palves@redhat.com>
5740
5741         * h8300-tdep.c (h8300_register_sim_regno): New function.
5742         (h8300_gdbarch_init): Install h8300_register_sim_regno as
5743         gdbarch_register_sim_regno hook.
5744
5745 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
5746
5747         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5748
5749 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
5750
5751         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5752
5753 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
5754
5755         * obsd-tdep.h (obsd_init_abi): New prototype.
5756         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5757         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5758         (obsd_init_abi): New functions.
5759         * i386obsd-tdep.c: Include "obsd-tdep.h".
5760         (i386obsd_init_abi): Call obsd_init_abi.
5761         * amd64obsd-tdep.c: Include "obsd-tdep.h".
5762         (amd64obsd_init_abi): Call obsd_init_abi.
5763         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5764         obsd-tdep.c to gdb_target_obs.
5765
5766 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
5767
5768         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5769         double float arguments to 16-byte in the argument slots.
5770
5771 2014-02-11  Doug Evans  <xdje42@gmail.com>
5772
5773         * configure.ac: Don't crash if pkg-config is not found and guile
5774         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
5775         in guile checks.
5776         * configure: Regenerate.
5777
5778 2014-02-11  Yao Qi  <yao@codesourcery.com>
5779
5780         * aix-thread.c (aix_thread_xfer_partial): Update comments.
5781         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5782         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5783         * gnu-nat.c (gnu_xfer_memory): Likewise.
5784         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
5785         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5786         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5787         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5788
5789 2014-02-11  Yao Qi  <yao@codesourcery.com>
5790
5791         * target.h (enum target_xfer_error): Rename to ...
5792         (enum target_xfer_status): ... it.  New.  All users updated.
5793         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5794         New.
5795         (TARGET_XFER_STATUS_ERROR_P): New macro.
5796         (target_xfer_error_to_string): Remove declaration.
5797         (target_xfer_status_to_string): Declare.
5798         (target_xfer_partial_ftype): Adjust it.
5799         (struct target_ops) <to_xfer_partial>: Return
5800         target_xfer_status.  Add argument xfered_len.  Update
5801         comments.
5802         * target.c (target_xfer_error_to_string): Rename to ...
5803         (target_xfer_status_to_string): ... it.  New.  All callers
5804         updated.
5805         (target_read_live_memory): Likewise.  Call target_xfer_partial
5806         instead of target_read.
5807         (memory_xfer_live_readonly_partial): Return
5808         target_xfer_status.  Add argument xfered_len.
5809         (raw_memory_xfer_partial): Likewise.
5810         (memory_xfer_partial_1): Likewise.
5811         (memory_xfer_partial): Likewise.
5812         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
5813         properly.  Update debug message.
5814         (default_xfer_partial, current_xfer_partial): Likewise.
5815         (target_write_partial): Likewise.
5816         (target_read_partial): Likewise.  All callers updated.
5817         (read_whatever_is_readable): Likewise.
5818         (target_write_with_progress): Likewise.
5819         (target_read_alloc_1): Likewise.
5820
5821         * aix-thread.c (aix_thread_xfer_partial): Likewise.
5822         * auxv.c (procfs_xfer_auxv): Likewise.
5823         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5824         * bfd-target.c (target_bfd_xfer_partial): Likewise.
5825         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5826         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5827         * corefile.c (read_memory): Adjust.
5828         * corelow.c (core_xfer_partial): Likewise.
5829         * ctf.c (ctf_xfer_partial): Likewise.
5830         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
5831         updated.
5832         (darwin_xfer_partial): Likewise.
5833         * exec.c (section_table_xfer_memory_partial): Likewise.  All
5834         callers updated.
5835         (exec_xfer_partial): Likewise.
5836         * exec.h (section_table_xfer_memory_partial): Update
5837         declaration.
5838         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
5839         negative.
5840         (gnu_xfer_partial): Likewise.
5841         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5842         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5843         (ia64_hpux_xfer_solib_got): Likewise.
5844         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
5845         type of 'partial_len' to ULONGEST.
5846         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5847         * linux-nat.c (linux_xfer_siginfo ): Likewise.
5848         (linux_nat_xfer_partial): Likewise.
5849         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5850         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5851         * monitor.c (monitor_xfer_memory): Likewise.
5852         (monitor_xfer_partial): Likewise.
5853         * procfs.c (procfs_xfer_partial): Likewise.
5854         * record-btrace.c (record_btrace_xfer_partial): Likewise.
5855         * record-full.c (record_full_xfer_partial): Likewise.
5856         (record_full_core_xfer_partial): Likewise.
5857         * remote-sim.c (gdbsim_xfer_memory): Likewise.
5858         (gdbsim_xfer_partial): Likewise.
5859         * remote.c (remote_write_bytes_aux): Likewise.  All callers
5860         updated.
5861         (remote_write_bytes, remote_read_bytes): Likewise.  All
5862         callers updated.
5863         (remote_flash_erase): Likewise.  All callers updated.
5864         (remote_write_qxfer): Likewise.  All callers updated.
5865         (remote_read_qxfer): Likewise.  All callers updated.
5866         (remote_xfer_partial): Likewise.
5867         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5868         (rs6000_xfer_shared_libraries): Likewise.
5869         * sol-thread.c (sol_thread_xfer_partial): Likewise.
5870         (sol_thread_xfer_partial): Likewise.
5871         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5872         (sparc_xfer_partial): Likewise.
5873         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
5874         updated.
5875         (spu_xfer_partial): Likewise.
5876         * spu-multiarch.c (spu_xfer_partial): Likewise.
5877         * tracepoint.c (tfile_xfer_partial): Likewise.
5878         * windows-nat.c (windows_xfer_memory): Likewise.
5879         (windows_xfer_shared_libraries): Likewise.
5880         (windows_xfer_partial): Likewise.
5881         * valprint.c: Replace 'target_xfer_error' with
5882         'target_xfer_status' in comments.
5883
5884 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
5885
5886         Checked in by Joel Brobecker <brobecker@adacore.com>.
5887         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5888
5889 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
5890
5891         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5892         function parameters.
5893
5894 2014-02-10  Will Newton  <will.newton@linaro.org>
5895
5896         * elfread.c (elf_rel_plt_read): Look for a .got section if
5897         looking up .got.plt fails.
5898         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5899         on address passed to elf_gnu_ifunc_record_cache.
5900         (elf_gnu_ifunc_resolve_addr): Likewise.
5901         (elf_gnu_ifunc_resolver_return_stop): Likewise.
5902
5903 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
5904
5905         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5906         (X_RETTURN): New macro.
5907         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5908
5909         * sparc64-tdep.c (sparc64_init_abi): Hook
5910         sparc_in_function_epilogue_p.
5911
5912 2014-02-10  Gary Benson  <gbenson@redhat.com>
5913
5914         * symfile-debug.c (debug_qf_expand_symtabs_matching):
5915         Rename name_matcher to symbol_matcher.
5916
5917 2014-02-10  Gary Benson  <gbenson@redhat.com>
5918
5919         * symfile-debug.c (debug_qf_expand_symtabs_matching):
5920         Use expand_symtabs_file_matcher_ftype and
5921         expand_symtabs_symbol_matcher_ftype.
5922
5923 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
5924
5925         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5926         (struct ada_symbol_cache): New.
5927         (ada_free_symbol_cache): Forward declare.
5928         (struct ada_pspace_data): New.
5929         (ada_pspace_data_handle): New static global.
5930         (get_ada_pspace_data, ada_pspace_data_cleanup)
5931         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5932         (cache_space, cache): Delete, now folded inside struct
5933         ada_pspace_data.
5934         (ada_get_symbol_cache): New function.
5935         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5936         implementation.
5937         (_initialize_ada_language): Remove initialization of cache_space.
5938         Move call to observer_attach_inferior_exit up, grouping it
5939         with the other observer registrations inside this function.
5940         Rename command to be more general.  Add call to
5941         register_program_space_data_with_cleanup.
5942
5943 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
5944
5945         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5946         ada_new_objfile_observer.
5947         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5948         (_initialize_tasks): Update uses of ada_new_objfile_observer
5949         and ada_tasks_normal_stop_observer.
5950
5951 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
5952
5953         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5954         returned by the 'Length attribute to integer.
5955
5956 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
5957
5958         * ada-lang.c (_initialize_ada_language): Initialize
5959         cache_space obstack.
5960
5961 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
5962
5963         * ada-lang.c (HASH_SIZE): New macro.
5964         (struct cache_entry): New type.
5965         (cache_space, cache): New static globals.
5966         (ada_clear_symbol_cache, find_entry): New functions.
5967         (lookup_cached_symbol, cache_symbol): Implement.
5968         (ada_new_objfile_observer, ada_free_objfile_observer): New.
5969         (_initialize_ada_language): Attach ada_new_objfile_observer
5970         and ada_free_objfile_observer.
5971
5972 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
5973
5974         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5975         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5976         struct block * parameter.
5977         (ada_lookup_symbol_list_worker): Constify local variable "block".
5978         Remove cast which is no longer necessary.
5979
5980 2014-02-10  Doug Evans  <xdje42@gmail.com>
5981
5982         Add Guile as an extension language.
5983         * NEWS: Mention Guile scripting.
5984         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5985         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5986         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5987         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5988         (CLIBS): Add GUILE_LIBS.
5989         (install-guile): New rule.
5990         (guile.o): New rule.
5991         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5992         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5993         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5994         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5995         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5996         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5997         (scm-type.o, scm-utils.o, scm-value.o): New rules.
5998         * configure.ac: New option --with-guile.
5999         * configure: Regenerate.
6000         * config.in: Regenerate.
6001         * auto-load.c: Remove #include "python/python.h".  Add #include
6002         "gdb/section-scripts.h".
6003         (source_section_scripts): Handle Guile scripts.
6004         (_initialize_auto_load): Add name of Guile objfile script to
6005         scripts-directory help text.
6006         * breakpoint.c (condition_command): Tweak comment to include Scheme.
6007         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6008         (struct breakpoint): New member scm_bp_object.
6009         * defs.h (enum command_control_type): New value guile_control.
6010         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
6011         "extension.h".
6012         (show_user): Update comment.
6013         (_initialize_cli_cmds): Update help text for "show user".  Update help
6014         text for max-user-call-depth.
6015         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
6016         "extension.h".
6017         (multi_line_command_p): Add guile_control.
6018         (print_command_lines): Handle guile_control.
6019         (execute_control_command, recurse_read_control_structure): Ditto.
6020         (process_next_line): Recognize "guile" commands.
6021         * disasm.c (gdb_disassemble_info): Make non-static.
6022         * disasm.h: #include "dis-asm.h".
6023         (struct gdbarch): Add forward decl.
6024         (gdb_disassemble_info): Declare.
6025         * extension.c: #include "guile/guile.h".
6026         (extension_languages): Add guile.
6027         (get_ext_lang_defn): Handle EXT_LANG_GDB.
6028         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6029         * gdbtypes.c (get_unsigned_type_max): New function.
6030         (get_signed_type_minmax): New function.
6031         * gdbtypes.h (get_unsigned_type_max): Declare.
6032         (get_signed_type_minmax): Declare.
6033         * guile/README: New file.
6034         * guile/guile-internal.h: New file.
6035         * guile/guile.c: New file.
6036         * guile/guile.h: New file.
6037         * guile/scm-arch.c: New file.
6038         * guile/scm-auto-load.c: New file.
6039         * guile/scm-block.c: New file.
6040         * guile/scm-breakpoint.c: New file.
6041         * guile/scm-disasm.c: New file.
6042         * guile/scm-exception.c: New file.
6043         * guile/scm-frame.c: New file.
6044         * guile/scm-gsmob.c: New file.
6045         * guile/scm-iterator.c: New file.
6046         * guile/scm-lazy-string.c: New file.
6047         * guile/scm-math.c: New file.
6048         * guile/scm-objfile.c: New file.
6049         * guile/scm-ports.c: New file.
6050         * guile/scm-pretty-print.c: New file.
6051         * guile/scm-safe-call.c: New file.
6052         * guile/scm-string.c: New file.
6053         * guile/scm-symbol.c: New file.
6054         * guile/scm-symtab.c: New file.
6055         * guile/scm-type.c: New file.
6056         * guile/scm-utils.c: New file.
6057         * guile/scm-value.c: New file.
6058         * guile/lib/gdb.scm: New file.
6059         * guile/lib/gdb/boot.scm: New file.
6060         * guile/lib/gdb/experimental.scm: New file.
6061         * guile/lib/gdb/init.scm: New file.
6062         * guile/lib/gdb/iterator.scm: New file.
6063         * guile/lib/gdb/printing.scm: New file.
6064         * guile/lib/gdb/types.scm: New file.
6065         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6066         (VPATH): Add $(GUILE_SRCDIR).
6067         (GUILE_DIR): New variable.
6068         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6069         (all): Add stamp-guile dependency.
6070         (stamp-guile): New rule.
6071         (clean-guile, install-guile, uninstall-guile): New rules.
6072         (install-only): Add install-guile dependency.
6073         (uninstall): Add uninstall-guile dependency.
6074         (clean): Add clean-guile dependency.
6075
6076 2014-02-09  Doug Evans  <xdje42@gmail.com>
6077
6078         Revert this patch (which I approved, mea culpa).
6079
6080         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
6081
6082         * Makefile.in (all-lib): Remove.
6083         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6084
6085 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6086
6087         Fix Python stack corruption.
6088         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6089         gdb_py_longest.
6090
6091 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
6092
6093         * Makefile.in (all-lib): Remove.
6094         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6095
6096 2014-02-07  Doug Evans  <dje@google.com>
6097
6098         * extension-priv.h (extension_language_script_ops): Add comment.
6099         (extension_language_ops): Add comment.
6100         (active_ext_lang_state): Fix typo in comment.
6101
6102 2014-02-07  Pedro Alves  <palves@redhat.com>
6103
6104         PR breakpoints/16292
6105         * infrun.c (handle_signal_stop) <signal arrives while stepping
6106         over a breakpoint>: Switch back to the stepping thread.
6107
6108 2014-02-07  Yao Qi  <yao@codesourcery.com>
6109
6110         * target.c (target_xfer_partial): Return zero if LEN is zero.
6111
6112 2014-02-07  Yao Qi  <yao@codesourcery.com>
6113
6114         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6115         (ld_so_xfer_auxv): Likewise.
6116         * bfd-target.c (target_bfd_xfer_partial): Likewise.
6117         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6118         * corelow.c (core_xfer_partial): Likewise.
6119         * ctf.c (ctf_xfer_partial): Likewise.
6120         * darwin-nat.c (darwin_read_dyld_info): Likewise.
6121         (darwin_xfer_partial): Likewise.
6122         * exec.c (exec_xfer_partial): Likewise.
6123         * gnu-nat.c (gnu_xfer_partial): Likewise.
6124         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6125         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6126         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6127         * linux-nat.c (linux_xfer_siginfo): Likewise.
6128         (linux_proc_xfer_spu): Likewise.
6129         * procfs.c (procfs_xfer_partial): Likewise.
6130         * record-full.c (record_full_xfer_partial): Likewise.
6131         (record_full_core_xfer_partial): Likewise.
6132         * remote-sim.c (gdbsim_xfer_partial): Likewise.
6133         * remote.c (remote_write_qxfer): Likewise.
6134         (remote_write_qxfer, remote_read_qxfer): Likewise.
6135         (remote_xfer_partial): Likewise.
6136         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6137         (rs6000_xfer_shared_libraries): Likewise.
6138         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6139         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6140         (spu_xfer_partial): Likewise.
6141         * target.c (memory_xfer_partial_1): Likewise.
6142         * tracepoint.c (tfile_xfer_partial): Likewise.
6143         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6144         (windows_xfer_partial): Likewise.
6145
6146 2014-02-07  Yao Qi  <yao@codesourcery.com>
6147
6148         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
6149         comments.
6150         (core_xfer_shared_libraries_aix): Likewise.
6151         * gdbarch.c, gdbarch.h: Regenerated.
6152         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6153         ULONGEST.  Change 'len_avail' type to ULONGEST.
6154         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6155         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6156         declaration.
6157         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6158
6159 2014-02-07  Yao Qi  <yao@codesourcery.com>
6160
6161         * corefile.c (memory_error): Get 'exception' from ERR and pass
6162         'exception' to throw_error.
6163
6164 2014-02-06  Doug Evans  <xdje42@gmail.com>
6165
6166         * configure.ac (libpython checking): Remove all but python.o from
6167         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
6168         * configure: Regenerate.
6169
6170         * Makefile.in (SFILES): Add extension.c.
6171         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6172         (COMMON_OBS): Add extension.o.
6173         * extension.h: New file.
6174         * extension-priv.h: New file.
6175         * extension.c: New file.
6176
6177         * python/python-internal.h: #include "extension.h".
6178         (gdbpy_auto_load_enabled): Declare.
6179         (gdbpy_apply_val_pretty_printer): Declare.
6180         (gdbpy_apply_frame_filter): Declare.
6181         (gdbpy_preserve_values): Declare.
6182         (gdbpy_breakpoint_cond_says_stop): Declare.
6183         (gdbpy_breakpoint_has_cond): Declare.
6184         (void source_python_script_for_objfile): Delete.
6185         * python/python.c: #include "extension-priv.h".
6186         Delete inclusion of "observer.h".
6187         (extension_language_python): Moved here and renamed from
6188         script_language_python in py-auto-load.c.
6189         Redefined to be of type extension_language_defn.
6190         (python_extension_script_ops): New global.
6191         (python_extension_ops): New global.
6192         (struct python_env): New member previous_active.
6193         (restore_python_env): Call restore_active_ext_lang.
6194         (ensure_python_env): Call set_active_ext_lang.
6195         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6196         New arg extlang.
6197         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6198         New arg extlang.
6199         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6200         New arg extlang.
6201         (gdbpy_eval_from_control_command): Renamed from
6202         eval_python_from_control_command, made static.  New arg extlang.
6203         (gdbpy_source_script) Renamed from source_python_script, made static.
6204         New arg extlang.
6205         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
6206         result to int.  New arg extlang.
6207         (gdbpy_source_objfile_script): Renamed from
6208         source_python_script_for_objfile, made static.  New arg extlang.
6209         (gdbpy_start_type_printers): Renamed from start_type_printers, made
6210         static.  New args extlang, extlang_printers.  Change result type to
6211         "void".
6212         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6213         static.  New arg extlang.  Rename arg printers to extlang_printers
6214         and change type to ext_lang_type_printers *.
6215         (gdbpy_free_type_printers): Renamed from free_type_printers, made
6216         static.  Replace argument arg with extlang, extlang_printers.
6217         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6218         (!HAVE_PYTHON, source_python_script): Delete.
6219         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6220         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6221         (!HAVE_PYTHON, start_type_printers): Delete.
6222         (!HAVE_PYTHON, apply_type_printers): Delete.
6223         (!HAVE_PYTHON, free_type_printers): Delete.
6224         (_initialize_python): Delete call to observer_attach_before_prompt.
6225         (finalize_python): Set/restore active extension language.
6226         (gdbpy_finish_initialization) Renamed from
6227         finish_python_initialization, made static.  New arg extlang.
6228         (gdbpy_initialized): New function.
6229         * python/python.h: #include "extension.h".  Delete #include
6230         "value.h", "mi/mi-cmds.h".
6231         (extension_language_python): Declare.
6232         (GDBPY_AUTO_FILE_NAME): Delete.
6233         (enum py_bt_status): Moved to extension.h and renamed to
6234         ext_lang_bt_status.
6235         (enum frame_filter_flags): Moved to extension.h.
6236         (enum py_frame_args): Moved to extension.h and renamed to
6237         ext_lang_frame_args.
6238         (finish_python_initialization): Delete.
6239         (eval_python_from_control_command): Delete.
6240         (source_python_script): Delete.
6241         (apply_val_pretty_printer): Delete.
6242         (apply_frame_filter): Delete.
6243         (preserve_python_values): Delete.
6244         (gdbpy_script_language_defn): Delete.
6245         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6246         (start_type_printers, apply_type_printers, free_type_printers): Delete.
6247
6248         * auto-load.c: #include "extension.h".
6249         (GDB_AUTO_FILE_NAME): Delete.
6250         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
6251         (script_language_gdb): Delete, moved to extension.c and renamed to
6252         extension_language_gdb.
6253         (source_gdb_script_for_objfile): Delete.
6254         (auto_load_pspace_info): New member unsupported_script_warning_printed.
6255         (loaded_script): Change type of language member to
6256         struct extension_language_defn *.
6257         (init_loaded_scripts_info): Initialize
6258         unsupported_script_warning_printed.
6259         (maybe_add_script): Make static.  Change type of language arg to
6260         struct extension_language_defn *.
6261         (clear_section_scripts): Reset unsupported_script_warning_printed.
6262         (auto_load_objfile_script_1): Rewrite to use extension language API.
6263         (auto_load_objfile_script): Make public.  Remove support-compiled-in
6264         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6265         (source_section_scripts): Rewrite to use extension language API.
6266         (load_auto_scripts_for_objfile): Rewrite to use
6267         auto_load_scripts_for_objfile.
6268         (collect_matching_scripts_data): Change type of language member to
6269         struct extension_language_defn *.
6270         (auto_load_info_scripts): Change type of language arg to
6271         struct extension_language_defn *.
6272         (unsupported_script_warning_print): New function.
6273         (script_not_found_warning_print): Make static.
6274         (_initialize_auto_load): Rewrite construction of scripts-directory
6275         help.
6276         * auto-load.h (struct objfile): Add forward decl.
6277         (struct script_language): Delete.
6278         (struct auto_load_pspace_info): Add forward decl.
6279         (struct extension_language_defn): Add forward decl.
6280         (maybe_add_script): Delete.
6281         (auto_load_objfile_script): Declare.
6282         (script_not_found_warning_print): Delete.
6283         (auto_load_info_scripts): Update prototype.
6284         (auto_load_gdb_scripts_enabled): Declare.
6285         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6286         auto_load_python_scripts_enabled and made public.
6287         (script_language_python): Delete, moved to python.c.
6288         (gdbpy_script_language_defn): Delete.
6289         (info_auto_load_python_scripts): Update to use
6290         extension_language_python.
6291
6292         * breakpoint.c (condition_command): Replace call to
6293         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6294         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6295         with call to breakpoint_ext_lang_cond_says_stop.
6296         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6297         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
6298         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6299         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6300         New arg slang.
6301         (local_setattro): Print name of extension language with existing
6302         stop condition.
6303
6304         * valprint.c (val_print, value_print): Update to call
6305         apply_ext_lang_val_pretty_printer.
6306         * cp-valprint.c (cp_print_value): Update call to
6307         apply_ext_lang_val_pretty_printer.
6308         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6309         (gdbpy_apply_val_pretty_printer): Renamed from
6310         apply_val_pretty_printer.  New arg extlang.
6311         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6312
6313         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6314         extension language API.
6315         * cli/cli-script.c (execute_control_command): Update to call
6316         eval_ext_lang_from_control_command.
6317
6318         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6319         enum ext_lang_bt_status values.  Update call to
6320         apply_ext_lang_frame_filter.
6321         (mi_cmd_stack_list_locals): Ditto.
6322         (mi_cmd_stack_list_args): Ditto.
6323         (mi_cmd_stack_list_variables): Ditto.
6324         * mi/mi-main.c: Delete #include "python/python-internal.h".
6325         Add #include "extension.h".
6326         (mi_cmd_list_features): Replace reference to python internal variable
6327         gdb_python_initialized with call to ext_lang_initialized_p.
6328
6329         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6330         Update to use enum ext_lang_frame_args.  Update to call
6331         apply_ext_lang_frame_filter.
6332         * python/py-framefilter.c (extract_sym): Update to use enum
6333         ext_lang_bt_status.
6334         (extract_value, py_print_type, py_print_value): Ditto.
6335         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6336         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6337         (py_print_frame): Ditto.
6338         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6339         New arg extlang.  Update to use enum ext_lang_bt_status.
6340
6341         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6342         finish_python_initialization.  Replace with call to
6343         finish_ext_lang_initialization.
6344
6345         * typeprint.c (do_free_global_table): Update to call
6346         free_ext_lang_type_printers.
6347         (create_global_typedef_table): Update to call
6348         start_ext_lang_type_printers.
6349         (find_global_typedef): Update to call apply_ext_lang_type_printers.
6350         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6351         (type_print_options): Change type of global_printers from "void *"
6352         to "struct ext_lang_type_printers *".
6353
6354         * value.c (preserve_values): Update to call preserve_ext_lang_values.
6355         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6356         (gdbpy_preserve_values): Renamed from preserve_python_values.
6357         New arg extlang.
6358         (!HAVE_PYTHON, preserve_python_values): Delete.
6359
6360         * utils.c (quit_flag): Delete, moved to extension.c.
6361         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6362         extension.c.
6363
6364         * eval.c: Delete #include "python/python.h".
6365         * main.c: Delete #include "python/python.h".
6366
6367         * defs.h: Update comment.
6368
6369 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
6370
6371         GDB 7.7 released.
6372
6373 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
6374
6375         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6376         defined.
6377
6378 2014-02-05  Yao Qi  <yao@codesourcery.com>
6379
6380         * remote.c (remote_pass_signals): Remove local 'buf' and use
6381         rs->buf.
6382         (remote_program_signals): Likewise.
6383
6384 2014-02-05  Yao Qi  <yao@codesourcery.com>
6385
6386         * ctf.c: Include "inferior.h" and "gdbthread.h".
6387         (CTF_PID): A new macro.
6388         (ctf_open): Call inferior_appeared and add_thread_silent.
6389         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6390         (ctf_thread_alive): New function.
6391         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6392
6393 2014-02-05  Yao Qi  <yao@codesourcery.com>
6394
6395         Revert this patch:
6396
6397         2013-05-24  Yao Qi  <yao@codesourcery.com>
6398
6399         * tracepoint.c (TFILE_PID): Remove.
6400         (tfile_open): Don't add thread and inferior.
6401         (tfile_close): Don't set 'inferior_ptid'.  Don't call
6402         exit_inferior_silent.
6403         (tfile_thread_alive): Remove.
6404         (init_tfile_ops): Don't set field 'to_thread_alive' of
6405         tfile_ops.
6406
6407 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
6408
6409         * remote.c (remote_start_remote): Call remote_check_symbols even
6410         if only symbol-file (not file) has been given.
6411
6412 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6413
6414         * gdbarch.sh (skip_entrypoint): New callback.
6415         * gdbarch.c, gdbarch.h: Regenerate.
6416         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6417         * infrun.c (fill_in_stop_func): Likewise.
6418         * ppc-linux-tdep.c: Include "elf/ppc64.h".
6419         (ppc_elfv2_elf_make_msymbol_special): New function.
6420         (ppc_elfv2_skip_entrypoint): Likewise.
6421         (ppc_linux_init_abi): Install them for ELFv2.
6422
6423 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6424
6425         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6426         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6427         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6428         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
6429         structures returned in GPRs.
6430
6431 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6432
6433         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6434         offset to the stack parameter list for the ELFv2 ABI.
6435
6436 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6437
6438         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6439         set_gdbarch_convert_from_func_ptr_addr and
6440         set_gdbarch_elf_make_msymbol_special for ELFv1.
6441         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6442         function descriptors on ELFv1.
6443         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
6444         set up r12 at function entry.
6445
6446 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6447
6448         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6449         (struct gdbarch_tdep): New member elf_abi.
6450
6451         * rs6000-tdep.c: Include "elf/ppc64.h".
6452         (rs6000_gdbarch_init): Detect ELF ABI version.
6453
6454 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6455
6456         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6457         within a register pair holding a DFP 128-bit value on little-endian.
6458         (ppc64_sysv_abi_return_value_base): Likewise.
6459         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6460         (dfp_pseudo_register_write): Likewise.
6461
6462 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6463
6464         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6465         offset on little-endian when passing _Decimal32.
6466         (ppc64_sysv_abi_return_value_base): Likewise for return values.
6467
6468 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6469
6470         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6471         of the overlapped FP register within the VSX register on little-
6472         endian platforms.
6473         (efpr_pseudo_register_write): Likewise.
6474
6475 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6476
6477         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6478         offset on little-endian when passing small structures.
6479
6480 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6481
6482         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6483         (struct ppc64_sysv_argpos): New data structure.
6484         (ppc64_sysv_abi_push_float): Remove.
6485         (ppc64_sysv_abi_push_val): New function.
6486         (ppc64_sysv_abi_push_integer): Likewise.
6487         (ppc64_sysv_abi_push_freg): Likewise.
6488         (ppc64_sysv_abi_push_vreg): Likewise.
6489         (ppc64_sysv_abi_push_param): Likewise.
6490         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6491         (ppc64_sysv_abi_return_value_base): New function.
6492         (ppc64_sysv_abi_return_value): Refactor to use it.
6493
6494 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6495
6496         * NEWS: Document new target powerpc64le-*-linux*.
6497
6498 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
6499
6500         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6501         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6502         core dumps.
6503         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6504         register set used in ELF core dumps.  Add floating-point register set.
6505
6506 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
6507
6508         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite 
6509         dwarf2_to_gdb[] table using symbolic constants.  Adjust
6510         penultimate entry from number representing the PC register
6511         to symbolic constant representing the MDR register.  Add
6512         constant for the PC register to the end of the table.
6513
6514 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
6515
6516         * bsd-kvm.c: Include <sys/param.h>
6517
6518 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
6519
6520         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6521
6522 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
6523
6524         * ada-lang.h (clear_ada_sym_cache): Delete.
6525
6526 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
6527
6528         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6529
6530 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
6531
6532         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6533           the sigreturn register save area only if the syscall is
6534           sigreturn.
6535
6536 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
6537
6538         * valops.c (value_slice): Minor reformatting.
6539
6540 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
6541
6542         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6543
6544 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
6545
6546         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6547         New static globals.
6548         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6549         (ada_ignore_descriptive_types_p): New static global.
6550         (find_parallel_type_by_descriptive_type): Return immediately
6551         if ada_ignore_descriptive_types_p is set.
6552         (_initialize_ada_language): Register new commands "maintenance
6553         set ada", "maintenance show ada", "maintenance set ada
6554         ignore-descriptive-types" and "maintenance show ada
6555         ignore-descriptive-types".
6556         * NEWS: Add entry for new "maint ada set/show
6557         ignore-descriptive-types" commands.
6558
6559 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
6560
6561         * record-btrace.c (record_btrace_close): Call btrace_teardown
6562         for all threads.
6563
6564 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6565
6566         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6567         "ui-out.h".
6568
6569 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6570
6571         * ada-typeprint (type_is_full_subrange_of_target_type):
6572         New function.
6573         (print_range): Add parameter bounds_prefered_p.  If not set,
6574         try printing range types using the name of their base type.
6575         (print_range_type): Add parameter bounds_prefered_p.
6576         Use it in call to print_range.
6577         (print_array_type, ada_print_type): Update calls to print_range
6578         and print_range_type.
6579
6580 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6581
6582         * ada-typeprint.c (print_array_type, print_choices, print_range)
6583         (print_range_bound, print_dynamic_range_bound, print_range_type):
6584         Remove declaration.
6585
6586 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6587
6588         * ada-typeprint.c (print_range): Add missing empty line
6589         after local declaration.
6590
6591 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6592
6593         * ada-valprint.c (print_optional_low_bound): Get index_type's
6594         target type for as long as it is a TYPE_CODE_RANGE.
6595
6596 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
6597
6598         * procfs.c (procfs_make_note_section): Remove assertion and
6599         associated comment.
6600
6601 2014-01-24  Yao Qi  <yao@codesourcery.com>
6602
6603         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6604         * corelow.c (get_core_siginfo): Likewise.
6605
6606 2014-01-24  Yao Qi  <yao@codesourcery.com>
6607
6608         * remote.c (remote_write_bytes_aux): Change type of 'len' to
6609         ULONGEST.  Don't check 'len' is negative.
6610         (remote_write_bytes):  Change type of 'len' to ULONGEST.
6611
6612 2014-01-23  Tom Tromey  <tromey@redhat.com>
6613
6614         PR python/16485:
6615         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6616         Handle exception from frame.block.
6617         (FrameVars.fetch_frame_locals): Likewise.
6618
6619 2014-01-23  Tom Tromey  <tromey@redhat.com>
6620
6621         PR python/16487:
6622         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6623         on a NULL pointer.  Move "goto error" to correct place.
6624
6625 2014-01-23  Tom Tromey  <tromey@redhat.com>
6626
6627         PR python/16491:
6628         * python/py-framefilter.c (apply_frame_filter): Call
6629         ensure_python_env after computing gdbarch.
6630
6631 2014-01-23  Yao Qi  <yao@codesourcery.com>
6632
6633         * target.c (raw_memory_xfer_partial): Change argument type
6634         from void * to gdb_byte *.
6635         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6636
6637 2014-01-22  Doug Evans  <dje@google.com>
6638
6639         New gdbserver option --debug-format=timestamp.
6640         * NEWS: Mention it.
6641
6642 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
6643
6644         * syscalls/s390x-linux.xml: New file.
6645         * syscalls/s390-linux.xml: New file.
6646         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6647         (XML_SYSCALL_FILENAME_S390X): Likewise.
6648         (op_svc): New enum value for SVC opcode.
6649         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6650         (s390_linux_get_syscall_number): New function.
6651         (s390_gdbarch_init): Register '*get_syscall_number' and the
6652         syscall xml file name.
6653         * data-directory/Makefile.in (SYSCALLS_FILES): Add
6654         "s390-linux.xml" and "s390x-linux.xml".
6655         * NEWS: Announce new feature.
6656
6657 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
6658
6659         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6660
6661 2014-01-22  Pedro Alves  <palves@redhat.com>
6662
6663         * xtensa-config.c: Include defs.h.
6664
6665 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
6666
6667         * common/common-utils.h: Add "ARI:" comment beside __func__
6668         reference.
6669
6670 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
6671
6672         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6673         documentation a bit.
6674
6675 2014-01-21  Roland McGrath  <mcgrathr@google.com>
6676
6677         * configure.ac: Call AM_PROG_INSTALL_STRIP.
6678         * configure: Regenerate.
6679         * aclocal.m4: Regenerate.
6680         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6681         New substituted variables.
6682         (install-strip): New target.
6683         (INSTALL_SCRIPT): New substituted variable.
6684         (FLAGS_TO_PASS): Add it.
6685         (install-only): Use $(INSTALL_SCRIPT) rather than
6686         $(INSTALL_PROGRAM) for gcore.
6687
6688 2014-01-20  Tom Tromey  <tromey@redhat.com>
6689
6690         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6691         together.
6692
6693 2014-01-20  Tom Tromey  <tromey@redhat.com>
6694
6695         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6696         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6697         (deprecated_cmd_warning, complete_on_cmdlist): Update.
6698         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6699         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6700         (struct cmd_list_element) <flags>: Remove.
6701         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6702         doc_allocated>: New fields.
6703         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6704         bitfields.
6705         * maint.c (maintenance_do_deprecate): Update.
6706         * top.c (execute_command): Update.
6707
6708 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
6709
6710         * xtensa-linux-nat.c: Include asm/ptrace.h.
6711
6712 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
6713
6714         * Makefile.in (SFILES): Add d-support.c.
6715         (COMMON_OBS): Add d-support.o.
6716         * d-lang.h (d_parse_symbol): Add comment, now defined in
6717         d-support.c.
6718         * d-lang.c (parse_call_convention)
6719         (parse_attributes, parse_function_types)
6720         (parse_function_args, parse_type, parse_identifier)
6721         (call_convention_p, d_parse_symbol): Move functions to ...
6722         * d-support.c: ... New file.
6723
6724 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
6725
6726         * d-lang.h (d_parse_symbol): Add declaration.
6727         * d-lang.c (extract_identifiers)
6728         (extract_type_info): Remove functions.
6729         (parse_call_convention, parse_attributes)
6730         (parse_function_types, parse_function_args)
6731         (parse_type, parse_identifier, call_convention_p)
6732         (d_parse_symbol): New functions.
6733         (d_demangle): Use d_parse_symbol to demangle D symbols.
6734
6735 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
6736
6737         * d-lang.h (struct builtin_d_type): New data type.
6738         (builtin_d_type): Add declaration.
6739         * d-lang.c (d_language_arch_info, build_d_types)
6740         (builtin_d_type): New functions.
6741         (enum d_primitive_types): New data type.
6742         (d_language_defn): Change c_language_arch_info to
6743         d_language_arch_info.
6744         (d_type_data): New static variable.
6745         (_initialize_d_language): Initialize d_type_data.
6746
6747 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
6748
6749         * d-lang.h (d_main_name): Add declaration.
6750         * d-lang.c (d_main_name): New function.
6751         * symtab.c (find_main_name): Add call to d_main_name.
6752
6753 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
6754
6755         * d-lang.c (d_language_defn): Change macro_expansion_c to
6756         macro_expansion_no.
6757
6758 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
6759
6760         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6761
6762 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
6763
6764         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6765         gdb_exception" declaration.
6766         * remote.c (getpkt_or_notif_sane): Likewise.
6767
6768 2014-01-17  Doug Evans  <dje@google.com>
6769
6770         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6771         function, contents of dirnames_to_char_ptr_vec_append moved here.
6772         (delim_string_to_char_ptr_vec): New function.
6773         (dirnames_to_char_ptr_vec_append): Rewrite.
6774         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6775
6776 2014-01-17  Doug Evans  <dje@google.com>
6777
6778         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6779         and moved here ...
6780         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6781         #include "common-utils.h".
6782         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6783         * common/vec.h (VEC_ASSERT_PASS): Update.
6784         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6785         (MACH_CHECK_ERROR): Update.
6786
6787 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
6788
6789         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6790         comments.
6791         * gdbarch.h: Regenerate.
6792
6793 2014-01-16  Tom Tromey  <tromey@redhat.com>
6794
6795         * value.c (struct value) <regnum>: Move earlier.
6796
6797 2014-01-16  Tom Tromey  <tromey@redhat.com>
6798
6799         * remote.c (extended_remote_create_inferior): Rename from
6800         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
6801         old implementation.
6802
6803 2014-01-16  Pedro Alves  <palves@redhat.com>
6804
6805         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6806         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6807         the backchain.
6808
6809 2014-01-16  Doug Evans  <dje@google.com>
6810
6811         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6812
6813 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6814
6815         * btrace.h (btrace_thread_flag): New.
6816         (struct btrace_thread_info) <flags>: New.
6817         * record-btrace.c (record_btrace_resume_thread)
6818         (record_btrace_find_thread_to_move, btrace_step_no_history)
6819         (btrace_step_stopped, record_btrace_start_replaying)
6820         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6821         (record_btrace_find_resume_thread): New.
6822         (record_btrace_resume, record_btrace_wait): Extend.
6823         (record_btrace_can_execute_reverse): New.
6824         (record_btrace_open): Fail in non-stop mode.
6825         (record_btrace_set_replay): Split into this, ...
6826         (record_btrace_stop_replaying): ... this, ...
6827         (record_btrace_clear_histories): ... and this.
6828         (init_record_btrace_ops): Init to_can_execute_reverse.
6829         * NEWS: Announce it.
6830
6831 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6832
6833         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6834         (forward_target_decr_pc_after_break)
6835         (target_decr_pc_after_break): New.
6836         * target.c (forward_target_decr_pc_after_break)
6837         (target_decr_pc_after_break): New.
6838         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6839         instead of gdbarch_decr_pc_after_break.
6840         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6841         instead of gdbarch_decr_pc_after_break.
6842         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6843         instead of gdbarch_decr_pc_after_break.
6844         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6845         instead of gdbarch_decr_pc_after_break.
6846         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6847         instead of gdbarch_decr_pc_after_break.
6848         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6849         instead of gdbarch_decr_pc_after_break.
6850
6851 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6852
6853         * btrace.c: Include regcache.h.
6854         (btrace_add_pc): New.
6855         (btrace_enable): Call btrace_add_pc.
6856         (btrace_is_empty): New.
6857         * btrace.h (btrace_is_empty): New.
6858         * record-btrace.c (require_btrace, record_btrace_info): Call
6859         btrace_is_empty.
6860
6861 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6862
6863         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6864         Support delta reads.
6865         (linux_disable_btrace): Change return type.
6866         * common/linux-btrace.h (linux_read_btrace): Change parameters
6867         and return type to allow error reporting.  Update users.
6868         (linux_disable_btrace): Change return type.  Update users.
6869         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6870         New.
6871         (btrace_error): New.
6872         (btrace_block) <begin>: Comment on BEGIN == 0.
6873         * btrace.c (btrace_compute_ftrace): Start from the end of
6874         the current trace.
6875         (btrace_stitch_trace, btrace_clear_history): New.
6876         (btrace_fetch): Read delta trace, return if replaying.
6877         (btrace_clear): Move clear history code to btrace_clear_history.
6878         (parse_xml_btrace): Throw an error if parsing failed.
6879         * target.h (struct target_ops) <to_read_btrace>: Change parameters
6880         and return type to allow error reporting.
6881         (target_read_btrace): Change parameters and return type to allow
6882         error reporting.
6883         * target.c (target_read_btrace): Update.
6884         * remote.c (remote_read_btrace): Support delta reads.  Pass
6885         errors on.
6886         * NEWS: Announce it.
6887
6888 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6889
6890         * record.h (record_btrace_frame_unwind)
6891         (record_btrace_tailcall_frame_unwind): New declarations.
6892         * dwarf2-frame: Include record.h
6893         (dwarf2_frame_cfa): Throw an error for btrace frames.
6894         * record-btrace.c: Include hashtab.h.
6895         (btrace_get_bfun_name): New.
6896         (btrace_call_history): Call btrace_get_bfun_name.
6897         (struct btrace_frame_cache): New.
6898         (bfcache): New.
6899         (bfcache_hash, bfcache_eq, bfcache_new): New.
6900         (btrace_get_frame_function): New.
6901         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6902         (record_btrace_frame_this_id): Compute own id.
6903         (record_btrace_frame_prev_register): Provide PC, throw_error
6904         for all other registers.
6905         (record_btrace_frame_sniffer): Detect btrace frames.
6906         (record_btrace_tailcall_frame_sniffer): New.
6907         (record_btrace_frame_dealloc_cache): New.
6908         (record_btrace_frame_unwind): Add new functions.
6909         (record_btrace_tailcall_frame_unwind): New.
6910         (_initialize_record_btrace): Allocate cache.
6911         * btrace.c (btrace_clear): Call reinit_frame_cache.
6912         * NEWS: Announce it.
6913
6914 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6915
6916         * record-btrace.c (record_btrace_set_replay)
6917         (record_btrace_goto_begin, record_btrace_goto_end)
6918         (record_btrace_goto): New.
6919         (init_record_btrace_ops): Initialize them.
6920         * NEWS: Announce it.
6921
6922 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6923
6924         * record-btrace.c (record_btrace_find_new_threads)
6925         (record_btrace_thread_alive): New.
6926         (init_record_btrace_ops): Initialize to_find_new_threads and
6927         to_thread_alive.
6928
6929 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6930
6931         * record-btrace.c (record_btrace_resume): New.
6932         (record_btrace_wait): New.
6933         (init_record_btrace_ops): Initialize to_wait and to_resume.
6934
6935 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6936
6937         * record-btrace.c (record_btrace_xfer_partial)
6938         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6939         (record_btrace_allow_memory_access): New.
6940         (init_record_btrace_ops): Initialize new methods.
6941         * target.c (raw_memory_xfer_partial): Bail out if target reports
6942         that this memory is not available.
6943
6944 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
6945
6946         * target.h (target_ops) <to_insert_breakpoint>
6947         <to_remove_breakpoint>: Add target_ops parameter.
6948         (forward_target_insert_breakpoint): New.
6949         (forward_target_remove_breakpoint): New.
6950         (memory_remove_breakpoint, memory_insert_breakpoint):
6951         Add target_ops parameter.
6952         * target.c (target_insert_breakpoint): Split into this and ...
6953         (forward_target_insert_breakpoint): ... this.
6954         (target_remove_breakpoint): Split into this and ...
6955         (forward_target_remove_breakpoint): ... this.
6956         (debug_to_insert_breakpoint): Add target_ops parameter.
6957         Call forward_target_insert_breakpoint.
6958         (debug_to_remove_breakpoint): Add target_ops parameter.
6959         Call forward_target_remove_breakpoint.
6960         (update_current_target): Do not inherit or default to_insert_breakpoint
6961         and to_remove_breakpoint.
6962         * corelow.c (ignore): Add target_ops parameter.
6963         * exec.c (ignore): Add target_ops parameter.
6964         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6965         Add target_ops parameter.
6966         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6967         Add target_ops parameter.
6968         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6969         Add target_ops parameter.
6970         * record-full.c (record_full_beneath_to_insert_breakpoint)
6971         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6972         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6973         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6974         (record_full_core_remove_breakpoint): Add target_ops parameter.
6975         Update users.
6976         (record_full_beneath_to_insert_breakpoint_ops)
6977         (record_full_beneath_to_remove_breakpoint_ops)
6978         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6979         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6980         tmp_to_remove_breakpoint_ops,
6981         record_full_beneath_to_insert_breakpoint_ops, and
6982         record_full_beneath_to_remove_breakpoint_ops.
6983         * remote-m32r-sdi.c (m32r_insert_breakpoint)
6984         (m32r_remove_breakpoint): Add target_ops parameter.
6985         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6986         Add target_ops parameter.
6987         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6988         Add target_ops parameter.
6989
6990 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6991             Markus Metzger  <markus.t.metzger@intel.com>
6992
6993         * record-btrace.c: Include frame-unwind.h.
6994         (record_btrace_frame_unwind_stop_reason)
6995         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6996         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6997         New.
6998         (init_record_btrace_ops): Install it.
6999
7000 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7001
7002         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7003         get_prev_frame_1.
7004
7005 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7006
7007         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7008         earlier.
7009
7010 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7011
7012         * frame-unwind.c: Include target.h.
7013         (frame_unwind_try_unwinder): New function with code from ...
7014         (frame_unwind_find_by_frame): ... here.  New variable
7015         unwinder_from_target, call also target_get_unwinder)
7016         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7017         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7018         * target.h (struct target_ops): New fields to_get_unwinder and
7019         to_get_tailcall_unwinder.
7020         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7021
7022 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7023
7024         * record-btrace.c (record_btrace_fetch_registers)
7025         (record_btrace_store_registers)
7026         (record_btrace_to_prepare_to_store): New.
7027         (init_record_btrace_ops): Add the above.
7028
7029 2014-01-16  Tom Tromey  <tromey@redhat.com>
7030
7031         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7032         * target.h (struct target_ops) <to_prepare_to_store>: Add
7033         argument.
7034         (target_prepare_to_store): Add argument.
7035         * target.c (debug_to_prepare_to_store): Add argument.
7036         (update_current_target): Update.
7037         * remote.c (remote_prepare_to_store): Add 'self' argument.
7038         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7039         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7040         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7041         * record-full.c (record_full_core_prepare_to_store): Add 'self'
7042         argument.
7043         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7044         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7045         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7046         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7047         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7048
7049 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7050
7051         * btrace.h (replay) <replay>: New.
7052         (btrace_is_replaying): New.
7053         * btrace.c (btrace_clear): Free replay iterator.
7054         (btrace_is_replaying): New.
7055         * record-btrace.c (record_btrace_is_replaying): New.
7056         (record_btrace_info): Print insn number if replaying.
7057         (record_btrace_insn_history): Start at replay position.
7058         (record_btrace_call_history): Start at replay position.
7059         (init_record_btrace_ops): Init to_record_is_replaying.
7060
7061 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7062
7063         * record-btrace.c (record_btrace_insn_history_range): Include
7064         end.
7065         (record_btrace_insn_history_from): Adjust range.
7066         (record_btrace_call_history_range): Include
7067         end.
7068         (record_btrace_call_history_from): Adjust range.
7069         * NEWS: Announce changes.
7070
7071 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7072
7073         * record.h (enum record_print_flag)
7074         <record_print_indent_calls>: New.
7075         * record.c (get_call_history_modifiers): Recognize /c modifier.
7076         (_initialize_record): Document /c modifier.
7077         * record-btrace.c (btrace_call_history): Add btinfo parameter.
7078         Reorder fields.  Optionally indent the function name.  Update
7079         all users.
7080         * NEWS: Announce changes.
7081
7082 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7083
7084         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7085
7086 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7087
7088         * btrace.c (ftrace_new_function): Start counting at one.
7089         * record-btrace.c (record_btrace_info): Adjust number of calls
7090         and insns.
7091         * NEWS: Announce it.
7092
7093 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7094
7095         * record-btrace.c (btrace_call_history_insn_range): Print
7096         insn range as [begin, end].
7097
7098 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7099
7100         * btrace.h (struct btrace_func_link): New.
7101         (enum btrace_function_flag): New.
7102         (struct btrace_inst): Rename to ...
7103         (struct btrace_insn): ...this. Update all users.
7104         (struct btrace_func) <ibegin, iend>: Remove.
7105         (struct btrace_func_link): New.
7106         (struct btrace_func): Rename to ...
7107         (struct btrace_function): ...this. Update all users.
7108         (struct btrace_function) <segment, flow, up, insn, insn_offset)
7109         (number, level, flags>: New.
7110         (struct btrace_insn_iterator): Rename to ...
7111         (struct btrace_insn_history): ...this.
7112         Update all users.
7113         (struct btrace_insn_iterator, btrace_call_iterator): New.
7114         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7115         (struct btrace_target_info) <begin, end, level>
7116         <insn_history, call_history>: New.
7117         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7118         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7119         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7120         (btrace_call_number, btrace_call_begin, btrace_call_end)
7121         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7122         (btrace_find_function_by_number, btrace_set_insn_history)
7123         (btrace_set_call_history): New.
7124         * btrace.c (btrace_init_insn_iterator)
7125         (btrace_init_func_iterator, compute_itrace): Remove.
7126         (ftrace_print_function_name, ftrace_print_filename)
7127         (ftrace_skip_file): Change
7128         parameter to const.
7129         (ftrace_init_func): Remove.
7130         (ftrace_debug): Use new btrace_function fields.
7131         (ftrace_function_switched): Also consider gaining and
7132         losing symbol information).
7133         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7134         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7135         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7136         New.
7137         (ftrace_new_function): Move. Remove debug print.
7138         (ftrace_update_lines, ftrace_update_insns): New.
7139         (ftrace_update_function): Check for call, ret, and jump.
7140         (compute_ftrace): Renamed to ...
7141         (btrace_compute_ftrace): ...this. Rewritten to compute call
7142         stack.
7143         (btrace_fetch, btrace_clear): Updated.
7144         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7145         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7146         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7147         (btrace_call_number, btrace_call_begin, btrace_call_end)
7148         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7149         (btrace_find_function_by_number, btrace_set_insn_history)
7150         (btrace_set_call_history): New.
7151         * record-btrace.c (require_btrace): Use new btrace thread
7152         info fields.
7153         (record_btrace_info, btrace_insn_history)
7154         (record_btrace_insn_history, record_btrace_insn_history_range):
7155         Use new btrace thread info fields and new iterator.
7156         (btrace_func_history_src_line): Rename to ...
7157         (btrace_call_history_src_line): ...this. Use new btrace
7158         thread info fields.
7159         (btrace_func_history): Rename to ...
7160         (btrace_call_history): ...this. Use new btrace thread info
7161         fields and new iterator.
7162         (record_btrace_call_history, record_btrace_call_history_range):
7163         Use new btrace thread info fields and new iterator.
7164
7165 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7166
7167         * frame.h (frame_id_build_unavailable_stack_special): New.
7168         * frame.c (frame_id_build_unavailable_stack_special): New.
7169
7170 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7171
7172         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7173         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7174         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7175         to gdbarch.
7176         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7177         (i386_insn_is_jump, i386_jmp_p): New.
7178         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7179         insn_is_jump to gdbarch.
7180         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7181         * gdbarch.h: Regenerated.
7182         * gdbarch.c: Regenerated.
7183         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7184         (default_insn_is_jump): New.
7185         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7186         (default_insn_is_jump): New.
7187
7188 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7189
7190         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7191         Change to ...
7192         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
7193         (btrace_read_type) <btrace_read_new>: Change to ...
7194         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
7195
7196 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
7197
7198         * common/linux-btrace.c (linux_read_btrace): Free trace from
7199         previous iteration.
7200
7201 2014-01-15  Doug Evans  <dje@google.com>
7202
7203         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7204         uint32_t.
7205
7206 2014-01-15  Tom Tromey  <tromey@redhat.com>
7207
7208         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7209         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7210         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7211         (set_objfile_main_name): New function.
7212         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7213         language_of_main>: New fields.
7214         (set_objfile_main_name): Declare.
7215         * symtab.c (find_main_name): Loop over objfiles to find the main
7216         name and language.
7217         (set_main_name): Now static.
7218         (get_main_info): Add comment.
7219         * symtab.h (set_main_name): Don't declare.
7220
7221 2014-01-15  Tom Tromey  <tromey@redhat.com>
7222
7223         * symtab.c (main_progspace_key): New global.
7224         (struct main_info): New.
7225         (name_of_main, language_of_main): Remove.
7226         (get_main_info, main_info_cleanup): New function.
7227         (set_main_name, main_name, main_language): Use get_main_info.
7228         (_initialize_symtab): Initialize main_progspace_key.
7229
7230 2014-01-15  Tom Tromey  <tromey@redhat.com>
7231
7232         * dbxread.c (process_one_symbol): Update.
7233         * dwarf2read.c (read_partial_die): Update.
7234         * symfile.c (set_initial_language): Call main_language.
7235         * symtab.c (language_of_main): Now static.
7236         (set_main_name): Add 'lang' parameter.
7237         (find_main_name): Update.
7238         (main_language): New function.
7239         (symtab_observer_executable_changed): Update.
7240         * symtab.h (set_main_name): Update.
7241         (language_of_main): Remove.
7242         (main_language): Declare.
7243
7244 2014-01-15  Tom Tromey  <tromey@redhat.com>
7245
7246         * symfile.c (init_entry_point_info): Use new "initialized" field.
7247         Update.
7248         * objfiles.h (struct entry_point) <initialized>: New field.
7249         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7250         (struct objfile) <ei>: ...here.  Remove.
7251         * objfiles.c (entry_point_address_query): Update.
7252
7253 2014-01-15  Tom Tromey  <tromey@redhat.com>
7254
7255         * objfiles.c (entry_point_address_query): Relocate entry point
7256         address.
7257         (objfile_relocate1): Do not relocate entry point address.
7258         * objfiles.h (struct entry_info) <entry_point>: Update comment.
7259         <the_bfd_section_index>: New field.
7260         * symfile.c (init_entry_point_info): Find the entry point's
7261         section.
7262
7263 2014-01-15  Tom Tromey  <tromey@redhat.com>
7264
7265         * solib-frv.c (enable_break): Use entry_point_address_query.
7266
7267 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7268
7269         * NEWS: Add note on improved process record-replay on
7270         arm*-linux* targets.
7271
7272 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7273
7274         * arm-tdep.c (enum arm_record_result): New enum.
7275         (arm_record_unsupported_insn): New function.
7276         (arm_record_coproc_data_proc): Removed.
7277         (thumb2_record_ld_st_multiple): New function.
7278         (thumb2_record_ld_st_dual_ex_tbb): New function.
7279         (thumb2_record_data_proc_sreg_mimm): New function.
7280         (thumb2_record_ps_dest_generic): New function.
7281         (thumb2_record_branch_misc_cntrl): New function.
7282         (thumb2_record_str_single_data): New function.
7283         (thumb2_record_ld_mem_hints): New function.
7284         (thumb2_record_ld_word): New function.
7285         (thumb2_record_lmul_lmla_div): New function.
7286         (thumb2_record_decode_insn_handler): New function.
7287         (decode_insn): Add thumb32 instruction handlers.
7288
7289 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7290
7291         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7292         (struct arm_linux_record_tdep): Declare.
7293         (arm_canonicalize_syscall): New function.
7294         (arm_all_but_pc_registers_record): New function.
7295         (arm_linux_syscall_record): New function.
7296         (arm_linux_init_abi): Add syscall recording constructs.
7297         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7298         decoding.  (arm_record_coproc_data_proc): Update arm syscall
7299         decoding.
7300         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7301         <arm_syscall_record>: New field.
7302         * configure.tgt (arm*-*-linux*): Add linux-record.o to
7303         gdb_target_obs.
7304
7305 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7306
7307         * arm-tdep.c (thumb_record_misc): Update to use sp as base
7308         register for push instruction recording.
7309
7310 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7311
7312         * arm-tdep.c (thumb_record_misc): Update to correct logical
7313         error while recording ldm, ldmia and pop instructions.
7314
7315 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
7316
7317         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7318
7319 2014-01-15  Pedro Alves  <palves@redhat.com>
7320
7321         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7322         (go32_resume, go32_fetch_registers, store_register)
7323         (go32_store_registers, go32_prepare_to_store)
7324         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7325         (go32_create_inferior, go32_can_run, go32_terminal_init)
7326         (go32_terminal_inferior, go32_terminal_ours): Delete forward
7327         declarations.
7328
7329 2014-01-15  Tom Tromey  <tromey@redhat.com>
7330
7331         * target.h (async_callback_ftype): New typedef.
7332         (struct target_ops) <to_async>: Use it.
7333
7334 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
7335
7336         * python/py-value.c (get_field_type): Remove unnecessary curly
7337         braces for single-statement if block.
7338
7339 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
7340
7341         * python/py-type.c (convert_field): Add missing empty line
7342         after declarations.
7343
7344 2014-01-14  Doug Evans  <dje@google.com>
7345
7346         * symfile.h (expand_symtabs_matching): Renamed from
7347         expand_partial_symbol_names.  Update prototype.
7348         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7349         * symfile.c (expand_symtabs_matching): Renamed from
7350         expand_partial_symbol_names.  New args file_matcher, kind.
7351         Rename arg fun to symbol_matcher.
7352         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7353         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7354         ada_expand_partial_symbol_name.
7355         (ada_make_symbol_completion_list): Update to call
7356         expand_symtabs_matching.
7357         (ada_add_global_exceptions): Call expand_symtabs_matching.
7358         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7359         call map_symbol_filenames.
7360         * symtab.c (sources_info): Update to call map_symbol_filenames.
7361         (search_symbols): Call expand_symtabs_matching.
7362         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7363         (default_make_symbol_completion_list_break_on): Update to call
7364         expand_symtabs_matching.
7365         (make_source_files_completion_list): Update to call
7366         map_symbol_filenames.
7367
7368 2014-01-14  Doug Evans  <dje@google.com>
7369
7370         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7371         (expand_symtabs_symbol_matcher_ftype): New typedef.
7372         (quick_symbol_functions.expand_symtabs_matching): Update to use.
7373         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7374         * symfile.c (expand_partial_symbol_names): Update to use
7375         expand_symtabs_symbol_matcher_ftype.
7376         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7377         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7378         Arg name_matcher renamed to symbol_matcher.
7379         * psymtab.c (recursively_search_psymtabs): Update to use
7380         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
7381         sym_matcher.
7382         (expand_symtabs_matching_via_partial): Update to use
7383         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7384         Arg name_matcher renamed to symbol_matcher.
7385
7386 2014-01-14  Doug Evans  <dje@google.com>
7387
7388         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7389         (map_partial_symbol_filenames): Ditto.
7390         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7391         (map_partial_symbol_filenames): Ditto.
7392         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7393         (map_partial_symbol_filenames): Ditto.
7394         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7395         (map_partial_symbol_filenames): Ditto.
7396         * symtab.c: Delete #include "psymtab.h".
7397
7398 2014-01-14  Pedro Alves  <palves@redhat.com>
7399             Tom Tromey  <tromey@redhat.com>
7400
7401         * infrun.c (use_displaced_stepping): Use find_record_target
7402         instead of RECORD_IS_USED.
7403         (adjust_pc_after_break): Use record_full_is_used instead of
7404         RECORD_IS_USED.
7405         * record-btrace.c (record_btrace_open): Call record_preopen
7406         instead of checking RECORD_IS_USED.
7407         * record-full.c (record_full_shortname)
7408         (record_full_core_shortname): New globals.
7409         (record_full_is_used): New function.
7410         (find_full_open): Call record_preopen instead of checking
7411         RECORD_IS_USED.
7412         (init_record_full_ops): Set the target's shortname to
7413         record_full_shortname.
7414         (init_record_full_core_ops): Set the target's shortname to
7415         record_full_core_shortname.
7416         * record-full.h (record_full_is_used): Declare.
7417         * record.c (find_record_target): Make extern.
7418         (record_preopen): New function.
7419         * record.h (RECORD_IS_USED): Delete macro.
7420         (find_record_target, record_preopen): Declare functions.
7421
7422 2014-01-14  Yao Qi  <yao@codesourcery.com>
7423
7424         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7425         'len''s type to ULONGEST.
7426         (core_xfer_shared_libraries_aix): Likewise.
7427         * gdbarch.c, gdbarch.h: Regenerated.
7428         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7429         Change type of 'len' to ULONGEST.
7430         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7431         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7432
7433 2014-01-14  Yao Qi  <yao@codesourcery.com>
7434
7435         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7436         type of 'len' to ULONGEST.
7437         (linux_xfer_osdata_processgroups): Likewise.
7438         (linux_xfer_osdata_threads): Likewise.
7439         (linux_xfer_osdata_fds): Likewise.
7440         (linux_xfer_osdata_isockets): Likewise.
7441         (linux_xfer_osdata_shm): Likewise.
7442         (linux_xfer_osdata_sem): Likewise.
7443         (linux_xfer_osdata_msg): Likewise.
7444         (linux_common_xfer_osdata): Likewise.
7445         (struct osdata_type) <getter>: Likewise.
7446         * common/linux-osdata.h (linux_common_xfer_osdata): Update
7447         the declaration.
7448
7449 2014-01-14  Yao Qi  <yao@codesourcery.com>
7450
7451         * target.h (target_xfer_partial_ftype): Update.
7452         (struct target_ops) <to_xfer_partial>: Change 'len' type to
7453         ULONGEST.
7454         * aix-thread.c (aix_thread_xfer_partial): Change type of
7455         argument 'len' to ULONGEST.
7456         * auxv.c (procfs_xfer_auxv): Likewise.
7457         (ld_so_xfer_auxv): Likewise.
7458         (memory_xfer_auxv): Likewise.
7459         * bfd-target.c (target_bfd_xfer_partial): Likewise.
7460         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7461         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7462         * corelow.c (core_xfer_partial): Likewise.
7463         * ctf.c (ctf_xfer_partial): Likewise.
7464         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
7465         '%u'.
7466         (darwin_read_dyld_info): Likewise.
7467         (darwin_xfer_partial): Likewise.
7468         * exec.c (section_table_xfer_memory_partial): Likewise.
7469         (exec_xfer_partial): Likewise.
7470         * exec.h (section_table_xfer_memory_partial): Update
7471         declaration.
7472         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
7473         instead of plongest.
7474         (gnu_xfer_partial): Likewise.
7475         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7476         (ia64_hpux_xfer_solib_got): Likewise.
7477         (ia64_hpux_xfer_partial): Likewise.
7478         * ia64-linux-nat.c (ia64_linux_xfer_partial):
7479         * inf-ptrace.c (inf_ptrace_xfer_partial):
7480         * inf-ttrace.c (inf_ttrace_xfer_partial):
7481         * linux-nat.c (linux_xfer_siginfo): Likewise.
7482         (linux_nat_xfer_partial): Likewise.
7483         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7484         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7485         * monitor.c (monitor_xfer_memory): Likewise.
7486         (monitor_xfer_partial): Likewise.
7487         * procfs.c (procfs_xfer_partial): Likewise.
7488         * record-full.c (record_full_xfer_partial): Likewise.
7489         (record_full_core_xfer_partial): Likewise.
7490         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
7491         instead of plongest.
7492         (gdbsim_xfer_partial): Likewise.
7493         * remote.c (remote_xfer_partial): Likewise.
7494         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7495         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7496         declaration.
7497         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7498         (rs6000_xfer_shared_libraries): Likewise.
7499         * sol-thread.c (sol_thread_xfer_partial): Likewise.
7500         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7501         (sparc_xfer_partial): Likewise.
7502         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7503         (spu_xfer_partial): Likewise.
7504         * spu-multiarch.c (spu_xfer_partial): Likewise.
7505         * target.c (target_read_live_memory): Likewise.
7506         (memory_xfer_live_readonly_partial): Likewise.
7507         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7508         (target_xfer_partial, default_xfer_partial): Likewise.
7509         (current_xfer_partial): Likewise.
7510         * tracepoint.c (tfile_xfer_partial): Likewise.
7511         * windows-nat.c (windows_xfer_memory): Likewise.  Call
7512         pulongest instead of plongest.
7513         (windows_xfer_partial): Likewise.
7514         (windows_xfer_shared_libraries): Likewise.
7515
7516 2014-01-14  Yao Qi  <yao@codesourcery.com>
7517
7518         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7519         target_xfer_partial_ftype.
7520
7521 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
7522
7523         PR python/15464
7524         PR python/16113
7525         * valops.c (value_struct_elt_bitpos): New function
7526         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7527         object to 'None' if the field name is an empty string ("").
7528         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7529         attribute to look for a field when 'name' is 'None'.
7530         (get_field_type): New function
7531
7532 2014-01-13  Doug Evans  <dje@google.com>
7533
7534         PR symtab/16426
7535         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7536         (try_open_dwop_file): Ditto.
7537         * gdb_bfd.c: #include "vec.h".
7538         (bfdp): New typedef.
7539         (struct gdb_bfd_data): New member included_bfds.
7540         (gdb_bfd_unref): Unref all included bfds.
7541         (gdb_bfd_record_inclusion): New function.
7542         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7543
7544 2014-01-13  Tom Tromey  <tromey@redhat.com>
7545
7546         * gdbcore.h (deprecated_core_resize_section_table): Remove.
7547
7548 2014-01-13  Tom Tromey  <tromey@redhat.com>
7549
7550         * defs.h (use_windows): Remove.
7551         * gdb.c (main): Update.
7552         * main.c (captured_main, gdb_main): Update.
7553         * main.h (struct captured_main_args) <use_windows>: Remove.
7554         * top.c (use_windows): Remove.
7555
7556 2014-01-13  Tom Tromey  <tromey@redhat.com>
7557
7558         * defs.h (deprecated_flush_hook): Remove.
7559
7560 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7561
7562         PR threads/16216
7563         * linux-thread-db.c (try_thread_db_load): Add parameter
7564         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
7565         (try_thread_db_load_from_pdir_1): Move it there from here.
7566         (try_thread_db_load_from_sdir): Update caller.
7567         (try_thread_db_load_from_dir): Move it there from here.
7568
7569 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
7570
7571         * regformats/regdat.sh: Always rewrite the register file.
7572
7573 2014-01-13  Pedro Alves  <palves@redhat.com>
7574
7575         * Makefile.in (CHECK_HEADERS): New variable.
7576         (check-headers:): New rule.
7577
7578 2014-01-13  Tom Tromey  <tromey@redhat.com>
7579
7580         * cli/cli-setshow.c (do_set_command): Update.
7581         * defs.h (deprecated_set_hook): Remove.
7582         * top.c (deprecated_set_hook): Remove.
7583
7584 2014-01-13  Pedro Alves  <palves@redhat.com>
7585
7586         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7587         the tracepoint if the PC is a pseudo-register.
7588
7589 2014-01-13  Tom Tromey  <tromey@redhat.com>
7590
7591         * defs.h (XCALLOC): Remove.
7592         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7593         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7594         * dwarf2loc.c (allocate_piece_closure): Likewise.
7595         * elfread.c (elf_symfile_segments): Likewise.
7596         (elf_symfile_segments): Likewise.
7597         * gdbtypes.c (copy_type_recursive): Likewise.
7598         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7599         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7600         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7601         XCALLOC.
7602         * mt-tdep.c (mt_gdbarch_init): Likewise.
7603         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7604         XCALLOC.
7605         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7606         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7607         * registry.c (registry_alloc_data): Likewise.
7608         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7609         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7610         * serial.c (serial_fdopen_ops): Likewise.
7611         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7612         XCALLOC.
7613         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7614         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7615         not XCALLOC.
7616
7617 2014-01-13  Tom Tromey  <tromey@redhat.com>
7618
7619         * defs.h (XMALLOC): Remove.
7620         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7621         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7622         * cli-out.c (struct ui_out *): Likewise.
7623         * cli/cli-dump.c (add_dump_command): Likewise.
7624         (add_dump_command): Likewise.
7625         * complaints.c (get_complaints): Likewise.
7626         (find_complaint): Likewise.
7627         * dwarf2-frame.c (execute_cfa_program): Likewise.
7628         * dwarf2read.c (abbrev_table_read_table): Likewise.
7629         * gdbarch.sh: Likewise.
7630         * gdbarch.c: Rebuild.
7631         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7632         * interps.c (interp_new): Likewise.
7633         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7634         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7635         * mi/mi-console.c (mi_console_file_new): Likewise.
7636         * mi/mi-interp.c (mi_interpreter_init): Likewise.
7637         * mi/mi-out.c (mi_out_new): Likewise.
7638         * mi/mi-parse.c (mi_parse): Likewise.
7639         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7640         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7641         * observer.c (xalloc_observer_list_node): Likewise.
7642         * regcache.c (regcache_xmalloc_1): Likewise.
7643         * reggroups.c (reggroup_new): Likewise.
7644         (_initialize_reggroup): Likewise.
7645         * registry.c (register_data_with_cleanup): Likewise.
7646         * remote.c (remote_notif_stop_alloc_reply): Likewise.
7647         * ser-base.c (serial_ttystate): Likewise.
7648         * ser-mingw.c (make_pipe_state): Likewise.
7649         * ser-pipe.c (pipe_open): Likewise.
7650         * serial.c (serial_open): Likewise.
7651         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7652         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7653         (tui_alloc_win_info): Likewise.
7654         (tui_add_content_elements): Likewise.
7655         * tui/tui-file.c (tui_file_new): Likewise.
7656         * tui/tui-out.c (tui_out_new): Likewise.
7657         * ui-file.c (mem_file_new): Likewise.
7658         * ui-out.c (push_level): Likewise.
7659         (make_cleanup_ui_out_end): Likewise.
7660         (append_header_to_list): Likewise.
7661         (ui_out_new): Likewise.
7662         * user-regs.c (user_reg_add_builtin): Likewise.
7663
7664 2014-01-13  Tom Tromey  <tromey@redhat.com>
7665
7666         * defs.h (XZALLOC): Remove.
7667         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7668         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7669         (get_ada_tasks_inferior_data): Likewise.
7670         * auto-load.c (get_auto_load_pspace_data): Likewise.
7671         * auxv.c (get_auxv_inferior_data): Likewise.
7672         * bfd-target.c (target_bfd_reopen): Likewise.
7673         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7674         (deprecated_insert_raw_breakpoint): Likewise.
7675         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7676         * corelow.c (core_open): Likewise.
7677         * darwin-nat.c (darwin_check_new_threads): Likewise.
7678         (darwin_attach_pid): Likewise.
7679         * dummy-frame.c (dummy_frame_push): Likewise.
7680         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7681         * dwarf2loc.c (allocate_piece_closure): Likewise.
7682         * elfread.c (elf_symfile_segments): Likewise.
7683         * eval.c (ptrmath_type_p): Likewise.
7684         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7685         * gdbtypes.c (alloc_type_arch): Likewise.
7686         (alloc_type_instance): Likewise.
7687         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7688         * inf-child.c (inf_child_can_use_agent): Likewise.
7689         * inflow.c (get_inflow_inferior_data): Likewise.
7690         * infrun.c (save_infcall_suspend_state): Likewise.
7691         * jit.c (jit_reader_load): Likewise.
7692         (get_jit_objfile_data): Likewise.
7693         (get_jit_program_space_data): Likewise.
7694         (jit_object_open_impl): Likewise.
7695         (jit_symtab_open_impl): Likewise.
7696         (jit_block_open_impl): Likewise.
7697         (jit_frame_sniffer): Likewise.
7698         * linux-fork.c (add_fork): Likewise.
7699         * maint.c (make_command_stats_cleanup): Likewise.
7700         * objfiles.c (get_objfile_pspace_data): Likewise.
7701         * opencl-lang.c (struct lval_closure): Likewise.
7702         * osdata.c (osdata_start_osdata): Likewise.
7703         * progspace.c (new_address_space): Likewise.
7704         (add_program_space): Likewise.
7705         * remote-sim.c (get_sim_inferior_data): Likewise.
7706         * sh-tdep.c (sh_gdbarch_init): Likewise.
7707         * skip.c (Ignore): Likewise.
7708         (skip_delete_command): Likewise.
7709         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7710         (library_list_start_library): Likewise.
7711         (solib_aix_current_sos): Likewise.
7712         * solib-darwin.c (get_darwin_info): Likewise.
7713         (darwin_current_sos): Likewise.
7714         * solib-dsbt.c (get_dsbt_info): Likewise.
7715         * solib-ia64-hpux.c (new_so_list): Likewise.
7716         (ia64_hpux_get_solib_linkage_addr): Likewise.
7717         * solib-spu.c (append_ocl_sos): Likewise.
7718         (spu_current_sos): Likewise.
7719         * solib-svr4.c (get_svr4_info): Likewise.
7720         (svr4_keep_data_in_core): Likewise.
7721         (library_list_start_library): Likewise.
7722         (svr4_default_sos): Likewise.
7723         (svr4_read_so_list): Likewise.
7724         * solib-target.c (library_list_start_library): Likewise.
7725         (solib_target_current_sos): Likewise.
7726         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7727         * symfile-debug.c (install_symfile_debug_logging): Likewise.
7728         * symfile.c (default_symfile_segments): Likewise.
7729         * target-descriptions.c (tdesc_data_init): Likewise.
7730         (tdesc_create_reg): Likewise.
7731         (struct tdesc_type *): Likewise.
7732         (tdesc_create_vector): Likewise.
7733         (tdesc_set_struct_size): Likewise.
7734         (struct tdesc_type *): Likewise.
7735         (tdesc_free_feature): Likewise.
7736         (tdesc_create_feature): Likewise.
7737         * windows-nat.c (windows_add_thread): Likewise.
7738         (windows_make_so): Likewise.
7739         * xml-support.c (gdb_xml_body_text): Likewise.
7740         (gdb_xml_create_parser_and_cleanup): Likewise.
7741         (xml_process_xincludes): Likewise.
7742         * xml-syscall.c (allocate_syscalls_info): Likewise.
7743         (syscall_create_syscall_desc): Likewise.
7744
7745 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
7746
7747         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7748         function, with code from i386_stap_parse_special_token.
7749         (i386_stap_parse_special_token_three_arg_disp): Likewise.
7750         (i386_stap_parse_special_token): Move code to the two functions
7751         above; simplify it.
7752
7753 2014-01-09  Pedro Alves  <palves@redhat.com>
7754             Hui Zhu  <hui@codesourcery.com>
7755
7756         PR gdb/16101
7757         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7758         bp_err_string.  Don't mark the location shlib_disabled if the
7759         error thrown wasn't a generic or memory error.  Catch errors
7760         thrown while inserting breakpoints in overlayed code.  Output
7761         error message of software breakpoints.
7762         * remote.c (remote_insert_breakpoint): If this breakpoint has
7763         target-side commands but this stub doesn't support Z0 packets,
7764         throw NOT_SUPPORTED_ERROR error.
7765         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7766         * target.h (target_insert_breakpoint): Extend comment.
7767         (target_insert_hw_breakpoint): Add comment.
7768
7769 2014-01-08  Pedro Alves  <palves@redhat.com>
7770
7771         * remote.c (remote_add_thread): Add threads silently if starting
7772         up.
7773         (remote_notice_new_inferior): If in all-stop, and starting up,
7774         don't call notice_new_inferior.
7775         (get_current_thread): New function, factored out from ...
7776         (add_current_inferior_and_thread): ... this.  Adjust.
7777         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
7778         found any thread, then select the remote's current thread as GDB's
7779         current thread too.
7780
7781 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
7782
7783         * NEWS: Create a new section for the next release branch.
7784         Rename the section of the current branch, now that it has
7785         been cut.
7786
7787 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
7788
7789         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7790         * version.in: Bump version to 7.7.50.DATE-cvs.
7791
7792 2014-01-08  Yao Qi  <yao@codesourcery.com>
7793
7794         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7795         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
7796         (spu_xfer_partial): Cast 'buf' to 'const char *'.
7797
7798 2014-01-08  Yao Qi  <yao@codesourcery.com>
7799
7800         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7801         return value of bfd_get_filename to symbol_file_add_from_bfd.
7802
7803 2014-01-08  Pierre Muller  <muller@sourceware.org>
7804
7805         Fix PR16201.
7806         * coff-pe-read.c (struct read_pe_section_data): Add index field.
7807         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7808         to prim_record_mininal_symbol_and_info.
7809         (add_pe_forwarded_sym): Use known section number of forwarded symbol
7810         in call to prim_record_minimal_symbol_and_info.
7811         (read_pe_exported_syms): Set index field of section_data.
7812
7813 2014-01-07  Andrew Pinski  <apinski@cavium.com>
7814
7815         * features/aarch64-core.xml (cpsr): Change to be 64bit.
7816         * features/aarch64.c: Regenerate.
7817
7818 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
7819
7820         * target.c (return_null): Define.
7821         (update_current_target): Use it instead of return_zero for
7822         functions that return a pointer.
7823
7824 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
7825
7826         * source.c (add_path): Fix check for duplicated paths in the previously
7827         included paths.
7828
7829 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
7830
7831         * ada-lang.c: Remove duplicated include statements.
7832         * alphabsd-nat.c: Ditto.
7833         * amd64-darwin-tdep.c: Ditto.
7834         * amd64fbsd-nat.c: Ditto.
7835         * auto-load.c: Ditto.
7836         * ax-gdb.c: Ditto.
7837         * breakpoint.c: Ditto.
7838         * dbxread.c: Ditto.
7839         * fork-child.c: Ditto.
7840         * gdb_usleep.c: Ditto.
7841         * i386-darwin-tdep.c: Ditto.
7842         * i386fbsd-nat.c: Ditto.
7843         * infcmd.c: Ditto.
7844         * inferior.c: Ditto.
7845         * jv-lang.c: Ditto.
7846         * linux-nat.c: Ditto.
7847         * linux-tdep.c: Ditto.
7848         * m68kbsd-nat.c: Ditto.
7849         * m68klinux-nat.c: Ditto.
7850         * microblaze-tdep.c: Ditto.
7851         * mips-linux-tdep.c: Ditto.
7852         * mn10300-tdep.c: Ditto.
7853         * nto-tdep.c: Ditto.
7854         * opencl-lang.c: Ditto.
7855         * osdata.c: Ditto.
7856         * printcmd.c: Ditto.
7857         * regcache.c: Ditto.
7858         * remote-m32r-sdi.c: Ditto.
7859         * remote.c: Ditto.
7860         * symfile.c: Ditto.
7861         * symtab.c: Ditto.
7862         * tilegx-linux-nat.c: Ditto.
7863         * tilegx-tdep.c: Ditto.
7864         * tracepoint.c: Ditto.
7865         * valops.c: Ditto.
7866         * vaxbsd-nat.c: Ditto.
7867         * windows-nat.c: Ditto.
7868         * xtensa-tdep.c: Ditto.
7869
7870 2014-01-07  Yao Qi  <yao@codesourcery.com>
7871
7872         * spu-linux-nat.c (_initialize_spu_nat): Declare.
7873
7874 2014-01-07  Yao Qi  <yao@codesourcery.com>
7875             Joel Brobecker  <brobecker@adacore.com>
7876
7877         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7878         (pdc_write_regs): Likewise.
7879         (fetch_regs_kernel_thread): Likewise.
7880         (store_regs_kernel_thread): Likewise.
7881
7882 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7883
7884         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7885         tagged type objects to their actual type.
7886
7887 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7888
7889         * ada-valprint.c (print_field_values): Add "language" parameter.
7890         Update calls to print_field_values and print_variant_part.
7891         Pass new parameter "language" in call to val_print instead
7892         of "current_language".  Replace call to ada_val_print by call
7893         to val_print.
7894         (print_variant_part): Add "language" parameter.
7895         (ada_val_print_struct_union): Update call to print_field_values.
7896
7897 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7898
7899         * ada-valprint.c (ui_memcpy): Delete.
7900         (ada_print_floating): Update documentation.  Add empty line
7901         between between function documentation and implementation.
7902         Delete variable "buffer".  Use ui_file_xstrdup in place of
7903         ui_file_put.  Minor adjustments following this change.
7904
7905 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7906
7907         * ada-valprint.c (ada_val_print_string): New function,
7908         extracted from ada_val_print_array.
7909         (ada_val_print_array): Replace extracted code by call
7910         to ada_val_print_string followed by a return.  Move
7911         "else" branch to the function's top block.
7912
7913 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7914
7915         * ada-valprint.c (ada_val_print_array): Move implementation
7916         down.  Rename parameter "offset" and "val" into "offset_aligned"
7917         and "original_value" respectively.  Add parameter "offset".
7918
7919 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7920
7921         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7922         re-organizing the code. Change the "???" message printed
7923         when target type is a TYPE_CODE_UNDEF into
7924         "<ref to undefined type>".
7925
7926 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7927
7928         * ada-valprint.c (print_record): Delete, implementation inlined...
7929         (ada_val_print_struct_union): ... here.  Remove call to
7930         ada_check_typedef in inlined implementation.
7931
7932 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7933
7934         * ada-valprint.c (ada_val_print_gnat_array): New function,
7935         extracted from ada_val_print_1;
7936         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7937         (ada_val_print_flt, ada_val_print_struct_union)
7938         (ada_val_print_ref): Likewise.
7939         (ada_val_print_1): Delete variables i and elttype.
7940         Replace extracted-out code by call to corresponding
7941         new functions.
7942
7943 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7944
7945         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7946
7947 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7948
7949         * ada-valprint.c (ada_val_print_1): Replace calls to
7950         ada_val_print_1 by calls to val_print.
7951
7952 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7953
7954         * ada-valprint.c (ada_val_print_1): Add parameter "language".
7955         Update calls to self accordingly.  Replace calls to c_val_print
7956         by calls to val_print.
7957
7958 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7959
7960         * ada-valprint.c (print_record): Delete declaration.
7961         (adjust_type_signedness, ada_val_print_1): Likewise.
7962         (ada_val_print): Move function implementation down.
7963         (print_variant_part, print_field_values, print_record):
7964         Move function implementation up.
7965
7966 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
7967
7968         * python/py-type.c (typy_get_name): New function.
7969         (type_object_getset): Add entry for attribute "name".
7970         * NEWS: Add entry mentioning this new attribute.
7971
7972 2014-01-07  Yao Qi  <yao@codesourcery.com>
7973
7974         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7975         statement.
7976
7977 2014-01-07  Yao Qi  <yao@codesourcery.com>
7978
7979         * gnu-nat.c (info_port_rights): Add qualifier const to
7980         argument args.
7981
7982 2014-01-07  Yao Qi  <yao@codesourcery.com>
7983
7984         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7985
7986 2014-01-07  Yao Qi  <yao@codesourcery.com>
7987
7988         * gnu-nat.c (make_inf) Update declaration.
7989         (make_inf): Make it static.
7990         (inf_set_traced): Likewise.
7991         (inf_port_to_thread, inf_task_died_status): Likewise.
7992
7993 2014-01-07  Yao Qi  <yao@codesourcery.com>
7994
7995         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7996
7997 2014-01-07  Yao Qi  <yao@codesourcery.com>
7998
7999         * gnu-nat.c (_initialize_gnu_nat): Declare.
8000
8001 2014-01-07  Yao Qi  <yao@codesourcery.com>
8002
8003         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8004         'enum bfd_endian'.
8005         (struct gdbarch_info) <byte_order>: Change type to
8006         'enum bfd_endian'.
8007         <byte_order_for_code>: Likewise.
8008         * gdbarch.c, gdbarch.h: Regenerated.
8009
8010 2014-01-06  Sasha Smundak  <asmundak@google.com>
8011
8012         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8013
8014 2014-01-06  Tom Tromey  <tromey@redhat.com>
8015
8016         * doublest.c (convert_doublest_to_floatformat): Use const, not
8017         CONST.
8018         * somread.c (som_symtab_read): Likewise.
8019
8020 2014-01-07  Hui Zhu  <hui@codesourcery.com>
8021
8022         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8023         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8024         (gdb_bfd_fopen): Ditto.
8025         (gdb_bfd_openr): Ditto.
8026         (gdb_bfd_openw): Ditto.
8027         (gdb_bfd_openr_iovec): Ditto.
8028         (gdb_bfd_fdopenr): Ditto.
8029         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8030         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8031         with xstrdup.
8032         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8033         with xstrdup.
8034         * symfile-mem.c (symbol_file_add_from_memory): Removed
8035         gdb_bfd_stash_filename.
8036
8037 2014-01-03  Doug Evans  <dje@google.com>
8038
8039         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8040         output.
8041
8042 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
8043
8044         Update year range in copyright notice of all files.
8045
8046 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
8047
8048         * top.c (print_gdb_version): Set copyright year to 2014.
8049
8050 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
8051
8052         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8053
8054 For older changes see ChangeLog-2013.
8055 \f
8056 Local Variables:
8057 mode: change-log
8058 left-margin: 8
8059 fill-column: 74
8060 version-control: never
8061 coding: utf-8
8062 End: