1 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8 (replay_memory_access_read_only, replay_memory_access_read_write)
9 (replay_memory_access_types, replay_memory_access)
10 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
11 (cmd_set_record_btrace, cmd_show_record_btrace)
12 (cmd_show_replay_memory_access): New.
13 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
14 (record_btrace_remove_breakpoint): Replace
15 record_btrace_allow_memory_access with replay_memory_access.
16 (_initialize_record_btrace): Add commands.
19 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21 * aarch64-linux-nat.c (asm/ptrace.h): Include.
23 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25 * MAINTAINERS (Write After Approval): Move self back from
28 2014-05-22 Pedro Alves <palves@redhat.com>
30 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
31 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
32 (disable_randomization, enum exec_direction_kind)
33 (execution_direction, stop_registers, start_remote)
34 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
35 (wait_for_inferior, normal_stop, get_last_target_status)
36 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
37 (insert_step_resume_breakpoint_at_sal)
38 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
39 (set_step_info, print_stop_event, signal_stop_state)
40 (signal_print_state, signal_pass_state, signal_stop_update)
41 (signal_print_update, signal_pass_update)
42 (update_signals_program_target, clear_exit_convenience_vars)
43 (displaced_step_dump_bytes, update_observer_mode)
44 (signal_catch_update, gdb_signal_from_command): Move
46 * infrun.h: ... to this new file.
47 * amd64-tdep.c: Include infrun.h.
48 * annotate.c: Include infrun.h.
49 * arch-utils.c: Include infrun.h.
50 * arm-linux-tdep.c: Include infrun.h.
51 * arm-tdep.c: Include infrun.h.
52 * break-catch-sig.c: Include infrun.h.
53 * breakpoint.c: Include infrun.h.
54 * common/agent.c: Include infrun.h instead of inferior.h.
55 * corelow.c: Include infrun.h.
56 * event-top.c: Include infrun.h.
57 * go32-nat.c: Include infrun.h.
58 * i386-tdep.c: Include infrun.h.
59 * inf-loop.c: Include infrun.h.
60 * infcall.c: Include infrun.h.
61 * infcmd.c: Include infrun.h.
62 * infrun.c: Include infrun.h.
63 * linux-fork.c: Include infrun.h.
64 * linux-nat.c: Include infrun.h.
65 * linux-thread-db.c: Include infrun.h.
66 * monitor.c: Include infrun.h.
67 * nto-tdep.c: Include infrun.h.
68 * procfs.c: Include infrun.h.
69 * record-btrace.c: Include infrun.h.
70 * record-full.c: Include infrun.h.
71 * remote-m32r-sdi.c: Include infrun.h.
72 * remote-mips.c: Include infrun.h.
73 * remote-notif.c: Include infrun.h.
74 * remote-sim.c: Include infrun.h.
75 * remote.c: Include infrun.h.
76 * reverse.c: Include infrun.h.
77 * rs6000-tdep.c: Include infrun.h.
78 * s390-linux-tdep.c: Include infrun.h.
79 * solib-irix.c: Include infrun.h.
80 * solib-osf.c: Include infrun.h.
81 * solib-svr4.c: Include infrun.h.
82 * target.c: Include infrun.h.
83 * top.c: Include infrun.h.
84 * windows-nat.c: Include infrun.h.
85 * mi/mi-interp.c: Include infrun.h.
86 * mi/mi-main.c: Include infrun.h.
87 * python/py-threadevent.c: Include infrun.h.
89 2014-05-22 Pedro Alves <palves@redhat.com>
91 * infrun.c (handle_inferior_event): Store the exit code for
92 --return-child-result here, instead of ...
93 (print_exited_reason): ... here.
95 2014-05-21 Pedro Alves <palves@redhat.com>
98 * gdbthread.h (struct thread_control_state): New field
100 * infrun.c (follow_fork): Copy the new thread control field to the
102 (clear_proceed_status_thread): Clear the new thread control field.
103 (proceed): Set the new thread control field.
104 * interps.h (command_interp): Declare.
105 * interps.c (command_interpreter): New global.
106 (command_interp): New function.
107 (interp_exec): Set `command_interpreter' while here.
108 * cli-out.c (cli_uiout_dtor): New function.
109 (cli_ui_out_impl): Install it.
110 * mi/mi-interp.c: Include cli-out.h.
111 (mi_cmd_interpreter_exec): Add comment.
112 (restore_current_uiout_cleanup): New function.
113 (ui_out_free_cleanup): New function.
114 (mi_on_normal_stop): If finishing an execution command started by
115 a CLI command, or any kind of breakpoint-like event triggered,
116 print the stop event to the output (CLI) stream.
117 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
119 2014-05-21 Pedro Alves <palves@redhat.com>
121 * cli/cli-cmds.c (list_command): Handle the first "list" after the
122 current source line having changed.
123 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
124 * infrun.c (normal_stop): Adjust call to
125 set_current_sal_from_frame.
126 * source.c (clear_lines_listed_range): New function.
127 (set_current_source_symtab_and_line, identify_source_line): Clear
128 the lines listed range.
129 (line_info): Handle the first "info line" after the current source
131 * stack.c (print_stack_frame): Remove center handling.
132 (set_current_sal_from_frame): Remove 'center' parameter. Don't
135 2014-05-21 Pedro Alves <palves@redhat.com>
137 * inf-child.c (inf_child_mourn_inferior): New function.
138 * inf-child.h (inf_child_mourn_inferior): New declaration.
139 * darwin-nat.c (darwin_mourn_inferior): Use
140 inf_child_mourn_inferior.
141 * gnu-nat.c (gnu_mourn_inferior): Likewise.
142 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
143 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
144 * nto-procfs.c (procfs_mourn_inferior): Likewise.
145 * windows-nat.c (windows_mourn_inferior): Likewise.
147 2014-05-21 Doug Evans <xdje42@gmail.com>
149 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
151 2014-05-21 Doug Evans <xdje42@gmail.com>
153 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result is void.
154 (gdbscm_out_of_range_error): Ditto.
155 (gdbscm_memory_error): Ditto.
156 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
157 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
158 (gdbscm_out_of_range_error): Update.
159 (gdbscm_memory_error): Update.
160 (gdbscm_scm_to_target_string_unsafe): Delete.
162 2014-05-21 Pedro Alves <palves@redhat.com>
164 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
166 (inf_child_open_target): New function.
167 (inf_child_open): Use inf_child_open_target to push the target
168 instead of erroring out.
169 (inf_child_disconnect, inf_child_close)
170 (inf_child_maybe_unpush_target): New functions.
171 (inf_child_target): Install inf_child_disconnect and
172 inf_child_close. Store a pointer to the returned object.
173 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
175 * target.c (auto_connect_native_target): New global.
176 (show_default_run_target): New function.
177 (find_default_run_target): Return NULL if automatically connecting
178 to the native target is disabled.
179 (_initialize_target): Install set/show auto-connect-native-target.
180 * NEWS: Mention "set auto-connect-native-target", and "target
182 * linux-nat.c (super_close): New global.
183 (linux_nat_close): Call super_close.
184 (linux_nat_add_target): Store a pointer to the base class's
186 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
187 inf_child_maybe_unpush.
188 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
190 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
191 the inferior. Use inf_child_maybe_unpush_target.
192 (inf_ttrace_attach): Don't push the target if it is already
194 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
195 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
196 after mourning the inferior. Use inf_child_maybe_unpush_target.
197 (darwin_attach_pid): Don't push the target if it is already
199 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
200 mourning the inferior. Use inf_child_maybe_unpush_target.
201 (gnu_detach): Use inf_child_maybe_unpush_target.
202 * go32-nat.c (go32_create_inferior): Don't push the target if it
204 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
205 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
206 (procfs_open): Rename to ...
207 (procfs_open_1): ... this. Add target_ops parameter. Adjust
208 comments. Can target_preopen before changing node. Call
209 inf_child_open_target to push the target explicitly.
210 (procfs_attach): Don't push the target if it is already pushed.
211 (procfs_detach): Use inf_child_maybe_unpush_target.
212 (procfs_create_inferior): Don't push the target if it is already
214 (nto_native_ops): New global.
215 (procfs_open): Reimplement.
216 (procfs_native_open): New function.
217 (init_procfs_targets): Install procfs_native_open as to_open of
218 "target native". Store a pointer to the "native" target in
220 * procfs.c (procfs_attach): Don't push the target if it is already
222 (procfs_detach): Use inf_child_maybe_unpush_target.
223 (procfs_mourn_inferior): Only unpush the target after mourning the
224 inferior. Use inf_child_maybe_unpush_target.
225 (procfs_init_inferior): Don't push the target if it is already
227 * windows-nat.c (do_initial_windows_stuff): Don't push the target
228 if it is already pushed.
230 2014-05-21 Pedro Alves <palves@redhat.com>
232 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
233 and "procfs" targets are now called "native" instead.
235 2014-05-21 Pedro Alves <palves@redhat.com>
237 * go32-nat.c (go32_open): Delete.
238 (go32_target): Don't override the to_open method.
240 2014-05-21 Pedro Alves <palves@redhat.com>
242 * nto-procfs.c (procfs_can_run): New function.
243 (nto_procfs_ops): New global.
244 (init_procfs_targets): New, based on procfs_target. Install
245 "target native" in addition to "target procfs".
246 (_initialize_procfs): Call init_procfs_targets instead of adding
249 2014-05-21 Pedro Alves <palves@redhat.com>
251 * windows-nat.c (windows_target): Don't override to_shortname,
252 to_longname or to_doc.
254 2014-05-21 Pedro Alves <palves@redhat.com>
256 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
259 2014-05-21 Pedro Alves <palves@redhat.com>
261 * darwin-nat.c (_initialize_darwin_inferior): Don't override
262 to_shortname, to_longname or to_doc.
264 2014-05-21 Pedro Alves <palves@redhat.com>
266 * go32-nat.c (go32_target): Don't override to_shortname,
267 to_longname or to_doc.
269 2014-05-21 Pedro Alves <palves@redhat.com>
271 * inf-child.c (inf_child_open): Remove mention of "child".
272 (inf_child_target): Rename target to "native" instead of "child".
274 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
276 * Makefile.in (SFILES): Delete "regset.c".
277 (COMMON_OBS): Delete "regset.o".
279 * regset.h (regset_alloc): Delete prototype.
281 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
283 * sparc-linux-tdep.c (sparc32_linux_gregset)
284 (sparc32_linux_fpregset): New static regset structures.
285 (sparc32_linux_init_abi): Drop dynamic regset allocations.
286 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
288 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
289 (sparc64_linux_fpregset): New static regset structures.
290 (sparc64_linux_init_abi): Drop dynamic regset allocations.
291 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
292 New static regset structures.
293 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
294 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
295 New static regset structures.
296 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
297 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
298 New static regset structures.
299 (sparc64obsd_init_abi): Drop dynamic regset allocations.
300 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
301 New static regset structures.
302 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
304 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
306 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
307 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
308 register maps ("regmaps") from "*regset" to "*regmap". Do this
309 for all regmap types and variables.
310 * sparc-linux-tdep.c (sparc32_linux_step_trap)
311 (sparc32_linux_supply_core_gregset)
312 (sparc32_linux_collect_core_gregset)
313 (sparc32_linux_supply_core_fpregset)
314 (sparc32_linux_collect_core_fpregset): Likewise.
315 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
316 (sparc_gregmap, sparc_fpregmap): ... these.
317 (sparc_supply_gregset, sparc_collect_gregset)
318 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
319 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
320 (_initialize_sparc_nat): Rename regmaps.
321 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
322 (sparc_gregmap, sparc_fpregmap): ... these.
323 (sparc_supply_gregset, sparc_collect_gregset)
324 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
325 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
327 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
328 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
330 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
332 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
333 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
334 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
336 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
337 (sparc32_bsd_fpregset): Rename to...
338 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
339 (sparc32_bsd_fpregmap): ... these.
340 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
341 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
342 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
343 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
344 (struct sparc_gregmap, struct sparc_fpregmap)
345 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
346 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
347 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
348 (sparc32_supply_regset, sparc32_collect_gregset)
349 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
351 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
352 (sparc64_linux_ptrace_gregmap): ... this.
353 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
354 (_initialize_sparc64_linux_nat): Rename regmaps.
355 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
356 (sparc64_linux_core_gregmap): ... this.
357 (sparc64_linux_supply_core_gregset)
358 (sparc64_linux_collect_core_gregset)
359 (sparc64_linux_supply_core_fpregset)
360 (sparc64_linux_collect_core_fpregset): Rename regmaps.
361 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
362 (sparc64_sol2_fpregset): Rename to...
363 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
364 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
365 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
367 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
368 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
369 (sparc64_bsd_fpregset): Rename to...
370 (struct sparc_gregmap, sparc64_sol2_gregmap)
371 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
372 (sparc64_bsd_fpregmap): ... these.
373 (sparc64_supply_gregset, sparc64_collect_gregset)
374 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
376 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
377 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
378 (sparc64fbsd_gregmap): ... this.
379 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
380 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
382 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
383 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
384 (sparc64nbsd_collect_fpregset): Likewise.
385 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
386 (sparc64nbsd_gregmap): ... this.
387 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
389 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
390 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
391 (sparc64obsd_gregmap): ... this.
392 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
394 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
395 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
396 (sparc32nbsd_gregmap): ... this.
397 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
402 * score-tdep.c (score7_linux_gregset): New static regset
404 (score7_linux_regset_from_core_section): Remove dynamic regset
406 (score_gdbarch_init): Drop allocation of tdep structure.
407 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
409 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
411 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
413 (am33_regset_from_core_section): Remove dynamic regset
416 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
418 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
419 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
421 (mips_linux_regset_from_core_section): Remove dynamic regset
423 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
424 'gregset64', 'fpregset', and 'fpregset64'.
425 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
428 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
430 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
432 (amd64_regset_from_core_section): Remove dynamic regset
434 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
436 (amd64obsd_regset_from_core_section): Remove dynamic regset
438 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
440 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
441 x86-common regset supply function.
442 * i386-tdep.c (i386_collect_gregset): Make static.
443 (i386_gregset): New global regset structure.
444 (i386_fpregset, i386_xstateregset): New static regset structures.
445 (i386_regset_from_core_section): Remove dynamic regset
447 (i386_gdbarch_init): Remove initialization of tdep fields
448 'gregset', 'fpregset', and 'xstateregset'.
449 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
450 'fpregset', and 'xstateregset'.
451 (i386_collect_gregset): Remove prototype.
452 (i386_gregset): New declaration.
453 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
455 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
458 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
460 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
461 (arm_linux_vfpregset): New static regset structures.
462 (arm_linux_regset_from_core_section): Remove dynamic allocation of
464 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
465 and 'vfpregset' fields.
467 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
469 * aarch64-linux-tdep.c (aarch64_linux_gregset)
470 (aarch64_linux_fpregset): New static regset structures.
471 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
472 of regset structures.
473 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
476 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
478 * regset.h (struct regset): Remove gdbarch field.
479 * regset.c (regset_alloc): Drop initialization of gdbarch field.
480 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
481 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
483 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
484 (ppc32_linux_fpregset, ppc32_linux_vrregset)
485 (ppc32_linux_vsxregset): Likewise.
486 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
487 via the regcache instead of the regset.
488 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
489 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
490 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
491 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
494 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
496 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
498 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
499 (alphanbsd_aout_gregset): Likewise.
500 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
501 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
503 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
504 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
506 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
507 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
508 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
509 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
510 * m88k-tdep.c (m88k_gregset): Likewise.
511 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
512 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
513 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
514 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
515 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
516 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
517 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
518 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
519 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
521 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
522 * sh-tdep.h (sh_corefile_gregset): Likewise.
523 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
524 * vax-tdep.c (vax_gregset): Likewise.
526 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
528 Fix TLS access for -static -pthread.
529 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
530 (try_thread_db_load_1): Initialize it.
531 (thread_db_get_thread_local_address): Call it if LM is zero.
532 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
533 * target.h (struct target_ops) (to_get_thread_local_address): Add
534 load_module_addr comment.
536 2014-05-21 Pedro Alves <palves@redhat.com>
538 * dcache.c (dcache_read_memory_partial): If reading the cache line
539 fails, fallback to reading just the memory the caller wanted.
541 2014-05-20 Doug Evans <dje@google.com>
543 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
544 instead of get_current_arch.
546 2014-05-20 Pedro Alves <palves@redhat.com>
548 * NEWS: Mention that compare-sections now works with all targets.
550 * remote.c (PACKET_qCRC): New enum value.
551 (remote_verify_memory): Don't send qCRC if the target has no
552 execution. Use packet_support/packet_ok. If the target doesn't
553 support the qCRC packet, fallback to a deep memory copy.
554 (compare_sections_command): Say "target image" instead of "remote
556 (_initialize_remote): Add PACKET_qCRC to the list of config
557 packets that have no associated command. Extend comment.
558 * target.c (simple_verify_memory, default_verify_memory): New
560 * target.h (struct target_ops) <to_verify_memory>: Default to
561 default_verify_memory.
562 (simple_verify_memory): New declaration.
563 * target-delegates.c: Regenerate.
565 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
567 * record-btrace.c (record_btrace_step_thread): Check for empty history.
569 2014-05-20 Hui Zhu <hui@codesourcery.com>
570 Yao Qi <yao@codesourcery.com>
573 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
574 and change address of sp and pc.
576 2014-05-19 Tom Tromey <tromey@redhat.com>
578 * gdbtypes.c (rank_function): Use XNEWVEC.
579 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
581 2014-05-19 Doug Evans <dje@google.com>
583 * dwarf2read.c (build_type_psymtabs_1): Renamed from
584 build_type_unit_groups and moved closer to only caller. Remove
585 arguments. All references updated. Remove outdated .gdb_index
587 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
588 build_type_psymtabs_1.
590 2014-05-19 Doug Evans <dje@google.com>
592 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
593 n_type_unit_groups, all_type_unit_groups. All uses removed.
594 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
595 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
596 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
597 (add_type_unit_group_to_table): Delete.
599 2014-05-19 Doug Evans <dje@google.com>
601 * eval.c (evaluate_subexp_standard): Add some comments.
603 2014-05-17 Doug Evans <xdje42@gmail.com>
605 * progspace.c (remove_program_space): Delete, unused.
606 * progspace.h (remove_program_space): Ditto.
608 2014-05-17 Doug Evans <xdje42@gmail.com>
610 * inferior.c (prune_inferiors): Fix comment.
611 (remove_inferior_command): Call prune_program_spaces.
613 2014-05-16 Doug Evans <dje@google.com>
615 New command line option -D.
617 * main.c (set_gdb_data_directory): New function.
618 (captured_main): Recognize -D. Flag error for --data-directory "".
619 Call set_gdb_data_directory.
620 (print_gdb_help): Print --data-directory, -D.
621 * main.h (set_gdb_data_directory): Declare.
622 * top.c (staged_gdb_datadir): New static global.
623 (set_gdb_datadir): Call set_gdb_data_directory
624 (show_gdb_datadir): New function.
625 (init_main): Update init of data-directory parameter.
627 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
629 Import the "dirfd" gnulib module.
630 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
631 * gnulib/aclocal.m4: Update.
632 * gnulib/config.in: Update.
633 * gnulib/configure: Update.
634 * gnulib/import/Makefile.am: Update.
635 * gnulib/import/Makefile.in: Update.
636 * gnulib/import/dirfd.c: New.
637 * gnulib/import/m4/dirfd.m4: New.
638 * gnulib/import/m4/gnulib-cache.m4: Update.
639 * gnulib/import/m4/gnulib-comp.m4: Update.
641 2014-05-16 Pierre Muller <muller@sourceware.org>
642 Yao Qi <yao@codesourcery.com>
644 * valprint.c (print_wchar): Move the code on checking whether
645 W is a printable wide char to the default branch of switch
646 statement below. Call wchar_printable instead of gdb_iswprint.
648 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
650 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
651 ldr.w and ldrd instructions.
653 2014-05-15 Doug Evans <dje@google.com>
655 * dwarf2read.c (read_structure_type): Delete outdated comments.
657 2014-05-14 Tom Tromey <tromey@redhat.com>
659 * macrocmd.c (print_macro_definition): Reindent.
661 2014-05-13 Doug Evans <xdje42@gmail.com>
663 * python/py-cmd.c (cmdpy_completer): Add comment.
664 (completers): Make const.
666 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
668 * infrun.c (resume): Remove should_resume (unused). Move up
669 declaration of resume_ptid.
671 2014-05-13 Tom Tromey <tromey@redhat.com>
673 * language.h (unop_type_check): Remove.
674 (binop_type_check): Don't declare.
676 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
678 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
679 call to regcache_raw_collect.
681 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
683 * mi/mi-console.c (mi_console_raw_packet): Use the value from
684 mi_console->quote as the quoting character.
686 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
688 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
690 2014-04-29 Tom Tromey <tromey@redhat.com>
692 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
695 2014-05-07 Kyle McMartin <kyle@redhat.com>
697 Pushed by Joel Brobecker <brobecker@adacore.com>.
698 * aarch64-tdep.c (aarch64_software_single_step): New function.
699 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
700 with aarch64_software_single_step.
702 2014-05-05 Joel Brobecker <brobecker@adacore.com>
706 2014-05-05 Keith Seitz <keiths@redhat.com>
708 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
709 variable or history value is successfully parsed.
711 2014-05-05 Yao Qi <yao@codesourcery.com>
712 Pedro Alves <palves@redhat.com>
714 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
715 address of blocks that intersects the requested range. Trim
716 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
718 * ctf.c (ctf_xfer_partial): Likewise.
720 2014-05-05 Yao Qi <yao@codesourcery.com>
722 * printcmd.c (display_command): Remove the check to
723 target_has_execution.
725 2014-05-03 Mark Kettenis <kettenis@gnu.org>
727 * ppcobsd-nat.c: Include "obsd-nat.h".
728 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
730 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
732 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
734 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
735 and 16-bit signed and unsigned arguments. Update comment.
736 (stap_parse_probe_arguments): Extend code to handle such
737 arguments. Use warning instead of complaint to notify about
738 unrecognized bitness.
740 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
743 * stap-probe.c (stap_parse_probe_arguments): Simplify
744 check for non-prefixed probes (i.e., probes whose
745 arguments do not start with "N@"). Always set the
746 argument type to a sane value.
748 2014-05-01 David Taylor <dtaylor@emc.com>
750 * remote.c (compare_sections_command): Add -r option to compare
751 all loadable read-only sections.
753 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
755 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
756 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
758 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
759 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
760 Remove unused CORE_ADDR argument. Update all callers.
762 2014-04-29 Pedro Alves <palves@redhat.com>
764 * remote.c (struct packet_config) <detect>: Extend comment.
765 (add_packet_config_cmd): Don't set the config's detect or support
767 (init_all_packet_configs): Also initialize the config's 'detect'
769 (reset_all_packet_configs_support): New function.
770 (remote_open_1): Call reset_all_packet_configs_support instead of
771 init_all_packet_configs.
772 (_initialize_remote): Initialize all packet configs. Assert that
773 all packets have an associated command, except a few known
776 2014-04-28 Joel Brobecker <brobecker@adacore.com>
778 * dwarf2read.c (read_subrange_type): Handle dynamic
779 DW_AT_lower_bound attributes.
781 2014-04-28 Joel Brobecker <brobecker@adacore.com>
783 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
784 dynamic bounds before computing its upper bound.
785 (ada_discrete_type_low_bound): Same as above with the lower bound.
787 2014-04-28 Joel Brobecker <brobecker@adacore.com>
789 * dwarf2read.c (is_dynamic_type): Return true for dynamic
790 range types. Adjust the array handling implementation to
791 take advantage of this change.
792 (resolve_dynamic_range): New function, mostly extracted from
793 resolve_dynamic_bounds.
794 (resolve_dynamic_array): New function, mostly extracted from
795 resolve_dynamic_bounds.
796 (resolve_dynamic_bounds): Delete.
797 (resolve_dynamic_type): Reimplement. Add handling of
798 TYPE_CODE_RANGE types.
800 2014-04-28 Joel Brobecker <brobecker@adacore.com>
802 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
803 handling of parallel ___XA types.
805 2014-04-28 Joel Brobecker <brobecker@adacore.com>
807 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
808 unnecessary second call to static_unwrap_type.
810 2014-04-27 Hui Zhu <hui@codesourcery.com>
812 * stack.c (print_frame_info): Call do_gdb_disassembly with
813 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
815 2014-04-26 Doug Evans <xdje42@gmail.com>
817 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
819 2014-04-25 Pedro Alves <palves@redhat.com>
822 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
823 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
824 and newline from built string.
825 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
826 (linux_ptrace_attach_fail_reason): ... this.
827 * linux-nat.c (linux_nat_attach): Adjust to use
828 linux_ptrace_attach_fail_reason.
830 2014-04-25 Pedro Alves <palves@redhat.com>
832 * remote.c (struct remote_state): Remove multi_process_aware,
833 non_stop_aware, cond_tracepoints, cond_breakpoints,
834 breakpoint_commands, fast_tracepoints, static_tracepoints,
835 install_in_trace, disconnected_tracing,
836 enable_disable_tracepoints, string_tracing, and
837 augmented_libraries_svr4_read fields.
838 (remote_multi_process_p): Move further below in the file.
839 (struct packet_config): Add comments.
840 (update_packet_config): Delete function.
841 (show_packet_config_cmd): Use packet_config_support.
842 (add_packet_config_cmd): Use NULL as set callback.
843 (packet_ok): "set remote foo-packet"-style commands no longer
844 change config->supported -- adjust.
845 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
846 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
847 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
848 (PACKET_QNonStop, PACKET_multiprocess_feature)
849 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
850 (PACKET_DisconnectedTracing_feature)
851 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
852 (set_remote_protocol_packet_cmd): Delete function.
853 (packet_config_support, packet_support): New functions.
854 (set_remote_protocol_Z_packet_cmd): Don't call
855 update_packet_config.
856 (remote_query_attached, remote_pass_signals)
857 (remote_program_signals, remote_threads_info)
858 (remote_threads_extra_info, remote_start_remote): Use
860 (remote_start_remote): Use packet_config_support and
862 (init_all_packet_configs): Set all packets to unknown support,
863 instead of calling update_packet_config.
864 (remote_check_symbols): Use packet_support.
865 (remote_supported_packet): Unconditionally set the packet config's
867 (remote_multi_process_feature, remote_non_stop_feature)
868 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
869 (remote_breakpoint_commands_feature)
870 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
871 (remote_install_in_trace_feature)
872 (remote_disconnected_tracing_feature)
873 (remote_enable_disable_tracepoint_feature)
874 (remote_string_tracing_feature)
875 (remote_augmented_libraries_svr4_read_feature): Delete functions.
876 (remote_protocol_features): Adjust to use remote_supported_packet
877 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
878 "ConditionalTracepoints", "ConditionalBreakpoints",
879 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
880 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
881 "EnableDisableTracepoints", and "tracenz".
882 (remote_query_supported): Use packet_support.
883 (remote_open_1): Adjust.
884 (extended_remote_attach_1): Use packet_support. Switch on the
885 result of packet_ok instead of checking whether the packet ended
887 (remote_vcont_resume): Use packet_support.
888 (remote_resume, remote_stop_ns, fetch_register_using_p)
889 (remote_prepare_to_store, store_register_using_P)
890 (check_binary_download, remote_write_bytes): Use packet_support.
891 (remote_vkill): Use packet_support. Switch on the result of
892 packet_ok instead of checking whether the packet ended up
894 (extended_remote_supports_disable_randomization): Use
896 (extended_remote_run): Switch on the result of packet_ok instead
897 of checking whether the packet ended up disabled.
898 (remote_insert_breakpoint, remote_remove_breakpoint)
899 (remote_insert_watchpoint, remote_remove_watchpoint)
900 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
902 (remote_search_memory): Use packet_config_support.
903 (remote_get_thread_local_address, remote_get_tib_address)
904 (remote_hostio_send_command, remote_can_execute_reverse): Use
906 (remote_supports_cond_tracepoints)
907 (remote_supports_cond_breakpoints)
908 (remote_supports_fast_tracepoints)
909 (remote_supports_static_tracepoints)
910 (remote_supports_install_in_trace)
911 (remote_supports_enable_disable_tracepoint)
912 (remote_supports_string_tracing)
913 (remote_can_run_breakpoint_commands): Rewrite, checking whether
914 the packet config says the feature is enabled or disabled.
915 (remote_download_tracepoint, remote_trace_set_readonly_regions)
916 (remote_get_trace_status): Use packet_support.
917 (remote_set_disconnected_tracing): Adjust to check whether the
918 feature is enabled with packet_support.
919 (remote_set_trace_buffer_size, remote_use_agent)
920 (remote_can_use_agent, remote_supports_btrace): Use
922 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
923 Use packet_config_support.
924 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
925 the packet config says the feature is enabled or disabled.
926 (set_range_stepping): Use packet_support.
928 2014-04-25 Tom Tromey <tromey@redhat.com>
930 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
933 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
935 * NEWS: Mention support for C99 variable length arrays.
937 2014-04-24 Joel Brobecker <brobecker@adacore.com>
939 * ada-lang.c (standard_exc): Expand introductory comment.
941 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
942 Walfred Tedeschi <walfred.tedeschi@intel.com>
944 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
946 (amd64_linux_read_description): Add code to handle AVX512 xstate
947 mask and return respective tdesc.
948 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
949 and features/i386/x32-avx512-linux.c.
950 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
951 (amd64_linux_core_read_description): Add code to handle AVX512
952 xstate mask and return respective tdesc.
953 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
954 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
956 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
957 (tdesc_amd64_avx512_linux): New prototype.
958 (tdesc_x32_avx512_linux): Likewise.
959 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
960 features/i386/x32-avx512.c.
961 (amd64_ymm_avx512_names): New register names for pseudo
963 (amd64_ymmh_avx512_names): New register names for raw registers
965 (amd64_k_names): New register names for K registers.
966 (amd64_zmmh_names): New register names for ZMM raw registers.
967 (amd64_zmm_names): New registers names for ZMM pseudo registers.
968 (amd64_xmm_avx512_names): New register names for XMM16-31
970 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
972 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
973 if feature is present.
974 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
975 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
976 (AMD64_NUM_REGS): Adjust to new number of registers.
977 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
978 registers supplied via XSTATE by AVX512 registers.
979 (i386_linux_read_description): Add case for AVX512.
980 * i386-linux-tdep.c: Include i386-avx512-linux.c.
981 (i386_linux_gregset_reg_offset): Add AVX512 registers.
982 (i386_linux_core_read_description): Add case for AVX512.
983 (i386_linux_init_abi): Install supported register note section
985 (_initialize_i386_linux_tdep): Add call to tdesc init function for
987 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
988 registers to be number of zmm7h + 1.
989 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
990 * i386-tdep.c: Include features/i386/i386-avx512.c.
991 (i386_zmm_names): Add ZMM pseudo register names array.
992 (i386_zmmh_names): Add ZMM raw register names array.
993 (i386_k_names): Add K raw register names array.
994 (num_lower_zmm_regs): Add constant for the number of lower ZMM
995 registers. AVX512 has 16 more ZMM registers than there are YMM
997 (i386_zmmh_regnum_p): Add function to look up register number of
999 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1000 (i386_k_regnum_p): Likewise for K raw registers.
1001 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1002 registers added by AVX512.
1003 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1004 registers added by AVX512.
1005 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1007 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1008 (i386_pseudo_register_name): Add ZMM pseudo registers.
1009 (i386_zmm_type): Construct and return vector registers type for ZMM
1011 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1012 ZMM0-31 pseudo registers and K registers.
1013 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1014 and YMM16-31 registers from register cache.
1015 (i386_pseudo_register_write): Add code to write K, ZMM and
1017 (i386_register_reggroup_p): Add code to include/exclude AVX512
1018 registers in/from respective register groups.
1019 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1020 registers if feature is present in xcr0.
1021 (i386_gdbarch_init): Add code to initialize AVX512 feature
1022 variables in tdep structure, wire in pseudo registers and call
1023 initialize_tdesc_i386_avx512.
1024 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1026 (i386_regnum): Add AVX512 registers.
1027 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1028 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1029 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1030 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1032 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1033 (i386_ymm_avx512_regnum_p): Likewise.
1034 (i386_k_regnum_p): Likewise.
1035 (i386_zmm_regnum_p): Likewise.
1036 (i386_zmmh_regnum_p): Likewise.
1037 * i387-tdep.c : Update year in copyright notice.
1038 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1040 (XSAVE_YMM_AVX512_ADDR): New macro.
1041 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1043 (XSAVE_XMM_AVX512_ADDR): New macro.
1044 (xsave_avx512_k_offset): New table for K register offsets in
1046 (XSAVE_AVX512_K_ADDR): New macro.
1047 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1049 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1050 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1052 (i387_collect_xsave): Add code to collect AVX512 registers from
1054 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1055 of XMM16-31 registers.
1056 (I387_NUM_K_REGS): New define for number of K registers.
1057 (I387_K0_REGNUM): New define for K0 register number.
1058 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1059 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1060 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1062 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1063 (I387_XMM16_REGNUM): New define for XMM16 register number.
1064 (I387_YMM0_REGNUM): New define for YMM0 register number.
1065 (I387_KEND_REGNUM): New define for last K register number.
1066 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1067 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1069 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1071 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1073 * features/Makefile: Add AVX512 related files.
1074 * features/i386/32bit-avx512.xml: New file.
1075 * features/i386/64bit-avx512.xml: Likewise.
1076 * features/i386/amd64-avx512-linux.c: Likewise.
1077 * features/i386/amd64-avx512-linux.xml: Likewise.
1078 * features/i386/amd64-avx512.c: Likewise.
1079 * features/i386/amd64-avx512.xml: Likewise.
1080 * features/i386/i386-avx512-linux.c: Likewise.
1081 * features/i386/i386-avx512-linux.xml: Likewise.
1082 * features/i386/i386-avx512.c: Likewise.
1083 * features/i386/i386-avx512.xml: Likewise.
1084 * features/i386/x32-avx512-linux.c: Likewise.
1085 * features/i386/x32-avx512-linux.xml: Likewise.
1086 * features/i386/x32-avx512.c: Likewise.
1087 * features/i386/x32-avx512.xml: Likewise.
1088 * regformats/i386/amd64-avx512-linux.dat: New file.
1089 * regformats/i386/amd64-avx512.dat: Likewise.
1090 * regformats/i386/i386-avx512-linux.dat: Likewise.
1091 * regformats/i386/i386-avx512.dat: Likewise.
1092 * regformats/i386/x32-avx512-linux.dat: Likewise.
1093 * regformats/i386/x32-avx512.dat: Likewise.
1094 * NEWS: Add note about new support for AVX512.
1097 2014-04-23 Pedro Alves <palves@redhat.com>
1099 * breakpoint.c (insert_bp_location): Tolerate errors if the
1100 breakpoint is set in a user-loaded objfile.
1101 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1102 location is marked shlib_disabled. If the breakpoint is set in a
1103 user-loaded objfile is a GDB-side memory breakpoint, validate it
1104 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1105 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1107 * mem-break.c (memory_validate_breakpoint): New function.
1108 * objfiles.c (userloaded_objfile_contains_address_p): New
1110 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1111 * target.h (memory_validate_breakpoint): New declaration.
1113 2014-04-23 Pedro Alves <palves@redhat.com>
1115 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1116 the breakpoint is set in a shared library, only suppress
1117 errors for software breakpoints, not hardware breakpoints.
1119 2014-04-22 Pedro Alves <palves@redhat.com>
1121 * infrun.c (schedlock_applies): New function, factored out from
1122 find_thread_needs_step_over.
1123 (find_thread_needs_step_over): Use it.
1124 (switch_back_to_stepped_thread): Always clear trap_expected if the
1125 step over is finished. Return early if scheduler locking applies.
1126 Look for the stepping thread and a potential step-over thread with
1128 (currently_stepping_or_nexting_callback): Delete.
1130 2014-04-22 Nick Clifton <nickc@redhat.com>
1132 * NEWS: Mention that ARM sim now supports tracing.
1134 2014-04-22 Yao Qi <yao@codesourcery.com>
1136 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1138 * tracefile.c (tracefile_fetch_registers): ... it. New
1140 * tracefile.h (tracefile_fetch_registers): Declare.
1141 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1142 tracefile_fetch_registers.
1144 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1147 * windows-nat.c (thread_rec): Don't display a warning when
1148 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1149 fails for any reason, set th->suspended to -1, so that we don't
1150 try to resume such a thread. Also, don't return NULL in these
1151 cases, to avoid completely ruin the session due to "PC register is
1152 not available" error.
1153 (do_windows_fetch_inferior_registers): Check errors in
1154 GetThreadContext call.
1155 (windows_continue): Accept an additional argument KILLED; if not
1156 zero, ignore errors in the SetThreadContext call, since the
1157 inferior was killed and is shutting down.
1158 (windows_resume, get_windows_debug_event)
1159 (windows_create_inferior, windows_mourn_inferior)
1160 (windows_kill_inferior): All callers of windows_continue changed
1161 to adjust to its new calling sequence.
1163 2014-04-19 Yao Qi <yao@codesourcery.com>
1165 * ctf.c (ctf_open): Call post_create_inferior.
1167 2014-04-19 Yao Qi <yao@codesourcery.com>
1169 * ctf.c (handle_id): New static variable.
1170 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1171 value. Get the declaration of event "register" and get length
1172 of field "contents".
1174 2014-04-19 Yao Qi <yao@codesourcery.com>
1176 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1178 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1180 * valops.c (oload_method_static): Remove unnecessary argument
1181 METHOD. Update all callers.
1183 2014-04-18 Pedro alves <palves@redhat.com>
1184 Tom Tromey <tromey@redhat.com>
1187 * frame.c (get_prev_frame_1): Rename to ...
1188 (get_prev_frame_always): ... this, and make extern. Adjust.
1189 (skip_artificial_frames): Use get_prev_frame_always.
1190 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1191 (get_frame_unwind_stop_reason): Adjust to rename.
1192 * frame.h (get_prev_frame_always): Declare.
1193 * inline-frame.c: Include frame.h.
1194 (inline_frame_this_id): Use get_prev_frame_always.
1196 2014-04-18 Tristan Gingold <gingold@adacore.com>
1198 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1199 code by using bfd_mach_o_get_base_address.
1201 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1203 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1204 (spu_ax_pseudo_register_collect): New function.
1205 (spu_ax_pseudo_register_push_stack): Likewise.
1206 (spu_dwarf_reg_to_regnum): Likewise.
1207 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1209 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1211 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1212 Replace FRAME argument with FRAME_ID.
1213 * gdbarch.c, gdbarch.h: Regenerate.
1214 * findvar.c (default_value_from_register): Add GDBARCH argument;
1215 replace FRAME by FRAME_ID. No longer call get_frame_id.
1216 (value_from_register): Update call to gdbarch_value_from_register.
1217 * value.h (default_value_from_register): Update prototype.
1218 * s390-linux-tdep.c (s390_value_from_register): Update interface
1219 and call to default_value_from_register.
1220 * spu-tdep.c (spu_value_from_register): Likewise.
1222 * findvar.c (address_from_register): Remove TYPE argument.
1223 Do not call value_from_register; use gdbarch_value_from_register
1224 with null_frame_id instead.
1225 * value.h (address_from_register): Update prototype.
1226 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1227 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1228 address_from_register interface change.
1230 2014-04-17 Yao Qi <yao@codesourcery.com>
1232 * gdbtypes.h: Update comments to link to types and macros'
1235 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1237 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1239 2014-04-16 Keith Seitz <keiths@redhat.com>
1242 * dwarf2read.c (skip_one_die): Check that all relative-offset
1243 sibling DIEs fall within range of the current reader's buffer.
1244 (read_partial_die): Likewise.
1246 2014-04-16 Keith Seitz <keiths@redhat.com>
1249 * cp-namespace.c (lookup_symbol_file): If the type name of
1250 `this' is NULL, return immediately.
1252 2014-04-14 Keith Seitz <keiths@redhat.com>
1255 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1256 from symbol_matches_domain in symtab.c. All local callers
1257 of symbol_matches_domain updated.
1258 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1259 search STRUCT_DOMAIN.
1260 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1261 independently. standard_lookup will do that automatically.
1262 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1263 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1264 (cp_lookup_symbol_in_namespace): Likewise.
1265 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1266 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1267 may return a STRUCT_DOMAIN match.
1268 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1269 * cp-support.c: Include language.h.
1270 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1272 * psymtab.c (match_partial_symbol): Compare the requested
1273 domain with the symbol's domain directly.
1274 (lookup_partial_symbol): Likewise.
1275 * symtab.c (lookup_symbol_in_language): Explain when/why
1276 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1277 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1278 appropriate languages.
1279 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1280 and moved to ada-lang.c
1281 (lookup_block_symbol): Explain that this function only returns
1282 symbol matching the requested DOMAIN.
1283 Compare the requested domain with the symbol's domain directly.
1284 (iterate_over_symbols): Compare the requested domain with the
1285 symbol's domain directly.
1286 * symtab.h (symbol_matches_domain): Remove.
1288 2014-04-14 Tom Tromey <tromey@redhat.com>
1291 * c-exp.y (type_aggregate_p): New function.
1292 (qualified_name, classify_inner_name): Use it.
1293 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1294 and TYPE_TARGET_TYPE of an enum type.
1295 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1297 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1298 handle TYPE_DECLARED_CLASS.
1299 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1301 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1302 * valops.c (enum_constant_from_type): New function.
1303 (value_aggregate_elt): Use it.
1304 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1307 2014-04-14 Tom Tromey <tromey@redhat.com>
1309 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1310 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1312 * value.h (value_aggregate_elt): Update.
1314 2014-04-14 Tom Tromey <tromey@redhat.com>
1316 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1318 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1320 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1321 (evaluate_subexp_standard): Pass noside argument.
1322 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1323 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1324 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1325 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1326 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1328 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1330 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1331 points to a constant blob.
1333 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1335 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1336 property and store it as the high bound and flag the range accordingly.
1337 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1338 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1339 * gdbtypes.h (enum range_flags): New enum.
1340 (struct range_bounds): Add flags member.
1342 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1344 * c-typeprint.c (c_type_print_varspec_suffix): Added
1345 check for not yet resolved high bound. If unresolved, print
1346 "variable length" string to the console instead of random
1349 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1351 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1353 (ada_template_to_fixed_record_type_1): Likewise.
1354 (ada_to_fixed_type_1): Likewise.
1355 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1356 (cp_print_value): Likewise.
1357 * d-valprint.c (dynamic_array_type): Likewise.
1358 * findvar.c (address_of_variable): Likewise.
1359 * jv-valprint.c (java_value_print): Likewise.
1360 * valops.c (value_ind): Likewise.
1361 * value.c (coerce_ref): Likewise.
1363 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1365 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1366 value and retrieve the dynamic type size.
1368 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1370 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1371 passed to sizeof is dynamic evaluate the argument to compute the length.
1373 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1374 Joel Brobecker <brobecker@adacore.com>
1376 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1377 (dwarf2_evaluate_property): New function.
1378 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1379 * dwarf2read.c (attr_to_dynamic_prop): New function.
1380 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1382 * gdbtypes.c: Include dwarf2loc.h.
1383 (is_dynamic_type): New function.
1384 (resolve_dynamic_type): New function.
1385 (resolve_dynamic_bounds): New function.
1386 (get_type_length): New function.
1387 (check_typedef): Use get_type_length to compute type length.
1388 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1389 (TYPE_LOW_BOUND_KIND): New macro.
1390 (is_dynamic_type): New function prototype.
1391 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1392 to resolve dynamic properties of the type. Update comment.
1393 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1395 2014-04-14 Richard Henderson <rth@redhat.com>
1397 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1399 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1400 Doug Evans <xdje42@gmail.com>
1402 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1403 dereference TYPE_CODE_REF values.
1405 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1407 Revert the following changes due to regressions:
1409 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1410 (dwarf2_evaluate_property): New function.
1411 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1412 * dwarf2read.c (attr_to_dynamic_prop): New function.
1413 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1415 * gdbtypes.c: Include dwarf2loc.h.
1416 (is_dynamic_type): New function.
1417 (resolve_dynamic_type): New function.
1418 (resolve_dynamic_bounds): New function.
1419 (get_type_length): New function.
1420 (check_typedef): Use get_type_length to compute type length.
1421 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1422 (TYPE_LOW_BOUND_KIND): New macro.
1423 (is_dynamic_type): New function prototype.
1424 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1425 to resolve dynamic properties of the type. Update comment.
1426 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1428 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1429 passed to sizeof is dynamic evaluate the argument to compute the length.
1431 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1432 value and retrieve the dynamic type size.
1434 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1435 (ada_template_to_fixed_record_type_1): Likewise.
1436 (ada_to_fixed_type_1): Likewise.
1437 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1438 (cp_print_value): Likewise.
1439 * d-valprint.c (dynamic_array_type): Likewise.
1440 * eval.c (evaluate_subexp_with_coercion): Likewise.
1441 * findvar.c (address_of_variable): Likewise.
1442 * jv-valprint.c (java_value_print): Likewise.
1443 * valops.c (value_ind): Likewise.
1444 * value.c (coerce_ref): Likewise.
1446 * c-typeprint.c (c_type_print_varspec_suffix): Added
1447 check for not yet resolved high bound. If unresolved, print
1448 "variable length" string to the console instead of random
1451 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1452 property and store it as the high bound and flag the range accordingly.
1453 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1454 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1455 * gdbtypes.h (enum range_flags): New enum.
1456 (struct range_bounds): Add flags member.
1458 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1459 points to a constant blob.
1461 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1462 (evaluate_subexp_standard): Pass noside argument.
1463 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1464 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1465 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1466 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1467 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1469 2014-04-11 Keith Seitz <keiths@redhat.com>
1472 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1473 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1476 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1478 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1479 (evaluate_subexp_standard): Pass noside argument.
1480 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1481 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1482 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1483 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1484 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1486 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1488 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1489 points to a constant blob.
1491 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1493 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1494 property and store it as the high bound and flag the range accordingly.
1495 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1496 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1497 * gdbtypes.h (enum range_flags): New enum.
1498 (struct range_bounds): Add flags member.
1500 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1502 * c-typeprint.c (c_type_print_varspec_suffix): Added
1503 check for not yet resolved high bound. If unresolved, print
1504 "variable length" string to the console instead of random
1507 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1509 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1510 (ada_template_to_fixed_record_type_1): Likewise.
1511 (ada_to_fixed_type_1): Likewise.
1512 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1513 (cp_print_value): Likewise.
1514 * d-valprint.c (dynamic_array_type): Likewise.
1515 * eval.c (evaluate_subexp_with_coercion): Likewise.
1516 * findvar.c (address_of_variable): Likewise.
1517 * jv-valprint.c (java_value_print): Likewise.
1518 * valops.c (value_ind): Likewise.
1519 * value.c (coerce_ref): Likewise.
1521 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1523 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1524 value and retrieve the dynamic type size.
1526 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1528 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1529 passed to sizeof is dynamic evaluate the argument to compute the length.
1531 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1533 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1534 (dwarf2_evaluate_property): New function.
1535 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1536 * dwarf2read.c (attr_to_dynamic_prop): New function.
1537 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1539 * gdbtypes.c: Include dwarf2loc.h.
1540 (is_dynamic_type): New function.
1541 (resolve_dynamic_type): New function.
1542 (resolve_dynamic_bounds): New function.
1543 (get_type_length): New function.
1544 (check_typedef): Use get_type_length to compute type length.
1545 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1546 (TYPE_LOW_BOUND_KIND): New macro.
1547 (is_dynamic_type): New function prototype.
1548 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1549 to resolve dynamic properties of the type. Update comment.
1550 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1552 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1554 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1555 declaring high/low bounds and change uses accordingly. Call
1556 create_range_type instead of create_static_range_type.
1557 * gdbtypes.c (create_range_type): New function.
1558 (create_range_type): Convert bounds into struct bound_prop and pass
1559 them to create_range_type.
1560 * gdbtypes.h (struct bound_prop): New struct.
1561 (create_range_type): New function prototype.
1562 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1563 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1564 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1566 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1568 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1570 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1571 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1572 * ada-lang.c: All uses of create_range_type updated.
1573 * coffread.c: All uses of create_range_type updated.
1574 * dwarf2read.c: All uses of create_range_type updated.
1575 * f-exp.y: All uses of create_range_type updated.
1576 * m2-valprint.c: All uses of create_range_type updated.
1577 * mdebugread.c: All uses of create_range_type updated.
1578 * stabsread.c: All uses of create_range_type updated.
1579 * valops.c: All uses of create_range_type updated.
1580 * valprint.c: All uses of create_range_type updated.
1582 2014-04-10 Pedro Alves <palves@redhat.com>
1584 * breakpoint.c (single_step_breakpoints)
1585 (single_step_gdbarch): Move up in the file.
1586 (one_breakpoint_xfer_memory): New function, factored out from ...
1587 (breakpoint_xfer_memory): ... here. Also process single-step
1590 2014-04-09 Tristan Gingold <gingold@adacore.com>
1592 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1594 (darwin_decode_exception_message): Free port only after use.
1596 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1598 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1599 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1600 when setting the size of call_length.
1602 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1604 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1605 dereference TYPE_CODE_REF values.
1607 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1609 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1610 end of warning message.
1612 2014-04-03 Doug Evans <dje@google.com>
1614 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1615 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1617 2014-04-02 Alan Modra <amodra@gmail.com>
1619 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1620 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1621 (struct symbol_file_add_from_memory_args): Add size field.
1622 (find_vdso_size): New function.
1623 (add_vsyscall_page): Attempt to find vdso size.
1625 2014-04-01 Doug Evans <dje@google.com>
1627 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1629 2014-04-01 Tristan Gingold <gingold@adacore.com>
1631 * darwin-nat.c (darwin_encode_reply): Add prototype.
1632 (darwin_decode_exception_message): Reply to unknown inferiors.
1633 (darwin_decode_message): Handle message by id. Ignore message
1634 to unknown inferior.
1635 (darwin_wait): Discard unknown messages, add debug trace.
1637 2014-03-31 Doug Evans <dje@google.com>
1639 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1642 2014-03-31 Doug Evans <dje@google.com>
1644 New option "set print symbol-loading".
1646 * solib.c (solib_read_symbols): Only print symbol loading messages
1648 (solib_add): If symbol loading is in "brief" mode, notify user
1649 symbols are being loaded.
1650 (reload_shared_libraries_1): Ditto.
1651 * symfile.c (print_symbol_loading_off): New static global.
1652 (print_symbol_loading_brief): New static global.
1653 (print_symbol_loading_full): New static global.
1654 (print_symbol_loading_enums): New static global.
1655 (print_symbol_loading): New static global.
1656 (print_symbol_loading_p): New function.
1657 (symbol_file_add_with_addrs): Only print symbol loading messages
1659 (_initialize_symfile): Register "print symbol-loading" set/show
1661 * symfile.h (print_symbol_loading_p): Declare.
1663 2014-03-30 Doug Evans <xdje42@gmail.com>
1665 * infrun.c (set_last_target_status): New function.
1666 (handle_inferior_event): Call it.
1668 2014-03-30 Doug Evans <xdje42@gmail.com>
1670 * inferior.h (enum stop_kind): Improve comment.
1672 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1674 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1675 a reference, strip the reference layer before calling
1676 the lang_ops value_has_mutated callback.
1678 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1680 Remove some globals from our parser.
1681 * language.c (unk_lang_parser): Add "struct parser_state"
1683 * language.h (struct language_defn) <la_parser>: Likewise.
1684 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1685 (initialize_expout): Add "struct parser_state" argument.
1686 Rewrite function to use the parser state.
1687 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1688 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1689 write_exp_elt_longcst, write_exp_elt_dblcst,
1690 write_exp_elt_decfloatcst, write_exp_elt_type,
1691 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1692 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1693 write_dollar_variable): Likewise.
1694 (parse_exp_in_context_1): Use parser state.
1695 (insert_type_address_space): Add "struct parser_state" argument.
1697 (increase_expout_size): New function.
1698 * parser-defs.h: Forward declare "struct language_defn" and
1699 "struct parser_state".
1700 (expout, expout_size, expout_ptr): Remove extern declarations.
1701 (parse_gdbarch, parse_language): Rewrite macro declarations to
1702 accept the parser state.
1703 (struct parser_state): New struct.
1704 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1705 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1706 write_exp_elt_decfloatcst, write_exp_elt_type,
1707 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1708 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1709 write_exp_msymbol, write_dollar_variable,
1710 mark_struct_expression, insert_type_address_space): Add "struct
1711 parser_state" argument.
1712 (increase_expout_size): New function.
1713 * utils.c (do_clear_parser_state): New function.
1714 (make_cleanup_clear_parser_state): Likewise.
1715 * utils.h (make_cleanup_clear_parser_state): New function
1717 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1718 Update calls to write_exp* in order to pass the parser state.
1719 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1720 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1721 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1722 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1723 * stap-probe.c (stap_parse_register_operand): Likewise.
1724 (stap_parse_single_operand): Likewise.
1725 (stap_parse_argument_1): Likewise.
1726 (stap_parse_argument): Use parser state.
1727 * stap-probe.h: Include "parser-defs.h".
1728 (struct stap_parse_info) <pstate>: New field.
1729 * c-exp.y (parse_type): Rewrite to use parser state.
1730 (yyparse): Redefine to c_parse_internal.
1731 (pstate): New global variable.
1732 (parse_number): Add "struct parser_state" argument.
1733 (write_destructor_name): Likewise.
1734 (type_exp): Update calls to write_exp* and similars in order to
1736 (exp1, exp, variable, qualified_name, space_identifier,
1737 typename, typebase): Likewise.
1738 (write_destructor_name, parse_number, lex_one_token,
1739 classify_name, classify_inner_name, c_parse): Add "struct
1740 parser_state" argument. Update function to use parser state.
1741 * c-lang.h: Forward declare "struct parser_state".
1742 (c_parse): Add "struct parser_state" argument.
1743 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1744 (yyparse): Redefine macro to ada_parse_internal.
1745 (pstate): New variable.
1746 (write_int, write_object_renaming, write_var_or_type,
1747 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1748 type_int, type_long, type_long_long, type_float, type_double,
1749 type_long_double, type_char, type_boolean, type_system_address):
1750 Add "struct parser_state" argument.
1751 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1752 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1753 var_or_type, aggregate, aggregate_component_list,
1754 positional_list, others, component_group,
1755 component_associations): Update calls to write_exp* and similar
1756 functions in order to use parser state.
1757 (ada_parse, write_var_from_sym, write_int,
1758 write_exp_op_with_string, write_object_renaming,
1759 find_primitive_type, write_selectors, write_ambiguous_var,
1760 write_var_or_type, write_name_assoc, type_int, type_long,
1761 type_long_long, type_float, type_double, type_long_double,
1762 type_char, type_boolean, type_system_address): Add "struct
1763 parser_state" argument. Adjust function to use parser state.
1764 * ada-lang.c (parse): Likewise.
1765 * ada-lang.h: Forward declare "struct parser_state".
1766 (ada_parse): Add "struct parser_state" argument.
1767 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1768 calls to both functions.
1769 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1771 (yyparse): Redefine macro to f_parse_internal.
1772 (pstate): New variable.
1773 (parse_number): Add "struct parser_state" argument.
1774 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1775 and similars in order to use parser state.
1776 (parse_number): Adjust code to use parser state.
1778 (f_parse): New function.
1779 * f-lang.h: Forward declare "struct parser_state".
1780 (f_parse): Add "struct parser_state" argument.
1781 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1783 (yyparse): Redefine macro for java_parse_internal.
1784 (pstate): New variable.
1785 (push_expression_name, push_expression_name, insert_exp): Add
1786 "struct parser_state" argument.
1787 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1788 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1789 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1790 PostIncrementExpression, PostDecrementExpression,
1791 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1792 UnaryExpressionNotPlusMinus, CastExpression,
1793 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1794 RelationalExpression, EqualityExpression, AndExpression,
1795 ExclusiveOrExpression, InclusiveOrExpression,
1796 ConditionalAndExpression, ConditionalOrExpression,
1797 ConditionalExpression, Assignment, LeftHandSide): Update
1798 calls to write_exp* and similars in order to use parser state.
1799 (parse_number): Ajust code to use parser state.
1801 (java_parse): New function.
1802 (push_variable): Add "struct parser_state" argument. Adjust
1803 code to user parser state.
1804 (push_fieldnames, push_qualified_expression_name,
1805 push_expression_name, insert_exp): Likewise.
1806 * jv-lang.h: Forward declare "struct parser_state".
1807 (java_parse): Add "struct parser_state" argument.
1808 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1810 (yyparse): Redefine macro to m2_parse_internal.
1811 (pstate): New variable.
1812 (type_exp, exp, fblock, variable, type): Update calls to
1813 write_exp* and similars to use parser state.
1815 (m2_parse): New function.
1816 * m2-lang.h: Forward declare "struct parser_state".
1817 (m2_parse): Add "struct parser_state" argument.
1818 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1819 * objc-lang.h: Forward declare "struct parser_state".
1820 (end_msglist): Add "struct parser_state" argument.
1821 * p-exp.y (parse_type): Rewrite macro to use parser state.
1822 (yyparse): Redefine macro to pascal_parse_internal.
1823 (pstate): New variable.
1824 (parse_number): Add "struct parser_state" argument.
1825 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1826 write_exp* and similars in order to use parser state.
1827 (parse_number, yylex): Adjust code to use parser state.
1828 (pascal_parse): New function.
1829 * p-lang.h: Forward declare "struct parser_state".
1830 (pascal_parse): Add "struct parser_state" argument.
1831 * go-exp.y (parse_type): Rewrite macro to use parser state.
1832 (yyparse): Redefine macro to go_parse_internal.
1833 (pstate): New variable.
1834 (parse_number): Add "struct parser_state" argument.
1835 (type_exp, exp1, exp, variable, type): Update calls to
1836 write_exp* and similars in order to use parser state.
1837 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1838 to use parser state.
1839 (go_parse): Likewise.
1840 * go-lang.h: Forward declare "struct parser_state".
1841 (go_parse): Add "struct parser_state" argument.
1843 2014-03-27 Doug Evans <dje@google.com>
1845 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1847 2014-03-27 Doug Evans <dje@google.com>
1849 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1850 Remove argument abbrev_section. All callers updated.
1852 2014-03-27 Doug Evans <dje@google.com>
1854 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1855 addr_base, ranges_base.
1857 2014-03-26 Keith Seitz <keiths@redhat.com>
1859 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1860 types, not VAR_DOMAIN.
1862 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1864 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1866 * features/nios2-linux.c: Regenerated.
1867 * features/nios2.c: Regenerated.
1869 2014-03-25 Pedro Alves <palves@redhat.com>
1871 * cli/cli-script.c (script_from_file): Force the interpreter to
1874 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1876 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1877 small stack allocation.
1879 2014-03-24 Tristan Gingold <gingold@adacore.com>
1881 * darwin-nat.c (exc_server): Remove unused prototype.
1882 (darwin_dump_message): Correctly display data on x86_64.
1883 (darwin_encode_reply): Fix style.
1884 Add comments and fix indentation.
1886 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1888 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1890 2014-03-22 Doug Evans <xdje42@gmail.com>
1892 * infcmd.c: Whitespace fixes.
1893 (interrupt_command): Merge two function comments into one.
1895 2014-03-22 Doug Evans <xdje42@gmail.com>
1897 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1900 2014-03-22 Yao Qi <yao@codesourcery.com>
1902 * remote.c (target_read_live_memory): Remove.
1903 (memory_xfer_live_readonly_partial): Rename it to
1904 remote_xfer_live_readonly_partial. Remove argument 'object'.
1905 All callers updated. Call remote_read_bytes_1
1906 instead of target_read_live_memory.
1907 * tracepoint.c (set_traceframe_number): Remove.
1908 (make_cleanup_restore_traceframe_number): Likewise .
1909 * tracepoint.h (set_traceframe_number): Remove declaration.
1910 (make_cleanup_restore_traceframe_number): Likewise.
1912 2014-03-22 Yao Qi <yao@codesourcery.com>
1914 * remote.c (remote_read_bytes): Move code on reading from the
1916 (remote_read_bytes_1): ... here. New function.
1918 2014-03-22 Yao Qi <yao@codesourcery.com>
1920 * ctf.c (ctf_xfer_partial): Check the return value of
1921 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1922 return TARGET_XFER_UNAVAILABLE.
1923 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1924 * target.c (target_read_live_memory): Move it to remote.c.
1925 (memory_xfer_live_readonly_partial): Likewise.
1926 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1927 * remote.c (target_read_live_memory): Moved from target.c.
1928 (memory_xfer_live_readonly_partial): Likewise.
1929 (remote_read_bytes): Factored out from
1930 memory_xfer_partial_1.
1932 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1934 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1937 2014-03-21 Pedro Alves <palves@redhat.com>
1939 * infrun.c (normal_stop): Extend comment.
1941 2014-03-21 Hui Zhu <hui@codesourcery.com>
1942 Pedro Alves <palves@redhat.com>
1944 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1946 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1947 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1948 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1950 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1952 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1953 `z' formatted output modifier.
1955 2014-03-20 Tom Tromey <tromey@redhat.com>
1956 Sergio Durigan Junior <sergiodj@redhat.com>
1958 * probe.c (parse_probes): Turn assert into an ordinary error.
1959 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1960 exceptions when parsing probes. Rearrange the code for clarity.
1962 2014-03-20 Tom Tromey <tromey@redhat.com>
1965 * top.c (execute_command): Only dispatch events if the command
1968 2014-03-20 Tom Tromey <tromey@redhat.com>
1971 * infcall.c: Include event-top.h.
1972 (run_inferior_call): Call async_disable_stdin if needed.
1974 2014-03-20 Pedro Alves <palves@redhat.com>
1976 * infrun.c (prepare_to_proceed): Delete.
1977 (thread_still_needs_step_over): New function.
1978 (find_thread_needs_step_over): New function.
1979 (proceed): If the current thread needs a step-over, set its
1980 steping_over_breakpoint flag. Adjust to use
1981 find_thread_needs_step_over instead of prepare_to_proceed.
1982 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1983 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1985 (switch_back_to_stepped_thread): Step over breakpoints of all
1986 threads not the stepping thread, before switching back to the
1989 2014-03-20 Pedro Alves <palves@redhat.com>
1991 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1993 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1994 * infrun.c (saved_singlestep_ptid)
1995 (stepping_past_singlestep_breakpoint): Delete.
1996 (resume): Remove stepping_past_singlestep_breakpoint handling.
1997 (proceed): Store the prev_pc of the stepping thread too.
1998 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2000 (enum infwait_states): Delete infwait_thread_hop_state.
2001 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2003 (handle_inferior_event): Adjust.
2004 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2005 handling and the thread-hop code. Before removing single-step
2006 breakpoints, check whether the thread hit a single-step breakpoint
2007 of another thread. If it did, the trap is not a random signal.
2008 (switch_back_to_stepped_thread): If the event thread hit a
2009 single-step breakpoint, unblock it before switching to the
2010 stepping thread. Handle the case of the stepped thread having
2012 (keep_going): Handle the case of the current thread moving past a
2013 single-step breakpoint.
2015 2014-03-20 Pedro Alves <palves@redhat.com>
2018 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2019 are being stepped over.
2020 (breakpoint_address_match): Make extern.
2021 * breakpoint.h (breakpoint_address_match): New declaration.
2022 * inferior.h (stepping_past_instruction_at): New declaration.
2023 * infrun.c (struct step_over_info): New type.
2024 (step_over_info): New global.
2025 (set_step_over_info, clear_step_over_info)
2026 (stepping_past_instruction_at): New functions.
2027 (handle_inferior_event): Clear the step-over info when
2028 trap_expected is cleared.
2029 (resume): Remove now stale comment.
2030 (clear_proceed_status): Clear step-over info.
2031 (proceed): Adjust step-over handling to set or clear the step-over
2032 info instead of removing all breakpoints.
2033 (handle_signal_stop): When setting up a thread-hop, don't remove
2035 (stop_stepping): Clear step-over info.
2036 (keep_going): Adjust step-over handling to set or clear step-over
2037 info and then always inserting breakpoints, instead of removing
2038 all breakpoints when stepping over one.
2040 2014-03-20 Pedro Alves <palves@redhat.com>
2042 * infrun.c (previous_inferior_ptid): Adjust comment.
2043 (deferred_step_ptid): Delete.
2044 (infrun_thread_ptid_changed, prepare_to_proceed)
2045 (init_wait_for_inferior): Adjust.
2046 (handle_signal_stop): Delete deferred_step_ptid handling.
2048 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2051 * defs.h (sync_quit_force_run): New declaration.
2052 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2053 * event-top.c (async_sigterm_handler): New declaration.
2054 (async_sigterm_token): New variable.
2055 (async_init_signals): Create also async_sigterm_token.
2056 (async_sigterm_handler): New function.
2057 (sync_quit_force_run): New variable.
2058 (handle_sigterm): Replace quit_force call by other calls.
2059 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2061 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2063 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2064 offset into SPE pseudo registers.
2066 2014-03-18 Pedro Alves <palves@redhat.com>
2069 * inferior.h (print_stop_event): Declare.
2070 * infrun.c (print_stop_event): New, factored out from ...
2071 (normal_stop): ... this.
2072 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2073 of bpstat_print/print_stack_frame.
2075 2014-03-17 Tom Tromey <tromey@redhat.com>
2077 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2079 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2081 * ada-lang.c (decode_constrained_packed_array): Perform a
2082 minimal coercion for reference with coerce_ref instead of
2085 2014-03-17 Tristan Gingold <gingold@adacore.com>
2087 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2088 (darwin_solib_create_inferior_hook): Emit a warning if version
2091 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2093 * python/py-value.c (get_field_flag): Cast flag_name argument to
2094 PyObject_GetAttrString to support Python 2.4.
2096 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2098 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2099 (Global Maintainers): Remove Jan Kratochvil.
2101 2014-03-14 Pedro Alves <palves@redhat.com>
2103 * inferior.h (terminal_ours_for_output): Rename to ...
2104 (child_terminal_ours_for_output): ... this.
2105 (terminal_save_ours): Rename to ...
2106 (child_terminal_save_ours): ... this.
2107 (terminal_ours): Rename to ...
2108 (child_terminal_ours): ... this.
2109 (terminal_inferior): Rename to ...
2110 (child_terminal_inferior): ... this.
2111 (terminal_init_inferior): Rename to ...
2112 (child_terminal_init_inferior): ... this.
2113 (terminal_init_inferior_with_pgrp): Rename to ...
2114 (child_terminal_init_inferior_with_pgrp): ... this.
2115 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2116 (child_terminal_init_with_pgrp): ... this.
2117 (terminal_save_ours): Rename to ...
2118 (child_terminal_save_ours): ... this.
2119 (terminal_init_inferior): Rename to ...
2120 (child_terminal_init): ... this. Adjust.
2121 (terminal_inferior): Rename to ...
2122 (child_terminal_inferior): ... this.
2123 (terminal_ours_for_output): Rename to ...
2124 (child_terminal_ours_for_output): ... this. Adjust.
2125 (terminal_ours): Rename to ...
2126 (child_terminal_ours): ... this.
2127 (terminal_ours_1): Rename to ...
2128 (child_terminal_ours_1): ... this. Adjust.
2129 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2130 * windows-nat.c (do_initial_windows_stuff): Adjust.
2131 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2132 (gnu_terminal_init): ... this. Adjust.
2133 (gnu_target): Adjust.
2134 * inf-child.c (inf_child_target): Adjust.
2136 2014-03-13 Doug Evans <xdje42@gmail.com>
2139 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2142 2014-03-13 Doug Evans <xdje42@gmail.com>
2144 * value.c (record_latest_value): Call release_value_or_incref
2145 instead of release_value.
2147 2014-03-13 Pedro Alves <palves@redhat.com>
2149 * procfs.c (procfs_target): Don't override to_shortname,
2150 to_longname or to_doc.
2152 2014-03-13 Pedro Alves <palves@redhat.com>
2154 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2155 Unix in user visible strings.
2157 2014-03-12 Stan Shebs <stan@codesourcery.com>
2159 * gdbtypes.h: Annotate comments for Doxygen, add a page
2160 block comment with some general info.
2162 2014-03-12 Pedro Alves <palves@redhat.com>
2164 * infcmd.c (prepare_execution_command): New function, factored out
2165 from several execution commands.
2166 (run_command_1, continue_command, step_1, jump_command)
2167 (signal_command, until_command, advance_command, finish_command)
2168 (attach_command): Use prepare_execution_command.
2170 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2172 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2175 (struct arm_linux_thread_points): Removed.
2176 (struct arm_linux_process_info): New.
2177 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2178 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2179 (arm_linux_find_breakpoints_by_tid): Removed.
2180 (struct arch_lwp_info): New.
2181 (arm_linux_find_process_pid): New functions.
2182 (arm_linux_add_process): New functions.
2183 (arm_linux_process_info_get): New functions.
2184 (arm_linux_forget_process): New function.
2185 (arm_linux_get_debug_reg_state): New function.
2186 (struct update_registers_data): New.
2187 (update_registers_callback): New function.
2188 (arm_linux_insert_hw_breakpoint1): Updated.
2189 (arm_linux_remove_hw_breakpoint1): Updated.
2190 (arm_linux_insert_hw_breakpoint): Updated.
2191 (arm_linux_remove_hw_breakpoint): Updated.
2192 (arm_linux_insert_watchpoint): Updated.
2193 (arm_linux_remove_watchpoint): Updated.
2194 (arm_linux_new_thread): Updated.
2195 (arm_linux_prepare_to_resume): New function.
2196 (arm_linux_new_fork): New function.
2197 (_initialize_arm_linux_nat): Updated.
2199 2014-03-12 Pedro Alves <palves@redhat.com>
2201 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2203 2014-03-12 Tom Tromey <tromey@redhat.com>
2205 * inf-child.c (return_zero): New function.
2206 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2207 * aix-thread.c (aix_thread_inferior_created): New function.
2208 (aix_thread_attach): Remove.
2209 (init_aix_thread_ops): Don't set to_attach.
2210 (_initialize_aix_thread): Register inferior_created observer.
2211 * corelow.c (init_core_ops): Don't set to_attach or
2213 * exec.c (init_exec_ops): Don't set to_attach or
2215 * infcmd.c (run_command_1): Use find_run_target. Make direct
2217 (attach_command): Use find_attach_target. Make direct target
2219 * record-btrace.c (init_record_btrace_ops): Don't set
2221 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2223 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2224 set to_create_inferior.
2225 * target.c (complete_target_initialization): Add assertion.
2226 (target_create_inferior): Remove.
2227 (find_default_attach, find_default_create_inferior): Remove.
2228 (find_attach_target, find_run_target): New functions.
2229 (find_default_is_async_p, find_default_can_async_p)
2230 (target_supports_non_stop, target_attach): Remove.
2231 (init_dummy_target): Don't set to_create_inferior or
2232 to_supports_non_stop.
2233 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2234 TARGET_DEFAULT_FUNC.
2235 <to_create_inferior>: Add comment.
2236 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2237 TARGET_DEFAULT_RETURN.
2238 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2239 (find_attach_target, find_run_target): Declare.
2240 (target_create_inferior): Remove.
2241 (target_has_execution_1): Update comment.
2242 (target_supports_non_stop): Remove.
2243 * target-delegates.c: Rebuild.
2245 2014-03-12 Pedro Alves <palves@redhat.com>
2247 * inf-child.h: Update comment to not mention Unix.
2249 2014-03-12 Pedro Alves <palves@redhat.com>
2251 * inf-child.c: Update top comment to not mention Unix. Add
2252 generic comment describing how this target is meant to be used.
2253 (inf_child_post_attach, inf_child_post_startup_inferior)
2254 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2257 2014-03-12 Pedro Alves <palves@redhat.com>
2259 * nto-procfs.c: Include inf-child.h.
2260 (procfs_ops): Delete global.
2261 (procfs_can_run): Delete method.
2262 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2263 target pointer instead of referencing procfs_ops.
2264 (procfs_prepare_to_store): Delete.
2265 (init_procfs_ops): Delete function.
2266 (procfs_target): New function, based on init_procfs_ops, but
2267 inherit inf_child_target.
2268 (_initialize_procfs): Use procfs_target.
2270 2014-03-12 Pedro Alves <palves@redhat.com>
2272 * windows-nat.c: Include inf-child.h.
2273 (windows_ops): Delete global.
2274 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2276 (init_windows_ops): Delete function.
2277 (windows_target): New function, based on init_windows_ops, but
2278 inherit inf_child_target.
2279 (_initialize_windows_nat): Use windows_target. Install x86
2280 specific target methods here.
2282 2014-03-10 Doug Evans <xdje42@gmail.com>
2284 * guile/guile.c (call_initialize_gdb_module): New function.
2285 (initialize_guile): Replace call to scm_init_guile with call to
2288 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2290 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2291 in call to TYPE_CODE macro.
2293 2014-03-10 Jerome Guitton <guitton@adacore.com>
2295 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2296 Resolve tagged types to full view.
2298 2014-03-10 Hui Zhu <hui@codesourcery.com>
2300 * target.h (target_insert_breakpoint): Remove "hardware" from its
2303 2014-03-07 Doug Evans <dje@google.com>
2305 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2307 2014-03-07 Doug Evans <dje@google.com>
2309 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2310 Remove unused local comp_dir_attr. Assert exactly one of
2311 stub_comp_unit_die, stub_comp_dir is non-NULL.
2313 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2315 * target.h (complete_target_initialization, add_target):
2318 2014-03-07 Pedro Alves <palves@redhat.com>
2320 * go32-nat.c: Include inf-child.h.
2321 (go32_ops): Delete global.
2322 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2324 (go32_create_inferior): Push the passed in target pointer instead
2325 of referencing go32_ops.
2326 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2327 (go32_target): New function, based on init_go32_ops, but inherit
2329 (_initialize_go32_nat): Use go32_target. Move parts of
2332 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2334 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2335 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2336 SYMBOL_VALUE_ADDRESS.
2337 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2339 2014-03-06 Yao Qi <yao@codesourcery.com>
2341 * breakpoint.c (get_tracepoint_by_number): Remove argument
2342 optional_p. All callers updated. Adjust comments. Update
2344 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2346 2014-03-06 Yao Qi <yao@codesourcery.com>
2348 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2349 early if get_number returns zero. Use 'p' instead of 'args'.
2351 2014-03-06 Yao Qi <yao@codesourcery.com>
2353 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2356 2014-03-06 Yao Qi <yao@codesourcery.com>
2358 PR breakpoints/16508
2359 * tracepoint.c (check_trace_running): New function.
2360 (trace_find_command): Move code to check_trace_running and
2361 call check_trace_running.
2362 (trace_find_pc_command): Likewise.
2363 (trace_find_tracepoint_command): Likewise.
2364 (trace_find_line_command): Likewise.
2365 (trace_find_range_command): Likewise.
2366 * tracepoint.h (check_trace_running): Likewise.
2367 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2369 2014-03-06 Yao Qi <yao@codesourcery.com>
2371 * target.h (struct target_ops) <to_traceframe_info>: Use
2372 TARGET_DEFAULT_NORETURN (tcomplain ()).
2373 * target-delegates.c: Regenerated.
2375 2014-03-05 Pedro Alves <palves@redhat.com>
2378 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2379 void. Update comment.
2380 (dcache_xfer_memory): Delete.
2381 (dcache_read_memory_partial): New, based on the read bits of
2383 (dcache_update): Add status parameter. Use ULONGEST for len, and
2384 adjust. Discard cache lines if the reason for the update was
2386 * dcache.h (dcache_xfer_memory): Delete declaration.
2387 (dcache_read_memory_partial): New declaration.
2388 (dcache_update): Update prototype.
2389 * target.c (raw_memory_xfer_partial): Update the dcache here.
2390 (memory_xfer_partial_1): Don't handle dcache writes here.
2392 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2394 * remote-sim.c (gdbsim_load): Add const to prog.
2396 2014-03-03 Tom Tromey <tromey@redhat.com>
2398 * elfread.c (probe_key): Change to bfd_data.
2399 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2400 now per-BFD, not per-objfile.
2401 * stap-probe.c (stap_probe_destroy): Update comment.
2402 (handle_stap_probe): Allocate on the per-BFD obstack.
2404 2014-03-03 Tom Tromey <tromey@redhat.com>
2406 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2407 * breakpoint.c (create_longjmp_master_breakpoint): Use
2409 (add_location_to_breakpoint, bkpt_probe_insert_location)
2410 (bkpt_probe_remove_location): Update.
2411 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2412 * elfread.c (elf_symfile_relocate_probe): Remove.
2413 (elf_probe_fns): Update.
2414 (insert_exception_resume_breakpoint): Change type of "probe"
2415 parameter to bound_probe.
2416 (check_exception_resume): Update.
2417 * objfiles.c (objfile_relocate1): Don't relocate probes.
2418 * probe.c (bound_probe_s): New typedef.
2419 (parse_probes): Use get_probe_address. Set sal's objfile.
2420 (find_probe_by_pc): Return a bound_probe.
2421 (collect_probes): Return a VEC(bound_probe_s).
2422 (compare_probes): Update.
2423 (gen_ui_out_table_header_info): Change type of "probes"
2425 (info_probes_for_ops): Update.
2426 (get_probe_address): New function.
2427 (probe_safe_evaluate_at_pc): Update.
2428 * probe.h (struct probe_ops) <get_probe_address>: New field.
2429 <set_semaphore, clear_semaphore>: Add objfile parameter.
2430 (struct probe) <objfile>: Remove field.
2432 <address>: Update comment.
2433 (struct bound_probe): New.
2434 (find_probe_by_pc): Return a bound_probe.
2435 (get_probe_address): Declare.
2436 * solib-svr4.c (struct probe_and_action) <address>: New field.
2437 (hash_probe_and_action, equal_probe_and_action): Update.
2438 (register_solib_event_probe): Add address parameter.
2439 (solib_event_probe_at): Update.
2440 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2442 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2443 (stap_get_probe_address): New function.
2444 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2445 (compile_probe_arg): Update.
2446 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2448 (handle_stap_probe): Don't relocate the probe.
2449 (stap_relocate): Remove.
2450 (stap_gen_info_probes_table_values): Update.
2451 (stap_probe_ops): Remove stap_relocate.
2452 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2453 (debug_sym_probe_fns): Update.
2454 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2455 * symtab.c (init_sal): Use memset.
2456 * symtab.h (struct symtab_and_line) <objfile>: New field.
2457 * tracepoint.c (start_tracing, stop_tracing): Update.
2459 2014-03-03 Tom Tromey <tromey@redhat.com>
2461 * probe.h (parse_probes, find_probe_by_pc)
2462 (find_probes_in_objfile): Fix comments.
2464 2014-03-02 Doug Evans <xdje42@gmail.com>
2466 * infrun.c (handle_signal_stop): Replace test for
2467 TARGET_WAITKIND_STOPPED with an assert.
2469 2014-03-02 Doug Evans <xdje42@gmail.com>
2471 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2473 2014-03-02 Doug Evans <xdje42@gmail.com>
2475 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2477 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2479 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2481 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2483 * i386obsd-nat.c: Include "obsd-nat.h".
2484 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2486 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2488 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2490 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2492 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2494 * mips64obsd-nat.c: Include "obsd-nath".
2495 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2497 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2499 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2501 * amd64obsd-nat.c: Include "obsd-nat,h.
2502 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2504 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2506 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2508 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2509 (find_overload_match): Update call to find_oload_champ.
2510 (find_oload_champ_namespace_loop): Likewise
2512 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2514 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2516 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2517 * config/sparc/obsd64.mh: New file.
2518 * sparc64obsd-nat.c: New file.
2520 * obsd-nat.h: New file.
2521 * obsd-nat.c: New file.
2522 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2523 (ALLDEPFILES): Add obsd-nat.c.
2525 2014-02-28 Tom Tromey <tromey@redhat.com>
2527 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2528 * cli-out.h (cli_ui_out_impl): Now const.
2529 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2530 * ui-out.c (struct ui_out) <impl>: Now const.
2531 (default_ui_out_impl): Now const.
2532 (ui_out_new): Make 'impl' parameter const.
2533 * ui-out.h (ui_out_new): Update.
2535 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2537 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2539 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2541 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2543 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2545 Additional PR 8882 fix.
2546 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2548 2014-02-27 Pedro Alves <palves@redhat.com>
2550 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2553 2014-02-27 Pedro Alves <palves@redhat.com>
2556 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2557 * nat/linux-waitpid.c: Include string.h.
2558 (status_to_str): Moved here and made extern.
2559 * nat/linux-waitpid.h (status_to_str): New declaration.
2561 2014-02-27 Hui Zhu <hui@codesourcery.com>
2564 * infrun.c (ptid_match): Move ...
2565 * common/ptid.c (ptid_match): ... here.
2566 * inferior.h (ptid_match): Move ...
2567 * common/ptid.h (ptid_match): ... here.
2569 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2571 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2572 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2575 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2577 * obsd-tdep.c (obsd_auxv_parse): New function.
2578 (obsd_init_abi): Set auxv_parse.
2580 * gdbarch.sh (auxv_parse): New.
2581 * gdbarch.h: Regenerated.
2582 * gdbarch.c: Regenerated.
2583 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2585 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2587 * guile/scm-value.c (gdbscm_history_append_x): New function.
2588 (value_functions): Add it.
2590 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2592 * dwarf2read.c (attr_value_as_address): New function.
2593 (dwarf2_find_base_address, read_call_site_scope): Use
2594 attr_value_as_address in place of DW_ADDR.
2595 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2596 the low and high addresses. Slight rework of the handling
2597 of the high pc being a constant form, and limit it to
2598 DWARF verson 4 or higher.
2599 (dwarf2_record_block_ranges): Likewise.
2600 (read_partial_die): Likewise.
2601 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2603 2014-02-26 Tom Tromey <tromey@redhat.com>
2605 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2607 2014-02-26 Tom Tromey <tromey@redhat.com>
2609 * elfread.c (elf_read_minimal_symbols): Return early if
2610 minimal symbols have already been read. Add "ei" parameter.
2611 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2612 * minsyms.c (prim_record_minimal_symbol_full): Update.
2613 * objfiles.h (struct objstats) <n_minsyms>: Move...
2614 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2615 * symmisc.c (print_objfile_statistics): Update.
2617 2014-02-26 Tom Tromey <tromey@redhat.com>
2619 * elfread.c (elf_read_minimal_symbols): New function, from
2621 (elf_symfile_read): Call it.
2623 2014-02-26 Tom Tromey <tromey@redhat.com>
2625 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2626 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2627 (lookup_minimal_symbol_solib_trampoline)
2628 (lookup_minimal_symbol_by_pc_section_1)
2629 (lookup_minimal_symbol_and_objfile): Update.
2630 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2631 Don't allocate a minimal symbol if minsyms have already been read.
2632 (build_minimal_symbol_hash_tables): Update.
2633 (install_minimal_symbols): Do nothing if minsyms already read.
2634 Use the per-BFD obstack.
2635 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2636 * objfiles.c (allocate_objfile): Call
2637 terminate_minimal_symbol_table later.
2638 (have_minimal_symbols): Update.
2639 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2640 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2641 Move from struct objfile.
2642 <minsyms_read>: New field.
2643 (struct objfile) <msymbols, minimal_symbol_count,
2644 msymbol_hash, msymbol_demangled_hash>: Move.
2645 (ALL_OBJFILE_MSYMBOLS): Update.
2646 * symfile.c (read_symbols): Set minsyms_read.
2647 (reread_symbols): Update.
2648 * symmisc.c (dump_objfile, dump_msymbols): Update.
2650 2014-02-26 Tom Tromey <tromey@redhat.com>
2652 * minsyms.c (msymbols_sort): Remove.
2653 * minsyms.h (msymbols_sort): Remove.
2654 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2655 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2656 * elfread.c (elf_symtab_read): Don't add section offsets.
2657 * xcoffread.c (record_minimal_symbol): Don't add section offset
2658 to minimal symbol address.
2659 * somread.c (text_offset, data_offset): Remove.
2660 (som_symtab_read): Don't add section offsets to minimal symbol
2662 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2663 Don't add section offsets to minimal symbols.
2664 * coffread.c (coff_symtab_read): Don't add section offsets
2665 to minimal symbol addresses.
2666 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2667 to minimal symbol addresses.
2668 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2669 section offset to minimal symbol addresses.
2670 * mdebugread.c (parse_partial_symbols): Don't add section
2671 offset to minimal symbol addresses.
2672 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2673 offset to minimal symbol addresses.
2675 2014-02-26 Tom Tromey <tromey@redhat.com>
2677 * ada-lang.c (ada_main_name): Update.
2678 (ada_add_standard_exceptions): Update.
2679 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2680 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2681 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2682 * auxv.c (ld_so_xfer_auxv): Update.
2683 * avr-tdep.c (avr_scan_prologue): Update.
2684 * ax-gdb.c (gen_var_ref): Update.
2685 * blockframe.c (get_pc_function_start)
2686 (find_pc_partial_function_gnu_ifunc): Update.
2687 * breakpoint.c (create_overlay_event_breakpoint)
2688 (create_longjmp_master_breakpoint)
2689 (create_std_terminate_master_breakpoint)
2690 (create_exception_master_breakpoint): Update.
2691 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2692 * c-valprint.c (c_val_print): Update.
2693 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2694 * common/agent.c (agent_look_up_symbols): Update.
2695 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2696 * dwarf2loc.c (call_site_to_target_addr): Update.
2697 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2698 * elfread.c (elf_gnu_ifunc_record_cache)
2699 (elf_gnu_ifunc_resolve_by_got): Update.
2700 * findvar.c (default_read_var_value): Update.
2701 * frame.c (inside_main_func): Update.
2702 * frv-tdep.c (frv_frame_this_id): Update.
2703 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2704 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2706 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2707 (hppa_hpux_find_dummy_bpaddr): Update.
2708 * hppa-tdep.c (hppa_symbol_address): Update.
2709 * infcmd.c (until_next_command): Update.
2710 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2712 * linespec.c (minsym_found, add_minsym): Update.
2713 * linux-nat.c (get_signo): Update.
2714 * linux-thread-db.c (inferior_has_bug): Update.
2715 * m32c-tdep.c (m32c_return_value)
2716 (m32c_m16c_address_to_pointer): Update.
2717 * m32r-tdep.c (m32r_frame_this_id): Update.
2718 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2719 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2720 * maint.c (maintenance_translate_address): Update.
2721 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2722 (frob_address): New function.
2723 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2724 frob_address. Rename parameter to "pc_in".
2725 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2727 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2729 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2730 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2731 * objc-lang.c (find_objc_msgsend): Update.
2732 * objfiles.c (objfile_relocate1): Update.
2733 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2734 * p-valprint.c (pascal_val_print): Update.
2735 * parse.c (write_exp_msymbol): Update.
2736 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2737 (ppc_elfv2_skip_entrypoint): Update.
2738 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2739 * printcmd.c (build_address_symbolic, msym_info)
2740 (address_info): Update.
2741 * proc-service.c (ps_pglobal_lookup): Update.
2742 * psymtab.c (find_pc_sect_psymtab_closer)
2743 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2744 Change msymbol parameter to bound_minimal_symbol.
2745 * ravenscar-thread.c (get_running_thread_id): Update.
2746 * remote.c (remote_check_symbols): Update.
2747 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2749 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2750 * solib-dsbt.c (lm_base): Update.
2751 * solib-frv.c (lm_base, main_got): Update.
2752 * solib-irix.c (locate_base): Update.
2753 * solib-som.c (som_solib_create_inferior_hook)
2754 (link_map_start): Update.
2755 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2756 * solib-svr4.c (elf_locate_base, enable_break): Update.
2757 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2758 (flush_ea_cache): Update.
2759 * stabsread.c (define_symbol, scan_file_globals): Update.
2760 * stack.c (find_frame_funname): Update.
2761 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2762 (debug_qf_find_pc_sect_symtab): Update.
2763 * symfile.c (simple_read_overlay_table)
2764 (simple_overlay_update): Update.
2765 * symfile.h (struct quick_symbol_functions)
2766 <find_pc_sect_symtab>: Change type of msymbol to
2767 bound_minimal_symbol.
2768 * symmisc.c (dump_msymbols): Update.
2769 * symtab.c (find_pc_sect_symtab_via_partial)
2770 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2771 (search_symbols, print_msymbol_info): Update.
2772 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2773 (MSYMBOL_VALUE_ADDRESS): Redefine.
2774 (BMSYMBOL_VALUE_ADDRESS): New macro.
2775 * tracepoint.c (scope_info): Update.
2776 * tui/tui-disasm.c (tui_find_disassembly_address)
2777 (tui_get_begin_asm_address): Update.
2778 * valops.c (find_function_in_inferior): Update.
2779 * value.c (value_static_field, value_fn_field): Update.
2781 2014-02-26 Tom Tromey <tromey@redhat.com>
2783 * ada-lang.c (ada_update_initial_language): Update.
2784 (ada_main_name, ada_has_this_exception_support): Update.
2785 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2786 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2787 * arm-tdep.c (arm_skip_stub): Update.
2788 * auxv.c (ld_so_xfer_auxv): Update.
2789 * avr-tdep.c (avr_scan_prologue): Update.
2790 * ax-gdb.c (gen_var_ref): Update.
2791 * breakpoint.c (struct breakpoint_objfile_data)
2792 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2793 type to bound_minimal_symbol.
2794 (create_overlay_event_breakpoint)
2795 (create_longjmp_master_breakpoint)
2796 (create_std_terminate_master_breakpoint)
2797 (create_exception_master_breakpoint): Update.
2798 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2799 * c-exp.y (classify_name): Update.
2800 * coffread.c (coff_symfile_read): Update.
2801 * common/agent.c (agent_look_up_symbols): Update.
2802 * d-lang.c (d_main_name): Update.
2803 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2804 * dec-thread.c (enable_dec_thread): Update.
2805 * dwarf2loc.c (call_site_to_target_addr): Update.
2806 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2807 * eval.c (evaluate_subexp_standard): Update.
2808 * findvar.c (struct minsym_lookup_data) <result>: Change type
2809 to bound_minimal_symbol.
2811 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2812 * frame.c (inside_main_func): Update.
2813 * frv-tdep.c (frv_frame_this_id): Update.
2814 * gcore.c (call_target_sbrk): Update.
2815 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2816 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2818 * go-lang.c (go_main_name): Update.
2819 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2820 (hppa_hpux_find_import_stub_for_addr): Update.
2821 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2822 Update. Change return type.
2823 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2825 * jit.c (jit_breakpoint_re_set_internal): Update.
2826 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2828 * linux-nat.c (get_signo): Update.
2829 * linux-thread-db.c (inferior_has_bug): Update
2830 * m32c-tdep.c (m32c_return_value)
2831 (m32c_m16c_address_to_pointer): Update.
2832 * m32r-tdep.c (m32r_frame_this_id): Update.
2833 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2834 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2835 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2836 lookup_minimal_symbol. Change return type.
2837 (lookup_minimal_symbol): Remove.
2838 (lookup_bound_minimal_symbol): Update.
2839 (lookup_minimal_symbol_text): Change return type.
2840 (lookup_minimal_symbol_solib_trampoline): Change return type.
2841 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2842 (lookup_minimal_symbol_solib_trampoline): Change return type.
2843 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2844 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2845 (value_nsstring, find_imps): Update.
2846 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2847 * p-lang.c (pascal_main_name): Update.
2848 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2849 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2850 * proc-service.c (ps_pglobal_lookup): Update.
2851 * ravenscar-thread.c (get_running_thread_msymbol): Change
2853 (has_ravenscar_runtime, get_running_thread_id): Update.
2854 * remote.c (remote_check_symbols): Update.
2855 * sol-thread.c (ps_pglobal_lookup): Update.
2856 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2857 * solib-dsbt.c (lm_base): Update.
2858 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2860 * solib-irix.c (locate_base): Update.
2861 * solib-som.c (som_solib_create_inferior_hook)
2862 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2864 * solib-spu.c (spu_enable_break): Update.
2865 * solib-svr4.c (elf_locate_base, enable_break): Update.
2866 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2867 (flush_ea_cache): Update.
2868 * stabsread.c (define_symbol): Update.
2869 * symfile.c (simple_read_overlay_table): Update.
2870 * symtab.c (find_pc_sect_line): Update.
2871 * tracepoint.c (scope_info): Update.
2872 * tui-disasm.c (tui_get_begin_asm_address): Update.
2873 * value.c (value_static_field): Update.
2875 2014-02-26 Tom Tromey <tromey@redhat.com>
2877 * minsyms.c (prim_record_minimal_symbol_full): Use
2878 SET_MSYMBOL_VALUE_ADDRESS.
2879 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2880 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2881 SET_MSYMBOL_VALUE_ADDRESS.
2882 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2883 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2885 2014-02-26 Tom Tromey <tromey@redhat.com>
2887 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2888 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2889 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2890 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2891 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2892 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2893 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2894 * ada-lang.c (ada_main_name): Update.
2895 (ada_lookup_simple_minsym): Update.
2896 (ada_make_symbol_completion_list): Update.
2897 (ada_add_standard_exceptions): Update.
2898 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2899 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2900 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2901 * arm-tdep.c (skip_prologue_function): Update.
2902 (arm_skip_stack_protector, arm_skip_stub): Update.
2903 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2904 (arm_wince_skip_main_prologue): Update.
2905 * auxv.c (ld_so_xfer_auxv): Update.
2906 * avr-tdep.c (avr_scan_prologue): Update.
2907 * ax-gdb.c (gen_var_ref): Update.
2908 * block.c (call_site_for_pc): Update.
2909 * blockframe.c (get_pc_function_start): Update.
2910 (find_pc_partial_function_gnu_ifunc): Update.
2911 * breakpoint.c (create_overlay_event_breakpoint): Update.
2912 (create_longjmp_master_breakpoint): Update.
2913 (create_std_terminate_master_breakpoint): Update.
2914 (create_exception_master_breakpoint): Update.
2915 (resolve_sal_pc): Update.
2916 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2917 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2919 * c-valprint.c (c_val_print): Update.
2920 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2921 * coffread.c (coff_symfile_read): Update.
2922 * common/agent.c (agent_look_up_symbols): Update.
2923 * dbxread.c (find_stab_function_addr): Update.
2924 (end_psymtab): Update.
2925 * dwarf2loc.c (call_site_to_target_addr): Update.
2926 (func_verify_no_selftailcall): Update.
2927 (tailcall_dump): Update.
2928 (call_site_find_chain_1): Update.
2929 (dwarf_expr_reg_to_entry_parameter): Update.
2930 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2931 (elf_gnu_ifunc_resolve_by_got): Update.
2932 * f-valprint.c (info_common_command): Update.
2933 * findvar.c (read_var_value): Update.
2934 * frame.c (get_prev_frame_1): Update.
2935 (inside_main_func): Update.
2936 * frv-tdep.c (frv_skip_main_prologue): Update.
2937 (frv_frame_this_id): Update.
2938 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2939 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2940 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2941 (gnuv3_skip_trampoline): Update.
2942 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2943 (hppa64_hpux_in_solib_call_trampoline): Update.
2944 (hppa_hpux_skip_trampoline_code): Update.
2945 (hppa64_hpux_search_dummy_call_sequence): Update.
2946 (hppa_hpux_find_import_stub_for_addr): Update.
2947 (hppa_hpux_find_dummy_bpaddr): Update.
2948 * hppa-tdep.c (hppa_symbol_address)
2949 (hppa_lookup_stub_minimal_symbol): Update.
2950 * i386-tdep.c (i386_skip_main_prologue): Update.
2951 (i386_pe_skip_trampoline_code): Update.
2952 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2953 * infcall.c (get_function_name): Update.
2954 * infcmd.c (until_next_command): Update.
2955 * jit.c (jit_breakpoint_re_set_internal): Update.
2956 (jit_inferior_init): Update.
2957 * linespec.c (minsym_found): Update.
2958 (add_minsym): Update.
2959 * linux-fork.c (info_checkpoints_command): Update.
2960 * linux-nat.c (get_signo): Update.
2961 * linux-thread-db.c (inferior_has_bug): Update.
2962 * m32c-tdep.c (m32c_return_value): Update.
2963 (m32c_m16c_address_to_pointer): Update.
2964 (m32c_m16c_pointer_to_address): Update.
2965 * m32r-tdep.c (m32r_frame_this_id): Update.
2966 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2967 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2968 * maint.c (maintenance_translate_address): Update.
2969 * minsyms.c (add_minsym_to_hash_table): Update.
2970 (add_minsym_to_demangled_hash_table): Update.
2971 (msymbol_objfile): Update.
2972 (lookup_minimal_symbol): Update.
2973 (iterate_over_minimal_symbols): Update.
2974 (lookup_minimal_symbol_text): Update.
2975 (lookup_minimal_symbol_by_pc_name): Update.
2976 (lookup_minimal_symbol_solib_trampoline): Update.
2977 (lookup_minimal_symbol_by_pc_section_1): Update.
2978 (lookup_minimal_symbol_and_objfile): Update.
2979 (prim_record_minimal_symbol_full): Update.
2980 (compare_minimal_symbols): Update.
2981 (compact_minimal_symbols): Update.
2982 (build_minimal_symbol_hash_tables): Update.
2983 (install_minimal_symbols): Update.
2984 (terminate_minimal_symbol_table): Update.
2985 (find_solib_trampoline_target): Update.
2986 (minimal_symbol_upper_bound): Update.
2987 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2988 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2989 (mips_skip_pic_trampoline_code): Update.
2990 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2991 * objc-lang.c (selectors_info): Update.
2992 (classes_info): Update.
2993 (find_methods): Update.
2994 (find_imps): Update.
2995 (find_objc_msgsend): Update.
2996 * objfiles.c (objfile_relocate1): Update.
2997 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2998 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2999 * p-valprint.c (pascal_val_print): Update.
3000 * parse.c (write_exp_msymbol): Update.
3001 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3002 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3003 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3004 * printcmd.c (build_address_symbolic): Update.
3006 (address_info): Update.
3007 * proc-service.c (ps_pglobal_lookup): Update.
3008 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3009 (find_pc_sect_psymtab): Update.
3010 * python/py-framefilter.c (py_print_frame): Update.
3011 * ravenscar-thread.c (get_running_thread_id): Update.
3012 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3014 * remote.c (remote_check_symbols): Update.
3015 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3016 (rs6000_skip_trampoline_code): Update.
3017 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3018 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3019 * solib-dsbt.c (lm_base): Update.
3020 * solib-frv.c (lm_base): Update.
3022 * solib-irix.c (locate_base): Update.
3023 * solib-som.c (som_solib_create_inferior_hook): Update.
3024 (som_solib_desire_dynamic_linker_symbols): Update.
3025 (link_map_start): Update.
3026 * solib-spu.c (spu_enable_break): Update.
3027 (ocl_enable_break): Update.
3028 * solib-svr4.c (elf_locate_base): Update.
3029 (enable_break): Update.
3030 * spu-tdep.c (spu_get_overlay_table): Update.
3031 (spu_catch_start): Update.
3032 (flush_ea_cache): Update.
3033 * stabsread.c (define_symbol): Update.
3034 (scan_file_globals): Update.
3035 * stack.c (find_frame_funname): Update.
3036 (frame_info): Update.
3037 * symfile.c (simple_read_overlay_table): Update.
3038 (simple_overlay_update): Update.
3039 * symmisc.c (dump_msymbols): Update.
3040 * symtab.c (fixup_section): Update.
3041 (find_pc_sect_line): Update.
3042 (skip_prologue_sal): Update.
3043 (search_symbols): Update.
3044 (print_msymbol_info): Update.
3045 (rbreak_command): Update.
3046 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3047 (completion_list_objc_symbol): Update.
3048 (default_make_symbol_completion_list_break_on): Update.
3049 * tracepoint.c (scope_info): Update.
3050 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3051 (tui_get_begin_asm_address): Update.
3052 * valops.c (find_function_in_inferior): Update.
3053 * value.c (value_static_field): Update.
3054 (value_fn_field): Update.
3056 2014-02-26 Tom Tromey <tromey@redhat.com>
3058 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3059 bound minimal symbols. Move code that knows about minsym
3061 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3063 * minsyms.h (minimal_symbol_upper_bound): Declare.
3064 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3065 minimal_symbol_upper_bound.
3067 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3069 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3070 Use the type's name if its basic type does not have a tag.
3072 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3074 * dwarf2read.c (read_subrange_type): Add comment.
3076 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3078 * dwarf2read.c (update_enumeration_type_from_children): New
3079 function, mostly extracted from process_structure_scope.
3080 (read_enumeration_type): Call update_enumeration_type_from_children.
3081 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3082 and flag_flag_enum fields.
3084 2014-02-26 Pedro Alves <palves@redhat.com>
3086 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3087 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3088 to_xfer_partial method.
3090 2014-02-26 Pedro Alves <palves@redhat.com>
3092 * target.c (complete_target_initialization): Don't install
3093 default_xfer_partial as to_xfer_partial hook.
3095 (update_current_target): Don't INHERIT nor de_fault
3096 deprecated_xfer_memory. Delete de_fault macro.
3097 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3098 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3099 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3102 2014-02-26 Pedro Alves <palves@redhat.com>
3104 * go32-nat.c (my_write_child): New function.
3105 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3106 (go32_xfer_partial): New function.
3107 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3108 Instead install a to_xfer_partial hook.
3110 2014-02-26 Pedro Alves <palves@redhat.com>
3112 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3113 to_xfer_partial helper. Rewrite.
3114 (procfs_xfer_partial): New function.
3115 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3116 Install a to_xfer_partial hook.
3118 2014-02-26 Pedro Alves <palves@redhat.com>
3120 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3121 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3122 (m32r_xfer_partial): New function.
3123 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3124 Install a to_xfer_partial hook.
3126 2014-02-26 Pedro Alves <palves@redhat.com>
3128 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3130 (mips_xfer_partial): New function.
3131 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3132 hook. Install a to_xfer_partial hook.
3134 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3136 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3137 * gdbtypes.c (create_array_type_with_stride): New function,
3138 renaming create_array_type, but with an added parameter
3139 called "bit_stride".
3140 (create_array_type): Re-implement using
3141 create_array_type_with_stride.
3142 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3143 and DW_AT_bit_stride attributes.
3145 2014-02-26 Pedro Alves <palves@redhat.com>
3147 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3148 task-specific breakpoints.
3150 2014-02-25 Pedro Alves <palves@redhat.com>
3152 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3153 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3155 2014-02-25 Stan Shebs <stan@codesourcery.com>
3157 * defs.h: Annotate comments for Doxygen.
3159 2014-02-25 Tom Tromey <tromey@redhat.com>
3161 * target.h (target_ignore): Don't declare.
3162 * target.c (target_ignore): Remove.
3164 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3167 * auto-load.c (auto_load_objfile_script_1): Change filename to
3170 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3172 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3173 documentation. Adjust prototype to match the target_ops
3174 to_xfer_partial method. Adjust implementation accordingly.
3176 2014-02-25 Hui Zhu <hui@codesourcery.com>
3178 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3181 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3183 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3184 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3185 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3186 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3187 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3188 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3189 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3190 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3192 (rl78_register_type): Use a data pointer type for SP and
3193 new pseudo registers mentioned above. Use a 16 bit integer
3194 type for all other register pairs.
3195 (rl78_register_name, rl78_g10_register_name): Update for
3196 new pseudo registers.
3197 (rl78_pseudo_register_read): Likewise.
3198 (rl78_pseudo_register_write): Likewise.
3199 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3200 to the newly added pseudo registers.
3202 2014-02-24 Doug Evans <dje@google.com>
3204 * value.c (record_latest_value): Fix comment.
3205 * printcmd.c (print_command_1): Remove code to handle -1 return from
3206 record_latest_value.
3208 2014-02-24 Pedro Alves <palves@redhat.com>
3210 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3211 deprecated_xfer_memory hook.
3212 (procfs_xfer_partial): Call procfs_xfer_memory instead
3213 of the deprecated_xfer_memory target hook.
3214 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3217 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3219 * windows-nat.c (windows_xfer_shared_libraries): Return
3220 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3221 requested object is TARGET_OBJECT_LIBRARIES.
3223 2014-02-24 Yao Qi <yao@codesourcery.com>
3225 * target.h (enum target_xfer_status)
3226 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3227 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3229 * corefile.c (memory_error_message): User updated.
3230 * exec.c (section_table_read_available_memory): Likewise.
3231 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3232 * target.c (target_xfer_status_to_string): Likewise.
3233 (raw_memory_xfer_partial): Likewise.
3234 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3235 * valops.c (read_value_memory): Likewise.
3236 * exec.h: Update comments.
3238 2014-02-24 Yao Qi <yao@codesourcery.com>
3240 * target.c (target_xfer_status_to_string): Rename argument err
3242 * target.h (target_xfer_status_to_string): Update declaration.
3243 Replace target_xfer_error_to_string with
3244 target_xfer_status_to_string in comment.
3246 2014-02-24 Yao Qi <yao@codesourcery.com>
3248 * mips-linux-nat.c (super_close): Update its type.
3249 (mips_linux_close): Pass 'self' to super_close.
3251 2014-02-24 Yao Qi <yao@codesourcery.com>
3253 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3254 * corefile.c (read_memory): Adjusted.
3255 * target.c (target_write_with_progress): Adjusted.
3257 2014-02-23 Yao Qi <yao@codesourcery.com>
3261 2013-10-25 Yao Qi <yao@codesourcery.com>
3263 * remote.c (remote_traceframe_info): Return early if
3264 traceframe is not selected.
3266 2013-07-19 Yao Qi <yao@codesourcery.com>
3268 * target.c (update_current_target): Change the default action
3269 of 'to_traceframe_info' from tcomplain to return_zero.
3270 * target.h (struct target_ops) <to_traceframe_info>: Add more
3273 2014-02-23 Yao Qi <yao@codesourcery.com>
3275 * valops.c (read_value_memory): Rewrite it. Call
3276 target_xfer_partial in a loop.
3277 * exec.h (section_table_available_memory): Remove declaration.
3278 Move comments to ...
3279 * exec.c (section_table_available_memory): ... here. Make it
3282 2014-02-23 Yao Qi <yao@codesourcery.com>
3284 * exec.c (section_table_read_available_memory): New function.
3285 * exec.h (section_table_read_available_memory): Declare.
3286 * ctf.c (ctf_xfer_partial): Call
3287 section_table_read_available_memory.
3288 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3290 2014-02-23 Yao Qi <yao@codesourcery.com>
3292 * ctf.c (ctf_xfer_partial): Move code to ...
3293 * exec.c (exec_read_partial_read_only): ... it. New function.
3294 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3295 * tracefile.c: Include "exec.h".
3296 * exec.h (exec_read_partial_read_only): Declare.
3298 2014-02-23 Yao Qi <yao@codesourcery.com>
3300 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3301 (tfile_has_memory): Remove.
3302 (init_tfile_ops): Don't set fields to_has_all_memory and
3303 to_has_memory of tfile_ops.
3304 * tracefile.c (tracefile_has_all_memory): New function.
3305 (tracefile_has_memory): New function.
3306 (init_tracefile_ops): Initialize fields to_has_all_memory and
3307 to_has_memory of 'ops'.
3309 2014-02-23 Yao Qi <yao@codesourcery.com>
3311 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3312 (ctf_thread_alive, ctf_get_trace_status): Remove.
3313 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3315 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3316 (tfile_has_stack, tfile_has_registers): Remove.
3317 (tfile_thread_alive): Remove.
3318 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3320 * tracefile.c (tracefile_has_stack): New function.
3321 (tracefile_has_registers): New function.
3322 (tracefile_thread_alive): New function.
3323 (tracefile_get_trace_status): New function.
3324 (init_tracefile_ops): New function.
3325 * tracefile.h (init_tracefile_ops): Declare.
3327 2014-02-23 Yao Qi <yao@codesourcery.com>
3329 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3330 (O_LARGEFILE): Likewise.
3331 (tfile_ops): Likewise.
3332 (TRACE_HEADER_SIZE): Likewise.
3333 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3334 (cur_data_size): Likewise.
3335 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3336 (tfile_close, tfile_files_info): Likewise.
3337 (tfile_get_trace_status): Likewise.
3338 (tfile_get_tracepoint_status): Likewise.
3339 (tfile_get_traceframe_address): Likewise.
3340 (tfile_trace_find, match_blocktype): Likewise.
3341 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3342 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3343 (tfile_get_trace_state_variable_value): Likewise.
3344 (tfile_has_all_memory, tfile_has_memory): Likewise.
3345 (tfile_has_stack, tfile_has_registers): Likewise.
3346 (tfile_thread_alive, build_traceframe_info): Likewise.
3347 (tfile_traceframe_info, init_tfile_ops): Likewise.
3348 (_initialize_tracepoint): Don't call init_tfile_ops
3349 and add_target_with_completer.
3350 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3351 exec.h, completer.h and filenames.h.
3352 (_initialize_tracefile_tfile): New function.
3354 2014-02-23 Yao Qi <yao@codesourcery.com>
3356 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3358 (HFILES_NO_SRCDIR): Add tracefile.h.
3359 * ctf.c: Include "tracefile.h".
3360 * tracefile.h: New file.
3361 * tracefile.c: New file
3362 * tracefile-tfile.c: New file.
3363 * tracepoint.c: Include "tracefile.h".
3364 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3365 (stop_reason_names): Add const.
3366 (trace_file_writer_xfree): Move it to tracefile.c.
3367 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3368 (trace_save_ctf): Likewise.
3369 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3370 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3371 (tfile_write_header, tfile_write_regblock_type): Likewise.
3372 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3373 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3374 (tfile_write_raw_data, tfile_end): Likewise.
3375 (tfile_trace_file_writer_new): Likewise.
3376 (free_uploaded_tp): Make it extern.
3377 (free_uploaded_tsv): Make it extern.
3378 (_initialize_tracepoint): Move code to register command 'tsave'
3380 * tracepoint.h (stop_reason_names): Declare.
3381 (struct trace_frame_write_ops): Move it to tracefile.h.
3382 (struct trace_file_write_ops): Likewise.
3383 (struct trace_file_writer): Likewise.
3384 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3386 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3389 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3391 (get_cores_used_by_process): New parameter num_cores, use it.
3392 (linux_xfer_osdata_processes): Pass num_cores to it.
3393 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3396 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3398 * target.c (memory_xfer_partial): Fix length arg in call to
3399 breakpoint_xfer_memory.
3401 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3404 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3405 number comes after the + or - signs. Adjust length of register
3406 name to be extracted.
3408 2014-02-20 Tom Tromey <tromey@redhat.com>
3410 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3411 (ada_varobj_ops): Mark "extern".
3413 2014-02-20 Tom Tromey <tromey@redhat.com>
3415 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3417 2014-02-20 Doug Evans <xdje42@gmail.com>
3419 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3420 All callers updated.
3421 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3422 All callers updated.
3423 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3424 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3426 2014-02-20 lin zuojian <manjian2006@gmail.com>
3427 Joel Brobecker <brobecker@adacore.com>
3428 Doug Evans <xdje42@gmail.com>
3431 * dwarf2read.c (struct die_info): New member in_process.
3432 (reset_die_in_process): New function.
3433 (process_die): Set it at the start, reset when returning.
3434 (inherit_abstract_dies): Only call process_die if origin_child_die
3435 not already being processed.
3437 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3439 * windows-nat.c (handle_unload_dll): Add function documentation.
3440 (do_initial_windows_stuff): Add comment explaining why we wait
3441 until after inferior initialization has finished before
3442 processing all DLLs.
3444 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3446 * windows-nat.c (get_module_name): Delete.
3447 (windows_get_exec_module_filename): New function, mostly
3448 inspired from get_module_name.
3449 (windows_pid_to_exec_file): Replace call to get_module_name
3450 by call to windows_get_exec_module_filename.
3452 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3454 * windows-nat.c (handle_load_dll): Rewrite this function's
3455 introductory comment. Remove code using get_module_name
3456 to get the DLL's name.
3458 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3460 * windows-nat.c (get_windows_debug_event): Ignore
3461 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3462 if windows_initialization_done == 0.
3463 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3464 Adjust implementation to always load all DLLs.
3465 (do_initial_windows_stuff): Replace call to
3466 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3468 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3470 * windows-nat.c (_initialize_windows_nat): Deprecate the
3471 "dll-symbols" command. Turn the "add-shared-symbol-files"
3472 and "assf" aliases into commands, and deprecate them as well.
3473 * NEWS: Add entry explaining that "dll-symbols" and its two
3474 aliases are now deprecated.
3476 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3478 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3479 new-line in debug string. Remove trailing spaces.
3481 2014-02-19 Stan Shebs <stan@codesourcery.com>
3483 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3485 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3487 * NEWS: Add entry for the new feature
3488 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3491 2014-02-19 Stan Shebs <stan@codesourcery.com>
3493 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3495 2014-02-19 Pedro Alves <palves@redhat.com>
3497 * common/ptid.h (struct ptid): Mention that process_stratum
3498 targets should prefer ptid.lwp.
3500 2014-02-19 Pedro Alves <palves@redhat.com>
3502 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3503 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3504 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3505 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3506 store remote thread ids rather than ptid.tid.
3507 (_initialize_remote): Adjust.
3509 2014-02-19 Tom Tromey <tromey@redhat.com>
3511 * target.c (target_get_unwinder): Rewrite.
3512 (target_get_tailcall_unwinder): Rewrite.
3513 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3514 (record_btrace_to_get_tailcall_unwinder): New function.
3515 (init_record_btrace_ops): Update.
3516 * target.h (struct target_ops) <to_get_unwinder,
3517 to_get_tailcall_unwinder>: Now function pointers. Use
3518 TARGET_DEFAULT_RETURN.
3520 2014-02-19 Tom Tromey <tromey@redhat.com>
3522 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3524 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3526 2014-02-19 Tom Tromey <tromey@redhat.com>
3528 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3530 * target-delegates.c: Rebuild.
3531 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3532 TARGET_DEFAULT_FUNC.
3533 * target.c (default_target_decr_pc_after_break): Rename from
3534 forward_target_decr_pc_after_break. Simplify.
3535 (target_decr_pc_after_break): Rely on delegation.
3537 2014-02-19 Tom Tromey <tromey@redhat.com>
3539 * target.c (update_current_target): Do not INHERIT to_doc or
3540 to_magic. Do not de_fault to_open or to_close.
3542 2014-02-19 Tom Tromey <tromey@redhat.com>
3544 * gcore.h (objfile_find_memory_regions): Declare.
3545 * gcore.c (objfile_find_memory_regions): No longer static. Add
3547 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3548 * exec.c: Include gcore.h.
3549 (exec_set_find_memory_regions): Remove.
3550 (exec_find_memory_regions): Remove.
3551 (exec_do_find_memory_regions): Remove.
3552 (init_exec_ops): Update.
3553 * defs.h (exec_set_find_memory_regions): Remove.
3555 2014-02-19 Tom Tromey <tromey@redhat.com>
3557 * target-delegates.c: Rebuild.
3558 * target.h (struct target_ops) <to_extra_thread_info,
3559 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3560 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3561 not 0, in TARGET_DEFAULT_RETURN.
3563 2014-02-19 Tom Tromey <tromey@redhat.com>
3565 * target.c (complete_target_initialization): Remove casts. Use
3566 return_zero_has_execution.
3567 (return_zero): Add "ignore" argument.
3568 (return_zero_has_execution): New function.
3569 (init_dummy_target): Remove casts. Use
3570 return_zero_has_execution.
3572 2014-02-19 Tom Tromey <tromey@redhat.com>
3574 * target.c (update_current_target): Update comments. Do not
3577 2014-02-19 Tom Tromey <tromey@redhat.com>
3579 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3581 * corelow.c (core_read_description): Delegate when needed.
3582 * remote.c (remote_read_description): Delegate when needed.
3583 * target-delegates.c: Rebuild.
3584 * target.c (target_read_description): Rewrite.
3585 * target.h (struct target_ops) <to_read_description>: Update
3586 comment. Use TARGET_DEFAULT_RETURN.
3588 2014-02-19 Tom Tromey <tromey@redhat.com>
3590 * target-delegates.c: Rebuild.
3591 * target.c (update_current_target): Don't inherit or default
3593 (find_default_run_target): Check against delegate_can_run.
3594 * target.h (struct target_ops) <to_can_run>: Use
3595 TARGET_DEFAULT_RETURN.
3597 2014-02-19 Tom Tromey <tromey@redhat.com>
3599 * target-delegates.c: Rebuild.
3600 * target.c (target_disconnect): Unconditionally delegate.
3601 * target.h (struct target_ops) <to_disconnect>: Use
3602 TARGET_DEFAULT_NORETURN.
3604 2014-02-19 Tom Tromey <tromey@redhat.com>
3606 * record.c (record_stop): Unconditionally delegate.
3607 * target-delegates.c: Rebuild.
3608 * target.c (target_stop_recording): Unconditionally delegate.
3609 * target.h (struct target_ops) <to_stop_recording>: Use
3610 TARGET_DEFAULT_IGNORE.
3612 2014-02-19 Tom Tromey <tromey@redhat.com>
3614 * target-delegates.c: Rebuild.
3615 * target.c (target_enable_btrace): Unconditionally delegate.
3616 * target.h (struct target_ops) <to_enable_btrace>: Use
3617 TARGET_DEFAULT_NORETURN.
3619 2014-02-19 Tom Tromey <tromey@redhat.com>
3621 * target-delegates.c: Rebuild.
3622 * target.c (target_read_btrace): Unconditionally delegate.
3623 * target.h (struct target_ops) <to_read_btrace>: Use
3624 TARGET_DEFAULT_NORETURN.
3626 2014-02-19 Tom Tromey <tromey@redhat.com>
3628 * target-delegates.c: Rebuild.
3629 * target.c (target_teardown_btrace): Unconditionally delegate.
3630 * target.h (struct target_ops) <to_teardown_btrace>: Use
3631 TARGET_DEFAULT_NORETURN.
3633 2014-02-19 Tom Tromey <tromey@redhat.com>
3635 * target-delegates.c: Rebuild.
3636 * target.c (target_disable_btrace): Unconditionally delegate.
3637 * target.h (struct target_ops) <to_disable_btrace>: Use
3638 TARGET_DEFAULT_NORETURN.
3640 2014-02-19 Tom Tromey <tromey@redhat.com>
3642 * target-delegates.c: Rebuild.
3643 * target.c (default_search_memory): New function.
3644 (simple_search_memory): Update comment.
3645 (target_search_memory): Unconditionally delegate.
3646 * target.h (struct target_ops) <to_search_memory>: Use
3647 TARGET_DEFAULT_FUNC.
3649 2014-02-19 Tom Tromey <tromey@redhat.com>
3651 * auxv.c (default_auxv_parse): No longer static.
3652 (target_auxv_parse): Unconditionally delegate.
3653 * auxv.h (default_auxv_parse): Declare.
3654 * target-delegates.c: Rebuild.
3655 * target.c: Include auxv.h.
3656 * target.h (struct target_ops) <to_auxv_parse>: Use
3657 TARGET_DEFAULT_FUNC.
3659 2014-02-19 Tom Tromey <tromey@redhat.com>
3661 * target-delegates.c: Rebuild.
3662 * target.c (target_memory_map): Unconditionally delegate.
3663 * target.h (struct target_ops) <to_memory_map>: Use
3664 TARGET_DEFAULT_RETURN.
3666 2014-02-19 Tom Tromey <tromey@redhat.com>
3668 * target-delegates.c: Rebuild.
3669 * target.c (target_thread_alive): Unconditionally delegate.
3670 * target.h (struct target_ops) <to_thread_alive>: Use
3671 TARGET_DEFAULT_RETURN.
3673 2014-02-19 Tom Tromey <tromey@redhat.com>
3675 * target-delegates.c: Rebuild.
3676 * target.c (target_save_record): Unconditionally delegate.
3677 * target.h (struct target_ops) <to_save_record>: Use
3678 TARGET_DEFAULT_NORETURN.
3680 2014-02-19 Tom Tromey <tromey@redhat.com>
3682 * target-delegates.c: Rebuild.
3683 * target.c (target_delete_record): Unconditionally delegate.
3684 * target.h (struct target_ops) <to_delete_record>: Use
3685 TARGET_DEFAULT_NORETURN.
3687 2014-02-19 Tom Tromey <tromey@redhat.com>
3689 * target-delegates.c: Rebuild.
3690 * target.c (target_record_is_replaying): Unconditionally
3692 * target.h (struct target_ops) <to_record_is_replaying>: Use
3693 TARGET_DEFAULT_RETURN.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * target-delegates.c: Rebuild.
3698 * target.c (target_goto_record_begin): Unconditionally delegate.
3699 * target.h (struct target_ops) <to_goto_record_begin>: Use
3700 TARGET_DEFAULT_NORETURN.
3702 2014-02-19 Tom Tromey <tromey@redhat.com>
3704 * target-delegates.c: Rebuild.
3705 * target.c (target_goto_record_end): Unconditionally delegate.
3706 * target.h (struct target_ops) <to_goto_record_end>: Use
3707 TARGET_DEFAULT_NORETURN.
3709 2014-02-19 Tom Tromey <tromey@redhat.com>
3711 * target-delegates.c: Rebuild.
3712 * target.c (target_goto_record): Unconditionally delegate.
3713 * target.h (struct target_ops) <to_goto_record>: Use
3714 TARGET_DEFAULT_NORETURN.
3716 2014-02-19 Tom Tromey <tromey@redhat.com>
3718 * target-delegates.c: Rebuild.
3719 * target.c (target_insn_history): Unconditionally delegate.
3720 * target.h (struct target_ops) <to_insn_history>: Use
3721 TARGET_DEFAULT_NORETURN.
3723 2014-02-19 Tom Tromey <tromey@redhat.com>
3725 * target-delegates.c: Rebuild.
3726 * target.c (target_insn_history_from): Unconditionally delegate.
3727 * target.h (struct target_ops) <to_insn_history_from>: Use
3728 TARGET_DEFAULT_NORETURN.
3730 2014-02-19 Tom Tromey <tromey@redhat.com>
3732 * target-delegates.c: Rebuild.
3733 * target.c (target_insn_history_range): Unconditionally delegate.
3734 * target.h (struct target_ops) <to_insn_history_range>: Use
3735 TARGET_DEFAULT_NORETURN.
3737 2014-02-19 Tom Tromey <tromey@redhat.com>
3739 * target-delegates.c: Rebuild.
3740 * target.c (target_call_history): Unconditionally delegate.
3741 * target.h (struct target_ops) <to_call_history>: Use
3742 TARGET_DEFAULT_NORETURN.
3744 2014-02-19 Tom Tromey <tromey@redhat.com>
3746 * target-delegates.c: Rebuild.
3747 * target.c (target_call_history_from): Unconditionally delegate.
3748 * target.h (struct target_ops) <to_call_history_from>: Use
3749 TARGET_DEFAULT_NORETURN.
3751 2014-02-19 Tom Tromey <tromey@redhat.com>
3753 * target-delegates.c: Rebuild.
3754 * target.c (target_call_history_range): Unconditionally delegate.
3755 * target.h (struct target_ops) <to_call_history_range>: Use
3756 TARGET_DEFAULT_NORETURN.
3758 2014-02-19 Tom Tromey <tromey@redhat.com>
3760 * target-delegates.c: Rebuild.
3761 * target.c (target_verify_memory): Unconditionally delegate.
3762 * target.h (struct target_ops) <to_verify_memory>: Use
3763 TARGET_DEFAULT_NORETURN.
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3767 * target-delegates.c: Rebuild.
3768 * target.c (target_core_of_thread): Unconditionally delegate.
3769 * target.h (struct target_ops) <to_core_of_thread>: Use
3770 TARGET_DEFAULT_RETURN.
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target-delegates.c: Rebuild.
3775 * target.c (target_flash_done): Unconditionally delegate.
3776 * target.h (struct target_ops) <to_flash_done>: Use
3777 TARGET_DEFAULT_NORETURN.
3779 2014-02-19 Tom Tromey <tromey@redhat.com>
3781 * target-delegates.c: Rebuild.
3782 * target.c (target_flash_erase): Unconditionally delegate.
3783 * target.h (struct target_ops) <to_flash_erase>: Use
3784 TARGET_DEFAULT_NORETURN.
3786 2014-02-19 Tom Tromey <tromey@redhat.com>
3788 * target-delegates.c: Rebuild.
3789 * target.c (target_get_section_table): Unconditionally delegate.
3790 * target.h (struct target_ops) <to_get_section_table>: Use
3791 TARGET_DEFAULT_RETURN.
3793 2014-02-19 Tom Tromey <tromey@redhat.com>
3795 * target-delegates.c: Rebuild.
3796 * target.c (target_pid_to_str): Unconditionally delegate.
3797 (init_dummy_target): Don't initialize to_pid_to_str.
3798 (default_pid_to_str): Rename from dummy_pid_to_str.
3799 * target.h (struct target_ops) <to_pid_to_str>: Use
3800 TARGET_DEFAULT_FUNC.
3802 2014-02-19 Tom Tromey <tromey@redhat.com>
3804 * target-delegates.c: Rebuild.
3805 * target.c (target_find_new_threads): Unconditionally delegate.
3806 * target.h (struct target_ops) <to_find_new_threads>: Use
3807 TARGET_DEFAULT_RETURN.
3809 2014-02-19 Tom Tromey <tromey@redhat.com>
3811 * target-delegates.c: Rebuild.
3812 * target.c (target_program_signals): Unconditionally delegate.
3813 * target.h (struct target_ops) <to_program_signals>: Use
3814 TARGET_DEFAULT_IGNORE.
3816 2014-02-19 Tom Tromey <tromey@redhat.com>
3818 * target-delegates.c: Rebuild.
3819 * target.c (target_pass_signals): Unconditionally delegate.
3820 * target.h (struct target_ops) <to_pass_signals>: Use
3821 TARGET_DEFAULT_IGNORE.
3823 2014-02-19 Tom Tromey <tromey@redhat.com>
3825 * target-delegates.c: Rebuild.
3826 * target.c (default_mourn_inferior): New function.
3827 (target_mourn_inferior): Unconditionally delegate.
3828 * target.h (struct target_ops) <to_mourn_inferior>: Use
3829 TARGET_DEFAULT_FUNC.
3831 2014-02-19 Tom Tromey <tromey@redhat.com>
3833 * target-delegates.c: Rebuild.
3834 * target.c (default_follow_fork): New function.
3835 (target_follow_fork): Unconditionally delegate.
3836 * target.h (struct target_ops) <to_follow_fork>: Use
3837 TARGET_DEFAULT_FUNC.
3839 2014-02-19 Tom Tromey <tromey@redhat.com>
3841 * target-delegates.c: Rebuild.
3842 * target.c (target_kill): Unconditionally delegate.
3843 * target.h (struct target_ops) <to_kill>: Use
3844 TARGET_DEFAULT_NORETURN.
3846 2014-02-19 Tom Tromey <tromey@redhat.com>
3848 * target-delegates.c: Rebuild.
3849 * target.c (target_masked_watch_num_registers): Unconditionally
3851 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3852 Use TARGET_DEFAULT_RETURN.
3854 2014-02-19 Tom Tromey <tromey@redhat.com>
3856 * target-delegates.c: Rebuild.
3857 * target.c (target_remove_mask_watchpoint): Unconditionally
3859 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3860 TARGET_DEFAULT_RETURN.
3862 2014-02-19 Tom Tromey <tromey@redhat.com>
3864 * target-delegates.c: Rebuild.
3865 * target.c (target_insert_mask_watchpoint): Unconditionally
3867 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3868 TARGET_DEFAULT_RETURN.
3870 2014-02-19 Tom Tromey <tromey@redhat.com>
3872 * target-delegates.c: Rebuild.
3873 * target.c (target_ranged_break_num_registers): Unconditionally
3875 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3876 Use TARGET_DEFAULT_RETURN.
3878 2014-02-19 Tom Tromey <tromey@redhat.com>
3880 * target-delegates.c: Rebuild.
3881 * target.c (target_fetch_registers): Unconditionally delegate.
3882 * target.h (struct target_ops) <to_fetch_registers>: Use
3883 TARGET_DEFAULT_NORETURN.
3885 2014-02-19 Tom Tromey <tromey@redhat.com>
3887 * target-delegates.c: Rebuild.
3888 * target.c (update_current_target): Don't inherit or default
3890 * target.h (struct target_ops) <to_stop>: Use
3891 TARGET_DEFAULT_IGNORE.
3893 2014-02-19 Tom Tromey <tromey@redhat.com>
3895 * target-delegates.c: Rebuild.
3896 * target.c (update_current_target): Don't inherit or default
3897 to_can_run_breakpoint_commands.
3898 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3899 Use TARGET_DEFAULT_RETURN.
3901 2014-02-19 Tom Tromey <tromey@redhat.com>
3903 * target-delegates.c: Rebuild.
3904 * target.c (update_current_target): Don't inherit or default
3905 to_supports_evaluation_of_breakpoint_conditions.
3906 * target.h (struct target_ops)
3907 <to_supports_evaluation_of_breakpoint_conditions>: Use
3908 TARGET_DEFAULT_RETURN.
3910 2014-02-19 Tom Tromey <tromey@redhat.com>
3912 * target-delegates.c: Rebuild.
3913 * target.c (update_current_target): Don't inherit or default
3914 to_augmented_libraries_svr4_read.
3915 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3916 Use TARGET_DEFAULT_RETURN.
3918 2014-02-19 Tom Tromey <tromey@redhat.com>
3920 * target-delegates.c: Rebuild.
3921 * target.c (update_current_target): Don't inherit or default
3923 * target.h (struct target_ops) <to_can_use_agent>: Use
3924 TARGET_DEFAULT_RETURN.
3926 2014-02-19 Tom Tromey <tromey@redhat.com>
3928 * target-delegates.c: Rebuild.
3929 * target.c (update_current_target): Don't inherit or default
3931 * target.h (struct target_ops) <to_use_agent>: Use
3932 TARGET_DEFAULT_NORETURN.
3934 2014-02-19 Tom Tromey <tromey@redhat.com>
3936 * target-delegates.c: Rebuild.
3937 * target.c (update_current_target): Don't inherit or default
3939 (return_null): Remove.
3940 * target.h (struct target_ops) <to_traceframe_info>: Use
3941 TARGET_DEFAULT_RETURN.
3943 2014-02-19 Tom Tromey <tromey@redhat.com>
3945 * target-delegates.c: Rebuild.
3946 * target.c (update_current_target): Don't inherit or default
3947 to_static_tracepoint_markers_by_strid.
3948 * target.h (struct target_ops)
3949 <to_static_tracepoint_markers_by_strid>: Use
3950 TARGET_DEFAULT_NORETURN.
3952 2014-02-19 Tom Tromey <tromey@redhat.com>
3954 * target-delegates.c: Rebuild.
3955 * target.c (update_current_target): Don't inherit or default
3956 to_static_tracepoint_marker_at.
3957 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3958 Use TARGET_DEFAULT_RETURN.
3960 2014-02-19 Tom Tromey <tromey@redhat.com>
3962 * target-delegates.c: Rebuild.
3963 * target.c (update_current_target): Don't inherit or default
3965 * target.h (struct target_ops) <to_set_permissions>: Use
3966 TARGET_DEFAULT_IGNORE.
3968 2014-02-19 Tom Tromey <tromey@redhat.com>
3970 * target-delegates.c: Rebuild.
3971 * target.c (update_current_target): Don't inherit or default
3973 * target.h (struct target_ops) <to_get_tib_address>: Use
3974 TARGET_DEFAULT_NORETURN.
3976 2014-02-19 Tom Tromey <tromey@redhat.com>
3978 * target-delegates.c: Rebuild.
3979 * target.c (update_current_target): Don't inherit or default
3981 * target.h (struct target_ops) <to_set_trace_notes>: Use
3982 TARGET_DEFAULT_RETURN.
3984 2014-02-19 Tom Tromey <tromey@redhat.com>
3986 * target-delegates.c: Rebuild.
3987 * target.c (update_current_target): Don't initialize
3988 to_set_trace_buffer_size.
3989 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3990 TARGET_DEFAULT_IGNORE.
3992 2014-02-19 Tom Tromey <tromey@redhat.com>
3994 * target-delegates.c: Rebuild.
3995 * target.c (update_current_target): Don't inherit or default
3996 to_set_circular_trace_buffer.
3997 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3998 TARGET_DEFAULT_IGNORE.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * target-delegates.c: Rebuild.
4003 * target.c (update_current_target): Don't inherit or default
4004 to_set_disconnected_tracing.
4005 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4006 TARGET_DEFAULT_IGNORE.
4008 2014-02-19 Tom Tromey <tromey@redhat.com>
4010 * target-delegates.c: Rebuild.
4011 * target.c (update_current_target): Don't inherit or default
4012 to_get_min_fast_tracepoint_insn_len.
4013 (return_minus_one): Remove.
4014 * target.h (struct target_ops)
4015 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4017 2014-02-19 Tom Tromey <tromey@redhat.com>
4019 * target-delegates.c: Rebuild.
4020 * target.c (update_current_target): Don't inherit or default
4021 to_get_raw_trace_data.
4022 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4023 TARGET_DEFAULT_NORETURN.
4025 2014-02-19 Tom Tromey <tromey@redhat.com>
4027 * target-delegates.c: Rebuild.
4028 * target.c (update_current_target): Don't inherit or default
4029 to_upload_trace_state_variables.
4030 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4031 Use TARGET_DEFAULT_RETURN.
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target-delegates.c: Rebuild.
4036 * target.c (update_current_target): Don't inherit or default
4037 to_upload_tracepoints.
4038 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4039 TARGET_DEFAULT_RETURN.
4041 2014-02-19 Tom Tromey <tromey@redhat.com>
4043 * target-delegates.c: Rebuild.
4044 * target.c (update_current_target): Don't inherit or default
4046 * target.h (struct target_ops) <to_save_trace_data>: Use
4047 TARGET_DEFAULT_NORETURN.
4049 2014-02-19 Tom Tromey <tromey@redhat.com>
4051 * target-delegates.c: Rebuild.
4052 * target.c (update_current_target): Don't inherit or default
4053 to_get_trace_state_variable_value.
4054 * target.h (struct target_ops)
4055 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4057 2014-02-19 Tom Tromey <tromey@redhat.com>
4059 * target-delegates.c: Rebuild.
4060 * target.c (update_current_target): Don't inherit or default
4062 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4064 2014-02-19 Tom Tromey <tromey@redhat.com>
4066 * target-delegates.c: Rebuild.
4067 * target.c (update_current_target): Don't inherit or default
4069 * target.h (struct target_ops) <to_trace_stop>: Use
4070 TARGET_DEFAULT_NORETURN.
4072 2014-02-19 Tom Tromey <tromey@redhat.com>
4074 * target-delegates.c: Rebuild.
4075 * target.c (update_current_target): Don't inherit or default
4076 to_get_tracepoint_status.
4077 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4078 TARGET_DEFAULT_NORETURN.
4080 2014-02-19 Tom Tromey <tromey@redhat.com>
4082 * target-delegates.c: Rebuild.
4083 * target.c (update_current_target): Don't inherit or default
4084 to_get_trace_status.
4085 * target.h (struct target_ops) <to_get_trace_status>: Use
4086 TARGET_DEFAULT_RETURN.
4088 2014-02-19 Tom Tromey <tromey@redhat.com>
4090 * target-delegates.c: Rebuild.
4091 * target.c (update_current_target): Don't inherit or default
4093 * target.h (struct target_ops) <to_trace_start>: Use
4094 TARGET_DEFAULT_NORETURN.
4096 2014-02-19 Tom Tromey <tromey@redhat.com>
4098 * target-delegates.c: Rebuild.
4099 * target.c (update_current_target): Don't inherit or default
4100 to_trace_set_readonly_regions.
4101 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4102 Use TARGET_DEFAULT_NORETURN.
4104 2014-02-19 Tom Tromey <tromey@redhat.com>
4106 * target-delegates.c: Rebuild.
4107 * target.c (update_current_target): Don't inherit or default
4108 to_disable_tracepoint.
4109 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4110 TARGET_DEFAULT_NORETURN.
4112 2014-02-19 Tom Tromey <tromey@redhat.com>
4114 * target-delegates.c: Rebuild.
4115 * target.c (update_current_target): Don't inherit or default
4116 to_enable_tracepoint.
4117 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4118 TARGET_DEFAULT_NORETURN.
4120 2014-02-19 Tom Tromey <tromey@redhat.com>
4122 * target-delegates.c: Rebuild.
4123 * target.c (update_current_target): Don't inherit or default
4124 to_download_trace_state_variable.
4125 * target.h (struct target_ops) <to_download_trace_state_variable>:
4126 Use TARGET_DEFAULT_NORETURN.
4128 2014-02-19 Tom Tromey <tromey@redhat.com>
4130 * target-delegates.c: Rebuild.
4131 * target.c (update_current_target): Don't inherit or default
4132 to_can_download_tracepoint.
4133 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4134 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
4141 * target.h (struct target_ops) <to_download_tracepoint>: Use
4142 TARGET_DEFAULT_NORETURN.
4144 2014-02-19 Tom Tromey <tromey@redhat.com>
4146 * target-delegates.c: Rebuild.
4147 * target.c (update_current_target): Don't inherit or default
4149 * target.h (struct target_ops) <to_trace_init>: Use
4150 TARGET_DEFAULT_RETURN.
4152 2014-02-19 Tom Tromey <tromey@redhat.com>
4154 * target-delegates.c: Rebuild.
4155 * target.c (update_current_target): Don't inherit or default
4156 to_supports_string_tracing.
4157 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4158 TARGET_DEFAULT_RETURN.
4160 2014-02-19 Tom Tromey <tromey@redhat.com>
4162 * target-delegates.c: Rebuild.
4163 * target.c (update_current_target): Don't inherit or default
4164 to_supports_enable_disable_tracepoint.
4165 * target.h (struct target_ops)
4166 <to_supports_enable_disable_tracepoint>: Use
4167 TARGET_DEFAULT_RETURN.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target-delegates.c: Rebuild.
4172 * target.c (update_current_target): Don't inherit or default
4173 to_supports_multi_process.
4174 * target.h (struct target_ops) <to_supports_multi_process>: Use
4175 TARGET_DEFAULT_RETURN.
4177 2014-02-19 Tom Tromey <tromey@redhat.com>
4179 * target-delegates.c: Rebuild.
4180 * target.c (update_current_target): Don't inherit or default
4181 to_get_ada_task_ptid.
4182 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4183 TARGET_DEFAULT_FUNC.
4185 2014-02-19 Tom Tromey <tromey@redhat.com>
4187 * target-delegates.c: Rebuild.
4188 * target.c (update_current_target): Don't inherit or default
4189 to_thread_architecture.
4190 * target.h (struct target_ops) <to_thread_architecture>: Use
4191 TARGET_DEFAULT_FUNC.
4193 2014-02-19 Tom Tromey <tromey@redhat.com>
4195 * target-delegates.c: Rebuild.
4196 * target.c (update_current_target): Don't inherit or default
4197 to_execution_direction.
4198 * target.h (struct target_ops) <to_execution_direction>: Use
4199 TARGET_DEFAULT_FUNC.
4201 2014-02-19 Tom Tromey <tromey@redhat.com>
4203 * target-delegates.c: Rebuild.
4204 * target.c (update_current_target): Don't inherit or default
4205 to_can_execute_reverse.
4206 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4207 TARGET_DEFAULT_RETURN.
4208 (target_can_execute_reverse): Unconditionally delegate.
4210 2014-02-19 Tom Tromey <tromey@redhat.com>
4212 * target-delegates.c: Rebuild.
4213 * target.c (update_current_target): Don't inherit or default
4215 (dummy_goto_bookmark): Remove.
4216 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4217 * target.h (struct target_ops) <to_goto_bookmark>: Use
4218 TARGET_DEFAULT_NORETURN.
4220 2014-02-19 Tom Tromey <tromey@redhat.com>
4222 * target-delegates.c: Rebuild.
4223 * target.c (update_current_target): Don't inherit or default
4225 (dummy_get_bookmark): Remove.
4226 (init_dummy_target): Don't inherit or default to_get_bookmark.
4227 * target.h (struct target_ops) <to_get_bookmark>: Use
4228 TARGET_DEFAULT_NORETURN
4230 2014-02-19 Tom Tromey <tromey@redhat.com>
4232 * target-delegates.c: Rebuild.
4233 * target.c (update_current_target): Don't inherit or default
4234 to_make_corefile_notes.
4235 (init_dummy_target): Don't initialize to_make_corefile_notes.
4236 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4237 TARGET_DEFAULT_FUNC.
4239 2014-02-19 Tom Tromey <tromey@redhat.com>
4241 * target-delegates.c: Rebuild.
4242 * target.c (update_current_target): Don't inherit or default
4243 to_find_memory_regions.
4244 (init_dummy_target): Don't initialize to_find_memory_regions.
4245 * target.h (struct target_ops) <to_find_memory_regions>: Use
4246 TARGET_DEFAULT_FUNC.
4248 2014-02-19 Tom Tromey <tromey@redhat.com>
4250 * target-delegates.c: Rebuild.
4251 * target.c (update_current_target): Don't inherit or default
4253 * target.h (struct target_ops) <to_log_command>: Use
4254 TARGET_DEFAULT_IGNORE.
4255 (target_log_command): Unconditionally delegate.
4257 2014-02-19 Tom Tromey <tromey@redhat.com>
4259 * target-delegates.c: Rebuild.
4260 * target.c (update_current_target): Don't inherit or default
4261 to_pid_to_exec_file.
4262 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4263 TARGET_DEFAULT_RETURN.
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4267 * target-delegates.c: Rebuild.
4268 * target.c (update_current_target): Don't inherit or default
4270 (target_thread_name): Unconditionally delegate.
4271 * target.h (struct target_ops) <to_thread_name>: Use
4272 TARGET_DEFAULT_RETURN.
4274 2014-02-19 Tom Tromey <tromey@redhat.com>
4276 * target-delegates.c: Rebuild.
4277 * target.c (update_current_target): Don't inherit or default
4278 to_extra_thread_info.
4279 * target.h (struct target_ops) <to_extra_thread_info>: Use
4280 TARGET_DEFAULT_RETURN.
4282 2014-02-19 Tom Tromey <tromey@redhat.com>
4284 * target-delegates.c: Rebuild.
4285 * target.c (update_current_target): Don't inherit or default
4287 * target.h (struct target_ops) <to_has_exited>: Use
4288 TARGET_DEFAULT_RETURN..
4290 2014-02-19 Tom Tromey <tromey@redhat.com>
4292 * target-delegates.c: Rebuild.
4293 * target.c (update_current_target): Don't inherit or default
4294 to_set_syscall_catchpoint.
4295 (return_one): Remove.
4296 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4297 TARGET_DEFAULT_RETURN.
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target-delegates.c: Rebuild.
4302 * target.c (update_current_target): Don't inherit or default
4303 to_insert_exec_catchpoint.
4304 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4305 TARGET_DEFAULT_RETURN.
4307 2014-01-08 Tom Tromey <tromey@redhat.com>
4309 * target-delegates.c: Rebuild.
4310 * target.c (update_current_target): Don't inherit or default
4311 to_insert_exec_catchpoint.
4312 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4313 TARGET_DEFAULT_RETURN.
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target-delegates.c: Rebuild.
4318 * target.c (update_current_target): Don't inherit or default
4319 to_remove_vfork_catchpoint.
4320 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4321 TARGET_DEFAULT_RETURN.
4323 2014-02-19 Tom Tromey <tromey@redhat.com>
4325 * target-delegates.c: Rebuild.
4326 * target.c (update_current_target): Don't inherit or default
4327 to_insert_vfork_catchpoint.
4328 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4329 TARGET_DEFAULT_RETURN.
4331 2014-02-19 Tom Tromey <tromey@redhat.com>
4333 * target-delegates.c: Rebuild.
4334 * target.c (update_current_target): Don't inherit or default
4335 to_remove_fork_catchpoint.
4336 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4337 TARGET_DEFAULT_RETURN.
4339 2014-02-19 Tom Tromey <tromey@redhat.com>
4341 * target-delegates.c: Rebuild.
4342 * target.c (update_current_target): Don't inherit or default
4343 to_insert_fork_catchpoint.
4344 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4345 TARGET_DEFAULT_RETURN.
4347 2014-02-19 Tom Tromey <tromey@redhat.com>
4349 * target-delegates.c: Rebuild.
4350 * target.c (update_current_target): Don't inherit or default
4351 to_post_startup_inferior.
4352 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4353 TARGET_DEFAULT_IGNORE.
4355 2014-02-19 Tom Tromey <tromey@redhat.com>
4357 * target-delegates.c: Rebuild.
4358 * target.c (update_current_target): Don't inherit or default
4360 * target.h (struct target_ops) <to_load>: Use
4361 TARGET_DEFAULT_NORETURN.
4363 2014-02-19 Tom Tromey <tromey@redhat.com>
4365 * target-delegates.c: Rebuild.
4366 * target.c (update_current_target): Don't inherit or default
4368 * target.h (struct target_ops) <to_terminal_info>: Use
4369 TARGET_DEFAULT_FUNC.
4371 2014-02-19 Tom Tromey <tromey@redhat.com>
4373 * target-delegates.c: Rebuild.
4374 * target.c (update_current_target): Don't inherit or default
4375 to_terminal_save_ours.
4376 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4377 TARGET_DEFAULT_IGNORE.
4379 2014-02-19 Tom Tromey <tromey@redhat.com>
4381 * target-delegates.c: Rebuild.
4382 * target.c (update_current_target): Don't inherit or default
4384 * target.h (struct target_ops) <to_terminal_ours>: Use
4385 TARGET_DEFAULT_IGNORE.
4387 2014-02-19 Tom Tromey <tromey@redhat.com>
4389 * target-delegates.c: Rebuild.
4390 * target.c (update_current_target): Don't inherit or default
4391 to_terminal_ours_for_output.
4392 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4393 TARGET_DEFAULT_IGNORE.
4395 2014-02-19 Tom Tromey <tromey@redhat.com>
4397 * target-delegates.c: Rebuild.
4398 * target.c (update_current_target): Don't inherit or default
4399 to_terminal_inferior.
4400 * target.h (struct target_ops) <to_terminal_inferior>: Use
4401 TARGET_DEFAULT_IGNORE.
4403 2014-02-19 Tom Tromey <tromey@redhat.com>
4405 * target-delegates.c: Rebuild.
4406 * target.c (update_current_target): Don't inherit or default
4408 * target.h (struct target_ops) <to_terminal_init>: Use
4409 TARGET_DEFAULT_IGNORE.
4411 2014-02-19 Tom Tromey <tromey@redhat.com>
4413 * target-delegates.c: Rebuild.
4414 * target.c (update_current_target): Don't inherit or default
4415 to_can_accel_watchpoint_condition.
4416 * target.h (struct target_ops)
4417 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4419 2014-02-19 Tom Tromey <tromey@redhat.com>
4421 * target-delegates.c: Rebuild.
4422 * target.c (update_current_target): Don't inherit or default
4423 to_region_ok_for_hw_watchpoint.
4424 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4425 Use TARGET_DEFAULT_FUNC.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * target-delegates.c: Rebuild.
4430 * target.c (update_current_target): Don't inherit or default
4431 to_watchpoint_addr_within_range.
4432 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4433 Use TARGET_DEFAULT_FUNC.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (update_current_target): Don't inherit or default
4439 to_remove_watchpoint.
4440 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4441 TARGET_DEFAULT_NORETURN.
4443 2014-02-19 Tom Tromey <tromey@redhat.com>
4445 * target-delegates.c: Rebuild.
4446 * target.c (update_current_target): Don't inherit or default
4447 to_insert_watchpoint.
4448 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4449 TARGET_DEFAULT_RETURN.
4451 2014-02-19 Tom Tromey <tromey@redhat.com>
4453 * target-delegates.c: Rebuild.
4454 * target.c (update_current_target): Don't inherit or default
4455 to_remove_hw_breakpoint.
4456 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4457 TARGET_DEFAULT_RETURN.
4459 2014-02-19 Tom Tromey <tromey@redhat.com>
4461 * target-delegates.c: Rebuild.
4462 * target.c (update_current_target): Don't inherit or default
4463 to_insert_hw_breakpoint.
4464 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4465 TARGET_DEFAULT_RETURN.
4467 2014-02-19 Tom Tromey <tromey@redhat.com>
4469 * target-delegates.c: Rebuild.
4470 * target.c (update_current_target): Don't inherit or default
4471 to_can_use_hw_breakpoint.
4472 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4473 TARGET_DEFAULT_RETURN.
4475 2014-02-19 Tom Tromey <tromey@redhat.com>
4477 * target-delegates.c: Rebuild.
4478 * target.c (update_current_target): Don't inherit or default
4480 * target.h (struct target_ops) <to_files_info>: Use
4481 TARGET_DEFAULT_IGNORE.
4483 2014-02-19 Tom Tromey <tromey@redhat.com>
4485 * target-delegates.c: Rebuild.
4486 * target.c (update_current_target): Don't inherit or default
4488 * target.h (struct target_ops) <to_store>: Use
4489 TARGET_DEFAULT_NORETURN.
4491 2014-02-19 Tom Tromey <tromey@redhat.com>
4493 * target-delegates.c: Rebuild.
4494 * target.c (update_current_target): Don't inherit or default
4496 * target.h (struct target_ops) <to_post_attach>: Use
4497 TARGET_DEFAULT_IGNORE.
4499 2014-02-19 Tom Tromey <tromey@redhat.com>
4501 * target-delegates.c: Rebuild.
4502 * target.c (update_current_target): Don't inherit or default
4504 (default_rcmd): New function.
4505 (do_monitor_command): Unconditionally delegate.
4506 * target.h (struct target_ops) <to_rmcd>: Use
4507 TARGET_DEFAULT_FUNC.
4509 2014-02-19 Tom Tromey <tromey@redhat.com>
4511 * target-delegates.c: Rebuild.
4512 * target.c (init_dummy_target): Don't initialize to_attach.
4513 (target_attach): Unconditionally delegate.
4514 * target.h (struct target_ops) <to_attach>: Use
4515 TARGET_DEFAULT_FUNC.
4517 2014-02-19 Tom Tromey <tromey@redhat.com>
4519 * target-delegates.c: Rebuild.
4520 * target.c (target_detach): Unconditionally delegate.
4521 (init_dummy_target): Don't initialize to_detach.
4522 * target.h (struct target_ops) <to_detach>: Use
4523 TARGET_DEFAULT_IGNORE.
4525 2014-02-19 Tom Tromey <tromey@redhat.com>
4527 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4529 (target_augmented_libraries_svr4_read): Add argument.
4530 * target.c (update_current_target): Update.
4531 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4534 2014-02-19 Tom Tromey <tromey@redhat.com>
4536 * target.h (struct target_ops) <to_call_history_range>: Add
4538 * target.c (target_call_history_range): Add argument.
4539 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4541 (record_btrace_call_history_from): Update.
4543 2014-02-19 Tom Tromey <tromey@redhat.com>
4545 * target.h (struct target_ops) <to_call_history_from>: Add
4547 * target.c (target_call_history_from): Add argument.
4548 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4551 2014-02-19 Tom Tromey <tromey@redhat.com>
4553 * target.h (struct target_ops) <to_call_history>: Add argument.
4554 * target.c (target_call_history): Add argument.
4555 * record-btrace.c (record_btrace_call_history): Add 'self'
4558 2014-02-19 Tom Tromey <tromey@redhat.com>
4560 * target.h (struct target_ops) <to_insn_history_range>: Add
4562 * target.c (target_insn_history_range): Add argument.
4563 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4565 (record_btrace_insn_history_from): Update.
4567 2014-02-19 Tom Tromey <tromey@redhat.com>
4569 * target.h (struct target_ops) <to_insn_history_from>: Add
4571 * target.c (target_insn_history_from): Add argument.
4572 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4577 * target.h (struct target_ops) <to_insn_history>: Add argument.
4578 * target.c (target_insn_history): Add argument.
4579 * record-btrace.c (record_btrace_insn_history): Add 'self'
4582 2014-02-19 Tom Tromey <tromey@redhat.com>
4584 * target.h (struct target_ops) <to_goto_record>: Add argument.
4585 * target.c (target_goto_record): Add argument.
4586 * record-full.c (record_full_goto): Add 'self' argument.
4587 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4589 2014-02-19 Tom Tromey <tromey@redhat.com>
4591 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4592 * target.c (target_goto_record_end): Add argument.
4593 * record-full.c (record_full_goto_end): Add 'self' argument.
4594 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target.h (struct target_ops) <to_goto_record_begin>: Add
4600 * target.c (target_goto_record_begin): Add argument.
4601 * record-full.c (record_full_goto_begin): Add 'self' argument.
4602 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4605 2014-02-19 Tom Tromey <tromey@redhat.com>
4607 * target.h (struct target_ops) <to_record_is_replaying>: Add
4609 * target.c (target_record_is_replaying): Add argument.
4610 * record-full.c (record_full_is_replaying): Add 'self' argument.
4611 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4613 (record_btrace_xfer_partial, record_btrace_store_registers)
4614 (record_btrace_prepare_to_store, record_btrace_resume)
4615 (record_btrace_wait, record_btrace_decr_pc_after_break)
4616 (record_btrace_find_new_threads, record_btrace_thread_alive):
4619 2014-02-19 Tom Tromey <tromey@redhat.com>
4621 * target.h (struct target_ops) <to_delete_record>: Add argument.
4622 * target.c (target_delete_record): Add argument.
4623 * record-full.c (record_full_delete): Add 'self' argument.
4625 2014-02-19 Tom Tromey <tromey@redhat.com>
4627 * target.h (struct target_ops) <to_save_record>: Add argument.
4628 * target.c (target_save_record): Add argument.
4629 * record-full.c (record_full_save): Add 'self' argument.
4630 (record_full_save): Add 'self' argument.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target.h (struct target_ops) <to_info_record>: Add argument.
4635 * target.c (target_info_record): Add argument.
4636 * record.c (info_record_command): Add argument.
4637 * record-full.c (record_full_info): Add 'self' argument.
4638 * record-btrace.c (record_btrace_info): Add 'self' argument.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4643 * target.c (target_stop_recording): Add argument.
4644 * record.c (record_stop): Add argument.
4645 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4651 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4652 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4654 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4655 (_initialize_amd64_linux_nat): Use it.
4656 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4657 (_initialize_i386_linux_nat): Use it.
4659 2014-02-19 Tom Tromey <tromey@redhat.com>
4661 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4662 * target.c (target_teardown_btrace): Add argument.
4663 * remote.c (remote_teardown_btrace): Add 'self' argument.
4664 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4666 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4669 2014-02-19 Tom Tromey <tromey@redhat.com>
4671 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4672 * target.c (target_disable_btrace): Add argument.
4673 * remote.c (remote_disable_btrace): Add 'self' argument.
4674 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4676 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4679 2014-02-19 Tom Tromey <tromey@redhat.com>
4681 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4682 * target.c (target_enable_btrace): Add argument.
4683 * remote.c (remote_enable_btrace): Add 'self' argument.
4684 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4686 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4689 2014-02-19 Tom Tromey <tromey@redhat.com>
4691 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4692 (target_can_use_agent): Add argument.
4693 * target.c (update_current_target): Update.
4694 * remote.c (remote_can_use_agent): Add 'self' argument.
4695 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4697 2014-02-19 Tom Tromey <tromey@redhat.com>
4699 * target.h (struct target_ops) <to_use_agent>: Add argument.
4700 (target_use_agent): Add argument.
4701 * target.c (update_current_target): Update.
4702 * remote.c (remote_use_agent): Add 'self' argument.
4703 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4708 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4709 (target_traceframe_info): Add argument.
4710 * target.c (update_current_target): Update.
4711 * remote.c (remote_traceframe_info): Add 'self' argument.
4712 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4714 2014-02-19 Tom Tromey <tromey@redhat.com>
4716 * target.h (target_static_tracepoint_markers_by_strid): Add
4718 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4720 * target.c (update_current_target): Update.
4721 * remote.c (struct target_ops)
4722 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4723 * linux-nat.c (struct target_ops)
4724 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4726 2014-02-19 Tom Tromey <tromey@redhat.com>
4728 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4730 (target_static_tracepoint_marker_at): Add argument.
4731 * target.c (update_current_target): Update.
4732 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4735 2014-02-19 Tom Tromey <tromey@redhat.com>
4737 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4738 (target_set_permissions): Add argument.
4739 * target.c (update_current_target): Update.
4740 * remote.c (remote_set_permissions): Add 'self' argument.
4741 (remote_start_remote): Update.
4743 2014-02-19 Tom Tromey <tromey@redhat.com>
4745 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4746 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4747 (target_get_tib_address): Add argument.
4748 * target.c (update_current_target): Update.
4749 * remote.c (remote_get_tib_address): Add 'self' argument.
4751 2014-02-19 Tom Tromey <tromey@redhat.com>
4753 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4754 (target_set_trace_notes): Add argument.
4755 * target.c (update_current_target): Update.
4756 * remote.c (remote_set_trace_notes): Add 'self' argument.
4758 2014-02-19 Tom Tromey <tromey@redhat.com>
4760 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4762 (target_set_trace_buffer_size): Add argument.
4763 * target.c (update_current_target): Update.
4764 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4766 2014-02-19 Tom Tromey <tromey@redhat.com>
4768 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4770 (target_set_circular_trace_buffer): Add argument.
4771 * target.c (update_current_target): Update.
4772 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4775 2014-02-19 Tom Tromey <tromey@redhat.com>
4777 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4779 (target_set_disconnected_tracing): Add argument.
4780 * target.c (update_current_target): Update.
4781 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4783 2014-02-19 Tom Tromey <tromey@redhat.com>
4785 * target.h (struct target_ops)
4786 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4787 (target_get_min_fast_tracepoint_insn_len): Add argument.
4788 * target.c (update_current_target): Update.
4789 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4796 (target_get_raw_trace_data): Add argument.
4797 * target.c (update_current_target): Update.
4798 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4800 2014-02-19 Tom Tromey <tromey@redhat.com>
4802 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4804 (target_upload_trace_state_variables): Add argument.
4805 * target.c (update_current_target): Update.
4806 * remote.c (remote_upload_trace_state_variables): Add 'self'
4808 (remote_start_remote): Update.
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4814 (target_upload_tracepoints): Add argument.
4815 * target.c (update_current_target): Update.
4816 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4817 (remote_start_remote): Update.
4819 2014-02-19 Tom Tromey <tromey@redhat.com>
4821 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4822 (target_save_trace_data): Add argument.
4823 * target.c (update_current_target): Update.
4824 * remote.c (remote_save_trace_data): Add 'self' argument.
4826 2014-02-19 Tom Tromey <tromey@redhat.com>
4828 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4830 * target.h (struct target_ops)
4831 <to_get_trace_state_variable_value>: Add argument.
4832 (target_get_trace_state_variable_value): Add argument.
4833 * target.c (update_current_target): Update.
4834 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4836 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4838 2014-02-19 Tom Tromey <tromey@redhat.com>
4840 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4841 * target.h (struct target_ops) <to_trace_find>: Add argument.
4842 (target_trace_find): Add argument.
4843 * target.c (update_current_target): Update.
4844 * remote.c (remote_trace_find): Add 'self' argument.
4845 * ctf.c (ctf_trace_find): Add 'self' argument.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4850 (target_trace_stop): Add argument.
4851 * target.c (update_current_target): Update.
4852 * remote.c (remote_trace_stop): Add 'self' argument.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4857 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4859 (target_get_tracepoint_status): Add argument.
4860 * target.c (update_current_target): Update.
4861 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4866 * target.h (struct target_ops) <to_get_trace_status>: Add
4868 (target_get_trace_status): Add argument.
4869 * target.c (update_current_target): Update.
4870 * remote.c (remote_get_trace_status): Add 'self' argument.
4871 (remote_start_remote, remote_can_download_tracepoint): Update.
4872 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4874 2014-02-19 Tom Tromey <tromey@redhat.com>
4876 * target.h (struct target_ops) <to_trace_start>: Add argument.
4877 (target_trace_start): Add argument.
4878 * target.c (update_current_target): Update.
4879 * remote.c (remote_trace_start): Add 'self' argument.
4881 2014-02-19 Tom Tromey <tromey@redhat.com>
4883 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4885 (target_trace_set_readonly_regions): Add argument.
4886 * target.c (update_current_target): Update.
4887 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4894 (target_disable_tracepoint): Add argument.
4895 * target.c (update_current_target): Update.
4896 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4898 2014-02-19 Tom Tromey <tromey@redhat.com>
4900 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4902 (target_enable_tracepoint): Add argument.
4903 * target.c (update_current_target): Update.
4904 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4906 2014-02-19 Tom Tromey <tromey@redhat.com>
4908 * target.h (struct target_ops) <to_download_trace_state_variable>:
4910 (target_download_trace_state_variable): Add argument.
4911 * target.c (update_current_target): Update.
4912 * remote.c (remote_download_trace_state_variable): Add 'self'
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4919 (target_can_download_tracepoint): Add argument.
4920 * target.c (update_current_target): Update.
4921 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4925 * target.h (struct target_ops) <to_download_tracepoint>: Add
4927 (target_download_tracepoint): Add argument.
4928 * target.c (update_current_target): Update.
4929 * remote.c (remote_download_tracepoint): Add 'self' argument.
4931 2014-02-19 Tom Tromey <tromey@redhat.com>
4933 * target.h (struct target_ops) <to_trace_init>: Add argument.
4934 (target_trace_init): Add argument.
4935 * target.c (update_current_target): Update.
4936 * remote.c (remote_trace_init): Add 'self' argument.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4941 * target.c (target_fileio_readlink): Add argument.
4942 * remote.c (remote_hostio_readlink): Add 'self' argument.
4943 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4945 2014-02-19 Tom Tromey <tromey@redhat.com>
4947 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4948 * target.c (target_fileio_unlink): Add argument.
4949 * remote.c (remote_hostio_unlink): Add 'self' argument.
4950 (remote_file_delete): Update.
4951 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4956 * target.c (target_fileio_close): Add argument.
4957 * remote.c (remote_hostio_close): Add 'self' argument.
4958 (remote_hostio_close_cleanup): Update.
4959 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4961 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4963 2014-02-19 Tom Tromey <tromey@redhat.com>
4965 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4966 * target.c (target_fileio_pread): Add argument.
4967 * remote.c (remote_hostio_pread): Add 'self' argument.
4968 (remote_bfd_iovec_pread, remote_file_get): Update.
4969 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4974 * target.c (target_fileio_pwrite): Add argument.
4975 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4976 (remote_file_put): Update.
4977 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4982 * target.c (target_fileio_open): Add argument.
4983 * remote.c (remote_hostio_open): Add 'self' argument.
4984 (remote_bfd_iovec_open): Add 'self' argument.
4985 (remote_file_put): Add 'self' argument.
4986 (remote_file_get): Add 'self' argument.
4987 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4993 (target_can_run_breakpoint_commands): Add argument.
4994 * target.c (update_current_target): Update.
4995 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4997 (remote_insert_breakpoint): Add 'self' argument.
4998 (remote_insert_hw_breakpoint): Add 'self' argument.
4999 (remote_can_run_breakpoint_commands): Add 'self' argument.
5001 2014-02-19 Tom Tromey <tromey@redhat.com>
5003 * target.h (struct target_ops)
5004 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5005 (target_supports_evaluation_of_breakpoint_conditions): Add
5007 * target.c (update_current_target): Update.
5008 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5010 (remote_insert_breakpoint): Add 'self' argument.
5011 (remote_insert_hw_breakpoint): Add 'self' argument.
5012 (remote_supports_cond_breakpoints): Add 'self' argument.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5018 (target_supports_string_tracing): Add argument.
5019 * target.c (update_current_target): Update.
5020 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5022 2014-02-19 Tom Tromey <tromey@redhat.com>
5024 * target.h (struct target_ops)
5025 <to_supports_disable_randomization>: Add argument.
5026 * target.c (find_default_supports_disable_randomization): Add
5028 (target_supports_disable_randomization): Add argument.
5029 (find_default_supports_disable_randomization): Add 'self'
5031 * remote.c (extended_remote_supports_disable_randomization): Add
5033 (remote_supports_disable_randomization): Add 'self' argument.
5034 (extended_remote_create_inferior): Update.
5035 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target.h (struct target_ops)
5041 <to_supports_enable_disable_tracepoint>: Add argument.
5042 (target_supports_enable_disable_tracepoint): Add argument.
5043 * target.c (update_current_target): Update.
5044 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5049 * target.h (struct target_ops) <to_supports_multi_process>: Add
5051 (target_supports_multi_process): Add argument.
5052 * target.c (update_current_target): Update.
5053 * remote.c (remote_supports_multi_process): Add 'self' argument.
5054 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5056 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target.h (struct target_ops) <to_execution_direction>: Add
5063 (target_execution_direction): Add argument.
5064 * target.c (default_execution_direction): Add 'self' argument.
5065 * record-full.c (record_full_execution_direction): Add 'self'
5068 2014-02-19 Tom Tromey <tromey@redhat.com>
5070 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5072 (target_can_execute_reverse): Add argument.
5073 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5074 * record-full.c (record_full_can_execute_reverse): Add 'self'
5076 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5079 2014-02-19 Tom Tromey <tromey@redhat.com>
5081 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5082 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5084 (target_get_ada_task_ptid): Add argument.
5085 * target.c (update_current_target): Update.
5086 (default_get_ada_task_ptid): Add 'self' argument.
5087 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5088 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5089 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5091 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5093 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5095 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5097 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5098 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5101 2014-02-19 Tom Tromey <tromey@redhat.com>
5103 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5104 (target_goto_bookmark): Add argument.
5105 * target.c (dummy_goto_bookmark): Add 'self' argument.
5106 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5108 2014-02-19 Tom Tromey <tromey@redhat.com>
5110 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5111 (target_get_bookmark): Add argument.
5112 * target.c (dummy_get_bookmark): Add 'self' argument.
5113 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5119 (target_make_corefile_notes): Add argument.
5120 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5121 * procfs.c (procfs_make_note_section): Add 'self' argument.
5122 (procfs_make_note_section): Add 'self' argument.
5123 (procfs_make_note_section): Add 'self' argument.
5124 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5126 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5127 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5128 * exec.c (exec_make_note_section): Add 'self' argument.
5129 (exec_make_note_section): Add 'self' argument.
5131 2014-02-19 Tom Tromey <tromey@redhat.com>
5133 * target.h (struct target_ops) <to_find_memory_regions>: Add
5135 (target_find_memory_regions): Add argument.
5136 * target.c (dummy_find_memory_regions): Add 'self' argument.
5137 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5138 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5139 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5140 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5141 * exec. (exec_do_find_memory_regions): New global.
5142 (exec_set_find_memory_regions): Rewrite.
5143 (exec_find_memory_regions): New function.
5144 (init_exec_ops): Use exec_find_memory_regions.
5146 2014-02-19 Tom Tromey <tromey@redhat.com>
5148 * target.h (struct target_ops) <to_supports_non_stop>: Add
5150 * target.c (find_default_supports_non_stop): Add argument.
5151 (target_supports_non_stop): Add argument.
5152 (find_default_supports_non_stop): Add 'self' argument.
5153 * remote.c (remote_supports_non_stop): Add 'self' argument.
5154 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5156 2014-02-19 Tom Tromey <tromey@redhat.com>
5158 * target.h (struct target_ops) <to_log_command>: Add argument.
5159 (target_log_command): Add argument.
5160 * serial.h (serial_log_command): Add 'self' argument.
5161 * serial.c (serial_log_command): Add 'self' argument.
5163 2014-02-19 Tom Tromey <tromey@redhat.com>
5165 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5166 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5168 (target_pid_to_exec_file): Add argument.
5169 * target.c (debug_to_pid_to_exec_file): Add argument.
5170 (update_current_target): Update.
5171 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5172 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5173 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5174 (linux_handle_extended_wait): Update.
5175 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5176 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5177 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5178 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5180 2014-02-19 Tom Tromey <tromey@redhat.com>
5182 * target.h (struct target_ops) <to_rcmd>: Add argument.
5183 (target_rcmd): Add argument.
5184 * target.c (debug_to_rcmd): Add argument.
5185 (update_current_target, do_monitor_command): Update.
5186 * remote.c (remote_rcmd): Add 'self' argument.
5187 * monitor.c (monitor_rcmd): Add 'self' argument.
5189 2014-02-19 Tom Tromey <tromey@redhat.com>
5191 * windows-nat.c (windows_stop): Add 'self' argument.
5192 * target.h (struct target_ops) <to_stop>: Add argument.
5193 * target.c (target_stop): Add argument.
5194 (debug_to_stop): Add argument.
5195 (update_current_target): Update.
5196 * remote.c (remote_stop): Add 'self' argument.
5197 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5198 (gdbsim_cntrl_c): Update.
5199 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5200 * procfs.c (procfs_stop): Add 'self' argument.
5201 * nto-procfs.c (procfs_stop): Add 'self' argument.
5202 * monitor.c (monitor_stop): Add 'self' argument.
5203 (monitor_open): Update.
5204 * linux-nat.c (linux_nat_stop): Add argument.
5205 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5206 * gnu-nat.c (gnu_stop): Add 'self' argument.
5207 * darwin-nat.c (darwin_stop): Add 'self' argument.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_thread_name>: Add argument.
5212 * target.c (target_thread_name): Add argument.
5213 (update_current_target): Update.
5214 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5216 2014-02-19 Tom Tromey <tromey@redhat.com>
5218 * target.h (struct target_ops) <to_extra_thread_info>: Add
5220 (target_extra_thread_info): Add argument.
5221 * target.c (update_current_target): Update.
5222 * remote.c (remote_threads_extra_info): Add 'self' argument.
5223 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5225 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5226 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5227 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5229 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5231 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5233 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5236 2014-02-19 Tom Tromey <tromey@redhat.com>
5238 * target.h (struct target_ops) <to_program_signals>: Add argument.
5239 * target.c (target_program_signals): Add argument.
5240 * remote.c (remote_program_signals): Add 'self' argument.
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5245 * target.c (target_pass_signals): Add argument.
5246 * remote.c (remote_pass_signals): Add 'self' argument.
5247 (remote_start_remote): Update.
5248 * procfs.c (procfs_pass_signals): Add 'self' argument.
5249 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5250 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5251 (linux_nat_create_inferior, linux_nat_attach): Update.
5253 2014-02-19 Tom Tromey <tromey@redhat.com>
5255 * windows-nat.c (windows_can_run): Add 'self' argument.
5256 * target.h (struct target_ops) <to_can_run>: Add argument.
5257 (target_can_run): Add argument.
5258 * target.c (debug_to_can_run): Add argument.
5259 (update_current_target): Update.
5260 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5261 * inf-child.c (inf_child_can_run): Add 'self' argument.
5262 * go32-nat.c (go32_can_run): Add 'self' argument.
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target.h (struct target_ops) <to_has_exited>: Add argument.
5267 (target_has_exited): Add argument.
5268 * target.c (debug_to_has_exited): Add argument.
5269 (update_current_target): Update.
5271 2014-02-19 Tom Tromey <tromey@redhat.com>
5273 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5275 (target_set_syscall_catchpoint): Add argument.
5276 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5278 * target.c (update_current_target): Update.
5280 2014-02-19 Tom Tromey <tromey@redhat.com>
5282 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5284 (target_remove_exec_catchpoint): Add argument.
5285 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5286 (update_current_target): Update.
5287 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5294 (target_insert_exec_catchpoint): Add argument.
5295 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5296 (update_current_target): Update.
5297 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5300 2014-02-19 Tom Tromey <tromey@redhat.com>
5302 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5304 (target_remove_vfork_catchpoint): Add argument.
5305 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5306 (update_current_target): Update.
5307 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5310 2014-02-19 Tom Tromey <tromey@redhat.com>
5312 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5314 (target_insert_vfork_catchpoint): Add argument.
5315 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5316 (update_current_target): Update.
5317 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5324 (target_remove_fork_catchpoint): Add argument.
5325 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5326 (update_current_target): Update.
5327 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5334 (target_insert_fork_catchpoint): Add argument.
5335 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5336 (update_current_target): Update.
5337 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5340 2014-02-19 Tom Tromey <tromey@redhat.com>
5342 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5344 (target_post_startup_inferior): Add argument.
5345 * target.c (debug_to_post_startup_inferior): Add argument.
5346 (update_current_target): Update.
5347 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5349 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5351 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5353 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5355 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5357 (super_post_startup_inferior): Likewise.
5358 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5360 (super_post_startup_inferior): Likewise.
5361 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5362 Add 'self' argument.
5363 (super_post_startup_inferior): Likewise.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * target.h (struct target_ops) <to_load>: Add argument.
5368 * target.c (target_load): Add argument.
5369 (debug_to_load): Add argument.
5370 (update_current_target): Update.
5371 * remote.c (remote_load): Add 'self' argument.
5372 * remote-sim.c (gdbsim_load): Add 'self' argument.
5373 * remote-mips.c (mips_load): Add 'self' argument.
5374 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5375 * monitor.c (monitor_load): Add 'self' argument.
5376 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5381 (target_terminal_info): Add argument.
5382 * target.c (debug_to_terminal_info): Add argument.
5383 (default_terminal_info): Likewise.
5384 * inflow.c (child_terminal_info): Add 'self' argument.
5385 * inferior.h (child_terminal_info): Add 'self' argument.
5386 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5392 (target_terminal_save_ours): Add argument.
5393 * target.c (debug_to_terminal_save_ours): Add argument.
5394 (update_current_target): Update.
5395 * inflow.c (terminal_save_ours): Add 'self' argument.
5396 * inferior.h (terminal_save_ours): Add 'self' argument.
5398 2014-02-19 Tom Tromey <tromey@redhat.com>
5400 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5401 (target_terminal_ours): Add argument.
5402 * target.c (debug_to_terminal_ours): Add argument.
5403 (update_current_target): Update.
5404 * remote.c (remote_terminal_ours): Add 'self' argument.
5405 (remote_close): Update.
5406 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5407 * inflow.c (terminal_ours): Add 'self' argument.
5408 * inferior.h (terminal_ours): Add 'self' argument.
5409 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5411 2014-02-19 Pedro Alves <palves@redhat.com>
5412 Tom Tromey <tromey@redhat.com>
5414 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5416 (target_terminal_ours_for_output): Add argument.
5417 * target.c (debug_to_terminal_ours_for_output): Add argument.
5418 (update_current_target): Update.
5419 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5420 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5421 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5423 2014-02-19 Tom Tromey <tromey@redhat.com>
5425 * target.h (struct target_ops) <to_terminal_inferior>: Add
5427 * target.c (target_terminal_inferior): Add argument.
5428 (update_current_target): Update.
5429 * remote.c (remote_terminal_inferior): Add 'self' argument.
5430 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5431 * inflow.c (terminal_inferior): Add 'self' argument.
5432 * inferior.h (terminal_inferior): Add 'self' argument.
5433 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5434 (go32_terminal_inferior): Add 'self' argument.
5436 2014-02-19 Tom Tromey <tromey@redhat.com>
5438 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5439 (target_terminal_init): Add argument.
5440 * target.c (debug_to_terminal_init): Add argument.
5441 (update_current_target): Update.
5442 * inflow.c (terminal_init_inferior): Add 'self' argument.
5443 * inferior.h (terminal_init_inferior): Add 'self' argument.
5444 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5445 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5447 2014-02-19 Tom Tromey <tromey@redhat.com>
5449 * target.h (struct target_ops)
5450 <to_can_accel_watchpoint_condition>: Add argument.
5451 (target_can_accel_watchpoint_condition): Add argument.
5452 * target.c (debug_to_can_accel_watchpoint_condition): Add
5454 (update_current_target): Update.
5455 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5458 2014-02-19 Tom Tromey <tromey@redhat.com>
5460 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5462 (target_region_ok_for_hw_watchpoint): Add argument.
5463 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5464 (default_region_ok_for_hw_watchpoint): Add argument.
5465 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5466 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5468 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5470 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5472 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5474 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5476 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5478 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5479 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5481 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5482 Add 'self' argument.
5484 2014-02-19 Tom Tromey <tromey@redhat.com>
5486 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5488 (target_insert_watchpoint): Add argument.
5489 * target.c (debug_to_insert_watchpoint): Add argument.
5490 (update_current_target): Update.
5491 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5492 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5493 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5494 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5495 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5496 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5498 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5499 (procfs_insert_hw_watchpoint): Add 'self' argument.
5500 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5502 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5504 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5506 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5507 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5509 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5512 2014-02-19 Tom Tromey <tromey@redhat.com>
5514 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5516 (target_remove_watchpoint): Add argument.
5517 * target.c (debug_to_remove_watchpoint): Add argument.
5518 (update_current_target): Update.
5519 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5520 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5521 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5522 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5523 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5524 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5526 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5527 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5529 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5531 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5533 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5534 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5536 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5543 (target_remove_hw_breakpoint): Add argument.
5544 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5545 (update_current_target): Update.
5546 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5547 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5549 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5550 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5552 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5555 2014-02-19 Tom Tromey <tromey@redhat.com>
5557 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5559 (target_insert_hw_breakpoint): Add argument.
5560 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5561 (update_current_target): Update.
5562 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5563 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5565 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5566 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5567 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5569 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5572 2014-02-19 Tom Tromey <tromey@redhat.com>
5574 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5576 (target_can_use_hardware_watchpoint): Add argument.
5577 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5578 (update_current_target): Update.
5579 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5581 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5583 * remote.c (remote_check_watch_resources): Add 'self' argument.
5584 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5585 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5587 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5588 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5590 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5592 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5594 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5596 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5598 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5600 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5601 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5603 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.h (struct target_ops) <to_post_attach>: Add argument.
5609 (target_post_attach): Add argument.
5610 * target.c (debug_to_post_attach): Add argument.
5611 (update_current_target): Update.
5612 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5613 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5614 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5615 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5616 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * windows-nat.c (windows_close): Add 'self' argument.
5621 * tracepoint.c (tfile_close): Add 'self' argument.
5622 * target.h (struct target_ops) <to_close>: Add argument.
5623 * target.c (target_close): Add argument.
5624 (update_current_target): Update.
5625 * remote.c (remote_close): Add 'self' argument.
5626 * remote-sim.c (gdbsim_close): Add 'self' argument.
5627 * remote-mips.c (mips_close): Add 'self' argument.
5628 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5629 * record-full.c (record_full_close): Add 'self' argument.
5630 * record-btrace.c (record_btrace_close): Add 'self' argument.
5631 * monitor.h (monitor_close): Add 'self' argument.
5632 * monitor.c (monitor_close): Add 'self' argument.
5633 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5634 * linux-nat.c (linux_nat_close): Add argument.
5635 * go32-nat.c (go32_close): Add 'self' argument.
5636 * exec.c (exec_close_1): Add 'self' argument.
5637 * ctf.c (ctf_close): Add 'self' argument.
5638 * corelow.c (core_close): Add 'self' argument.
5639 (core_close_cleanup): Update.
5640 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5641 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * remote.c (remote_load): New function.
5646 (init_remote_ops): Use it.
5648 2014-02-19 Tom Tromey <tromey@redhat.com>
5650 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5652 * common/linux-btrace.h (linux_supports_btrace): Update.
5653 * remote.c (remote_supports_btrace): Add "self" argument.
5654 * target-delegates.c: Rebuild.
5655 * target.c (target_supports_btrace): Remove.
5656 * target.h (struct target_ops) <to_supports_btrace>: Add
5657 target_ops argument.
5658 (target_supports_btrace): New define.
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * record-full.c (record_full_beneath_to_resume_ops)
5663 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5664 (record_full_beneath_to_wait)
5665 (record_full_beneath_to_store_registers_ops)
5666 (record_full_beneath_to_store_registers)
5667 (record_full_beneath_to_xfer_partial_ops)
5668 (record_full_beneath_to_xfer_partial)
5669 (record_full_beneath_to_insert_breakpoint_ops)
5670 (record_full_beneath_to_insert_breakpoint)
5671 (record_full_beneath_to_remove_breakpoint_ops)
5672 (record_full_beneath_to_remove_breakpoint)
5673 (record_full_beneath_to_stopped_by_watchpoint)
5674 (record_full_beneath_to_stopped_data_address)
5675 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5676 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5677 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5678 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5679 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5680 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5681 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5682 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5683 (record_full_resume, record_full_wait_1)
5684 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5685 (record_full_store_registers, record_full_xfer_partial)
5686 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5687 (record_full_async, record_full_core_xfer_partial): Use target
5689 * target-delegates.c: Rebuild.
5690 * target.c (current_xfer_partial): Remove.
5691 (update_current_target): Do not INHERIT or de_fault
5692 to_insert_breakpoint, to_remove_breakpoint,
5693 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5694 to_is_async_p, to_async. Do not set to_xfer_partial field.
5695 (default_xfer_partial): Simplify.
5696 (current_xfer_partial): Remove.
5697 (target_wait, target_resume): Simplify.
5698 (find_default_can_async_p, find_default_is_async_p): Update.
5699 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5700 to_xfer_partial, to_stopped_by_watchpoint,
5701 to_stopped_data_address.
5702 (target_store_registers): Simplify.
5703 (forward_target_remove_breakpoint)
5704 (forward_target_insert_breakpoint): Remove.
5705 (target_remove_breakpoint, target_insert_breakpoint)
5706 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5707 * target.h (struct target_ops) <to_resume, to_wait,
5708 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5709 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5710 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5712 (forward_target_remove_breakpoint)
5713 (forward_target_insert_breakpoint): Remove.
5714 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5716 (record_btrace_insert_breakpoint): Delegate directly.
5718 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * target-delegates.c: New file.
5722 * target.c: Include target-delegates.c.
5723 (init_dummy_target): Call install_dummy_methods.
5724 (complete_target_initialization): Call install_delegators.
5725 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5726 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5727 * make-target-delegates: New file.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * record.c (find_record_target): Use find_target_at.
5732 * target.c (find_target_at): New function.
5733 * target.h (find_target_at): Declare.
5735 2014-02-19 Tom Tromey <tromey@redhat.com>
5737 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5739 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5741 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5742 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5744 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5746 * linux-nat.c (save_sigtrap): Update.
5747 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5748 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5749 (linux_nat_close): Update.
5750 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5752 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5754 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5755 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5756 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5757 (tmp_to_async): Add 'ops' argument.
5758 (record_full_stopped_by_watchpoint, record_full_async)
5759 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5761 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5762 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5763 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5764 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5765 (remote_is_async_p, remote_async): Add 'ops' argument.
5766 (remote_stopped_data_address): Update.
5767 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5768 * target.c (update_current_target)
5769 (find_default_can_async_p, find_default_is_async_p): Update.
5770 (init_dummy_target): Update.
5771 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5772 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5773 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5774 (target_can_async_p, target_is_async_p, target_async)
5775 (target_stopped_by_watchpoint): Update.
5777 2014-02-19 Yao Qi <yao@codesourcery.com>
5780 * gdbarch.sh: Remove startup_gdbarch.
5781 * gdbarch.c: Regenerated.
5782 * gdbarch.h: Likewise.
5784 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5786 * rl78-tdep.c (rl78_g10_register_name): New function.
5787 (rl78_return_value): Add g10 support.
5788 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5791 2014-02-17 Doug Evans <xdje42@gmail.com>
5793 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5794 (SUBDIR_GUILE_SRCS): Ditto.
5795 (scm-gsmob.o): Ditto.
5797 2014-02-17 Yao Qi <yao@codesourcery.com>
5799 * gnu-nat.c (ILL_RPC): Declare defined function.
5801 2014-02-17 Yao Qi <yao@codesourcery.com>
5803 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5804 mach_msg_type_number_t.
5805 (gnu_write_inferior): Likewise.
5807 2014-02-17 Yao Qi <yao@codesourcery.com>
5809 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5811 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5812 (inf_validate_procs, inf_signal): Likewise.
5813 (S_exception_raise_request): Likewise.
5814 (do_mach_notify_dead_name): Likewise.
5815 (steal_exc_port): Likewise.
5816 (gnu_read_inferior): Change 'copy_count''s type to
5817 mach_msg_type_number_t.
5818 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5821 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5823 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5824 flag. Adjust all users; in particular...
5825 (gnu_wait): ..., don't decrement its value in here...
5826 (gnu_create_inferior): ..., and instead set the flag in here,
5827 around the startup_inferior call, and call that one with
5828 START_INFERIOR_TRAPS_EXPECTED.
5830 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5831 (ILL_RPC): ... new macro.
5832 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5833 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5834 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5835 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5836 functions with ILL_RPC macro.
5837 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5838 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5839 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5840 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5841 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5842 (S_proc_getlogin_reply, S_proc_getsid_reply)
5843 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5844 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5845 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5846 (S_proc_getnports_reply, S_proc_is_important_reply)
5847 (S_proc_get_code_reply): New stub functions, generated with
5850 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5851 collected the type check structures.
5853 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5855 2014-02-14 Doug Evans <dje@google.com>
5857 * target.c (target_write_partial): Fix result type.
5859 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5861 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5862 the proper offsets to access fpregset_t.
5864 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5866 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5867 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5868 * h8300-tdep.c (setmachinelist): Remove global.
5869 * hppa-tdep.c (hppa_sigtramp): Remove global.
5870 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5871 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5872 * ravenscar-thread.c (update_target_observer): Remove global.
5873 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5875 2014-02-12 Tom Tromey <tromey@redhat.com>
5877 * common/rsp-low.c: Update comments.
5878 * common/rsp-low.h: Update comments.
5880 2014-02-12 Tom Tromey <tromey@redhat.com>
5882 * common/rsp-low.c (convert_ascii_to_int): Remove.
5883 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5885 2014-02-12 Tom Tromey <tromey@redhat.com>
5887 * common/rsp-low.h (unhexify): Don't declare.
5888 * common/rsp-low.c (unhexify): Remove.
5890 2014-02-12 Tom Tromey <tromey@redhat.com>
5892 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5893 * common/rsp-low.c (convert_int_to_ascii): Remove.
5895 2014-02-12 Tom Tromey <tromey@redhat.com>
5897 * common/rsp-low.h (hexify): Don't declare.
5898 * common/rsp-low.c (hexify): Remove.
5900 2014-02-12 Tom Tromey <tromey@redhat.com>
5902 * common/rsp-low.c (hexify): Never take strlen of argument.
5904 2014-02-12 Tom Tromey <tromey@redhat.com>
5906 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5907 * remote.c (extended_remote_run, remote_rcmd)
5908 (remote_download_trace_state_variable, remote_save_trace_data)
5909 (remote_set_trace_notes): Update.
5910 * tracepoint.c (encode_source_string, tfile_write_status)
5911 (tfile_write_uploaded_tsv): Update.
5913 2014-02-12 Tom Tromey <tromey@redhat.com>
5915 * tracepoint.c: Include rsp-low.h.
5916 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5917 * remote.c: Include rsp-low.h.
5918 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5919 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5920 (remote_unescape_input): Move to common/rsp-low.c.
5921 * common/rsp-low.h: New file.
5922 * common/rsp-low.c: New file.
5923 * Makefile.in (SFILES): Add common/rsp-low.c.
5924 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5925 (COMMON_OBS): Add rsp-low.o.
5926 (rsp-low.o): New target.
5928 2014-02-12 Tom Tromey <tromey@redhat.com>
5930 * utils.h: Include print-utils.h.
5931 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5932 (int_string, core_addr_to_string, core_addr_to_string_nz)
5933 (hex_string, hex_string_custom): Don't declare.
5934 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5935 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5936 (hex_string_custom, int_string, core_addr_to_string)
5937 (core_addr_to_string_nz, host_address_to_string): Move to
5938 common/print-utils.c.
5939 * common/print-utils.h: New file.
5940 * common/print-utils.c: New file
5941 * Makefile.in (SFILES): Add common/print-utils.c.
5942 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5943 (COMMON_OBS): Add print-utils.o.
5944 (print-utils.o): New target.
5946 2014-02-12 Tom Tromey <tromey@redhat.com>
5948 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5950 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5952 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5954 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5956 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5957 if a PT_IO ptrace request returns sucessfully but indicates that 0
5958 bytes were transferred.
5960 2014-02-12 Pedro Alves <palves@redhat.com>
5961 Kevin Buettner <kevinb@redhat.com>
5963 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5964 TYPE_INSTANCE_FLAG_CODE_SPACE.
5966 2014-02-12 Pedro Alves <palves@redhat.com>
5968 * h8300-tdep.c (pseudo_from_raw_register)
5969 (raw_from_pseudo_register): New functions.
5970 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5973 2014-02-12 Pedro Alves <palves@redhat.com>
5975 * h8300-tdep.c (h8300_register_sim_regno): New function.
5976 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5977 gdbarch_register_sim_regno hook.
5979 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5981 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5983 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5985 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5987 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5989 * obsd-tdep.h (obsd_init_abi): New prototype.
5990 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5991 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5992 (obsd_init_abi): New functions.
5993 * i386obsd-tdep.c: Include "obsd-tdep.h".
5994 (i386obsd_init_abi): Call obsd_init_abi.
5995 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5996 (amd64obsd_init_abi): Call obsd_init_abi.
5997 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5998 obsd-tdep.c to gdb_target_obs.
6000 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6002 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6003 double float arguments to 16-byte in the argument slots.
6005 2014-02-11 Doug Evans <xdje42@gmail.com>
6007 * configure.ac: Don't crash if pkg-config is not found and guile
6008 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6010 * configure: Regenerate.
6012 2014-02-11 Yao Qi <yao@codesourcery.com>
6014 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6015 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6016 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6017 * gnu-nat.c (gnu_xfer_memory): Likewise.
6018 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6019 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6020 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6021 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6023 2014-02-11 Yao Qi <yao@codesourcery.com>
6025 * target.h (enum target_xfer_error): Rename to ...
6026 (enum target_xfer_status): ... it. New. All users updated.
6027 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6029 (TARGET_XFER_STATUS_ERROR_P): New macro.
6030 (target_xfer_error_to_string): Remove declaration.
6031 (target_xfer_status_to_string): Declare.
6032 (target_xfer_partial_ftype): Adjust it.
6033 (struct target_ops) <to_xfer_partial>: Return
6034 target_xfer_status. Add argument xfered_len. Update
6036 * target.c (target_xfer_error_to_string): Rename to ...
6037 (target_xfer_status_to_string): ... it. New. All callers
6039 (target_read_live_memory): Likewise. Call target_xfer_partial
6040 instead of target_read.
6041 (memory_xfer_live_readonly_partial): Return
6042 target_xfer_status. Add argument xfered_len.
6043 (raw_memory_xfer_partial): Likewise.
6044 (memory_xfer_partial_1): Likewise.
6045 (memory_xfer_partial): Likewise.
6046 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6047 properly. Update debug message.
6048 (default_xfer_partial, current_xfer_partial): Likewise.
6049 (target_write_partial): Likewise.
6050 (target_read_partial): Likewise. All callers updated.
6051 (read_whatever_is_readable): Likewise.
6052 (target_write_with_progress): Likewise.
6053 (target_read_alloc_1): Likewise.
6055 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6056 * auxv.c (procfs_xfer_auxv): Likewise.
6057 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6058 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6059 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6060 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6061 * corefile.c (read_memory): Adjust.
6062 * corelow.c (core_xfer_partial): Likewise.
6063 * ctf.c (ctf_xfer_partial): Likewise.
6064 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6066 (darwin_xfer_partial): Likewise.
6067 * exec.c (section_table_xfer_memory_partial): Likewise. All
6069 (exec_xfer_partial): Likewise.
6070 * exec.h (section_table_xfer_memory_partial): Update
6072 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6074 (gnu_xfer_partial): Likewise.
6075 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6076 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6077 (ia64_hpux_xfer_solib_got): Likewise.
6078 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6079 type of 'partial_len' to ULONGEST.
6080 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6081 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6082 (linux_nat_xfer_partial): Likewise.
6083 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6084 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6085 * monitor.c (monitor_xfer_memory): Likewise.
6086 (monitor_xfer_partial): Likewise.
6087 * procfs.c (procfs_xfer_partial): Likewise.
6088 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6089 * record-full.c (record_full_xfer_partial): Likewise.
6090 (record_full_core_xfer_partial): Likewise.
6091 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6092 (gdbsim_xfer_partial): Likewise.
6093 * remote.c (remote_write_bytes_aux): Likewise. All callers
6095 (remote_write_bytes, remote_read_bytes): Likewise. All
6097 (remote_flash_erase): Likewise. All callers updated.
6098 (remote_write_qxfer): Likewise. All callers updated.
6099 (remote_read_qxfer): Likewise. All callers updated.
6100 (remote_xfer_partial): Likewise.
6101 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6102 (rs6000_xfer_shared_libraries): Likewise.
6103 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6104 (sol_thread_xfer_partial): Likewise.
6105 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6106 (sparc_xfer_partial): Likewise.
6107 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6109 (spu_xfer_partial): Likewise.
6110 * spu-multiarch.c (spu_xfer_partial): Likewise.
6111 * tracepoint.c (tfile_xfer_partial): Likewise.
6112 * windows-nat.c (windows_xfer_memory): Likewise.
6113 (windows_xfer_shared_libraries): Likewise.
6114 (windows_xfer_partial): Likewise.
6115 * valprint.c: Replace 'target_xfer_error' with
6116 'target_xfer_status' in comments.
6118 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6120 Checked in by Joel Brobecker <brobecker@adacore.com>.
6121 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6123 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6125 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6126 function parameters.
6128 2014-02-10 Will Newton <will.newton@linaro.org>
6130 * elfread.c (elf_rel_plt_read): Look for a .got section if
6131 looking up .got.plt fails.
6132 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6133 on address passed to elf_gnu_ifunc_record_cache.
6134 (elf_gnu_ifunc_resolve_addr): Likewise.
6135 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6137 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6139 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6140 (X_RETTURN): New macro.
6141 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6143 * sparc64-tdep.c (sparc64_init_abi): Hook
6144 sparc_in_function_epilogue_p.
6146 2014-02-10 Gary Benson <gbenson@redhat.com>
6148 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6149 Rename name_matcher to symbol_matcher.
6151 2014-02-10 Gary Benson <gbenson@redhat.com>
6153 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6154 Use expand_symtabs_file_matcher_ftype and
6155 expand_symtabs_symbol_matcher_ftype.
6157 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6159 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6160 (struct ada_symbol_cache): New.
6161 (ada_free_symbol_cache): Forward declare.
6162 (struct ada_pspace_data): New.
6163 (ada_pspace_data_handle): New static global.
6164 (get_ada_pspace_data, ada_pspace_data_cleanup)
6165 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6166 (cache_space, cache): Delete, now folded inside struct
6168 (ada_get_symbol_cache): New function.
6169 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6171 (_initialize_ada_language): Remove initialization of cache_space.
6172 Move call to observer_attach_inferior_exit up, grouping it
6173 with the other observer registrations inside this function.
6174 Rename command to be more general. Add call to
6175 register_program_space_data_with_cleanup.
6177 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6179 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6180 ada_new_objfile_observer.
6181 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6182 (_initialize_tasks): Update uses of ada_new_objfile_observer
6183 and ada_tasks_normal_stop_observer.
6185 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6187 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6188 returned by the 'Length attribute to integer.
6190 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6192 * ada-lang.c (_initialize_ada_language): Initialize
6193 cache_space obstack.
6195 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6197 * ada-lang.c (HASH_SIZE): New macro.
6198 (struct cache_entry): New type.
6199 (cache_space, cache): New static globals.
6200 (ada_clear_symbol_cache, find_entry): New functions.
6201 (lookup_cached_symbol, cache_symbol): Implement.
6202 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6203 (_initialize_ada_language): Attach ada_new_objfile_observer
6204 and ada_free_objfile_observer.
6206 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6208 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6209 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6210 struct block * parameter.
6211 (ada_lookup_symbol_list_worker): Constify local variable "block".
6212 Remove cast which is no longer necessary.
6214 2014-02-10 Doug Evans <xdje42@gmail.com>
6216 Add Guile as an extension language.
6217 * NEWS: Mention Guile scripting.
6218 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6219 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6220 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6221 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6222 (CLIBS): Add GUILE_LIBS.
6223 (install-guile): New rule.
6224 (guile.o): New rule.
6225 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6226 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6227 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6228 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6229 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6230 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6231 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6232 * configure.ac: New option --with-guile.
6233 * configure: Regenerate.
6234 * config.in: Regenerate.
6235 * auto-load.c: Remove #include "python/python.h". Add #include
6236 "gdb/section-scripts.h".
6237 (source_section_scripts): Handle Guile scripts.
6238 (_initialize_auto_load): Add name of Guile objfile script to
6239 scripts-directory help text.
6240 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6241 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6242 (struct breakpoint): New member scm_bp_object.
6243 * defs.h (enum command_control_type): New value guile_control.
6244 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6246 (show_user): Update comment.
6247 (_initialize_cli_cmds): Update help text for "show user". Update help
6248 text for max-user-call-depth.
6249 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6251 (multi_line_command_p): Add guile_control.
6252 (print_command_lines): Handle guile_control.
6253 (execute_control_command, recurse_read_control_structure): Ditto.
6254 (process_next_line): Recognize "guile" commands.
6255 * disasm.c (gdb_disassemble_info): Make non-static.
6256 * disasm.h: #include "dis-asm.h".
6257 (struct gdbarch): Add forward decl.
6258 (gdb_disassemble_info): Declare.
6259 * extension.c: #include "guile/guile.h".
6260 (extension_languages): Add guile.
6261 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6262 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6263 * gdbtypes.c (get_unsigned_type_max): New function.
6264 (get_signed_type_minmax): New function.
6265 * gdbtypes.h (get_unsigned_type_max): Declare.
6266 (get_signed_type_minmax): Declare.
6267 * guile/README: New file.
6268 * guile/guile-internal.h: New file.
6269 * guile/guile.c: New file.
6270 * guile/guile.h: New file.
6271 * guile/scm-arch.c: New file.
6272 * guile/scm-auto-load.c: New file.
6273 * guile/scm-block.c: New file.
6274 * guile/scm-breakpoint.c: New file.
6275 * guile/scm-disasm.c: New file.
6276 * guile/scm-exception.c: New file.
6277 * guile/scm-frame.c: New file.
6278 * guile/scm-gsmob.c: New file.
6279 * guile/scm-iterator.c: New file.
6280 * guile/scm-lazy-string.c: New file.
6281 * guile/scm-math.c: New file.
6282 * guile/scm-objfile.c: New file.
6283 * guile/scm-ports.c: New file.
6284 * guile/scm-pretty-print.c: New file.
6285 * guile/scm-safe-call.c: New file.
6286 * guile/scm-string.c: New file.
6287 * guile/scm-symbol.c: New file.
6288 * guile/scm-symtab.c: New file.
6289 * guile/scm-type.c: New file.
6290 * guile/scm-utils.c: New file.
6291 * guile/scm-value.c: New file.
6292 * guile/lib/gdb.scm: New file.
6293 * guile/lib/gdb/boot.scm: New file.
6294 * guile/lib/gdb/experimental.scm: New file.
6295 * guile/lib/gdb/init.scm: New file.
6296 * guile/lib/gdb/iterator.scm: New file.
6297 * guile/lib/gdb/printing.scm: New file.
6298 * guile/lib/gdb/types.scm: New file.
6299 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6300 (VPATH): Add $(GUILE_SRCDIR).
6301 (GUILE_DIR): New variable.
6302 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6303 (all): Add stamp-guile dependency.
6304 (stamp-guile): New rule.
6305 (clean-guile, install-guile, uninstall-guile): New rules.
6306 (install-only): Add install-guile dependency.
6307 (uninstall): Add uninstall-guile dependency.
6308 (clean): Add clean-guile dependency.
6310 2014-02-09 Doug Evans <xdje42@gmail.com>
6312 Revert this patch (which I approved, mea culpa).
6314 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6316 * Makefile.in (all-lib): Remove.
6317 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6319 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6321 Fix Python stack corruption.
6322 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6325 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6327 * Makefile.in (all-lib): Remove.
6328 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6330 2014-02-07 Doug Evans <dje@google.com>
6332 * extension-priv.h (extension_language_script_ops): Add comment.
6333 (extension_language_ops): Add comment.
6334 (active_ext_lang_state): Fix typo in comment.
6336 2014-02-07 Pedro Alves <palves@redhat.com>
6338 PR breakpoints/16292
6339 * infrun.c (handle_signal_stop) <signal arrives while stepping
6340 over a breakpoint>: Switch back to the stepping thread.
6342 2014-02-07 Yao Qi <yao@codesourcery.com>
6344 * target.c (target_xfer_partial): Return zero if LEN is zero.
6346 2014-02-07 Yao Qi <yao@codesourcery.com>
6348 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6349 (ld_so_xfer_auxv): Likewise.
6350 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6351 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6352 * corelow.c (core_xfer_partial): Likewise.
6353 * ctf.c (ctf_xfer_partial): Likewise.
6354 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6355 (darwin_xfer_partial): Likewise.
6356 * exec.c (exec_xfer_partial): Likewise.
6357 * gnu-nat.c (gnu_xfer_partial): Likewise.
6358 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6359 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6360 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6361 * linux-nat.c (linux_xfer_siginfo): Likewise.
6362 (linux_proc_xfer_spu): Likewise.
6363 * procfs.c (procfs_xfer_partial): Likewise.
6364 * record-full.c (record_full_xfer_partial): Likewise.
6365 (record_full_core_xfer_partial): Likewise.
6366 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6367 * remote.c (remote_write_qxfer): Likewise.
6368 (remote_write_qxfer, remote_read_qxfer): Likewise.
6369 (remote_xfer_partial): Likewise.
6370 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6371 (rs6000_xfer_shared_libraries): Likewise.
6372 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6373 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6374 (spu_xfer_partial): Likewise.
6375 * target.c (memory_xfer_partial_1): Likewise.
6376 * tracepoint.c (tfile_xfer_partial): Likewise.
6377 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6378 (windows_xfer_partial): Likewise.
6380 2014-02-07 Yao Qi <yao@codesourcery.com>
6382 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6384 (core_xfer_shared_libraries_aix): Likewise.
6385 * gdbarch.c, gdbarch.h: Regenerated.
6386 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6387 ULONGEST. Change 'len_avail' type to ULONGEST.
6388 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6389 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6391 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6393 2014-02-07 Yao Qi <yao@codesourcery.com>
6395 * corefile.c (memory_error): Get 'exception' from ERR and pass
6396 'exception' to throw_error.
6398 2014-02-06 Doug Evans <xdje42@gmail.com>
6400 * configure.ac (libpython checking): Remove all but python.o from
6401 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6402 * configure: Regenerate.
6404 * Makefile.in (SFILES): Add extension.c.
6405 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6406 (COMMON_OBS): Add extension.o.
6407 * extension.h: New file.
6408 * extension-priv.h: New file.
6409 * extension.c: New file.
6411 * python/python-internal.h: #include "extension.h".
6412 (gdbpy_auto_load_enabled): Declare.
6413 (gdbpy_apply_val_pretty_printer): Declare.
6414 (gdbpy_apply_frame_filter): Declare.
6415 (gdbpy_preserve_values): Declare.
6416 (gdbpy_breakpoint_cond_says_stop): Declare.
6417 (gdbpy_breakpoint_has_cond): Declare.
6418 (void source_python_script_for_objfile): Delete.
6419 * python/python.c: #include "extension-priv.h".
6420 Delete inclusion of "observer.h".
6421 (extension_language_python): Moved here and renamed from
6422 script_language_python in py-auto-load.c.
6423 Redefined to be of type extension_language_defn.
6424 (python_extension_script_ops): New global.
6425 (python_extension_ops): New global.
6426 (struct python_env): New member previous_active.
6427 (restore_python_env): Call restore_active_ext_lang.
6428 (ensure_python_env): Call set_active_ext_lang.
6429 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6431 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6433 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6435 (gdbpy_eval_from_control_command): Renamed from
6436 eval_python_from_control_command, made static. New arg extlang.
6437 (gdbpy_source_script) Renamed from source_python_script, made static.
6439 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6440 result to int. New arg extlang.
6441 (gdbpy_source_objfile_script): Renamed from
6442 source_python_script_for_objfile, made static. New arg extlang.
6443 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6444 static. New args extlang, extlang_printers. Change result type to
6446 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6447 static. New arg extlang. Rename arg printers to extlang_printers
6448 and change type to ext_lang_type_printers *.
6449 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6450 static. Replace argument arg with extlang, extlang_printers.
6451 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6452 (!HAVE_PYTHON, source_python_script): Delete.
6453 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6454 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6455 (!HAVE_PYTHON, start_type_printers): Delete.
6456 (!HAVE_PYTHON, apply_type_printers): Delete.
6457 (!HAVE_PYTHON, free_type_printers): Delete.
6458 (_initialize_python): Delete call to observer_attach_before_prompt.
6459 (finalize_python): Set/restore active extension language.
6460 (gdbpy_finish_initialization) Renamed from
6461 finish_python_initialization, made static. New arg extlang.
6462 (gdbpy_initialized): New function.
6463 * python/python.h: #include "extension.h". Delete #include
6464 "value.h", "mi/mi-cmds.h".
6465 (extension_language_python): Declare.
6466 (GDBPY_AUTO_FILE_NAME): Delete.
6467 (enum py_bt_status): Moved to extension.h and renamed to
6469 (enum frame_filter_flags): Moved to extension.h.
6470 (enum py_frame_args): Moved to extension.h and renamed to
6471 ext_lang_frame_args.
6472 (finish_python_initialization): Delete.
6473 (eval_python_from_control_command): Delete.
6474 (source_python_script): Delete.
6475 (apply_val_pretty_printer): Delete.
6476 (apply_frame_filter): Delete.
6477 (preserve_python_values): Delete.
6478 (gdbpy_script_language_defn): Delete.
6479 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6480 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6482 * auto-load.c: #include "extension.h".
6483 (GDB_AUTO_FILE_NAME): Delete.
6484 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6485 (script_language_gdb): Delete, moved to extension.c and renamed to
6486 extension_language_gdb.
6487 (source_gdb_script_for_objfile): Delete.
6488 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6489 (loaded_script): Change type of language member to
6490 struct extension_language_defn *.
6491 (init_loaded_scripts_info): Initialize
6492 unsupported_script_warning_printed.
6493 (maybe_add_script): Make static. Change type of language arg to
6494 struct extension_language_defn *.
6495 (clear_section_scripts): Reset unsupported_script_warning_printed.
6496 (auto_load_objfile_script_1): Rewrite to use extension language API.
6497 (auto_load_objfile_script): Make public. Remove support-compiled-in
6498 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6499 (source_section_scripts): Rewrite to use extension language API.
6500 (load_auto_scripts_for_objfile): Rewrite to use
6501 auto_load_scripts_for_objfile.
6502 (collect_matching_scripts_data): Change type of language member to
6503 struct extension_language_defn *.
6504 (auto_load_info_scripts): Change type of language arg to
6505 struct extension_language_defn *.
6506 (unsupported_script_warning_print): New function.
6507 (script_not_found_warning_print): Make static.
6508 (_initialize_auto_load): Rewrite construction of scripts-directory
6510 * auto-load.h (struct objfile): Add forward decl.
6511 (struct script_language): Delete.
6512 (struct auto_load_pspace_info): Add forward decl.
6513 (struct extension_language_defn): Add forward decl.
6514 (maybe_add_script): Delete.
6515 (auto_load_objfile_script): Declare.
6516 (script_not_found_warning_print): Delete.
6517 (auto_load_info_scripts): Update prototype.
6518 (auto_load_gdb_scripts_enabled): Declare.
6519 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6520 auto_load_python_scripts_enabled and made public.
6521 (script_language_python): Delete, moved to python.c.
6522 (gdbpy_script_language_defn): Delete.
6523 (info_auto_load_python_scripts): Update to use
6524 extension_language_python.
6526 * breakpoint.c (condition_command): Replace call to
6527 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6528 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6529 with call to breakpoint_ext_lang_cond_says_stop.
6530 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6531 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6532 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6533 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6535 (local_setattro): Print name of extension language with existing
6538 * valprint.c (val_print, value_print): Update to call
6539 apply_ext_lang_val_pretty_printer.
6540 * cp-valprint.c (cp_print_value): Update call to
6541 apply_ext_lang_val_pretty_printer.
6542 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6543 (gdbpy_apply_val_pretty_printer): Renamed from
6544 apply_val_pretty_printer. New arg extlang.
6545 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6547 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6548 extension language API.
6549 * cli/cli-script.c (execute_control_command): Update to call
6550 eval_ext_lang_from_control_command.
6552 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6553 enum ext_lang_bt_status values. Update call to
6554 apply_ext_lang_frame_filter.
6555 (mi_cmd_stack_list_locals): Ditto.
6556 (mi_cmd_stack_list_args): Ditto.
6557 (mi_cmd_stack_list_variables): Ditto.
6558 * mi/mi-main.c: Delete #include "python/python-internal.h".
6559 Add #include "extension.h".
6560 (mi_cmd_list_features): Replace reference to python internal variable
6561 gdb_python_initialized with call to ext_lang_initialized_p.
6563 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6564 Update to use enum ext_lang_frame_args. Update to call
6565 apply_ext_lang_frame_filter.
6566 * python/py-framefilter.c (extract_sym): Update to use enum
6568 (extract_value, py_print_type, py_print_value): Ditto.
6569 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6570 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6571 (py_print_frame): Ditto.
6572 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6573 New arg extlang. Update to use enum ext_lang_bt_status.
6575 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6576 finish_python_initialization. Replace with call to
6577 finish_ext_lang_initialization.
6579 * typeprint.c (do_free_global_table): Update to call
6580 free_ext_lang_type_printers.
6581 (create_global_typedef_table): Update to call
6582 start_ext_lang_type_printers.
6583 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6584 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6585 (type_print_options): Change type of global_printers from "void *"
6586 to "struct ext_lang_type_printers *".
6588 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6589 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6590 (gdbpy_preserve_values): Renamed from preserve_python_values.
6592 (!HAVE_PYTHON, preserve_python_values): Delete.
6594 * utils.c (quit_flag): Delete, moved to extension.c.
6595 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6598 * eval.c: Delete #include "python/python.h".
6599 * main.c: Delete #include "python/python.h".
6601 * defs.h: Update comment.
6603 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6607 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6609 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6612 2014-02-05 Yao Qi <yao@codesourcery.com>
6614 * remote.c (remote_pass_signals): Remove local 'buf' and use
6616 (remote_program_signals): Likewise.
6618 2014-02-05 Yao Qi <yao@codesourcery.com>
6620 * ctf.c: Include "inferior.h" and "gdbthread.h".
6621 (CTF_PID): A new macro.
6622 (ctf_open): Call inferior_appeared and add_thread_silent.
6623 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6624 (ctf_thread_alive): New function.
6625 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6627 2014-02-05 Yao Qi <yao@codesourcery.com>
6631 2013-05-24 Yao Qi <yao@codesourcery.com>
6633 * tracepoint.c (TFILE_PID): Remove.
6634 (tfile_open): Don't add thread and inferior.
6635 (tfile_close): Don't set 'inferior_ptid'. Don't call
6636 exit_inferior_silent.
6637 (tfile_thread_alive): Remove.
6638 (init_tfile_ops): Don't set field 'to_thread_alive' of
6641 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6643 * remote.c (remote_start_remote): Call remote_check_symbols even
6644 if only symbol-file (not file) has been given.
6646 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6648 * gdbarch.sh (skip_entrypoint): New callback.
6649 * gdbarch.c, gdbarch.h: Regenerate.
6650 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6651 * infrun.c (fill_in_stop_func): Likewise.
6652 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6653 (ppc_elfv2_elf_make_msymbol_special): New function.
6654 (ppc_elfv2_skip_entrypoint): Likewise.
6655 (ppc_linux_init_abi): Install them for ELFv2.
6657 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6659 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6660 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6661 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6662 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6663 structures returned in GPRs.
6665 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6667 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6668 offset to the stack parameter list for the ELFv2 ABI.
6670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6672 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6673 set_gdbarch_convert_from_func_ptr_addr and
6674 set_gdbarch_elf_make_msymbol_special for ELFv1.
6675 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6676 function descriptors on ELFv1.
6677 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6678 set up r12 at function entry.
6680 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6682 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6683 (struct gdbarch_tdep): New member elf_abi.
6685 * rs6000-tdep.c: Include "elf/ppc64.h".
6686 (rs6000_gdbarch_init): Detect ELF ABI version.
6688 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6690 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6691 within a register pair holding a DFP 128-bit value on little-endian.
6692 (ppc64_sysv_abi_return_value_base): Likewise.
6693 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6694 (dfp_pseudo_register_write): Likewise.
6696 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6698 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6699 offset on little-endian when passing _Decimal32.
6700 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6702 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6704 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6705 of the overlapped FP register within the VSX register on little-
6707 (efpr_pseudo_register_write): Likewise.
6709 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6711 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6712 offset on little-endian when passing small structures.
6714 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6716 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6717 (struct ppc64_sysv_argpos): New data structure.
6718 (ppc64_sysv_abi_push_float): Remove.
6719 (ppc64_sysv_abi_push_val): New function.
6720 (ppc64_sysv_abi_push_integer): Likewise.
6721 (ppc64_sysv_abi_push_freg): Likewise.
6722 (ppc64_sysv_abi_push_vreg): Likewise.
6723 (ppc64_sysv_abi_push_param): Likewise.
6724 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6725 (ppc64_sysv_abi_return_value_base): New function.
6726 (ppc64_sysv_abi_return_value): Refactor to use it.
6728 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6730 * NEWS: Document new target powerpc64le-*-linux*.
6732 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6734 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6735 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6737 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6738 register set used in ELF core dumps. Add floating-point register set.
6740 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6742 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6743 dwarf2_to_gdb[] table using symbolic constants. Adjust
6744 penultimate entry from number representing the PC register
6745 to symbolic constant representing the MDR register. Add
6746 constant for the PC register to the end of the table.
6748 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6750 * bsd-kvm.c: Include <sys/param.h>
6752 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6754 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6756 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6758 * ada-lang.h (clear_ada_sym_cache): Delete.
6760 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6762 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6764 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6766 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6767 the sigreturn register save area only if the syscall is
6770 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6772 * valops.c (value_slice): Minor reformatting.
6774 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6776 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6778 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6780 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6782 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6783 (ada_ignore_descriptive_types_p): New static global.
6784 (find_parallel_type_by_descriptive_type): Return immediately
6785 if ada_ignore_descriptive_types_p is set.
6786 (_initialize_ada_language): Register new commands "maintenance
6787 set ada", "maintenance show ada", "maintenance set ada
6788 ignore-descriptive-types" and "maintenance show ada
6789 ignore-descriptive-types".
6790 * NEWS: Add entry for new "maint ada set/show
6791 ignore-descriptive-types" commands.
6793 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6795 * record-btrace.c (record_btrace_close): Call btrace_teardown
6798 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6800 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6803 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6805 * ada-typeprint (type_is_full_subrange_of_target_type):
6807 (print_range): Add parameter bounds_prefered_p. If not set,
6808 try printing range types using the name of their base type.
6809 (print_range_type): Add parameter bounds_prefered_p.
6810 Use it in call to print_range.
6811 (print_array_type, ada_print_type): Update calls to print_range
6812 and print_range_type.
6814 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6816 * ada-typeprint.c (print_array_type, print_choices, print_range)
6817 (print_range_bound, print_dynamic_range_bound, print_range_type):
6820 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6822 * ada-typeprint.c (print_range): Add missing empty line
6823 after local declaration.
6825 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6827 * ada-valprint.c (print_optional_low_bound): Get index_type's
6828 target type for as long as it is a TYPE_CODE_RANGE.
6830 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6832 * procfs.c (procfs_make_note_section): Remove assertion and
6835 2014-01-24 Yao Qi <yao@codesourcery.com>
6837 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6838 * corelow.c (get_core_siginfo): Likewise.
6840 2014-01-24 Yao Qi <yao@codesourcery.com>
6842 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6843 ULONGEST. Don't check 'len' is negative.
6844 (remote_write_bytes): Change type of 'len' to ULONGEST.
6846 2014-01-23 Tom Tromey <tromey@redhat.com>
6849 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6850 Handle exception from frame.block.
6851 (FrameVars.fetch_frame_locals): Likewise.
6853 2014-01-23 Tom Tromey <tromey@redhat.com>
6856 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6857 on a NULL pointer. Move "goto error" to correct place.
6859 2014-01-23 Tom Tromey <tromey@redhat.com>
6862 * python/py-framefilter.c (apply_frame_filter): Call
6863 ensure_python_env after computing gdbarch.
6865 2014-01-23 Yao Qi <yao@codesourcery.com>
6867 * target.c (raw_memory_xfer_partial): Change argument type
6868 from void * to gdb_byte *.
6869 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6871 2014-01-22 Doug Evans <dje@google.com>
6873 New gdbserver option --debug-format=timestamp.
6876 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6878 * syscalls/s390x-linux.xml: New file.
6879 * syscalls/s390-linux.xml: New file.
6880 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6881 (XML_SYSCALL_FILENAME_S390X): Likewise.
6882 (op_svc): New enum value for SVC opcode.
6883 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6884 (s390_linux_get_syscall_number): New function.
6885 (s390_gdbarch_init): Register '*get_syscall_number' and the
6886 syscall xml file name.
6887 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6888 "s390-linux.xml" and "s390x-linux.xml".
6889 * NEWS: Announce new feature.
6891 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6893 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6895 2014-01-22 Pedro Alves <palves@redhat.com>
6897 * xtensa-config.c: Include defs.h.
6899 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6901 * common/common-utils.h: Add "ARI:" comment beside __func__
6904 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6906 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6907 documentation a bit.
6909 2014-01-21 Roland McGrath <mcgrathr@google.com>
6911 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6912 * configure: Regenerate.
6913 * aclocal.m4: Regenerate.
6914 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6915 New substituted variables.
6916 (install-strip): New target.
6917 (INSTALL_SCRIPT): New substituted variable.
6918 (FLAGS_TO_PASS): Add it.
6919 (install-only): Use $(INSTALL_SCRIPT) rather than
6920 $(INSTALL_PROGRAM) for gcore.
6922 2014-01-20 Tom Tromey <tromey@redhat.com>
6924 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6927 2014-01-20 Tom Tromey <tromey@redhat.com>
6929 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6930 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6931 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6932 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6933 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6934 (struct cmd_list_element) <flags>: Remove.
6935 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6936 doc_allocated>: New fields.
6937 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6939 * maint.c (maintenance_do_deprecate): Update.
6940 * top.c (execute_command): Update.
6942 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6944 * xtensa-linux-nat.c: Include asm/ptrace.h.
6946 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6948 * Makefile.in (SFILES): Add d-support.c.
6949 (COMMON_OBS): Add d-support.o.
6950 * d-lang.h (d_parse_symbol): Add comment, now defined in
6952 * d-lang.c (parse_call_convention)
6953 (parse_attributes, parse_function_types)
6954 (parse_function_args, parse_type, parse_identifier)
6955 (call_convention_p, d_parse_symbol): Move functions to ...
6956 * d-support.c: ... New file.
6958 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6960 * d-lang.h (d_parse_symbol): Add declaration.
6961 * d-lang.c (extract_identifiers)
6962 (extract_type_info): Remove functions.
6963 (parse_call_convention, parse_attributes)
6964 (parse_function_types, parse_function_args)
6965 (parse_type, parse_identifier, call_convention_p)
6966 (d_parse_symbol): New functions.
6967 (d_demangle): Use d_parse_symbol to demangle D symbols.
6969 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6971 * d-lang.h (struct builtin_d_type): New data type.
6972 (builtin_d_type): Add declaration.
6973 * d-lang.c (d_language_arch_info, build_d_types)
6974 (builtin_d_type): New functions.
6975 (enum d_primitive_types): New data type.
6976 (d_language_defn): Change c_language_arch_info to
6977 d_language_arch_info.
6978 (d_type_data): New static variable.
6979 (_initialize_d_language): Initialize d_type_data.
6981 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6983 * d-lang.h (d_main_name): Add declaration.
6984 * d-lang.c (d_main_name): New function.
6985 * symtab.c (find_main_name): Add call to d_main_name.
6987 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6989 * d-lang.c (d_language_defn): Change macro_expansion_c to
6992 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6994 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6996 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6998 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6999 gdb_exception" declaration.
7000 * remote.c (getpkt_or_notif_sane): Likewise.
7002 2014-01-17 Doug Evans <dje@google.com>
7004 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7005 function, contents of dirnames_to_char_ptr_vec_append moved here.
7006 (delim_string_to_char_ptr_vec): New function.
7007 (dirnames_to_char_ptr_vec_append): Rewrite.
7008 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7010 2014-01-17 Doug Evans <dje@google.com>
7012 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7014 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7015 #include "common-utils.h".
7016 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7017 * common/vec.h (VEC_ASSERT_PASS): Update.
7018 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7019 (MACH_CHECK_ERROR): Update.
7021 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7023 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7025 * gdbarch.h: Regenerate.
7027 2014-01-16 Tom Tromey <tromey@redhat.com>
7029 * value.c (struct value) <regnum>: Move earlier.
7031 2014-01-16 Tom Tromey <tromey@redhat.com>
7033 * remote.c (extended_remote_create_inferior): Rename from
7034 extended_remote_create_inferior_1. Add "ops" argument. Remove
7037 2014-01-16 Pedro Alves <palves@redhat.com>
7039 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7040 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7043 2014-01-16 Doug Evans <dje@google.com>
7045 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7049 * btrace.h (btrace_thread_flag): New.
7050 (struct btrace_thread_info) <flags>: New.
7051 * record-btrace.c (record_btrace_resume_thread)
7052 (record_btrace_find_thread_to_move, btrace_step_no_history)
7053 (btrace_step_stopped, record_btrace_start_replaying)
7054 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7055 (record_btrace_find_resume_thread): New.
7056 (record_btrace_resume, record_btrace_wait): Extend.
7057 (record_btrace_can_execute_reverse): New.
7058 (record_btrace_open): Fail in non-stop mode.
7059 (record_btrace_set_replay): Split into this, ...
7060 (record_btrace_stop_replaying): ... this, ...
7061 (record_btrace_clear_histories): ... and this.
7062 (init_record_btrace_ops): Init to_can_execute_reverse.
7063 * NEWS: Announce it.
7065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7067 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7068 (forward_target_decr_pc_after_break)
7069 (target_decr_pc_after_break): New.
7070 * target.c (forward_target_decr_pc_after_break)
7071 (target_decr_pc_after_break): New.
7072 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7073 instead of gdbarch_decr_pc_after_break.
7074 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7075 instead of gdbarch_decr_pc_after_break.
7076 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7077 instead of gdbarch_decr_pc_after_break.
7078 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7079 instead of gdbarch_decr_pc_after_break.
7080 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7081 instead of gdbarch_decr_pc_after_break.
7082 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7083 instead of gdbarch_decr_pc_after_break.
7085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7087 * btrace.c: Include regcache.h.
7088 (btrace_add_pc): New.
7089 (btrace_enable): Call btrace_add_pc.
7090 (btrace_is_empty): New.
7091 * btrace.h (btrace_is_empty): New.
7092 * record-btrace.c (require_btrace, record_btrace_info): Call
7095 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7097 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7098 Support delta reads.
7099 (linux_disable_btrace): Change return type.
7100 * common/linux-btrace.h (linux_read_btrace): Change parameters
7101 and return type to allow error reporting. Update users.
7102 (linux_disable_btrace): Change return type. Update users.
7103 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7105 (btrace_error): New.
7106 (btrace_block) <begin>: Comment on BEGIN == 0.
7107 * btrace.c (btrace_compute_ftrace): Start from the end of
7109 (btrace_stitch_trace, btrace_clear_history): New.
7110 (btrace_fetch): Read delta trace, return if replaying.
7111 (btrace_clear): Move clear history code to btrace_clear_history.
7112 (parse_xml_btrace): Throw an error if parsing failed.
7113 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7114 and return type to allow error reporting.
7115 (target_read_btrace): Change parameters and return type to allow
7117 * target.c (target_read_btrace): Update.
7118 * remote.c (remote_read_btrace): Support delta reads. Pass
7120 * NEWS: Announce it.
7122 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7124 * record.h (record_btrace_frame_unwind)
7125 (record_btrace_tailcall_frame_unwind): New declarations.
7126 * dwarf2-frame: Include record.h
7127 (dwarf2_frame_cfa): Throw an error for btrace frames.
7128 * record-btrace.c: Include hashtab.h.
7129 (btrace_get_bfun_name): New.
7130 (btrace_call_history): Call btrace_get_bfun_name.
7131 (struct btrace_frame_cache): New.
7133 (bfcache_hash, bfcache_eq, bfcache_new): New.
7134 (btrace_get_frame_function): New.
7135 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7136 (record_btrace_frame_this_id): Compute own id.
7137 (record_btrace_frame_prev_register): Provide PC, throw_error
7138 for all other registers.
7139 (record_btrace_frame_sniffer): Detect btrace frames.
7140 (record_btrace_tailcall_frame_sniffer): New.
7141 (record_btrace_frame_dealloc_cache): New.
7142 (record_btrace_frame_unwind): Add new functions.
7143 (record_btrace_tailcall_frame_unwind): New.
7144 (_initialize_record_btrace): Allocate cache.
7145 * btrace.c (btrace_clear): Call reinit_frame_cache.
7146 * NEWS: Announce it.
7148 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7150 * record-btrace.c (record_btrace_set_replay)
7151 (record_btrace_goto_begin, record_btrace_goto_end)
7152 (record_btrace_goto): New.
7153 (init_record_btrace_ops): Initialize them.
7154 * NEWS: Announce it.
7156 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7158 * record-btrace.c (record_btrace_find_new_threads)
7159 (record_btrace_thread_alive): New.
7160 (init_record_btrace_ops): Initialize to_find_new_threads and
7163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7165 * record-btrace.c (record_btrace_resume): New.
7166 (record_btrace_wait): New.
7167 (init_record_btrace_ops): Initialize to_wait and to_resume.
7169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7171 * record-btrace.c (record_btrace_xfer_partial)
7172 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7173 (record_btrace_allow_memory_access): New.
7174 (init_record_btrace_ops): Initialize new methods.
7175 * target.c (raw_memory_xfer_partial): Bail out if target reports
7176 that this memory is not available.
7178 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7180 * target.h (target_ops) <to_insert_breakpoint>
7181 <to_remove_breakpoint>: Add target_ops parameter.
7182 (forward_target_insert_breakpoint): New.
7183 (forward_target_remove_breakpoint): New.
7184 (memory_remove_breakpoint, memory_insert_breakpoint):
7185 Add target_ops parameter.
7186 * target.c (target_insert_breakpoint): Split into this and ...
7187 (forward_target_insert_breakpoint): ... this.
7188 (target_remove_breakpoint): Split into this and ...
7189 (forward_target_remove_breakpoint): ... this.
7190 (debug_to_insert_breakpoint): Add target_ops parameter.
7191 Call forward_target_insert_breakpoint.
7192 (debug_to_remove_breakpoint): Add target_ops parameter.
7193 Call forward_target_remove_breakpoint.
7194 (update_current_target): Do not inherit or default to_insert_breakpoint
7195 and to_remove_breakpoint.
7196 * corelow.c (ignore): Add target_ops parameter.
7197 * exec.c (ignore): Add target_ops parameter.
7198 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7199 Add target_ops parameter.
7200 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7201 Add target_ops parameter.
7202 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7203 Add target_ops parameter.
7204 * record-full.c (record_full_beneath_to_insert_breakpoint)
7205 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7206 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7207 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7208 (record_full_core_remove_breakpoint): Add target_ops parameter.
7210 (record_full_beneath_to_insert_breakpoint_ops)
7211 (record_full_beneath_to_remove_breakpoint_ops)
7212 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7213 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7214 tmp_to_remove_breakpoint_ops,
7215 record_full_beneath_to_insert_breakpoint_ops, and
7216 record_full_beneath_to_remove_breakpoint_ops.
7217 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7218 (m32r_remove_breakpoint): Add target_ops parameter.
7219 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7220 Add target_ops parameter.
7221 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7222 Add target_ops parameter.
7224 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7225 Markus Metzger <markus.t.metzger@intel.com>
7227 * record-btrace.c: Include frame-unwind.h.
7228 (record_btrace_frame_unwind_stop_reason)
7229 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7230 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7232 (init_record_btrace_ops): Install it.
7234 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7236 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7239 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7241 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7244 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 * frame-unwind.c: Include target.h.
7247 (frame_unwind_try_unwinder): New function with code from ...
7248 (frame_unwind_find_by_frame): ... here. New variable
7249 unwinder_from_target, call also target_get_unwinder)
7250 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7251 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7252 * target.h (struct target_ops): New fields to_get_unwinder and
7253 to_get_tailcall_unwinder.
7254 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7258 * record-btrace.c (record_btrace_fetch_registers)
7259 (record_btrace_store_registers)
7260 (record_btrace_to_prepare_to_store): New.
7261 (init_record_btrace_ops): Add the above.
7263 2014-01-16 Tom Tromey <tromey@redhat.com>
7265 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7266 * target.h (struct target_ops) <to_prepare_to_store>: Add
7268 (target_prepare_to_store): Add argument.
7269 * target.c (debug_to_prepare_to_store): Add argument.
7270 (update_current_target): Update.
7271 * remote.c (remote_prepare_to_store): Add 'self' argument.
7272 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7273 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7274 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7275 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7277 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7278 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7279 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7280 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7281 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7285 * btrace.h (replay) <replay>: New.
7286 (btrace_is_replaying): New.
7287 * btrace.c (btrace_clear): Free replay iterator.
7288 (btrace_is_replaying): New.
7289 * record-btrace.c (record_btrace_is_replaying): New.
7290 (record_btrace_info): Print insn number if replaying.
7291 (record_btrace_insn_history): Start at replay position.
7292 (record_btrace_call_history): Start at replay position.
7293 (init_record_btrace_ops): Init to_record_is_replaying.
7295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7297 * record-btrace.c (record_btrace_insn_history_range): Include
7299 (record_btrace_insn_history_from): Adjust range.
7300 (record_btrace_call_history_range): Include
7302 (record_btrace_call_history_from): Adjust range.
7303 * NEWS: Announce changes.
7305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7307 * record.h (enum record_print_flag)
7308 <record_print_indent_calls>: New.
7309 * record.c (get_call_history_modifiers): Recognize /c modifier.
7310 (_initialize_record): Document /c modifier.
7311 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7312 Reorder fields. Optionally indent the function name. Update
7314 * NEWS: Announce changes.
7316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7318 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7322 * btrace.c (ftrace_new_function): Start counting at one.
7323 * record-btrace.c (record_btrace_info): Adjust number of calls
7325 * NEWS: Announce it.
7327 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7329 * record-btrace.c (btrace_call_history_insn_range): Print
7330 insn range as [begin, end].
7332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7334 * btrace.h (struct btrace_func_link): New.
7335 (enum btrace_function_flag): New.
7336 (struct btrace_inst): Rename to ...
7337 (struct btrace_insn): ...this. Update all users.
7338 (struct btrace_func) <ibegin, iend>: Remove.
7339 (struct btrace_func_link): New.
7340 (struct btrace_func): Rename to ...
7341 (struct btrace_function): ...this. Update all users.
7342 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7343 (number, level, flags>: New.
7344 (struct btrace_insn_iterator): Rename to ...
7345 (struct btrace_insn_history): ...this.
7347 (struct btrace_insn_iterator, btrace_call_iterator): New.
7348 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7349 (struct btrace_target_info) <begin, end, level>
7350 <insn_history, call_history>: New.
7351 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7352 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7353 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7354 (btrace_call_number, btrace_call_begin, btrace_call_end)
7355 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7356 (btrace_find_function_by_number, btrace_set_insn_history)
7357 (btrace_set_call_history): New.
7358 * btrace.c (btrace_init_insn_iterator)
7359 (btrace_init_func_iterator, compute_itrace): Remove.
7360 (ftrace_print_function_name, ftrace_print_filename)
7361 (ftrace_skip_file): Change
7363 (ftrace_init_func): Remove.
7364 (ftrace_debug): Use new btrace_function fields.
7365 (ftrace_function_switched): Also consider gaining and
7366 losing symbol information).
7367 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7368 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7369 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7371 (ftrace_new_function): Move. Remove debug print.
7372 (ftrace_update_lines, ftrace_update_insns): New.
7373 (ftrace_update_function): Check for call, ret, and jump.
7374 (compute_ftrace): Renamed to ...
7375 (btrace_compute_ftrace): ...this. Rewritten to compute call
7377 (btrace_fetch, btrace_clear): Updated.
7378 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7379 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7380 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7381 (btrace_call_number, btrace_call_begin, btrace_call_end)
7382 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7383 (btrace_find_function_by_number, btrace_set_insn_history)
7384 (btrace_set_call_history): New.
7385 * record-btrace.c (require_btrace): Use new btrace thread
7387 (record_btrace_info, btrace_insn_history)
7388 (record_btrace_insn_history, record_btrace_insn_history_range):
7389 Use new btrace thread info fields and new iterator.
7390 (btrace_func_history_src_line): Rename to ...
7391 (btrace_call_history_src_line): ...this. Use new btrace
7393 (btrace_func_history): Rename to ...
7394 (btrace_call_history): ...this. Use new btrace thread info
7395 fields and new iterator.
7396 (record_btrace_call_history, record_btrace_call_history_range):
7397 Use new btrace thread info fields and new iterator.
7399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7401 * frame.h (frame_id_build_unavailable_stack_special): New.
7402 * frame.c (frame_id_build_unavailable_stack_special): New.
7404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7406 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7407 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7408 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7410 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7411 (i386_insn_is_jump, i386_jmp_p): New.
7412 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7413 insn_is_jump to gdbarch.
7414 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7415 * gdbarch.h: Regenerated.
7416 * gdbarch.c: Regenerated.
7417 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7418 (default_insn_is_jump): New.
7419 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7420 (default_insn_is_jump): New.
7422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7424 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7426 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7427 (btrace_read_type) <btrace_read_new>: Change to ...
7428 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7430 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7432 * common/linux-btrace.c (linux_read_btrace): Free trace from
7435 2014-01-15 Doug Evans <dje@google.com>
7437 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7440 2014-01-15 Tom Tromey <tromey@redhat.com>
7442 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7443 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7444 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7445 (set_objfile_main_name): New function.
7446 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7447 language_of_main>: New fields.
7448 (set_objfile_main_name): Declare.
7449 * symtab.c (find_main_name): Loop over objfiles to find the main
7451 (set_main_name): Now static.
7452 (get_main_info): Add comment.
7453 * symtab.h (set_main_name): Don't declare.
7455 2014-01-15 Tom Tromey <tromey@redhat.com>
7457 * symtab.c (main_progspace_key): New global.
7458 (struct main_info): New.
7459 (name_of_main, language_of_main): Remove.
7460 (get_main_info, main_info_cleanup): New function.
7461 (set_main_name, main_name, main_language): Use get_main_info.
7462 (_initialize_symtab): Initialize main_progspace_key.
7464 2014-01-15 Tom Tromey <tromey@redhat.com>
7466 * dbxread.c (process_one_symbol): Update.
7467 * dwarf2read.c (read_partial_die): Update.
7468 * symfile.c (set_initial_language): Call main_language.
7469 * symtab.c (language_of_main): Now static.
7470 (set_main_name): Add 'lang' parameter.
7471 (find_main_name): Update.
7472 (main_language): New function.
7473 (symtab_observer_executable_changed): Update.
7474 * symtab.h (set_main_name): Update.
7475 (language_of_main): Remove.
7476 (main_language): Declare.
7478 2014-01-15 Tom Tromey <tromey@redhat.com>
7480 * symfile.c (init_entry_point_info): Use new "initialized" field.
7482 * objfiles.h (struct entry_point) <initialized>: New field.
7483 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7484 (struct objfile) <ei>: ...here. Remove.
7485 * objfiles.c (entry_point_address_query): Update.
7487 2014-01-15 Tom Tromey <tromey@redhat.com>
7489 * objfiles.c (entry_point_address_query): Relocate entry point
7491 (objfile_relocate1): Do not relocate entry point address.
7492 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7493 <the_bfd_section_index>: New field.
7494 * symfile.c (init_entry_point_info): Find the entry point's
7497 2014-01-15 Tom Tromey <tromey@redhat.com>
7499 * solib-frv.c (enable_break): Use entry_point_address_query.
7501 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7503 * NEWS: Add note on improved process record-replay on
7504 arm*-linux* targets.
7506 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7508 * arm-tdep.c (enum arm_record_result): New enum.
7509 (arm_record_unsupported_insn): New function.
7510 (arm_record_coproc_data_proc): Removed.
7511 (thumb2_record_ld_st_multiple): New function.
7512 (thumb2_record_ld_st_dual_ex_tbb): New function.
7513 (thumb2_record_data_proc_sreg_mimm): New function.
7514 (thumb2_record_ps_dest_generic): New function.
7515 (thumb2_record_branch_misc_cntrl): New function.
7516 (thumb2_record_str_single_data): New function.
7517 (thumb2_record_ld_mem_hints): New function.
7518 (thumb2_record_ld_word): New function.
7519 (thumb2_record_lmul_lmla_div): New function.
7520 (thumb2_record_decode_insn_handler): New function.
7521 (decode_insn): Add thumb32 instruction handlers.
7523 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7525 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7526 (struct arm_linux_record_tdep): Declare.
7527 (arm_canonicalize_syscall): New function.
7528 (arm_all_but_pc_registers_record): New function.
7529 (arm_linux_syscall_record): New function.
7530 (arm_linux_init_abi): Add syscall recording constructs.
7531 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7532 decoding. (arm_record_coproc_data_proc): Update arm syscall
7534 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7535 <arm_syscall_record>: New field.
7536 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7539 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7541 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7542 register for push instruction recording.
7544 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7546 * arm-tdep.c (thumb_record_misc): Update to correct logical
7547 error while recording ldm, ldmia and pop instructions.
7549 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7551 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7553 2014-01-15 Pedro Alves <palves@redhat.com>
7555 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7556 (go32_resume, go32_fetch_registers, store_register)
7557 (go32_store_registers, go32_prepare_to_store)
7558 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7559 (go32_create_inferior, go32_can_run, go32_terminal_init)
7560 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7563 2014-01-15 Tom Tromey <tromey@redhat.com>
7565 * target.h (async_callback_ftype): New typedef.
7566 (struct target_ops) <to_async>: Use it.
7568 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7570 * python/py-value.c (get_field_type): Remove unnecessary curly
7571 braces for single-statement if block.
7573 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7575 * python/py-type.c (convert_field): Add missing empty line
7578 2014-01-14 Doug Evans <dje@google.com>
7580 * symfile.h (expand_symtabs_matching): Renamed from
7581 expand_partial_symbol_names. Update prototype.
7582 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7583 * symfile.c (expand_symtabs_matching): Renamed from
7584 expand_partial_symbol_names. New args file_matcher, kind.
7585 Rename arg fun to symbol_matcher.
7586 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7587 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7588 ada_expand_partial_symbol_name.
7589 (ada_make_symbol_completion_list): Update to call
7590 expand_symtabs_matching.
7591 (ada_add_global_exceptions): Call expand_symtabs_matching.
7592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7593 call map_symbol_filenames.
7594 * symtab.c (sources_info): Update to call map_symbol_filenames.
7595 (search_symbols): Call expand_symtabs_matching.
7596 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7597 (default_make_symbol_completion_list_break_on): Update to call
7598 expand_symtabs_matching.
7599 (make_source_files_completion_list): Update to call
7600 map_symbol_filenames.
7602 2014-01-14 Doug Evans <dje@google.com>
7604 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7605 (expand_symtabs_symbol_matcher_ftype): New typedef.
7606 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7607 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7608 * symfile.c (expand_partial_symbol_names): Update to use
7609 expand_symtabs_symbol_matcher_ftype.
7610 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7611 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7612 Arg name_matcher renamed to symbol_matcher.
7613 * psymtab.c (recursively_search_psymtabs): Update to use
7614 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7616 (expand_symtabs_matching_via_partial): Update to use
7617 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7618 Arg name_matcher renamed to symbol_matcher.
7620 2014-01-14 Doug Evans <dje@google.com>
7622 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7623 (map_partial_symbol_filenames): Ditto.
7624 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7625 (map_partial_symbol_filenames): Ditto.
7626 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7627 (map_partial_symbol_filenames): Ditto.
7628 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7629 (map_partial_symbol_filenames): Ditto.
7630 * symtab.c: Delete #include "psymtab.h".
7632 2014-01-14 Pedro Alves <palves@redhat.com>
7633 Tom Tromey <tromey@redhat.com>
7635 * infrun.c (use_displaced_stepping): Use find_record_target
7636 instead of RECORD_IS_USED.
7637 (adjust_pc_after_break): Use record_full_is_used instead of
7639 * record-btrace.c (record_btrace_open): Call record_preopen
7640 instead of checking RECORD_IS_USED.
7641 * record-full.c (record_full_shortname)
7642 (record_full_core_shortname): New globals.
7643 (record_full_is_used): New function.
7644 (find_full_open): Call record_preopen instead of checking
7646 (init_record_full_ops): Set the target's shortname to
7647 record_full_shortname.
7648 (init_record_full_core_ops): Set the target's shortname to
7649 record_full_core_shortname.
7650 * record-full.h (record_full_is_used): Declare.
7651 * record.c (find_record_target): Make extern.
7652 (record_preopen): New function.
7653 * record.h (RECORD_IS_USED): Delete macro.
7654 (find_record_target, record_preopen): Declare functions.
7656 2014-01-14 Yao Qi <yao@codesourcery.com>
7658 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7659 'len''s type to ULONGEST.
7660 (core_xfer_shared_libraries_aix): Likewise.
7661 * gdbarch.c, gdbarch.h: Regenerated.
7662 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7663 Change type of 'len' to ULONGEST.
7664 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7665 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7667 2014-01-14 Yao Qi <yao@codesourcery.com>
7669 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7670 type of 'len' to ULONGEST.
7671 (linux_xfer_osdata_processgroups): Likewise.
7672 (linux_xfer_osdata_threads): Likewise.
7673 (linux_xfer_osdata_fds): Likewise.
7674 (linux_xfer_osdata_isockets): Likewise.
7675 (linux_xfer_osdata_shm): Likewise.
7676 (linux_xfer_osdata_sem): Likewise.
7677 (linux_xfer_osdata_msg): Likewise.
7678 (linux_common_xfer_osdata): Likewise.
7679 (struct osdata_type) <getter>: Likewise.
7680 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7683 2014-01-14 Yao Qi <yao@codesourcery.com>
7685 * target.h (target_xfer_partial_ftype): Update.
7686 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7688 * aix-thread.c (aix_thread_xfer_partial): Change type of
7689 argument 'len' to ULONGEST.
7690 * auxv.c (procfs_xfer_auxv): Likewise.
7691 (ld_so_xfer_auxv): Likewise.
7692 (memory_xfer_auxv): Likewise.
7693 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7694 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7695 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7696 * corelow.c (core_xfer_partial): Likewise.
7697 * ctf.c (ctf_xfer_partial): Likewise.
7698 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7700 (darwin_read_dyld_info): Likewise.
7701 (darwin_xfer_partial): Likewise.
7702 * exec.c (section_table_xfer_memory_partial): Likewise.
7703 (exec_xfer_partial): Likewise.
7704 * exec.h (section_table_xfer_memory_partial): Update
7706 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7707 instead of plongest.
7708 (gnu_xfer_partial): Likewise.
7709 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7710 (ia64_hpux_xfer_solib_got): Likewise.
7711 (ia64_hpux_xfer_partial): Likewise.
7712 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7713 * inf-ptrace.c (inf_ptrace_xfer_partial):
7714 * inf-ttrace.c (inf_ttrace_xfer_partial):
7715 * linux-nat.c (linux_xfer_siginfo): Likewise.
7716 (linux_nat_xfer_partial): Likewise.
7717 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7718 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7719 * monitor.c (monitor_xfer_memory): Likewise.
7720 (monitor_xfer_partial): Likewise.
7721 * procfs.c (procfs_xfer_partial): Likewise.
7722 * record-full.c (record_full_xfer_partial): Likewise.
7723 (record_full_core_xfer_partial): Likewise.
7724 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7725 instead of plongest.
7726 (gdbsim_xfer_partial): Likewise.
7727 * remote.c (remote_xfer_partial): Likewise.
7728 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7729 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7731 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7732 (rs6000_xfer_shared_libraries): Likewise.
7733 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7734 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7735 (sparc_xfer_partial): Likewise.
7736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7737 (spu_xfer_partial): Likewise.
7738 * spu-multiarch.c (spu_xfer_partial): Likewise.
7739 * target.c (target_read_live_memory): Likewise.
7740 (memory_xfer_live_readonly_partial): Likewise.
7741 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7742 (target_xfer_partial, default_xfer_partial): Likewise.
7743 (current_xfer_partial): Likewise.
7744 * tracepoint.c (tfile_xfer_partial): Likewise.
7745 * windows-nat.c (windows_xfer_memory): Likewise. Call
7746 pulongest instead of plongest.
7747 (windows_xfer_partial): Likewise.
7748 (windows_xfer_shared_libraries): Likewise.
7750 2014-01-14 Yao Qi <yao@codesourcery.com>
7752 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7753 target_xfer_partial_ftype.
7755 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7759 * valops.c (value_struct_elt_bitpos): New function
7760 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7761 object to 'None' if the field name is an empty string ("").
7762 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7763 attribute to look for a field when 'name' is 'None'.
7764 (get_field_type): New function
7766 2014-01-13 Doug Evans <dje@google.com>
7769 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7770 (try_open_dwop_file): Ditto.
7771 * gdb_bfd.c: #include "vec.h".
7772 (bfdp): New typedef.
7773 (struct gdb_bfd_data): New member included_bfds.
7774 (gdb_bfd_unref): Unref all included bfds.
7775 (gdb_bfd_record_inclusion): New function.
7776 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7778 2014-01-13 Tom Tromey <tromey@redhat.com>
7780 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7782 2014-01-13 Tom Tromey <tromey@redhat.com>
7784 * defs.h (use_windows): Remove.
7785 * gdb.c (main): Update.
7786 * main.c (captured_main, gdb_main): Update.
7787 * main.h (struct captured_main_args) <use_windows>: Remove.
7788 * top.c (use_windows): Remove.
7790 2014-01-13 Tom Tromey <tromey@redhat.com>
7792 * defs.h (deprecated_flush_hook): Remove.
7794 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7797 * linux-thread-db.c (try_thread_db_load): Add parameter
7798 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7799 (try_thread_db_load_from_pdir_1): Move it there from here.
7800 (try_thread_db_load_from_sdir): Update caller.
7801 (try_thread_db_load_from_dir): Move it there from here.
7803 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7805 * regformats/regdat.sh: Always rewrite the register file.
7807 2014-01-13 Pedro Alves <palves@redhat.com>
7809 * Makefile.in (CHECK_HEADERS): New variable.
7810 (check-headers:): New rule.
7812 2014-01-13 Tom Tromey <tromey@redhat.com>
7814 * cli/cli-setshow.c (do_set_command): Update.
7815 * defs.h (deprecated_set_hook): Remove.
7816 * top.c (deprecated_set_hook): Remove.
7818 2014-01-13 Pedro Alves <palves@redhat.com>
7820 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7821 the tracepoint if the PC is a pseudo-register.
7823 2014-01-13 Tom Tromey <tromey@redhat.com>
7825 * defs.h (XCALLOC): Remove.
7826 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7827 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7828 * dwarf2loc.c (allocate_piece_closure): Likewise.
7829 * elfread.c (elf_symfile_segments): Likewise.
7830 (elf_symfile_segments): Likewise.
7831 * gdbtypes.c (copy_type_recursive): Likewise.
7832 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7833 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7834 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7836 * mt-tdep.c (mt_gdbarch_init): Likewise.
7837 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7839 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7840 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7841 * registry.c (registry_alloc_data): Likewise.
7842 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7843 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7844 * serial.c (serial_fdopen_ops): Likewise.
7845 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7847 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7848 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7851 2014-01-13 Tom Tromey <tromey@redhat.com>
7853 * defs.h (XMALLOC): Remove.
7854 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7855 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7856 * cli-out.c (struct ui_out *): Likewise.
7857 * cli/cli-dump.c (add_dump_command): Likewise.
7858 (add_dump_command): Likewise.
7859 * complaints.c (get_complaints): Likewise.
7860 (find_complaint): Likewise.
7861 * dwarf2-frame.c (execute_cfa_program): Likewise.
7862 * dwarf2read.c (abbrev_table_read_table): Likewise.
7863 * gdbarch.sh: Likewise.
7864 * gdbarch.c: Rebuild.
7865 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7866 * interps.c (interp_new): Likewise.
7867 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7868 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7869 * mi/mi-console.c (mi_console_file_new): Likewise.
7870 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7871 * mi/mi-out.c (mi_out_new): Likewise.
7872 * mi/mi-parse.c (mi_parse): Likewise.
7873 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7874 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7875 * observer.c (xalloc_observer_list_node): Likewise.
7876 * regcache.c (regcache_xmalloc_1): Likewise.
7877 * reggroups.c (reggroup_new): Likewise.
7878 (_initialize_reggroup): Likewise.
7879 * registry.c (register_data_with_cleanup): Likewise.
7880 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7881 * ser-base.c (serial_ttystate): Likewise.
7882 * ser-mingw.c (make_pipe_state): Likewise.
7883 * ser-pipe.c (pipe_open): Likewise.
7884 * serial.c (serial_open): Likewise.
7885 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7886 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7887 (tui_alloc_win_info): Likewise.
7888 (tui_add_content_elements): Likewise.
7889 * tui/tui-file.c (tui_file_new): Likewise.
7890 * tui/tui-out.c (tui_out_new): Likewise.
7891 * ui-file.c (mem_file_new): Likewise.
7892 * ui-out.c (push_level): Likewise.
7893 (make_cleanup_ui_out_end): Likewise.
7894 (append_header_to_list): Likewise.
7895 (ui_out_new): Likewise.
7896 * user-regs.c (user_reg_add_builtin): Likewise.
7898 2014-01-13 Tom Tromey <tromey@redhat.com>
7900 * defs.h (XZALLOC): Remove.
7901 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7902 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7903 (get_ada_tasks_inferior_data): Likewise.
7904 * auto-load.c (get_auto_load_pspace_data): Likewise.
7905 * auxv.c (get_auxv_inferior_data): Likewise.
7906 * bfd-target.c (target_bfd_reopen): Likewise.
7907 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7908 (deprecated_insert_raw_breakpoint): Likewise.
7909 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7910 * corelow.c (core_open): Likewise.
7911 * darwin-nat.c (darwin_check_new_threads): Likewise.
7912 (darwin_attach_pid): Likewise.
7913 * dummy-frame.c (dummy_frame_push): Likewise.
7914 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7915 * dwarf2loc.c (allocate_piece_closure): Likewise.
7916 * elfread.c (elf_symfile_segments): Likewise.
7917 * eval.c (ptrmath_type_p): Likewise.
7918 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7919 * gdbtypes.c (alloc_type_arch): Likewise.
7920 (alloc_type_instance): Likewise.
7921 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7922 * inf-child.c (inf_child_can_use_agent): Likewise.
7923 * inflow.c (get_inflow_inferior_data): Likewise.
7924 * infrun.c (save_infcall_suspend_state): Likewise.
7925 * jit.c (jit_reader_load): Likewise.
7926 (get_jit_objfile_data): Likewise.
7927 (get_jit_program_space_data): Likewise.
7928 (jit_object_open_impl): Likewise.
7929 (jit_symtab_open_impl): Likewise.
7930 (jit_block_open_impl): Likewise.
7931 (jit_frame_sniffer): Likewise.
7932 * linux-fork.c (add_fork): Likewise.
7933 * maint.c (make_command_stats_cleanup): Likewise.
7934 * objfiles.c (get_objfile_pspace_data): Likewise.
7935 * opencl-lang.c (struct lval_closure): Likewise.
7936 * osdata.c (osdata_start_osdata): Likewise.
7937 * progspace.c (new_address_space): Likewise.
7938 (add_program_space): Likewise.
7939 * remote-sim.c (get_sim_inferior_data): Likewise.
7940 * sh-tdep.c (sh_gdbarch_init): Likewise.
7941 * skip.c (Ignore): Likewise.
7942 (skip_delete_command): Likewise.
7943 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7944 (library_list_start_library): Likewise.
7945 (solib_aix_current_sos): Likewise.
7946 * solib-darwin.c (get_darwin_info): Likewise.
7947 (darwin_current_sos): Likewise.
7948 * solib-dsbt.c (get_dsbt_info): Likewise.
7949 * solib-ia64-hpux.c (new_so_list): Likewise.
7950 (ia64_hpux_get_solib_linkage_addr): Likewise.
7951 * solib-spu.c (append_ocl_sos): Likewise.
7952 (spu_current_sos): Likewise.
7953 * solib-svr4.c (get_svr4_info): Likewise.
7954 (svr4_keep_data_in_core): Likewise.
7955 (library_list_start_library): Likewise.
7956 (svr4_default_sos): Likewise.
7957 (svr4_read_so_list): Likewise.
7958 * solib-target.c (library_list_start_library): Likewise.
7959 (solib_target_current_sos): Likewise.
7960 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7961 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7962 * symfile.c (default_symfile_segments): Likewise.
7963 * target-descriptions.c (tdesc_data_init): Likewise.
7964 (tdesc_create_reg): Likewise.
7965 (struct tdesc_type *): Likewise.
7966 (tdesc_create_vector): Likewise.
7967 (tdesc_set_struct_size): Likewise.
7968 (struct tdesc_type *): Likewise.
7969 (tdesc_free_feature): Likewise.
7970 (tdesc_create_feature): Likewise.
7971 * windows-nat.c (windows_add_thread): Likewise.
7972 (windows_make_so): Likewise.
7973 * xml-support.c (gdb_xml_body_text): Likewise.
7974 (gdb_xml_create_parser_and_cleanup): Likewise.
7975 (xml_process_xincludes): Likewise.
7976 * xml-syscall.c (allocate_syscalls_info): Likewise.
7977 (syscall_create_syscall_desc): Likewise.
7979 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7981 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7982 function, with code from i386_stap_parse_special_token.
7983 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7984 (i386_stap_parse_special_token): Move code to the two functions
7987 2014-01-09 Pedro Alves <palves@redhat.com>
7988 Hui Zhu <hui@codesourcery.com>
7991 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7992 bp_err_string. Don't mark the location shlib_disabled if the
7993 error thrown wasn't a generic or memory error. Catch errors
7994 thrown while inserting breakpoints in overlayed code. Output
7995 error message of software breakpoints.
7996 * remote.c (remote_insert_breakpoint): If this breakpoint has
7997 target-side commands but this stub doesn't support Z0 packets,
7998 throw NOT_SUPPORTED_ERROR error.
7999 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8000 * target.h (target_insert_breakpoint): Extend comment.
8001 (target_insert_hw_breakpoint): Add comment.
8003 2014-01-08 Pedro Alves <palves@redhat.com>
8005 * remote.c (remote_add_thread): Add threads silently if starting
8007 (remote_notice_new_inferior): If in all-stop, and starting up,
8008 don't call notice_new_inferior.
8009 (get_current_thread): New function, factored out from ...
8010 (add_current_inferior_and_thread): ... this. Adjust.
8011 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8012 found any thread, then select the remote's current thread as GDB's
8015 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8017 * NEWS: Create a new section for the next release branch.
8018 Rename the section of the current branch, now that it has
8021 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8023 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8024 * version.in: Bump version to 7.7.50.DATE-cvs.
8026 2014-01-08 Yao Qi <yao@codesourcery.com>
8028 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8029 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8030 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8032 2014-01-08 Yao Qi <yao@codesourcery.com>
8034 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8035 return value of bfd_get_filename to symbol_file_add_from_bfd.
8037 2014-01-08 Pierre Muller <muller@sourceware.org>
8040 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8041 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8042 to prim_record_mininal_symbol_and_info.
8043 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8044 in call to prim_record_minimal_symbol_and_info.
8045 (read_pe_exported_syms): Set index field of section_data.
8047 2014-01-07 Andrew Pinski <apinski@cavium.com>
8049 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8050 * features/aarch64.c: Regenerate.
8052 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8054 * target.c (return_null): Define.
8055 (update_current_target): Use it instead of return_zero for
8056 functions that return a pointer.
8058 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8060 * source.c (add_path): Fix check for duplicated paths in the previously
8063 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8065 * ada-lang.c: Remove duplicated include statements.
8066 * alphabsd-nat.c: Ditto.
8067 * amd64-darwin-tdep.c: Ditto.
8068 * amd64fbsd-nat.c: Ditto.
8069 * auto-load.c: Ditto.
8071 * breakpoint.c: Ditto.
8073 * fork-child.c: Ditto.
8074 * gdb_usleep.c: Ditto.
8075 * i386-darwin-tdep.c: Ditto.
8076 * i386fbsd-nat.c: Ditto.
8078 * inferior.c: Ditto.
8080 * linux-nat.c: Ditto.
8081 * linux-tdep.c: Ditto.
8082 * m68kbsd-nat.c: Ditto.
8083 * m68klinux-nat.c: Ditto.
8084 * microblaze-tdep.c: Ditto.
8085 * mips-linux-tdep.c: Ditto.
8086 * mn10300-tdep.c: Ditto.
8087 * nto-tdep.c: Ditto.
8088 * opencl-lang.c: Ditto.
8090 * printcmd.c: Ditto.
8091 * regcache.c: Ditto.
8092 * remote-m32r-sdi.c: Ditto.
8096 * tilegx-linux-nat.c: Ditto.
8097 * tilegx-tdep.c: Ditto.
8098 * tracepoint.c: Ditto.
8100 * vaxbsd-nat.c: Ditto.
8101 * windows-nat.c: Ditto.
8102 * xtensa-tdep.c: Ditto.
8104 2014-01-07 Yao Qi <yao@codesourcery.com>
8106 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8108 2014-01-07 Yao Qi <yao@codesourcery.com>
8109 Joel Brobecker <brobecker@adacore.com>
8111 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8112 (pdc_write_regs): Likewise.
8113 (fetch_regs_kernel_thread): Likewise.
8114 (store_regs_kernel_thread): Likewise.
8116 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8118 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8119 tagged type objects to their actual type.
8121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8123 * ada-valprint.c (print_field_values): Add "language" parameter.
8124 Update calls to print_field_values and print_variant_part.
8125 Pass new parameter "language" in call to val_print instead
8126 of "current_language". Replace call to ada_val_print by call
8128 (print_variant_part): Add "language" parameter.
8129 (ada_val_print_struct_union): Update call to print_field_values.
8131 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8133 * ada-valprint.c (ui_memcpy): Delete.
8134 (ada_print_floating): Update documentation. Add empty line
8135 between between function documentation and implementation.
8136 Delete variable "buffer". Use ui_file_xstrdup in place of
8137 ui_file_put. Minor adjustments following this change.
8139 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8141 * ada-valprint.c (ada_val_print_string): New function,
8142 extracted from ada_val_print_array.
8143 (ada_val_print_array): Replace extracted code by call
8144 to ada_val_print_string followed by a return. Move
8145 "else" branch to the function's top block.
8147 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8149 * ada-valprint.c (ada_val_print_array): Move implementation
8150 down. Rename parameter "offset" and "val" into "offset_aligned"
8151 and "original_value" respectively. Add parameter "offset".
8153 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8155 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8156 re-organizing the code. Change the "???" message printed
8157 when target type is a TYPE_CODE_UNDEF into
8158 "<ref to undefined type>".
8160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8162 * ada-valprint.c (print_record): Delete, implementation inlined...
8163 (ada_val_print_struct_union): ... here. Remove call to
8164 ada_check_typedef in inlined implementation.
8166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8168 * ada-valprint.c (ada_val_print_gnat_array): New function,
8169 extracted from ada_val_print_1;
8170 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8171 (ada_val_print_flt, ada_val_print_struct_union)
8172 (ada_val_print_ref): Likewise.
8173 (ada_val_print_1): Delete variables i and elttype.
8174 Replace extracted-out code by call to corresponding
8177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8179 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8183 * ada-valprint.c (ada_val_print_1): Replace calls to
8184 ada_val_print_1 by calls to val_print.
8186 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8188 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8189 Update calls to self accordingly. Replace calls to c_val_print
8190 by calls to val_print.
8192 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8194 * ada-valprint.c (print_record): Delete declaration.
8195 (adjust_type_signedness, ada_val_print_1): Likewise.
8196 (ada_val_print): Move function implementation down.
8197 (print_variant_part, print_field_values, print_record):
8198 Move function implementation up.
8200 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8202 * python/py-type.c (typy_get_name): New function.
8203 (type_object_getset): Add entry for attribute "name".
8204 * NEWS: Add entry mentioning this new attribute.
8206 2014-01-07 Yao Qi <yao@codesourcery.com>
8208 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8211 2014-01-07 Yao Qi <yao@codesourcery.com>
8213 * gnu-nat.c (info_port_rights): Add qualifier const to
8216 2014-01-07 Yao Qi <yao@codesourcery.com>
8218 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8220 2014-01-07 Yao Qi <yao@codesourcery.com>
8222 * gnu-nat.c (make_inf) Update declaration.
8223 (make_inf): Make it static.
8224 (inf_set_traced): Likewise.
8225 (inf_port_to_thread, inf_task_died_status): Likewise.
8227 2014-01-07 Yao Qi <yao@codesourcery.com>
8229 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8231 2014-01-07 Yao Qi <yao@codesourcery.com>
8233 * gnu-nat.c (_initialize_gnu_nat): Declare.
8235 2014-01-07 Yao Qi <yao@codesourcery.com>
8237 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8239 (struct gdbarch_info) <byte_order>: Change type to
8241 <byte_order_for_code>: Likewise.
8242 * gdbarch.c, gdbarch.h: Regenerated.
8244 2014-01-06 Sasha Smundak <asmundak@google.com>
8246 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8248 2014-01-06 Tom Tromey <tromey@redhat.com>
8250 * doublest.c (convert_doublest_to_floatformat): Use const, not
8252 * somread.c (som_symtab_read): Likewise.
8254 2014-01-07 Hui Zhu <hui@codesourcery.com>
8256 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8257 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8258 (gdb_bfd_fopen): Ditto.
8259 (gdb_bfd_openr): Ditto.
8260 (gdb_bfd_openw): Ditto.
8261 (gdb_bfd_openr_iovec): Ditto.
8262 (gdb_bfd_fdopenr): Ditto.
8263 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8264 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8266 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8268 * symfile-mem.c (symbol_file_add_from_memory): Removed
8269 gdb_bfd_stash_filename.
8271 2014-01-03 Doug Evans <dje@google.com>
8273 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8276 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8278 Update year range in copyright notice of all files.
8280 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8282 * top.c (print_gdb_version): Set copyright year to 2014.
8284 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8286 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8288 For older changes see ChangeLog-2013.
8294 version-control: never