1 2014-05-21 Pedro Alves <palves@redhat.com>
4 * gdbthread.h (struct thread_control_state): New field
6 * infrun.c (follow_fork): Copy the new thread control field to the
8 (clear_proceed_status_thread): Clear the new thread control field.
9 (proceed): Set the new thread control field.
10 * interps.h (command_interp): Declare.
11 * interps.c (command_interpreter): New global.
12 (command_interp): New function.
13 (interp_exec): Set `command_interpreter' while here.
14 * cli-out.c (cli_uiout_dtor): New function.
15 (cli_ui_out_impl): Install it.
16 * mi/mi-interp.c: Include cli-out.h.
17 (mi_cmd_interpreter_exec): Add comment.
18 (restore_current_uiout_cleanup): New function.
19 (ui_out_free_cleanup): New function.
20 (mi_on_normal_stop): If finishing an execution command started by
21 a CLI command, or any kind of breakpoint-like event triggered,
22 print the stop event to the output (CLI) stream.
23 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
25 2014-05-21 Pedro Alves <palves@redhat.com>
27 * cli/cli-cmds.c (list_command): Handle the first "list" after the
28 current source line having changed.
29 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
30 * infrun.c (normal_stop): Adjust call to
31 set_current_sal_from_frame.
32 * source.c (clear_lines_listed_range): New function.
33 (set_current_source_symtab_and_line, identify_source_line): Clear
34 the lines listed range.
35 (line_info): Handle the first "info line" after the current source
37 * stack.c (print_stack_frame): Remove center handling.
38 (set_current_sal_from_frame): Remove 'center' parameter. Don't
41 2014-05-21 Pedro Alves <palves@redhat.com>
43 * inf-child.c (inf_child_mourn_inferior): New function.
44 * inf-child.h (inf_child_mourn_inferior): New declaration.
45 * darwin-nat.c (darwin_mourn_inferior): Use
46 inf_child_mourn_inferior.
47 * gnu-nat.c (gnu_mourn_inferior): Likewise.
48 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
49 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
50 * nto-procfs.c (procfs_mourn_inferior): Likewise.
51 * windows-nat.c (windows_mourn_inferior): Likewise.
53 2014-05-21 Doug Evans <xdje42@gmail.com>
55 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
57 2014-05-21 Doug Evans <xdje42@gmail.com>
59 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result is void.
60 (gdbscm_out_of_range_error): Ditto.
61 (gdbscm_memory_error): Ditto.
62 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
63 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
64 (gdbscm_out_of_range_error): Update.
65 (gdbscm_memory_error): Update.
66 (gdbscm_scm_to_target_string_unsafe): Delete.
68 2014-05-21 Pedro Alves <palves@redhat.com>
70 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
72 (inf_child_open_target): New function.
73 (inf_child_open): Use inf_child_open_target to push the target
74 instead of erroring out.
75 (inf_child_disconnect, inf_child_close)
76 (inf_child_maybe_unpush_target): New functions.
77 (inf_child_target): Install inf_child_disconnect and
78 inf_child_close. Store a pointer to the returned object.
79 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
81 * target.c (auto_connect_native_target): New global.
82 (show_default_run_target): New function.
83 (find_default_run_target): Return NULL if automatically connecting
84 to the native target is disabled.
85 (_initialize_target): Install set/show auto-connect-native-target.
86 * NEWS: Mention "set auto-connect-native-target", and "target
88 * linux-nat.c (super_close): New global.
89 (linux_nat_close): Call super_close.
90 (linux_nat_add_target): Store a pointer to the base class's
92 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
93 inf_child_maybe_unpush.
94 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
96 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
97 the inferior. Use inf_child_maybe_unpush_target.
98 (inf_ttrace_attach): Don't push the target if it is already
100 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
101 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
102 after mourning the inferior. Use inf_child_maybe_unpush_target.
103 (darwin_attach_pid): Don't push the target if it is already
105 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
106 mourning the inferior. Use inf_child_maybe_unpush_target.
107 (gnu_detach): Use inf_child_maybe_unpush_target.
108 * go32-nat.c (go32_create_inferior): Don't push the target if it
110 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
111 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
112 (procfs_open): Rename to ...
113 (procfs_open_1): ... this. Add target_ops parameter. Adjust
114 comments. Can target_preopen before changing node. Call
115 inf_child_open_target to push the target explicitly.
116 (procfs_attach): Don't push the target if it is already pushed.
117 (procfs_detach): Use inf_child_maybe_unpush_target.
118 (procfs_create_inferior): Don't push the target if it is already
120 (nto_native_ops): New global.
121 (procfs_open): Reimplement.
122 (procfs_native_open): New function.
123 (init_procfs_targets): Install procfs_native_open as to_open of
124 "target native". Store a pointer to the "native" target in
126 * procfs.c (procfs_attach): Don't push the target if it is already
128 (procfs_detach): Use inf_child_maybe_unpush_target.
129 (procfs_mourn_inferior): Only unpush the target after mourning the
130 inferior. Use inf_child_maybe_unpush_target.
131 (procfs_init_inferior): Don't push the target if it is already
133 * windows-nat.c (do_initial_windows_stuff): Don't push the target
134 if it is already pushed.
136 2014-05-21 Pedro Alves <palves@redhat.com>
138 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
139 and "procfs" targets are now called "native" instead.
141 2014-05-21 Pedro Alves <palves@redhat.com>
143 * go32-nat.c (go32_open): Delete.
144 (go32_target): Don't override the to_open method.
146 2014-05-21 Pedro Alves <palves@redhat.com>
148 * nto-procfs.c (procfs_can_run): New function.
149 (nto_procfs_ops): New global.
150 (init_procfs_targets): New, based on procfs_target. Install
151 "target native" in addition to "target procfs".
152 (_initialize_procfs): Call init_procfs_targets instead of adding
155 2014-05-21 Pedro Alves <palves@redhat.com>
157 * windows-nat.c (windows_target): Don't override to_shortname,
158 to_longname or to_doc.
160 2014-05-21 Pedro Alves <palves@redhat.com>
162 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
165 2014-05-21 Pedro Alves <palves@redhat.com>
167 * darwin-nat.c (_initialize_darwin_inferior): Don't override
168 to_shortname, to_longname or to_doc.
170 2014-05-21 Pedro Alves <palves@redhat.com>
172 * go32-nat.c (go32_target): Don't override to_shortname,
173 to_longname or to_doc.
175 2014-05-21 Pedro Alves <palves@redhat.com>
177 * inf-child.c (inf_child_open): Remove mention of "child".
178 (inf_child_target): Rename target to "native" instead of "child".
180 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
182 * Makefile.in (SFILES): Delete "regset.c".
183 (COMMON_OBS): Delete "regset.o".
185 * regset.h (regset_alloc): Delete prototype.
187 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
189 * sparc-linux-tdep.c (sparc32_linux_gregset)
190 (sparc32_linux_fpregset): New static regset structures.
191 (sparc32_linux_init_abi): Drop dynamic regset allocations.
192 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
194 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
195 (sparc64_linux_fpregset): New static regset structures.
196 (sparc64_linux_init_abi): Drop dynamic regset allocations.
197 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
198 New static regset structures.
199 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
200 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
201 New static regset structures.
202 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
203 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
204 New static regset structures.
205 (sparc64obsd_init_abi): Drop dynamic regset allocations.
206 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
207 New static regset structures.
208 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
210 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
212 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
213 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
214 register maps ("regmaps") from "*regset" to "*regmap". Do this
215 for all regmap types and variables.
216 * sparc-linux-tdep.c (sparc32_linux_step_trap)
217 (sparc32_linux_supply_core_gregset)
218 (sparc32_linux_collect_core_gregset)
219 (sparc32_linux_supply_core_fpregset)
220 (sparc32_linux_collect_core_fpregset): Likewise.
221 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
222 (sparc_gregmap, sparc_fpregmap): ... these.
223 (sparc_supply_gregset, sparc_collect_gregset)
224 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
225 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
226 (_initialize_sparc_nat): Rename regmaps.
227 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
228 (sparc_gregmap, sparc_fpregmap): ... these.
229 (sparc_supply_gregset, sparc_collect_gregset)
230 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
231 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
233 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
234 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
236 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
238 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
239 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
240 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
242 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
243 (sparc32_bsd_fpregset): Rename to...
244 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
245 (sparc32_bsd_fpregmap): ... these.
246 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
247 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
248 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
249 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
250 (struct sparc_gregmap, struct sparc_fpregmap)
251 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
252 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
253 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
254 (sparc32_supply_regset, sparc32_collect_gregset)
255 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
257 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
258 (sparc64_linux_ptrace_gregmap): ... this.
259 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
260 (_initialize_sparc64_linux_nat): Rename regmaps.
261 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
262 (sparc64_linux_core_gregmap): ... this.
263 (sparc64_linux_supply_core_gregset)
264 (sparc64_linux_collect_core_gregset)
265 (sparc64_linux_supply_core_fpregset)
266 (sparc64_linux_collect_core_fpregset): Rename regmaps.
267 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
268 (sparc64_sol2_fpregset): Rename to...
269 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
270 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
271 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
273 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
274 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
275 (sparc64_bsd_fpregset): Rename to...
276 (struct sparc_gregmap, sparc64_sol2_gregmap)
277 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
278 (sparc64_bsd_fpregmap): ... these.
279 (sparc64_supply_gregset, sparc64_collect_gregset)
280 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
282 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
283 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
284 (sparc64fbsd_gregmap): ... this.
285 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
286 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
288 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
289 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
290 (sparc64nbsd_collect_fpregset): Likewise.
291 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
292 (sparc64nbsd_gregmap): ... this.
293 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
295 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
296 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
297 (sparc64obsd_gregmap): ... this.
298 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
300 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
301 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
302 (sparc32nbsd_gregmap): ... this.
303 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
306 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
308 * score-tdep.c (score7_linux_gregset): New static regset
310 (score7_linux_regset_from_core_section): Remove dynamic regset
312 (score_gdbarch_init): Drop allocation of tdep structure.
313 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
315 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
317 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
319 (am33_regset_from_core_section): Remove dynamic regset
322 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
324 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
325 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
327 (mips_linux_regset_from_core_section): Remove dynamic regset
329 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
330 'gregset64', 'fpregset', and 'fpregset64'.
331 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
334 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
336 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
338 (amd64_regset_from_core_section): Remove dynamic regset
340 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
342 (amd64obsd_regset_from_core_section): Remove dynamic regset
344 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
346 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
347 x86-common regset supply function.
348 * i386-tdep.c (i386_collect_gregset): Make static.
349 (i386_gregset): New global regset structure.
350 (i386_fpregset, i386_xstateregset): New static regset structures.
351 (i386_regset_from_core_section): Remove dynamic regset
353 (i386_gdbarch_init): Remove initialization of tdep fields
354 'gregset', 'fpregset', and 'xstateregset'.
355 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
356 'fpregset', and 'xstateregset'.
357 (i386_collect_gregset): Remove prototype.
358 (i386_gregset): New declaration.
359 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
361 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
364 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
366 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
367 (arm_linux_vfpregset): New static regset structures.
368 (arm_linux_regset_from_core_section): Remove dynamic allocation of
370 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
371 and 'vfpregset' fields.
373 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
375 * aarch64-linux-tdep.c (aarch64_linux_gregset)
376 (aarch64_linux_fpregset): New static regset structures.
377 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
378 of regset structures.
379 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
382 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
384 * regset.h (struct regset): Remove gdbarch field.
385 * regset.c (regset_alloc): Drop initialization of gdbarch field.
386 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
387 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
389 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
390 (ppc32_linux_fpregset, ppc32_linux_vrregset)
391 (ppc32_linux_vsxregset): Likewise.
392 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
393 via the regcache instead of the regset.
394 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
395 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
396 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
397 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
402 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
404 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
405 (alphanbsd_aout_gregset): Likewise.
406 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
407 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
409 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
410 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
412 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
413 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
414 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
415 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
416 * m88k-tdep.c (m88k_gregset): Likewise.
417 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
418 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
419 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
420 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
421 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
422 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
423 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
424 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
425 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
427 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
428 * sh-tdep.h (sh_corefile_gregset): Likewise.
429 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
430 * vax-tdep.c (vax_gregset): Likewise.
432 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
434 Fix TLS access for -static -pthread.
435 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
436 (try_thread_db_load_1): Initialize it.
437 (thread_db_get_thread_local_address): Call it if LM is zero.
438 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
439 * target.h (struct target_ops) (to_get_thread_local_address): Add
440 load_module_addr comment.
442 2014-05-21 Pedro Alves <palves@redhat.com>
444 * dcache.c (dcache_read_memory_partial): If reading the cache line
445 fails, fallback to reading just the memory the caller wanted.
447 2014-05-20 Doug Evans <dje@google.com>
449 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
450 instead of get_current_arch.
452 2014-05-20 Pedro Alves <palves@redhat.com>
454 * NEWS: Mention that compare-sections now works with all targets.
456 * remote.c (PACKET_qCRC): New enum value.
457 (remote_verify_memory): Don't send qCRC if the target has no
458 execution. Use packet_support/packet_ok. If the target doesn't
459 support the qCRC packet, fallback to a deep memory copy.
460 (compare_sections_command): Say "target image" instead of "remote
462 (_initialize_remote): Add PACKET_qCRC to the list of config
463 packets that have no associated command. Extend comment.
464 * target.c (simple_verify_memory, default_verify_memory): New
466 * target.h (struct target_ops) <to_verify_memory>: Default to
467 default_verify_memory.
468 (simple_verify_memory): New declaration.
469 * target-delegates.c: Regenerate.
471 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
473 * record-btrace.c (record_btrace_step_thread): Check for empty history.
475 2014-05-20 Hui Zhu <hui@codesourcery.com>
476 Yao Qi <yao@codesourcery.com>
479 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
480 and change address of sp and pc.
482 2014-05-19 Tom Tromey <tromey@redhat.com>
484 * gdbtypes.c (rank_function): Use XNEWVEC.
485 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
487 2014-05-19 Doug Evans <dje@google.com>
489 * dwarf2read.c (build_type_psymtabs_1): Renamed from
490 build_type_unit_groups and moved closer to only caller. Remove
491 arguments. All references updated. Remove outdated .gdb_index
493 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
494 build_type_psymtabs_1.
496 2014-05-19 Doug Evans <dje@google.com>
498 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
499 n_type_unit_groups, all_type_unit_groups. All uses removed.
500 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
501 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
502 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
503 (add_type_unit_group_to_table): Delete.
505 2014-05-19 Doug Evans <dje@google.com>
507 * eval.c (evaluate_subexp_standard): Add some comments.
509 2014-05-17 Doug Evans <xdje42@gmail.com>
511 * progspace.c (remove_program_space): Delete, unused.
512 * progspace.h (remove_program_space): Ditto.
514 2014-05-17 Doug Evans <xdje42@gmail.com>
516 * inferior.c (prune_inferiors): Fix comment.
517 (remove_inferior_command): Call prune_program_spaces.
519 2014-05-16 Doug Evans <dje@google.com>
521 New command line option -D.
523 * main.c (set_gdb_data_directory): New function.
524 (captured_main): Recognize -D. Flag error for --data-directory "".
525 Call set_gdb_data_directory.
526 (print_gdb_help): Print --data-directory, -D.
527 * main.h (set_gdb_data_directory): Declare.
528 * top.c (staged_gdb_datadir): New static global.
529 (set_gdb_datadir): Call set_gdb_data_directory
530 (show_gdb_datadir): New function.
531 (init_main): Update init of data-directory parameter.
533 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
535 Import the "dirfd" gnulib module.
536 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
537 * gnulib/aclocal.m4: Update.
538 * gnulib/config.in: Update.
539 * gnulib/configure: Update.
540 * gnulib/import/Makefile.am: Update.
541 * gnulib/import/Makefile.in: Update.
542 * gnulib/import/dirfd.c: New.
543 * gnulib/import/m4/dirfd.m4: New.
544 * gnulib/import/m4/gnulib-cache.m4: Update.
545 * gnulib/import/m4/gnulib-comp.m4: Update.
547 2014-05-16 Pierre Muller <muller@sourceware.org>
548 Yao Qi <yao@codesourcery.com>
550 * valprint.c (print_wchar): Move the code on checking whether
551 W is a printable wide char to the default branch of switch
552 statement below. Call wchar_printable instead of gdb_iswprint.
554 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
556 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
557 ldr.w and ldrd instructions.
559 2014-05-15 Doug Evans <dje@google.com>
561 * dwarf2read.c (read_structure_type): Delete outdated comments.
563 2014-05-14 Tom Tromey <tromey@redhat.com>
565 * macrocmd.c (print_macro_definition): Reindent.
567 2014-05-13 Doug Evans <xdje42@gmail.com>
569 * python/py-cmd.c (cmdpy_completer): Add comment.
570 (completers): Make const.
572 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
574 * infrun.c (resume): Remove should_resume (unused). Move up
575 declaration of resume_ptid.
577 2014-05-13 Tom Tromey <tromey@redhat.com>
579 * language.h (unop_type_check): Remove.
580 (binop_type_check): Don't declare.
582 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
584 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
585 call to regcache_raw_collect.
587 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
589 * mi/mi-console.c (mi_console_raw_packet): Use the value from
590 mi_console->quote as the quoting character.
592 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
594 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
596 2014-04-29 Tom Tromey <tromey@redhat.com>
598 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
601 2014-05-07 Kyle McMartin <kyle@redhat.com>
603 Pushed by Joel Brobecker <brobecker@adacore.com>.
604 * aarch64-tdep.c (aarch64_software_single_step): New function.
605 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
606 with aarch64_software_single_step.
608 2014-05-05 Joel Brobecker <brobecker@adacore.com>
612 2014-05-05 Keith Seitz <keiths@redhat.com>
614 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
615 variable or history value is successfully parsed.
617 2014-05-05 Yao Qi <yao@codesourcery.com>
618 Pedro Alves <palves@redhat.com>
620 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
621 address of blocks that intersects the requested range. Trim
622 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
624 * ctf.c (ctf_xfer_partial): Likewise.
626 2014-05-05 Yao Qi <yao@codesourcery.com>
628 * printcmd.c (display_command): Remove the check to
629 target_has_execution.
631 2014-05-03 Mark Kettenis <kettenis@gnu.org>
633 * ppcobsd-nat.c: Include "obsd-nat.h".
634 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
636 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
638 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
640 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
641 and 16-bit signed and unsigned arguments. Update comment.
642 (stap_parse_probe_arguments): Extend code to handle such
643 arguments. Use warning instead of complaint to notify about
644 unrecognized bitness.
646 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
649 * stap-probe.c (stap_parse_probe_arguments): Simplify
650 check for non-prefixed probes (i.e., probes whose
651 arguments do not start with "N@"). Always set the
652 argument type to a sane value.
654 2014-05-01 David Taylor <dtaylor@emc.com>
656 * remote.c (compare_sections_command): Add -r option to compare
657 all loadable read-only sections.
659 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
661 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
662 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
664 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
665 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
666 Remove unused CORE_ADDR argument. Update all callers.
668 2014-04-29 Pedro Alves <palves@redhat.com>
670 * remote.c (struct packet_config) <detect>: Extend comment.
671 (add_packet_config_cmd): Don't set the config's detect or support
673 (init_all_packet_configs): Also initialize the config's 'detect'
675 (reset_all_packet_configs_support): New function.
676 (remote_open_1): Call reset_all_packet_configs_support instead of
677 init_all_packet_configs.
678 (_initialize_remote): Initialize all packet configs. Assert that
679 all packets have an associated command, except a few known
682 2014-04-28 Joel Brobecker <brobecker@adacore.com>
684 * dwarf2read.c (read_subrange_type): Handle dynamic
685 DW_AT_lower_bound attributes.
687 2014-04-28 Joel Brobecker <brobecker@adacore.com>
689 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
690 dynamic bounds before computing its upper bound.
691 (ada_discrete_type_low_bound): Same as above with the lower bound.
693 2014-04-28 Joel Brobecker <brobecker@adacore.com>
695 * dwarf2read.c (is_dynamic_type): Return true for dynamic
696 range types. Adjust the array handling implementation to
697 take advantage of this change.
698 (resolve_dynamic_range): New function, mostly extracted from
699 resolve_dynamic_bounds.
700 (resolve_dynamic_array): New function, mostly extracted from
701 resolve_dynamic_bounds.
702 (resolve_dynamic_bounds): Delete.
703 (resolve_dynamic_type): Reimplement. Add handling of
704 TYPE_CODE_RANGE types.
706 2014-04-28 Joel Brobecker <brobecker@adacore.com>
708 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
709 handling of parallel ___XA types.
711 2014-04-28 Joel Brobecker <brobecker@adacore.com>
713 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
714 unnecessary second call to static_unwrap_type.
716 2014-04-27 Hui Zhu <hui@codesourcery.com>
718 * stack.c (print_frame_info): Call do_gdb_disassembly with
719 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
721 2014-04-26 Doug Evans <xdje42@gmail.com>
723 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
725 2014-04-25 Pedro Alves <palves@redhat.com>
728 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
729 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
730 and newline from built string.
731 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
732 (linux_ptrace_attach_fail_reason): ... this.
733 * linux-nat.c (linux_nat_attach): Adjust to use
734 linux_ptrace_attach_fail_reason.
736 2014-04-25 Pedro Alves <palves@redhat.com>
738 * remote.c (struct remote_state): Remove multi_process_aware,
739 non_stop_aware, cond_tracepoints, cond_breakpoints,
740 breakpoint_commands, fast_tracepoints, static_tracepoints,
741 install_in_trace, disconnected_tracing,
742 enable_disable_tracepoints, string_tracing, and
743 augmented_libraries_svr4_read fields.
744 (remote_multi_process_p): Move further below in the file.
745 (struct packet_config): Add comments.
746 (update_packet_config): Delete function.
747 (show_packet_config_cmd): Use packet_config_support.
748 (add_packet_config_cmd): Use NULL as set callback.
749 (packet_ok): "set remote foo-packet"-style commands no longer
750 change config->supported -- adjust.
751 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
752 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
753 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
754 (PACKET_QNonStop, PACKET_multiprocess_feature)
755 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
756 (PACKET_DisconnectedTracing_feature)
757 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
758 (set_remote_protocol_packet_cmd): Delete function.
759 (packet_config_support, packet_support): New functions.
760 (set_remote_protocol_Z_packet_cmd): Don't call
761 update_packet_config.
762 (remote_query_attached, remote_pass_signals)
763 (remote_program_signals, remote_threads_info)
764 (remote_threads_extra_info, remote_start_remote): Use
766 (remote_start_remote): Use packet_config_support and
768 (init_all_packet_configs): Set all packets to unknown support,
769 instead of calling update_packet_config.
770 (remote_check_symbols): Use packet_support.
771 (remote_supported_packet): Unconditionally set the packet config's
773 (remote_multi_process_feature, remote_non_stop_feature)
774 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
775 (remote_breakpoint_commands_feature)
776 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
777 (remote_install_in_trace_feature)
778 (remote_disconnected_tracing_feature)
779 (remote_enable_disable_tracepoint_feature)
780 (remote_string_tracing_feature)
781 (remote_augmented_libraries_svr4_read_feature): Delete functions.
782 (remote_protocol_features): Adjust to use remote_supported_packet
783 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
784 "ConditionalTracepoints", "ConditionalBreakpoints",
785 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
786 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
787 "EnableDisableTracepoints", and "tracenz".
788 (remote_query_supported): Use packet_support.
789 (remote_open_1): Adjust.
790 (extended_remote_attach_1): Use packet_support. Switch on the
791 result of packet_ok instead of checking whether the packet ended
793 (remote_vcont_resume): Use packet_support.
794 (remote_resume, remote_stop_ns, fetch_register_using_p)
795 (remote_prepare_to_store, store_register_using_P)
796 (check_binary_download, remote_write_bytes): Use packet_support.
797 (remote_vkill): Use packet_support. Switch on the result of
798 packet_ok instead of checking whether the packet ended up
800 (extended_remote_supports_disable_randomization): Use
802 (extended_remote_run): Switch on the result of packet_ok instead
803 of checking whether the packet ended up disabled.
804 (remote_insert_breakpoint, remote_remove_breakpoint)
805 (remote_insert_watchpoint, remote_remove_watchpoint)
806 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
808 (remote_search_memory): Use packet_config_support.
809 (remote_get_thread_local_address, remote_get_tib_address)
810 (remote_hostio_send_command, remote_can_execute_reverse): Use
812 (remote_supports_cond_tracepoints)
813 (remote_supports_cond_breakpoints)
814 (remote_supports_fast_tracepoints)
815 (remote_supports_static_tracepoints)
816 (remote_supports_install_in_trace)
817 (remote_supports_enable_disable_tracepoint)
818 (remote_supports_string_tracing)
819 (remote_can_run_breakpoint_commands): Rewrite, checking whether
820 the packet config says the feature is enabled or disabled.
821 (remote_download_tracepoint, remote_trace_set_readonly_regions)
822 (remote_get_trace_status): Use packet_support.
823 (remote_set_disconnected_tracing): Adjust to check whether the
824 feature is enabled with packet_support.
825 (remote_set_trace_buffer_size, remote_use_agent)
826 (remote_can_use_agent, remote_supports_btrace): Use
828 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
829 Use packet_config_support.
830 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
831 the packet config says the feature is enabled or disabled.
832 (set_range_stepping): Use packet_support.
834 2014-04-25 Tom Tromey <tromey@redhat.com>
836 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
839 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
841 * NEWS: Mention support for C99 variable length arrays.
843 2014-04-24 Joel Brobecker <brobecker@adacore.com>
845 * ada-lang.c (standard_exc): Expand introductory comment.
847 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
848 Walfred Tedeschi <walfred.tedeschi@intel.com>
850 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
852 (amd64_linux_read_description): Add code to handle AVX512 xstate
853 mask and return respective tdesc.
854 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
855 and features/i386/x32-avx512-linux.c.
856 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
857 (amd64_linux_core_read_description): Add code to handle AVX512
858 xstate mask and return respective tdesc.
859 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
860 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
862 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
863 (tdesc_amd64_avx512_linux): New prototype.
864 (tdesc_x32_avx512_linux): Likewise.
865 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
866 features/i386/x32-avx512.c.
867 (amd64_ymm_avx512_names): New register names for pseudo
869 (amd64_ymmh_avx512_names): New register names for raw registers
871 (amd64_k_names): New register names for K registers.
872 (amd64_zmmh_names): New register names for ZMM raw registers.
873 (amd64_zmm_names): New registers names for ZMM pseudo registers.
874 (amd64_xmm_avx512_names): New register names for XMM16-31
876 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
878 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
879 if feature is present.
880 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
881 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
882 (AMD64_NUM_REGS): Adjust to new number of registers.
883 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
884 registers supplied via XSTATE by AVX512 registers.
885 (i386_linux_read_description): Add case for AVX512.
886 * i386-linux-tdep.c: Include i386-avx512-linux.c.
887 (i386_linux_gregset_reg_offset): Add AVX512 registers.
888 (i386_linux_core_read_description): Add case for AVX512.
889 (i386_linux_init_abi): Install supported register note section
891 (_initialize_i386_linux_tdep): Add call to tdesc init function for
893 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
894 registers to be number of zmm7h + 1.
895 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
896 * i386-tdep.c: Include features/i386/i386-avx512.c.
897 (i386_zmm_names): Add ZMM pseudo register names array.
898 (i386_zmmh_names): Add ZMM raw register names array.
899 (i386_k_names): Add K raw register names array.
900 (num_lower_zmm_regs): Add constant for the number of lower ZMM
901 registers. AVX512 has 16 more ZMM registers than there are YMM
903 (i386_zmmh_regnum_p): Add function to look up register number of
905 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
906 (i386_k_regnum_p): Likewise for K raw registers.
907 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
908 registers added by AVX512.
909 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
910 registers added by AVX512.
911 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
913 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
914 (i386_pseudo_register_name): Add ZMM pseudo registers.
915 (i386_zmm_type): Construct and return vector registers type for ZMM
917 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
918 ZMM0-31 pseudo registers and K registers.
919 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
920 and YMM16-31 registers from register cache.
921 (i386_pseudo_register_write): Add code to write K, ZMM and
923 (i386_register_reggroup_p): Add code to include/exclude AVX512
924 registers in/from respective register groups.
925 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
926 registers if feature is present in xcr0.
927 (i386_gdbarch_init): Add code to initialize AVX512 feature
928 variables in tdep structure, wire in pseudo registers and call
929 initialize_tdesc_i386_avx512.
930 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
932 (i386_regnum): Add AVX512 registers.
933 (I386_SSE_NUM_REGS): New define for number of SSE registers.
934 (I386_AVX_NUM_REGS): Likewise for AVX registers.
935 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
936 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
938 (i386_xmm_avx512_regnum_p): New prototype for register look up.
939 (i386_ymm_avx512_regnum_p): Likewise.
940 (i386_k_regnum_p): Likewise.
941 (i386_zmm_regnum_p): Likewise.
942 (i386_zmmh_regnum_p): Likewise.
943 * i387-tdep.c : Update year in copyright notice.
944 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
946 (XSAVE_YMM_AVX512_ADDR): New macro.
947 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
949 (XSAVE_XMM_AVX512_ADDR): New macro.
950 (xsave_avx512_k_offset): New table for K register offsets in
952 (XSAVE_AVX512_K_ADDR): New macro.
953 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
955 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
956 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
958 (i387_collect_xsave): Add code to collect AVX512 registers from
960 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
961 of XMM16-31 registers.
962 (I387_NUM_K_REGS): New define for number of K registers.
963 (I387_K0_REGNUM): New define for K0 register number.
964 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
965 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
966 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
968 (I387_YMM16H_REGNUM): New define for YMM16H register number.
969 (I387_XMM16_REGNUM): New define for XMM16 register number.
970 (I387_YMM0_REGNUM): New define for YMM0 register number.
971 (I387_KEND_REGNUM): New define for last K register number.
972 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
973 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
975 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
977 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
979 * features/Makefile: Add AVX512 related files.
980 * features/i386/32bit-avx512.xml: New file.
981 * features/i386/64bit-avx512.xml: Likewise.
982 * features/i386/amd64-avx512-linux.c: Likewise.
983 * features/i386/amd64-avx512-linux.xml: Likewise.
984 * features/i386/amd64-avx512.c: Likewise.
985 * features/i386/amd64-avx512.xml: Likewise.
986 * features/i386/i386-avx512-linux.c: Likewise.
987 * features/i386/i386-avx512-linux.xml: Likewise.
988 * features/i386/i386-avx512.c: Likewise.
989 * features/i386/i386-avx512.xml: Likewise.
990 * features/i386/x32-avx512-linux.c: Likewise.
991 * features/i386/x32-avx512-linux.xml: Likewise.
992 * features/i386/x32-avx512.c: Likewise.
993 * features/i386/x32-avx512.xml: Likewise.
994 * regformats/i386/amd64-avx512-linux.dat: New file.
995 * regformats/i386/amd64-avx512.dat: Likewise.
996 * regformats/i386/i386-avx512-linux.dat: Likewise.
997 * regformats/i386/i386-avx512.dat: Likewise.
998 * regformats/i386/x32-avx512-linux.dat: Likewise.
999 * regformats/i386/x32-avx512.dat: Likewise.
1000 * NEWS: Add note about new support for AVX512.
1003 2014-04-23 Pedro Alves <palves@redhat.com>
1005 * breakpoint.c (insert_bp_location): Tolerate errors if the
1006 breakpoint is set in a user-loaded objfile.
1007 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1008 location is marked shlib_disabled. If the breakpoint is set in a
1009 user-loaded objfile is a GDB-side memory breakpoint, validate it
1010 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1011 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1013 * mem-break.c (memory_validate_breakpoint): New function.
1014 * objfiles.c (userloaded_objfile_contains_address_p): New
1016 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1017 * target.h (memory_validate_breakpoint): New declaration.
1019 2014-04-23 Pedro Alves <palves@redhat.com>
1021 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1022 the breakpoint is set in a shared library, only suppress
1023 errors for software breakpoints, not hardware breakpoints.
1025 2014-04-22 Pedro Alves <palves@redhat.com>
1027 * infrun.c (schedlock_applies): New function, factored out from
1028 find_thread_needs_step_over.
1029 (find_thread_needs_step_over): Use it.
1030 (switch_back_to_stepped_thread): Always clear trap_expected if the
1031 step over is finished. Return early if scheduler locking applies.
1032 Look for the stepping thread and a potential step-over thread with
1034 (currently_stepping_or_nexting_callback): Delete.
1036 2014-04-22 Nick Clifton <nickc@redhat.com>
1038 * NEWS: Mention that ARM sim now supports tracing.
1040 2014-04-22 Yao Qi <yao@codesourcery.com>
1042 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1044 * tracefile.c (tracefile_fetch_registers): ... it. New
1046 * tracefile.h (tracefile_fetch_registers): Declare.
1047 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1048 tracefile_fetch_registers.
1050 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1053 * windows-nat.c (thread_rec): Don't display a warning when
1054 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1055 fails for any reason, set th->suspended to -1, so that we don't
1056 try to resume such a thread. Also, don't return NULL in these
1057 cases, to avoid completely ruin the session due to "PC register is
1058 not available" error.
1059 (do_windows_fetch_inferior_registers): Check errors in
1060 GetThreadContext call.
1061 (windows_continue): Accept an additional argument KILLED; if not
1062 zero, ignore errors in the SetThreadContext call, since the
1063 inferior was killed and is shutting down.
1064 (windows_resume, get_windows_debug_event)
1065 (windows_create_inferior, windows_mourn_inferior)
1066 (windows_kill_inferior): All callers of windows_continue changed
1067 to adjust to its new calling sequence.
1069 2014-04-19 Yao Qi <yao@codesourcery.com>
1071 * ctf.c (ctf_open): Call post_create_inferior.
1073 2014-04-19 Yao Qi <yao@codesourcery.com>
1075 * ctf.c (handle_id): New static variable.
1076 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1077 value. Get the declaration of event "register" and get length
1078 of field "contents".
1080 2014-04-19 Yao Qi <yao@codesourcery.com>
1082 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1084 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1086 * valops.c (oload_method_static): Remove unnecessary argument
1087 METHOD. Update all callers.
1089 2014-04-18 Pedro alves <palves@redhat.com>
1090 Tom Tromey <tromey@redhat.com>
1093 * frame.c (get_prev_frame_1): Rename to ...
1094 (get_prev_frame_always): ... this, and make extern. Adjust.
1095 (skip_artificial_frames): Use get_prev_frame_always.
1096 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1097 (get_frame_unwind_stop_reason): Adjust to rename.
1098 * frame.h (get_prev_frame_always): Declare.
1099 * inline-frame.c: Include frame.h.
1100 (inline_frame_this_id): Use get_prev_frame_always.
1102 2014-04-18 Tristan Gingold <gingold@adacore.com>
1104 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1105 code by using bfd_mach_o_get_base_address.
1107 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1109 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1110 (spu_ax_pseudo_register_collect): New function.
1111 (spu_ax_pseudo_register_push_stack): Likewise.
1112 (spu_dwarf_reg_to_regnum): Likewise.
1113 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1115 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1117 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1118 Replace FRAME argument with FRAME_ID.
1119 * gdbarch.c, gdbarch.h: Regenerate.
1120 * findvar.c (default_value_from_register): Add GDBARCH argument;
1121 replace FRAME by FRAME_ID. No longer call get_frame_id.
1122 (value_from_register): Update call to gdbarch_value_from_register.
1123 * value.h (default_value_from_register): Update prototype.
1124 * s390-linux-tdep.c (s390_value_from_register): Update interface
1125 and call to default_value_from_register.
1126 * spu-tdep.c (spu_value_from_register): Likewise.
1128 * findvar.c (address_from_register): Remove TYPE argument.
1129 Do not call value_from_register; use gdbarch_value_from_register
1130 with null_frame_id instead.
1131 * value.h (address_from_register): Update prototype.
1132 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1133 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1134 address_from_register interface change.
1136 2014-04-17 Yao Qi <yao@codesourcery.com>
1138 * gdbtypes.h: Update comments to link to types and macros'
1141 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1143 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1145 2014-04-16 Keith Seitz <keiths@redhat.com>
1148 * dwarf2read.c (skip_one_die): Check that all relative-offset
1149 sibling DIEs fall within range of the current reader's buffer.
1150 (read_partial_die): Likewise.
1152 2014-04-16 Keith Seitz <keiths@redhat.com>
1155 * cp-namespace.c (lookup_symbol_file): If the type name of
1156 `this' is NULL, return immediately.
1158 2014-04-14 Keith Seitz <keiths@redhat.com>
1161 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1162 from symbol_matches_domain in symtab.c. All local callers
1163 of symbol_matches_domain updated.
1164 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1165 search STRUCT_DOMAIN.
1166 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1167 independently. standard_lookup will do that automatically.
1168 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1169 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1170 (cp_lookup_symbol_in_namespace): Likewise.
1171 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1172 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1173 may return a STRUCT_DOMAIN match.
1174 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1175 * cp-support.c: Include language.h.
1176 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1178 * psymtab.c (match_partial_symbol): Compare the requested
1179 domain with the symbol's domain directly.
1180 (lookup_partial_symbol): Likewise.
1181 * symtab.c (lookup_symbol_in_language): Explain when/why
1182 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1183 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1184 appropriate languages.
1185 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1186 and moved to ada-lang.c
1187 (lookup_block_symbol): Explain that this function only returns
1188 symbol matching the requested DOMAIN.
1189 Compare the requested domain with the symbol's domain directly.
1190 (iterate_over_symbols): Compare the requested domain with the
1191 symbol's domain directly.
1192 * symtab.h (symbol_matches_domain): Remove.
1194 2014-04-14 Tom Tromey <tromey@redhat.com>
1197 * c-exp.y (type_aggregate_p): New function.
1198 (qualified_name, classify_inner_name): Use it.
1199 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1200 and TYPE_TARGET_TYPE of an enum type.
1201 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1203 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1204 handle TYPE_DECLARED_CLASS.
1205 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1207 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1208 * valops.c (enum_constant_from_type): New function.
1209 (value_aggregate_elt): Use it.
1210 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1213 2014-04-14 Tom Tromey <tromey@redhat.com>
1215 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1216 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1218 * value.h (value_aggregate_elt): Update.
1220 2014-04-14 Tom Tromey <tromey@redhat.com>
1222 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1224 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1226 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1227 (evaluate_subexp_standard): Pass noside argument.
1228 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1229 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1230 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1231 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1232 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1234 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1236 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1237 points to a constant blob.
1239 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1241 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1242 property and store it as the high bound and flag the range accordingly.
1243 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1244 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1245 * gdbtypes.h (enum range_flags): New enum.
1246 (struct range_bounds): Add flags member.
1248 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1250 * c-typeprint.c (c_type_print_varspec_suffix): Added
1251 check for not yet resolved high bound. If unresolved, print
1252 "variable length" string to the console instead of random
1255 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1257 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1259 (ada_template_to_fixed_record_type_1): Likewise.
1260 (ada_to_fixed_type_1): Likewise.
1261 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1262 (cp_print_value): Likewise.
1263 * d-valprint.c (dynamic_array_type): Likewise.
1264 * findvar.c (address_of_variable): Likewise.
1265 * jv-valprint.c (java_value_print): Likewise.
1266 * valops.c (value_ind): Likewise.
1267 * value.c (coerce_ref): Likewise.
1269 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1271 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1272 value and retrieve the dynamic type size.
1274 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1276 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1277 passed to sizeof is dynamic evaluate the argument to compute the length.
1279 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1280 Joel Brobecker <brobecker@adacore.com>
1282 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1283 (dwarf2_evaluate_property): New function.
1284 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1285 * dwarf2read.c (attr_to_dynamic_prop): New function.
1286 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1288 * gdbtypes.c: Include dwarf2loc.h.
1289 (is_dynamic_type): New function.
1290 (resolve_dynamic_type): New function.
1291 (resolve_dynamic_bounds): New function.
1292 (get_type_length): New function.
1293 (check_typedef): Use get_type_length to compute type length.
1294 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1295 (TYPE_LOW_BOUND_KIND): New macro.
1296 (is_dynamic_type): New function prototype.
1297 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1298 to resolve dynamic properties of the type. Update comment.
1299 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1301 2014-04-14 Richard Henderson <rth@redhat.com>
1303 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1305 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1306 Doug Evans <xdje42@gmail.com>
1308 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1309 dereference TYPE_CODE_REF values.
1311 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1313 Revert the following changes due to regressions:
1315 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1316 (dwarf2_evaluate_property): New function.
1317 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1318 * dwarf2read.c (attr_to_dynamic_prop): New function.
1319 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1321 * gdbtypes.c: Include dwarf2loc.h.
1322 (is_dynamic_type): New function.
1323 (resolve_dynamic_type): New function.
1324 (resolve_dynamic_bounds): New function.
1325 (get_type_length): New function.
1326 (check_typedef): Use get_type_length to compute type length.
1327 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1328 (TYPE_LOW_BOUND_KIND): New macro.
1329 (is_dynamic_type): New function prototype.
1330 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1331 to resolve dynamic properties of the type. Update comment.
1332 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1334 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1335 passed to sizeof is dynamic evaluate the argument to compute the length.
1337 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1338 value and retrieve the dynamic type size.
1340 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1341 (ada_template_to_fixed_record_type_1): Likewise.
1342 (ada_to_fixed_type_1): Likewise.
1343 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1344 (cp_print_value): Likewise.
1345 * d-valprint.c (dynamic_array_type): Likewise.
1346 * eval.c (evaluate_subexp_with_coercion): Likewise.
1347 * findvar.c (address_of_variable): Likewise.
1348 * jv-valprint.c (java_value_print): Likewise.
1349 * valops.c (value_ind): Likewise.
1350 * value.c (coerce_ref): Likewise.
1352 * c-typeprint.c (c_type_print_varspec_suffix): Added
1353 check for not yet resolved high bound. If unresolved, print
1354 "variable length" string to the console instead of random
1357 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1358 property and store it as the high bound and flag the range accordingly.
1359 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1360 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1361 * gdbtypes.h (enum range_flags): New enum.
1362 (struct range_bounds): Add flags member.
1364 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1365 points to a constant blob.
1367 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1368 (evaluate_subexp_standard): Pass noside argument.
1369 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1370 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1371 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1372 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1373 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1375 2014-04-11 Keith Seitz <keiths@redhat.com>
1378 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1379 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1382 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1384 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1385 (evaluate_subexp_standard): Pass noside argument.
1386 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1387 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1388 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1389 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1390 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1392 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1394 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1395 points to a constant blob.
1397 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1399 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1400 property and store it as the high bound and flag the range accordingly.
1401 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1402 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1403 * gdbtypes.h (enum range_flags): New enum.
1404 (struct range_bounds): Add flags member.
1406 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1408 * c-typeprint.c (c_type_print_varspec_suffix): Added
1409 check for not yet resolved high bound. If unresolved, print
1410 "variable length" string to the console instead of random
1413 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1415 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1416 (ada_template_to_fixed_record_type_1): Likewise.
1417 (ada_to_fixed_type_1): Likewise.
1418 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1419 (cp_print_value): Likewise.
1420 * d-valprint.c (dynamic_array_type): Likewise.
1421 * eval.c (evaluate_subexp_with_coercion): Likewise.
1422 * findvar.c (address_of_variable): Likewise.
1423 * jv-valprint.c (java_value_print): Likewise.
1424 * valops.c (value_ind): Likewise.
1425 * value.c (coerce_ref): Likewise.
1427 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1429 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1430 value and retrieve the dynamic type size.
1432 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1434 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1435 passed to sizeof is dynamic evaluate the argument to compute the length.
1437 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1439 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1440 (dwarf2_evaluate_property): New function.
1441 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1442 * dwarf2read.c (attr_to_dynamic_prop): New function.
1443 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1445 * gdbtypes.c: Include dwarf2loc.h.
1446 (is_dynamic_type): New function.
1447 (resolve_dynamic_type): New function.
1448 (resolve_dynamic_bounds): New function.
1449 (get_type_length): New function.
1450 (check_typedef): Use get_type_length to compute type length.
1451 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1452 (TYPE_LOW_BOUND_KIND): New macro.
1453 (is_dynamic_type): New function prototype.
1454 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1455 to resolve dynamic properties of the type. Update comment.
1456 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1458 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1460 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1461 declaring high/low bounds and change uses accordingly. Call
1462 create_range_type instead of create_static_range_type.
1463 * gdbtypes.c (create_range_type): New function.
1464 (create_range_type): Convert bounds into struct bound_prop and pass
1465 them to create_range_type.
1466 * gdbtypes.h (struct bound_prop): New struct.
1467 (create_range_type): New function prototype.
1468 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1469 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1470 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1472 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1474 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1476 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1477 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1478 * ada-lang.c: All uses of create_range_type updated.
1479 * coffread.c: All uses of create_range_type updated.
1480 * dwarf2read.c: All uses of create_range_type updated.
1481 * f-exp.y: All uses of create_range_type updated.
1482 * m2-valprint.c: All uses of create_range_type updated.
1483 * mdebugread.c: All uses of create_range_type updated.
1484 * stabsread.c: All uses of create_range_type updated.
1485 * valops.c: All uses of create_range_type updated.
1486 * valprint.c: All uses of create_range_type updated.
1488 2014-04-10 Pedro Alves <palves@redhat.com>
1490 * breakpoint.c (single_step_breakpoints)
1491 (single_step_gdbarch): Move up in the file.
1492 (one_breakpoint_xfer_memory): New function, factored out from ...
1493 (breakpoint_xfer_memory): ... here. Also process single-step
1496 2014-04-09 Tristan Gingold <gingold@adacore.com>
1498 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1500 (darwin_decode_exception_message): Free port only after use.
1502 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1504 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1505 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1506 when setting the size of call_length.
1508 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1510 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1511 dereference TYPE_CODE_REF values.
1513 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1515 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1516 end of warning message.
1518 2014-04-03 Doug Evans <dje@google.com>
1520 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1521 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1523 2014-04-02 Alan Modra <amodra@gmail.com>
1525 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1526 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1527 (struct symbol_file_add_from_memory_args): Add size field.
1528 (find_vdso_size): New function.
1529 (add_vsyscall_page): Attempt to find vdso size.
1531 2014-04-01 Doug Evans <dje@google.com>
1533 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1535 2014-04-01 Tristan Gingold <gingold@adacore.com>
1537 * darwin-nat.c (darwin_encode_reply): Add prototype.
1538 (darwin_decode_exception_message): Reply to unknown inferiors.
1539 (darwin_decode_message): Handle message by id. Ignore message
1540 to unknown inferior.
1541 (darwin_wait): Discard unknown messages, add debug trace.
1543 2014-03-31 Doug Evans <dje@google.com>
1545 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1548 2014-03-31 Doug Evans <dje@google.com>
1550 New option "set print symbol-loading".
1552 * solib.c (solib_read_symbols): Only print symbol loading messages
1554 (solib_add): If symbol loading is in "brief" mode, notify user
1555 symbols are being loaded.
1556 (reload_shared_libraries_1): Ditto.
1557 * symfile.c (print_symbol_loading_off): New static global.
1558 (print_symbol_loading_brief): New static global.
1559 (print_symbol_loading_full): New static global.
1560 (print_symbol_loading_enums): New static global.
1561 (print_symbol_loading): New static global.
1562 (print_symbol_loading_p): New function.
1563 (symbol_file_add_with_addrs): Only print symbol loading messages
1565 (_initialize_symfile): Register "print symbol-loading" set/show
1567 * symfile.h (print_symbol_loading_p): Declare.
1569 2014-03-30 Doug Evans <xdje42@gmail.com>
1571 * infrun.c (set_last_target_status): New function.
1572 (handle_inferior_event): Call it.
1574 2014-03-30 Doug Evans <xdje42@gmail.com>
1576 * inferior.h (enum stop_kind): Improve comment.
1578 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1580 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1581 a reference, strip the reference layer before calling
1582 the lang_ops value_has_mutated callback.
1584 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1586 Remove some globals from our parser.
1587 * language.c (unk_lang_parser): Add "struct parser_state"
1589 * language.h (struct language_defn) <la_parser>: Likewise.
1590 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1591 (initialize_expout): Add "struct parser_state" argument.
1592 Rewrite function to use the parser state.
1593 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1594 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1595 write_exp_elt_longcst, write_exp_elt_dblcst,
1596 write_exp_elt_decfloatcst, write_exp_elt_type,
1597 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1598 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1599 write_dollar_variable): Likewise.
1600 (parse_exp_in_context_1): Use parser state.
1601 (insert_type_address_space): Add "struct parser_state" argument.
1603 (increase_expout_size): New function.
1604 * parser-defs.h: Forward declare "struct language_defn" and
1605 "struct parser_state".
1606 (expout, expout_size, expout_ptr): Remove extern declarations.
1607 (parse_gdbarch, parse_language): Rewrite macro declarations to
1608 accept the parser state.
1609 (struct parser_state): New struct.
1610 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1611 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1612 write_exp_elt_decfloatcst, write_exp_elt_type,
1613 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1614 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1615 write_exp_msymbol, write_dollar_variable,
1616 mark_struct_expression, insert_type_address_space): Add "struct
1617 parser_state" argument.
1618 (increase_expout_size): New function.
1619 * utils.c (do_clear_parser_state): New function.
1620 (make_cleanup_clear_parser_state): Likewise.
1621 * utils.h (make_cleanup_clear_parser_state): New function
1623 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1624 Update calls to write_exp* in order to pass the parser state.
1625 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1626 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1627 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1628 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1629 * stap-probe.c (stap_parse_register_operand): Likewise.
1630 (stap_parse_single_operand): Likewise.
1631 (stap_parse_argument_1): Likewise.
1632 (stap_parse_argument): Use parser state.
1633 * stap-probe.h: Include "parser-defs.h".
1634 (struct stap_parse_info) <pstate>: New field.
1635 * c-exp.y (parse_type): Rewrite to use parser state.
1636 (yyparse): Redefine to c_parse_internal.
1637 (pstate): New global variable.
1638 (parse_number): Add "struct parser_state" argument.
1639 (write_destructor_name): Likewise.
1640 (type_exp): Update calls to write_exp* and similars in order to
1642 (exp1, exp, variable, qualified_name, space_identifier,
1643 typename, typebase): Likewise.
1644 (write_destructor_name, parse_number, lex_one_token,
1645 classify_name, classify_inner_name, c_parse): Add "struct
1646 parser_state" argument. Update function to use parser state.
1647 * c-lang.h: Forward declare "struct parser_state".
1648 (c_parse): Add "struct parser_state" argument.
1649 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1650 (yyparse): Redefine macro to ada_parse_internal.
1651 (pstate): New variable.
1652 (write_int, write_object_renaming, write_var_or_type,
1653 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1654 type_int, type_long, type_long_long, type_float, type_double,
1655 type_long_double, type_char, type_boolean, type_system_address):
1656 Add "struct parser_state" argument.
1657 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1658 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1659 var_or_type, aggregate, aggregate_component_list,
1660 positional_list, others, component_group,
1661 component_associations): Update calls to write_exp* and similar
1662 functions in order to use parser state.
1663 (ada_parse, write_var_from_sym, write_int,
1664 write_exp_op_with_string, write_object_renaming,
1665 find_primitive_type, write_selectors, write_ambiguous_var,
1666 write_var_or_type, write_name_assoc, type_int, type_long,
1667 type_long_long, type_float, type_double, type_long_double,
1668 type_char, type_boolean, type_system_address): Add "struct
1669 parser_state" argument. Adjust function to use parser state.
1670 * ada-lang.c (parse): Likewise.
1671 * ada-lang.h: Forward declare "struct parser_state".
1672 (ada_parse): Add "struct parser_state" argument.
1673 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1674 calls to both functions.
1675 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1677 (yyparse): Redefine macro to f_parse_internal.
1678 (pstate): New variable.
1679 (parse_number): Add "struct parser_state" argument.
1680 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1681 and similars in order to use parser state.
1682 (parse_number): Adjust code to use parser state.
1684 (f_parse): New function.
1685 * f-lang.h: Forward declare "struct parser_state".
1686 (f_parse): Add "struct parser_state" argument.
1687 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1689 (yyparse): Redefine macro for java_parse_internal.
1690 (pstate): New variable.
1691 (push_expression_name, push_expression_name, insert_exp): Add
1692 "struct parser_state" argument.
1693 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1694 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1695 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1696 PostIncrementExpression, PostDecrementExpression,
1697 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1698 UnaryExpressionNotPlusMinus, CastExpression,
1699 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1700 RelationalExpression, EqualityExpression, AndExpression,
1701 ExclusiveOrExpression, InclusiveOrExpression,
1702 ConditionalAndExpression, ConditionalOrExpression,
1703 ConditionalExpression, Assignment, LeftHandSide): Update
1704 calls to write_exp* and similars in order to use parser state.
1705 (parse_number): Ajust code to use parser state.
1707 (java_parse): New function.
1708 (push_variable): Add "struct parser_state" argument. Adjust
1709 code to user parser state.
1710 (push_fieldnames, push_qualified_expression_name,
1711 push_expression_name, insert_exp): Likewise.
1712 * jv-lang.h: Forward declare "struct parser_state".
1713 (java_parse): Add "struct parser_state" argument.
1714 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1716 (yyparse): Redefine macro to m2_parse_internal.
1717 (pstate): New variable.
1718 (type_exp, exp, fblock, variable, type): Update calls to
1719 write_exp* and similars to use parser state.
1721 (m2_parse): New function.
1722 * m2-lang.h: Forward declare "struct parser_state".
1723 (m2_parse): Add "struct parser_state" argument.
1724 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1725 * objc-lang.h: Forward declare "struct parser_state".
1726 (end_msglist): Add "struct parser_state" argument.
1727 * p-exp.y (parse_type): Rewrite macro to use parser state.
1728 (yyparse): Redefine macro to pascal_parse_internal.
1729 (pstate): New variable.
1730 (parse_number): Add "struct parser_state" argument.
1731 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1732 write_exp* and similars in order to use parser state.
1733 (parse_number, yylex): Adjust code to use parser state.
1734 (pascal_parse): New function.
1735 * p-lang.h: Forward declare "struct parser_state".
1736 (pascal_parse): Add "struct parser_state" argument.
1737 * go-exp.y (parse_type): Rewrite macro to use parser state.
1738 (yyparse): Redefine macro to go_parse_internal.
1739 (pstate): New variable.
1740 (parse_number): Add "struct parser_state" argument.
1741 (type_exp, exp1, exp, variable, type): Update calls to
1742 write_exp* and similars in order to use parser state.
1743 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1744 to use parser state.
1745 (go_parse): Likewise.
1746 * go-lang.h: Forward declare "struct parser_state".
1747 (go_parse): Add "struct parser_state" argument.
1749 2014-03-27 Doug Evans <dje@google.com>
1751 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1753 2014-03-27 Doug Evans <dje@google.com>
1755 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1756 Remove argument abbrev_section. All callers updated.
1758 2014-03-27 Doug Evans <dje@google.com>
1760 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1761 addr_base, ranges_base.
1763 2014-03-26 Keith Seitz <keiths@redhat.com>
1765 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1766 types, not VAR_DOMAIN.
1768 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1770 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1772 * features/nios2-linux.c: Regenerated.
1773 * features/nios2.c: Regenerated.
1775 2014-03-25 Pedro Alves <palves@redhat.com>
1777 * cli/cli-script.c (script_from_file): Force the interpreter to
1780 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1782 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1783 small stack allocation.
1785 2014-03-24 Tristan Gingold <gingold@adacore.com>
1787 * darwin-nat.c (exc_server): Remove unused prototype.
1788 (darwin_dump_message): Correctly display data on x86_64.
1789 (darwin_encode_reply): Fix style.
1790 Add comments and fix indentation.
1792 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1794 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1796 2014-03-22 Doug Evans <xdje42@gmail.com>
1798 * infcmd.c: Whitespace fixes.
1799 (interrupt_command): Merge two function comments into one.
1801 2014-03-22 Doug Evans <xdje42@gmail.com>
1803 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1806 2014-03-22 Yao Qi <yao@codesourcery.com>
1808 * remote.c (target_read_live_memory): Remove.
1809 (memory_xfer_live_readonly_partial): Rename it to
1810 remote_xfer_live_readonly_partial. Remove argument 'object'.
1811 All callers updated. Call remote_read_bytes_1
1812 instead of target_read_live_memory.
1813 * tracepoint.c (set_traceframe_number): Remove.
1814 (make_cleanup_restore_traceframe_number): Likewise .
1815 * tracepoint.h (set_traceframe_number): Remove declaration.
1816 (make_cleanup_restore_traceframe_number): Likewise.
1818 2014-03-22 Yao Qi <yao@codesourcery.com>
1820 * remote.c (remote_read_bytes): Move code on reading from the
1822 (remote_read_bytes_1): ... here. New function.
1824 2014-03-22 Yao Qi <yao@codesourcery.com>
1826 * ctf.c (ctf_xfer_partial): Check the return value of
1827 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1828 return TARGET_XFER_UNAVAILABLE.
1829 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1830 * target.c (target_read_live_memory): Move it to remote.c.
1831 (memory_xfer_live_readonly_partial): Likewise.
1832 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1833 * remote.c (target_read_live_memory): Moved from target.c.
1834 (memory_xfer_live_readonly_partial): Likewise.
1835 (remote_read_bytes): Factored out from
1836 memory_xfer_partial_1.
1838 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1840 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1843 2014-03-21 Pedro Alves <palves@redhat.com>
1845 * infrun.c (normal_stop): Extend comment.
1847 2014-03-21 Hui Zhu <hui@codesourcery.com>
1848 Pedro Alves <palves@redhat.com>
1850 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1852 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1853 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1854 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1856 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1858 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1859 `z' formatted output modifier.
1861 2014-03-20 Tom Tromey <tromey@redhat.com>
1862 Sergio Durigan Junior <sergiodj@redhat.com>
1864 * probe.c (parse_probes): Turn assert into an ordinary error.
1865 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1866 exceptions when parsing probes. Rearrange the code for clarity.
1868 2014-03-20 Tom Tromey <tromey@redhat.com>
1871 * top.c (execute_command): Only dispatch events if the command
1874 2014-03-20 Tom Tromey <tromey@redhat.com>
1877 * infcall.c: Include event-top.h.
1878 (run_inferior_call): Call async_disable_stdin if needed.
1880 2014-03-20 Pedro Alves <palves@redhat.com>
1882 * infrun.c (prepare_to_proceed): Delete.
1883 (thread_still_needs_step_over): New function.
1884 (find_thread_needs_step_over): New function.
1885 (proceed): If the current thread needs a step-over, set its
1886 steping_over_breakpoint flag. Adjust to use
1887 find_thread_needs_step_over instead of prepare_to_proceed.
1888 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1889 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1891 (switch_back_to_stepped_thread): Step over breakpoints of all
1892 threads not the stepping thread, before switching back to the
1895 2014-03-20 Pedro Alves <palves@redhat.com>
1897 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1899 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1900 * infrun.c (saved_singlestep_ptid)
1901 (stepping_past_singlestep_breakpoint): Delete.
1902 (resume): Remove stepping_past_singlestep_breakpoint handling.
1903 (proceed): Store the prev_pc of the stepping thread too.
1904 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1906 (enum infwait_states): Delete infwait_thread_hop_state.
1907 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1909 (handle_inferior_event): Adjust.
1910 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1911 handling and the thread-hop code. Before removing single-step
1912 breakpoints, check whether the thread hit a single-step breakpoint
1913 of another thread. If it did, the trap is not a random signal.
1914 (switch_back_to_stepped_thread): If the event thread hit a
1915 single-step breakpoint, unblock it before switching to the
1916 stepping thread. Handle the case of the stepped thread having
1918 (keep_going): Handle the case of the current thread moving past a
1919 single-step breakpoint.
1921 2014-03-20 Pedro Alves <palves@redhat.com>
1924 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1925 are being stepped over.
1926 (breakpoint_address_match): Make extern.
1927 * breakpoint.h (breakpoint_address_match): New declaration.
1928 * inferior.h (stepping_past_instruction_at): New declaration.
1929 * infrun.c (struct step_over_info): New type.
1930 (step_over_info): New global.
1931 (set_step_over_info, clear_step_over_info)
1932 (stepping_past_instruction_at): New functions.
1933 (handle_inferior_event): Clear the step-over info when
1934 trap_expected is cleared.
1935 (resume): Remove now stale comment.
1936 (clear_proceed_status): Clear step-over info.
1937 (proceed): Adjust step-over handling to set or clear the step-over
1938 info instead of removing all breakpoints.
1939 (handle_signal_stop): When setting up a thread-hop, don't remove
1941 (stop_stepping): Clear step-over info.
1942 (keep_going): Adjust step-over handling to set or clear step-over
1943 info and then always inserting breakpoints, instead of removing
1944 all breakpoints when stepping over one.
1946 2014-03-20 Pedro Alves <palves@redhat.com>
1948 * infrun.c (previous_inferior_ptid): Adjust comment.
1949 (deferred_step_ptid): Delete.
1950 (infrun_thread_ptid_changed, prepare_to_proceed)
1951 (init_wait_for_inferior): Adjust.
1952 (handle_signal_stop): Delete deferred_step_ptid handling.
1954 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1957 * defs.h (sync_quit_force_run): New declaration.
1958 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1959 * event-top.c (async_sigterm_handler): New declaration.
1960 (async_sigterm_token): New variable.
1961 (async_init_signals): Create also async_sigterm_token.
1962 (async_sigterm_handler): New function.
1963 (sync_quit_force_run): New variable.
1964 (handle_sigterm): Replace quit_force call by other calls.
1965 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1967 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1969 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1970 offset into SPE pseudo registers.
1972 2014-03-18 Pedro Alves <palves@redhat.com>
1975 * inferior.h (print_stop_event): Declare.
1976 * infrun.c (print_stop_event): New, factored out from ...
1977 (normal_stop): ... this.
1978 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1979 of bpstat_print/print_stack_frame.
1981 2014-03-17 Tom Tromey <tromey@redhat.com>
1983 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1985 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1987 * ada-lang.c (decode_constrained_packed_array): Perform a
1988 minimal coercion for reference with coerce_ref instead of
1991 2014-03-17 Tristan Gingold <gingold@adacore.com>
1993 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1994 (darwin_solib_create_inferior_hook): Emit a warning if version
1997 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1999 * python/py-value.c (get_field_flag): Cast flag_name argument to
2000 PyObject_GetAttrString to support Python 2.4.
2002 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2004 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2005 (Global Maintainers): Remove Jan Kratochvil.
2007 2014-03-14 Pedro Alves <palves@redhat.com>
2009 * inferior.h (terminal_ours_for_output): Rename to ...
2010 (child_terminal_ours_for_output): ... this.
2011 (terminal_save_ours): Rename to ...
2012 (child_terminal_save_ours): ... this.
2013 (terminal_ours): Rename to ...
2014 (child_terminal_ours): ... this.
2015 (terminal_inferior): Rename to ...
2016 (child_terminal_inferior): ... this.
2017 (terminal_init_inferior): Rename to ...
2018 (child_terminal_init_inferior): ... this.
2019 (terminal_init_inferior_with_pgrp): Rename to ...
2020 (child_terminal_init_inferior_with_pgrp): ... this.
2021 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2022 (child_terminal_init_with_pgrp): ... this.
2023 (terminal_save_ours): Rename to ...
2024 (child_terminal_save_ours): ... this.
2025 (terminal_init_inferior): Rename to ...
2026 (child_terminal_init): ... this. Adjust.
2027 (terminal_inferior): Rename to ...
2028 (child_terminal_inferior): ... this.
2029 (terminal_ours_for_output): Rename to ...
2030 (child_terminal_ours_for_output): ... this. Adjust.
2031 (terminal_ours): Rename to ...
2032 (child_terminal_ours): ... this.
2033 (terminal_ours_1): Rename to ...
2034 (child_terminal_ours_1): ... this. Adjust.
2035 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2036 * windows-nat.c (do_initial_windows_stuff): Adjust.
2037 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2038 (gnu_terminal_init): ... this. Adjust.
2039 (gnu_target): Adjust.
2040 * inf-child.c (inf_child_target): Adjust.
2042 2014-03-13 Doug Evans <xdje42@gmail.com>
2045 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2048 2014-03-13 Doug Evans <xdje42@gmail.com>
2050 * value.c (record_latest_value): Call release_value_or_incref
2051 instead of release_value.
2053 2014-03-13 Pedro Alves <palves@redhat.com>
2055 * procfs.c (procfs_target): Don't override to_shortname,
2056 to_longname or to_doc.
2058 2014-03-13 Pedro Alves <palves@redhat.com>
2060 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2061 Unix in user visible strings.
2063 2014-03-12 Stan Shebs <stan@codesourcery.com>
2065 * gdbtypes.h: Annotate comments for Doxygen, add a page
2066 block comment with some general info.
2068 2014-03-12 Pedro Alves <palves@redhat.com>
2070 * infcmd.c (prepare_execution_command): New function, factored out
2071 from several execution commands.
2072 (run_command_1, continue_command, step_1, jump_command)
2073 (signal_command, until_command, advance_command, finish_command)
2074 (attach_command): Use prepare_execution_command.
2076 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2078 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2081 (struct arm_linux_thread_points): Removed.
2082 (struct arm_linux_process_info): New.
2083 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2084 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2085 (arm_linux_find_breakpoints_by_tid): Removed.
2086 (struct arch_lwp_info): New.
2087 (arm_linux_find_process_pid): New functions.
2088 (arm_linux_add_process): New functions.
2089 (arm_linux_process_info_get): New functions.
2090 (arm_linux_forget_process): New function.
2091 (arm_linux_get_debug_reg_state): New function.
2092 (struct update_registers_data): New.
2093 (update_registers_callback): New function.
2094 (arm_linux_insert_hw_breakpoint1): Updated.
2095 (arm_linux_remove_hw_breakpoint1): Updated.
2096 (arm_linux_insert_hw_breakpoint): Updated.
2097 (arm_linux_remove_hw_breakpoint): Updated.
2098 (arm_linux_insert_watchpoint): Updated.
2099 (arm_linux_remove_watchpoint): Updated.
2100 (arm_linux_new_thread): Updated.
2101 (arm_linux_prepare_to_resume): New function.
2102 (arm_linux_new_fork): New function.
2103 (_initialize_arm_linux_nat): Updated.
2105 2014-03-12 Pedro Alves <palves@redhat.com>
2107 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2109 2014-03-12 Tom Tromey <tromey@redhat.com>
2111 * inf-child.c (return_zero): New function.
2112 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2113 * aix-thread.c (aix_thread_inferior_created): New function.
2114 (aix_thread_attach): Remove.
2115 (init_aix_thread_ops): Don't set to_attach.
2116 (_initialize_aix_thread): Register inferior_created observer.
2117 * corelow.c (init_core_ops): Don't set to_attach or
2119 * exec.c (init_exec_ops): Don't set to_attach or
2121 * infcmd.c (run_command_1): Use find_run_target. Make direct
2123 (attach_command): Use find_attach_target. Make direct target
2125 * record-btrace.c (init_record_btrace_ops): Don't set
2127 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2129 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2130 set to_create_inferior.
2131 * target.c (complete_target_initialization): Add assertion.
2132 (target_create_inferior): Remove.
2133 (find_default_attach, find_default_create_inferior): Remove.
2134 (find_attach_target, find_run_target): New functions.
2135 (find_default_is_async_p, find_default_can_async_p)
2136 (target_supports_non_stop, target_attach): Remove.
2137 (init_dummy_target): Don't set to_create_inferior or
2138 to_supports_non_stop.
2139 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2140 TARGET_DEFAULT_FUNC.
2141 <to_create_inferior>: Add comment.
2142 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2143 TARGET_DEFAULT_RETURN.
2144 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2145 (find_attach_target, find_run_target): Declare.
2146 (target_create_inferior): Remove.
2147 (target_has_execution_1): Update comment.
2148 (target_supports_non_stop): Remove.
2149 * target-delegates.c: Rebuild.
2151 2014-03-12 Pedro Alves <palves@redhat.com>
2153 * inf-child.h: Update comment to not mention Unix.
2155 2014-03-12 Pedro Alves <palves@redhat.com>
2157 * inf-child.c: Update top comment to not mention Unix. Add
2158 generic comment describing how this target is meant to be used.
2159 (inf_child_post_attach, inf_child_post_startup_inferior)
2160 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2163 2014-03-12 Pedro Alves <palves@redhat.com>
2165 * nto-procfs.c: Include inf-child.h.
2166 (procfs_ops): Delete global.
2167 (procfs_can_run): Delete method.
2168 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2169 target pointer instead of referencing procfs_ops.
2170 (procfs_prepare_to_store): Delete.
2171 (init_procfs_ops): Delete function.
2172 (procfs_target): New function, based on init_procfs_ops, but
2173 inherit inf_child_target.
2174 (_initialize_procfs): Use procfs_target.
2176 2014-03-12 Pedro Alves <palves@redhat.com>
2178 * windows-nat.c: Include inf-child.h.
2179 (windows_ops): Delete global.
2180 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2182 (init_windows_ops): Delete function.
2183 (windows_target): New function, based on init_windows_ops, but
2184 inherit inf_child_target.
2185 (_initialize_windows_nat): Use windows_target. Install x86
2186 specific target methods here.
2188 2014-03-10 Doug Evans <xdje42@gmail.com>
2190 * guile/guile.c (call_initialize_gdb_module): New function.
2191 (initialize_guile): Replace call to scm_init_guile with call to
2194 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2196 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2197 in call to TYPE_CODE macro.
2199 2014-03-10 Jerome Guitton <guitton@adacore.com>
2201 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2202 Resolve tagged types to full view.
2204 2014-03-10 Hui Zhu <hui@codesourcery.com>
2206 * target.h (target_insert_breakpoint): Remove "hardware" from its
2209 2014-03-07 Doug Evans <dje@google.com>
2211 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2213 2014-03-07 Doug Evans <dje@google.com>
2215 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2216 Remove unused local comp_dir_attr. Assert exactly one of
2217 stub_comp_unit_die, stub_comp_dir is non-NULL.
2219 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2221 * target.h (complete_target_initialization, add_target):
2224 2014-03-07 Pedro Alves <palves@redhat.com>
2226 * go32-nat.c: Include inf-child.h.
2227 (go32_ops): Delete global.
2228 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2230 (go32_create_inferior): Push the passed in target pointer instead
2231 of referencing go32_ops.
2232 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2233 (go32_target): New function, based on init_go32_ops, but inherit
2235 (_initialize_go32_nat): Use go32_target. Move parts of
2238 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2240 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2241 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2242 SYMBOL_VALUE_ADDRESS.
2243 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2245 2014-03-06 Yao Qi <yao@codesourcery.com>
2247 * breakpoint.c (get_tracepoint_by_number): Remove argument
2248 optional_p. All callers updated. Adjust comments. Update
2250 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2252 2014-03-06 Yao Qi <yao@codesourcery.com>
2254 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2255 early if get_number returns zero. Use 'p' instead of 'args'.
2257 2014-03-06 Yao Qi <yao@codesourcery.com>
2259 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2262 2014-03-06 Yao Qi <yao@codesourcery.com>
2264 PR breakpoints/16508
2265 * tracepoint.c (check_trace_running): New function.
2266 (trace_find_command): Move code to check_trace_running and
2267 call check_trace_running.
2268 (trace_find_pc_command): Likewise.
2269 (trace_find_tracepoint_command): Likewise.
2270 (trace_find_line_command): Likewise.
2271 (trace_find_range_command): Likewise.
2272 * tracepoint.h (check_trace_running): Likewise.
2273 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2275 2014-03-06 Yao Qi <yao@codesourcery.com>
2277 * target.h (struct target_ops) <to_traceframe_info>: Use
2278 TARGET_DEFAULT_NORETURN (tcomplain ()).
2279 * target-delegates.c: Regenerated.
2281 2014-03-05 Pedro Alves <palves@redhat.com>
2284 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2285 void. Update comment.
2286 (dcache_xfer_memory): Delete.
2287 (dcache_read_memory_partial): New, based on the read bits of
2289 (dcache_update): Add status parameter. Use ULONGEST for len, and
2290 adjust. Discard cache lines if the reason for the update was
2292 * dcache.h (dcache_xfer_memory): Delete declaration.
2293 (dcache_read_memory_partial): New declaration.
2294 (dcache_update): Update prototype.
2295 * target.c (raw_memory_xfer_partial): Update the dcache here.
2296 (memory_xfer_partial_1): Don't handle dcache writes here.
2298 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2300 * remote-sim.c (gdbsim_load): Add const to prog.
2302 2014-03-03 Tom Tromey <tromey@redhat.com>
2304 * elfread.c (probe_key): Change to bfd_data.
2305 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2306 now per-BFD, not per-objfile.
2307 * stap-probe.c (stap_probe_destroy): Update comment.
2308 (handle_stap_probe): Allocate on the per-BFD obstack.
2310 2014-03-03 Tom Tromey <tromey@redhat.com>
2312 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2313 * breakpoint.c (create_longjmp_master_breakpoint): Use
2315 (add_location_to_breakpoint, bkpt_probe_insert_location)
2316 (bkpt_probe_remove_location): Update.
2317 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2318 * elfread.c (elf_symfile_relocate_probe): Remove.
2319 (elf_probe_fns): Update.
2320 (insert_exception_resume_breakpoint): Change type of "probe"
2321 parameter to bound_probe.
2322 (check_exception_resume): Update.
2323 * objfiles.c (objfile_relocate1): Don't relocate probes.
2324 * probe.c (bound_probe_s): New typedef.
2325 (parse_probes): Use get_probe_address. Set sal's objfile.
2326 (find_probe_by_pc): Return a bound_probe.
2327 (collect_probes): Return a VEC(bound_probe_s).
2328 (compare_probes): Update.
2329 (gen_ui_out_table_header_info): Change type of "probes"
2331 (info_probes_for_ops): Update.
2332 (get_probe_address): New function.
2333 (probe_safe_evaluate_at_pc): Update.
2334 * probe.h (struct probe_ops) <get_probe_address>: New field.
2335 <set_semaphore, clear_semaphore>: Add objfile parameter.
2336 (struct probe) <objfile>: Remove field.
2338 <address>: Update comment.
2339 (struct bound_probe): New.
2340 (find_probe_by_pc): Return a bound_probe.
2341 (get_probe_address): Declare.
2342 * solib-svr4.c (struct probe_and_action) <address>: New field.
2343 (hash_probe_and_action, equal_probe_and_action): Update.
2344 (register_solib_event_probe): Add address parameter.
2345 (solib_event_probe_at): Update.
2346 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2348 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2349 (stap_get_probe_address): New function.
2350 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2351 (compile_probe_arg): Update.
2352 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2354 (handle_stap_probe): Don't relocate the probe.
2355 (stap_relocate): Remove.
2356 (stap_gen_info_probes_table_values): Update.
2357 (stap_probe_ops): Remove stap_relocate.
2358 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2359 (debug_sym_probe_fns): Update.
2360 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2361 * symtab.c (init_sal): Use memset.
2362 * symtab.h (struct symtab_and_line) <objfile>: New field.
2363 * tracepoint.c (start_tracing, stop_tracing): Update.
2365 2014-03-03 Tom Tromey <tromey@redhat.com>
2367 * probe.h (parse_probes, find_probe_by_pc)
2368 (find_probes_in_objfile): Fix comments.
2370 2014-03-02 Doug Evans <xdje42@gmail.com>
2372 * infrun.c (handle_signal_stop): Replace test for
2373 TARGET_WAITKIND_STOPPED with an assert.
2375 2014-03-02 Doug Evans <xdje42@gmail.com>
2377 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2379 2014-03-02 Doug Evans <xdje42@gmail.com>
2381 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2383 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2385 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2387 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2389 * i386obsd-nat.c: Include "obsd-nat.h".
2390 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2392 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2394 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2396 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2398 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2400 * mips64obsd-nat.c: Include "obsd-nath".
2401 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2403 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2405 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2407 * amd64obsd-nat.c: Include "obsd-nat,h.
2408 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2410 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2412 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2414 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2415 (find_overload_match): Update call to find_oload_champ.
2416 (find_oload_champ_namespace_loop): Likewise
2418 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2420 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2422 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2423 * config/sparc/obsd64.mh: New file.
2424 * sparc64obsd-nat.c: New file.
2426 * obsd-nat.h: New file.
2427 * obsd-nat.c: New file.
2428 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2429 (ALLDEPFILES): Add obsd-nat.c.
2431 2014-02-28 Tom Tromey <tromey@redhat.com>
2433 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2434 * cli-out.h (cli_ui_out_impl): Now const.
2435 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2436 * ui-out.c (struct ui_out) <impl>: Now const.
2437 (default_ui_out_impl): Now const.
2438 (ui_out_new): Make 'impl' parameter const.
2439 * ui-out.h (ui_out_new): Update.
2441 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2443 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2445 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2447 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2449 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 Additional PR 8882 fix.
2452 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2454 2014-02-27 Pedro Alves <palves@redhat.com>
2456 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2459 2014-02-27 Pedro Alves <palves@redhat.com>
2462 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2463 * nat/linux-waitpid.c: Include string.h.
2464 (status_to_str): Moved here and made extern.
2465 * nat/linux-waitpid.h (status_to_str): New declaration.
2467 2014-02-27 Hui Zhu <hui@codesourcery.com>
2470 * infrun.c (ptid_match): Move ...
2471 * common/ptid.c (ptid_match): ... here.
2472 * inferior.h (ptid_match): Move ...
2473 * common/ptid.h (ptid_match): ... here.
2475 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2477 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2478 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2481 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2483 * obsd-tdep.c (obsd_auxv_parse): New function.
2484 (obsd_init_abi): Set auxv_parse.
2486 * gdbarch.sh (auxv_parse): New.
2487 * gdbarch.h: Regenerated.
2488 * gdbarch.c: Regenerated.
2489 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2491 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2493 * guile/scm-value.c (gdbscm_history_append_x): New function.
2494 (value_functions): Add it.
2496 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2498 * dwarf2read.c (attr_value_as_address): New function.
2499 (dwarf2_find_base_address, read_call_site_scope): Use
2500 attr_value_as_address in place of DW_ADDR.
2501 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2502 the low and high addresses. Slight rework of the handling
2503 of the high pc being a constant form, and limit it to
2504 DWARF verson 4 or higher.
2505 (dwarf2_record_block_ranges): Likewise.
2506 (read_partial_die): Likewise.
2507 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2509 2014-02-26 Tom Tromey <tromey@redhat.com>
2511 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2513 2014-02-26 Tom Tromey <tromey@redhat.com>
2515 * elfread.c (elf_read_minimal_symbols): Return early if
2516 minimal symbols have already been read. Add "ei" parameter.
2517 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2518 * minsyms.c (prim_record_minimal_symbol_full): Update.
2519 * objfiles.h (struct objstats) <n_minsyms>: Move...
2520 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2521 * symmisc.c (print_objfile_statistics): Update.
2523 2014-02-26 Tom Tromey <tromey@redhat.com>
2525 * elfread.c (elf_read_minimal_symbols): New function, from
2527 (elf_symfile_read): Call it.
2529 2014-02-26 Tom Tromey <tromey@redhat.com>
2531 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2532 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2533 (lookup_minimal_symbol_solib_trampoline)
2534 (lookup_minimal_symbol_by_pc_section_1)
2535 (lookup_minimal_symbol_and_objfile): Update.
2536 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2537 Don't allocate a minimal symbol if minsyms have already been read.
2538 (build_minimal_symbol_hash_tables): Update.
2539 (install_minimal_symbols): Do nothing if minsyms already read.
2540 Use the per-BFD obstack.
2541 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2542 * objfiles.c (allocate_objfile): Call
2543 terminate_minimal_symbol_table later.
2544 (have_minimal_symbols): Update.
2545 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2546 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2547 Move from struct objfile.
2548 <minsyms_read>: New field.
2549 (struct objfile) <msymbols, minimal_symbol_count,
2550 msymbol_hash, msymbol_demangled_hash>: Move.
2551 (ALL_OBJFILE_MSYMBOLS): Update.
2552 * symfile.c (read_symbols): Set minsyms_read.
2553 (reread_symbols): Update.
2554 * symmisc.c (dump_objfile, dump_msymbols): Update.
2556 2014-02-26 Tom Tromey <tromey@redhat.com>
2558 * minsyms.c (msymbols_sort): Remove.
2559 * minsyms.h (msymbols_sort): Remove.
2560 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2561 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2562 * elfread.c (elf_symtab_read): Don't add section offsets.
2563 * xcoffread.c (record_minimal_symbol): Don't add section offset
2564 to minimal symbol address.
2565 * somread.c (text_offset, data_offset): Remove.
2566 (som_symtab_read): Don't add section offsets to minimal symbol
2568 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2569 Don't add section offsets to minimal symbols.
2570 * coffread.c (coff_symtab_read): Don't add section offsets
2571 to minimal symbol addresses.
2572 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2573 to minimal symbol addresses.
2574 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2575 section offset to minimal symbol addresses.
2576 * mdebugread.c (parse_partial_symbols): Don't add section
2577 offset to minimal symbol addresses.
2578 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2579 offset to minimal symbol addresses.
2581 2014-02-26 Tom Tromey <tromey@redhat.com>
2583 * ada-lang.c (ada_main_name): Update.
2584 (ada_add_standard_exceptions): Update.
2585 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2586 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2587 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2588 * auxv.c (ld_so_xfer_auxv): Update.
2589 * avr-tdep.c (avr_scan_prologue): Update.
2590 * ax-gdb.c (gen_var_ref): Update.
2591 * blockframe.c (get_pc_function_start)
2592 (find_pc_partial_function_gnu_ifunc): Update.
2593 * breakpoint.c (create_overlay_event_breakpoint)
2594 (create_longjmp_master_breakpoint)
2595 (create_std_terminate_master_breakpoint)
2596 (create_exception_master_breakpoint): Update.
2597 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2598 * c-valprint.c (c_val_print): Update.
2599 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2600 * common/agent.c (agent_look_up_symbols): Update.
2601 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2602 * dwarf2loc.c (call_site_to_target_addr): Update.
2603 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2604 * elfread.c (elf_gnu_ifunc_record_cache)
2605 (elf_gnu_ifunc_resolve_by_got): Update.
2606 * findvar.c (default_read_var_value): Update.
2607 * frame.c (inside_main_func): Update.
2608 * frv-tdep.c (frv_frame_this_id): Update.
2609 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2610 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2612 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2613 (hppa_hpux_find_dummy_bpaddr): Update.
2614 * hppa-tdep.c (hppa_symbol_address): Update.
2615 * infcmd.c (until_next_command): Update.
2616 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2618 * linespec.c (minsym_found, add_minsym): Update.
2619 * linux-nat.c (get_signo): Update.
2620 * linux-thread-db.c (inferior_has_bug): Update.
2621 * m32c-tdep.c (m32c_return_value)
2622 (m32c_m16c_address_to_pointer): Update.
2623 * m32r-tdep.c (m32r_frame_this_id): Update.
2624 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2625 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2626 * maint.c (maintenance_translate_address): Update.
2627 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2628 (frob_address): New function.
2629 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2630 frob_address. Rename parameter to "pc_in".
2631 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2633 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2635 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2636 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2637 * objc-lang.c (find_objc_msgsend): Update.
2638 * objfiles.c (objfile_relocate1): Update.
2639 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2640 * p-valprint.c (pascal_val_print): Update.
2641 * parse.c (write_exp_msymbol): Update.
2642 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2643 (ppc_elfv2_skip_entrypoint): Update.
2644 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2645 * printcmd.c (build_address_symbolic, msym_info)
2646 (address_info): Update.
2647 * proc-service.c (ps_pglobal_lookup): Update.
2648 * psymtab.c (find_pc_sect_psymtab_closer)
2649 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2650 Change msymbol parameter to bound_minimal_symbol.
2651 * ravenscar-thread.c (get_running_thread_id): Update.
2652 * remote.c (remote_check_symbols): Update.
2653 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2655 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2656 * solib-dsbt.c (lm_base): Update.
2657 * solib-frv.c (lm_base, main_got): Update.
2658 * solib-irix.c (locate_base): Update.
2659 * solib-som.c (som_solib_create_inferior_hook)
2660 (link_map_start): Update.
2661 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2662 * solib-svr4.c (elf_locate_base, enable_break): Update.
2663 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2664 (flush_ea_cache): Update.
2665 * stabsread.c (define_symbol, scan_file_globals): Update.
2666 * stack.c (find_frame_funname): Update.
2667 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2668 (debug_qf_find_pc_sect_symtab): Update.
2669 * symfile.c (simple_read_overlay_table)
2670 (simple_overlay_update): Update.
2671 * symfile.h (struct quick_symbol_functions)
2672 <find_pc_sect_symtab>: Change type of msymbol to
2673 bound_minimal_symbol.
2674 * symmisc.c (dump_msymbols): Update.
2675 * symtab.c (find_pc_sect_symtab_via_partial)
2676 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2677 (search_symbols, print_msymbol_info): Update.
2678 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2679 (MSYMBOL_VALUE_ADDRESS): Redefine.
2680 (BMSYMBOL_VALUE_ADDRESS): New macro.
2681 * tracepoint.c (scope_info): Update.
2682 * tui/tui-disasm.c (tui_find_disassembly_address)
2683 (tui_get_begin_asm_address): Update.
2684 * valops.c (find_function_in_inferior): Update.
2685 * value.c (value_static_field, value_fn_field): Update.
2687 2014-02-26 Tom Tromey <tromey@redhat.com>
2689 * ada-lang.c (ada_update_initial_language): Update.
2690 (ada_main_name, ada_has_this_exception_support): Update.
2691 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2692 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2693 * arm-tdep.c (arm_skip_stub): Update.
2694 * auxv.c (ld_so_xfer_auxv): Update.
2695 * avr-tdep.c (avr_scan_prologue): Update.
2696 * ax-gdb.c (gen_var_ref): Update.
2697 * breakpoint.c (struct breakpoint_objfile_data)
2698 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2699 type to bound_minimal_symbol.
2700 (create_overlay_event_breakpoint)
2701 (create_longjmp_master_breakpoint)
2702 (create_std_terminate_master_breakpoint)
2703 (create_exception_master_breakpoint): Update.
2704 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2705 * c-exp.y (classify_name): Update.
2706 * coffread.c (coff_symfile_read): Update.
2707 * common/agent.c (agent_look_up_symbols): Update.
2708 * d-lang.c (d_main_name): Update.
2709 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2710 * dec-thread.c (enable_dec_thread): Update.
2711 * dwarf2loc.c (call_site_to_target_addr): Update.
2712 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2713 * eval.c (evaluate_subexp_standard): Update.
2714 * findvar.c (struct minsym_lookup_data) <result>: Change type
2715 to bound_minimal_symbol.
2717 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2718 * frame.c (inside_main_func): Update.
2719 * frv-tdep.c (frv_frame_this_id): Update.
2720 * gcore.c (call_target_sbrk): Update.
2721 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2722 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2724 * go-lang.c (go_main_name): Update.
2725 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2726 (hppa_hpux_find_import_stub_for_addr): Update.
2727 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2728 Update. Change return type.
2729 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2731 * jit.c (jit_breakpoint_re_set_internal): Update.
2732 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2734 * linux-nat.c (get_signo): Update.
2735 * linux-thread-db.c (inferior_has_bug): Update
2736 * m32c-tdep.c (m32c_return_value)
2737 (m32c_m16c_address_to_pointer): Update.
2738 * m32r-tdep.c (m32r_frame_this_id): Update.
2739 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2740 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2741 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2742 lookup_minimal_symbol. Change return type.
2743 (lookup_minimal_symbol): Remove.
2744 (lookup_bound_minimal_symbol): Update.
2745 (lookup_minimal_symbol_text): Change return type.
2746 (lookup_minimal_symbol_solib_trampoline): Change return type.
2747 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2748 (lookup_minimal_symbol_solib_trampoline): Change return type.
2749 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2750 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2751 (value_nsstring, find_imps): Update.
2752 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2753 * p-lang.c (pascal_main_name): Update.
2754 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2755 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2756 * proc-service.c (ps_pglobal_lookup): Update.
2757 * ravenscar-thread.c (get_running_thread_msymbol): Change
2759 (has_ravenscar_runtime, get_running_thread_id): Update.
2760 * remote.c (remote_check_symbols): Update.
2761 * sol-thread.c (ps_pglobal_lookup): Update.
2762 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2763 * solib-dsbt.c (lm_base): Update.
2764 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2766 * solib-irix.c (locate_base): Update.
2767 * solib-som.c (som_solib_create_inferior_hook)
2768 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2770 * solib-spu.c (spu_enable_break): Update.
2771 * solib-svr4.c (elf_locate_base, enable_break): Update.
2772 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2773 (flush_ea_cache): Update.
2774 * stabsread.c (define_symbol): Update.
2775 * symfile.c (simple_read_overlay_table): Update.
2776 * symtab.c (find_pc_sect_line): Update.
2777 * tracepoint.c (scope_info): Update.
2778 * tui-disasm.c (tui_get_begin_asm_address): Update.
2779 * value.c (value_static_field): Update.
2781 2014-02-26 Tom Tromey <tromey@redhat.com>
2783 * minsyms.c (prim_record_minimal_symbol_full): Use
2784 SET_MSYMBOL_VALUE_ADDRESS.
2785 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2786 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2787 SET_MSYMBOL_VALUE_ADDRESS.
2788 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2789 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2791 2014-02-26 Tom Tromey <tromey@redhat.com>
2793 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2794 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2795 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2796 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2797 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2798 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2799 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2800 * ada-lang.c (ada_main_name): Update.
2801 (ada_lookup_simple_minsym): Update.
2802 (ada_make_symbol_completion_list): Update.
2803 (ada_add_standard_exceptions): Update.
2804 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2805 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2806 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2807 * arm-tdep.c (skip_prologue_function): Update.
2808 (arm_skip_stack_protector, arm_skip_stub): Update.
2809 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2810 (arm_wince_skip_main_prologue): Update.
2811 * auxv.c (ld_so_xfer_auxv): Update.
2812 * avr-tdep.c (avr_scan_prologue): Update.
2813 * ax-gdb.c (gen_var_ref): Update.
2814 * block.c (call_site_for_pc): Update.
2815 * blockframe.c (get_pc_function_start): Update.
2816 (find_pc_partial_function_gnu_ifunc): Update.
2817 * breakpoint.c (create_overlay_event_breakpoint): Update.
2818 (create_longjmp_master_breakpoint): Update.
2819 (create_std_terminate_master_breakpoint): Update.
2820 (create_exception_master_breakpoint): Update.
2821 (resolve_sal_pc): Update.
2822 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2823 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2825 * c-valprint.c (c_val_print): Update.
2826 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2827 * coffread.c (coff_symfile_read): Update.
2828 * common/agent.c (agent_look_up_symbols): Update.
2829 * dbxread.c (find_stab_function_addr): Update.
2830 (end_psymtab): Update.
2831 * dwarf2loc.c (call_site_to_target_addr): Update.
2832 (func_verify_no_selftailcall): Update.
2833 (tailcall_dump): Update.
2834 (call_site_find_chain_1): Update.
2835 (dwarf_expr_reg_to_entry_parameter): Update.
2836 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2837 (elf_gnu_ifunc_resolve_by_got): Update.
2838 * f-valprint.c (info_common_command): Update.
2839 * findvar.c (read_var_value): Update.
2840 * frame.c (get_prev_frame_1): Update.
2841 (inside_main_func): Update.
2842 * frv-tdep.c (frv_skip_main_prologue): Update.
2843 (frv_frame_this_id): Update.
2844 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2845 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2846 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2847 (gnuv3_skip_trampoline): Update.
2848 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2849 (hppa64_hpux_in_solib_call_trampoline): Update.
2850 (hppa_hpux_skip_trampoline_code): Update.
2851 (hppa64_hpux_search_dummy_call_sequence): Update.
2852 (hppa_hpux_find_import_stub_for_addr): Update.
2853 (hppa_hpux_find_dummy_bpaddr): Update.
2854 * hppa-tdep.c (hppa_symbol_address)
2855 (hppa_lookup_stub_minimal_symbol): Update.
2856 * i386-tdep.c (i386_skip_main_prologue): Update.
2857 (i386_pe_skip_trampoline_code): Update.
2858 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2859 * infcall.c (get_function_name): Update.
2860 * infcmd.c (until_next_command): Update.
2861 * jit.c (jit_breakpoint_re_set_internal): Update.
2862 (jit_inferior_init): Update.
2863 * linespec.c (minsym_found): Update.
2864 (add_minsym): Update.
2865 * linux-fork.c (info_checkpoints_command): Update.
2866 * linux-nat.c (get_signo): Update.
2867 * linux-thread-db.c (inferior_has_bug): Update.
2868 * m32c-tdep.c (m32c_return_value): Update.
2869 (m32c_m16c_address_to_pointer): Update.
2870 (m32c_m16c_pointer_to_address): Update.
2871 * m32r-tdep.c (m32r_frame_this_id): Update.
2872 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2873 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2874 * maint.c (maintenance_translate_address): Update.
2875 * minsyms.c (add_minsym_to_hash_table): Update.
2876 (add_minsym_to_demangled_hash_table): Update.
2877 (msymbol_objfile): Update.
2878 (lookup_minimal_symbol): Update.
2879 (iterate_over_minimal_symbols): Update.
2880 (lookup_minimal_symbol_text): Update.
2881 (lookup_minimal_symbol_by_pc_name): Update.
2882 (lookup_minimal_symbol_solib_trampoline): Update.
2883 (lookup_minimal_symbol_by_pc_section_1): Update.
2884 (lookup_minimal_symbol_and_objfile): Update.
2885 (prim_record_minimal_symbol_full): Update.
2886 (compare_minimal_symbols): Update.
2887 (compact_minimal_symbols): Update.
2888 (build_minimal_symbol_hash_tables): Update.
2889 (install_minimal_symbols): Update.
2890 (terminate_minimal_symbol_table): Update.
2891 (find_solib_trampoline_target): Update.
2892 (minimal_symbol_upper_bound): Update.
2893 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2894 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2895 (mips_skip_pic_trampoline_code): Update.
2896 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2897 * objc-lang.c (selectors_info): Update.
2898 (classes_info): Update.
2899 (find_methods): Update.
2900 (find_imps): Update.
2901 (find_objc_msgsend): Update.
2902 * objfiles.c (objfile_relocate1): Update.
2903 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2904 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2905 * p-valprint.c (pascal_val_print): Update.
2906 * parse.c (write_exp_msymbol): Update.
2907 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2908 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2909 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2910 * printcmd.c (build_address_symbolic): Update.
2912 (address_info): Update.
2913 * proc-service.c (ps_pglobal_lookup): Update.
2914 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2915 (find_pc_sect_psymtab): Update.
2916 * python/py-framefilter.c (py_print_frame): Update.
2917 * ravenscar-thread.c (get_running_thread_id): Update.
2918 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2920 * remote.c (remote_check_symbols): Update.
2921 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2922 (rs6000_skip_trampoline_code): Update.
2923 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2924 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2925 * solib-dsbt.c (lm_base): Update.
2926 * solib-frv.c (lm_base): Update.
2928 * solib-irix.c (locate_base): Update.
2929 * solib-som.c (som_solib_create_inferior_hook): Update.
2930 (som_solib_desire_dynamic_linker_symbols): Update.
2931 (link_map_start): Update.
2932 * solib-spu.c (spu_enable_break): Update.
2933 (ocl_enable_break): Update.
2934 * solib-svr4.c (elf_locate_base): Update.
2935 (enable_break): Update.
2936 * spu-tdep.c (spu_get_overlay_table): Update.
2937 (spu_catch_start): Update.
2938 (flush_ea_cache): Update.
2939 * stabsread.c (define_symbol): Update.
2940 (scan_file_globals): Update.
2941 * stack.c (find_frame_funname): Update.
2942 (frame_info): Update.
2943 * symfile.c (simple_read_overlay_table): Update.
2944 (simple_overlay_update): Update.
2945 * symmisc.c (dump_msymbols): Update.
2946 * symtab.c (fixup_section): Update.
2947 (find_pc_sect_line): Update.
2948 (skip_prologue_sal): Update.
2949 (search_symbols): Update.
2950 (print_msymbol_info): Update.
2951 (rbreak_command): Update.
2952 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2953 (completion_list_objc_symbol): Update.
2954 (default_make_symbol_completion_list_break_on): Update.
2955 * tracepoint.c (scope_info): Update.
2956 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2957 (tui_get_begin_asm_address): Update.
2958 * valops.c (find_function_in_inferior): Update.
2959 * value.c (value_static_field): Update.
2960 (value_fn_field): Update.
2962 2014-02-26 Tom Tromey <tromey@redhat.com>
2964 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2965 bound minimal symbols. Move code that knows about minsym
2967 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2969 * minsyms.h (minimal_symbol_upper_bound): Declare.
2970 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2971 minimal_symbol_upper_bound.
2973 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2975 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2976 Use the type's name if its basic type does not have a tag.
2978 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2980 * dwarf2read.c (read_subrange_type): Add comment.
2982 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2984 * dwarf2read.c (update_enumeration_type_from_children): New
2985 function, mostly extracted from process_structure_scope.
2986 (read_enumeration_type): Call update_enumeration_type_from_children.
2987 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2988 and flag_flag_enum fields.
2990 2014-02-26 Pedro Alves <palves@redhat.com>
2992 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2993 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2994 to_xfer_partial method.
2996 2014-02-26 Pedro Alves <palves@redhat.com>
2998 * target.c (complete_target_initialization): Don't install
2999 default_xfer_partial as to_xfer_partial hook.
3001 (update_current_target): Don't INHERIT nor de_fault
3002 deprecated_xfer_memory. Delete de_fault macro.
3003 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3004 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3005 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3008 2014-02-26 Pedro Alves <palves@redhat.com>
3010 * go32-nat.c (my_write_child): New function.
3011 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3012 (go32_xfer_partial): New function.
3013 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3014 Instead install a to_xfer_partial hook.
3016 2014-02-26 Pedro Alves <palves@redhat.com>
3018 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3019 to_xfer_partial helper. Rewrite.
3020 (procfs_xfer_partial): New function.
3021 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3022 Install a to_xfer_partial hook.
3024 2014-02-26 Pedro Alves <palves@redhat.com>
3026 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3027 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3028 (m32r_xfer_partial): New function.
3029 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3030 Install a to_xfer_partial hook.
3032 2014-02-26 Pedro Alves <palves@redhat.com>
3034 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3036 (mips_xfer_partial): New function.
3037 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3038 hook. Install a to_xfer_partial hook.
3040 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3042 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3043 * gdbtypes.c (create_array_type_with_stride): New function,
3044 renaming create_array_type, but with an added parameter
3045 called "bit_stride".
3046 (create_array_type): Re-implement using
3047 create_array_type_with_stride.
3048 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3049 and DW_AT_bit_stride attributes.
3051 2014-02-26 Pedro Alves <palves@redhat.com>
3053 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3054 task-specific breakpoints.
3056 2014-02-25 Pedro Alves <palves@redhat.com>
3058 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3059 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3061 2014-02-25 Stan Shebs <stan@codesourcery.com>
3063 * defs.h: Annotate comments for Doxygen.
3065 2014-02-25 Tom Tromey <tromey@redhat.com>
3067 * target.h (target_ignore): Don't declare.
3068 * target.c (target_ignore): Remove.
3070 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3073 * auto-load.c (auto_load_objfile_script_1): Change filename to
3076 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3078 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3079 documentation. Adjust prototype to match the target_ops
3080 to_xfer_partial method. Adjust implementation accordingly.
3082 2014-02-25 Hui Zhu <hui@codesourcery.com>
3084 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3087 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3089 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3090 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3091 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3092 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3093 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3094 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3095 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3096 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3098 (rl78_register_type): Use a data pointer type for SP and
3099 new pseudo registers mentioned above. Use a 16 bit integer
3100 type for all other register pairs.
3101 (rl78_register_name, rl78_g10_register_name): Update for
3102 new pseudo registers.
3103 (rl78_pseudo_register_read): Likewise.
3104 (rl78_pseudo_register_write): Likewise.
3105 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3106 to the newly added pseudo registers.
3108 2014-02-24 Doug Evans <dje@google.com>
3110 * value.c (record_latest_value): Fix comment.
3111 * printcmd.c (print_command_1): Remove code to handle -1 return from
3112 record_latest_value.
3114 2014-02-24 Pedro Alves <palves@redhat.com>
3116 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3117 deprecated_xfer_memory hook.
3118 (procfs_xfer_partial): Call procfs_xfer_memory instead
3119 of the deprecated_xfer_memory target hook.
3120 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3123 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3125 * windows-nat.c (windows_xfer_shared_libraries): Return
3126 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3127 requested object is TARGET_OBJECT_LIBRARIES.
3129 2014-02-24 Yao Qi <yao@codesourcery.com>
3131 * target.h (enum target_xfer_status)
3132 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3133 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3135 * corefile.c (memory_error_message): User updated.
3136 * exec.c (section_table_read_available_memory): Likewise.
3137 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3138 * target.c (target_xfer_status_to_string): Likewise.
3139 (raw_memory_xfer_partial): Likewise.
3140 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3141 * valops.c (read_value_memory): Likewise.
3142 * exec.h: Update comments.
3144 2014-02-24 Yao Qi <yao@codesourcery.com>
3146 * target.c (target_xfer_status_to_string): Rename argument err
3148 * target.h (target_xfer_status_to_string): Update declaration.
3149 Replace target_xfer_error_to_string with
3150 target_xfer_status_to_string in comment.
3152 2014-02-24 Yao Qi <yao@codesourcery.com>
3154 * mips-linux-nat.c (super_close): Update its type.
3155 (mips_linux_close): Pass 'self' to super_close.
3157 2014-02-24 Yao Qi <yao@codesourcery.com>
3159 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3160 * corefile.c (read_memory): Adjusted.
3161 * target.c (target_write_with_progress): Adjusted.
3163 2014-02-23 Yao Qi <yao@codesourcery.com>
3167 2013-10-25 Yao Qi <yao@codesourcery.com>
3169 * remote.c (remote_traceframe_info): Return early if
3170 traceframe is not selected.
3172 2013-07-19 Yao Qi <yao@codesourcery.com>
3174 * target.c (update_current_target): Change the default action
3175 of 'to_traceframe_info' from tcomplain to return_zero.
3176 * target.h (struct target_ops) <to_traceframe_info>: Add more
3179 2014-02-23 Yao Qi <yao@codesourcery.com>
3181 * valops.c (read_value_memory): Rewrite it. Call
3182 target_xfer_partial in a loop.
3183 * exec.h (section_table_available_memory): Remove declaration.
3184 Move comments to ...
3185 * exec.c (section_table_available_memory): ... here. Make it
3188 2014-02-23 Yao Qi <yao@codesourcery.com>
3190 * exec.c (section_table_read_available_memory): New function.
3191 * exec.h (section_table_read_available_memory): Declare.
3192 * ctf.c (ctf_xfer_partial): Call
3193 section_table_read_available_memory.
3194 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3196 2014-02-23 Yao Qi <yao@codesourcery.com>
3198 * ctf.c (ctf_xfer_partial): Move code to ...
3199 * exec.c (exec_read_partial_read_only): ... it. New function.
3200 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3201 * tracefile.c: Include "exec.h".
3202 * exec.h (exec_read_partial_read_only): Declare.
3204 2014-02-23 Yao Qi <yao@codesourcery.com>
3206 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3207 (tfile_has_memory): Remove.
3208 (init_tfile_ops): Don't set fields to_has_all_memory and
3209 to_has_memory of tfile_ops.
3210 * tracefile.c (tracefile_has_all_memory): New function.
3211 (tracefile_has_memory): New function.
3212 (init_tracefile_ops): Initialize fields to_has_all_memory and
3213 to_has_memory of 'ops'.
3215 2014-02-23 Yao Qi <yao@codesourcery.com>
3217 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3218 (ctf_thread_alive, ctf_get_trace_status): Remove.
3219 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3221 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3222 (tfile_has_stack, tfile_has_registers): Remove.
3223 (tfile_thread_alive): Remove.
3224 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3226 * tracefile.c (tracefile_has_stack): New function.
3227 (tracefile_has_registers): New function.
3228 (tracefile_thread_alive): New function.
3229 (tracefile_get_trace_status): New function.
3230 (init_tracefile_ops): New function.
3231 * tracefile.h (init_tracefile_ops): Declare.
3233 2014-02-23 Yao Qi <yao@codesourcery.com>
3235 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3236 (O_LARGEFILE): Likewise.
3237 (tfile_ops): Likewise.
3238 (TRACE_HEADER_SIZE): Likewise.
3239 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3240 (cur_data_size): Likewise.
3241 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3242 (tfile_close, tfile_files_info): Likewise.
3243 (tfile_get_trace_status): Likewise.
3244 (tfile_get_tracepoint_status): Likewise.
3245 (tfile_get_traceframe_address): Likewise.
3246 (tfile_trace_find, match_blocktype): Likewise.
3247 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3248 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3249 (tfile_get_trace_state_variable_value): Likewise.
3250 (tfile_has_all_memory, tfile_has_memory): Likewise.
3251 (tfile_has_stack, tfile_has_registers): Likewise.
3252 (tfile_thread_alive, build_traceframe_info): Likewise.
3253 (tfile_traceframe_info, init_tfile_ops): Likewise.
3254 (_initialize_tracepoint): Don't call init_tfile_ops
3255 and add_target_with_completer.
3256 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3257 exec.h, completer.h and filenames.h.
3258 (_initialize_tracefile_tfile): New function.
3260 2014-02-23 Yao Qi <yao@codesourcery.com>
3262 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3264 (HFILES_NO_SRCDIR): Add tracefile.h.
3265 * ctf.c: Include "tracefile.h".
3266 * tracefile.h: New file.
3267 * tracefile.c: New file
3268 * tracefile-tfile.c: New file.
3269 * tracepoint.c: Include "tracefile.h".
3270 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3271 (stop_reason_names): Add const.
3272 (trace_file_writer_xfree): Move it to tracefile.c.
3273 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3274 (trace_save_ctf): Likewise.
3275 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3276 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3277 (tfile_write_header, tfile_write_regblock_type): Likewise.
3278 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3279 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3280 (tfile_write_raw_data, tfile_end): Likewise.
3281 (tfile_trace_file_writer_new): Likewise.
3282 (free_uploaded_tp): Make it extern.
3283 (free_uploaded_tsv): Make it extern.
3284 (_initialize_tracepoint): Move code to register command 'tsave'
3286 * tracepoint.h (stop_reason_names): Declare.
3287 (struct trace_frame_write_ops): Move it to tracefile.h.
3288 (struct trace_file_write_ops): Likewise.
3289 (struct trace_file_writer): Likewise.
3290 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3292 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3295 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3297 (get_cores_used_by_process): New parameter num_cores, use it.
3298 (linux_xfer_osdata_processes): Pass num_cores to it.
3299 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3302 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3304 * target.c (memory_xfer_partial): Fix length arg in call to
3305 breakpoint_xfer_memory.
3307 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3310 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3311 number comes after the + or - signs. Adjust length of register
3312 name to be extracted.
3314 2014-02-20 Tom Tromey <tromey@redhat.com>
3316 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3317 (ada_varobj_ops): Mark "extern".
3319 2014-02-20 Tom Tromey <tromey@redhat.com>
3321 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3323 2014-02-20 Doug Evans <xdje42@gmail.com>
3325 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3326 All callers updated.
3327 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3328 All callers updated.
3329 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3330 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3332 2014-02-20 lin zuojian <manjian2006@gmail.com>
3333 Joel Brobecker <brobecker@adacore.com>
3334 Doug Evans <xdje42@gmail.com>
3337 * dwarf2read.c (struct die_info): New member in_process.
3338 (reset_die_in_process): New function.
3339 (process_die): Set it at the start, reset when returning.
3340 (inherit_abstract_dies): Only call process_die if origin_child_die
3341 not already being processed.
3343 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3345 * windows-nat.c (handle_unload_dll): Add function documentation.
3346 (do_initial_windows_stuff): Add comment explaining why we wait
3347 until after inferior initialization has finished before
3348 processing all DLLs.
3350 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3352 * windows-nat.c (get_module_name): Delete.
3353 (windows_get_exec_module_filename): New function, mostly
3354 inspired from get_module_name.
3355 (windows_pid_to_exec_file): Replace call to get_module_name
3356 by call to windows_get_exec_module_filename.
3358 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3360 * windows-nat.c (handle_load_dll): Rewrite this function's
3361 introductory comment. Remove code using get_module_name
3362 to get the DLL's name.
3364 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3366 * windows-nat.c (get_windows_debug_event): Ignore
3367 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3368 if windows_initialization_done == 0.
3369 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3370 Adjust implementation to always load all DLLs.
3371 (do_initial_windows_stuff): Replace call to
3372 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3374 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3376 * windows-nat.c (_initialize_windows_nat): Deprecate the
3377 "dll-symbols" command. Turn the "add-shared-symbol-files"
3378 and "assf" aliases into commands, and deprecate them as well.
3379 * NEWS: Add entry explaining that "dll-symbols" and its two
3380 aliases are now deprecated.
3382 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3384 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3385 new-line in debug string. Remove trailing spaces.
3387 2014-02-19 Stan Shebs <stan@codesourcery.com>
3389 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3391 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3393 * NEWS: Add entry for the new feature
3394 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3397 2014-02-19 Stan Shebs <stan@codesourcery.com>
3399 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3401 2014-02-19 Pedro Alves <palves@redhat.com>
3403 * common/ptid.h (struct ptid): Mention that process_stratum
3404 targets should prefer ptid.lwp.
3406 2014-02-19 Pedro Alves <palves@redhat.com>
3408 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3409 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3410 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3411 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3412 store remote thread ids rather than ptid.tid.
3413 (_initialize_remote): Adjust.
3415 2014-02-19 Tom Tromey <tromey@redhat.com>
3417 * target.c (target_get_unwinder): Rewrite.
3418 (target_get_tailcall_unwinder): Rewrite.
3419 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3420 (record_btrace_to_get_tailcall_unwinder): New function.
3421 (init_record_btrace_ops): Update.
3422 * target.h (struct target_ops) <to_get_unwinder,
3423 to_get_tailcall_unwinder>: Now function pointers. Use
3424 TARGET_DEFAULT_RETURN.
3426 2014-02-19 Tom Tromey <tromey@redhat.com>
3428 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3430 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3432 2014-02-19 Tom Tromey <tromey@redhat.com>
3434 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3436 * target-delegates.c: Rebuild.
3437 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3438 TARGET_DEFAULT_FUNC.
3439 * target.c (default_target_decr_pc_after_break): Rename from
3440 forward_target_decr_pc_after_break. Simplify.
3441 (target_decr_pc_after_break): Rely on delegation.
3443 2014-02-19 Tom Tromey <tromey@redhat.com>
3445 * target.c (update_current_target): Do not INHERIT to_doc or
3446 to_magic. Do not de_fault to_open or to_close.
3448 2014-02-19 Tom Tromey <tromey@redhat.com>
3450 * gcore.h (objfile_find_memory_regions): Declare.
3451 * gcore.c (objfile_find_memory_regions): No longer static. Add
3453 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3454 * exec.c: Include gcore.h.
3455 (exec_set_find_memory_regions): Remove.
3456 (exec_find_memory_regions): Remove.
3457 (exec_do_find_memory_regions): Remove.
3458 (init_exec_ops): Update.
3459 * defs.h (exec_set_find_memory_regions): Remove.
3461 2014-02-19 Tom Tromey <tromey@redhat.com>
3463 * target-delegates.c: Rebuild.
3464 * target.h (struct target_ops) <to_extra_thread_info,
3465 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3466 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3467 not 0, in TARGET_DEFAULT_RETURN.
3469 2014-02-19 Tom Tromey <tromey@redhat.com>
3471 * target.c (complete_target_initialization): Remove casts. Use
3472 return_zero_has_execution.
3473 (return_zero): Add "ignore" argument.
3474 (return_zero_has_execution): New function.
3475 (init_dummy_target): Remove casts. Use
3476 return_zero_has_execution.
3478 2014-02-19 Tom Tromey <tromey@redhat.com>
3480 * target.c (update_current_target): Update comments. Do not
3483 2014-02-19 Tom Tromey <tromey@redhat.com>
3485 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3487 * corelow.c (core_read_description): Delegate when needed.
3488 * remote.c (remote_read_description): Delegate when needed.
3489 * target-delegates.c: Rebuild.
3490 * target.c (target_read_description): Rewrite.
3491 * target.h (struct target_ops) <to_read_description>: Update
3492 comment. Use TARGET_DEFAULT_RETURN.
3494 2014-02-19 Tom Tromey <tromey@redhat.com>
3496 * target-delegates.c: Rebuild.
3497 * target.c (update_current_target): Don't inherit or default
3499 (find_default_run_target): Check against delegate_can_run.
3500 * target.h (struct target_ops) <to_can_run>: Use
3501 TARGET_DEFAULT_RETURN.
3503 2014-02-19 Tom Tromey <tromey@redhat.com>
3505 * target-delegates.c: Rebuild.
3506 * target.c (target_disconnect): Unconditionally delegate.
3507 * target.h (struct target_ops) <to_disconnect>: Use
3508 TARGET_DEFAULT_NORETURN.
3510 2014-02-19 Tom Tromey <tromey@redhat.com>
3512 * record.c (record_stop): Unconditionally delegate.
3513 * target-delegates.c: Rebuild.
3514 * target.c (target_stop_recording): Unconditionally delegate.
3515 * target.h (struct target_ops) <to_stop_recording>: Use
3516 TARGET_DEFAULT_IGNORE.
3518 2014-02-19 Tom Tromey <tromey@redhat.com>
3520 * target-delegates.c: Rebuild.
3521 * target.c (target_enable_btrace): Unconditionally delegate.
3522 * target.h (struct target_ops) <to_enable_btrace>: Use
3523 TARGET_DEFAULT_NORETURN.
3525 2014-02-19 Tom Tromey <tromey@redhat.com>
3527 * target-delegates.c: Rebuild.
3528 * target.c (target_read_btrace): Unconditionally delegate.
3529 * target.h (struct target_ops) <to_read_btrace>: Use
3530 TARGET_DEFAULT_NORETURN.
3532 2014-02-19 Tom Tromey <tromey@redhat.com>
3534 * target-delegates.c: Rebuild.
3535 * target.c (target_teardown_btrace): Unconditionally delegate.
3536 * target.h (struct target_ops) <to_teardown_btrace>: Use
3537 TARGET_DEFAULT_NORETURN.
3539 2014-02-19 Tom Tromey <tromey@redhat.com>
3541 * target-delegates.c: Rebuild.
3542 * target.c (target_disable_btrace): Unconditionally delegate.
3543 * target.h (struct target_ops) <to_disable_btrace>: Use
3544 TARGET_DEFAULT_NORETURN.
3546 2014-02-19 Tom Tromey <tromey@redhat.com>
3548 * target-delegates.c: Rebuild.
3549 * target.c (default_search_memory): New function.
3550 (simple_search_memory): Update comment.
3551 (target_search_memory): Unconditionally delegate.
3552 * target.h (struct target_ops) <to_search_memory>: Use
3553 TARGET_DEFAULT_FUNC.
3555 2014-02-19 Tom Tromey <tromey@redhat.com>
3557 * auxv.c (default_auxv_parse): No longer static.
3558 (target_auxv_parse): Unconditionally delegate.
3559 * auxv.h (default_auxv_parse): Declare.
3560 * target-delegates.c: Rebuild.
3561 * target.c: Include auxv.h.
3562 * target.h (struct target_ops) <to_auxv_parse>: Use
3563 TARGET_DEFAULT_FUNC.
3565 2014-02-19 Tom Tromey <tromey@redhat.com>
3567 * target-delegates.c: Rebuild.
3568 * target.c (target_memory_map): Unconditionally delegate.
3569 * target.h (struct target_ops) <to_memory_map>: Use
3570 TARGET_DEFAULT_RETURN.
3572 2014-02-19 Tom Tromey <tromey@redhat.com>
3574 * target-delegates.c: Rebuild.
3575 * target.c (target_thread_alive): Unconditionally delegate.
3576 * target.h (struct target_ops) <to_thread_alive>: Use
3577 TARGET_DEFAULT_RETURN.
3579 2014-02-19 Tom Tromey <tromey@redhat.com>
3581 * target-delegates.c: Rebuild.
3582 * target.c (target_save_record): Unconditionally delegate.
3583 * target.h (struct target_ops) <to_save_record>: Use
3584 TARGET_DEFAULT_NORETURN.
3586 2014-02-19 Tom Tromey <tromey@redhat.com>
3588 * target-delegates.c: Rebuild.
3589 * target.c (target_delete_record): Unconditionally delegate.
3590 * target.h (struct target_ops) <to_delete_record>: Use
3591 TARGET_DEFAULT_NORETURN.
3593 2014-02-19 Tom Tromey <tromey@redhat.com>
3595 * target-delegates.c: Rebuild.
3596 * target.c (target_record_is_replaying): Unconditionally
3598 * target.h (struct target_ops) <to_record_is_replaying>: Use
3599 TARGET_DEFAULT_RETURN.
3601 2014-02-19 Tom Tromey <tromey@redhat.com>
3603 * target-delegates.c: Rebuild.
3604 * target.c (target_goto_record_begin): Unconditionally delegate.
3605 * target.h (struct target_ops) <to_goto_record_begin>: Use
3606 TARGET_DEFAULT_NORETURN.
3608 2014-02-19 Tom Tromey <tromey@redhat.com>
3610 * target-delegates.c: Rebuild.
3611 * target.c (target_goto_record_end): Unconditionally delegate.
3612 * target.h (struct target_ops) <to_goto_record_end>: Use
3613 TARGET_DEFAULT_NORETURN.
3615 2014-02-19 Tom Tromey <tromey@redhat.com>
3617 * target-delegates.c: Rebuild.
3618 * target.c (target_goto_record): Unconditionally delegate.
3619 * target.h (struct target_ops) <to_goto_record>: Use
3620 TARGET_DEFAULT_NORETURN.
3622 2014-02-19 Tom Tromey <tromey@redhat.com>
3624 * target-delegates.c: Rebuild.
3625 * target.c (target_insn_history): Unconditionally delegate.
3626 * target.h (struct target_ops) <to_insn_history>: Use
3627 TARGET_DEFAULT_NORETURN.
3629 2014-02-19 Tom Tromey <tromey@redhat.com>
3631 * target-delegates.c: Rebuild.
3632 * target.c (target_insn_history_from): Unconditionally delegate.
3633 * target.h (struct target_ops) <to_insn_history_from>: Use
3634 TARGET_DEFAULT_NORETURN.
3636 2014-02-19 Tom Tromey <tromey@redhat.com>
3638 * target-delegates.c: Rebuild.
3639 * target.c (target_insn_history_range): Unconditionally delegate.
3640 * target.h (struct target_ops) <to_insn_history_range>: Use
3641 TARGET_DEFAULT_NORETURN.
3643 2014-02-19 Tom Tromey <tromey@redhat.com>
3645 * target-delegates.c: Rebuild.
3646 * target.c (target_call_history): Unconditionally delegate.
3647 * target.h (struct target_ops) <to_call_history>: Use
3648 TARGET_DEFAULT_NORETURN.
3650 2014-02-19 Tom Tromey <tromey@redhat.com>
3652 * target-delegates.c: Rebuild.
3653 * target.c (target_call_history_from): Unconditionally delegate.
3654 * target.h (struct target_ops) <to_call_history_from>: Use
3655 TARGET_DEFAULT_NORETURN.
3657 2014-02-19 Tom Tromey <tromey@redhat.com>
3659 * target-delegates.c: Rebuild.
3660 * target.c (target_call_history_range): Unconditionally delegate.
3661 * target.h (struct target_ops) <to_call_history_range>: Use
3662 TARGET_DEFAULT_NORETURN.
3664 2014-02-19 Tom Tromey <tromey@redhat.com>
3666 * target-delegates.c: Rebuild.
3667 * target.c (target_verify_memory): Unconditionally delegate.
3668 * target.h (struct target_ops) <to_verify_memory>: Use
3669 TARGET_DEFAULT_NORETURN.
3671 2014-02-19 Tom Tromey <tromey@redhat.com>
3673 * target-delegates.c: Rebuild.
3674 * target.c (target_core_of_thread): Unconditionally delegate.
3675 * target.h (struct target_ops) <to_core_of_thread>: Use
3676 TARGET_DEFAULT_RETURN.
3678 2014-02-19 Tom Tromey <tromey@redhat.com>
3680 * target-delegates.c: Rebuild.
3681 * target.c (target_flash_done): Unconditionally delegate.
3682 * target.h (struct target_ops) <to_flash_done>: Use
3683 TARGET_DEFAULT_NORETURN.
3685 2014-02-19 Tom Tromey <tromey@redhat.com>
3687 * target-delegates.c: Rebuild.
3688 * target.c (target_flash_erase): Unconditionally delegate.
3689 * target.h (struct target_ops) <to_flash_erase>: Use
3690 TARGET_DEFAULT_NORETURN.
3692 2014-02-19 Tom Tromey <tromey@redhat.com>
3694 * target-delegates.c: Rebuild.
3695 * target.c (target_get_section_table): Unconditionally delegate.
3696 * target.h (struct target_ops) <to_get_section_table>: Use
3697 TARGET_DEFAULT_RETURN.
3699 2014-02-19 Tom Tromey <tromey@redhat.com>
3701 * target-delegates.c: Rebuild.
3702 * target.c (target_pid_to_str): Unconditionally delegate.
3703 (init_dummy_target): Don't initialize to_pid_to_str.
3704 (default_pid_to_str): Rename from dummy_pid_to_str.
3705 * target.h (struct target_ops) <to_pid_to_str>: Use
3706 TARGET_DEFAULT_FUNC.
3708 2014-02-19 Tom Tromey <tromey@redhat.com>
3710 * target-delegates.c: Rebuild.
3711 * target.c (target_find_new_threads): Unconditionally delegate.
3712 * target.h (struct target_ops) <to_find_new_threads>: Use
3713 TARGET_DEFAULT_RETURN.
3715 2014-02-19 Tom Tromey <tromey@redhat.com>
3717 * target-delegates.c: Rebuild.
3718 * target.c (target_program_signals): Unconditionally delegate.
3719 * target.h (struct target_ops) <to_program_signals>: Use
3720 TARGET_DEFAULT_IGNORE.
3722 2014-02-19 Tom Tromey <tromey@redhat.com>
3724 * target-delegates.c: Rebuild.
3725 * target.c (target_pass_signals): Unconditionally delegate.
3726 * target.h (struct target_ops) <to_pass_signals>: Use
3727 TARGET_DEFAULT_IGNORE.
3729 2014-02-19 Tom Tromey <tromey@redhat.com>
3731 * target-delegates.c: Rebuild.
3732 * target.c (default_mourn_inferior): New function.
3733 (target_mourn_inferior): Unconditionally delegate.
3734 * target.h (struct target_ops) <to_mourn_inferior>: Use
3735 TARGET_DEFAULT_FUNC.
3737 2014-02-19 Tom Tromey <tromey@redhat.com>
3739 * target-delegates.c: Rebuild.
3740 * target.c (default_follow_fork): New function.
3741 (target_follow_fork): Unconditionally delegate.
3742 * target.h (struct target_ops) <to_follow_fork>: Use
3743 TARGET_DEFAULT_FUNC.
3745 2014-02-19 Tom Tromey <tromey@redhat.com>
3747 * target-delegates.c: Rebuild.
3748 * target.c (target_kill): Unconditionally delegate.
3749 * target.h (struct target_ops) <to_kill>: Use
3750 TARGET_DEFAULT_NORETURN.
3752 2014-02-19 Tom Tromey <tromey@redhat.com>
3754 * target-delegates.c: Rebuild.
3755 * target.c (target_masked_watch_num_registers): Unconditionally
3757 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3758 Use TARGET_DEFAULT_RETURN.
3760 2014-02-19 Tom Tromey <tromey@redhat.com>
3762 * target-delegates.c: Rebuild.
3763 * target.c (target_remove_mask_watchpoint): Unconditionally
3765 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3766 TARGET_DEFAULT_RETURN.
3768 2014-02-19 Tom Tromey <tromey@redhat.com>
3770 * target-delegates.c: Rebuild.
3771 * target.c (target_insert_mask_watchpoint): Unconditionally
3773 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3774 TARGET_DEFAULT_RETURN.
3776 2014-02-19 Tom Tromey <tromey@redhat.com>
3778 * target-delegates.c: Rebuild.
3779 * target.c (target_ranged_break_num_registers): Unconditionally
3781 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3782 Use TARGET_DEFAULT_RETURN.
3784 2014-02-19 Tom Tromey <tromey@redhat.com>
3786 * target-delegates.c: Rebuild.
3787 * target.c (target_fetch_registers): Unconditionally delegate.
3788 * target.h (struct target_ops) <to_fetch_registers>: Use
3789 TARGET_DEFAULT_NORETURN.
3791 2014-02-19 Tom Tromey <tromey@redhat.com>
3793 * target-delegates.c: Rebuild.
3794 * target.c (update_current_target): Don't inherit or default
3796 * target.h (struct target_ops) <to_stop>: Use
3797 TARGET_DEFAULT_IGNORE.
3799 2014-02-19 Tom Tromey <tromey@redhat.com>
3801 * target-delegates.c: Rebuild.
3802 * target.c (update_current_target): Don't inherit or default
3803 to_can_run_breakpoint_commands.
3804 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3805 Use TARGET_DEFAULT_RETURN.
3807 2014-02-19 Tom Tromey <tromey@redhat.com>
3809 * target-delegates.c: Rebuild.
3810 * target.c (update_current_target): Don't inherit or default
3811 to_supports_evaluation_of_breakpoint_conditions.
3812 * target.h (struct target_ops)
3813 <to_supports_evaluation_of_breakpoint_conditions>: Use
3814 TARGET_DEFAULT_RETURN.
3816 2014-02-19 Tom Tromey <tromey@redhat.com>
3818 * target-delegates.c: Rebuild.
3819 * target.c (update_current_target): Don't inherit or default
3820 to_augmented_libraries_svr4_read.
3821 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3822 Use TARGET_DEFAULT_RETURN.
3824 2014-02-19 Tom Tromey <tromey@redhat.com>
3826 * target-delegates.c: Rebuild.
3827 * target.c (update_current_target): Don't inherit or default
3829 * target.h (struct target_ops) <to_can_use_agent>: Use
3830 TARGET_DEFAULT_RETURN.
3832 2014-02-19 Tom Tromey <tromey@redhat.com>
3834 * target-delegates.c: Rebuild.
3835 * target.c (update_current_target): Don't inherit or default
3837 * target.h (struct target_ops) <to_use_agent>: Use
3838 TARGET_DEFAULT_NORETURN.
3840 2014-02-19 Tom Tromey <tromey@redhat.com>
3842 * target-delegates.c: Rebuild.
3843 * target.c (update_current_target): Don't inherit or default
3845 (return_null): Remove.
3846 * target.h (struct target_ops) <to_traceframe_info>: Use
3847 TARGET_DEFAULT_RETURN.
3849 2014-02-19 Tom Tromey <tromey@redhat.com>
3851 * target-delegates.c: Rebuild.
3852 * target.c (update_current_target): Don't inherit or default
3853 to_static_tracepoint_markers_by_strid.
3854 * target.h (struct target_ops)
3855 <to_static_tracepoint_markers_by_strid>: Use
3856 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
3863 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3864 Use TARGET_DEFAULT_RETURN.
3866 2014-02-19 Tom Tromey <tromey@redhat.com>
3868 * target-delegates.c: Rebuild.
3869 * target.c (update_current_target): Don't inherit or default
3871 * target.h (struct target_ops) <to_set_permissions>: 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
3879 * target.h (struct target_ops) <to_get_tib_address>: Use
3880 TARGET_DEFAULT_NORETURN.
3882 2014-02-19 Tom Tromey <tromey@redhat.com>
3884 * target-delegates.c: Rebuild.
3885 * target.c (update_current_target): Don't inherit or default
3887 * target.h (struct target_ops) <to_set_trace_notes>: Use
3888 TARGET_DEFAULT_RETURN.
3890 2014-02-19 Tom Tromey <tromey@redhat.com>
3892 * target-delegates.c: Rebuild.
3893 * target.c (update_current_target): Don't initialize
3894 to_set_trace_buffer_size.
3895 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3896 TARGET_DEFAULT_IGNORE.
3898 2014-02-19 Tom Tromey <tromey@redhat.com>
3900 * target-delegates.c: Rebuild.
3901 * target.c (update_current_target): Don't inherit or default
3902 to_set_circular_trace_buffer.
3903 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3904 TARGET_DEFAULT_IGNORE.
3906 2014-02-19 Tom Tromey <tromey@redhat.com>
3908 * target-delegates.c: Rebuild.
3909 * target.c (update_current_target): Don't inherit or default
3910 to_set_disconnected_tracing.
3911 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3912 TARGET_DEFAULT_IGNORE.
3914 2014-02-19 Tom Tromey <tromey@redhat.com>
3916 * target-delegates.c: Rebuild.
3917 * target.c (update_current_target): Don't inherit or default
3918 to_get_min_fast_tracepoint_insn_len.
3919 (return_minus_one): Remove.
3920 * target.h (struct target_ops)
3921 <to_get_min_fast_tracepoint_insn_len>: 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
3927 to_get_raw_trace_data.
3928 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3929 TARGET_DEFAULT_NORETURN.
3931 2014-02-19 Tom Tromey <tromey@redhat.com>
3933 * target-delegates.c: Rebuild.
3934 * target.c (update_current_target): Don't inherit or default
3935 to_upload_trace_state_variables.
3936 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3937 Use TARGET_DEFAULT_RETURN.
3939 2014-02-19 Tom Tromey <tromey@redhat.com>
3941 * target-delegates.c: Rebuild.
3942 * target.c (update_current_target): Don't inherit or default
3943 to_upload_tracepoints.
3944 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3945 TARGET_DEFAULT_RETURN.
3947 2014-02-19 Tom Tromey <tromey@redhat.com>
3949 * target-delegates.c: Rebuild.
3950 * target.c (update_current_target): Don't inherit or default
3952 * target.h (struct target_ops) <to_save_trace_data>: Use
3953 TARGET_DEFAULT_NORETURN.
3955 2014-02-19 Tom Tromey <tromey@redhat.com>
3957 * target-delegates.c: Rebuild.
3958 * target.c (update_current_target): Don't inherit or default
3959 to_get_trace_state_variable_value.
3960 * target.h (struct target_ops)
3961 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3963 2014-02-19 Tom Tromey <tromey@redhat.com>
3965 * target-delegates.c: Rebuild.
3966 * target.c (update_current_target): Don't inherit or default
3968 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
3975 * target.h (struct target_ops) <to_trace_stop>: 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_get_tracepoint_status.
3983 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
3991 * target.h (struct target_ops) <to_get_trace_status>: Use
3992 TARGET_DEFAULT_RETURN.
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
3999 * target.h (struct target_ops) <to_trace_start>: Use
4000 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
4007 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4008 Use 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
4014 to_disable_tracepoint.
4015 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4016 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
4023 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4024 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
4031 * target.h (struct target_ops) <to_download_trace_state_variable>:
4032 Use TARGET_DEFAULT_NORETURN.
4034 2014-02-19 Tom Tromey <tromey@redhat.com>
4036 * target-delegates.c: Rebuild.
4037 * target.c (update_current_target): Don't inherit or default
4038 to_can_download_tracepoint.
4039 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4040 TARGET_DEFAULT_RETURN.
4042 2014-02-19 Tom Tromey <tromey@redhat.com>
4044 * target-delegates.c: Rebuild.
4045 * target.c (update_current_target): Don't inherit or default
4046 to_download_tracepoint.
4047 * target.h (struct target_ops) <to_download_tracepoint>: Use
4048 TARGET_DEFAULT_NORETURN.
4050 2014-02-19 Tom Tromey <tromey@redhat.com>
4052 * target-delegates.c: Rebuild.
4053 * target.c (update_current_target): Don't inherit or default
4055 * target.h (struct target_ops) <to_trace_init>: Use
4056 TARGET_DEFAULT_RETURN.
4058 2014-02-19 Tom Tromey <tromey@redhat.com>
4060 * target-delegates.c: Rebuild.
4061 * target.c (update_current_target): Don't inherit or default
4062 to_supports_string_tracing.
4063 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4064 TARGET_DEFAULT_RETURN.
4066 2014-02-19 Tom Tromey <tromey@redhat.com>
4068 * target-delegates.c: Rebuild.
4069 * target.c (update_current_target): Don't inherit or default
4070 to_supports_enable_disable_tracepoint.
4071 * target.h (struct target_ops)
4072 <to_supports_enable_disable_tracepoint>: Use
4073 TARGET_DEFAULT_RETURN.
4075 2014-02-19 Tom Tromey <tromey@redhat.com>
4077 * target-delegates.c: Rebuild.
4078 * target.c (update_current_target): Don't inherit or default
4079 to_supports_multi_process.
4080 * target.h (struct target_ops) <to_supports_multi_process>: Use
4081 TARGET_DEFAULT_RETURN.
4083 2014-02-19 Tom Tromey <tromey@redhat.com>
4085 * target-delegates.c: Rebuild.
4086 * target.c (update_current_target): Don't inherit or default
4087 to_get_ada_task_ptid.
4088 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4089 TARGET_DEFAULT_FUNC.
4091 2014-02-19 Tom Tromey <tromey@redhat.com>
4093 * target-delegates.c: Rebuild.
4094 * target.c (update_current_target): Don't inherit or default
4095 to_thread_architecture.
4096 * target.h (struct target_ops) <to_thread_architecture>: Use
4097 TARGET_DEFAULT_FUNC.
4099 2014-02-19 Tom Tromey <tromey@redhat.com>
4101 * target-delegates.c: Rebuild.
4102 * target.c (update_current_target): Don't inherit or default
4103 to_execution_direction.
4104 * target.h (struct target_ops) <to_execution_direction>: Use
4105 TARGET_DEFAULT_FUNC.
4107 2014-02-19 Tom Tromey <tromey@redhat.com>
4109 * target-delegates.c: Rebuild.
4110 * target.c (update_current_target): Don't inherit or default
4111 to_can_execute_reverse.
4112 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4113 TARGET_DEFAULT_RETURN.
4114 (target_can_execute_reverse): Unconditionally delegate.
4116 2014-02-19 Tom Tromey <tromey@redhat.com>
4118 * target-delegates.c: Rebuild.
4119 * target.c (update_current_target): Don't inherit or default
4121 (dummy_goto_bookmark): Remove.
4122 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4123 * target.h (struct target_ops) <to_goto_bookmark>: Use
4124 TARGET_DEFAULT_NORETURN.
4126 2014-02-19 Tom Tromey <tromey@redhat.com>
4128 * target-delegates.c: Rebuild.
4129 * target.c (update_current_target): Don't inherit or default
4131 (dummy_get_bookmark): Remove.
4132 (init_dummy_target): Don't inherit or default to_get_bookmark.
4133 * target.h (struct target_ops) <to_get_bookmark>: Use
4134 TARGET_DEFAULT_NORETURN
4136 2014-02-19 Tom Tromey <tromey@redhat.com>
4138 * target-delegates.c: Rebuild.
4139 * target.c (update_current_target): Don't inherit or default
4140 to_make_corefile_notes.
4141 (init_dummy_target): Don't initialize to_make_corefile_notes.
4142 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4143 TARGET_DEFAULT_FUNC.
4145 2014-02-19 Tom Tromey <tromey@redhat.com>
4147 * target-delegates.c: Rebuild.
4148 * target.c (update_current_target): Don't inherit or default
4149 to_find_memory_regions.
4150 (init_dummy_target): Don't initialize to_find_memory_regions.
4151 * target.h (struct target_ops) <to_find_memory_regions>: Use
4152 TARGET_DEFAULT_FUNC.
4154 2014-02-19 Tom Tromey <tromey@redhat.com>
4156 * target-delegates.c: Rebuild.
4157 * target.c (update_current_target): Don't inherit or default
4159 * target.h (struct target_ops) <to_log_command>: Use
4160 TARGET_DEFAULT_IGNORE.
4161 (target_log_command): Unconditionally delegate.
4163 2014-02-19 Tom Tromey <tromey@redhat.com>
4165 * target-delegates.c: Rebuild.
4166 * target.c (update_current_target): Don't inherit or default
4167 to_pid_to_exec_file.
4168 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4169 TARGET_DEFAULT_RETURN.
4171 2014-02-19 Tom Tromey <tromey@redhat.com>
4173 * target-delegates.c: Rebuild.
4174 * target.c (update_current_target): Don't inherit or default
4176 (target_thread_name): Unconditionally delegate.
4177 * target.h (struct target_ops) <to_thread_name>: Use
4178 TARGET_DEFAULT_RETURN.
4180 2014-02-19 Tom Tromey <tromey@redhat.com>
4182 * target-delegates.c: Rebuild.
4183 * target.c (update_current_target): Don't inherit or default
4184 to_extra_thread_info.
4185 * target.h (struct target_ops) <to_extra_thread_info>: Use
4186 TARGET_DEFAULT_RETURN.
4188 2014-02-19 Tom Tromey <tromey@redhat.com>
4190 * target-delegates.c: Rebuild.
4191 * target.c (update_current_target): Don't inherit or default
4193 * target.h (struct target_ops) <to_has_exited>: Use
4194 TARGET_DEFAULT_RETURN..
4196 2014-02-19 Tom Tromey <tromey@redhat.com>
4198 * target-delegates.c: Rebuild.
4199 * target.c (update_current_target): Don't inherit or default
4200 to_set_syscall_catchpoint.
4201 (return_one): Remove.
4202 * target.h (struct target_ops) <to_set_syscall_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_exec_catchpoint.
4210 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4211 TARGET_DEFAULT_RETURN.
4213 2014-01-08 Tom Tromey <tromey@redhat.com>
4215 * target-delegates.c: Rebuild.
4216 * target.c (update_current_target): Don't inherit or default
4217 to_insert_exec_catchpoint.
4218 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4219 TARGET_DEFAULT_RETURN.
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
4225 to_remove_vfork_catchpoint.
4226 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4227 TARGET_DEFAULT_RETURN.
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
4233 to_insert_vfork_catchpoint.
4234 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4235 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
4242 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4243 TARGET_DEFAULT_RETURN.
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
4249 to_insert_fork_catchpoint.
4250 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4251 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
4258 * target.h (struct target_ops) <to_post_startup_inferior>: 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
4266 * target.h (struct target_ops) <to_load>: Use
4267 TARGET_DEFAULT_NORETURN.
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_info>: Use
4275 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
4282 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4283 TARGET_DEFAULT_IGNORE.
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
4290 * target.h (struct target_ops) <to_terminal_ours>: Use
4291 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
4298 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4299 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
4306 * target.h (struct target_ops) <to_terminal_inferior>: Use
4307 TARGET_DEFAULT_IGNORE.
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
4314 * target.h (struct target_ops) <to_terminal_init>: Use
4315 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
4322 * target.h (struct target_ops)
4323 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
4330 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4331 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
4338 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4339 Use TARGET_DEFAULT_FUNC.
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
4345 to_remove_watchpoint.
4346 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4347 TARGET_DEFAULT_NORETURN.
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
4353 to_insert_watchpoint.
4354 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4355 TARGET_DEFAULT_RETURN.
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
4361 to_remove_hw_breakpoint.
4362 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4363 TARGET_DEFAULT_RETURN.
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
4369 to_insert_hw_breakpoint.
4370 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4371 TARGET_DEFAULT_RETURN.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target-delegates.c: Rebuild.
4376 * target.c (update_current_target): Don't inherit or default
4377 to_can_use_hw_breakpoint.
4378 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4379 TARGET_DEFAULT_RETURN.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target-delegates.c: Rebuild.
4384 * target.c (update_current_target): Don't inherit or default
4386 * target.h (struct target_ops) <to_files_info>: Use
4387 TARGET_DEFAULT_IGNORE.
4389 2014-02-19 Tom Tromey <tromey@redhat.com>
4391 * target-delegates.c: Rebuild.
4392 * target.c (update_current_target): Don't inherit or default
4394 * target.h (struct target_ops) <to_store>: Use
4395 TARGET_DEFAULT_NORETURN.
4397 2014-02-19 Tom Tromey <tromey@redhat.com>
4399 * target-delegates.c: Rebuild.
4400 * target.c (update_current_target): Don't inherit or default
4402 * target.h (struct target_ops) <to_post_attach>: Use
4403 TARGET_DEFAULT_IGNORE.
4405 2014-02-19 Tom Tromey <tromey@redhat.com>
4407 * target-delegates.c: Rebuild.
4408 * target.c (update_current_target): Don't inherit or default
4410 (default_rcmd): New function.
4411 (do_monitor_command): Unconditionally delegate.
4412 * target.h (struct target_ops) <to_rmcd>: Use
4413 TARGET_DEFAULT_FUNC.
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target-delegates.c: Rebuild.
4418 * target.c (init_dummy_target): Don't initialize to_attach.
4419 (target_attach): Unconditionally delegate.
4420 * target.h (struct target_ops) <to_attach>: Use
4421 TARGET_DEFAULT_FUNC.
4423 2014-02-19 Tom Tromey <tromey@redhat.com>
4425 * target-delegates.c: Rebuild.
4426 * target.c (target_detach): Unconditionally delegate.
4427 (init_dummy_target): Don't initialize to_detach.
4428 * target.h (struct target_ops) <to_detach>: Use
4429 TARGET_DEFAULT_IGNORE.
4431 2014-02-19 Tom Tromey <tromey@redhat.com>
4433 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4435 (target_augmented_libraries_svr4_read): Add argument.
4436 * target.c (update_current_target): Update.
4437 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4440 2014-02-19 Tom Tromey <tromey@redhat.com>
4442 * target.h (struct target_ops) <to_call_history_range>: Add
4444 * target.c (target_call_history_range): Add argument.
4445 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4447 (record_btrace_call_history_from): Update.
4449 2014-02-19 Tom Tromey <tromey@redhat.com>
4451 * target.h (struct target_ops) <to_call_history_from>: Add
4453 * target.c (target_call_history_from): Add argument.
4454 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4457 2014-02-19 Tom Tromey <tromey@redhat.com>
4459 * target.h (struct target_ops) <to_call_history>: Add argument.
4460 * target.c (target_call_history): Add argument.
4461 * record-btrace.c (record_btrace_call_history): Add 'self'
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target.h (struct target_ops) <to_insn_history_range>: Add
4468 * target.c (target_insn_history_range): Add argument.
4469 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4471 (record_btrace_insn_history_from): Update.
4473 2014-02-19 Tom Tromey <tromey@redhat.com>
4475 * target.h (struct target_ops) <to_insn_history_from>: Add
4477 * target.c (target_insn_history_from): Add argument.
4478 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4481 2014-02-19 Tom Tromey <tromey@redhat.com>
4483 * target.h (struct target_ops) <to_insn_history>: Add argument.
4484 * target.c (target_insn_history): Add argument.
4485 * record-btrace.c (record_btrace_insn_history): Add 'self'
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target.h (struct target_ops) <to_goto_record>: Add argument.
4491 * target.c (target_goto_record): Add argument.
4492 * record-full.c (record_full_goto): Add 'self' argument.
4493 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4495 2014-02-19 Tom Tromey <tromey@redhat.com>
4497 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4498 * target.c (target_goto_record_end): Add argument.
4499 * record-full.c (record_full_goto_end): Add 'self' argument.
4500 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4502 2014-02-19 Tom Tromey <tromey@redhat.com>
4504 * target.h (struct target_ops) <to_goto_record_begin>: Add
4506 * target.c (target_goto_record_begin): Add argument.
4507 * record-full.c (record_full_goto_begin): Add 'self' argument.
4508 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target.h (struct target_ops) <to_record_is_replaying>: Add
4515 * target.c (target_record_is_replaying): Add argument.
4516 * record-full.c (record_full_is_replaying): Add 'self' argument.
4517 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4519 (record_btrace_xfer_partial, record_btrace_store_registers)
4520 (record_btrace_prepare_to_store, record_btrace_resume)
4521 (record_btrace_wait, record_btrace_decr_pc_after_break)
4522 (record_btrace_find_new_threads, record_btrace_thread_alive):
4525 2014-02-19 Tom Tromey <tromey@redhat.com>
4527 * target.h (struct target_ops) <to_delete_record>: Add argument.
4528 * target.c (target_delete_record): Add argument.
4529 * record-full.c (record_full_delete): Add 'self' argument.
4531 2014-02-19 Tom Tromey <tromey@redhat.com>
4533 * target.h (struct target_ops) <to_save_record>: Add argument.
4534 * target.c (target_save_record): Add argument.
4535 * record-full.c (record_full_save): Add 'self' argument.
4536 (record_full_save): Add 'self' argument.
4538 2014-02-19 Tom Tromey <tromey@redhat.com>
4540 * target.h (struct target_ops) <to_info_record>: Add argument.
4541 * target.c (target_info_record): Add argument.
4542 * record.c (info_record_command): Add argument.
4543 * record-full.c (record_full_info): Add 'self' argument.
4544 * record-btrace.c (record_btrace_info): Add 'self' argument.
4546 2014-02-19 Tom Tromey <tromey@redhat.com>
4548 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4549 * target.c (target_stop_recording): Add argument.
4550 * record.c (record_stop): Add argument.
4551 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4554 2014-02-19 Tom Tromey <tromey@redhat.com>
4556 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4557 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4558 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4560 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4561 (_initialize_amd64_linux_nat): Use it.
4562 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4563 (_initialize_i386_linux_nat): Use it.
4565 2014-02-19 Tom Tromey <tromey@redhat.com>
4567 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4568 * target.c (target_teardown_btrace): Add argument.
4569 * remote.c (remote_teardown_btrace): Add 'self' argument.
4570 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4572 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4577 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4578 * target.c (target_disable_btrace): Add argument.
4579 * remote.c (remote_disable_btrace): Add 'self' argument.
4580 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4582 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4585 2014-02-19 Tom Tromey <tromey@redhat.com>
4587 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4588 * target.c (target_enable_btrace): Add argument.
4589 * remote.c (remote_enable_btrace): Add 'self' argument.
4590 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4592 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4595 2014-02-19 Tom Tromey <tromey@redhat.com>
4597 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4598 (target_can_use_agent): Add argument.
4599 * target.c (update_current_target): Update.
4600 * remote.c (remote_can_use_agent): Add 'self' argument.
4601 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4603 2014-02-19 Tom Tromey <tromey@redhat.com>
4605 * target.h (struct target_ops) <to_use_agent>: Add argument.
4606 (target_use_agent): Add argument.
4607 * target.c (update_current_target): Update.
4608 * remote.c (remote_use_agent): Add 'self' argument.
4609 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4611 2014-02-19 Tom Tromey <tromey@redhat.com>
4613 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4614 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4615 (target_traceframe_info): Add argument.
4616 * target.c (update_current_target): Update.
4617 * remote.c (remote_traceframe_info): Add 'self' argument.
4618 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target.h (target_static_tracepoint_markers_by_strid): Add
4624 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4626 * target.c (update_current_target): Update.
4627 * remote.c (struct target_ops)
4628 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4629 * linux-nat.c (struct target_ops)
4630 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4636 (target_static_tracepoint_marker_at): Add argument.
4637 * target.c (update_current_target): Update.
4638 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4644 (target_set_permissions): Add argument.
4645 * target.c (update_current_target): Update.
4646 * remote.c (remote_set_permissions): Add 'self' argument.
4647 (remote_start_remote): Update.
4649 2014-02-19 Tom Tromey <tromey@redhat.com>
4651 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4652 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4653 (target_get_tib_address): Add argument.
4654 * target.c (update_current_target): Update.
4655 * remote.c (remote_get_tib_address): Add 'self' argument.
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4660 (target_set_trace_notes): Add argument.
4661 * target.c (update_current_target): Update.
4662 * remote.c (remote_set_trace_notes): Add 'self' argument.
4664 2014-02-19 Tom Tromey <tromey@redhat.com>
4666 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4668 (target_set_trace_buffer_size): Add argument.
4669 * target.c (update_current_target): Update.
4670 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4672 2014-02-19 Tom Tromey <tromey@redhat.com>
4674 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4676 (target_set_circular_trace_buffer): Add argument.
4677 * target.c (update_current_target): Update.
4678 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4685 (target_set_disconnected_tracing): Add argument.
4686 * target.c (update_current_target): Update.
4687 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4689 2014-02-19 Tom Tromey <tromey@redhat.com>
4691 * target.h (struct target_ops)
4692 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4693 (target_get_min_fast_tracepoint_insn_len): Add argument.
4694 * target.c (update_current_target): Update.
4695 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4698 2014-02-19 Tom Tromey <tromey@redhat.com>
4700 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4702 (target_get_raw_trace_data): Add argument.
4703 * target.c (update_current_target): Update.
4704 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4706 2014-02-19 Tom Tromey <tromey@redhat.com>
4708 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4710 (target_upload_trace_state_variables): Add argument.
4711 * target.c (update_current_target): Update.
4712 * remote.c (remote_upload_trace_state_variables): Add 'self'
4714 (remote_start_remote): Update.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4720 (target_upload_tracepoints): Add argument.
4721 * target.c (update_current_target): Update.
4722 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4723 (remote_start_remote): Update.
4725 2014-02-19 Tom Tromey <tromey@redhat.com>
4727 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4728 (target_save_trace_data): Add argument.
4729 * target.c (update_current_target): Update.
4730 * remote.c (remote_save_trace_data): Add 'self' argument.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4736 * target.h (struct target_ops)
4737 <to_get_trace_state_variable_value>: Add argument.
4738 (target_get_trace_state_variable_value): Add argument.
4739 * target.c (update_current_target): Update.
4740 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4742 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4744 2014-02-19 Tom Tromey <tromey@redhat.com>
4746 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4747 * target.h (struct target_ops) <to_trace_find>: Add argument.
4748 (target_trace_find): Add argument.
4749 * target.c (update_current_target): Update.
4750 * remote.c (remote_trace_find): Add 'self' argument.
4751 * ctf.c (ctf_trace_find): Add 'self' argument.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4756 (target_trace_stop): Add argument.
4757 * target.c (update_current_target): Update.
4758 * remote.c (remote_trace_stop): Add 'self' argument.
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4763 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4765 (target_get_tracepoint_status): Add argument.
4766 * target.c (update_current_target): Update.
4767 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4769 2014-02-19 Tom Tromey <tromey@redhat.com>
4771 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4772 * target.h (struct target_ops) <to_get_trace_status>: Add
4774 (target_get_trace_status): Add argument.
4775 * target.c (update_current_target): Update.
4776 * remote.c (remote_get_trace_status): Add 'self' argument.
4777 (remote_start_remote, remote_can_download_tracepoint): Update.
4778 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4780 2014-02-19 Tom Tromey <tromey@redhat.com>
4782 * target.h (struct target_ops) <to_trace_start>: Add argument.
4783 (target_trace_start): Add argument.
4784 * target.c (update_current_target): Update.
4785 * remote.c (remote_trace_start): Add 'self' argument.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4791 (target_trace_set_readonly_regions): Add argument.
4792 * target.c (update_current_target): Update.
4793 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4796 2014-02-19 Tom Tromey <tromey@redhat.com>
4798 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4800 (target_disable_tracepoint): Add argument.
4801 * target.c (update_current_target): Update.
4802 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4804 2014-02-19 Tom Tromey <tromey@redhat.com>
4806 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4808 (target_enable_tracepoint): Add argument.
4809 * target.c (update_current_target): Update.
4810 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target.h (struct target_ops) <to_download_trace_state_variable>:
4816 (target_download_trace_state_variable): Add argument.
4817 * target.c (update_current_target): Update.
4818 * remote.c (remote_download_trace_state_variable): Add 'self'
4821 2014-02-19 Tom Tromey <tromey@redhat.com>
4823 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4825 (target_can_download_tracepoint): Add argument.
4826 * target.c (update_current_target): Update.
4827 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4829 2014-02-19 Tom Tromey <tromey@redhat.com>
4831 * target.h (struct target_ops) <to_download_tracepoint>: Add
4833 (target_download_tracepoint): Add argument.
4834 * target.c (update_current_target): Update.
4835 * remote.c (remote_download_tracepoint): Add 'self' argument.
4837 2014-02-19 Tom Tromey <tromey@redhat.com>
4839 * target.h (struct target_ops) <to_trace_init>: Add argument.
4840 (target_trace_init): Add argument.
4841 * target.c (update_current_target): Update.
4842 * remote.c (remote_trace_init): Add 'self' argument.
4844 2014-02-19 Tom Tromey <tromey@redhat.com>
4846 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4847 * target.c (target_fileio_readlink): Add argument.
4848 * remote.c (remote_hostio_readlink): Add 'self' argument.
4849 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4854 * target.c (target_fileio_unlink): Add argument.
4855 * remote.c (remote_hostio_unlink): Add 'self' argument.
4856 (remote_file_delete): Update.
4857 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4859 2014-02-19 Tom Tromey <tromey@redhat.com>
4861 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4862 * target.c (target_fileio_close): Add argument.
4863 * remote.c (remote_hostio_close): Add 'self' argument.
4864 (remote_hostio_close_cleanup): Update.
4865 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4867 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4869 2014-02-19 Tom Tromey <tromey@redhat.com>
4871 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4872 * target.c (target_fileio_pread): Add argument.
4873 * remote.c (remote_hostio_pread): Add 'self' argument.
4874 (remote_bfd_iovec_pread, remote_file_get): Update.
4875 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4877 2014-02-19 Tom Tromey <tromey@redhat.com>
4879 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4880 * target.c (target_fileio_pwrite): Add argument.
4881 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4882 (remote_file_put): Update.
4883 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4885 2014-02-19 Tom Tromey <tromey@redhat.com>
4887 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4888 * target.c (target_fileio_open): Add argument.
4889 * remote.c (remote_hostio_open): Add 'self' argument.
4890 (remote_bfd_iovec_open): Add 'self' argument.
4891 (remote_file_put): Add 'self' argument.
4892 (remote_file_get): Add 'self' argument.
4893 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4895 2014-02-19 Tom Tromey <tromey@redhat.com>
4897 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4899 (target_can_run_breakpoint_commands): Add argument.
4900 * target.c (update_current_target): Update.
4901 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4903 (remote_insert_breakpoint): Add 'self' argument.
4904 (remote_insert_hw_breakpoint): Add 'self' argument.
4905 (remote_can_run_breakpoint_commands): Add 'self' argument.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target.h (struct target_ops)
4910 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4911 (target_supports_evaluation_of_breakpoint_conditions): Add
4913 * target.c (update_current_target): Update.
4914 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4916 (remote_insert_breakpoint): Add 'self' argument.
4917 (remote_insert_hw_breakpoint): Add 'self' argument.
4918 (remote_supports_cond_breakpoints): Add 'self' argument.
4920 2014-02-19 Tom Tromey <tromey@redhat.com>
4922 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4924 (target_supports_string_tracing): Add argument.
4925 * target.c (update_current_target): Update.
4926 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4928 2014-02-19 Tom Tromey <tromey@redhat.com>
4930 * target.h (struct target_ops)
4931 <to_supports_disable_randomization>: Add argument.
4932 * target.c (find_default_supports_disable_randomization): Add
4934 (target_supports_disable_randomization): Add argument.
4935 (find_default_supports_disable_randomization): Add 'self'
4937 * remote.c (extended_remote_supports_disable_randomization): Add
4939 (remote_supports_disable_randomization): Add 'self' argument.
4940 (extended_remote_create_inferior): Update.
4941 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target.h (struct target_ops)
4947 <to_supports_enable_disable_tracepoint>: Add argument.
4948 (target_supports_enable_disable_tracepoint): Add argument.
4949 * target.c (update_current_target): Update.
4950 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target.h (struct target_ops) <to_supports_multi_process>: Add
4957 (target_supports_multi_process): Add argument.
4958 * target.c (update_current_target): Update.
4959 * remote.c (remote_supports_multi_process): Add 'self' argument.
4960 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4962 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target.h (struct target_ops) <to_execution_direction>: Add
4969 (target_execution_direction): Add argument.
4970 * target.c (default_execution_direction): Add 'self' argument.
4971 * record-full.c (record_full_execution_direction): Add 'self'
4974 2014-02-19 Tom Tromey <tromey@redhat.com>
4976 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4978 (target_can_execute_reverse): Add argument.
4979 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4980 * record-full.c (record_full_can_execute_reverse): Add 'self'
4982 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4988 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4990 (target_get_ada_task_ptid): Add argument.
4991 * target.c (update_current_target): Update.
4992 (default_get_ada_task_ptid): Add 'self' argument.
4993 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4994 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4995 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4997 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4999 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5001 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5003 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5004 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5007 2014-02-19 Tom Tromey <tromey@redhat.com>
5009 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5010 (target_goto_bookmark): Add argument.
5011 * target.c (dummy_goto_bookmark): Add 'self' argument.
5012 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5017 (target_get_bookmark): Add argument.
5018 * target.c (dummy_get_bookmark): Add 'self' argument.
5019 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5021 2014-02-19 Tom Tromey <tromey@redhat.com>
5023 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5025 (target_make_corefile_notes): Add argument.
5026 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5027 * procfs.c (procfs_make_note_section): Add 'self' argument.
5028 (procfs_make_note_section): Add 'self' argument.
5029 (procfs_make_note_section): Add 'self' argument.
5030 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5032 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5033 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5034 * exec.c (exec_make_note_section): Add 'self' argument.
5035 (exec_make_note_section): Add 'self' argument.
5037 2014-02-19 Tom Tromey <tromey@redhat.com>
5039 * target.h (struct target_ops) <to_find_memory_regions>: Add
5041 (target_find_memory_regions): Add argument.
5042 * target.c (dummy_find_memory_regions): Add 'self' argument.
5043 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5044 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5045 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5046 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5047 * exec. (exec_do_find_memory_regions): New global.
5048 (exec_set_find_memory_regions): Rewrite.
5049 (exec_find_memory_regions): New function.
5050 (init_exec_ops): Use exec_find_memory_regions.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target.h (struct target_ops) <to_supports_non_stop>: Add
5056 * target.c (find_default_supports_non_stop): Add argument.
5057 (target_supports_non_stop): Add argument.
5058 (find_default_supports_non_stop): Add 'self' argument.
5059 * remote.c (remote_supports_non_stop): Add 'self' argument.
5060 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5062 2014-02-19 Tom Tromey <tromey@redhat.com>
5064 * target.h (struct target_ops) <to_log_command>: Add argument.
5065 (target_log_command): Add argument.
5066 * serial.h (serial_log_command): Add 'self' argument.
5067 * serial.c (serial_log_command): Add 'self' argument.
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5071 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5072 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5074 (target_pid_to_exec_file): Add argument.
5075 * target.c (debug_to_pid_to_exec_file): Add argument.
5076 (update_current_target): Update.
5077 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5078 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5079 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5080 (linux_handle_extended_wait): Update.
5081 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5082 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5083 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5084 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5086 2014-02-19 Tom Tromey <tromey@redhat.com>
5088 * target.h (struct target_ops) <to_rcmd>: Add argument.
5089 (target_rcmd): Add argument.
5090 * target.c (debug_to_rcmd): Add argument.
5091 (update_current_target, do_monitor_command): Update.
5092 * remote.c (remote_rcmd): Add 'self' argument.
5093 * monitor.c (monitor_rcmd): Add 'self' argument.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * windows-nat.c (windows_stop): Add 'self' argument.
5098 * target.h (struct target_ops) <to_stop>: Add argument.
5099 * target.c (target_stop): Add argument.
5100 (debug_to_stop): Add argument.
5101 (update_current_target): Update.
5102 * remote.c (remote_stop): Add 'self' argument.
5103 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5104 (gdbsim_cntrl_c): Update.
5105 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5106 * procfs.c (procfs_stop): Add 'self' argument.
5107 * nto-procfs.c (procfs_stop): Add 'self' argument.
5108 * monitor.c (monitor_stop): Add 'self' argument.
5109 (monitor_open): Update.
5110 * linux-nat.c (linux_nat_stop): Add argument.
5111 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5112 * gnu-nat.c (gnu_stop): Add 'self' argument.
5113 * darwin-nat.c (darwin_stop): Add 'self' argument.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target.h (struct target_ops) <to_thread_name>: Add argument.
5118 * target.c (target_thread_name): Add argument.
5119 (update_current_target): Update.
5120 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5122 2014-02-19 Tom Tromey <tromey@redhat.com>
5124 * target.h (struct target_ops) <to_extra_thread_info>: Add
5126 (target_extra_thread_info): Add argument.
5127 * target.c (update_current_target): Update.
5128 * remote.c (remote_threads_extra_info): Add 'self' argument.
5129 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5131 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5132 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5133 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5135 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5137 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5139 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target.h (struct target_ops) <to_program_signals>: Add argument.
5145 * target.c (target_program_signals): Add argument.
5146 * remote.c (remote_program_signals): Add 'self' argument.
5148 2014-02-19 Tom Tromey <tromey@redhat.com>
5150 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5151 * target.c (target_pass_signals): Add argument.
5152 * remote.c (remote_pass_signals): Add 'self' argument.
5153 (remote_start_remote): Update.
5154 * procfs.c (procfs_pass_signals): Add 'self' argument.
5155 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5156 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5157 (linux_nat_create_inferior, linux_nat_attach): Update.
5159 2014-02-19 Tom Tromey <tromey@redhat.com>
5161 * windows-nat.c (windows_can_run): Add 'self' argument.
5162 * target.h (struct target_ops) <to_can_run>: Add argument.
5163 (target_can_run): Add argument.
5164 * target.c (debug_to_can_run): Add argument.
5165 (update_current_target): Update.
5166 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5167 * inf-child.c (inf_child_can_run): Add 'self' argument.
5168 * go32-nat.c (go32_can_run): Add 'self' argument.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target.h (struct target_ops) <to_has_exited>: Add argument.
5173 (target_has_exited): Add argument.
5174 * target.c (debug_to_has_exited): Add argument.
5175 (update_current_target): Update.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5181 (target_set_syscall_catchpoint): Add argument.
5182 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5184 * target.c (update_current_target): Update.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5190 (target_remove_exec_catchpoint): Add argument.
5191 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5192 (update_current_target): Update.
5193 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5200 (target_insert_exec_catchpoint): Add argument.
5201 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5202 (update_current_target): Update.
5203 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5210 (target_remove_vfork_catchpoint): Add argument.
5211 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5212 (update_current_target): Update.
5213 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5216 2014-02-19 Tom Tromey <tromey@redhat.com>
5218 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5220 (target_insert_vfork_catchpoint): Add argument.
5221 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5222 (update_current_target): Update.
5223 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5226 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5230 (target_remove_fork_catchpoint): Add argument.
5231 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5232 (update_current_target): Update.
5233 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5236 2014-02-19 Tom Tromey <tromey@redhat.com>
5238 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5240 (target_insert_fork_catchpoint): Add argument.
5241 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5242 (update_current_target): Update.
5243 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5246 2014-02-19 Tom Tromey <tromey@redhat.com>
5248 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5250 (target_post_startup_inferior): Add argument.
5251 * target.c (debug_to_post_startup_inferior): Add argument.
5252 (update_current_target): Update.
5253 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5255 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5257 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5259 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5261 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5263 (super_post_startup_inferior): Likewise.
5264 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5266 (super_post_startup_inferior): Likewise.
5267 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5268 Add 'self' argument.
5269 (super_post_startup_inferior): Likewise.
5271 2014-02-19 Tom Tromey <tromey@redhat.com>
5273 * target.h (struct target_ops) <to_load>: Add argument.
5274 * target.c (target_load): Add argument.
5275 (debug_to_load): Add argument.
5276 (update_current_target): Update.
5277 * remote.c (remote_load): Add 'self' argument.
5278 * remote-sim.c (gdbsim_load): Add 'self' argument.
5279 * remote-mips.c (mips_load): Add 'self' argument.
5280 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5281 * monitor.c (monitor_load): Add 'self' argument.
5282 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5287 (target_terminal_info): Add argument.
5288 * target.c (debug_to_terminal_info): Add argument.
5289 (default_terminal_info): Likewise.
5290 * inflow.c (child_terminal_info): Add 'self' argument.
5291 * inferior.h (child_terminal_info): Add 'self' argument.
5292 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5294 2014-02-19 Tom Tromey <tromey@redhat.com>
5296 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5298 (target_terminal_save_ours): Add argument.
5299 * target.c (debug_to_terminal_save_ours): Add argument.
5300 (update_current_target): Update.
5301 * inflow.c (terminal_save_ours): Add 'self' argument.
5302 * inferior.h (terminal_save_ours): Add 'self' argument.
5304 2014-02-19 Tom Tromey <tromey@redhat.com>
5306 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5307 (target_terminal_ours): Add argument.
5308 * target.c (debug_to_terminal_ours): Add argument.
5309 (update_current_target): Update.
5310 * remote.c (remote_terminal_ours): Add 'self' argument.
5311 (remote_close): Update.
5312 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5313 * inflow.c (terminal_ours): Add 'self' argument.
5314 * inferior.h (terminal_ours): Add 'self' argument.
5315 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5317 2014-02-19 Pedro Alves <palves@redhat.com>
5318 Tom Tromey <tromey@redhat.com>
5320 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5322 (target_terminal_ours_for_output): Add argument.
5323 * target.c (debug_to_terminal_ours_for_output): Add argument.
5324 (update_current_target): Update.
5325 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5326 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5327 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5329 2014-02-19 Tom Tromey <tromey@redhat.com>
5331 * target.h (struct target_ops) <to_terminal_inferior>: Add
5333 * target.c (target_terminal_inferior): Add argument.
5334 (update_current_target): Update.
5335 * remote.c (remote_terminal_inferior): Add 'self' argument.
5336 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5337 * inflow.c (terminal_inferior): Add 'self' argument.
5338 * inferior.h (terminal_inferior): Add 'self' argument.
5339 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5340 (go32_terminal_inferior): Add 'self' argument.
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5345 (target_terminal_init): Add argument.
5346 * target.c (debug_to_terminal_init): Add argument.
5347 (update_current_target): Update.
5348 * inflow.c (terminal_init_inferior): Add 'self' argument.
5349 * inferior.h (terminal_init_inferior): Add 'self' argument.
5350 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5351 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5353 2014-02-19 Tom Tromey <tromey@redhat.com>
5355 * target.h (struct target_ops)
5356 <to_can_accel_watchpoint_condition>: Add argument.
5357 (target_can_accel_watchpoint_condition): Add argument.
5358 * target.c (debug_to_can_accel_watchpoint_condition): Add
5360 (update_current_target): Update.
5361 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5368 (target_region_ok_for_hw_watchpoint): Add argument.
5369 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5370 (default_region_ok_for_hw_watchpoint): Add argument.
5371 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5372 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5374 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5376 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5378 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5380 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5382 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5384 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5385 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5387 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5388 Add 'self' argument.
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5394 (target_insert_watchpoint): Add argument.
5395 * target.c (debug_to_insert_watchpoint): Add argument.
5396 (update_current_target): Update.
5397 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5398 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5399 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5400 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5401 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5402 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5404 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5405 (procfs_insert_hw_watchpoint): Add 'self' argument.
5406 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5408 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5410 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5412 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5413 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5415 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5422 (target_remove_watchpoint): Add argument.
5423 * target.c (debug_to_remove_watchpoint): Add argument.
5424 (update_current_target): Update.
5425 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5426 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5427 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5428 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5429 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5430 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5432 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5433 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5435 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5437 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5439 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5440 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5442 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5445 2014-02-19 Tom Tromey <tromey@redhat.com>
5447 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5449 (target_remove_hw_breakpoint): Add argument.
5450 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5451 (update_current_target): Update.
5452 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5453 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5455 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5456 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5458 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5465 (target_insert_hw_breakpoint): Add argument.
5466 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5467 (update_current_target): Update.
5468 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5469 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5471 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5472 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5473 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5475 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5482 (target_can_use_hardware_watchpoint): Add argument.
5483 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5484 (update_current_target): Update.
5485 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5487 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5489 * remote.c (remote_check_watch_resources): Add 'self' argument.
5490 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5491 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5493 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5494 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5496 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5498 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5500 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5502 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5504 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5506 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5507 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5509 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5512 2014-02-19 Tom Tromey <tromey@redhat.com>
5514 * target.h (struct target_ops) <to_post_attach>: Add argument.
5515 (target_post_attach): Add argument.
5516 * target.c (debug_to_post_attach): Add argument.
5517 (update_current_target): Update.
5518 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5519 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5520 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5521 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5522 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * windows-nat.c (windows_close): Add 'self' argument.
5527 * tracepoint.c (tfile_close): Add 'self' argument.
5528 * target.h (struct target_ops) <to_close>: Add argument.
5529 * target.c (target_close): Add argument.
5530 (update_current_target): Update.
5531 * remote.c (remote_close): Add 'self' argument.
5532 * remote-sim.c (gdbsim_close): Add 'self' argument.
5533 * remote-mips.c (mips_close): Add 'self' argument.
5534 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5535 * record-full.c (record_full_close): Add 'self' argument.
5536 * record-btrace.c (record_btrace_close): Add 'self' argument.
5537 * monitor.h (monitor_close): Add 'self' argument.
5538 * monitor.c (monitor_close): Add 'self' argument.
5539 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5540 * linux-nat.c (linux_nat_close): Add argument.
5541 * go32-nat.c (go32_close): Add 'self' argument.
5542 * exec.c (exec_close_1): Add 'self' argument.
5543 * ctf.c (ctf_close): Add 'self' argument.
5544 * corelow.c (core_close): Add 'self' argument.
5545 (core_close_cleanup): Update.
5546 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5547 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * remote.c (remote_load): New function.
5552 (init_remote_ops): Use it.
5554 2014-02-19 Tom Tromey <tromey@redhat.com>
5556 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5558 * common/linux-btrace.h (linux_supports_btrace): Update.
5559 * remote.c (remote_supports_btrace): Add "self" argument.
5560 * target-delegates.c: Rebuild.
5561 * target.c (target_supports_btrace): Remove.
5562 * target.h (struct target_ops) <to_supports_btrace>: Add
5563 target_ops argument.
5564 (target_supports_btrace): New define.
5566 2014-02-19 Tom Tromey <tromey@redhat.com>
5568 * record-full.c (record_full_beneath_to_resume_ops)
5569 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5570 (record_full_beneath_to_wait)
5571 (record_full_beneath_to_store_registers_ops)
5572 (record_full_beneath_to_store_registers)
5573 (record_full_beneath_to_xfer_partial_ops)
5574 (record_full_beneath_to_xfer_partial)
5575 (record_full_beneath_to_insert_breakpoint_ops)
5576 (record_full_beneath_to_insert_breakpoint)
5577 (record_full_beneath_to_remove_breakpoint_ops)
5578 (record_full_beneath_to_remove_breakpoint)
5579 (record_full_beneath_to_stopped_by_watchpoint)
5580 (record_full_beneath_to_stopped_data_address)
5581 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5582 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5583 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5584 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5585 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5586 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5587 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5588 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5589 (record_full_resume, record_full_wait_1)
5590 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5591 (record_full_store_registers, record_full_xfer_partial)
5592 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5593 (record_full_async, record_full_core_xfer_partial): Use target
5595 * target-delegates.c: Rebuild.
5596 * target.c (current_xfer_partial): Remove.
5597 (update_current_target): Do not INHERIT or de_fault
5598 to_insert_breakpoint, to_remove_breakpoint,
5599 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5600 to_is_async_p, to_async. Do not set to_xfer_partial field.
5601 (default_xfer_partial): Simplify.
5602 (current_xfer_partial): Remove.
5603 (target_wait, target_resume): Simplify.
5604 (find_default_can_async_p, find_default_is_async_p): Update.
5605 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5606 to_xfer_partial, to_stopped_by_watchpoint,
5607 to_stopped_data_address.
5608 (target_store_registers): Simplify.
5609 (forward_target_remove_breakpoint)
5610 (forward_target_insert_breakpoint): Remove.
5611 (target_remove_breakpoint, target_insert_breakpoint)
5612 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5613 * target.h (struct target_ops) <to_resume, to_wait,
5614 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5615 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5616 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5618 (forward_target_remove_breakpoint)
5619 (forward_target_insert_breakpoint): Remove.
5620 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5622 (record_btrace_insert_breakpoint): Delegate directly.
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5627 * target-delegates.c: New file.
5628 * target.c: Include target-delegates.c.
5629 (init_dummy_target): Call install_dummy_methods.
5630 (complete_target_initialization): Call install_delegators.
5631 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5632 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5633 * make-target-delegates: New file.
5635 2014-02-19 Tom Tromey <tromey@redhat.com>
5637 * record.c (find_record_target): Use find_target_at.
5638 * target.c (find_target_at): New function.
5639 * target.h (find_target_at): Declare.
5641 2014-02-19 Tom Tromey <tromey@redhat.com>
5643 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5645 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5647 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5648 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5650 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5652 * linux-nat.c (save_sigtrap): Update.
5653 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5654 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5655 (linux_nat_close): Update.
5656 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5658 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5660 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5661 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5662 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5663 (tmp_to_async): Add 'ops' argument.
5664 (record_full_stopped_by_watchpoint, record_full_async)
5665 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5667 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5668 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5669 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5670 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5671 (remote_is_async_p, remote_async): Add 'ops' argument.
5672 (remote_stopped_data_address): Update.
5673 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5674 * target.c (update_current_target)
5675 (find_default_can_async_p, find_default_is_async_p): Update.
5676 (init_dummy_target): Update.
5677 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5678 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5679 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5680 (target_can_async_p, target_is_async_p, target_async)
5681 (target_stopped_by_watchpoint): Update.
5683 2014-02-19 Yao Qi <yao@codesourcery.com>
5686 * gdbarch.sh: Remove startup_gdbarch.
5687 * gdbarch.c: Regenerated.
5688 * gdbarch.h: Likewise.
5690 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5692 * rl78-tdep.c (rl78_g10_register_name): New function.
5693 (rl78_return_value): Add g10 support.
5694 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5697 2014-02-17 Doug Evans <xdje42@gmail.com>
5699 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5700 (SUBDIR_GUILE_SRCS): Ditto.
5701 (scm-gsmob.o): Ditto.
5703 2014-02-17 Yao Qi <yao@codesourcery.com>
5705 * gnu-nat.c (ILL_RPC): Declare defined function.
5707 2014-02-17 Yao Qi <yao@codesourcery.com>
5709 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5710 mach_msg_type_number_t.
5711 (gnu_write_inferior): Likewise.
5713 2014-02-17 Yao Qi <yao@codesourcery.com>
5715 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5717 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5718 (inf_validate_procs, inf_signal): Likewise.
5719 (S_exception_raise_request): Likewise.
5720 (do_mach_notify_dead_name): Likewise.
5721 (steal_exc_port): Likewise.
5722 (gnu_read_inferior): Change 'copy_count''s type to
5723 mach_msg_type_number_t.
5724 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5727 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5729 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5730 flag. Adjust all users; in particular...
5731 (gnu_wait): ..., don't decrement its value in here...
5732 (gnu_create_inferior): ..., and instead set the flag in here,
5733 around the startup_inferior call, and call that one with
5734 START_INFERIOR_TRAPS_EXPECTED.
5736 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5737 (ILL_RPC): ... new macro.
5738 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5739 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5740 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5741 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5742 functions with ILL_RPC macro.
5743 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5744 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5745 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5746 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5747 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5748 (S_proc_getlogin_reply, S_proc_getsid_reply)
5749 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5750 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5751 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5752 (S_proc_getnports_reply, S_proc_is_important_reply)
5753 (S_proc_get_code_reply): New stub functions, generated with
5756 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5757 collected the type check structures.
5759 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5761 2014-02-14 Doug Evans <dje@google.com>
5763 * target.c (target_write_partial): Fix result type.
5765 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5767 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5768 the proper offsets to access fpregset_t.
5770 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5772 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5773 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5774 * h8300-tdep.c (setmachinelist): Remove global.
5775 * hppa-tdep.c (hppa_sigtramp): Remove global.
5776 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5777 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5778 * ravenscar-thread.c (update_target_observer): Remove global.
5779 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5781 2014-02-12 Tom Tromey <tromey@redhat.com>
5783 * common/rsp-low.c: Update comments.
5784 * common/rsp-low.h: Update comments.
5786 2014-02-12 Tom Tromey <tromey@redhat.com>
5788 * common/rsp-low.c (convert_ascii_to_int): Remove.
5789 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5791 2014-02-12 Tom Tromey <tromey@redhat.com>
5793 * common/rsp-low.h (unhexify): Don't declare.
5794 * common/rsp-low.c (unhexify): Remove.
5796 2014-02-12 Tom Tromey <tromey@redhat.com>
5798 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5799 * common/rsp-low.c (convert_int_to_ascii): Remove.
5801 2014-02-12 Tom Tromey <tromey@redhat.com>
5803 * common/rsp-low.h (hexify): Don't declare.
5804 * common/rsp-low.c (hexify): Remove.
5806 2014-02-12 Tom Tromey <tromey@redhat.com>
5808 * common/rsp-low.c (hexify): Never take strlen of argument.
5810 2014-02-12 Tom Tromey <tromey@redhat.com>
5812 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5813 * remote.c (extended_remote_run, remote_rcmd)
5814 (remote_download_trace_state_variable, remote_save_trace_data)
5815 (remote_set_trace_notes): Update.
5816 * tracepoint.c (encode_source_string, tfile_write_status)
5817 (tfile_write_uploaded_tsv): Update.
5819 2014-02-12 Tom Tromey <tromey@redhat.com>
5821 * tracepoint.c: Include rsp-low.h.
5822 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5823 * remote.c: Include rsp-low.h.
5824 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5825 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5826 (remote_unescape_input): Move to common/rsp-low.c.
5827 * common/rsp-low.h: New file.
5828 * common/rsp-low.c: New file.
5829 * Makefile.in (SFILES): Add common/rsp-low.c.
5830 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5831 (COMMON_OBS): Add rsp-low.o.
5832 (rsp-low.o): New target.
5834 2014-02-12 Tom Tromey <tromey@redhat.com>
5836 * utils.h: Include print-utils.h.
5837 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5838 (int_string, core_addr_to_string, core_addr_to_string_nz)
5839 (hex_string, hex_string_custom): Don't declare.
5840 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5841 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5842 (hex_string_custom, int_string, core_addr_to_string)
5843 (core_addr_to_string_nz, host_address_to_string): Move to
5844 common/print-utils.c.
5845 * common/print-utils.h: New file.
5846 * common/print-utils.c: New file
5847 * Makefile.in (SFILES): Add common/print-utils.c.
5848 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5849 (COMMON_OBS): Add print-utils.o.
5850 (print-utils.o): New target.
5852 2014-02-12 Tom Tromey <tromey@redhat.com>
5854 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5856 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5858 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5860 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5862 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5863 if a PT_IO ptrace request returns sucessfully but indicates that 0
5864 bytes were transferred.
5866 2014-02-12 Pedro Alves <palves@redhat.com>
5867 Kevin Buettner <kevinb@redhat.com>
5869 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5870 TYPE_INSTANCE_FLAG_CODE_SPACE.
5872 2014-02-12 Pedro Alves <palves@redhat.com>
5874 * h8300-tdep.c (pseudo_from_raw_register)
5875 (raw_from_pseudo_register): New functions.
5876 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5879 2014-02-12 Pedro Alves <palves@redhat.com>
5881 * h8300-tdep.c (h8300_register_sim_regno): New function.
5882 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5883 gdbarch_register_sim_regno hook.
5885 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5887 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5889 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5891 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5893 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5895 * obsd-tdep.h (obsd_init_abi): New prototype.
5896 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5897 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5898 (obsd_init_abi): New functions.
5899 * i386obsd-tdep.c: Include "obsd-tdep.h".
5900 (i386obsd_init_abi): Call obsd_init_abi.
5901 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5902 (amd64obsd_init_abi): Call obsd_init_abi.
5903 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5904 obsd-tdep.c to gdb_target_obs.
5906 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5908 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5909 double float arguments to 16-byte in the argument slots.
5911 2014-02-11 Doug Evans <xdje42@gmail.com>
5913 * configure.ac: Don't crash if pkg-config is not found and guile
5914 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5916 * configure: Regenerate.
5918 2014-02-11 Yao Qi <yao@codesourcery.com>
5920 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5921 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5922 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5923 * gnu-nat.c (gnu_xfer_memory): Likewise.
5924 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5925 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5926 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5927 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5929 2014-02-11 Yao Qi <yao@codesourcery.com>
5931 * target.h (enum target_xfer_error): Rename to ...
5932 (enum target_xfer_status): ... it. New. All users updated.
5933 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5935 (TARGET_XFER_STATUS_ERROR_P): New macro.
5936 (target_xfer_error_to_string): Remove declaration.
5937 (target_xfer_status_to_string): Declare.
5938 (target_xfer_partial_ftype): Adjust it.
5939 (struct target_ops) <to_xfer_partial>: Return
5940 target_xfer_status. Add argument xfered_len. Update
5942 * target.c (target_xfer_error_to_string): Rename to ...
5943 (target_xfer_status_to_string): ... it. New. All callers
5945 (target_read_live_memory): Likewise. Call target_xfer_partial
5946 instead of target_read.
5947 (memory_xfer_live_readonly_partial): Return
5948 target_xfer_status. Add argument xfered_len.
5949 (raw_memory_xfer_partial): Likewise.
5950 (memory_xfer_partial_1): Likewise.
5951 (memory_xfer_partial): Likewise.
5952 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5953 properly. Update debug message.
5954 (default_xfer_partial, current_xfer_partial): Likewise.
5955 (target_write_partial): Likewise.
5956 (target_read_partial): Likewise. All callers updated.
5957 (read_whatever_is_readable): Likewise.
5958 (target_write_with_progress): Likewise.
5959 (target_read_alloc_1): Likewise.
5961 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5962 * auxv.c (procfs_xfer_auxv): Likewise.
5963 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5964 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5965 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5966 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5967 * corefile.c (read_memory): Adjust.
5968 * corelow.c (core_xfer_partial): Likewise.
5969 * ctf.c (ctf_xfer_partial): Likewise.
5970 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5972 (darwin_xfer_partial): Likewise.
5973 * exec.c (section_table_xfer_memory_partial): Likewise. All
5975 (exec_xfer_partial): Likewise.
5976 * exec.h (section_table_xfer_memory_partial): Update
5978 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5980 (gnu_xfer_partial): Likewise.
5981 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5982 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5983 (ia64_hpux_xfer_solib_got): Likewise.
5984 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5985 type of 'partial_len' to ULONGEST.
5986 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5987 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5988 (linux_nat_xfer_partial): Likewise.
5989 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5990 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5991 * monitor.c (monitor_xfer_memory): Likewise.
5992 (monitor_xfer_partial): Likewise.
5993 * procfs.c (procfs_xfer_partial): Likewise.
5994 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5995 * record-full.c (record_full_xfer_partial): Likewise.
5996 (record_full_core_xfer_partial): Likewise.
5997 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5998 (gdbsim_xfer_partial): Likewise.
5999 * remote.c (remote_write_bytes_aux): Likewise. All callers
6001 (remote_write_bytes, remote_read_bytes): Likewise. All
6003 (remote_flash_erase): Likewise. All callers updated.
6004 (remote_write_qxfer): Likewise. All callers updated.
6005 (remote_read_qxfer): Likewise. All callers updated.
6006 (remote_xfer_partial): Likewise.
6007 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6008 (rs6000_xfer_shared_libraries): Likewise.
6009 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6010 (sol_thread_xfer_partial): Likewise.
6011 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6012 (sparc_xfer_partial): Likewise.
6013 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6015 (spu_xfer_partial): Likewise.
6016 * spu-multiarch.c (spu_xfer_partial): Likewise.
6017 * tracepoint.c (tfile_xfer_partial): Likewise.
6018 * windows-nat.c (windows_xfer_memory): Likewise.
6019 (windows_xfer_shared_libraries): Likewise.
6020 (windows_xfer_partial): Likewise.
6021 * valprint.c: Replace 'target_xfer_error' with
6022 'target_xfer_status' in comments.
6024 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6026 Checked in by Joel Brobecker <brobecker@adacore.com>.
6027 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6029 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6031 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6032 function parameters.
6034 2014-02-10 Will Newton <will.newton@linaro.org>
6036 * elfread.c (elf_rel_plt_read): Look for a .got section if
6037 looking up .got.plt fails.
6038 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6039 on address passed to elf_gnu_ifunc_record_cache.
6040 (elf_gnu_ifunc_resolve_addr): Likewise.
6041 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6043 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6045 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6046 (X_RETTURN): New macro.
6047 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6049 * sparc64-tdep.c (sparc64_init_abi): Hook
6050 sparc_in_function_epilogue_p.
6052 2014-02-10 Gary Benson <gbenson@redhat.com>
6054 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6055 Rename name_matcher to symbol_matcher.
6057 2014-02-10 Gary Benson <gbenson@redhat.com>
6059 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6060 Use expand_symtabs_file_matcher_ftype and
6061 expand_symtabs_symbol_matcher_ftype.
6063 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6065 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6066 (struct ada_symbol_cache): New.
6067 (ada_free_symbol_cache): Forward declare.
6068 (struct ada_pspace_data): New.
6069 (ada_pspace_data_handle): New static global.
6070 (get_ada_pspace_data, ada_pspace_data_cleanup)
6071 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6072 (cache_space, cache): Delete, now folded inside struct
6074 (ada_get_symbol_cache): New function.
6075 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6077 (_initialize_ada_language): Remove initialization of cache_space.
6078 Move call to observer_attach_inferior_exit up, grouping it
6079 with the other observer registrations inside this function.
6080 Rename command to be more general. Add call to
6081 register_program_space_data_with_cleanup.
6083 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6085 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6086 ada_new_objfile_observer.
6087 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6088 (_initialize_tasks): Update uses of ada_new_objfile_observer
6089 and ada_tasks_normal_stop_observer.
6091 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6093 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6094 returned by the 'Length attribute to integer.
6096 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6098 * ada-lang.c (_initialize_ada_language): Initialize
6099 cache_space obstack.
6101 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6103 * ada-lang.c (HASH_SIZE): New macro.
6104 (struct cache_entry): New type.
6105 (cache_space, cache): New static globals.
6106 (ada_clear_symbol_cache, find_entry): New functions.
6107 (lookup_cached_symbol, cache_symbol): Implement.
6108 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6109 (_initialize_ada_language): Attach ada_new_objfile_observer
6110 and ada_free_objfile_observer.
6112 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6114 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6115 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6116 struct block * parameter.
6117 (ada_lookup_symbol_list_worker): Constify local variable "block".
6118 Remove cast which is no longer necessary.
6120 2014-02-10 Doug Evans <xdje42@gmail.com>
6122 Add Guile as an extension language.
6123 * NEWS: Mention Guile scripting.
6124 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6125 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6126 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6127 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6128 (CLIBS): Add GUILE_LIBS.
6129 (install-guile): New rule.
6130 (guile.o): New rule.
6131 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6132 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6133 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6134 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6135 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6136 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6137 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6138 * configure.ac: New option --with-guile.
6139 * configure: Regenerate.
6140 * config.in: Regenerate.
6141 * auto-load.c: Remove #include "python/python.h". Add #include
6142 "gdb/section-scripts.h".
6143 (source_section_scripts): Handle Guile scripts.
6144 (_initialize_auto_load): Add name of Guile objfile script to
6145 scripts-directory help text.
6146 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6147 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6148 (struct breakpoint): New member scm_bp_object.
6149 * defs.h (enum command_control_type): New value guile_control.
6150 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6152 (show_user): Update comment.
6153 (_initialize_cli_cmds): Update help text for "show user". Update help
6154 text for max-user-call-depth.
6155 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6157 (multi_line_command_p): Add guile_control.
6158 (print_command_lines): Handle guile_control.
6159 (execute_control_command, recurse_read_control_structure): Ditto.
6160 (process_next_line): Recognize "guile" commands.
6161 * disasm.c (gdb_disassemble_info): Make non-static.
6162 * disasm.h: #include "dis-asm.h".
6163 (struct gdbarch): Add forward decl.
6164 (gdb_disassemble_info): Declare.
6165 * extension.c: #include "guile/guile.h".
6166 (extension_languages): Add guile.
6167 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6168 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6169 * gdbtypes.c (get_unsigned_type_max): New function.
6170 (get_signed_type_minmax): New function.
6171 * gdbtypes.h (get_unsigned_type_max): Declare.
6172 (get_signed_type_minmax): Declare.
6173 * guile/README: New file.
6174 * guile/guile-internal.h: New file.
6175 * guile/guile.c: New file.
6176 * guile/guile.h: New file.
6177 * guile/scm-arch.c: New file.
6178 * guile/scm-auto-load.c: New file.
6179 * guile/scm-block.c: New file.
6180 * guile/scm-breakpoint.c: New file.
6181 * guile/scm-disasm.c: New file.
6182 * guile/scm-exception.c: New file.
6183 * guile/scm-frame.c: New file.
6184 * guile/scm-gsmob.c: New file.
6185 * guile/scm-iterator.c: New file.
6186 * guile/scm-lazy-string.c: New file.
6187 * guile/scm-math.c: New file.
6188 * guile/scm-objfile.c: New file.
6189 * guile/scm-ports.c: New file.
6190 * guile/scm-pretty-print.c: New file.
6191 * guile/scm-safe-call.c: New file.
6192 * guile/scm-string.c: New file.
6193 * guile/scm-symbol.c: New file.
6194 * guile/scm-symtab.c: New file.
6195 * guile/scm-type.c: New file.
6196 * guile/scm-utils.c: New file.
6197 * guile/scm-value.c: New file.
6198 * guile/lib/gdb.scm: New file.
6199 * guile/lib/gdb/boot.scm: New file.
6200 * guile/lib/gdb/experimental.scm: New file.
6201 * guile/lib/gdb/init.scm: New file.
6202 * guile/lib/gdb/iterator.scm: New file.
6203 * guile/lib/gdb/printing.scm: New file.
6204 * guile/lib/gdb/types.scm: New file.
6205 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6206 (VPATH): Add $(GUILE_SRCDIR).
6207 (GUILE_DIR): New variable.
6208 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6209 (all): Add stamp-guile dependency.
6210 (stamp-guile): New rule.
6211 (clean-guile, install-guile, uninstall-guile): New rules.
6212 (install-only): Add install-guile dependency.
6213 (uninstall): Add uninstall-guile dependency.
6214 (clean): Add clean-guile dependency.
6216 2014-02-09 Doug Evans <xdje42@gmail.com>
6218 Revert this patch (which I approved, mea culpa).
6220 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6222 * Makefile.in (all-lib): Remove.
6223 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6225 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6227 Fix Python stack corruption.
6228 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6231 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6233 * Makefile.in (all-lib): Remove.
6234 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6236 2014-02-07 Doug Evans <dje@google.com>
6238 * extension-priv.h (extension_language_script_ops): Add comment.
6239 (extension_language_ops): Add comment.
6240 (active_ext_lang_state): Fix typo in comment.
6242 2014-02-07 Pedro Alves <palves@redhat.com>
6244 PR breakpoints/16292
6245 * infrun.c (handle_signal_stop) <signal arrives while stepping
6246 over a breakpoint>: Switch back to the stepping thread.
6248 2014-02-07 Yao Qi <yao@codesourcery.com>
6250 * target.c (target_xfer_partial): Return zero if LEN is zero.
6252 2014-02-07 Yao Qi <yao@codesourcery.com>
6254 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6255 (ld_so_xfer_auxv): Likewise.
6256 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6257 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6258 * corelow.c (core_xfer_partial): Likewise.
6259 * ctf.c (ctf_xfer_partial): Likewise.
6260 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6261 (darwin_xfer_partial): Likewise.
6262 * exec.c (exec_xfer_partial): Likewise.
6263 * gnu-nat.c (gnu_xfer_partial): Likewise.
6264 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6265 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6266 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6267 * linux-nat.c (linux_xfer_siginfo): Likewise.
6268 (linux_proc_xfer_spu): Likewise.
6269 * procfs.c (procfs_xfer_partial): Likewise.
6270 * record-full.c (record_full_xfer_partial): Likewise.
6271 (record_full_core_xfer_partial): Likewise.
6272 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6273 * remote.c (remote_write_qxfer): Likewise.
6274 (remote_write_qxfer, remote_read_qxfer): Likewise.
6275 (remote_xfer_partial): Likewise.
6276 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6277 (rs6000_xfer_shared_libraries): Likewise.
6278 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6279 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6280 (spu_xfer_partial): Likewise.
6281 * target.c (memory_xfer_partial_1): Likewise.
6282 * tracepoint.c (tfile_xfer_partial): Likewise.
6283 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6284 (windows_xfer_partial): Likewise.
6286 2014-02-07 Yao Qi <yao@codesourcery.com>
6288 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6290 (core_xfer_shared_libraries_aix): Likewise.
6291 * gdbarch.c, gdbarch.h: Regenerated.
6292 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6293 ULONGEST. Change 'len_avail' type to ULONGEST.
6294 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6295 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6297 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6299 2014-02-07 Yao Qi <yao@codesourcery.com>
6301 * corefile.c (memory_error): Get 'exception' from ERR and pass
6302 'exception' to throw_error.
6304 2014-02-06 Doug Evans <xdje42@gmail.com>
6306 * configure.ac (libpython checking): Remove all but python.o from
6307 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6308 * configure: Regenerate.
6310 * Makefile.in (SFILES): Add extension.c.
6311 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6312 (COMMON_OBS): Add extension.o.
6313 * extension.h: New file.
6314 * extension-priv.h: New file.
6315 * extension.c: New file.
6317 * python/python-internal.h: #include "extension.h".
6318 (gdbpy_auto_load_enabled): Declare.
6319 (gdbpy_apply_val_pretty_printer): Declare.
6320 (gdbpy_apply_frame_filter): Declare.
6321 (gdbpy_preserve_values): Declare.
6322 (gdbpy_breakpoint_cond_says_stop): Declare.
6323 (gdbpy_breakpoint_has_cond): Declare.
6324 (void source_python_script_for_objfile): Delete.
6325 * python/python.c: #include "extension-priv.h".
6326 Delete inclusion of "observer.h".
6327 (extension_language_python): Moved here and renamed from
6328 script_language_python in py-auto-load.c.
6329 Redefined to be of type extension_language_defn.
6330 (python_extension_script_ops): New global.
6331 (python_extension_ops): New global.
6332 (struct python_env): New member previous_active.
6333 (restore_python_env): Call restore_active_ext_lang.
6334 (ensure_python_env): Call set_active_ext_lang.
6335 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6337 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6339 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6341 (gdbpy_eval_from_control_command): Renamed from
6342 eval_python_from_control_command, made static. New arg extlang.
6343 (gdbpy_source_script) Renamed from source_python_script, made static.
6345 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6346 result to int. New arg extlang.
6347 (gdbpy_source_objfile_script): Renamed from
6348 source_python_script_for_objfile, made static. New arg extlang.
6349 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6350 static. New args extlang, extlang_printers. Change result type to
6352 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6353 static. New arg extlang. Rename arg printers to extlang_printers
6354 and change type to ext_lang_type_printers *.
6355 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6356 static. Replace argument arg with extlang, extlang_printers.
6357 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6358 (!HAVE_PYTHON, source_python_script): Delete.
6359 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6360 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6361 (!HAVE_PYTHON, start_type_printers): Delete.
6362 (!HAVE_PYTHON, apply_type_printers): Delete.
6363 (!HAVE_PYTHON, free_type_printers): Delete.
6364 (_initialize_python): Delete call to observer_attach_before_prompt.
6365 (finalize_python): Set/restore active extension language.
6366 (gdbpy_finish_initialization) Renamed from
6367 finish_python_initialization, made static. New arg extlang.
6368 (gdbpy_initialized): New function.
6369 * python/python.h: #include "extension.h". Delete #include
6370 "value.h", "mi/mi-cmds.h".
6371 (extension_language_python): Declare.
6372 (GDBPY_AUTO_FILE_NAME): Delete.
6373 (enum py_bt_status): Moved to extension.h and renamed to
6375 (enum frame_filter_flags): Moved to extension.h.
6376 (enum py_frame_args): Moved to extension.h and renamed to
6377 ext_lang_frame_args.
6378 (finish_python_initialization): Delete.
6379 (eval_python_from_control_command): Delete.
6380 (source_python_script): Delete.
6381 (apply_val_pretty_printer): Delete.
6382 (apply_frame_filter): Delete.
6383 (preserve_python_values): Delete.
6384 (gdbpy_script_language_defn): Delete.
6385 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6386 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6388 * auto-load.c: #include "extension.h".
6389 (GDB_AUTO_FILE_NAME): Delete.
6390 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6391 (script_language_gdb): Delete, moved to extension.c and renamed to
6392 extension_language_gdb.
6393 (source_gdb_script_for_objfile): Delete.
6394 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6395 (loaded_script): Change type of language member to
6396 struct extension_language_defn *.
6397 (init_loaded_scripts_info): Initialize
6398 unsupported_script_warning_printed.
6399 (maybe_add_script): Make static. Change type of language arg to
6400 struct extension_language_defn *.
6401 (clear_section_scripts): Reset unsupported_script_warning_printed.
6402 (auto_load_objfile_script_1): Rewrite to use extension language API.
6403 (auto_load_objfile_script): Make public. Remove support-compiled-in
6404 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6405 (source_section_scripts): Rewrite to use extension language API.
6406 (load_auto_scripts_for_objfile): Rewrite to use
6407 auto_load_scripts_for_objfile.
6408 (collect_matching_scripts_data): Change type of language member to
6409 struct extension_language_defn *.
6410 (auto_load_info_scripts): Change type of language arg to
6411 struct extension_language_defn *.
6412 (unsupported_script_warning_print): New function.
6413 (script_not_found_warning_print): Make static.
6414 (_initialize_auto_load): Rewrite construction of scripts-directory
6416 * auto-load.h (struct objfile): Add forward decl.
6417 (struct script_language): Delete.
6418 (struct auto_load_pspace_info): Add forward decl.
6419 (struct extension_language_defn): Add forward decl.
6420 (maybe_add_script): Delete.
6421 (auto_load_objfile_script): Declare.
6422 (script_not_found_warning_print): Delete.
6423 (auto_load_info_scripts): Update prototype.
6424 (auto_load_gdb_scripts_enabled): Declare.
6425 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6426 auto_load_python_scripts_enabled and made public.
6427 (script_language_python): Delete, moved to python.c.
6428 (gdbpy_script_language_defn): Delete.
6429 (info_auto_load_python_scripts): Update to use
6430 extension_language_python.
6432 * breakpoint.c (condition_command): Replace call to
6433 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6434 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6435 with call to breakpoint_ext_lang_cond_says_stop.
6436 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6437 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6438 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6439 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6441 (local_setattro): Print name of extension language with existing
6444 * valprint.c (val_print, value_print): Update to call
6445 apply_ext_lang_val_pretty_printer.
6446 * cp-valprint.c (cp_print_value): Update call to
6447 apply_ext_lang_val_pretty_printer.
6448 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6449 (gdbpy_apply_val_pretty_printer): Renamed from
6450 apply_val_pretty_printer. New arg extlang.
6451 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6453 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6454 extension language API.
6455 * cli/cli-script.c (execute_control_command): Update to call
6456 eval_ext_lang_from_control_command.
6458 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6459 enum ext_lang_bt_status values. Update call to
6460 apply_ext_lang_frame_filter.
6461 (mi_cmd_stack_list_locals): Ditto.
6462 (mi_cmd_stack_list_args): Ditto.
6463 (mi_cmd_stack_list_variables): Ditto.
6464 * mi/mi-main.c: Delete #include "python/python-internal.h".
6465 Add #include "extension.h".
6466 (mi_cmd_list_features): Replace reference to python internal variable
6467 gdb_python_initialized with call to ext_lang_initialized_p.
6469 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6470 Update to use enum ext_lang_frame_args. Update to call
6471 apply_ext_lang_frame_filter.
6472 * python/py-framefilter.c (extract_sym): Update to use enum
6474 (extract_value, py_print_type, py_print_value): Ditto.
6475 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6476 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6477 (py_print_frame): Ditto.
6478 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6479 New arg extlang. Update to use enum ext_lang_bt_status.
6481 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6482 finish_python_initialization. Replace with call to
6483 finish_ext_lang_initialization.
6485 * typeprint.c (do_free_global_table): Update to call
6486 free_ext_lang_type_printers.
6487 (create_global_typedef_table): Update to call
6488 start_ext_lang_type_printers.
6489 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6490 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6491 (type_print_options): Change type of global_printers from "void *"
6492 to "struct ext_lang_type_printers *".
6494 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6495 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6496 (gdbpy_preserve_values): Renamed from preserve_python_values.
6498 (!HAVE_PYTHON, preserve_python_values): Delete.
6500 * utils.c (quit_flag): Delete, moved to extension.c.
6501 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6504 * eval.c: Delete #include "python/python.h".
6505 * main.c: Delete #include "python/python.h".
6507 * defs.h: Update comment.
6509 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6513 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6515 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6518 2014-02-05 Yao Qi <yao@codesourcery.com>
6520 * remote.c (remote_pass_signals): Remove local 'buf' and use
6522 (remote_program_signals): Likewise.
6524 2014-02-05 Yao Qi <yao@codesourcery.com>
6526 * ctf.c: Include "inferior.h" and "gdbthread.h".
6527 (CTF_PID): A new macro.
6528 (ctf_open): Call inferior_appeared and add_thread_silent.
6529 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6530 (ctf_thread_alive): New function.
6531 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6533 2014-02-05 Yao Qi <yao@codesourcery.com>
6537 2013-05-24 Yao Qi <yao@codesourcery.com>
6539 * tracepoint.c (TFILE_PID): Remove.
6540 (tfile_open): Don't add thread and inferior.
6541 (tfile_close): Don't set 'inferior_ptid'. Don't call
6542 exit_inferior_silent.
6543 (tfile_thread_alive): Remove.
6544 (init_tfile_ops): Don't set field 'to_thread_alive' of
6547 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6549 * remote.c (remote_start_remote): Call remote_check_symbols even
6550 if only symbol-file (not file) has been given.
6552 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6554 * gdbarch.sh (skip_entrypoint): New callback.
6555 * gdbarch.c, gdbarch.h: Regenerate.
6556 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6557 * infrun.c (fill_in_stop_func): Likewise.
6558 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6559 (ppc_elfv2_elf_make_msymbol_special): New function.
6560 (ppc_elfv2_skip_entrypoint): Likewise.
6561 (ppc_linux_init_abi): Install them for ELFv2.
6563 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6565 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6566 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6567 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6568 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6569 structures returned in GPRs.
6571 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6573 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6574 offset to the stack parameter list for the ELFv2 ABI.
6576 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6578 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6579 set_gdbarch_convert_from_func_ptr_addr and
6580 set_gdbarch_elf_make_msymbol_special for ELFv1.
6581 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6582 function descriptors on ELFv1.
6583 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6584 set up r12 at function entry.
6586 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6588 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6589 (struct gdbarch_tdep): New member elf_abi.
6591 * rs6000-tdep.c: Include "elf/ppc64.h".
6592 (rs6000_gdbarch_init): Detect ELF ABI version.
6594 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6596 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6597 within a register pair holding a DFP 128-bit value on little-endian.
6598 (ppc64_sysv_abi_return_value_base): Likewise.
6599 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6600 (dfp_pseudo_register_write): Likewise.
6602 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6604 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6605 offset on little-endian when passing _Decimal32.
6606 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6608 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6610 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6611 of the overlapped FP register within the VSX register on little-
6613 (efpr_pseudo_register_write): Likewise.
6615 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6617 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6618 offset on little-endian when passing small structures.
6620 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6622 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6623 (struct ppc64_sysv_argpos): New data structure.
6624 (ppc64_sysv_abi_push_float): Remove.
6625 (ppc64_sysv_abi_push_val): New function.
6626 (ppc64_sysv_abi_push_integer): Likewise.
6627 (ppc64_sysv_abi_push_freg): Likewise.
6628 (ppc64_sysv_abi_push_vreg): Likewise.
6629 (ppc64_sysv_abi_push_param): Likewise.
6630 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6631 (ppc64_sysv_abi_return_value_base): New function.
6632 (ppc64_sysv_abi_return_value): Refactor to use it.
6634 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6636 * NEWS: Document new target powerpc64le-*-linux*.
6638 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6640 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6641 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6643 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6644 register set used in ELF core dumps. Add floating-point register set.
6646 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6648 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6649 dwarf2_to_gdb[] table using symbolic constants. Adjust
6650 penultimate entry from number representing the PC register
6651 to symbolic constant representing the MDR register. Add
6652 constant for the PC register to the end of the table.
6654 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6656 * bsd-kvm.c: Include <sys/param.h>
6658 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6660 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6662 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6664 * ada-lang.h (clear_ada_sym_cache): Delete.
6666 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6668 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6670 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6672 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6673 the sigreturn register save area only if the syscall is
6676 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6678 * valops.c (value_slice): Minor reformatting.
6680 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6682 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6684 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6686 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6688 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6689 (ada_ignore_descriptive_types_p): New static global.
6690 (find_parallel_type_by_descriptive_type): Return immediately
6691 if ada_ignore_descriptive_types_p is set.
6692 (_initialize_ada_language): Register new commands "maintenance
6693 set ada", "maintenance show ada", "maintenance set ada
6694 ignore-descriptive-types" and "maintenance show ada
6695 ignore-descriptive-types".
6696 * NEWS: Add entry for new "maint ada set/show
6697 ignore-descriptive-types" commands.
6699 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6701 * record-btrace.c (record_btrace_close): Call btrace_teardown
6704 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6706 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6709 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6711 * ada-typeprint (type_is_full_subrange_of_target_type):
6713 (print_range): Add parameter bounds_prefered_p. If not set,
6714 try printing range types using the name of their base type.
6715 (print_range_type): Add parameter bounds_prefered_p.
6716 Use it in call to print_range.
6717 (print_array_type, ada_print_type): Update calls to print_range
6718 and print_range_type.
6720 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6722 * ada-typeprint.c (print_array_type, print_choices, print_range)
6723 (print_range_bound, print_dynamic_range_bound, print_range_type):
6726 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6728 * ada-typeprint.c (print_range): Add missing empty line
6729 after local declaration.
6731 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6733 * ada-valprint.c (print_optional_low_bound): Get index_type's
6734 target type for as long as it is a TYPE_CODE_RANGE.
6736 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6738 * procfs.c (procfs_make_note_section): Remove assertion and
6741 2014-01-24 Yao Qi <yao@codesourcery.com>
6743 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6744 * corelow.c (get_core_siginfo): Likewise.
6746 2014-01-24 Yao Qi <yao@codesourcery.com>
6748 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6749 ULONGEST. Don't check 'len' is negative.
6750 (remote_write_bytes): Change type of 'len' to ULONGEST.
6752 2014-01-23 Tom Tromey <tromey@redhat.com>
6755 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6756 Handle exception from frame.block.
6757 (FrameVars.fetch_frame_locals): Likewise.
6759 2014-01-23 Tom Tromey <tromey@redhat.com>
6762 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6763 on a NULL pointer. Move "goto error" to correct place.
6765 2014-01-23 Tom Tromey <tromey@redhat.com>
6768 * python/py-framefilter.c (apply_frame_filter): Call
6769 ensure_python_env after computing gdbarch.
6771 2014-01-23 Yao Qi <yao@codesourcery.com>
6773 * target.c (raw_memory_xfer_partial): Change argument type
6774 from void * to gdb_byte *.
6775 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6777 2014-01-22 Doug Evans <dje@google.com>
6779 New gdbserver option --debug-format=timestamp.
6782 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6784 * syscalls/s390x-linux.xml: New file.
6785 * syscalls/s390-linux.xml: New file.
6786 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6787 (XML_SYSCALL_FILENAME_S390X): Likewise.
6788 (op_svc): New enum value for SVC opcode.
6789 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6790 (s390_linux_get_syscall_number): New function.
6791 (s390_gdbarch_init): Register '*get_syscall_number' and the
6792 syscall xml file name.
6793 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6794 "s390-linux.xml" and "s390x-linux.xml".
6795 * NEWS: Announce new feature.
6797 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6799 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6801 2014-01-22 Pedro Alves <palves@redhat.com>
6803 * xtensa-config.c: Include defs.h.
6805 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6807 * common/common-utils.h: Add "ARI:" comment beside __func__
6810 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6812 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6813 documentation a bit.
6815 2014-01-21 Roland McGrath <mcgrathr@google.com>
6817 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6818 * configure: Regenerate.
6819 * aclocal.m4: Regenerate.
6820 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6821 New substituted variables.
6822 (install-strip): New target.
6823 (INSTALL_SCRIPT): New substituted variable.
6824 (FLAGS_TO_PASS): Add it.
6825 (install-only): Use $(INSTALL_SCRIPT) rather than
6826 $(INSTALL_PROGRAM) for gcore.
6828 2014-01-20 Tom Tromey <tromey@redhat.com>
6830 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6833 2014-01-20 Tom Tromey <tromey@redhat.com>
6835 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6836 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6837 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6838 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6839 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6840 (struct cmd_list_element) <flags>: Remove.
6841 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6842 doc_allocated>: New fields.
6843 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6845 * maint.c (maintenance_do_deprecate): Update.
6846 * top.c (execute_command): Update.
6848 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6850 * xtensa-linux-nat.c: Include asm/ptrace.h.
6852 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6854 * Makefile.in (SFILES): Add d-support.c.
6855 (COMMON_OBS): Add d-support.o.
6856 * d-lang.h (d_parse_symbol): Add comment, now defined in
6858 * d-lang.c (parse_call_convention)
6859 (parse_attributes, parse_function_types)
6860 (parse_function_args, parse_type, parse_identifier)
6861 (call_convention_p, d_parse_symbol): Move functions to ...
6862 * d-support.c: ... New file.
6864 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6866 * d-lang.h (d_parse_symbol): Add declaration.
6867 * d-lang.c (extract_identifiers)
6868 (extract_type_info): Remove functions.
6869 (parse_call_convention, parse_attributes)
6870 (parse_function_types, parse_function_args)
6871 (parse_type, parse_identifier, call_convention_p)
6872 (d_parse_symbol): New functions.
6873 (d_demangle): Use d_parse_symbol to demangle D symbols.
6875 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6877 * d-lang.h (struct builtin_d_type): New data type.
6878 (builtin_d_type): Add declaration.
6879 * d-lang.c (d_language_arch_info, build_d_types)
6880 (builtin_d_type): New functions.
6881 (enum d_primitive_types): New data type.
6882 (d_language_defn): Change c_language_arch_info to
6883 d_language_arch_info.
6884 (d_type_data): New static variable.
6885 (_initialize_d_language): Initialize d_type_data.
6887 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6889 * d-lang.h (d_main_name): Add declaration.
6890 * d-lang.c (d_main_name): New function.
6891 * symtab.c (find_main_name): Add call to d_main_name.
6893 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6895 * d-lang.c (d_language_defn): Change macro_expansion_c to
6898 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6900 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6902 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6904 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6905 gdb_exception" declaration.
6906 * remote.c (getpkt_or_notif_sane): Likewise.
6908 2014-01-17 Doug Evans <dje@google.com>
6910 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6911 function, contents of dirnames_to_char_ptr_vec_append moved here.
6912 (delim_string_to_char_ptr_vec): New function.
6913 (dirnames_to_char_ptr_vec_append): Rewrite.
6914 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6916 2014-01-17 Doug Evans <dje@google.com>
6918 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6920 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6921 #include "common-utils.h".
6922 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6923 * common/vec.h (VEC_ASSERT_PASS): Update.
6924 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6925 (MACH_CHECK_ERROR): Update.
6927 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6929 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6931 * gdbarch.h: Regenerate.
6933 2014-01-16 Tom Tromey <tromey@redhat.com>
6935 * value.c (struct value) <regnum>: Move earlier.
6937 2014-01-16 Tom Tromey <tromey@redhat.com>
6939 * remote.c (extended_remote_create_inferior): Rename from
6940 extended_remote_create_inferior_1. Add "ops" argument. Remove
6943 2014-01-16 Pedro Alves <palves@redhat.com>
6945 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6946 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6949 2014-01-16 Doug Evans <dje@google.com>
6951 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6955 * btrace.h (btrace_thread_flag): New.
6956 (struct btrace_thread_info) <flags>: New.
6957 * record-btrace.c (record_btrace_resume_thread)
6958 (record_btrace_find_thread_to_move, btrace_step_no_history)
6959 (btrace_step_stopped, record_btrace_start_replaying)
6960 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6961 (record_btrace_find_resume_thread): New.
6962 (record_btrace_resume, record_btrace_wait): Extend.
6963 (record_btrace_can_execute_reverse): New.
6964 (record_btrace_open): Fail in non-stop mode.
6965 (record_btrace_set_replay): Split into this, ...
6966 (record_btrace_stop_replaying): ... this, ...
6967 (record_btrace_clear_histories): ... and this.
6968 (init_record_btrace_ops): Init to_can_execute_reverse.
6969 * NEWS: Announce it.
6971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6973 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6974 (forward_target_decr_pc_after_break)
6975 (target_decr_pc_after_break): New.
6976 * target.c (forward_target_decr_pc_after_break)
6977 (target_decr_pc_after_break): New.
6978 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6979 instead of gdbarch_decr_pc_after_break.
6980 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6981 instead of gdbarch_decr_pc_after_break.
6982 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6983 instead of gdbarch_decr_pc_after_break.
6984 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6985 instead of gdbarch_decr_pc_after_break.
6986 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6987 instead of gdbarch_decr_pc_after_break.
6988 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6989 instead of gdbarch_decr_pc_after_break.
6991 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6993 * btrace.c: Include regcache.h.
6994 (btrace_add_pc): New.
6995 (btrace_enable): Call btrace_add_pc.
6996 (btrace_is_empty): New.
6997 * btrace.h (btrace_is_empty): New.
6998 * record-btrace.c (require_btrace, record_btrace_info): Call
7001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7003 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7004 Support delta reads.
7005 (linux_disable_btrace): Change return type.
7006 * common/linux-btrace.h (linux_read_btrace): Change parameters
7007 and return type to allow error reporting. Update users.
7008 (linux_disable_btrace): Change return type. Update users.
7009 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7011 (btrace_error): New.
7012 (btrace_block) <begin>: Comment on BEGIN == 0.
7013 * btrace.c (btrace_compute_ftrace): Start from the end of
7015 (btrace_stitch_trace, btrace_clear_history): New.
7016 (btrace_fetch): Read delta trace, return if replaying.
7017 (btrace_clear): Move clear history code to btrace_clear_history.
7018 (parse_xml_btrace): Throw an error if parsing failed.
7019 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7020 and return type to allow error reporting.
7021 (target_read_btrace): Change parameters and return type to allow
7023 * target.c (target_read_btrace): Update.
7024 * remote.c (remote_read_btrace): Support delta reads. Pass
7026 * NEWS: Announce it.
7028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7030 * record.h (record_btrace_frame_unwind)
7031 (record_btrace_tailcall_frame_unwind): New declarations.
7032 * dwarf2-frame: Include record.h
7033 (dwarf2_frame_cfa): Throw an error for btrace frames.
7034 * record-btrace.c: Include hashtab.h.
7035 (btrace_get_bfun_name): New.
7036 (btrace_call_history): Call btrace_get_bfun_name.
7037 (struct btrace_frame_cache): New.
7039 (bfcache_hash, bfcache_eq, bfcache_new): New.
7040 (btrace_get_frame_function): New.
7041 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7042 (record_btrace_frame_this_id): Compute own id.
7043 (record_btrace_frame_prev_register): Provide PC, throw_error
7044 for all other registers.
7045 (record_btrace_frame_sniffer): Detect btrace frames.
7046 (record_btrace_tailcall_frame_sniffer): New.
7047 (record_btrace_frame_dealloc_cache): New.
7048 (record_btrace_frame_unwind): Add new functions.
7049 (record_btrace_tailcall_frame_unwind): New.
7050 (_initialize_record_btrace): Allocate cache.
7051 * btrace.c (btrace_clear): Call reinit_frame_cache.
7052 * NEWS: Announce it.
7054 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7056 * record-btrace.c (record_btrace_set_replay)
7057 (record_btrace_goto_begin, record_btrace_goto_end)
7058 (record_btrace_goto): New.
7059 (init_record_btrace_ops): Initialize them.
7060 * NEWS: Announce it.
7062 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7064 * record-btrace.c (record_btrace_find_new_threads)
7065 (record_btrace_thread_alive): New.
7066 (init_record_btrace_ops): Initialize to_find_new_threads and
7069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7071 * record-btrace.c (record_btrace_resume): New.
7072 (record_btrace_wait): New.
7073 (init_record_btrace_ops): Initialize to_wait and to_resume.
7075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7077 * record-btrace.c (record_btrace_xfer_partial)
7078 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7079 (record_btrace_allow_memory_access): New.
7080 (init_record_btrace_ops): Initialize new methods.
7081 * target.c (raw_memory_xfer_partial): Bail out if target reports
7082 that this memory is not available.
7084 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7086 * target.h (target_ops) <to_insert_breakpoint>
7087 <to_remove_breakpoint>: Add target_ops parameter.
7088 (forward_target_insert_breakpoint): New.
7089 (forward_target_remove_breakpoint): New.
7090 (memory_remove_breakpoint, memory_insert_breakpoint):
7091 Add target_ops parameter.
7092 * target.c (target_insert_breakpoint): Split into this and ...
7093 (forward_target_insert_breakpoint): ... this.
7094 (target_remove_breakpoint): Split into this and ...
7095 (forward_target_remove_breakpoint): ... this.
7096 (debug_to_insert_breakpoint): Add target_ops parameter.
7097 Call forward_target_insert_breakpoint.
7098 (debug_to_remove_breakpoint): Add target_ops parameter.
7099 Call forward_target_remove_breakpoint.
7100 (update_current_target): Do not inherit or default to_insert_breakpoint
7101 and to_remove_breakpoint.
7102 * corelow.c (ignore): Add target_ops parameter.
7103 * exec.c (ignore): Add target_ops parameter.
7104 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7105 Add target_ops parameter.
7106 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7107 Add target_ops parameter.
7108 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7109 Add target_ops parameter.
7110 * record-full.c (record_full_beneath_to_insert_breakpoint)
7111 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7112 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7113 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7114 (record_full_core_remove_breakpoint): Add target_ops parameter.
7116 (record_full_beneath_to_insert_breakpoint_ops)
7117 (record_full_beneath_to_remove_breakpoint_ops)
7118 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7119 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7120 tmp_to_remove_breakpoint_ops,
7121 record_full_beneath_to_insert_breakpoint_ops, and
7122 record_full_beneath_to_remove_breakpoint_ops.
7123 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7124 (m32r_remove_breakpoint): Add target_ops parameter.
7125 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7126 Add target_ops parameter.
7127 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7128 Add target_ops parameter.
7130 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7131 Markus Metzger <markus.t.metzger@intel.com>
7133 * record-btrace.c: Include frame-unwind.h.
7134 (record_btrace_frame_unwind_stop_reason)
7135 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7136 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7138 (init_record_btrace_ops): Install it.
7140 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7142 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7145 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7147 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7150 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7152 * frame-unwind.c: Include target.h.
7153 (frame_unwind_try_unwinder): New function with code from ...
7154 (frame_unwind_find_by_frame): ... here. New variable
7155 unwinder_from_target, call also target_get_unwinder)
7156 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7157 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7158 * target.h (struct target_ops): New fields to_get_unwinder and
7159 to_get_tailcall_unwinder.
7160 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7164 * record-btrace.c (record_btrace_fetch_registers)
7165 (record_btrace_store_registers)
7166 (record_btrace_to_prepare_to_store): New.
7167 (init_record_btrace_ops): Add the above.
7169 2014-01-16 Tom Tromey <tromey@redhat.com>
7171 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7172 * target.h (struct target_ops) <to_prepare_to_store>: Add
7174 (target_prepare_to_store): Add argument.
7175 * target.c (debug_to_prepare_to_store): Add argument.
7176 (update_current_target): Update.
7177 * remote.c (remote_prepare_to_store): Add 'self' argument.
7178 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7179 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7180 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7181 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7183 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7184 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7185 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7186 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7187 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7189 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7191 * btrace.h (replay) <replay>: New.
7192 (btrace_is_replaying): New.
7193 * btrace.c (btrace_clear): Free replay iterator.
7194 (btrace_is_replaying): New.
7195 * record-btrace.c (record_btrace_is_replaying): New.
7196 (record_btrace_info): Print insn number if replaying.
7197 (record_btrace_insn_history): Start at replay position.
7198 (record_btrace_call_history): Start at replay position.
7199 (init_record_btrace_ops): Init to_record_is_replaying.
7201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7203 * record-btrace.c (record_btrace_insn_history_range): Include
7205 (record_btrace_insn_history_from): Adjust range.
7206 (record_btrace_call_history_range): Include
7208 (record_btrace_call_history_from): Adjust range.
7209 * NEWS: Announce changes.
7211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7213 * record.h (enum record_print_flag)
7214 <record_print_indent_calls>: New.
7215 * record.c (get_call_history_modifiers): Recognize /c modifier.
7216 (_initialize_record): Document /c modifier.
7217 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7218 Reorder fields. Optionally indent the function name. Update
7220 * NEWS: Announce changes.
7222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7224 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7228 * btrace.c (ftrace_new_function): Start counting at one.
7229 * record-btrace.c (record_btrace_info): Adjust number of calls
7231 * NEWS: Announce it.
7233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7235 * record-btrace.c (btrace_call_history_insn_range): Print
7236 insn range as [begin, end].
7238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7240 * btrace.h (struct btrace_func_link): New.
7241 (enum btrace_function_flag): New.
7242 (struct btrace_inst): Rename to ...
7243 (struct btrace_insn): ...this. Update all users.
7244 (struct btrace_func) <ibegin, iend>: Remove.
7245 (struct btrace_func_link): New.
7246 (struct btrace_func): Rename to ...
7247 (struct btrace_function): ...this. Update all users.
7248 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7249 (number, level, flags>: New.
7250 (struct btrace_insn_iterator): Rename to ...
7251 (struct btrace_insn_history): ...this.
7253 (struct btrace_insn_iterator, btrace_call_iterator): New.
7254 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7255 (struct btrace_target_info) <begin, end, level>
7256 <insn_history, call_history>: New.
7257 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7258 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7259 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7260 (btrace_call_number, btrace_call_begin, btrace_call_end)
7261 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7262 (btrace_find_function_by_number, btrace_set_insn_history)
7263 (btrace_set_call_history): New.
7264 * btrace.c (btrace_init_insn_iterator)
7265 (btrace_init_func_iterator, compute_itrace): Remove.
7266 (ftrace_print_function_name, ftrace_print_filename)
7267 (ftrace_skip_file): Change
7269 (ftrace_init_func): Remove.
7270 (ftrace_debug): Use new btrace_function fields.
7271 (ftrace_function_switched): Also consider gaining and
7272 losing symbol information).
7273 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7274 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7275 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7277 (ftrace_new_function): Move. Remove debug print.
7278 (ftrace_update_lines, ftrace_update_insns): New.
7279 (ftrace_update_function): Check for call, ret, and jump.
7280 (compute_ftrace): Renamed to ...
7281 (btrace_compute_ftrace): ...this. Rewritten to compute call
7283 (btrace_fetch, btrace_clear): Updated.
7284 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7285 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7286 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7287 (btrace_call_number, btrace_call_begin, btrace_call_end)
7288 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7289 (btrace_find_function_by_number, btrace_set_insn_history)
7290 (btrace_set_call_history): New.
7291 * record-btrace.c (require_btrace): Use new btrace thread
7293 (record_btrace_info, btrace_insn_history)
7294 (record_btrace_insn_history, record_btrace_insn_history_range):
7295 Use new btrace thread info fields and new iterator.
7296 (btrace_func_history_src_line): Rename to ...
7297 (btrace_call_history_src_line): ...this. Use new btrace
7299 (btrace_func_history): Rename to ...
7300 (btrace_call_history): ...this. Use new btrace thread info
7301 fields and new iterator.
7302 (record_btrace_call_history, record_btrace_call_history_range):
7303 Use new btrace thread info fields and new iterator.
7305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7307 * frame.h (frame_id_build_unavailable_stack_special): New.
7308 * frame.c (frame_id_build_unavailable_stack_special): New.
7310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7312 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7313 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7314 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7316 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7317 (i386_insn_is_jump, i386_jmp_p): New.
7318 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7319 insn_is_jump to gdbarch.
7320 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7321 * gdbarch.h: Regenerated.
7322 * gdbarch.c: Regenerated.
7323 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7324 (default_insn_is_jump): New.
7325 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7326 (default_insn_is_jump): New.
7328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7330 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7332 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7333 (btrace_read_type) <btrace_read_new>: Change to ...
7334 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7336 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7338 * common/linux-btrace.c (linux_read_btrace): Free trace from
7341 2014-01-15 Doug Evans <dje@google.com>
7343 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7346 2014-01-15 Tom Tromey <tromey@redhat.com>
7348 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7349 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7350 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7351 (set_objfile_main_name): New function.
7352 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7353 language_of_main>: New fields.
7354 (set_objfile_main_name): Declare.
7355 * symtab.c (find_main_name): Loop over objfiles to find the main
7357 (set_main_name): Now static.
7358 (get_main_info): Add comment.
7359 * symtab.h (set_main_name): Don't declare.
7361 2014-01-15 Tom Tromey <tromey@redhat.com>
7363 * symtab.c (main_progspace_key): New global.
7364 (struct main_info): New.
7365 (name_of_main, language_of_main): Remove.
7366 (get_main_info, main_info_cleanup): New function.
7367 (set_main_name, main_name, main_language): Use get_main_info.
7368 (_initialize_symtab): Initialize main_progspace_key.
7370 2014-01-15 Tom Tromey <tromey@redhat.com>
7372 * dbxread.c (process_one_symbol): Update.
7373 * dwarf2read.c (read_partial_die): Update.
7374 * symfile.c (set_initial_language): Call main_language.
7375 * symtab.c (language_of_main): Now static.
7376 (set_main_name): Add 'lang' parameter.
7377 (find_main_name): Update.
7378 (main_language): New function.
7379 (symtab_observer_executable_changed): Update.
7380 * symtab.h (set_main_name): Update.
7381 (language_of_main): Remove.
7382 (main_language): Declare.
7384 2014-01-15 Tom Tromey <tromey@redhat.com>
7386 * symfile.c (init_entry_point_info): Use new "initialized" field.
7388 * objfiles.h (struct entry_point) <initialized>: New field.
7389 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7390 (struct objfile) <ei>: ...here. Remove.
7391 * objfiles.c (entry_point_address_query): Update.
7393 2014-01-15 Tom Tromey <tromey@redhat.com>
7395 * objfiles.c (entry_point_address_query): Relocate entry point
7397 (objfile_relocate1): Do not relocate entry point address.
7398 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7399 <the_bfd_section_index>: New field.
7400 * symfile.c (init_entry_point_info): Find the entry point's
7403 2014-01-15 Tom Tromey <tromey@redhat.com>
7405 * solib-frv.c (enable_break): Use entry_point_address_query.
7407 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7409 * NEWS: Add note on improved process record-replay on
7410 arm*-linux* targets.
7412 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7414 * arm-tdep.c (enum arm_record_result): New enum.
7415 (arm_record_unsupported_insn): New function.
7416 (arm_record_coproc_data_proc): Removed.
7417 (thumb2_record_ld_st_multiple): New function.
7418 (thumb2_record_ld_st_dual_ex_tbb): New function.
7419 (thumb2_record_data_proc_sreg_mimm): New function.
7420 (thumb2_record_ps_dest_generic): New function.
7421 (thumb2_record_branch_misc_cntrl): New function.
7422 (thumb2_record_str_single_data): New function.
7423 (thumb2_record_ld_mem_hints): New function.
7424 (thumb2_record_ld_word): New function.
7425 (thumb2_record_lmul_lmla_div): New function.
7426 (thumb2_record_decode_insn_handler): New function.
7427 (decode_insn): Add thumb32 instruction handlers.
7429 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7431 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7432 (struct arm_linux_record_tdep): Declare.
7433 (arm_canonicalize_syscall): New function.
7434 (arm_all_but_pc_registers_record): New function.
7435 (arm_linux_syscall_record): New function.
7436 (arm_linux_init_abi): Add syscall recording constructs.
7437 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7438 decoding. (arm_record_coproc_data_proc): Update arm syscall
7440 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7441 <arm_syscall_record>: New field.
7442 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7445 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7447 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7448 register for push instruction recording.
7450 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7452 * arm-tdep.c (thumb_record_misc): Update to correct logical
7453 error while recording ldm, ldmia and pop instructions.
7455 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7457 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7459 2014-01-15 Pedro Alves <palves@redhat.com>
7461 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7462 (go32_resume, go32_fetch_registers, store_register)
7463 (go32_store_registers, go32_prepare_to_store)
7464 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7465 (go32_create_inferior, go32_can_run, go32_terminal_init)
7466 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7469 2014-01-15 Tom Tromey <tromey@redhat.com>
7471 * target.h (async_callback_ftype): New typedef.
7472 (struct target_ops) <to_async>: Use it.
7474 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7476 * python/py-value.c (get_field_type): Remove unnecessary curly
7477 braces for single-statement if block.
7479 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7481 * python/py-type.c (convert_field): Add missing empty line
7484 2014-01-14 Doug Evans <dje@google.com>
7486 * symfile.h (expand_symtabs_matching): Renamed from
7487 expand_partial_symbol_names. Update prototype.
7488 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7489 * symfile.c (expand_symtabs_matching): Renamed from
7490 expand_partial_symbol_names. New args file_matcher, kind.
7491 Rename arg fun to symbol_matcher.
7492 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7493 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7494 ada_expand_partial_symbol_name.
7495 (ada_make_symbol_completion_list): Update to call
7496 expand_symtabs_matching.
7497 (ada_add_global_exceptions): Call expand_symtabs_matching.
7498 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7499 call map_symbol_filenames.
7500 * symtab.c (sources_info): Update to call map_symbol_filenames.
7501 (search_symbols): Call expand_symtabs_matching.
7502 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7503 (default_make_symbol_completion_list_break_on): Update to call
7504 expand_symtabs_matching.
7505 (make_source_files_completion_list): Update to call
7506 map_symbol_filenames.
7508 2014-01-14 Doug Evans <dje@google.com>
7510 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7511 (expand_symtabs_symbol_matcher_ftype): New typedef.
7512 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7513 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7514 * symfile.c (expand_partial_symbol_names): Update to use
7515 expand_symtabs_symbol_matcher_ftype.
7516 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7517 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7518 Arg name_matcher renamed to symbol_matcher.
7519 * psymtab.c (recursively_search_psymtabs): Update to use
7520 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7522 (expand_symtabs_matching_via_partial): Update to use
7523 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7524 Arg name_matcher renamed to symbol_matcher.
7526 2014-01-14 Doug Evans <dje@google.com>
7528 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7529 (map_partial_symbol_filenames): Ditto.
7530 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7531 (map_partial_symbol_filenames): Ditto.
7532 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7533 (map_partial_symbol_filenames): Ditto.
7534 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7535 (map_partial_symbol_filenames): Ditto.
7536 * symtab.c: Delete #include "psymtab.h".
7538 2014-01-14 Pedro Alves <palves@redhat.com>
7539 Tom Tromey <tromey@redhat.com>
7541 * infrun.c (use_displaced_stepping): Use find_record_target
7542 instead of RECORD_IS_USED.
7543 (adjust_pc_after_break): Use record_full_is_used instead of
7545 * record-btrace.c (record_btrace_open): Call record_preopen
7546 instead of checking RECORD_IS_USED.
7547 * record-full.c (record_full_shortname)
7548 (record_full_core_shortname): New globals.
7549 (record_full_is_used): New function.
7550 (find_full_open): Call record_preopen instead of checking
7552 (init_record_full_ops): Set the target's shortname to
7553 record_full_shortname.
7554 (init_record_full_core_ops): Set the target's shortname to
7555 record_full_core_shortname.
7556 * record-full.h (record_full_is_used): Declare.
7557 * record.c (find_record_target): Make extern.
7558 (record_preopen): New function.
7559 * record.h (RECORD_IS_USED): Delete macro.
7560 (find_record_target, record_preopen): Declare functions.
7562 2014-01-14 Yao Qi <yao@codesourcery.com>
7564 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7565 'len''s type to ULONGEST.
7566 (core_xfer_shared_libraries_aix): Likewise.
7567 * gdbarch.c, gdbarch.h: Regenerated.
7568 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7569 Change type of 'len' to ULONGEST.
7570 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7571 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7573 2014-01-14 Yao Qi <yao@codesourcery.com>
7575 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7576 type of 'len' to ULONGEST.
7577 (linux_xfer_osdata_processgroups): Likewise.
7578 (linux_xfer_osdata_threads): Likewise.
7579 (linux_xfer_osdata_fds): Likewise.
7580 (linux_xfer_osdata_isockets): Likewise.
7581 (linux_xfer_osdata_shm): Likewise.
7582 (linux_xfer_osdata_sem): Likewise.
7583 (linux_xfer_osdata_msg): Likewise.
7584 (linux_common_xfer_osdata): Likewise.
7585 (struct osdata_type) <getter>: Likewise.
7586 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7589 2014-01-14 Yao Qi <yao@codesourcery.com>
7591 * target.h (target_xfer_partial_ftype): Update.
7592 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7594 * aix-thread.c (aix_thread_xfer_partial): Change type of
7595 argument 'len' to ULONGEST.
7596 * auxv.c (procfs_xfer_auxv): Likewise.
7597 (ld_so_xfer_auxv): Likewise.
7598 (memory_xfer_auxv): Likewise.
7599 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7600 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7601 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7602 * corelow.c (core_xfer_partial): Likewise.
7603 * ctf.c (ctf_xfer_partial): Likewise.
7604 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7606 (darwin_read_dyld_info): Likewise.
7607 (darwin_xfer_partial): Likewise.
7608 * exec.c (section_table_xfer_memory_partial): Likewise.
7609 (exec_xfer_partial): Likewise.
7610 * exec.h (section_table_xfer_memory_partial): Update
7612 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7613 instead of plongest.
7614 (gnu_xfer_partial): Likewise.
7615 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7616 (ia64_hpux_xfer_solib_got): Likewise.
7617 (ia64_hpux_xfer_partial): Likewise.
7618 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7619 * inf-ptrace.c (inf_ptrace_xfer_partial):
7620 * inf-ttrace.c (inf_ttrace_xfer_partial):
7621 * linux-nat.c (linux_xfer_siginfo): Likewise.
7622 (linux_nat_xfer_partial): Likewise.
7623 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7624 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7625 * monitor.c (monitor_xfer_memory): Likewise.
7626 (monitor_xfer_partial): Likewise.
7627 * procfs.c (procfs_xfer_partial): Likewise.
7628 * record-full.c (record_full_xfer_partial): Likewise.
7629 (record_full_core_xfer_partial): Likewise.
7630 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7631 instead of plongest.
7632 (gdbsim_xfer_partial): Likewise.
7633 * remote.c (remote_xfer_partial): Likewise.
7634 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7635 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7637 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7638 (rs6000_xfer_shared_libraries): Likewise.
7639 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7640 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7641 (sparc_xfer_partial): Likewise.
7642 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7643 (spu_xfer_partial): Likewise.
7644 * spu-multiarch.c (spu_xfer_partial): Likewise.
7645 * target.c (target_read_live_memory): Likewise.
7646 (memory_xfer_live_readonly_partial): Likewise.
7647 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7648 (target_xfer_partial, default_xfer_partial): Likewise.
7649 (current_xfer_partial): Likewise.
7650 * tracepoint.c (tfile_xfer_partial): Likewise.
7651 * windows-nat.c (windows_xfer_memory): Likewise. Call
7652 pulongest instead of plongest.
7653 (windows_xfer_partial): Likewise.
7654 (windows_xfer_shared_libraries): Likewise.
7656 2014-01-14 Yao Qi <yao@codesourcery.com>
7658 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7659 target_xfer_partial_ftype.
7661 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7665 * valops.c (value_struct_elt_bitpos): New function
7666 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7667 object to 'None' if the field name is an empty string ("").
7668 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7669 attribute to look for a field when 'name' is 'None'.
7670 (get_field_type): New function
7672 2014-01-13 Doug Evans <dje@google.com>
7675 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7676 (try_open_dwop_file): Ditto.
7677 * gdb_bfd.c: #include "vec.h".
7678 (bfdp): New typedef.
7679 (struct gdb_bfd_data): New member included_bfds.
7680 (gdb_bfd_unref): Unref all included bfds.
7681 (gdb_bfd_record_inclusion): New function.
7682 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7684 2014-01-13 Tom Tromey <tromey@redhat.com>
7686 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7688 2014-01-13 Tom Tromey <tromey@redhat.com>
7690 * defs.h (use_windows): Remove.
7691 * gdb.c (main): Update.
7692 * main.c (captured_main, gdb_main): Update.
7693 * main.h (struct captured_main_args) <use_windows>: Remove.
7694 * top.c (use_windows): Remove.
7696 2014-01-13 Tom Tromey <tromey@redhat.com>
7698 * defs.h (deprecated_flush_hook): Remove.
7700 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7703 * linux-thread-db.c (try_thread_db_load): Add parameter
7704 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7705 (try_thread_db_load_from_pdir_1): Move it there from here.
7706 (try_thread_db_load_from_sdir): Update caller.
7707 (try_thread_db_load_from_dir): Move it there from here.
7709 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7711 * regformats/regdat.sh: Always rewrite the register file.
7713 2014-01-13 Pedro Alves <palves@redhat.com>
7715 * Makefile.in (CHECK_HEADERS): New variable.
7716 (check-headers:): New rule.
7718 2014-01-13 Tom Tromey <tromey@redhat.com>
7720 * cli/cli-setshow.c (do_set_command): Update.
7721 * defs.h (deprecated_set_hook): Remove.
7722 * top.c (deprecated_set_hook): Remove.
7724 2014-01-13 Pedro Alves <palves@redhat.com>
7726 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7727 the tracepoint if the PC is a pseudo-register.
7729 2014-01-13 Tom Tromey <tromey@redhat.com>
7731 * defs.h (XCALLOC): Remove.
7732 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7733 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7734 * dwarf2loc.c (allocate_piece_closure): Likewise.
7735 * elfread.c (elf_symfile_segments): Likewise.
7736 (elf_symfile_segments): Likewise.
7737 * gdbtypes.c (copy_type_recursive): Likewise.
7738 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7739 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7740 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7742 * mt-tdep.c (mt_gdbarch_init): Likewise.
7743 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7745 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7746 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7747 * registry.c (registry_alloc_data): Likewise.
7748 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7749 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7750 * serial.c (serial_fdopen_ops): Likewise.
7751 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7753 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7754 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7757 2014-01-13 Tom Tromey <tromey@redhat.com>
7759 * defs.h (XMALLOC): Remove.
7760 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7761 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7762 * cli-out.c (struct ui_out *): Likewise.
7763 * cli/cli-dump.c (add_dump_command): Likewise.
7764 (add_dump_command): Likewise.
7765 * complaints.c (get_complaints): Likewise.
7766 (find_complaint): Likewise.
7767 * dwarf2-frame.c (execute_cfa_program): Likewise.
7768 * dwarf2read.c (abbrev_table_read_table): Likewise.
7769 * gdbarch.sh: Likewise.
7770 * gdbarch.c: Rebuild.
7771 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7772 * interps.c (interp_new): Likewise.
7773 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7774 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7775 * mi/mi-console.c (mi_console_file_new): Likewise.
7776 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7777 * mi/mi-out.c (mi_out_new): Likewise.
7778 * mi/mi-parse.c (mi_parse): Likewise.
7779 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7780 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7781 * observer.c (xalloc_observer_list_node): Likewise.
7782 * regcache.c (regcache_xmalloc_1): Likewise.
7783 * reggroups.c (reggroup_new): Likewise.
7784 (_initialize_reggroup): Likewise.
7785 * registry.c (register_data_with_cleanup): Likewise.
7786 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7787 * ser-base.c (serial_ttystate): Likewise.
7788 * ser-mingw.c (make_pipe_state): Likewise.
7789 * ser-pipe.c (pipe_open): Likewise.
7790 * serial.c (serial_open): Likewise.
7791 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7792 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7793 (tui_alloc_win_info): Likewise.
7794 (tui_add_content_elements): Likewise.
7795 * tui/tui-file.c (tui_file_new): Likewise.
7796 * tui/tui-out.c (tui_out_new): Likewise.
7797 * ui-file.c (mem_file_new): Likewise.
7798 * ui-out.c (push_level): Likewise.
7799 (make_cleanup_ui_out_end): Likewise.
7800 (append_header_to_list): Likewise.
7801 (ui_out_new): Likewise.
7802 * user-regs.c (user_reg_add_builtin): Likewise.
7804 2014-01-13 Tom Tromey <tromey@redhat.com>
7806 * defs.h (XZALLOC): Remove.
7807 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7808 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7809 (get_ada_tasks_inferior_data): Likewise.
7810 * auto-load.c (get_auto_load_pspace_data): Likewise.
7811 * auxv.c (get_auxv_inferior_data): Likewise.
7812 * bfd-target.c (target_bfd_reopen): Likewise.
7813 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7814 (deprecated_insert_raw_breakpoint): Likewise.
7815 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7816 * corelow.c (core_open): Likewise.
7817 * darwin-nat.c (darwin_check_new_threads): Likewise.
7818 (darwin_attach_pid): Likewise.
7819 * dummy-frame.c (dummy_frame_push): Likewise.
7820 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7821 * dwarf2loc.c (allocate_piece_closure): Likewise.
7822 * elfread.c (elf_symfile_segments): Likewise.
7823 * eval.c (ptrmath_type_p): Likewise.
7824 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7825 * gdbtypes.c (alloc_type_arch): Likewise.
7826 (alloc_type_instance): Likewise.
7827 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7828 * inf-child.c (inf_child_can_use_agent): Likewise.
7829 * inflow.c (get_inflow_inferior_data): Likewise.
7830 * infrun.c (save_infcall_suspend_state): Likewise.
7831 * jit.c (jit_reader_load): Likewise.
7832 (get_jit_objfile_data): Likewise.
7833 (get_jit_program_space_data): Likewise.
7834 (jit_object_open_impl): Likewise.
7835 (jit_symtab_open_impl): Likewise.
7836 (jit_block_open_impl): Likewise.
7837 (jit_frame_sniffer): Likewise.
7838 * linux-fork.c (add_fork): Likewise.
7839 * maint.c (make_command_stats_cleanup): Likewise.
7840 * objfiles.c (get_objfile_pspace_data): Likewise.
7841 * opencl-lang.c (struct lval_closure): Likewise.
7842 * osdata.c (osdata_start_osdata): Likewise.
7843 * progspace.c (new_address_space): Likewise.
7844 (add_program_space): Likewise.
7845 * remote-sim.c (get_sim_inferior_data): Likewise.
7846 * sh-tdep.c (sh_gdbarch_init): Likewise.
7847 * skip.c (Ignore): Likewise.
7848 (skip_delete_command): Likewise.
7849 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7850 (library_list_start_library): Likewise.
7851 (solib_aix_current_sos): Likewise.
7852 * solib-darwin.c (get_darwin_info): Likewise.
7853 (darwin_current_sos): Likewise.
7854 * solib-dsbt.c (get_dsbt_info): Likewise.
7855 * solib-ia64-hpux.c (new_so_list): Likewise.
7856 (ia64_hpux_get_solib_linkage_addr): Likewise.
7857 * solib-spu.c (append_ocl_sos): Likewise.
7858 (spu_current_sos): Likewise.
7859 * solib-svr4.c (get_svr4_info): Likewise.
7860 (svr4_keep_data_in_core): Likewise.
7861 (library_list_start_library): Likewise.
7862 (svr4_default_sos): Likewise.
7863 (svr4_read_so_list): Likewise.
7864 * solib-target.c (library_list_start_library): Likewise.
7865 (solib_target_current_sos): Likewise.
7866 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7867 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7868 * symfile.c (default_symfile_segments): Likewise.
7869 * target-descriptions.c (tdesc_data_init): Likewise.
7870 (tdesc_create_reg): Likewise.
7871 (struct tdesc_type *): Likewise.
7872 (tdesc_create_vector): Likewise.
7873 (tdesc_set_struct_size): Likewise.
7874 (struct tdesc_type *): Likewise.
7875 (tdesc_free_feature): Likewise.
7876 (tdesc_create_feature): Likewise.
7877 * windows-nat.c (windows_add_thread): Likewise.
7878 (windows_make_so): Likewise.
7879 * xml-support.c (gdb_xml_body_text): Likewise.
7880 (gdb_xml_create_parser_and_cleanup): Likewise.
7881 (xml_process_xincludes): Likewise.
7882 * xml-syscall.c (allocate_syscalls_info): Likewise.
7883 (syscall_create_syscall_desc): Likewise.
7885 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7887 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7888 function, with code from i386_stap_parse_special_token.
7889 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7890 (i386_stap_parse_special_token): Move code to the two functions
7893 2014-01-09 Pedro Alves <palves@redhat.com>
7894 Hui Zhu <hui@codesourcery.com>
7897 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7898 bp_err_string. Don't mark the location shlib_disabled if the
7899 error thrown wasn't a generic or memory error. Catch errors
7900 thrown while inserting breakpoints in overlayed code. Output
7901 error message of software breakpoints.
7902 * remote.c (remote_insert_breakpoint): If this breakpoint has
7903 target-side commands but this stub doesn't support Z0 packets,
7904 throw NOT_SUPPORTED_ERROR error.
7905 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7906 * target.h (target_insert_breakpoint): Extend comment.
7907 (target_insert_hw_breakpoint): Add comment.
7909 2014-01-08 Pedro Alves <palves@redhat.com>
7911 * remote.c (remote_add_thread): Add threads silently if starting
7913 (remote_notice_new_inferior): If in all-stop, and starting up,
7914 don't call notice_new_inferior.
7915 (get_current_thread): New function, factored out from ...
7916 (add_current_inferior_and_thread): ... this. Adjust.
7917 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7918 found any thread, then select the remote's current thread as GDB's
7921 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7923 * NEWS: Create a new section for the next release branch.
7924 Rename the section of the current branch, now that it has
7927 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7929 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7930 * version.in: Bump version to 7.7.50.DATE-cvs.
7932 2014-01-08 Yao Qi <yao@codesourcery.com>
7934 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7935 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7936 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7938 2014-01-08 Yao Qi <yao@codesourcery.com>
7940 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7941 return value of bfd_get_filename to symbol_file_add_from_bfd.
7943 2014-01-08 Pierre Muller <muller@sourceware.org>
7946 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7947 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7948 to prim_record_mininal_symbol_and_info.
7949 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7950 in call to prim_record_minimal_symbol_and_info.
7951 (read_pe_exported_syms): Set index field of section_data.
7953 2014-01-07 Andrew Pinski <apinski@cavium.com>
7955 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7956 * features/aarch64.c: Regenerate.
7958 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7960 * target.c (return_null): Define.
7961 (update_current_target): Use it instead of return_zero for
7962 functions that return a pointer.
7964 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7966 * source.c (add_path): Fix check for duplicated paths in the previously
7969 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7971 * ada-lang.c: Remove duplicated include statements.
7972 * alphabsd-nat.c: Ditto.
7973 * amd64-darwin-tdep.c: Ditto.
7974 * amd64fbsd-nat.c: Ditto.
7975 * auto-load.c: Ditto.
7977 * breakpoint.c: Ditto.
7979 * fork-child.c: Ditto.
7980 * gdb_usleep.c: Ditto.
7981 * i386-darwin-tdep.c: Ditto.
7982 * i386fbsd-nat.c: Ditto.
7984 * inferior.c: Ditto.
7986 * linux-nat.c: Ditto.
7987 * linux-tdep.c: Ditto.
7988 * m68kbsd-nat.c: Ditto.
7989 * m68klinux-nat.c: Ditto.
7990 * microblaze-tdep.c: Ditto.
7991 * mips-linux-tdep.c: Ditto.
7992 * mn10300-tdep.c: Ditto.
7993 * nto-tdep.c: Ditto.
7994 * opencl-lang.c: Ditto.
7996 * printcmd.c: Ditto.
7997 * regcache.c: Ditto.
7998 * remote-m32r-sdi.c: Ditto.
8002 * tilegx-linux-nat.c: Ditto.
8003 * tilegx-tdep.c: Ditto.
8004 * tracepoint.c: Ditto.
8006 * vaxbsd-nat.c: Ditto.
8007 * windows-nat.c: Ditto.
8008 * xtensa-tdep.c: Ditto.
8010 2014-01-07 Yao Qi <yao@codesourcery.com>
8012 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8014 2014-01-07 Yao Qi <yao@codesourcery.com>
8015 Joel Brobecker <brobecker@adacore.com>
8017 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8018 (pdc_write_regs): Likewise.
8019 (fetch_regs_kernel_thread): Likewise.
8020 (store_regs_kernel_thread): Likewise.
8022 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8024 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8025 tagged type objects to their actual type.
8027 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8029 * ada-valprint.c (print_field_values): Add "language" parameter.
8030 Update calls to print_field_values and print_variant_part.
8031 Pass new parameter "language" in call to val_print instead
8032 of "current_language". Replace call to ada_val_print by call
8034 (print_variant_part): Add "language" parameter.
8035 (ada_val_print_struct_union): Update call to print_field_values.
8037 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8039 * ada-valprint.c (ui_memcpy): Delete.
8040 (ada_print_floating): Update documentation. Add empty line
8041 between between function documentation and implementation.
8042 Delete variable "buffer". Use ui_file_xstrdup in place of
8043 ui_file_put. Minor adjustments following this change.
8045 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8047 * ada-valprint.c (ada_val_print_string): New function,
8048 extracted from ada_val_print_array.
8049 (ada_val_print_array): Replace extracted code by call
8050 to ada_val_print_string followed by a return. Move
8051 "else" branch to the function's top block.
8053 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8055 * ada-valprint.c (ada_val_print_array): Move implementation
8056 down. Rename parameter "offset" and "val" into "offset_aligned"
8057 and "original_value" respectively. Add parameter "offset".
8059 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8061 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8062 re-organizing the code. Change the "???" message printed
8063 when target type is a TYPE_CODE_UNDEF into
8064 "<ref to undefined type>".
8066 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8068 * ada-valprint.c (print_record): Delete, implementation inlined...
8069 (ada_val_print_struct_union): ... here. Remove call to
8070 ada_check_typedef in inlined implementation.
8072 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8074 * ada-valprint.c (ada_val_print_gnat_array): New function,
8075 extracted from ada_val_print_1;
8076 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8077 (ada_val_print_flt, ada_val_print_struct_union)
8078 (ada_val_print_ref): Likewise.
8079 (ada_val_print_1): Delete variables i and elttype.
8080 Replace extracted-out code by call to corresponding
8083 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8085 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8087 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8089 * ada-valprint.c (ada_val_print_1): Replace calls to
8090 ada_val_print_1 by calls to val_print.
8092 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8094 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8095 Update calls to self accordingly. Replace calls to c_val_print
8096 by calls to val_print.
8098 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8100 * ada-valprint.c (print_record): Delete declaration.
8101 (adjust_type_signedness, ada_val_print_1): Likewise.
8102 (ada_val_print): Move function implementation down.
8103 (print_variant_part, print_field_values, print_record):
8104 Move function implementation up.
8106 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8108 * python/py-type.c (typy_get_name): New function.
8109 (type_object_getset): Add entry for attribute "name".
8110 * NEWS: Add entry mentioning this new attribute.
8112 2014-01-07 Yao Qi <yao@codesourcery.com>
8114 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8117 2014-01-07 Yao Qi <yao@codesourcery.com>
8119 * gnu-nat.c (info_port_rights): Add qualifier const to
8122 2014-01-07 Yao Qi <yao@codesourcery.com>
8124 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8126 2014-01-07 Yao Qi <yao@codesourcery.com>
8128 * gnu-nat.c (make_inf) Update declaration.
8129 (make_inf): Make it static.
8130 (inf_set_traced): Likewise.
8131 (inf_port_to_thread, inf_task_died_status): Likewise.
8133 2014-01-07 Yao Qi <yao@codesourcery.com>
8135 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8137 2014-01-07 Yao Qi <yao@codesourcery.com>
8139 * gnu-nat.c (_initialize_gnu_nat): Declare.
8141 2014-01-07 Yao Qi <yao@codesourcery.com>
8143 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8145 (struct gdbarch_info) <byte_order>: Change type to
8147 <byte_order_for_code>: Likewise.
8148 * gdbarch.c, gdbarch.h: Regenerated.
8150 2014-01-06 Sasha Smundak <asmundak@google.com>
8152 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8154 2014-01-06 Tom Tromey <tromey@redhat.com>
8156 * doublest.c (convert_doublest_to_floatformat): Use const, not
8158 * somread.c (som_symtab_read): Likewise.
8160 2014-01-07 Hui Zhu <hui@codesourcery.com>
8162 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8163 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8164 (gdb_bfd_fopen): Ditto.
8165 (gdb_bfd_openr): Ditto.
8166 (gdb_bfd_openw): Ditto.
8167 (gdb_bfd_openr_iovec): Ditto.
8168 (gdb_bfd_fdopenr): Ditto.
8169 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8170 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8172 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8174 * symfile-mem.c (symbol_file_add_from_memory): Removed
8175 gdb_bfd_stash_filename.
8177 2014-01-03 Doug Evans <dje@google.com>
8179 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8182 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8184 Update year range in copyright notice of all files.
8186 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8188 * top.c (print_gdb_version): Set copyright year to 2014.
8190 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8192 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8194 For older changes see ChangeLog-2013.
8200 version-control: never