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