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