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