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