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