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