1 2014-05-22 Pedro Alves <palves@redhat.com>
3 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5 (disable_randomization, enum exec_direction_kind)
6 (execution_direction, stop_registers, start_remote)
7 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8 (wait_for_inferior, normal_stop, get_last_target_status)
9 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
10 (insert_step_resume_breakpoint_at_sal)
11 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
12 (set_step_info, print_stop_event, signal_stop_state)
13 (signal_print_state, signal_pass_state, signal_stop_update)
14 (signal_print_update, signal_pass_update)
15 (update_signals_program_target, clear_exit_convenience_vars)
16 (displaced_step_dump_bytes, update_observer_mode)
17 (signal_catch_update, gdb_signal_from_command): Move
19 * infrun.h: ... to this new file.
20 * amd64-tdep.c: Include infrun.h.
21 * annotate.c: Include infrun.h.
22 * arch-utils.c: Include infrun.h.
23 * arm-linux-tdep.c: Include infrun.h.
24 * arm-tdep.c: Include infrun.h.
25 * break-catch-sig.c: Include infrun.h.
26 * breakpoint.c: Include infrun.h.
27 * common/agent.c: Include infrun.h instead of inferior.h.
28 * corelow.c: Include infrun.h.
29 * event-top.c: Include infrun.h.
30 * go32-nat.c: Include infrun.h.
31 * i386-tdep.c: Include infrun.h.
32 * inf-loop.c: Include infrun.h.
33 * infcall.c: Include infrun.h.
34 * infcmd.c: Include infrun.h.
35 * infrun.c: Include infrun.h.
36 * linux-fork.c: Include infrun.h.
37 * linux-nat.c: Include infrun.h.
38 * linux-thread-db.c: Include infrun.h.
39 * monitor.c: Include infrun.h.
40 * nto-tdep.c: Include infrun.h.
41 * procfs.c: Include infrun.h.
42 * record-btrace.c: Include infrun.h.
43 * record-full.c: Include infrun.h.
44 * remote-m32r-sdi.c: Include infrun.h.
45 * remote-mips.c: Include infrun.h.
46 * remote-notif.c: Include infrun.h.
47 * remote-sim.c: Include infrun.h.
48 * remote.c: Include infrun.h.
49 * reverse.c: Include infrun.h.
50 * rs6000-tdep.c: Include infrun.h.
51 * s390-linux-tdep.c: Include infrun.h.
52 * solib-irix.c: Include infrun.h.
53 * solib-osf.c: Include infrun.h.
54 * solib-svr4.c: Include infrun.h.
55 * target.c: Include infrun.h.
56 * top.c: Include infrun.h.
57 * windows-nat.c: Include infrun.h.
58 * mi/mi-interp.c: Include infrun.h.
59 * mi/mi-main.c: Include infrun.h.
60 * python/py-threadevent.c: Include infrun.h.
62 2014-05-22 Pedro Alves <palves@redhat.com>
64 * infrun.c (handle_inferior_event): Store the exit code for
65 --return-child-result here, instead of ...
66 (print_exited_reason): ... here.
68 2014-05-21 Pedro Alves <palves@redhat.com>
71 * gdbthread.h (struct thread_control_state): New field
73 * infrun.c (follow_fork): Copy the new thread control field to the
75 (clear_proceed_status_thread): Clear the new thread control field.
76 (proceed): Set the new thread control field.
77 * interps.h (command_interp): Declare.
78 * interps.c (command_interpreter): New global.
79 (command_interp): New function.
80 (interp_exec): Set `command_interpreter' while here.
81 * cli-out.c (cli_uiout_dtor): New function.
82 (cli_ui_out_impl): Install it.
83 * mi/mi-interp.c: Include cli-out.h.
84 (mi_cmd_interpreter_exec): Add comment.
85 (restore_current_uiout_cleanup): New function.
86 (ui_out_free_cleanup): New function.
87 (mi_on_normal_stop): If finishing an execution command started by
88 a CLI command, or any kind of breakpoint-like event triggered,
89 print the stop event to the output (CLI) stream.
90 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
92 2014-05-21 Pedro Alves <palves@redhat.com>
94 * cli/cli-cmds.c (list_command): Handle the first "list" after the
95 current source line having changed.
96 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
97 * infrun.c (normal_stop): Adjust call to
98 set_current_sal_from_frame.
99 * source.c (clear_lines_listed_range): New function.
100 (set_current_source_symtab_and_line, identify_source_line): Clear
101 the lines listed range.
102 (line_info): Handle the first "info line" after the current source
104 * stack.c (print_stack_frame): Remove center handling.
105 (set_current_sal_from_frame): Remove 'center' parameter. Don't
108 2014-05-21 Pedro Alves <palves@redhat.com>
110 * inf-child.c (inf_child_mourn_inferior): New function.
111 * inf-child.h (inf_child_mourn_inferior): New declaration.
112 * darwin-nat.c (darwin_mourn_inferior): Use
113 inf_child_mourn_inferior.
114 * gnu-nat.c (gnu_mourn_inferior): Likewise.
115 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
116 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
117 * nto-procfs.c (procfs_mourn_inferior): Likewise.
118 * windows-nat.c (windows_mourn_inferior): Likewise.
120 2014-05-21 Doug Evans <xdje42@gmail.com>
122 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
124 2014-05-21 Doug Evans <xdje42@gmail.com>
126 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result is void.
127 (gdbscm_out_of_range_error): Ditto.
128 (gdbscm_memory_error): Ditto.
129 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
130 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
131 (gdbscm_out_of_range_error): Update.
132 (gdbscm_memory_error): Update.
133 (gdbscm_scm_to_target_string_unsafe): Delete.
135 2014-05-21 Pedro Alves <palves@redhat.com>
137 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
139 (inf_child_open_target): New function.
140 (inf_child_open): Use inf_child_open_target to push the target
141 instead of erroring out.
142 (inf_child_disconnect, inf_child_close)
143 (inf_child_maybe_unpush_target): New functions.
144 (inf_child_target): Install inf_child_disconnect and
145 inf_child_close. Store a pointer to the returned object.
146 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
148 * target.c (auto_connect_native_target): New global.
149 (show_default_run_target): New function.
150 (find_default_run_target): Return NULL if automatically connecting
151 to the native target is disabled.
152 (_initialize_target): Install set/show auto-connect-native-target.
153 * NEWS: Mention "set auto-connect-native-target", and "target
155 * linux-nat.c (super_close): New global.
156 (linux_nat_close): Call super_close.
157 (linux_nat_add_target): Store a pointer to the base class's
159 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
160 inf_child_maybe_unpush.
161 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
163 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
164 the inferior. Use inf_child_maybe_unpush_target.
165 (inf_ttrace_attach): Don't push the target if it is already
167 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
168 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
169 after mourning the inferior. Use inf_child_maybe_unpush_target.
170 (darwin_attach_pid): Don't push the target if it is already
172 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
173 mourning the inferior. Use inf_child_maybe_unpush_target.
174 (gnu_detach): Use inf_child_maybe_unpush_target.
175 * go32-nat.c (go32_create_inferior): Don't push the target if it
177 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
178 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
179 (procfs_open): Rename to ...
180 (procfs_open_1): ... this. Add target_ops parameter. Adjust
181 comments. Can target_preopen before changing node. Call
182 inf_child_open_target to push the target explicitly.
183 (procfs_attach): Don't push the target if it is already pushed.
184 (procfs_detach): Use inf_child_maybe_unpush_target.
185 (procfs_create_inferior): Don't push the target if it is already
187 (nto_native_ops): New global.
188 (procfs_open): Reimplement.
189 (procfs_native_open): New function.
190 (init_procfs_targets): Install procfs_native_open as to_open of
191 "target native". Store a pointer to the "native" target in
193 * procfs.c (procfs_attach): Don't push the target if it is already
195 (procfs_detach): Use inf_child_maybe_unpush_target.
196 (procfs_mourn_inferior): Only unpush the target after mourning the
197 inferior. Use inf_child_maybe_unpush_target.
198 (procfs_init_inferior): Don't push the target if it is already
200 * windows-nat.c (do_initial_windows_stuff): Don't push the target
201 if it is already pushed.
203 2014-05-21 Pedro Alves <palves@redhat.com>
205 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
206 and "procfs" targets are now called "native" instead.
208 2014-05-21 Pedro Alves <palves@redhat.com>
210 * go32-nat.c (go32_open): Delete.
211 (go32_target): Don't override the to_open method.
213 2014-05-21 Pedro Alves <palves@redhat.com>
215 * nto-procfs.c (procfs_can_run): New function.
216 (nto_procfs_ops): New global.
217 (init_procfs_targets): New, based on procfs_target. Install
218 "target native" in addition to "target procfs".
219 (_initialize_procfs): Call init_procfs_targets instead of adding
222 2014-05-21 Pedro Alves <palves@redhat.com>
224 * windows-nat.c (windows_target): Don't override to_shortname,
225 to_longname or to_doc.
227 2014-05-21 Pedro Alves <palves@redhat.com>
229 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
232 2014-05-21 Pedro Alves <palves@redhat.com>
234 * darwin-nat.c (_initialize_darwin_inferior): Don't override
235 to_shortname, to_longname or to_doc.
237 2014-05-21 Pedro Alves <palves@redhat.com>
239 * go32-nat.c (go32_target): Don't override to_shortname,
240 to_longname or to_doc.
242 2014-05-21 Pedro Alves <palves@redhat.com>
244 * inf-child.c (inf_child_open): Remove mention of "child".
245 (inf_child_target): Rename target to "native" instead of "child".
247 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
249 * Makefile.in (SFILES): Delete "regset.c".
250 (COMMON_OBS): Delete "regset.o".
252 * regset.h (regset_alloc): Delete prototype.
254 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
256 * sparc-linux-tdep.c (sparc32_linux_gregset)
257 (sparc32_linux_fpregset): New static regset structures.
258 (sparc32_linux_init_abi): Drop dynamic regset allocations.
259 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
261 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
262 (sparc64_linux_fpregset): New static regset structures.
263 (sparc64_linux_init_abi): Drop dynamic regset allocations.
264 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
265 New static regset structures.
266 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
267 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
268 New static regset structures.
269 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
270 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
271 New static regset structures.
272 (sparc64obsd_init_abi): Drop dynamic regset allocations.
273 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
274 New static regset structures.
275 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
277 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
279 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
280 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
281 register maps ("regmaps") from "*regset" to "*regmap". Do this
282 for all regmap types and variables.
283 * sparc-linux-tdep.c (sparc32_linux_step_trap)
284 (sparc32_linux_supply_core_gregset)
285 (sparc32_linux_collect_core_gregset)
286 (sparc32_linux_supply_core_fpregset)
287 (sparc32_linux_collect_core_fpregset): Likewise.
288 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
289 (sparc_gregmap, sparc_fpregmap): ... these.
290 (sparc_supply_gregset, sparc_collect_gregset)
291 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
292 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
293 (_initialize_sparc_nat): Rename regmaps.
294 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
295 (sparc_gregmap, sparc_fpregmap): ... these.
296 (sparc_supply_gregset, sparc_collect_gregset)
297 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
298 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
300 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
301 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
303 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
305 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
306 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
307 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
309 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
310 (sparc32_bsd_fpregset): Rename to...
311 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
312 (sparc32_bsd_fpregmap): ... these.
313 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
314 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
315 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
316 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
317 (struct sparc_gregmap, struct sparc_fpregmap)
318 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
319 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
320 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
321 (sparc32_supply_regset, sparc32_collect_gregset)
322 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
324 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
325 (sparc64_linux_ptrace_gregmap): ... this.
326 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
327 (_initialize_sparc64_linux_nat): Rename regmaps.
328 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
329 (sparc64_linux_core_gregmap): ... this.
330 (sparc64_linux_supply_core_gregset)
331 (sparc64_linux_collect_core_gregset)
332 (sparc64_linux_supply_core_fpregset)
333 (sparc64_linux_collect_core_fpregset): Rename regmaps.
334 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
335 (sparc64_sol2_fpregset): Rename to...
336 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
337 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
338 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
340 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
341 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
342 (sparc64_bsd_fpregset): Rename to...
343 (struct sparc_gregmap, sparc64_sol2_gregmap)
344 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
345 (sparc64_bsd_fpregmap): ... these.
346 (sparc64_supply_gregset, sparc64_collect_gregset)
347 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
349 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
350 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
351 (sparc64fbsd_gregmap): ... this.
352 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
353 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
355 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
356 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
357 (sparc64nbsd_collect_fpregset): Likewise.
358 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
359 (sparc64nbsd_gregmap): ... this.
360 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
362 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
363 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
364 (sparc64obsd_gregmap): ... this.
365 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
367 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
368 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
369 (sparc32nbsd_gregmap): ... this.
370 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
373 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
375 * score-tdep.c (score7_linux_gregset): New static regset
377 (score7_linux_regset_from_core_section): Remove dynamic regset
379 (score_gdbarch_init): Drop allocation of tdep structure.
380 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
382 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
384 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
386 (am33_regset_from_core_section): Remove dynamic regset
389 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
391 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
392 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
394 (mips_linux_regset_from_core_section): Remove dynamic regset
396 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
397 'gregset64', 'fpregset', and 'fpregset64'.
398 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
401 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
403 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
405 (amd64_regset_from_core_section): Remove dynamic regset
407 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
409 (amd64obsd_regset_from_core_section): Remove dynamic regset
411 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
413 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
414 x86-common regset supply function.
415 * i386-tdep.c (i386_collect_gregset): Make static.
416 (i386_gregset): New global regset structure.
417 (i386_fpregset, i386_xstateregset): New static regset structures.
418 (i386_regset_from_core_section): Remove dynamic regset
420 (i386_gdbarch_init): Remove initialization of tdep fields
421 'gregset', 'fpregset', and 'xstateregset'.
422 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
423 'fpregset', and 'xstateregset'.
424 (i386_collect_gregset): Remove prototype.
425 (i386_gregset): New declaration.
426 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
428 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
433 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
434 (arm_linux_vfpregset): New static regset structures.
435 (arm_linux_regset_from_core_section): Remove dynamic allocation of
437 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
438 and 'vfpregset' fields.
440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
442 * aarch64-linux-tdep.c (aarch64_linux_gregset)
443 (aarch64_linux_fpregset): New static regset structures.
444 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
445 of regset structures.
446 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
449 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
451 * regset.h (struct regset): Remove gdbarch field.
452 * regset.c (regset_alloc): Drop initialization of gdbarch field.
453 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
454 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
456 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
457 (ppc32_linux_fpregset, ppc32_linux_vrregset)
458 (ppc32_linux_vsxregset): Likewise.
459 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
460 via the regcache instead of the regset.
461 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
462 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
463 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
464 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
467 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
469 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
471 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
472 (alphanbsd_aout_gregset): Likewise.
473 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
474 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
476 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
477 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
479 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
480 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
481 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
482 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
483 * m88k-tdep.c (m88k_gregset): Likewise.
484 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
485 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
486 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
487 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
488 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
489 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
490 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
491 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
492 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
494 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
495 * sh-tdep.h (sh_corefile_gregset): Likewise.
496 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
497 * vax-tdep.c (vax_gregset): Likewise.
499 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
501 Fix TLS access for -static -pthread.
502 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
503 (try_thread_db_load_1): Initialize it.
504 (thread_db_get_thread_local_address): Call it if LM is zero.
505 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
506 * target.h (struct target_ops) (to_get_thread_local_address): Add
507 load_module_addr comment.
509 2014-05-21 Pedro Alves <palves@redhat.com>
511 * dcache.c (dcache_read_memory_partial): If reading the cache line
512 fails, fallback to reading just the memory the caller wanted.
514 2014-05-20 Doug Evans <dje@google.com>
516 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
517 instead of get_current_arch.
519 2014-05-20 Pedro Alves <palves@redhat.com>
521 * NEWS: Mention that compare-sections now works with all targets.
523 * remote.c (PACKET_qCRC): New enum value.
524 (remote_verify_memory): Don't send qCRC if the target has no
525 execution. Use packet_support/packet_ok. If the target doesn't
526 support the qCRC packet, fallback to a deep memory copy.
527 (compare_sections_command): Say "target image" instead of "remote
529 (_initialize_remote): Add PACKET_qCRC to the list of config
530 packets that have no associated command. Extend comment.
531 * target.c (simple_verify_memory, default_verify_memory): New
533 * target.h (struct target_ops) <to_verify_memory>: Default to
534 default_verify_memory.
535 (simple_verify_memory): New declaration.
536 * target-delegates.c: Regenerate.
538 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
540 * record-btrace.c (record_btrace_step_thread): Check for empty history.
542 2014-05-20 Hui Zhu <hui@codesourcery.com>
543 Yao Qi <yao@codesourcery.com>
546 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
547 and change address of sp and pc.
549 2014-05-19 Tom Tromey <tromey@redhat.com>
551 * gdbtypes.c (rank_function): Use XNEWVEC.
552 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
554 2014-05-19 Doug Evans <dje@google.com>
556 * dwarf2read.c (build_type_psymtabs_1): Renamed from
557 build_type_unit_groups and moved closer to only caller. Remove
558 arguments. All references updated. Remove outdated .gdb_index
560 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
561 build_type_psymtabs_1.
563 2014-05-19 Doug Evans <dje@google.com>
565 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
566 n_type_unit_groups, all_type_unit_groups. All uses removed.
567 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
568 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
569 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
570 (add_type_unit_group_to_table): Delete.
572 2014-05-19 Doug Evans <dje@google.com>
574 * eval.c (evaluate_subexp_standard): Add some comments.
576 2014-05-17 Doug Evans <xdje42@gmail.com>
578 * progspace.c (remove_program_space): Delete, unused.
579 * progspace.h (remove_program_space): Ditto.
581 2014-05-17 Doug Evans <xdje42@gmail.com>
583 * inferior.c (prune_inferiors): Fix comment.
584 (remove_inferior_command): Call prune_program_spaces.
586 2014-05-16 Doug Evans <dje@google.com>
588 New command line option -D.
590 * main.c (set_gdb_data_directory): New function.
591 (captured_main): Recognize -D. Flag error for --data-directory "".
592 Call set_gdb_data_directory.
593 (print_gdb_help): Print --data-directory, -D.
594 * main.h (set_gdb_data_directory): Declare.
595 * top.c (staged_gdb_datadir): New static global.
596 (set_gdb_datadir): Call set_gdb_data_directory
597 (show_gdb_datadir): New function.
598 (init_main): Update init of data-directory parameter.
600 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
602 Import the "dirfd" gnulib module.
603 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
604 * gnulib/aclocal.m4: Update.
605 * gnulib/config.in: Update.
606 * gnulib/configure: Update.
607 * gnulib/import/Makefile.am: Update.
608 * gnulib/import/Makefile.in: Update.
609 * gnulib/import/dirfd.c: New.
610 * gnulib/import/m4/dirfd.m4: New.
611 * gnulib/import/m4/gnulib-cache.m4: Update.
612 * gnulib/import/m4/gnulib-comp.m4: Update.
614 2014-05-16 Pierre Muller <muller@sourceware.org>
615 Yao Qi <yao@codesourcery.com>
617 * valprint.c (print_wchar): Move the code on checking whether
618 W is a printable wide char to the default branch of switch
619 statement below. Call wchar_printable instead of gdb_iswprint.
621 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
623 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
624 ldr.w and ldrd instructions.
626 2014-05-15 Doug Evans <dje@google.com>
628 * dwarf2read.c (read_structure_type): Delete outdated comments.
630 2014-05-14 Tom Tromey <tromey@redhat.com>
632 * macrocmd.c (print_macro_definition): Reindent.
634 2014-05-13 Doug Evans <xdje42@gmail.com>
636 * python/py-cmd.c (cmdpy_completer): Add comment.
637 (completers): Make const.
639 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
641 * infrun.c (resume): Remove should_resume (unused). Move up
642 declaration of resume_ptid.
644 2014-05-13 Tom Tromey <tromey@redhat.com>
646 * language.h (unop_type_check): Remove.
647 (binop_type_check): Don't declare.
649 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
651 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
652 call to regcache_raw_collect.
654 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
656 * mi/mi-console.c (mi_console_raw_packet): Use the value from
657 mi_console->quote as the quoting character.
659 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
661 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
663 2014-04-29 Tom Tromey <tromey@redhat.com>
665 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
668 2014-05-07 Kyle McMartin <kyle@redhat.com>
670 Pushed by Joel Brobecker <brobecker@adacore.com>.
671 * aarch64-tdep.c (aarch64_software_single_step): New function.
672 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
673 with aarch64_software_single_step.
675 2014-05-05 Joel Brobecker <brobecker@adacore.com>
679 2014-05-05 Keith Seitz <keiths@redhat.com>
681 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
682 variable or history value is successfully parsed.
684 2014-05-05 Yao Qi <yao@codesourcery.com>
685 Pedro Alves <palves@redhat.com>
687 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
688 address of blocks that intersects the requested range. Trim
689 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
691 * ctf.c (ctf_xfer_partial): Likewise.
693 2014-05-05 Yao Qi <yao@codesourcery.com>
695 * printcmd.c (display_command): Remove the check to
696 target_has_execution.
698 2014-05-03 Mark Kettenis <kettenis@gnu.org>
700 * ppcobsd-nat.c: Include "obsd-nat.h".
701 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
703 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
705 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
707 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
708 and 16-bit signed and unsigned arguments. Update comment.
709 (stap_parse_probe_arguments): Extend code to handle such
710 arguments. Use warning instead of complaint to notify about
711 unrecognized bitness.
713 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
716 * stap-probe.c (stap_parse_probe_arguments): Simplify
717 check for non-prefixed probes (i.e., probes whose
718 arguments do not start with "N@"). Always set the
719 argument type to a sane value.
721 2014-05-01 David Taylor <dtaylor@emc.com>
723 * remote.c (compare_sections_command): Add -r option to compare
724 all loadable read-only sections.
726 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
728 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
729 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
731 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
732 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
733 Remove unused CORE_ADDR argument. Update all callers.
735 2014-04-29 Pedro Alves <palves@redhat.com>
737 * remote.c (struct packet_config) <detect>: Extend comment.
738 (add_packet_config_cmd): Don't set the config's detect or support
740 (init_all_packet_configs): Also initialize the config's 'detect'
742 (reset_all_packet_configs_support): New function.
743 (remote_open_1): Call reset_all_packet_configs_support instead of
744 init_all_packet_configs.
745 (_initialize_remote): Initialize all packet configs. Assert that
746 all packets have an associated command, except a few known
749 2014-04-28 Joel Brobecker <brobecker@adacore.com>
751 * dwarf2read.c (read_subrange_type): Handle dynamic
752 DW_AT_lower_bound attributes.
754 2014-04-28 Joel Brobecker <brobecker@adacore.com>
756 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
757 dynamic bounds before computing its upper bound.
758 (ada_discrete_type_low_bound): Same as above with the lower bound.
760 2014-04-28 Joel Brobecker <brobecker@adacore.com>
762 * dwarf2read.c (is_dynamic_type): Return true for dynamic
763 range types. Adjust the array handling implementation to
764 take advantage of this change.
765 (resolve_dynamic_range): New function, mostly extracted from
766 resolve_dynamic_bounds.
767 (resolve_dynamic_array): New function, mostly extracted from
768 resolve_dynamic_bounds.
769 (resolve_dynamic_bounds): Delete.
770 (resolve_dynamic_type): Reimplement. Add handling of
771 TYPE_CODE_RANGE types.
773 2014-04-28 Joel Brobecker <brobecker@adacore.com>
775 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
776 handling of parallel ___XA types.
778 2014-04-28 Joel Brobecker <brobecker@adacore.com>
780 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
781 unnecessary second call to static_unwrap_type.
783 2014-04-27 Hui Zhu <hui@codesourcery.com>
785 * stack.c (print_frame_info): Call do_gdb_disassembly with
786 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
788 2014-04-26 Doug Evans <xdje42@gmail.com>
790 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
792 2014-04-25 Pedro Alves <palves@redhat.com>
795 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
796 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
797 and newline from built string.
798 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
799 (linux_ptrace_attach_fail_reason): ... this.
800 * linux-nat.c (linux_nat_attach): Adjust to use
801 linux_ptrace_attach_fail_reason.
803 2014-04-25 Pedro Alves <palves@redhat.com>
805 * remote.c (struct remote_state): Remove multi_process_aware,
806 non_stop_aware, cond_tracepoints, cond_breakpoints,
807 breakpoint_commands, fast_tracepoints, static_tracepoints,
808 install_in_trace, disconnected_tracing,
809 enable_disable_tracepoints, string_tracing, and
810 augmented_libraries_svr4_read fields.
811 (remote_multi_process_p): Move further below in the file.
812 (struct packet_config): Add comments.
813 (update_packet_config): Delete function.
814 (show_packet_config_cmd): Use packet_config_support.
815 (add_packet_config_cmd): Use NULL as set callback.
816 (packet_ok): "set remote foo-packet"-style commands no longer
817 change config->supported -- adjust.
818 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
819 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
820 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
821 (PACKET_QNonStop, PACKET_multiprocess_feature)
822 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
823 (PACKET_DisconnectedTracing_feature)
824 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
825 (set_remote_protocol_packet_cmd): Delete function.
826 (packet_config_support, packet_support): New functions.
827 (set_remote_protocol_Z_packet_cmd): Don't call
828 update_packet_config.
829 (remote_query_attached, remote_pass_signals)
830 (remote_program_signals, remote_threads_info)
831 (remote_threads_extra_info, remote_start_remote): Use
833 (remote_start_remote): Use packet_config_support and
835 (init_all_packet_configs): Set all packets to unknown support,
836 instead of calling update_packet_config.
837 (remote_check_symbols): Use packet_support.
838 (remote_supported_packet): Unconditionally set the packet config's
840 (remote_multi_process_feature, remote_non_stop_feature)
841 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
842 (remote_breakpoint_commands_feature)
843 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
844 (remote_install_in_trace_feature)
845 (remote_disconnected_tracing_feature)
846 (remote_enable_disable_tracepoint_feature)
847 (remote_string_tracing_feature)
848 (remote_augmented_libraries_svr4_read_feature): Delete functions.
849 (remote_protocol_features): Adjust to use remote_supported_packet
850 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
851 "ConditionalTracepoints", "ConditionalBreakpoints",
852 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
853 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
854 "EnableDisableTracepoints", and "tracenz".
855 (remote_query_supported): Use packet_support.
856 (remote_open_1): Adjust.
857 (extended_remote_attach_1): Use packet_support. Switch on the
858 result of packet_ok instead of checking whether the packet ended
860 (remote_vcont_resume): Use packet_support.
861 (remote_resume, remote_stop_ns, fetch_register_using_p)
862 (remote_prepare_to_store, store_register_using_P)
863 (check_binary_download, remote_write_bytes): Use packet_support.
864 (remote_vkill): Use packet_support. Switch on the result of
865 packet_ok instead of checking whether the packet ended up
867 (extended_remote_supports_disable_randomization): Use
869 (extended_remote_run): Switch on the result of packet_ok instead
870 of checking whether the packet ended up disabled.
871 (remote_insert_breakpoint, remote_remove_breakpoint)
872 (remote_insert_watchpoint, remote_remove_watchpoint)
873 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
875 (remote_search_memory): Use packet_config_support.
876 (remote_get_thread_local_address, remote_get_tib_address)
877 (remote_hostio_send_command, remote_can_execute_reverse): Use
879 (remote_supports_cond_tracepoints)
880 (remote_supports_cond_breakpoints)
881 (remote_supports_fast_tracepoints)
882 (remote_supports_static_tracepoints)
883 (remote_supports_install_in_trace)
884 (remote_supports_enable_disable_tracepoint)
885 (remote_supports_string_tracing)
886 (remote_can_run_breakpoint_commands): Rewrite, checking whether
887 the packet config says the feature is enabled or disabled.
888 (remote_download_tracepoint, remote_trace_set_readonly_regions)
889 (remote_get_trace_status): Use packet_support.
890 (remote_set_disconnected_tracing): Adjust to check whether the
891 feature is enabled with packet_support.
892 (remote_set_trace_buffer_size, remote_use_agent)
893 (remote_can_use_agent, remote_supports_btrace): Use
895 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
896 Use packet_config_support.
897 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
898 the packet config says the feature is enabled or disabled.
899 (set_range_stepping): Use packet_support.
901 2014-04-25 Tom Tromey <tromey@redhat.com>
903 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
906 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
908 * NEWS: Mention support for C99 variable length arrays.
910 2014-04-24 Joel Brobecker <brobecker@adacore.com>
912 * ada-lang.c (standard_exc): Expand introductory comment.
914 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
915 Walfred Tedeschi <walfred.tedeschi@intel.com>
917 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
919 (amd64_linux_read_description): Add code to handle AVX512 xstate
920 mask and return respective tdesc.
921 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
922 and features/i386/x32-avx512-linux.c.
923 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
924 (amd64_linux_core_read_description): Add code to handle AVX512
925 xstate mask and return respective tdesc.
926 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
927 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
929 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
930 (tdesc_amd64_avx512_linux): New prototype.
931 (tdesc_x32_avx512_linux): Likewise.
932 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
933 features/i386/x32-avx512.c.
934 (amd64_ymm_avx512_names): New register names for pseudo
936 (amd64_ymmh_avx512_names): New register names for raw registers
938 (amd64_k_names): New register names for K registers.
939 (amd64_zmmh_names): New register names for ZMM raw registers.
940 (amd64_zmm_names): New registers names for ZMM pseudo registers.
941 (amd64_xmm_avx512_names): New register names for XMM16-31
943 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
945 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
946 if feature is present.
947 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
948 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
949 (AMD64_NUM_REGS): Adjust to new number of registers.
950 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
951 registers supplied via XSTATE by AVX512 registers.
952 (i386_linux_read_description): Add case for AVX512.
953 * i386-linux-tdep.c: Include i386-avx512-linux.c.
954 (i386_linux_gregset_reg_offset): Add AVX512 registers.
955 (i386_linux_core_read_description): Add case for AVX512.
956 (i386_linux_init_abi): Install supported register note section
958 (_initialize_i386_linux_tdep): Add call to tdesc init function for
960 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
961 registers to be number of zmm7h + 1.
962 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
963 * i386-tdep.c: Include features/i386/i386-avx512.c.
964 (i386_zmm_names): Add ZMM pseudo register names array.
965 (i386_zmmh_names): Add ZMM raw register names array.
966 (i386_k_names): Add K raw register names array.
967 (num_lower_zmm_regs): Add constant for the number of lower ZMM
968 registers. AVX512 has 16 more ZMM registers than there are YMM
970 (i386_zmmh_regnum_p): Add function to look up register number of
972 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
973 (i386_k_regnum_p): Likewise for K raw registers.
974 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
975 registers added by AVX512.
976 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
977 registers added by AVX512.
978 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
980 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
981 (i386_pseudo_register_name): Add ZMM pseudo registers.
982 (i386_zmm_type): Construct and return vector registers type for ZMM
984 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
985 ZMM0-31 pseudo registers and K registers.
986 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
987 and YMM16-31 registers from register cache.
988 (i386_pseudo_register_write): Add code to write K, ZMM and
990 (i386_register_reggroup_p): Add code to include/exclude AVX512
991 registers in/from respective register groups.
992 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
993 registers if feature is present in xcr0.
994 (i386_gdbarch_init): Add code to initialize AVX512 feature
995 variables in tdep structure, wire in pseudo registers and call
996 initialize_tdesc_i386_avx512.
997 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
999 (i386_regnum): Add AVX512 registers.
1000 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1001 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1002 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1003 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1005 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1006 (i386_ymm_avx512_regnum_p): Likewise.
1007 (i386_k_regnum_p): Likewise.
1008 (i386_zmm_regnum_p): Likewise.
1009 (i386_zmmh_regnum_p): Likewise.
1010 * i387-tdep.c : Update year in copyright notice.
1011 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1013 (XSAVE_YMM_AVX512_ADDR): New macro.
1014 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1016 (XSAVE_XMM_AVX512_ADDR): New macro.
1017 (xsave_avx512_k_offset): New table for K register offsets in
1019 (XSAVE_AVX512_K_ADDR): New macro.
1020 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1022 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1023 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1025 (i387_collect_xsave): Add code to collect AVX512 registers from
1027 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1028 of XMM16-31 registers.
1029 (I387_NUM_K_REGS): New define for number of K registers.
1030 (I387_K0_REGNUM): New define for K0 register number.
1031 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1032 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1033 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1035 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1036 (I387_XMM16_REGNUM): New define for XMM16 register number.
1037 (I387_YMM0_REGNUM): New define for YMM0 register number.
1038 (I387_KEND_REGNUM): New define for last K register number.
1039 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1040 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1042 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1044 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1046 * features/Makefile: Add AVX512 related files.
1047 * features/i386/32bit-avx512.xml: New file.
1048 * features/i386/64bit-avx512.xml: Likewise.
1049 * features/i386/amd64-avx512-linux.c: Likewise.
1050 * features/i386/amd64-avx512-linux.xml: Likewise.
1051 * features/i386/amd64-avx512.c: Likewise.
1052 * features/i386/amd64-avx512.xml: Likewise.
1053 * features/i386/i386-avx512-linux.c: Likewise.
1054 * features/i386/i386-avx512-linux.xml: Likewise.
1055 * features/i386/i386-avx512.c: Likewise.
1056 * features/i386/i386-avx512.xml: Likewise.
1057 * features/i386/x32-avx512-linux.c: Likewise.
1058 * features/i386/x32-avx512-linux.xml: Likewise.
1059 * features/i386/x32-avx512.c: Likewise.
1060 * features/i386/x32-avx512.xml: Likewise.
1061 * regformats/i386/amd64-avx512-linux.dat: New file.
1062 * regformats/i386/amd64-avx512.dat: Likewise.
1063 * regformats/i386/i386-avx512-linux.dat: Likewise.
1064 * regformats/i386/i386-avx512.dat: Likewise.
1065 * regformats/i386/x32-avx512-linux.dat: Likewise.
1066 * regformats/i386/x32-avx512.dat: Likewise.
1067 * NEWS: Add note about new support for AVX512.
1070 2014-04-23 Pedro Alves <palves@redhat.com>
1072 * breakpoint.c (insert_bp_location): Tolerate errors if the
1073 breakpoint is set in a user-loaded objfile.
1074 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1075 location is marked shlib_disabled. If the breakpoint is set in a
1076 user-loaded objfile is a GDB-side memory breakpoint, validate it
1077 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1078 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1080 * mem-break.c (memory_validate_breakpoint): New function.
1081 * objfiles.c (userloaded_objfile_contains_address_p): New
1083 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1084 * target.h (memory_validate_breakpoint): New declaration.
1086 2014-04-23 Pedro Alves <palves@redhat.com>
1088 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1089 the breakpoint is set in a shared library, only suppress
1090 errors for software breakpoints, not hardware breakpoints.
1092 2014-04-22 Pedro Alves <palves@redhat.com>
1094 * infrun.c (schedlock_applies): New function, factored out from
1095 find_thread_needs_step_over.
1096 (find_thread_needs_step_over): Use it.
1097 (switch_back_to_stepped_thread): Always clear trap_expected if the
1098 step over is finished. Return early if scheduler locking applies.
1099 Look for the stepping thread and a potential step-over thread with
1101 (currently_stepping_or_nexting_callback): Delete.
1103 2014-04-22 Nick Clifton <nickc@redhat.com>
1105 * NEWS: Mention that ARM sim now supports tracing.
1107 2014-04-22 Yao Qi <yao@codesourcery.com>
1109 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1111 * tracefile.c (tracefile_fetch_registers): ... it. New
1113 * tracefile.h (tracefile_fetch_registers): Declare.
1114 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1115 tracefile_fetch_registers.
1117 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1120 * windows-nat.c (thread_rec): Don't display a warning when
1121 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1122 fails for any reason, set th->suspended to -1, so that we don't
1123 try to resume such a thread. Also, don't return NULL in these
1124 cases, to avoid completely ruin the session due to "PC register is
1125 not available" error.
1126 (do_windows_fetch_inferior_registers): Check errors in
1127 GetThreadContext call.
1128 (windows_continue): Accept an additional argument KILLED; if not
1129 zero, ignore errors in the SetThreadContext call, since the
1130 inferior was killed and is shutting down.
1131 (windows_resume, get_windows_debug_event)
1132 (windows_create_inferior, windows_mourn_inferior)
1133 (windows_kill_inferior): All callers of windows_continue changed
1134 to adjust to its new calling sequence.
1136 2014-04-19 Yao Qi <yao@codesourcery.com>
1138 * ctf.c (ctf_open): Call post_create_inferior.
1140 2014-04-19 Yao Qi <yao@codesourcery.com>
1142 * ctf.c (handle_id): New static variable.
1143 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1144 value. Get the declaration of event "register" and get length
1145 of field "contents".
1147 2014-04-19 Yao Qi <yao@codesourcery.com>
1149 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1151 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1153 * valops.c (oload_method_static): Remove unnecessary argument
1154 METHOD. Update all callers.
1156 2014-04-18 Pedro alves <palves@redhat.com>
1157 Tom Tromey <tromey@redhat.com>
1160 * frame.c (get_prev_frame_1): Rename to ...
1161 (get_prev_frame_always): ... this, and make extern. Adjust.
1162 (skip_artificial_frames): Use get_prev_frame_always.
1163 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1164 (get_frame_unwind_stop_reason): Adjust to rename.
1165 * frame.h (get_prev_frame_always): Declare.
1166 * inline-frame.c: Include frame.h.
1167 (inline_frame_this_id): Use get_prev_frame_always.
1169 2014-04-18 Tristan Gingold <gingold@adacore.com>
1171 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1172 code by using bfd_mach_o_get_base_address.
1174 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1176 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1177 (spu_ax_pseudo_register_collect): New function.
1178 (spu_ax_pseudo_register_push_stack): Likewise.
1179 (spu_dwarf_reg_to_regnum): Likewise.
1180 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1182 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1184 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1185 Replace FRAME argument with FRAME_ID.
1186 * gdbarch.c, gdbarch.h: Regenerate.
1187 * findvar.c (default_value_from_register): Add GDBARCH argument;
1188 replace FRAME by FRAME_ID. No longer call get_frame_id.
1189 (value_from_register): Update call to gdbarch_value_from_register.
1190 * value.h (default_value_from_register): Update prototype.
1191 * s390-linux-tdep.c (s390_value_from_register): Update interface
1192 and call to default_value_from_register.
1193 * spu-tdep.c (spu_value_from_register): Likewise.
1195 * findvar.c (address_from_register): Remove TYPE argument.
1196 Do not call value_from_register; use gdbarch_value_from_register
1197 with null_frame_id instead.
1198 * value.h (address_from_register): Update prototype.
1199 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1200 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1201 address_from_register interface change.
1203 2014-04-17 Yao Qi <yao@codesourcery.com>
1205 * gdbtypes.h: Update comments to link to types and macros'
1208 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1210 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1212 2014-04-16 Keith Seitz <keiths@redhat.com>
1215 * dwarf2read.c (skip_one_die): Check that all relative-offset
1216 sibling DIEs fall within range of the current reader's buffer.
1217 (read_partial_die): Likewise.
1219 2014-04-16 Keith Seitz <keiths@redhat.com>
1222 * cp-namespace.c (lookup_symbol_file): If the type name of
1223 `this' is NULL, return immediately.
1225 2014-04-14 Keith Seitz <keiths@redhat.com>
1228 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1229 from symbol_matches_domain in symtab.c. All local callers
1230 of symbol_matches_domain updated.
1231 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1232 search STRUCT_DOMAIN.
1233 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1234 independently. standard_lookup will do that automatically.
1235 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1236 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1237 (cp_lookup_symbol_in_namespace): Likewise.
1238 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1239 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1240 may return a STRUCT_DOMAIN match.
1241 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1242 * cp-support.c: Include language.h.
1243 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1245 * psymtab.c (match_partial_symbol): Compare the requested
1246 domain with the symbol's domain directly.
1247 (lookup_partial_symbol): Likewise.
1248 * symtab.c (lookup_symbol_in_language): Explain when/why
1249 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1250 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1251 appropriate languages.
1252 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1253 and moved to ada-lang.c
1254 (lookup_block_symbol): Explain that this function only returns
1255 symbol matching the requested DOMAIN.
1256 Compare the requested domain with the symbol's domain directly.
1257 (iterate_over_symbols): Compare the requested domain with the
1258 symbol's domain directly.
1259 * symtab.h (symbol_matches_domain): Remove.
1261 2014-04-14 Tom Tromey <tromey@redhat.com>
1264 * c-exp.y (type_aggregate_p): New function.
1265 (qualified_name, classify_inner_name): Use it.
1266 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1267 and TYPE_TARGET_TYPE of an enum type.
1268 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1270 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1271 handle TYPE_DECLARED_CLASS.
1272 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1274 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1275 * valops.c (enum_constant_from_type): New function.
1276 (value_aggregate_elt): Use it.
1277 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1280 2014-04-14 Tom Tromey <tromey@redhat.com>
1282 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1283 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1285 * value.h (value_aggregate_elt): Update.
1287 2014-04-14 Tom Tromey <tromey@redhat.com>
1289 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1291 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1293 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1294 (evaluate_subexp_standard): Pass noside argument.
1295 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1296 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1297 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1298 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1299 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1301 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1303 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1304 points to a constant blob.
1306 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1308 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1309 property and store it as the high bound and flag the range accordingly.
1310 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1311 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1312 * gdbtypes.h (enum range_flags): New enum.
1313 (struct range_bounds): Add flags member.
1315 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1317 * c-typeprint.c (c_type_print_varspec_suffix): Added
1318 check for not yet resolved high bound. If unresolved, print
1319 "variable length" string to the console instead of random
1322 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1324 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1326 (ada_template_to_fixed_record_type_1): Likewise.
1327 (ada_to_fixed_type_1): Likewise.
1328 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1329 (cp_print_value): Likewise.
1330 * d-valprint.c (dynamic_array_type): Likewise.
1331 * findvar.c (address_of_variable): Likewise.
1332 * jv-valprint.c (java_value_print): Likewise.
1333 * valops.c (value_ind): Likewise.
1334 * value.c (coerce_ref): Likewise.
1336 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1338 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1339 value and retrieve the dynamic type size.
1341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1343 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1344 passed to sizeof is dynamic evaluate the argument to compute the length.
1346 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1347 Joel Brobecker <brobecker@adacore.com>
1349 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1350 (dwarf2_evaluate_property): New function.
1351 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1352 * dwarf2read.c (attr_to_dynamic_prop): New function.
1353 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1355 * gdbtypes.c: Include dwarf2loc.h.
1356 (is_dynamic_type): New function.
1357 (resolve_dynamic_type): New function.
1358 (resolve_dynamic_bounds): New function.
1359 (get_type_length): New function.
1360 (check_typedef): Use get_type_length to compute type length.
1361 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1362 (TYPE_LOW_BOUND_KIND): New macro.
1363 (is_dynamic_type): New function prototype.
1364 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1365 to resolve dynamic properties of the type. Update comment.
1366 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1368 2014-04-14 Richard Henderson <rth@redhat.com>
1370 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1372 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1373 Doug Evans <xdje42@gmail.com>
1375 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1376 dereference TYPE_CODE_REF values.
1378 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1380 Revert the following changes due to regressions:
1382 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1383 (dwarf2_evaluate_property): New function.
1384 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1385 * dwarf2read.c (attr_to_dynamic_prop): New function.
1386 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1388 * gdbtypes.c: Include dwarf2loc.h.
1389 (is_dynamic_type): New function.
1390 (resolve_dynamic_type): New function.
1391 (resolve_dynamic_bounds): New function.
1392 (get_type_length): New function.
1393 (check_typedef): Use get_type_length to compute type length.
1394 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1395 (TYPE_LOW_BOUND_KIND): New macro.
1396 (is_dynamic_type): New function prototype.
1397 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1398 to resolve dynamic properties of the type. Update comment.
1399 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1401 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1402 passed to sizeof is dynamic evaluate the argument to compute the length.
1404 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1405 value and retrieve the dynamic type size.
1407 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1408 (ada_template_to_fixed_record_type_1): Likewise.
1409 (ada_to_fixed_type_1): Likewise.
1410 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1411 (cp_print_value): Likewise.
1412 * d-valprint.c (dynamic_array_type): Likewise.
1413 * eval.c (evaluate_subexp_with_coercion): Likewise.
1414 * findvar.c (address_of_variable): Likewise.
1415 * jv-valprint.c (java_value_print): Likewise.
1416 * valops.c (value_ind): Likewise.
1417 * value.c (coerce_ref): Likewise.
1419 * c-typeprint.c (c_type_print_varspec_suffix): Added
1420 check for not yet resolved high bound. If unresolved, print
1421 "variable length" string to the console instead of random
1424 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1425 property and store it as the high bound and flag the range accordingly.
1426 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1427 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1428 * gdbtypes.h (enum range_flags): New enum.
1429 (struct range_bounds): Add flags member.
1431 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1432 points to a constant blob.
1434 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1435 (evaluate_subexp_standard): Pass noside argument.
1436 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1437 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1438 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1439 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1440 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1442 2014-04-11 Keith Seitz <keiths@redhat.com>
1445 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1446 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1449 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1451 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1452 (evaluate_subexp_standard): Pass noside argument.
1453 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1454 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1455 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1456 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1457 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1459 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1461 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1462 points to a constant blob.
1464 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1466 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1467 property and store it as the high bound and flag the range accordingly.
1468 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1469 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1470 * gdbtypes.h (enum range_flags): New enum.
1471 (struct range_bounds): Add flags member.
1473 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1475 * c-typeprint.c (c_type_print_varspec_suffix): Added
1476 check for not yet resolved high bound. If unresolved, print
1477 "variable length" string to the console instead of random
1480 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1482 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1483 (ada_template_to_fixed_record_type_1): Likewise.
1484 (ada_to_fixed_type_1): Likewise.
1485 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1486 (cp_print_value): Likewise.
1487 * d-valprint.c (dynamic_array_type): Likewise.
1488 * eval.c (evaluate_subexp_with_coercion): Likewise.
1489 * findvar.c (address_of_variable): Likewise.
1490 * jv-valprint.c (java_value_print): Likewise.
1491 * valops.c (value_ind): Likewise.
1492 * value.c (coerce_ref): Likewise.
1494 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1496 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1497 value and retrieve the dynamic type size.
1499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1501 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1502 passed to sizeof is dynamic evaluate the argument to compute the length.
1504 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1506 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1507 (dwarf2_evaluate_property): New function.
1508 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1509 * dwarf2read.c (attr_to_dynamic_prop): New function.
1510 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1512 * gdbtypes.c: Include dwarf2loc.h.
1513 (is_dynamic_type): New function.
1514 (resolve_dynamic_type): New function.
1515 (resolve_dynamic_bounds): New function.
1516 (get_type_length): New function.
1517 (check_typedef): Use get_type_length to compute type length.
1518 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1519 (TYPE_LOW_BOUND_KIND): New macro.
1520 (is_dynamic_type): New function prototype.
1521 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1522 to resolve dynamic properties of the type. Update comment.
1523 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1525 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1527 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1528 declaring high/low bounds and change uses accordingly. Call
1529 create_range_type instead of create_static_range_type.
1530 * gdbtypes.c (create_range_type): New function.
1531 (create_range_type): Convert bounds into struct bound_prop and pass
1532 them to create_range_type.
1533 * gdbtypes.h (struct bound_prop): New struct.
1534 (create_range_type): New function prototype.
1535 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1536 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1537 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1539 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1543 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1544 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1545 * ada-lang.c: All uses of create_range_type updated.
1546 * coffread.c: All uses of create_range_type updated.
1547 * dwarf2read.c: All uses of create_range_type updated.
1548 * f-exp.y: All uses of create_range_type updated.
1549 * m2-valprint.c: All uses of create_range_type updated.
1550 * mdebugread.c: All uses of create_range_type updated.
1551 * stabsread.c: All uses of create_range_type updated.
1552 * valops.c: All uses of create_range_type updated.
1553 * valprint.c: All uses of create_range_type updated.
1555 2014-04-10 Pedro Alves <palves@redhat.com>
1557 * breakpoint.c (single_step_breakpoints)
1558 (single_step_gdbarch): Move up in the file.
1559 (one_breakpoint_xfer_memory): New function, factored out from ...
1560 (breakpoint_xfer_memory): ... here. Also process single-step
1563 2014-04-09 Tristan Gingold <gingold@adacore.com>
1565 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1567 (darwin_decode_exception_message): Free port only after use.
1569 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1571 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1572 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1573 when setting the size of call_length.
1575 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1577 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1578 dereference TYPE_CODE_REF values.
1580 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1582 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1583 end of warning message.
1585 2014-04-03 Doug Evans <dje@google.com>
1587 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1588 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1590 2014-04-02 Alan Modra <amodra@gmail.com>
1592 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1593 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1594 (struct symbol_file_add_from_memory_args): Add size field.
1595 (find_vdso_size): New function.
1596 (add_vsyscall_page): Attempt to find vdso size.
1598 2014-04-01 Doug Evans <dje@google.com>
1600 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1602 2014-04-01 Tristan Gingold <gingold@adacore.com>
1604 * darwin-nat.c (darwin_encode_reply): Add prototype.
1605 (darwin_decode_exception_message): Reply to unknown inferiors.
1606 (darwin_decode_message): Handle message by id. Ignore message
1607 to unknown inferior.
1608 (darwin_wait): Discard unknown messages, add debug trace.
1610 2014-03-31 Doug Evans <dje@google.com>
1612 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1615 2014-03-31 Doug Evans <dje@google.com>
1617 New option "set print symbol-loading".
1619 * solib.c (solib_read_symbols): Only print symbol loading messages
1621 (solib_add): If symbol loading is in "brief" mode, notify user
1622 symbols are being loaded.
1623 (reload_shared_libraries_1): Ditto.
1624 * symfile.c (print_symbol_loading_off): New static global.
1625 (print_symbol_loading_brief): New static global.
1626 (print_symbol_loading_full): New static global.
1627 (print_symbol_loading_enums): New static global.
1628 (print_symbol_loading): New static global.
1629 (print_symbol_loading_p): New function.
1630 (symbol_file_add_with_addrs): Only print symbol loading messages
1632 (_initialize_symfile): Register "print symbol-loading" set/show
1634 * symfile.h (print_symbol_loading_p): Declare.
1636 2014-03-30 Doug Evans <xdje42@gmail.com>
1638 * infrun.c (set_last_target_status): New function.
1639 (handle_inferior_event): Call it.
1641 2014-03-30 Doug Evans <xdje42@gmail.com>
1643 * inferior.h (enum stop_kind): Improve comment.
1645 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1647 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1648 a reference, strip the reference layer before calling
1649 the lang_ops value_has_mutated callback.
1651 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1653 Remove some globals from our parser.
1654 * language.c (unk_lang_parser): Add "struct parser_state"
1656 * language.h (struct language_defn) <la_parser>: Likewise.
1657 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1658 (initialize_expout): Add "struct parser_state" argument.
1659 Rewrite function to use the parser state.
1660 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1661 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1662 write_exp_elt_longcst, write_exp_elt_dblcst,
1663 write_exp_elt_decfloatcst, write_exp_elt_type,
1664 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1665 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1666 write_dollar_variable): Likewise.
1667 (parse_exp_in_context_1): Use parser state.
1668 (insert_type_address_space): Add "struct parser_state" argument.
1670 (increase_expout_size): New function.
1671 * parser-defs.h: Forward declare "struct language_defn" and
1672 "struct parser_state".
1673 (expout, expout_size, expout_ptr): Remove extern declarations.
1674 (parse_gdbarch, parse_language): Rewrite macro declarations to
1675 accept the parser state.
1676 (struct parser_state): New struct.
1677 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1678 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1679 write_exp_elt_decfloatcst, write_exp_elt_type,
1680 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1681 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1682 write_exp_msymbol, write_dollar_variable,
1683 mark_struct_expression, insert_type_address_space): Add "struct
1684 parser_state" argument.
1685 (increase_expout_size): New function.
1686 * utils.c (do_clear_parser_state): New function.
1687 (make_cleanup_clear_parser_state): Likewise.
1688 * utils.h (make_cleanup_clear_parser_state): New function
1690 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1691 Update calls to write_exp* in order to pass the parser state.
1692 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1693 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1694 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1695 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1696 * stap-probe.c (stap_parse_register_operand): Likewise.
1697 (stap_parse_single_operand): Likewise.
1698 (stap_parse_argument_1): Likewise.
1699 (stap_parse_argument): Use parser state.
1700 * stap-probe.h: Include "parser-defs.h".
1701 (struct stap_parse_info) <pstate>: New field.
1702 * c-exp.y (parse_type): Rewrite to use parser state.
1703 (yyparse): Redefine to c_parse_internal.
1704 (pstate): New global variable.
1705 (parse_number): Add "struct parser_state" argument.
1706 (write_destructor_name): Likewise.
1707 (type_exp): Update calls to write_exp* and similars in order to
1709 (exp1, exp, variable, qualified_name, space_identifier,
1710 typename, typebase): Likewise.
1711 (write_destructor_name, parse_number, lex_one_token,
1712 classify_name, classify_inner_name, c_parse): Add "struct
1713 parser_state" argument. Update function to use parser state.
1714 * c-lang.h: Forward declare "struct parser_state".
1715 (c_parse): Add "struct parser_state" argument.
1716 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1717 (yyparse): Redefine macro to ada_parse_internal.
1718 (pstate): New variable.
1719 (write_int, write_object_renaming, write_var_or_type,
1720 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1721 type_int, type_long, type_long_long, type_float, type_double,
1722 type_long_double, type_char, type_boolean, type_system_address):
1723 Add "struct parser_state" argument.
1724 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1725 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1726 var_or_type, aggregate, aggregate_component_list,
1727 positional_list, others, component_group,
1728 component_associations): Update calls to write_exp* and similar
1729 functions in order to use parser state.
1730 (ada_parse, write_var_from_sym, write_int,
1731 write_exp_op_with_string, write_object_renaming,
1732 find_primitive_type, write_selectors, write_ambiguous_var,
1733 write_var_or_type, write_name_assoc, type_int, type_long,
1734 type_long_long, type_float, type_double, type_long_double,
1735 type_char, type_boolean, type_system_address): Add "struct
1736 parser_state" argument. Adjust function to use parser state.
1737 * ada-lang.c (parse): Likewise.
1738 * ada-lang.h: Forward declare "struct parser_state".
1739 (ada_parse): Add "struct parser_state" argument.
1740 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1741 calls to both functions.
1742 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1744 (yyparse): Redefine macro to f_parse_internal.
1745 (pstate): New variable.
1746 (parse_number): Add "struct parser_state" argument.
1747 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1748 and similars in order to use parser state.
1749 (parse_number): Adjust code to use parser state.
1751 (f_parse): New function.
1752 * f-lang.h: Forward declare "struct parser_state".
1753 (f_parse): Add "struct parser_state" argument.
1754 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1756 (yyparse): Redefine macro for java_parse_internal.
1757 (pstate): New variable.
1758 (push_expression_name, push_expression_name, insert_exp): Add
1759 "struct parser_state" argument.
1760 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1761 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1762 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1763 PostIncrementExpression, PostDecrementExpression,
1764 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1765 UnaryExpressionNotPlusMinus, CastExpression,
1766 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1767 RelationalExpression, EqualityExpression, AndExpression,
1768 ExclusiveOrExpression, InclusiveOrExpression,
1769 ConditionalAndExpression, ConditionalOrExpression,
1770 ConditionalExpression, Assignment, LeftHandSide): Update
1771 calls to write_exp* and similars in order to use parser state.
1772 (parse_number): Ajust code to use parser state.
1774 (java_parse): New function.
1775 (push_variable): Add "struct parser_state" argument. Adjust
1776 code to user parser state.
1777 (push_fieldnames, push_qualified_expression_name,
1778 push_expression_name, insert_exp): Likewise.
1779 * jv-lang.h: Forward declare "struct parser_state".
1780 (java_parse): Add "struct parser_state" argument.
1781 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1783 (yyparse): Redefine macro to m2_parse_internal.
1784 (pstate): New variable.
1785 (type_exp, exp, fblock, variable, type): Update calls to
1786 write_exp* and similars to use parser state.
1788 (m2_parse): New function.
1789 * m2-lang.h: Forward declare "struct parser_state".
1790 (m2_parse): Add "struct parser_state" argument.
1791 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1792 * objc-lang.h: Forward declare "struct parser_state".
1793 (end_msglist): Add "struct parser_state" argument.
1794 * p-exp.y (parse_type): Rewrite macro to use parser state.
1795 (yyparse): Redefine macro to pascal_parse_internal.
1796 (pstate): New variable.
1797 (parse_number): Add "struct parser_state" argument.
1798 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1799 write_exp* and similars in order to use parser state.
1800 (parse_number, yylex): Adjust code to use parser state.
1801 (pascal_parse): New function.
1802 * p-lang.h: Forward declare "struct parser_state".
1803 (pascal_parse): Add "struct parser_state" argument.
1804 * go-exp.y (parse_type): Rewrite macro to use parser state.
1805 (yyparse): Redefine macro to go_parse_internal.
1806 (pstate): New variable.
1807 (parse_number): Add "struct parser_state" argument.
1808 (type_exp, exp1, exp, variable, type): Update calls to
1809 write_exp* and similars in order to use parser state.
1810 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1811 to use parser state.
1812 (go_parse): Likewise.
1813 * go-lang.h: Forward declare "struct parser_state".
1814 (go_parse): Add "struct parser_state" argument.
1816 2014-03-27 Doug Evans <dje@google.com>
1818 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1820 2014-03-27 Doug Evans <dje@google.com>
1822 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1823 Remove argument abbrev_section. All callers updated.
1825 2014-03-27 Doug Evans <dje@google.com>
1827 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1828 addr_base, ranges_base.
1830 2014-03-26 Keith Seitz <keiths@redhat.com>
1832 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1833 types, not VAR_DOMAIN.
1835 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1837 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1839 * features/nios2-linux.c: Regenerated.
1840 * features/nios2.c: Regenerated.
1842 2014-03-25 Pedro Alves <palves@redhat.com>
1844 * cli/cli-script.c (script_from_file): Force the interpreter to
1847 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1849 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1850 small stack allocation.
1852 2014-03-24 Tristan Gingold <gingold@adacore.com>
1854 * darwin-nat.c (exc_server): Remove unused prototype.
1855 (darwin_dump_message): Correctly display data on x86_64.
1856 (darwin_encode_reply): Fix style.
1857 Add comments and fix indentation.
1859 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1861 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1863 2014-03-22 Doug Evans <xdje42@gmail.com>
1865 * infcmd.c: Whitespace fixes.
1866 (interrupt_command): Merge two function comments into one.
1868 2014-03-22 Doug Evans <xdje42@gmail.com>
1870 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1873 2014-03-22 Yao Qi <yao@codesourcery.com>
1875 * remote.c (target_read_live_memory): Remove.
1876 (memory_xfer_live_readonly_partial): Rename it to
1877 remote_xfer_live_readonly_partial. Remove argument 'object'.
1878 All callers updated. Call remote_read_bytes_1
1879 instead of target_read_live_memory.
1880 * tracepoint.c (set_traceframe_number): Remove.
1881 (make_cleanup_restore_traceframe_number): Likewise .
1882 * tracepoint.h (set_traceframe_number): Remove declaration.
1883 (make_cleanup_restore_traceframe_number): Likewise.
1885 2014-03-22 Yao Qi <yao@codesourcery.com>
1887 * remote.c (remote_read_bytes): Move code on reading from the
1889 (remote_read_bytes_1): ... here. New function.
1891 2014-03-22 Yao Qi <yao@codesourcery.com>
1893 * ctf.c (ctf_xfer_partial): Check the return value of
1894 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1895 return TARGET_XFER_UNAVAILABLE.
1896 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1897 * target.c (target_read_live_memory): Move it to remote.c.
1898 (memory_xfer_live_readonly_partial): Likewise.
1899 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1900 * remote.c (target_read_live_memory): Moved from target.c.
1901 (memory_xfer_live_readonly_partial): Likewise.
1902 (remote_read_bytes): Factored out from
1903 memory_xfer_partial_1.
1905 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1907 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1910 2014-03-21 Pedro Alves <palves@redhat.com>
1912 * infrun.c (normal_stop): Extend comment.
1914 2014-03-21 Hui Zhu <hui@codesourcery.com>
1915 Pedro Alves <palves@redhat.com>
1917 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1919 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1920 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1921 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1923 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1925 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1926 `z' formatted output modifier.
1928 2014-03-20 Tom Tromey <tromey@redhat.com>
1929 Sergio Durigan Junior <sergiodj@redhat.com>
1931 * probe.c (parse_probes): Turn assert into an ordinary error.
1932 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1933 exceptions when parsing probes. Rearrange the code for clarity.
1935 2014-03-20 Tom Tromey <tromey@redhat.com>
1938 * top.c (execute_command): Only dispatch events if the command
1941 2014-03-20 Tom Tromey <tromey@redhat.com>
1944 * infcall.c: Include event-top.h.
1945 (run_inferior_call): Call async_disable_stdin if needed.
1947 2014-03-20 Pedro Alves <palves@redhat.com>
1949 * infrun.c (prepare_to_proceed): Delete.
1950 (thread_still_needs_step_over): New function.
1951 (find_thread_needs_step_over): New function.
1952 (proceed): If the current thread needs a step-over, set its
1953 steping_over_breakpoint flag. Adjust to use
1954 find_thread_needs_step_over instead of prepare_to_proceed.
1955 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1956 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1958 (switch_back_to_stepped_thread): Step over breakpoints of all
1959 threads not the stepping thread, before switching back to the
1962 2014-03-20 Pedro Alves <palves@redhat.com>
1964 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1966 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1967 * infrun.c (saved_singlestep_ptid)
1968 (stepping_past_singlestep_breakpoint): Delete.
1969 (resume): Remove stepping_past_singlestep_breakpoint handling.
1970 (proceed): Store the prev_pc of the stepping thread too.
1971 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1973 (enum infwait_states): Delete infwait_thread_hop_state.
1974 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1976 (handle_inferior_event): Adjust.
1977 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1978 handling and the thread-hop code. Before removing single-step
1979 breakpoints, check whether the thread hit a single-step breakpoint
1980 of another thread. If it did, the trap is not a random signal.
1981 (switch_back_to_stepped_thread): If the event thread hit a
1982 single-step breakpoint, unblock it before switching to the
1983 stepping thread. Handle the case of the stepped thread having
1985 (keep_going): Handle the case of the current thread moving past a
1986 single-step breakpoint.
1988 2014-03-20 Pedro Alves <palves@redhat.com>
1991 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1992 are being stepped over.
1993 (breakpoint_address_match): Make extern.
1994 * breakpoint.h (breakpoint_address_match): New declaration.
1995 * inferior.h (stepping_past_instruction_at): New declaration.
1996 * infrun.c (struct step_over_info): New type.
1997 (step_over_info): New global.
1998 (set_step_over_info, clear_step_over_info)
1999 (stepping_past_instruction_at): New functions.
2000 (handle_inferior_event): Clear the step-over info when
2001 trap_expected is cleared.
2002 (resume): Remove now stale comment.
2003 (clear_proceed_status): Clear step-over info.
2004 (proceed): Adjust step-over handling to set or clear the step-over
2005 info instead of removing all breakpoints.
2006 (handle_signal_stop): When setting up a thread-hop, don't remove
2008 (stop_stepping): Clear step-over info.
2009 (keep_going): Adjust step-over handling to set or clear step-over
2010 info and then always inserting breakpoints, instead of removing
2011 all breakpoints when stepping over one.
2013 2014-03-20 Pedro Alves <palves@redhat.com>
2015 * infrun.c (previous_inferior_ptid): Adjust comment.
2016 (deferred_step_ptid): Delete.
2017 (infrun_thread_ptid_changed, prepare_to_proceed)
2018 (init_wait_for_inferior): Adjust.
2019 (handle_signal_stop): Delete deferred_step_ptid handling.
2021 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2024 * defs.h (sync_quit_force_run): New declaration.
2025 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2026 * event-top.c (async_sigterm_handler): New declaration.
2027 (async_sigterm_token): New variable.
2028 (async_init_signals): Create also async_sigterm_token.
2029 (async_sigterm_handler): New function.
2030 (sync_quit_force_run): New variable.
2031 (handle_sigterm): Replace quit_force call by other calls.
2032 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2034 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2036 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2037 offset into SPE pseudo registers.
2039 2014-03-18 Pedro Alves <palves@redhat.com>
2042 * inferior.h (print_stop_event): Declare.
2043 * infrun.c (print_stop_event): New, factored out from ...
2044 (normal_stop): ... this.
2045 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2046 of bpstat_print/print_stack_frame.
2048 2014-03-17 Tom Tromey <tromey@redhat.com>
2050 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2052 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2054 * ada-lang.c (decode_constrained_packed_array): Perform a
2055 minimal coercion for reference with coerce_ref instead of
2058 2014-03-17 Tristan Gingold <gingold@adacore.com>
2060 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2061 (darwin_solib_create_inferior_hook): Emit a warning if version
2064 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2066 * python/py-value.c (get_field_flag): Cast flag_name argument to
2067 PyObject_GetAttrString to support Python 2.4.
2069 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2071 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2072 (Global Maintainers): Remove Jan Kratochvil.
2074 2014-03-14 Pedro Alves <palves@redhat.com>
2076 * inferior.h (terminal_ours_for_output): Rename to ...
2077 (child_terminal_ours_for_output): ... this.
2078 (terminal_save_ours): Rename to ...
2079 (child_terminal_save_ours): ... this.
2080 (terminal_ours): Rename to ...
2081 (child_terminal_ours): ... this.
2082 (terminal_inferior): Rename to ...
2083 (child_terminal_inferior): ... this.
2084 (terminal_init_inferior): Rename to ...
2085 (child_terminal_init_inferior): ... this.
2086 (terminal_init_inferior_with_pgrp): Rename to ...
2087 (child_terminal_init_inferior_with_pgrp): ... this.
2088 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2089 (child_terminal_init_with_pgrp): ... this.
2090 (terminal_save_ours): Rename to ...
2091 (child_terminal_save_ours): ... this.
2092 (terminal_init_inferior): Rename to ...
2093 (child_terminal_init): ... this. Adjust.
2094 (terminal_inferior): Rename to ...
2095 (child_terminal_inferior): ... this.
2096 (terminal_ours_for_output): Rename to ...
2097 (child_terminal_ours_for_output): ... this. Adjust.
2098 (terminal_ours): Rename to ...
2099 (child_terminal_ours): ... this.
2100 (terminal_ours_1): Rename to ...
2101 (child_terminal_ours_1): ... this. Adjust.
2102 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2103 * windows-nat.c (do_initial_windows_stuff): Adjust.
2104 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2105 (gnu_terminal_init): ... this. Adjust.
2106 (gnu_target): Adjust.
2107 * inf-child.c (inf_child_target): Adjust.
2109 2014-03-13 Doug Evans <xdje42@gmail.com>
2112 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2115 2014-03-13 Doug Evans <xdje42@gmail.com>
2117 * value.c (record_latest_value): Call release_value_or_incref
2118 instead of release_value.
2120 2014-03-13 Pedro Alves <palves@redhat.com>
2122 * procfs.c (procfs_target): Don't override to_shortname,
2123 to_longname or to_doc.
2125 2014-03-13 Pedro Alves <palves@redhat.com>
2127 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2128 Unix in user visible strings.
2130 2014-03-12 Stan Shebs <stan@codesourcery.com>
2132 * gdbtypes.h: Annotate comments for Doxygen, add a page
2133 block comment with some general info.
2135 2014-03-12 Pedro Alves <palves@redhat.com>
2137 * infcmd.c (prepare_execution_command): New function, factored out
2138 from several execution commands.
2139 (run_command_1, continue_command, step_1, jump_command)
2140 (signal_command, until_command, advance_command, finish_command)
2141 (attach_command): Use prepare_execution_command.
2143 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2145 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2148 (struct arm_linux_thread_points): Removed.
2149 (struct arm_linux_process_info): New.
2150 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2151 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2152 (arm_linux_find_breakpoints_by_tid): Removed.
2153 (struct arch_lwp_info): New.
2154 (arm_linux_find_process_pid): New functions.
2155 (arm_linux_add_process): New functions.
2156 (arm_linux_process_info_get): New functions.
2157 (arm_linux_forget_process): New function.
2158 (arm_linux_get_debug_reg_state): New function.
2159 (struct update_registers_data): New.
2160 (update_registers_callback): New function.
2161 (arm_linux_insert_hw_breakpoint1): Updated.
2162 (arm_linux_remove_hw_breakpoint1): Updated.
2163 (arm_linux_insert_hw_breakpoint): Updated.
2164 (arm_linux_remove_hw_breakpoint): Updated.
2165 (arm_linux_insert_watchpoint): Updated.
2166 (arm_linux_remove_watchpoint): Updated.
2167 (arm_linux_new_thread): Updated.
2168 (arm_linux_prepare_to_resume): New function.
2169 (arm_linux_new_fork): New function.
2170 (_initialize_arm_linux_nat): Updated.
2172 2014-03-12 Pedro Alves <palves@redhat.com>
2174 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2176 2014-03-12 Tom Tromey <tromey@redhat.com>
2178 * inf-child.c (return_zero): New function.
2179 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2180 * aix-thread.c (aix_thread_inferior_created): New function.
2181 (aix_thread_attach): Remove.
2182 (init_aix_thread_ops): Don't set to_attach.
2183 (_initialize_aix_thread): Register inferior_created observer.
2184 * corelow.c (init_core_ops): Don't set to_attach or
2186 * exec.c (init_exec_ops): Don't set to_attach or
2188 * infcmd.c (run_command_1): Use find_run_target. Make direct
2190 (attach_command): Use find_attach_target. Make direct target
2192 * record-btrace.c (init_record_btrace_ops): Don't set
2194 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2196 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2197 set to_create_inferior.
2198 * target.c (complete_target_initialization): Add assertion.
2199 (target_create_inferior): Remove.
2200 (find_default_attach, find_default_create_inferior): Remove.
2201 (find_attach_target, find_run_target): New functions.
2202 (find_default_is_async_p, find_default_can_async_p)
2203 (target_supports_non_stop, target_attach): Remove.
2204 (init_dummy_target): Don't set to_create_inferior or
2205 to_supports_non_stop.
2206 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2207 TARGET_DEFAULT_FUNC.
2208 <to_create_inferior>: Add comment.
2209 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2210 TARGET_DEFAULT_RETURN.
2211 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2212 (find_attach_target, find_run_target): Declare.
2213 (target_create_inferior): Remove.
2214 (target_has_execution_1): Update comment.
2215 (target_supports_non_stop): Remove.
2216 * target-delegates.c: Rebuild.
2218 2014-03-12 Pedro Alves <palves@redhat.com>
2220 * inf-child.h: Update comment to not mention Unix.
2222 2014-03-12 Pedro Alves <palves@redhat.com>
2224 * inf-child.c: Update top comment to not mention Unix. Add
2225 generic comment describing how this target is meant to be used.
2226 (inf_child_post_attach, inf_child_post_startup_inferior)
2227 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2230 2014-03-12 Pedro Alves <palves@redhat.com>
2232 * nto-procfs.c: Include inf-child.h.
2233 (procfs_ops): Delete global.
2234 (procfs_can_run): Delete method.
2235 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2236 target pointer instead of referencing procfs_ops.
2237 (procfs_prepare_to_store): Delete.
2238 (init_procfs_ops): Delete function.
2239 (procfs_target): New function, based on init_procfs_ops, but
2240 inherit inf_child_target.
2241 (_initialize_procfs): Use procfs_target.
2243 2014-03-12 Pedro Alves <palves@redhat.com>
2245 * windows-nat.c: Include inf-child.h.
2246 (windows_ops): Delete global.
2247 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2249 (init_windows_ops): Delete function.
2250 (windows_target): New function, based on init_windows_ops, but
2251 inherit inf_child_target.
2252 (_initialize_windows_nat): Use windows_target. Install x86
2253 specific target methods here.
2255 2014-03-10 Doug Evans <xdje42@gmail.com>
2257 * guile/guile.c (call_initialize_gdb_module): New function.
2258 (initialize_guile): Replace call to scm_init_guile with call to
2261 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2263 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2264 in call to TYPE_CODE macro.
2266 2014-03-10 Jerome Guitton <guitton@adacore.com>
2268 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2269 Resolve tagged types to full view.
2271 2014-03-10 Hui Zhu <hui@codesourcery.com>
2273 * target.h (target_insert_breakpoint): Remove "hardware" from its
2276 2014-03-07 Doug Evans <dje@google.com>
2278 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2280 2014-03-07 Doug Evans <dje@google.com>
2282 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2283 Remove unused local comp_dir_attr. Assert exactly one of
2284 stub_comp_unit_die, stub_comp_dir is non-NULL.
2286 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2288 * target.h (complete_target_initialization, add_target):
2291 2014-03-07 Pedro Alves <palves@redhat.com>
2293 * go32-nat.c: Include inf-child.h.
2294 (go32_ops): Delete global.
2295 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2297 (go32_create_inferior): Push the passed in target pointer instead
2298 of referencing go32_ops.
2299 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2300 (go32_target): New function, based on init_go32_ops, but inherit
2302 (_initialize_go32_nat): Use go32_target. Move parts of
2305 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2307 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2308 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2309 SYMBOL_VALUE_ADDRESS.
2310 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2312 2014-03-06 Yao Qi <yao@codesourcery.com>
2314 * breakpoint.c (get_tracepoint_by_number): Remove argument
2315 optional_p. All callers updated. Adjust comments. Update
2317 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2319 2014-03-06 Yao Qi <yao@codesourcery.com>
2321 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2322 early if get_number returns zero. Use 'p' instead of 'args'.
2324 2014-03-06 Yao Qi <yao@codesourcery.com>
2326 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2329 2014-03-06 Yao Qi <yao@codesourcery.com>
2331 PR breakpoints/16508
2332 * tracepoint.c (check_trace_running): New function.
2333 (trace_find_command): Move code to check_trace_running and
2334 call check_trace_running.
2335 (trace_find_pc_command): Likewise.
2336 (trace_find_tracepoint_command): Likewise.
2337 (trace_find_line_command): Likewise.
2338 (trace_find_range_command): Likewise.
2339 * tracepoint.h (check_trace_running): Likewise.
2340 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2342 2014-03-06 Yao Qi <yao@codesourcery.com>
2344 * target.h (struct target_ops) <to_traceframe_info>: Use
2345 TARGET_DEFAULT_NORETURN (tcomplain ()).
2346 * target-delegates.c: Regenerated.
2348 2014-03-05 Pedro Alves <palves@redhat.com>
2351 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2352 void. Update comment.
2353 (dcache_xfer_memory): Delete.
2354 (dcache_read_memory_partial): New, based on the read bits of
2356 (dcache_update): Add status parameter. Use ULONGEST for len, and
2357 adjust. Discard cache lines if the reason for the update was
2359 * dcache.h (dcache_xfer_memory): Delete declaration.
2360 (dcache_read_memory_partial): New declaration.
2361 (dcache_update): Update prototype.
2362 * target.c (raw_memory_xfer_partial): Update the dcache here.
2363 (memory_xfer_partial_1): Don't handle dcache writes here.
2365 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2367 * remote-sim.c (gdbsim_load): Add const to prog.
2369 2014-03-03 Tom Tromey <tromey@redhat.com>
2371 * elfread.c (probe_key): Change to bfd_data.
2372 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2373 now per-BFD, not per-objfile.
2374 * stap-probe.c (stap_probe_destroy): Update comment.
2375 (handle_stap_probe): Allocate on the per-BFD obstack.
2377 2014-03-03 Tom Tromey <tromey@redhat.com>
2379 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2380 * breakpoint.c (create_longjmp_master_breakpoint): Use
2382 (add_location_to_breakpoint, bkpt_probe_insert_location)
2383 (bkpt_probe_remove_location): Update.
2384 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2385 * elfread.c (elf_symfile_relocate_probe): Remove.
2386 (elf_probe_fns): Update.
2387 (insert_exception_resume_breakpoint): Change type of "probe"
2388 parameter to bound_probe.
2389 (check_exception_resume): Update.
2390 * objfiles.c (objfile_relocate1): Don't relocate probes.
2391 * probe.c (bound_probe_s): New typedef.
2392 (parse_probes): Use get_probe_address. Set sal's objfile.
2393 (find_probe_by_pc): Return a bound_probe.
2394 (collect_probes): Return a VEC(bound_probe_s).
2395 (compare_probes): Update.
2396 (gen_ui_out_table_header_info): Change type of "probes"
2398 (info_probes_for_ops): Update.
2399 (get_probe_address): New function.
2400 (probe_safe_evaluate_at_pc): Update.
2401 * probe.h (struct probe_ops) <get_probe_address>: New field.
2402 <set_semaphore, clear_semaphore>: Add objfile parameter.
2403 (struct probe) <objfile>: Remove field.
2405 <address>: Update comment.
2406 (struct bound_probe): New.
2407 (find_probe_by_pc): Return a bound_probe.
2408 (get_probe_address): Declare.
2409 * solib-svr4.c (struct probe_and_action) <address>: New field.
2410 (hash_probe_and_action, equal_probe_and_action): Update.
2411 (register_solib_event_probe): Add address parameter.
2412 (solib_event_probe_at): Update.
2413 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2415 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2416 (stap_get_probe_address): New function.
2417 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2418 (compile_probe_arg): Update.
2419 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2421 (handle_stap_probe): Don't relocate the probe.
2422 (stap_relocate): Remove.
2423 (stap_gen_info_probes_table_values): Update.
2424 (stap_probe_ops): Remove stap_relocate.
2425 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2426 (debug_sym_probe_fns): Update.
2427 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2428 * symtab.c (init_sal): Use memset.
2429 * symtab.h (struct symtab_and_line) <objfile>: New field.
2430 * tracepoint.c (start_tracing, stop_tracing): Update.
2432 2014-03-03 Tom Tromey <tromey@redhat.com>
2434 * probe.h (parse_probes, find_probe_by_pc)
2435 (find_probes_in_objfile): Fix comments.
2437 2014-03-02 Doug Evans <xdje42@gmail.com>
2439 * infrun.c (handle_signal_stop): Replace test for
2440 TARGET_WAITKIND_STOPPED with an assert.
2442 2014-03-02 Doug Evans <xdje42@gmail.com>
2444 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2446 2014-03-02 Doug Evans <xdje42@gmail.com>
2448 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2450 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2452 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2454 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2456 * i386obsd-nat.c: Include "obsd-nat.h".
2457 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2459 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2461 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2463 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2465 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2467 * mips64obsd-nat.c: Include "obsd-nath".
2468 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2470 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2472 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2474 * amd64obsd-nat.c: Include "obsd-nat,h.
2475 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2477 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2479 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2481 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2482 (find_overload_match): Update call to find_oload_champ.
2483 (find_oload_champ_namespace_loop): Likewise
2485 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2487 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2489 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2490 * config/sparc/obsd64.mh: New file.
2491 * sparc64obsd-nat.c: New file.
2493 * obsd-nat.h: New file.
2494 * obsd-nat.c: New file.
2495 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2496 (ALLDEPFILES): Add obsd-nat.c.
2498 2014-02-28 Tom Tromey <tromey@redhat.com>
2500 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2501 * cli-out.h (cli_ui_out_impl): Now const.
2502 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2503 * ui-out.c (struct ui_out) <impl>: Now const.
2504 (default_ui_out_impl): Now const.
2505 (ui_out_new): Make 'impl' parameter const.
2506 * ui-out.h (ui_out_new): Update.
2508 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2510 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2512 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2514 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2516 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2518 Additional PR 8882 fix.
2519 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2521 2014-02-27 Pedro Alves <palves@redhat.com>
2523 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2526 2014-02-27 Pedro Alves <palves@redhat.com>
2529 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2530 * nat/linux-waitpid.c: Include string.h.
2531 (status_to_str): Moved here and made extern.
2532 * nat/linux-waitpid.h (status_to_str): New declaration.
2534 2014-02-27 Hui Zhu <hui@codesourcery.com>
2537 * infrun.c (ptid_match): Move ...
2538 * common/ptid.c (ptid_match): ... here.
2539 * inferior.h (ptid_match): Move ...
2540 * common/ptid.h (ptid_match): ... here.
2542 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2544 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2545 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2548 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2550 * obsd-tdep.c (obsd_auxv_parse): New function.
2551 (obsd_init_abi): Set auxv_parse.
2553 * gdbarch.sh (auxv_parse): New.
2554 * gdbarch.h: Regenerated.
2555 * gdbarch.c: Regenerated.
2556 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2558 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2560 * guile/scm-value.c (gdbscm_history_append_x): New function.
2561 (value_functions): Add it.
2563 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2565 * dwarf2read.c (attr_value_as_address): New function.
2566 (dwarf2_find_base_address, read_call_site_scope): Use
2567 attr_value_as_address in place of DW_ADDR.
2568 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2569 the low and high addresses. Slight rework of the handling
2570 of the high pc being a constant form, and limit it to
2571 DWARF verson 4 or higher.
2572 (dwarf2_record_block_ranges): Likewise.
2573 (read_partial_die): Likewise.
2574 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2576 2014-02-26 Tom Tromey <tromey@redhat.com>
2578 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2580 2014-02-26 Tom Tromey <tromey@redhat.com>
2582 * elfread.c (elf_read_minimal_symbols): Return early if
2583 minimal symbols have already been read. Add "ei" parameter.
2584 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2585 * minsyms.c (prim_record_minimal_symbol_full): Update.
2586 * objfiles.h (struct objstats) <n_minsyms>: Move...
2587 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2588 * symmisc.c (print_objfile_statistics): Update.
2590 2014-02-26 Tom Tromey <tromey@redhat.com>
2592 * elfread.c (elf_read_minimal_symbols): New function, from
2594 (elf_symfile_read): Call it.
2596 2014-02-26 Tom Tromey <tromey@redhat.com>
2598 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2599 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2600 (lookup_minimal_symbol_solib_trampoline)
2601 (lookup_minimal_symbol_by_pc_section_1)
2602 (lookup_minimal_symbol_and_objfile): Update.
2603 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2604 Don't allocate a minimal symbol if minsyms have already been read.
2605 (build_minimal_symbol_hash_tables): Update.
2606 (install_minimal_symbols): Do nothing if minsyms already read.
2607 Use the per-BFD obstack.
2608 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2609 * objfiles.c (allocate_objfile): Call
2610 terminate_minimal_symbol_table later.
2611 (have_minimal_symbols): Update.
2612 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2613 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2614 Move from struct objfile.
2615 <minsyms_read>: New field.
2616 (struct objfile) <msymbols, minimal_symbol_count,
2617 msymbol_hash, msymbol_demangled_hash>: Move.
2618 (ALL_OBJFILE_MSYMBOLS): Update.
2619 * symfile.c (read_symbols): Set minsyms_read.
2620 (reread_symbols): Update.
2621 * symmisc.c (dump_objfile, dump_msymbols): Update.
2623 2014-02-26 Tom Tromey <tromey@redhat.com>
2625 * minsyms.c (msymbols_sort): Remove.
2626 * minsyms.h (msymbols_sort): Remove.
2627 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2628 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2629 * elfread.c (elf_symtab_read): Don't add section offsets.
2630 * xcoffread.c (record_minimal_symbol): Don't add section offset
2631 to minimal symbol address.
2632 * somread.c (text_offset, data_offset): Remove.
2633 (som_symtab_read): Don't add section offsets to minimal symbol
2635 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2636 Don't add section offsets to minimal symbols.
2637 * coffread.c (coff_symtab_read): Don't add section offsets
2638 to minimal symbol addresses.
2639 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2640 to minimal symbol addresses.
2641 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2642 section offset to minimal symbol addresses.
2643 * mdebugread.c (parse_partial_symbols): Don't add section
2644 offset to minimal symbol addresses.
2645 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2646 offset to minimal symbol addresses.
2648 2014-02-26 Tom Tromey <tromey@redhat.com>
2650 * ada-lang.c (ada_main_name): Update.
2651 (ada_add_standard_exceptions): Update.
2652 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2653 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2654 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2655 * auxv.c (ld_so_xfer_auxv): Update.
2656 * avr-tdep.c (avr_scan_prologue): Update.
2657 * ax-gdb.c (gen_var_ref): Update.
2658 * blockframe.c (get_pc_function_start)
2659 (find_pc_partial_function_gnu_ifunc): Update.
2660 * breakpoint.c (create_overlay_event_breakpoint)
2661 (create_longjmp_master_breakpoint)
2662 (create_std_terminate_master_breakpoint)
2663 (create_exception_master_breakpoint): Update.
2664 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2665 * c-valprint.c (c_val_print): Update.
2666 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2667 * common/agent.c (agent_look_up_symbols): Update.
2668 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2669 * dwarf2loc.c (call_site_to_target_addr): Update.
2670 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2671 * elfread.c (elf_gnu_ifunc_record_cache)
2672 (elf_gnu_ifunc_resolve_by_got): Update.
2673 * findvar.c (default_read_var_value): Update.
2674 * frame.c (inside_main_func): Update.
2675 * frv-tdep.c (frv_frame_this_id): Update.
2676 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2677 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2679 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2680 (hppa_hpux_find_dummy_bpaddr): Update.
2681 * hppa-tdep.c (hppa_symbol_address): Update.
2682 * infcmd.c (until_next_command): Update.
2683 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2685 * linespec.c (minsym_found, add_minsym): Update.
2686 * linux-nat.c (get_signo): Update.
2687 * linux-thread-db.c (inferior_has_bug): Update.
2688 * m32c-tdep.c (m32c_return_value)
2689 (m32c_m16c_address_to_pointer): Update.
2690 * m32r-tdep.c (m32r_frame_this_id): Update.
2691 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2692 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2693 * maint.c (maintenance_translate_address): Update.
2694 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2695 (frob_address): New function.
2696 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2697 frob_address. Rename parameter to "pc_in".
2698 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2700 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2702 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2703 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2704 * objc-lang.c (find_objc_msgsend): Update.
2705 * objfiles.c (objfile_relocate1): Update.
2706 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2707 * p-valprint.c (pascal_val_print): Update.
2708 * parse.c (write_exp_msymbol): Update.
2709 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2710 (ppc_elfv2_skip_entrypoint): Update.
2711 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2712 * printcmd.c (build_address_symbolic, msym_info)
2713 (address_info): Update.
2714 * proc-service.c (ps_pglobal_lookup): Update.
2715 * psymtab.c (find_pc_sect_psymtab_closer)
2716 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2717 Change msymbol parameter to bound_minimal_symbol.
2718 * ravenscar-thread.c (get_running_thread_id): Update.
2719 * remote.c (remote_check_symbols): Update.
2720 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2722 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2723 * solib-dsbt.c (lm_base): Update.
2724 * solib-frv.c (lm_base, main_got): Update.
2725 * solib-irix.c (locate_base): Update.
2726 * solib-som.c (som_solib_create_inferior_hook)
2727 (link_map_start): Update.
2728 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2729 * solib-svr4.c (elf_locate_base, enable_break): Update.
2730 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2731 (flush_ea_cache): Update.
2732 * stabsread.c (define_symbol, scan_file_globals): Update.
2733 * stack.c (find_frame_funname): Update.
2734 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2735 (debug_qf_find_pc_sect_symtab): Update.
2736 * symfile.c (simple_read_overlay_table)
2737 (simple_overlay_update): Update.
2738 * symfile.h (struct quick_symbol_functions)
2739 <find_pc_sect_symtab>: Change type of msymbol to
2740 bound_minimal_symbol.
2741 * symmisc.c (dump_msymbols): Update.
2742 * symtab.c (find_pc_sect_symtab_via_partial)
2743 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2744 (search_symbols, print_msymbol_info): Update.
2745 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2746 (MSYMBOL_VALUE_ADDRESS): Redefine.
2747 (BMSYMBOL_VALUE_ADDRESS): New macro.
2748 * tracepoint.c (scope_info): Update.
2749 * tui/tui-disasm.c (tui_find_disassembly_address)
2750 (tui_get_begin_asm_address): Update.
2751 * valops.c (find_function_in_inferior): Update.
2752 * value.c (value_static_field, value_fn_field): Update.
2754 2014-02-26 Tom Tromey <tromey@redhat.com>
2756 * ada-lang.c (ada_update_initial_language): Update.
2757 (ada_main_name, ada_has_this_exception_support): Update.
2758 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2759 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2760 * arm-tdep.c (arm_skip_stub): Update.
2761 * auxv.c (ld_so_xfer_auxv): Update.
2762 * avr-tdep.c (avr_scan_prologue): Update.
2763 * ax-gdb.c (gen_var_ref): Update.
2764 * breakpoint.c (struct breakpoint_objfile_data)
2765 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2766 type to bound_minimal_symbol.
2767 (create_overlay_event_breakpoint)
2768 (create_longjmp_master_breakpoint)
2769 (create_std_terminate_master_breakpoint)
2770 (create_exception_master_breakpoint): Update.
2771 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2772 * c-exp.y (classify_name): Update.
2773 * coffread.c (coff_symfile_read): Update.
2774 * common/agent.c (agent_look_up_symbols): Update.
2775 * d-lang.c (d_main_name): Update.
2776 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2777 * dec-thread.c (enable_dec_thread): Update.
2778 * dwarf2loc.c (call_site_to_target_addr): Update.
2779 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2780 * eval.c (evaluate_subexp_standard): Update.
2781 * findvar.c (struct minsym_lookup_data) <result>: Change type
2782 to bound_minimal_symbol.
2784 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2785 * frame.c (inside_main_func): Update.
2786 * frv-tdep.c (frv_frame_this_id): Update.
2787 * gcore.c (call_target_sbrk): Update.
2788 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2789 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2791 * go-lang.c (go_main_name): Update.
2792 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2793 (hppa_hpux_find_import_stub_for_addr): Update.
2794 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2795 Update. Change return type.
2796 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2798 * jit.c (jit_breakpoint_re_set_internal): Update.
2799 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2801 * linux-nat.c (get_signo): Update.
2802 * linux-thread-db.c (inferior_has_bug): Update
2803 * m32c-tdep.c (m32c_return_value)
2804 (m32c_m16c_address_to_pointer): Update.
2805 * m32r-tdep.c (m32r_frame_this_id): Update.
2806 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2807 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2808 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2809 lookup_minimal_symbol. Change return type.
2810 (lookup_minimal_symbol): Remove.
2811 (lookup_bound_minimal_symbol): Update.
2812 (lookup_minimal_symbol_text): Change return type.
2813 (lookup_minimal_symbol_solib_trampoline): Change return type.
2814 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2815 (lookup_minimal_symbol_solib_trampoline): Change return type.
2816 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2817 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2818 (value_nsstring, find_imps): Update.
2819 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2820 * p-lang.c (pascal_main_name): Update.
2821 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2822 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2823 * proc-service.c (ps_pglobal_lookup): Update.
2824 * ravenscar-thread.c (get_running_thread_msymbol): Change
2826 (has_ravenscar_runtime, get_running_thread_id): Update.
2827 * remote.c (remote_check_symbols): Update.
2828 * sol-thread.c (ps_pglobal_lookup): Update.
2829 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2830 * solib-dsbt.c (lm_base): Update.
2831 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2833 * solib-irix.c (locate_base): Update.
2834 * solib-som.c (som_solib_create_inferior_hook)
2835 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2837 * solib-spu.c (spu_enable_break): Update.
2838 * solib-svr4.c (elf_locate_base, enable_break): Update.
2839 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2840 (flush_ea_cache): Update.
2841 * stabsread.c (define_symbol): Update.
2842 * symfile.c (simple_read_overlay_table): Update.
2843 * symtab.c (find_pc_sect_line): Update.
2844 * tracepoint.c (scope_info): Update.
2845 * tui-disasm.c (tui_get_begin_asm_address): Update.
2846 * value.c (value_static_field): Update.
2848 2014-02-26 Tom Tromey <tromey@redhat.com>
2850 * minsyms.c (prim_record_minimal_symbol_full): Use
2851 SET_MSYMBOL_VALUE_ADDRESS.
2852 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2853 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2854 SET_MSYMBOL_VALUE_ADDRESS.
2855 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2856 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2858 2014-02-26 Tom Tromey <tromey@redhat.com>
2860 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2861 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2862 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2863 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2864 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2865 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2866 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2867 * ada-lang.c (ada_main_name): Update.
2868 (ada_lookup_simple_minsym): Update.
2869 (ada_make_symbol_completion_list): Update.
2870 (ada_add_standard_exceptions): Update.
2871 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2872 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2873 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2874 * arm-tdep.c (skip_prologue_function): Update.
2875 (arm_skip_stack_protector, arm_skip_stub): Update.
2876 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2877 (arm_wince_skip_main_prologue): Update.
2878 * auxv.c (ld_so_xfer_auxv): Update.
2879 * avr-tdep.c (avr_scan_prologue): Update.
2880 * ax-gdb.c (gen_var_ref): Update.
2881 * block.c (call_site_for_pc): Update.
2882 * blockframe.c (get_pc_function_start): Update.
2883 (find_pc_partial_function_gnu_ifunc): Update.
2884 * breakpoint.c (create_overlay_event_breakpoint): Update.
2885 (create_longjmp_master_breakpoint): Update.
2886 (create_std_terminate_master_breakpoint): Update.
2887 (create_exception_master_breakpoint): Update.
2888 (resolve_sal_pc): Update.
2889 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2890 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2892 * c-valprint.c (c_val_print): Update.
2893 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2894 * coffread.c (coff_symfile_read): Update.
2895 * common/agent.c (agent_look_up_symbols): Update.
2896 * dbxread.c (find_stab_function_addr): Update.
2897 (end_psymtab): Update.
2898 * dwarf2loc.c (call_site_to_target_addr): Update.
2899 (func_verify_no_selftailcall): Update.
2900 (tailcall_dump): Update.
2901 (call_site_find_chain_1): Update.
2902 (dwarf_expr_reg_to_entry_parameter): Update.
2903 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2904 (elf_gnu_ifunc_resolve_by_got): Update.
2905 * f-valprint.c (info_common_command): Update.
2906 * findvar.c (read_var_value): Update.
2907 * frame.c (get_prev_frame_1): Update.
2908 (inside_main_func): Update.
2909 * frv-tdep.c (frv_skip_main_prologue): Update.
2910 (frv_frame_this_id): Update.
2911 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2912 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2913 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2914 (gnuv3_skip_trampoline): Update.
2915 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2916 (hppa64_hpux_in_solib_call_trampoline): Update.
2917 (hppa_hpux_skip_trampoline_code): Update.
2918 (hppa64_hpux_search_dummy_call_sequence): Update.
2919 (hppa_hpux_find_import_stub_for_addr): Update.
2920 (hppa_hpux_find_dummy_bpaddr): Update.
2921 * hppa-tdep.c (hppa_symbol_address)
2922 (hppa_lookup_stub_minimal_symbol): Update.
2923 * i386-tdep.c (i386_skip_main_prologue): Update.
2924 (i386_pe_skip_trampoline_code): Update.
2925 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2926 * infcall.c (get_function_name): Update.
2927 * infcmd.c (until_next_command): Update.
2928 * jit.c (jit_breakpoint_re_set_internal): Update.
2929 (jit_inferior_init): Update.
2930 * linespec.c (minsym_found): Update.
2931 (add_minsym): Update.
2932 * linux-fork.c (info_checkpoints_command): Update.
2933 * linux-nat.c (get_signo): Update.
2934 * linux-thread-db.c (inferior_has_bug): Update.
2935 * m32c-tdep.c (m32c_return_value): Update.
2936 (m32c_m16c_address_to_pointer): Update.
2937 (m32c_m16c_pointer_to_address): Update.
2938 * m32r-tdep.c (m32r_frame_this_id): Update.
2939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2941 * maint.c (maintenance_translate_address): Update.
2942 * minsyms.c (add_minsym_to_hash_table): Update.
2943 (add_minsym_to_demangled_hash_table): Update.
2944 (msymbol_objfile): Update.
2945 (lookup_minimal_symbol): Update.
2946 (iterate_over_minimal_symbols): Update.
2947 (lookup_minimal_symbol_text): Update.
2948 (lookup_minimal_symbol_by_pc_name): Update.
2949 (lookup_minimal_symbol_solib_trampoline): Update.
2950 (lookup_minimal_symbol_by_pc_section_1): Update.
2951 (lookup_minimal_symbol_and_objfile): Update.
2952 (prim_record_minimal_symbol_full): Update.
2953 (compare_minimal_symbols): Update.
2954 (compact_minimal_symbols): Update.
2955 (build_minimal_symbol_hash_tables): Update.
2956 (install_minimal_symbols): Update.
2957 (terminate_minimal_symbol_table): Update.
2958 (find_solib_trampoline_target): Update.
2959 (minimal_symbol_upper_bound): Update.
2960 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2961 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2962 (mips_skip_pic_trampoline_code): Update.
2963 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2964 * objc-lang.c (selectors_info): Update.
2965 (classes_info): Update.
2966 (find_methods): Update.
2967 (find_imps): Update.
2968 (find_objc_msgsend): Update.
2969 * objfiles.c (objfile_relocate1): Update.
2970 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2971 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2972 * p-valprint.c (pascal_val_print): Update.
2973 * parse.c (write_exp_msymbol): Update.
2974 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2975 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2976 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2977 * printcmd.c (build_address_symbolic): Update.
2979 (address_info): Update.
2980 * proc-service.c (ps_pglobal_lookup): Update.
2981 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2982 (find_pc_sect_psymtab): Update.
2983 * python/py-framefilter.c (py_print_frame): Update.
2984 * ravenscar-thread.c (get_running_thread_id): Update.
2985 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2987 * remote.c (remote_check_symbols): Update.
2988 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2989 (rs6000_skip_trampoline_code): Update.
2990 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2991 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2992 * solib-dsbt.c (lm_base): Update.
2993 * solib-frv.c (lm_base): Update.
2995 * solib-irix.c (locate_base): Update.
2996 * solib-som.c (som_solib_create_inferior_hook): Update.
2997 (som_solib_desire_dynamic_linker_symbols): Update.
2998 (link_map_start): Update.
2999 * solib-spu.c (spu_enable_break): Update.
3000 (ocl_enable_break): Update.
3001 * solib-svr4.c (elf_locate_base): Update.
3002 (enable_break): Update.
3003 * spu-tdep.c (spu_get_overlay_table): Update.
3004 (spu_catch_start): Update.
3005 (flush_ea_cache): Update.
3006 * stabsread.c (define_symbol): Update.
3007 (scan_file_globals): Update.
3008 * stack.c (find_frame_funname): Update.
3009 (frame_info): Update.
3010 * symfile.c (simple_read_overlay_table): Update.
3011 (simple_overlay_update): Update.
3012 * symmisc.c (dump_msymbols): Update.
3013 * symtab.c (fixup_section): Update.
3014 (find_pc_sect_line): Update.
3015 (skip_prologue_sal): Update.
3016 (search_symbols): Update.
3017 (print_msymbol_info): Update.
3018 (rbreak_command): Update.
3019 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3020 (completion_list_objc_symbol): Update.
3021 (default_make_symbol_completion_list_break_on): Update.
3022 * tracepoint.c (scope_info): Update.
3023 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3024 (tui_get_begin_asm_address): Update.
3025 * valops.c (find_function_in_inferior): Update.
3026 * value.c (value_static_field): Update.
3027 (value_fn_field): Update.
3029 2014-02-26 Tom Tromey <tromey@redhat.com>
3031 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3032 bound minimal symbols. Move code that knows about minsym
3034 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3036 * minsyms.h (minimal_symbol_upper_bound): Declare.
3037 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3038 minimal_symbol_upper_bound.
3040 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3042 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3043 Use the type's name if its basic type does not have a tag.
3045 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3047 * dwarf2read.c (read_subrange_type): Add comment.
3049 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3051 * dwarf2read.c (update_enumeration_type_from_children): New
3052 function, mostly extracted from process_structure_scope.
3053 (read_enumeration_type): Call update_enumeration_type_from_children.
3054 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3055 and flag_flag_enum fields.
3057 2014-02-26 Pedro Alves <palves@redhat.com>
3059 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3060 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3061 to_xfer_partial method.
3063 2014-02-26 Pedro Alves <palves@redhat.com>
3065 * target.c (complete_target_initialization): Don't install
3066 default_xfer_partial as to_xfer_partial hook.
3068 (update_current_target): Don't INHERIT nor de_fault
3069 deprecated_xfer_memory. Delete de_fault macro.
3070 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3071 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3072 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3075 2014-02-26 Pedro Alves <palves@redhat.com>
3077 * go32-nat.c (my_write_child): New function.
3078 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3079 (go32_xfer_partial): New function.
3080 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3081 Instead install a to_xfer_partial hook.
3083 2014-02-26 Pedro Alves <palves@redhat.com>
3085 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3086 to_xfer_partial helper. Rewrite.
3087 (procfs_xfer_partial): New function.
3088 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3089 Install a to_xfer_partial hook.
3091 2014-02-26 Pedro Alves <palves@redhat.com>
3093 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3094 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3095 (m32r_xfer_partial): New function.
3096 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3097 Install a to_xfer_partial hook.
3099 2014-02-26 Pedro Alves <palves@redhat.com>
3101 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3103 (mips_xfer_partial): New function.
3104 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3105 hook. Install a to_xfer_partial hook.
3107 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3109 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3110 * gdbtypes.c (create_array_type_with_stride): New function,
3111 renaming create_array_type, but with an added parameter
3112 called "bit_stride".
3113 (create_array_type): Re-implement using
3114 create_array_type_with_stride.
3115 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3116 and DW_AT_bit_stride attributes.
3118 2014-02-26 Pedro Alves <palves@redhat.com>
3120 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3121 task-specific breakpoints.
3123 2014-02-25 Pedro Alves <palves@redhat.com>
3125 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3126 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3128 2014-02-25 Stan Shebs <stan@codesourcery.com>
3130 * defs.h: Annotate comments for Doxygen.
3132 2014-02-25 Tom Tromey <tromey@redhat.com>
3134 * target.h (target_ignore): Don't declare.
3135 * target.c (target_ignore): Remove.
3137 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 * auto-load.c (auto_load_objfile_script_1): Change filename to
3143 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3145 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3146 documentation. Adjust prototype to match the target_ops
3147 to_xfer_partial method. Adjust implementation accordingly.
3149 2014-02-25 Hui Zhu <hui@codesourcery.com>
3151 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3154 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3156 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3157 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3158 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3159 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3160 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3161 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3162 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3163 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3165 (rl78_register_type): Use a data pointer type for SP and
3166 new pseudo registers mentioned above. Use a 16 bit integer
3167 type for all other register pairs.
3168 (rl78_register_name, rl78_g10_register_name): Update for
3169 new pseudo registers.
3170 (rl78_pseudo_register_read): Likewise.
3171 (rl78_pseudo_register_write): Likewise.
3172 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3173 to the newly added pseudo registers.
3175 2014-02-24 Doug Evans <dje@google.com>
3177 * value.c (record_latest_value): Fix comment.
3178 * printcmd.c (print_command_1): Remove code to handle -1 return from
3179 record_latest_value.
3181 2014-02-24 Pedro Alves <palves@redhat.com>
3183 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3184 deprecated_xfer_memory hook.
3185 (procfs_xfer_partial): Call procfs_xfer_memory instead
3186 of the deprecated_xfer_memory target hook.
3187 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3190 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3192 * windows-nat.c (windows_xfer_shared_libraries): Return
3193 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3194 requested object is TARGET_OBJECT_LIBRARIES.
3196 2014-02-24 Yao Qi <yao@codesourcery.com>
3198 * target.h (enum target_xfer_status)
3199 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3200 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3202 * corefile.c (memory_error_message): User updated.
3203 * exec.c (section_table_read_available_memory): Likewise.
3204 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3205 * target.c (target_xfer_status_to_string): Likewise.
3206 (raw_memory_xfer_partial): Likewise.
3207 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3208 * valops.c (read_value_memory): Likewise.
3209 * exec.h: Update comments.
3211 2014-02-24 Yao Qi <yao@codesourcery.com>
3213 * target.c (target_xfer_status_to_string): Rename argument err
3215 * target.h (target_xfer_status_to_string): Update declaration.
3216 Replace target_xfer_error_to_string with
3217 target_xfer_status_to_string in comment.
3219 2014-02-24 Yao Qi <yao@codesourcery.com>
3221 * mips-linux-nat.c (super_close): Update its type.
3222 (mips_linux_close): Pass 'self' to super_close.
3224 2014-02-24 Yao Qi <yao@codesourcery.com>
3226 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3227 * corefile.c (read_memory): Adjusted.
3228 * target.c (target_write_with_progress): Adjusted.
3230 2014-02-23 Yao Qi <yao@codesourcery.com>
3234 2013-10-25 Yao Qi <yao@codesourcery.com>
3236 * remote.c (remote_traceframe_info): Return early if
3237 traceframe is not selected.
3239 2013-07-19 Yao Qi <yao@codesourcery.com>
3241 * target.c (update_current_target): Change the default action
3242 of 'to_traceframe_info' from tcomplain to return_zero.
3243 * target.h (struct target_ops) <to_traceframe_info>: Add more
3246 2014-02-23 Yao Qi <yao@codesourcery.com>
3248 * valops.c (read_value_memory): Rewrite it. Call
3249 target_xfer_partial in a loop.
3250 * exec.h (section_table_available_memory): Remove declaration.
3251 Move comments to ...
3252 * exec.c (section_table_available_memory): ... here. Make it
3255 2014-02-23 Yao Qi <yao@codesourcery.com>
3257 * exec.c (section_table_read_available_memory): New function.
3258 * exec.h (section_table_read_available_memory): Declare.
3259 * ctf.c (ctf_xfer_partial): Call
3260 section_table_read_available_memory.
3261 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3263 2014-02-23 Yao Qi <yao@codesourcery.com>
3265 * ctf.c (ctf_xfer_partial): Move code to ...
3266 * exec.c (exec_read_partial_read_only): ... it. New function.
3267 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3268 * tracefile.c: Include "exec.h".
3269 * exec.h (exec_read_partial_read_only): Declare.
3271 2014-02-23 Yao Qi <yao@codesourcery.com>
3273 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3274 (tfile_has_memory): Remove.
3275 (init_tfile_ops): Don't set fields to_has_all_memory and
3276 to_has_memory of tfile_ops.
3277 * tracefile.c (tracefile_has_all_memory): New function.
3278 (tracefile_has_memory): New function.
3279 (init_tracefile_ops): Initialize fields to_has_all_memory and
3280 to_has_memory of 'ops'.
3282 2014-02-23 Yao Qi <yao@codesourcery.com>
3284 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3285 (ctf_thread_alive, ctf_get_trace_status): Remove.
3286 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3288 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3289 (tfile_has_stack, tfile_has_registers): Remove.
3290 (tfile_thread_alive): Remove.
3291 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3293 * tracefile.c (tracefile_has_stack): New function.
3294 (tracefile_has_registers): New function.
3295 (tracefile_thread_alive): New function.
3296 (tracefile_get_trace_status): New function.
3297 (init_tracefile_ops): New function.
3298 * tracefile.h (init_tracefile_ops): Declare.
3300 2014-02-23 Yao Qi <yao@codesourcery.com>
3302 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3303 (O_LARGEFILE): Likewise.
3304 (tfile_ops): Likewise.
3305 (TRACE_HEADER_SIZE): Likewise.
3306 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3307 (cur_data_size): Likewise.
3308 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3309 (tfile_close, tfile_files_info): Likewise.
3310 (tfile_get_trace_status): Likewise.
3311 (tfile_get_tracepoint_status): Likewise.
3312 (tfile_get_traceframe_address): Likewise.
3313 (tfile_trace_find, match_blocktype): Likewise.
3314 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3315 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3316 (tfile_get_trace_state_variable_value): Likewise.
3317 (tfile_has_all_memory, tfile_has_memory): Likewise.
3318 (tfile_has_stack, tfile_has_registers): Likewise.
3319 (tfile_thread_alive, build_traceframe_info): Likewise.
3320 (tfile_traceframe_info, init_tfile_ops): Likewise.
3321 (_initialize_tracepoint): Don't call init_tfile_ops
3322 and add_target_with_completer.
3323 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3324 exec.h, completer.h and filenames.h.
3325 (_initialize_tracefile_tfile): New function.
3327 2014-02-23 Yao Qi <yao@codesourcery.com>
3329 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3331 (HFILES_NO_SRCDIR): Add tracefile.h.
3332 * ctf.c: Include "tracefile.h".
3333 * tracefile.h: New file.
3334 * tracefile.c: New file
3335 * tracefile-tfile.c: New file.
3336 * tracepoint.c: Include "tracefile.h".
3337 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3338 (stop_reason_names): Add const.
3339 (trace_file_writer_xfree): Move it to tracefile.c.
3340 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3341 (trace_save_ctf): Likewise.
3342 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3343 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3344 (tfile_write_header, tfile_write_regblock_type): Likewise.
3345 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3346 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3347 (tfile_write_raw_data, tfile_end): Likewise.
3348 (tfile_trace_file_writer_new): Likewise.
3349 (free_uploaded_tp): Make it extern.
3350 (free_uploaded_tsv): Make it extern.
3351 (_initialize_tracepoint): Move code to register command 'tsave'
3353 * tracepoint.h (stop_reason_names): Declare.
3354 (struct trace_frame_write_ops): Move it to tracefile.h.
3355 (struct trace_file_write_ops): Likewise.
3356 (struct trace_file_writer): Likewise.
3357 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3359 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3364 (get_cores_used_by_process): New parameter num_cores, use it.
3365 (linux_xfer_osdata_processes): Pass num_cores to it.
3366 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3369 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3371 * target.c (memory_xfer_partial): Fix length arg in call to
3372 breakpoint_xfer_memory.
3374 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3377 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3378 number comes after the + or - signs. Adjust length of register
3379 name to be extracted.
3381 2014-02-20 Tom Tromey <tromey@redhat.com>
3383 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3384 (ada_varobj_ops): Mark "extern".
3386 2014-02-20 Tom Tromey <tromey@redhat.com>
3388 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3390 2014-02-20 Doug Evans <xdje42@gmail.com>
3392 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3393 All callers updated.
3394 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3395 All callers updated.
3396 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3397 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3399 2014-02-20 lin zuojian <manjian2006@gmail.com>
3400 Joel Brobecker <brobecker@adacore.com>
3401 Doug Evans <xdje42@gmail.com>
3404 * dwarf2read.c (struct die_info): New member in_process.
3405 (reset_die_in_process): New function.
3406 (process_die): Set it at the start, reset when returning.
3407 (inherit_abstract_dies): Only call process_die if origin_child_die
3408 not already being processed.
3410 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3412 * windows-nat.c (handle_unload_dll): Add function documentation.
3413 (do_initial_windows_stuff): Add comment explaining why we wait
3414 until after inferior initialization has finished before
3415 processing all DLLs.
3417 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3419 * windows-nat.c (get_module_name): Delete.
3420 (windows_get_exec_module_filename): New function, mostly
3421 inspired from get_module_name.
3422 (windows_pid_to_exec_file): Replace call to get_module_name
3423 by call to windows_get_exec_module_filename.
3425 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3427 * windows-nat.c (handle_load_dll): Rewrite this function's
3428 introductory comment. Remove code using get_module_name
3429 to get the DLL's name.
3431 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3433 * windows-nat.c (get_windows_debug_event): Ignore
3434 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3435 if windows_initialization_done == 0.
3436 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3437 Adjust implementation to always load all DLLs.
3438 (do_initial_windows_stuff): Replace call to
3439 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3441 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3443 * windows-nat.c (_initialize_windows_nat): Deprecate the
3444 "dll-symbols" command. Turn the "add-shared-symbol-files"
3445 and "assf" aliases into commands, and deprecate them as well.
3446 * NEWS: Add entry explaining that "dll-symbols" and its two
3447 aliases are now deprecated.
3449 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3451 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3452 new-line in debug string. Remove trailing spaces.
3454 2014-02-19 Stan Shebs <stan@codesourcery.com>
3456 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3458 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3460 * NEWS: Add entry for the new feature
3461 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3464 2014-02-19 Stan Shebs <stan@codesourcery.com>
3466 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3468 2014-02-19 Pedro Alves <palves@redhat.com>
3470 * common/ptid.h (struct ptid): Mention that process_stratum
3471 targets should prefer ptid.lwp.
3473 2014-02-19 Pedro Alves <palves@redhat.com>
3475 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3476 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3477 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3478 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3479 store remote thread ids rather than ptid.tid.
3480 (_initialize_remote): Adjust.
3482 2014-02-19 Tom Tromey <tromey@redhat.com>
3484 * target.c (target_get_unwinder): Rewrite.
3485 (target_get_tailcall_unwinder): Rewrite.
3486 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3487 (record_btrace_to_get_tailcall_unwinder): New function.
3488 (init_record_btrace_ops): Update.
3489 * target.h (struct target_ops) <to_get_unwinder,
3490 to_get_tailcall_unwinder>: Now function pointers. Use
3491 TARGET_DEFAULT_RETURN.
3493 2014-02-19 Tom Tromey <tromey@redhat.com>
3495 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3497 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3499 2014-02-19 Tom Tromey <tromey@redhat.com>
3501 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3503 * target-delegates.c: Rebuild.
3504 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3505 TARGET_DEFAULT_FUNC.
3506 * target.c (default_target_decr_pc_after_break): Rename from
3507 forward_target_decr_pc_after_break. Simplify.
3508 (target_decr_pc_after_break): Rely on delegation.
3510 2014-02-19 Tom Tromey <tromey@redhat.com>
3512 * target.c (update_current_target): Do not INHERIT to_doc or
3513 to_magic. Do not de_fault to_open or to_close.
3515 2014-02-19 Tom Tromey <tromey@redhat.com>
3517 * gcore.h (objfile_find_memory_regions): Declare.
3518 * gcore.c (objfile_find_memory_regions): No longer static. Add
3520 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3521 * exec.c: Include gcore.h.
3522 (exec_set_find_memory_regions): Remove.
3523 (exec_find_memory_regions): Remove.
3524 (exec_do_find_memory_regions): Remove.
3525 (init_exec_ops): Update.
3526 * defs.h (exec_set_find_memory_regions): Remove.
3528 2014-02-19 Tom Tromey <tromey@redhat.com>
3530 * target-delegates.c: Rebuild.
3531 * target.h (struct target_ops) <to_extra_thread_info,
3532 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3533 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3534 not 0, in TARGET_DEFAULT_RETURN.
3536 2014-02-19 Tom Tromey <tromey@redhat.com>
3538 * target.c (complete_target_initialization): Remove casts. Use
3539 return_zero_has_execution.
3540 (return_zero): Add "ignore" argument.
3541 (return_zero_has_execution): New function.
3542 (init_dummy_target): Remove casts. Use
3543 return_zero_has_execution.
3545 2014-02-19 Tom Tromey <tromey@redhat.com>
3547 * target.c (update_current_target): Update comments. Do not
3550 2014-02-19 Tom Tromey <tromey@redhat.com>
3552 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3554 * corelow.c (core_read_description): Delegate when needed.
3555 * remote.c (remote_read_description): Delegate when needed.
3556 * target-delegates.c: Rebuild.
3557 * target.c (target_read_description): Rewrite.
3558 * target.h (struct target_ops) <to_read_description>: Update
3559 comment. Use TARGET_DEFAULT_RETURN.
3561 2014-02-19 Tom Tromey <tromey@redhat.com>
3563 * target-delegates.c: Rebuild.
3564 * target.c (update_current_target): Don't inherit or default
3566 (find_default_run_target): Check against delegate_can_run.
3567 * target.h (struct target_ops) <to_can_run>: Use
3568 TARGET_DEFAULT_RETURN.
3570 2014-02-19 Tom Tromey <tromey@redhat.com>
3572 * target-delegates.c: Rebuild.
3573 * target.c (target_disconnect): Unconditionally delegate.
3574 * target.h (struct target_ops) <to_disconnect>: Use
3575 TARGET_DEFAULT_NORETURN.
3577 2014-02-19 Tom Tromey <tromey@redhat.com>
3579 * record.c (record_stop): Unconditionally delegate.
3580 * target-delegates.c: Rebuild.
3581 * target.c (target_stop_recording): Unconditionally delegate.
3582 * target.h (struct target_ops) <to_stop_recording>: Use
3583 TARGET_DEFAULT_IGNORE.
3585 2014-02-19 Tom Tromey <tromey@redhat.com>
3587 * target-delegates.c: Rebuild.
3588 * target.c (target_enable_btrace): Unconditionally delegate.
3589 * target.h (struct target_ops) <to_enable_btrace>: Use
3590 TARGET_DEFAULT_NORETURN.
3592 2014-02-19 Tom Tromey <tromey@redhat.com>
3594 * target-delegates.c: Rebuild.
3595 * target.c (target_read_btrace): Unconditionally delegate.
3596 * target.h (struct target_ops) <to_read_btrace>: Use
3597 TARGET_DEFAULT_NORETURN.
3599 2014-02-19 Tom Tromey <tromey@redhat.com>
3601 * target-delegates.c: Rebuild.
3602 * target.c (target_teardown_btrace): Unconditionally delegate.
3603 * target.h (struct target_ops) <to_teardown_btrace>: Use
3604 TARGET_DEFAULT_NORETURN.
3606 2014-02-19 Tom Tromey <tromey@redhat.com>
3608 * target-delegates.c: Rebuild.
3609 * target.c (target_disable_btrace): Unconditionally delegate.
3610 * target.h (struct target_ops) <to_disable_btrace>: Use
3611 TARGET_DEFAULT_NORETURN.
3613 2014-02-19 Tom Tromey <tromey@redhat.com>
3615 * target-delegates.c: Rebuild.
3616 * target.c (default_search_memory): New function.
3617 (simple_search_memory): Update comment.
3618 (target_search_memory): Unconditionally delegate.
3619 * target.h (struct target_ops) <to_search_memory>: Use
3620 TARGET_DEFAULT_FUNC.
3622 2014-02-19 Tom Tromey <tromey@redhat.com>
3624 * auxv.c (default_auxv_parse): No longer static.
3625 (target_auxv_parse): Unconditionally delegate.
3626 * auxv.h (default_auxv_parse): Declare.
3627 * target-delegates.c: Rebuild.
3628 * target.c: Include auxv.h.
3629 * target.h (struct target_ops) <to_auxv_parse>: Use
3630 TARGET_DEFAULT_FUNC.
3632 2014-02-19 Tom Tromey <tromey@redhat.com>
3634 * target-delegates.c: Rebuild.
3635 * target.c (target_memory_map): Unconditionally delegate.
3636 * target.h (struct target_ops) <to_memory_map>: Use
3637 TARGET_DEFAULT_RETURN.
3639 2014-02-19 Tom Tromey <tromey@redhat.com>
3641 * target-delegates.c: Rebuild.
3642 * target.c (target_thread_alive): Unconditionally delegate.
3643 * target.h (struct target_ops) <to_thread_alive>: Use
3644 TARGET_DEFAULT_RETURN.
3646 2014-02-19 Tom Tromey <tromey@redhat.com>
3648 * target-delegates.c: Rebuild.
3649 * target.c (target_save_record): Unconditionally delegate.
3650 * target.h (struct target_ops) <to_save_record>: Use
3651 TARGET_DEFAULT_NORETURN.
3653 2014-02-19 Tom Tromey <tromey@redhat.com>
3655 * target-delegates.c: Rebuild.
3656 * target.c (target_delete_record): Unconditionally delegate.
3657 * target.h (struct target_ops) <to_delete_record>: Use
3658 TARGET_DEFAULT_NORETURN.
3660 2014-02-19 Tom Tromey <tromey@redhat.com>
3662 * target-delegates.c: Rebuild.
3663 * target.c (target_record_is_replaying): Unconditionally
3665 * target.h (struct target_ops) <to_record_is_replaying>: Use
3666 TARGET_DEFAULT_RETURN.
3668 2014-02-19 Tom Tromey <tromey@redhat.com>
3670 * target-delegates.c: Rebuild.
3671 * target.c (target_goto_record_begin): Unconditionally delegate.
3672 * target.h (struct target_ops) <to_goto_record_begin>: Use
3673 TARGET_DEFAULT_NORETURN.
3675 2014-02-19 Tom Tromey <tromey@redhat.com>
3677 * target-delegates.c: Rebuild.
3678 * target.c (target_goto_record_end): Unconditionally delegate.
3679 * target.h (struct target_ops) <to_goto_record_end>: Use
3680 TARGET_DEFAULT_NORETURN.
3682 2014-02-19 Tom Tromey <tromey@redhat.com>
3684 * target-delegates.c: Rebuild.
3685 * target.c (target_goto_record): Unconditionally delegate.
3686 * target.h (struct target_ops) <to_goto_record>: Use
3687 TARGET_DEFAULT_NORETURN.
3689 2014-02-19 Tom Tromey <tromey@redhat.com>
3691 * target-delegates.c: Rebuild.
3692 * target.c (target_insn_history): Unconditionally delegate.
3693 * target.h (struct target_ops) <to_insn_history>: Use
3694 TARGET_DEFAULT_NORETURN.
3696 2014-02-19 Tom Tromey <tromey@redhat.com>
3698 * target-delegates.c: Rebuild.
3699 * target.c (target_insn_history_from): Unconditionally delegate.
3700 * target.h (struct target_ops) <to_insn_history_from>: Use
3701 TARGET_DEFAULT_NORETURN.
3703 2014-02-19 Tom Tromey <tromey@redhat.com>
3705 * target-delegates.c: Rebuild.
3706 * target.c (target_insn_history_range): Unconditionally delegate.
3707 * target.h (struct target_ops) <to_insn_history_range>: Use
3708 TARGET_DEFAULT_NORETURN.
3710 2014-02-19 Tom Tromey <tromey@redhat.com>
3712 * target-delegates.c: Rebuild.
3713 * target.c (target_call_history): Unconditionally delegate.
3714 * target.h (struct target_ops) <to_call_history>: Use
3715 TARGET_DEFAULT_NORETURN.
3717 2014-02-19 Tom Tromey <tromey@redhat.com>
3719 * target-delegates.c: Rebuild.
3720 * target.c (target_call_history_from): Unconditionally delegate.
3721 * target.h (struct target_ops) <to_call_history_from>: Use
3722 TARGET_DEFAULT_NORETURN.
3724 2014-02-19 Tom Tromey <tromey@redhat.com>
3726 * target-delegates.c: Rebuild.
3727 * target.c (target_call_history_range): Unconditionally delegate.
3728 * target.h (struct target_ops) <to_call_history_range>: Use
3729 TARGET_DEFAULT_NORETURN.
3731 2014-02-19 Tom Tromey <tromey@redhat.com>
3733 * target-delegates.c: Rebuild.
3734 * target.c (target_verify_memory): Unconditionally delegate.
3735 * target.h (struct target_ops) <to_verify_memory>: Use
3736 TARGET_DEFAULT_NORETURN.
3738 2014-02-19 Tom Tromey <tromey@redhat.com>
3740 * target-delegates.c: Rebuild.
3741 * target.c (target_core_of_thread): Unconditionally delegate.
3742 * target.h (struct target_ops) <to_core_of_thread>: Use
3743 TARGET_DEFAULT_RETURN.
3745 2014-02-19 Tom Tromey <tromey@redhat.com>
3747 * target-delegates.c: Rebuild.
3748 * target.c (target_flash_done): Unconditionally delegate.
3749 * target.h (struct target_ops) <to_flash_done>: Use
3750 TARGET_DEFAULT_NORETURN.
3752 2014-02-19 Tom Tromey <tromey@redhat.com>
3754 * target-delegates.c: Rebuild.
3755 * target.c (target_flash_erase): Unconditionally delegate.
3756 * target.h (struct target_ops) <to_flash_erase>: Use
3757 TARGET_DEFAULT_NORETURN.
3759 2014-02-19 Tom Tromey <tromey@redhat.com>
3761 * target-delegates.c: Rebuild.
3762 * target.c (target_get_section_table): Unconditionally delegate.
3763 * target.h (struct target_ops) <to_get_section_table>: Use
3764 TARGET_DEFAULT_RETURN.
3766 2014-02-19 Tom Tromey <tromey@redhat.com>
3768 * target-delegates.c: Rebuild.
3769 * target.c (target_pid_to_str): Unconditionally delegate.
3770 (init_dummy_target): Don't initialize to_pid_to_str.
3771 (default_pid_to_str): Rename from dummy_pid_to_str.
3772 * target.h (struct target_ops) <to_pid_to_str>: Use
3773 TARGET_DEFAULT_FUNC.
3775 2014-02-19 Tom Tromey <tromey@redhat.com>
3777 * target-delegates.c: Rebuild.
3778 * target.c (target_find_new_threads): Unconditionally delegate.
3779 * target.h (struct target_ops) <to_find_new_threads>: Use
3780 TARGET_DEFAULT_RETURN.
3782 2014-02-19 Tom Tromey <tromey@redhat.com>
3784 * target-delegates.c: Rebuild.
3785 * target.c (target_program_signals): Unconditionally delegate.
3786 * target.h (struct target_ops) <to_program_signals>: Use
3787 TARGET_DEFAULT_IGNORE.
3789 2014-02-19 Tom Tromey <tromey@redhat.com>
3791 * target-delegates.c: Rebuild.
3792 * target.c (target_pass_signals): Unconditionally delegate.
3793 * target.h (struct target_ops) <to_pass_signals>: Use
3794 TARGET_DEFAULT_IGNORE.
3796 2014-02-19 Tom Tromey <tromey@redhat.com>
3798 * target-delegates.c: Rebuild.
3799 * target.c (default_mourn_inferior): New function.
3800 (target_mourn_inferior): Unconditionally delegate.
3801 * target.h (struct target_ops) <to_mourn_inferior>: Use
3802 TARGET_DEFAULT_FUNC.
3804 2014-02-19 Tom Tromey <tromey@redhat.com>
3806 * target-delegates.c: Rebuild.
3807 * target.c (default_follow_fork): New function.
3808 (target_follow_fork): Unconditionally delegate.
3809 * target.h (struct target_ops) <to_follow_fork>: Use
3810 TARGET_DEFAULT_FUNC.
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target-delegates.c: Rebuild.
3815 * target.c (target_kill): Unconditionally delegate.
3816 * target.h (struct target_ops) <to_kill>: Use
3817 TARGET_DEFAULT_NORETURN.
3819 2014-02-19 Tom Tromey <tromey@redhat.com>
3821 * target-delegates.c: Rebuild.
3822 * target.c (target_masked_watch_num_registers): Unconditionally
3824 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3825 Use TARGET_DEFAULT_RETURN.
3827 2014-02-19 Tom Tromey <tromey@redhat.com>
3829 * target-delegates.c: Rebuild.
3830 * target.c (target_remove_mask_watchpoint): Unconditionally
3832 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3833 TARGET_DEFAULT_RETURN.
3835 2014-02-19 Tom Tromey <tromey@redhat.com>
3837 * target-delegates.c: Rebuild.
3838 * target.c (target_insert_mask_watchpoint): Unconditionally
3840 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3841 TARGET_DEFAULT_RETURN.
3843 2014-02-19 Tom Tromey <tromey@redhat.com>
3845 * target-delegates.c: Rebuild.
3846 * target.c (target_ranged_break_num_registers): Unconditionally
3848 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3849 Use TARGET_DEFAULT_RETURN.
3851 2014-02-19 Tom Tromey <tromey@redhat.com>
3853 * target-delegates.c: Rebuild.
3854 * target.c (target_fetch_registers): Unconditionally delegate.
3855 * target.h (struct target_ops) <to_fetch_registers>: Use
3856 TARGET_DEFAULT_NORETURN.
3858 2014-02-19 Tom Tromey <tromey@redhat.com>
3860 * target-delegates.c: Rebuild.
3861 * target.c (update_current_target): Don't inherit or default
3863 * target.h (struct target_ops) <to_stop>: Use
3864 TARGET_DEFAULT_IGNORE.
3866 2014-02-19 Tom Tromey <tromey@redhat.com>
3868 * target-delegates.c: Rebuild.
3869 * target.c (update_current_target): Don't inherit or default
3870 to_can_run_breakpoint_commands.
3871 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3872 Use TARGET_DEFAULT_RETURN.
3874 2014-02-19 Tom Tromey <tromey@redhat.com>
3876 * target-delegates.c: Rebuild.
3877 * target.c (update_current_target): Don't inherit or default
3878 to_supports_evaluation_of_breakpoint_conditions.
3879 * target.h (struct target_ops)
3880 <to_supports_evaluation_of_breakpoint_conditions>: Use
3881 TARGET_DEFAULT_RETURN.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target-delegates.c: Rebuild.
3886 * target.c (update_current_target): Don't inherit or default
3887 to_augmented_libraries_svr4_read.
3888 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3889 Use TARGET_DEFAULT_RETURN.
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * target-delegates.c: Rebuild.
3894 * target.c (update_current_target): Don't inherit or default
3896 * target.h (struct target_ops) <to_can_use_agent>: Use
3897 TARGET_DEFAULT_RETURN.
3899 2014-02-19 Tom Tromey <tromey@redhat.com>
3901 * target-delegates.c: Rebuild.
3902 * target.c (update_current_target): Don't inherit or default
3904 * target.h (struct target_ops) <to_use_agent>: Use
3905 TARGET_DEFAULT_NORETURN.
3907 2014-02-19 Tom Tromey <tromey@redhat.com>
3909 * target-delegates.c: Rebuild.
3910 * target.c (update_current_target): Don't inherit or default
3912 (return_null): Remove.
3913 * target.h (struct target_ops) <to_traceframe_info>: Use
3914 TARGET_DEFAULT_RETURN.
3916 2014-02-19 Tom Tromey <tromey@redhat.com>
3918 * target-delegates.c: Rebuild.
3919 * target.c (update_current_target): Don't inherit or default
3920 to_static_tracepoint_markers_by_strid.
3921 * target.h (struct target_ops)
3922 <to_static_tracepoint_markers_by_strid>: Use
3923 TARGET_DEFAULT_NORETURN.
3925 2014-02-19 Tom Tromey <tromey@redhat.com>
3927 * target-delegates.c: Rebuild.
3928 * target.c (update_current_target): Don't inherit or default
3929 to_static_tracepoint_marker_at.
3930 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3931 Use TARGET_DEFAULT_RETURN.
3933 2014-02-19 Tom Tromey <tromey@redhat.com>
3935 * target-delegates.c: Rebuild.
3936 * target.c (update_current_target): Don't inherit or default
3938 * target.h (struct target_ops) <to_set_permissions>: Use
3939 TARGET_DEFAULT_IGNORE.
3941 2014-02-19 Tom Tromey <tromey@redhat.com>
3943 * target-delegates.c: Rebuild.
3944 * target.c (update_current_target): Don't inherit or default
3946 * target.h (struct target_ops) <to_get_tib_address>: Use
3947 TARGET_DEFAULT_NORETURN.
3949 2014-02-19 Tom Tromey <tromey@redhat.com>
3951 * target-delegates.c: Rebuild.
3952 * target.c (update_current_target): Don't inherit or default
3954 * target.h (struct target_ops) <to_set_trace_notes>: Use
3955 TARGET_DEFAULT_RETURN.
3957 2014-02-19 Tom Tromey <tromey@redhat.com>
3959 * target-delegates.c: Rebuild.
3960 * target.c (update_current_target): Don't initialize
3961 to_set_trace_buffer_size.
3962 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3963 TARGET_DEFAULT_IGNORE.
3965 2014-02-19 Tom Tromey <tromey@redhat.com>
3967 * target-delegates.c: Rebuild.
3968 * target.c (update_current_target): Don't inherit or default
3969 to_set_circular_trace_buffer.
3970 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3971 TARGET_DEFAULT_IGNORE.
3973 2014-02-19 Tom Tromey <tromey@redhat.com>
3975 * target-delegates.c: Rebuild.
3976 * target.c (update_current_target): Don't inherit or default
3977 to_set_disconnected_tracing.
3978 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3979 TARGET_DEFAULT_IGNORE.
3981 2014-02-19 Tom Tromey <tromey@redhat.com>
3983 * target-delegates.c: Rebuild.
3984 * target.c (update_current_target): Don't inherit or default
3985 to_get_min_fast_tracepoint_insn_len.
3986 (return_minus_one): Remove.
3987 * target.h (struct target_ops)
3988 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3990 2014-02-19 Tom Tromey <tromey@redhat.com>
3992 * target-delegates.c: Rebuild.
3993 * target.c (update_current_target): Don't inherit or default
3994 to_get_raw_trace_data.
3995 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3996 TARGET_DEFAULT_NORETURN.
3998 2014-02-19 Tom Tromey <tromey@redhat.com>
4000 * target-delegates.c: Rebuild.
4001 * target.c (update_current_target): Don't inherit or default
4002 to_upload_trace_state_variables.
4003 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4004 Use TARGET_DEFAULT_RETURN.
4006 2014-02-19 Tom Tromey <tromey@redhat.com>
4008 * target-delegates.c: Rebuild.
4009 * target.c (update_current_target): Don't inherit or default
4010 to_upload_tracepoints.
4011 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4012 TARGET_DEFAULT_RETURN.
4014 2014-02-19 Tom Tromey <tromey@redhat.com>
4016 * target-delegates.c: Rebuild.
4017 * target.c (update_current_target): Don't inherit or default
4019 * target.h (struct target_ops) <to_save_trace_data>: Use
4020 TARGET_DEFAULT_NORETURN.
4022 2014-02-19 Tom Tromey <tromey@redhat.com>
4024 * target-delegates.c: Rebuild.
4025 * target.c (update_current_target): Don't inherit or default
4026 to_get_trace_state_variable_value.
4027 * target.h (struct target_ops)
4028 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4030 2014-02-19 Tom Tromey <tromey@redhat.com>
4032 * target-delegates.c: Rebuild.
4033 * target.c (update_current_target): Don't inherit or default
4035 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4037 2014-02-19 Tom Tromey <tromey@redhat.com>
4039 * target-delegates.c: Rebuild.
4040 * target.c (update_current_target): Don't inherit or default
4042 * target.h (struct target_ops) <to_trace_stop>: Use
4043 TARGET_DEFAULT_NORETURN.
4045 2014-02-19 Tom Tromey <tromey@redhat.com>
4047 * target-delegates.c: Rebuild.
4048 * target.c (update_current_target): Don't inherit or default
4049 to_get_tracepoint_status.
4050 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4051 TARGET_DEFAULT_NORETURN.
4053 2014-02-19 Tom Tromey <tromey@redhat.com>
4055 * target-delegates.c: Rebuild.
4056 * target.c (update_current_target): Don't inherit or default
4057 to_get_trace_status.
4058 * target.h (struct target_ops) <to_get_trace_status>: Use
4059 TARGET_DEFAULT_RETURN.
4061 2014-02-19 Tom Tromey <tromey@redhat.com>
4063 * target-delegates.c: Rebuild.
4064 * target.c (update_current_target): Don't inherit or default
4066 * target.h (struct target_ops) <to_trace_start>: Use
4067 TARGET_DEFAULT_NORETURN.
4069 2014-02-19 Tom Tromey <tromey@redhat.com>
4071 * target-delegates.c: Rebuild.
4072 * target.c (update_current_target): Don't inherit or default
4073 to_trace_set_readonly_regions.
4074 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4075 Use TARGET_DEFAULT_NORETURN.
4077 2014-02-19 Tom Tromey <tromey@redhat.com>
4079 * target-delegates.c: Rebuild.
4080 * target.c (update_current_target): Don't inherit or default
4081 to_disable_tracepoint.
4082 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4083 TARGET_DEFAULT_NORETURN.
4085 2014-02-19 Tom Tromey <tromey@redhat.com>
4087 * target-delegates.c: Rebuild.
4088 * target.c (update_current_target): Don't inherit or default
4089 to_enable_tracepoint.
4090 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4091 TARGET_DEFAULT_NORETURN.
4093 2014-02-19 Tom Tromey <tromey@redhat.com>
4095 * target-delegates.c: Rebuild.
4096 * target.c (update_current_target): Don't inherit or default
4097 to_download_trace_state_variable.
4098 * target.h (struct target_ops) <to_download_trace_state_variable>:
4099 Use TARGET_DEFAULT_NORETURN.
4101 2014-02-19 Tom Tromey <tromey@redhat.com>
4103 * target-delegates.c: Rebuild.
4104 * target.c (update_current_target): Don't inherit or default
4105 to_can_download_tracepoint.
4106 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4107 TARGET_DEFAULT_RETURN.
4109 2014-02-19 Tom Tromey <tromey@redhat.com>
4111 * target-delegates.c: Rebuild.
4112 * target.c (update_current_target): Don't inherit or default
4113 to_download_tracepoint.
4114 * target.h (struct target_ops) <to_download_tracepoint>: Use
4115 TARGET_DEFAULT_NORETURN.
4117 2014-02-19 Tom Tromey <tromey@redhat.com>
4119 * target-delegates.c: Rebuild.
4120 * target.c (update_current_target): Don't inherit or default
4122 * target.h (struct target_ops) <to_trace_init>: Use
4123 TARGET_DEFAULT_RETURN.
4125 2014-02-19 Tom Tromey <tromey@redhat.com>
4127 * target-delegates.c: Rebuild.
4128 * target.c (update_current_target): Don't inherit or default
4129 to_supports_string_tracing.
4130 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4131 TARGET_DEFAULT_RETURN.
4133 2014-02-19 Tom Tromey <tromey@redhat.com>
4135 * target-delegates.c: Rebuild.
4136 * target.c (update_current_target): Don't inherit or default
4137 to_supports_enable_disable_tracepoint.
4138 * target.h (struct target_ops)
4139 <to_supports_enable_disable_tracepoint>: Use
4140 TARGET_DEFAULT_RETURN.
4142 2014-02-19 Tom Tromey <tromey@redhat.com>
4144 * target-delegates.c: Rebuild.
4145 * target.c (update_current_target): Don't inherit or default
4146 to_supports_multi_process.
4147 * target.h (struct target_ops) <to_supports_multi_process>: Use
4148 TARGET_DEFAULT_RETURN.
4150 2014-02-19 Tom Tromey <tromey@redhat.com>
4152 * target-delegates.c: Rebuild.
4153 * target.c (update_current_target): Don't inherit or default
4154 to_get_ada_task_ptid.
4155 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4156 TARGET_DEFAULT_FUNC.
4158 2014-02-19 Tom Tromey <tromey@redhat.com>
4160 * target-delegates.c: Rebuild.
4161 * target.c (update_current_target): Don't inherit or default
4162 to_thread_architecture.
4163 * target.h (struct target_ops) <to_thread_architecture>: Use
4164 TARGET_DEFAULT_FUNC.
4166 2014-02-19 Tom Tromey <tromey@redhat.com>
4168 * target-delegates.c: Rebuild.
4169 * target.c (update_current_target): Don't inherit or default
4170 to_execution_direction.
4171 * target.h (struct target_ops) <to_execution_direction>: Use
4172 TARGET_DEFAULT_FUNC.
4174 2014-02-19 Tom Tromey <tromey@redhat.com>
4176 * target-delegates.c: Rebuild.
4177 * target.c (update_current_target): Don't inherit or default
4178 to_can_execute_reverse.
4179 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4180 TARGET_DEFAULT_RETURN.
4181 (target_can_execute_reverse): Unconditionally delegate.
4183 2014-02-19 Tom Tromey <tromey@redhat.com>
4185 * target-delegates.c: Rebuild.
4186 * target.c (update_current_target): Don't inherit or default
4188 (dummy_goto_bookmark): Remove.
4189 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4190 * target.h (struct target_ops) <to_goto_bookmark>: Use
4191 TARGET_DEFAULT_NORETURN.
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
4198 (dummy_get_bookmark): Remove.
4199 (init_dummy_target): Don't inherit or default to_get_bookmark.
4200 * target.h (struct target_ops) <to_get_bookmark>: Use
4201 TARGET_DEFAULT_NORETURN
4203 2014-02-19 Tom Tromey <tromey@redhat.com>
4205 * target-delegates.c: Rebuild.
4206 * target.c (update_current_target): Don't inherit or default
4207 to_make_corefile_notes.
4208 (init_dummy_target): Don't initialize to_make_corefile_notes.
4209 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4210 TARGET_DEFAULT_FUNC.
4212 2014-02-19 Tom Tromey <tromey@redhat.com>
4214 * target-delegates.c: Rebuild.
4215 * target.c (update_current_target): Don't inherit or default
4216 to_find_memory_regions.
4217 (init_dummy_target): Don't initialize to_find_memory_regions.
4218 * target.h (struct target_ops) <to_find_memory_regions>: Use
4219 TARGET_DEFAULT_FUNC.
4221 2014-02-19 Tom Tromey <tromey@redhat.com>
4223 * target-delegates.c: Rebuild.
4224 * target.c (update_current_target): Don't inherit or default
4226 * target.h (struct target_ops) <to_log_command>: Use
4227 TARGET_DEFAULT_IGNORE.
4228 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
4235 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4236 TARGET_DEFAULT_RETURN.
4238 2014-02-19 Tom Tromey <tromey@redhat.com>
4240 * target-delegates.c: Rebuild.
4241 * target.c (update_current_target): Don't inherit or default
4243 (target_thread_name): Unconditionally delegate.
4244 * target.h (struct target_ops) <to_thread_name>: Use
4245 TARGET_DEFAULT_RETURN.
4247 2014-02-19 Tom Tromey <tromey@redhat.com>
4249 * target-delegates.c: Rebuild.
4250 * target.c (update_current_target): Don't inherit or default
4251 to_extra_thread_info.
4252 * target.h (struct target_ops) <to_extra_thread_info>: Use
4253 TARGET_DEFAULT_RETURN.
4255 2014-02-19 Tom Tromey <tromey@redhat.com>
4257 * target-delegates.c: Rebuild.
4258 * target.c (update_current_target): Don't inherit or default
4260 * target.h (struct target_ops) <to_has_exited>: Use
4261 TARGET_DEFAULT_RETURN..
4263 2014-02-19 Tom Tromey <tromey@redhat.com>
4265 * target-delegates.c: Rebuild.
4266 * target.c (update_current_target): Don't inherit or default
4267 to_set_syscall_catchpoint.
4268 (return_one): Remove.
4269 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4270 TARGET_DEFAULT_RETURN.
4272 2014-02-19 Tom Tromey <tromey@redhat.com>
4274 * target-delegates.c: Rebuild.
4275 * target.c (update_current_target): Don't inherit or default
4276 to_insert_exec_catchpoint.
4277 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4278 TARGET_DEFAULT_RETURN.
4280 2014-01-08 Tom Tromey <tromey@redhat.com>
4282 * target-delegates.c: Rebuild.
4283 * target.c (update_current_target): Don't inherit or default
4284 to_insert_exec_catchpoint.
4285 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4286 TARGET_DEFAULT_RETURN.
4288 2014-02-19 Tom Tromey <tromey@redhat.com>
4290 * target-delegates.c: Rebuild.
4291 * target.c (update_current_target): Don't inherit or default
4292 to_remove_vfork_catchpoint.
4293 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4294 TARGET_DEFAULT_RETURN.
4296 2014-02-19 Tom Tromey <tromey@redhat.com>
4298 * target-delegates.c: Rebuild.
4299 * target.c (update_current_target): Don't inherit or default
4300 to_insert_vfork_catchpoint.
4301 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4302 TARGET_DEFAULT_RETURN.
4304 2014-02-19 Tom Tromey <tromey@redhat.com>
4306 * target-delegates.c: Rebuild.
4307 * target.c (update_current_target): Don't inherit or default
4308 to_remove_fork_catchpoint.
4309 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4310 TARGET_DEFAULT_RETURN.
4312 2014-02-19 Tom Tromey <tromey@redhat.com>
4314 * target-delegates.c: Rebuild.
4315 * target.c (update_current_target): Don't inherit or default
4316 to_insert_fork_catchpoint.
4317 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4318 TARGET_DEFAULT_RETURN.
4320 2014-02-19 Tom Tromey <tromey@redhat.com>
4322 * target-delegates.c: Rebuild.
4323 * target.c (update_current_target): Don't inherit or default
4324 to_post_startup_inferior.
4325 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4326 TARGET_DEFAULT_IGNORE.
4328 2014-02-19 Tom Tromey <tromey@redhat.com>
4330 * target-delegates.c: Rebuild.
4331 * target.c (update_current_target): Don't inherit or default
4333 * target.h (struct target_ops) <to_load>: Use
4334 TARGET_DEFAULT_NORETURN.
4336 2014-02-19 Tom Tromey <tromey@redhat.com>
4338 * target-delegates.c: Rebuild.
4339 * target.c (update_current_target): Don't inherit or default
4341 * target.h (struct target_ops) <to_terminal_info>: Use
4342 TARGET_DEFAULT_FUNC.
4344 2014-02-19 Tom Tromey <tromey@redhat.com>
4346 * target-delegates.c: Rebuild.
4347 * target.c (update_current_target): Don't inherit or default
4348 to_terminal_save_ours.
4349 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4350 TARGET_DEFAULT_IGNORE.
4352 2014-02-19 Tom Tromey <tromey@redhat.com>
4354 * target-delegates.c: Rebuild.
4355 * target.c (update_current_target): Don't inherit or default
4357 * target.h (struct target_ops) <to_terminal_ours>: Use
4358 TARGET_DEFAULT_IGNORE.
4360 2014-02-19 Tom Tromey <tromey@redhat.com>
4362 * target-delegates.c: Rebuild.
4363 * target.c (update_current_target): Don't inherit or default
4364 to_terminal_ours_for_output.
4365 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4366 TARGET_DEFAULT_IGNORE.
4368 2014-02-19 Tom Tromey <tromey@redhat.com>
4370 * target-delegates.c: Rebuild.
4371 * target.c (update_current_target): Don't inherit or default
4372 to_terminal_inferior.
4373 * target.h (struct target_ops) <to_terminal_inferior>: Use
4374 TARGET_DEFAULT_IGNORE.
4376 2014-02-19 Tom Tromey <tromey@redhat.com>
4378 * target-delegates.c: Rebuild.
4379 * target.c (update_current_target): Don't inherit or default
4381 * target.h (struct target_ops) <to_terminal_init>: Use
4382 TARGET_DEFAULT_IGNORE.
4384 2014-02-19 Tom Tromey <tromey@redhat.com>
4386 * target-delegates.c: Rebuild.
4387 * target.c (update_current_target): Don't inherit or default
4388 to_can_accel_watchpoint_condition.
4389 * target.h (struct target_ops)
4390 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4392 2014-02-19 Tom Tromey <tromey@redhat.com>
4394 * target-delegates.c: Rebuild.
4395 * target.c (update_current_target): Don't inherit or default
4396 to_region_ok_for_hw_watchpoint.
4397 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4398 Use TARGET_DEFAULT_FUNC.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target-delegates.c: Rebuild.
4403 * target.c (update_current_target): Don't inherit or default
4404 to_watchpoint_addr_within_range.
4405 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4406 Use TARGET_DEFAULT_FUNC.
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target-delegates.c: Rebuild.
4411 * target.c (update_current_target): Don't inherit or default
4412 to_remove_watchpoint.
4413 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4414 TARGET_DEFAULT_NORETURN.
4416 2014-02-19 Tom Tromey <tromey@redhat.com>
4418 * target-delegates.c: Rebuild.
4419 * target.c (update_current_target): Don't inherit or default
4420 to_insert_watchpoint.
4421 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4422 TARGET_DEFAULT_RETURN.
4424 2014-02-19 Tom Tromey <tromey@redhat.com>
4426 * target-delegates.c: Rebuild.
4427 * target.c (update_current_target): Don't inherit or default
4428 to_remove_hw_breakpoint.
4429 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4430 TARGET_DEFAULT_RETURN.
4432 2014-02-19 Tom Tromey <tromey@redhat.com>
4434 * target-delegates.c: Rebuild.
4435 * target.c (update_current_target): Don't inherit or default
4436 to_insert_hw_breakpoint.
4437 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4438 TARGET_DEFAULT_RETURN.
4440 2014-02-19 Tom Tromey <tromey@redhat.com>
4442 * target-delegates.c: Rebuild.
4443 * target.c (update_current_target): Don't inherit or default
4444 to_can_use_hw_breakpoint.
4445 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4446 TARGET_DEFAULT_RETURN.
4448 2014-02-19 Tom Tromey <tromey@redhat.com>
4450 * target-delegates.c: Rebuild.
4451 * target.c (update_current_target): Don't inherit or default
4453 * target.h (struct target_ops) <to_files_info>: Use
4454 TARGET_DEFAULT_IGNORE.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target-delegates.c: Rebuild.
4459 * target.c (update_current_target): Don't inherit or default
4461 * target.h (struct target_ops) <to_store>: Use
4462 TARGET_DEFAULT_NORETURN.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target-delegates.c: Rebuild.
4467 * target.c (update_current_target): Don't inherit or default
4469 * target.h (struct target_ops) <to_post_attach>: Use
4470 TARGET_DEFAULT_IGNORE.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (update_current_target): Don't inherit or default
4477 (default_rcmd): New function.
4478 (do_monitor_command): Unconditionally delegate.
4479 * target.h (struct target_ops) <to_rmcd>: Use
4480 TARGET_DEFAULT_FUNC.
4482 2014-02-19 Tom Tromey <tromey@redhat.com>
4484 * target-delegates.c: Rebuild.
4485 * target.c (init_dummy_target): Don't initialize to_attach.
4486 (target_attach): Unconditionally delegate.
4487 * target.h (struct target_ops) <to_attach>: Use
4488 TARGET_DEFAULT_FUNC.
4490 2014-02-19 Tom Tromey <tromey@redhat.com>
4492 * target-delegates.c: Rebuild.
4493 * target.c (target_detach): Unconditionally delegate.
4494 (init_dummy_target): Don't initialize to_detach.
4495 * target.h (struct target_ops) <to_detach>: Use
4496 TARGET_DEFAULT_IGNORE.
4498 2014-02-19 Tom Tromey <tromey@redhat.com>
4500 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4502 (target_augmented_libraries_svr4_read): Add argument.
4503 * target.c (update_current_target): Update.
4504 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4507 2014-02-19 Tom Tromey <tromey@redhat.com>
4509 * target.h (struct target_ops) <to_call_history_range>: Add
4511 * target.c (target_call_history_range): Add argument.
4512 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4514 (record_btrace_call_history_from): Update.
4516 2014-02-19 Tom Tromey <tromey@redhat.com>
4518 * target.h (struct target_ops) <to_call_history_from>: Add
4520 * target.c (target_call_history_from): Add argument.
4521 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4524 2014-02-19 Tom Tromey <tromey@redhat.com>
4526 * target.h (struct target_ops) <to_call_history>: Add argument.
4527 * target.c (target_call_history): Add argument.
4528 * record-btrace.c (record_btrace_call_history): Add 'self'
4531 2014-02-19 Tom Tromey <tromey@redhat.com>
4533 * target.h (struct target_ops) <to_insn_history_range>: Add
4535 * target.c (target_insn_history_range): Add argument.
4536 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4538 (record_btrace_insn_history_from): Update.
4540 2014-02-19 Tom Tromey <tromey@redhat.com>
4542 * target.h (struct target_ops) <to_insn_history_from>: Add
4544 * target.c (target_insn_history_from): Add argument.
4545 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target.h (struct target_ops) <to_insn_history>: Add argument.
4551 * target.c (target_insn_history): Add argument.
4552 * record-btrace.c (record_btrace_insn_history): Add 'self'
4555 2014-02-19 Tom Tromey <tromey@redhat.com>
4557 * target.h (struct target_ops) <to_goto_record>: Add argument.
4558 * target.c (target_goto_record): Add argument.
4559 * record-full.c (record_full_goto): Add 'self' argument.
4560 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4562 2014-02-19 Tom Tromey <tromey@redhat.com>
4564 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4565 * target.c (target_goto_record_end): Add argument.
4566 * record-full.c (record_full_goto_end): Add 'self' argument.
4567 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4569 2014-02-19 Tom Tromey <tromey@redhat.com>
4571 * target.h (struct target_ops) <to_goto_record_begin>: Add
4573 * target.c (target_goto_record_begin): Add argument.
4574 * record-full.c (record_full_goto_begin): Add 'self' argument.
4575 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4578 2014-02-19 Tom Tromey <tromey@redhat.com>
4580 * target.h (struct target_ops) <to_record_is_replaying>: Add
4582 * target.c (target_record_is_replaying): Add argument.
4583 * record-full.c (record_full_is_replaying): Add 'self' argument.
4584 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4586 (record_btrace_xfer_partial, record_btrace_store_registers)
4587 (record_btrace_prepare_to_store, record_btrace_resume)
4588 (record_btrace_wait, record_btrace_decr_pc_after_break)
4589 (record_btrace_find_new_threads, record_btrace_thread_alive):
4592 2014-02-19 Tom Tromey <tromey@redhat.com>
4594 * target.h (struct target_ops) <to_delete_record>: Add argument.
4595 * target.c (target_delete_record): Add argument.
4596 * record-full.c (record_full_delete): Add 'self' argument.
4598 2014-02-19 Tom Tromey <tromey@redhat.com>
4600 * target.h (struct target_ops) <to_save_record>: Add argument.
4601 * target.c (target_save_record): Add argument.
4602 * record-full.c (record_full_save): Add 'self' argument.
4603 (record_full_save): Add 'self' argument.
4605 2014-02-19 Tom Tromey <tromey@redhat.com>
4607 * target.h (struct target_ops) <to_info_record>: Add argument.
4608 * target.c (target_info_record): Add argument.
4609 * record.c (info_record_command): Add argument.
4610 * record-full.c (record_full_info): Add 'self' argument.
4611 * record-btrace.c (record_btrace_info): Add 'self' argument.
4613 2014-02-19 Tom Tromey <tromey@redhat.com>
4615 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4616 * target.c (target_stop_recording): Add argument.
4617 * record.c (record_stop): Add argument.
4618 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4624 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4625 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4627 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4628 (_initialize_amd64_linux_nat): Use it.
4629 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4630 (_initialize_i386_linux_nat): Use it.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4635 * target.c (target_teardown_btrace): Add argument.
4636 * remote.c (remote_teardown_btrace): Add 'self' argument.
4637 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4639 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4642 2014-02-19 Tom Tromey <tromey@redhat.com>
4644 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4645 * target.c (target_disable_btrace): Add argument.
4646 * remote.c (remote_disable_btrace): Add 'self' argument.
4647 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4649 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4652 2014-02-19 Tom Tromey <tromey@redhat.com>
4654 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4655 * target.c (target_enable_btrace): Add argument.
4656 * remote.c (remote_enable_btrace): Add 'self' argument.
4657 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4659 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4662 2014-02-19 Tom Tromey <tromey@redhat.com>
4664 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4665 (target_can_use_agent): Add argument.
4666 * target.c (update_current_target): Update.
4667 * remote.c (remote_can_use_agent): Add 'self' argument.
4668 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target.h (struct target_ops) <to_use_agent>: Add argument.
4673 (target_use_agent): Add argument.
4674 * target.c (update_current_target): Update.
4675 * remote.c (remote_use_agent): Add 'self' argument.
4676 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4681 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4682 (target_traceframe_info): Add argument.
4683 * target.c (update_current_target): Update.
4684 * remote.c (remote_traceframe_info): Add 'self' argument.
4685 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4687 2014-02-19 Tom Tromey <tromey@redhat.com>
4689 * target.h (target_static_tracepoint_markers_by_strid): Add
4691 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4693 * target.c (update_current_target): Update.
4694 * remote.c (struct target_ops)
4695 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4696 * linux-nat.c (struct target_ops)
4697 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4699 2014-02-19 Tom Tromey <tromey@redhat.com>
4701 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4703 (target_static_tracepoint_marker_at): Add argument.
4704 * target.c (update_current_target): Update.
4705 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4708 2014-02-19 Tom Tromey <tromey@redhat.com>
4710 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4711 (target_set_permissions): Add argument.
4712 * target.c (update_current_target): Update.
4713 * remote.c (remote_set_permissions): Add 'self' argument.
4714 (remote_start_remote): Update.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4719 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4720 (target_get_tib_address): Add argument.
4721 * target.c (update_current_target): Update.
4722 * remote.c (remote_get_tib_address): Add 'self' argument.
4724 2014-02-19 Tom Tromey <tromey@redhat.com>
4726 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4727 (target_set_trace_notes): Add argument.
4728 * target.c (update_current_target): Update.
4729 * remote.c (remote_set_trace_notes): Add 'self' argument.
4731 2014-02-19 Tom Tromey <tromey@redhat.com>
4733 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4735 (target_set_trace_buffer_size): Add argument.
4736 * target.c (update_current_target): Update.
4737 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4739 2014-02-19 Tom Tromey <tromey@redhat.com>
4741 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4743 (target_set_circular_trace_buffer): Add argument.
4744 * target.c (update_current_target): Update.
4745 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4748 2014-02-19 Tom Tromey <tromey@redhat.com>
4750 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4752 (target_set_disconnected_tracing): Add argument.
4753 * target.c (update_current_target): Update.
4754 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4756 2014-02-19 Tom Tromey <tromey@redhat.com>
4758 * target.h (struct target_ops)
4759 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4760 (target_get_min_fast_tracepoint_insn_len): Add argument.
4761 * target.c (update_current_target): Update.
4762 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4765 2014-02-19 Tom Tromey <tromey@redhat.com>
4767 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4769 (target_get_raw_trace_data): Add argument.
4770 * target.c (update_current_target): Update.
4771 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4777 (target_upload_trace_state_variables): Add argument.
4778 * target.c (update_current_target): Update.
4779 * remote.c (remote_upload_trace_state_variables): Add 'self'
4781 (remote_start_remote): Update.
4783 2014-02-19 Tom Tromey <tromey@redhat.com>
4785 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4787 (target_upload_tracepoints): Add argument.
4788 * target.c (update_current_target): Update.
4789 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4790 (remote_start_remote): Update.
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4795 (target_save_trace_data): Add argument.
4796 * target.c (update_current_target): Update.
4797 * remote.c (remote_save_trace_data): Add 'self' argument.
4799 2014-02-19 Tom Tromey <tromey@redhat.com>
4801 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4803 * target.h (struct target_ops)
4804 <to_get_trace_state_variable_value>: Add argument.
4805 (target_get_trace_state_variable_value): Add argument.
4806 * target.c (update_current_target): Update.
4807 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4809 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4811 2014-02-19 Tom Tromey <tromey@redhat.com>
4813 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4814 * target.h (struct target_ops) <to_trace_find>: Add argument.
4815 (target_trace_find): Add argument.
4816 * target.c (update_current_target): Update.
4817 * remote.c (remote_trace_find): Add 'self' argument.
4818 * ctf.c (ctf_trace_find): Add 'self' argument.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4823 (target_trace_stop): Add argument.
4824 * target.c (update_current_target): Update.
4825 * remote.c (remote_trace_stop): Add 'self' argument.
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4830 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4832 (target_get_tracepoint_status): Add argument.
4833 * target.c (update_current_target): Update.
4834 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4839 * target.h (struct target_ops) <to_get_trace_status>: Add
4841 (target_get_trace_status): Add argument.
4842 * target.c (update_current_target): Update.
4843 * remote.c (remote_get_trace_status): Add 'self' argument.
4844 (remote_start_remote, remote_can_download_tracepoint): Update.
4845 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target.h (struct target_ops) <to_trace_start>: Add argument.
4850 (target_trace_start): Add argument.
4851 * target.c (update_current_target): Update.
4852 * remote.c (remote_trace_start): Add 'self' argument.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4858 (target_trace_set_readonly_regions): Add argument.
4859 * target.c (update_current_target): Update.
4860 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4867 (target_disable_tracepoint): Add argument.
4868 * target.c (update_current_target): Update.
4869 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4871 2014-02-19 Tom Tromey <tromey@redhat.com>
4873 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4875 (target_enable_tracepoint): Add argument.
4876 * target.c (update_current_target): Update.
4877 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * target.h (struct target_ops) <to_download_trace_state_variable>:
4883 (target_download_trace_state_variable): Add argument.
4884 * target.c (update_current_target): Update.
4885 * remote.c (remote_download_trace_state_variable): Add 'self'
4888 2014-02-19 Tom Tromey <tromey@redhat.com>
4890 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4892 (target_can_download_tracepoint): Add argument.
4893 * target.c (update_current_target): Update.
4894 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4896 2014-02-19 Tom Tromey <tromey@redhat.com>
4898 * target.h (struct target_ops) <to_download_tracepoint>: Add
4900 (target_download_tracepoint): Add argument.
4901 * target.c (update_current_target): Update.
4902 * remote.c (remote_download_tracepoint): Add 'self' argument.
4904 2014-02-19 Tom Tromey <tromey@redhat.com>
4906 * target.h (struct target_ops) <to_trace_init>: Add argument.
4907 (target_trace_init): Add argument.
4908 * target.c (update_current_target): Update.
4909 * remote.c (remote_trace_init): Add 'self' argument.
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4914 * target.c (target_fileio_readlink): Add argument.
4915 * remote.c (remote_hostio_readlink): Add 'self' argument.
4916 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4918 2014-02-19 Tom Tromey <tromey@redhat.com>
4920 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4921 * target.c (target_fileio_unlink): Add argument.
4922 * remote.c (remote_hostio_unlink): Add 'self' argument.
4923 (remote_file_delete): Update.
4924 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4926 2014-02-19 Tom Tromey <tromey@redhat.com>
4928 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4929 * target.c (target_fileio_close): Add argument.
4930 * remote.c (remote_hostio_close): Add 'self' argument.
4931 (remote_hostio_close_cleanup): Update.
4932 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4934 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4936 2014-02-19 Tom Tromey <tromey@redhat.com>
4938 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4939 * target.c (target_fileio_pread): Add argument.
4940 * remote.c (remote_hostio_pread): Add 'self' argument.
4941 (remote_bfd_iovec_pread, remote_file_get): Update.
4942 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4947 * target.c (target_fileio_pwrite): Add argument.
4948 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4949 (remote_file_put): Update.
4950 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4952 2014-02-19 Tom Tromey <tromey@redhat.com>
4954 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4955 * target.c (target_fileio_open): Add argument.
4956 * remote.c (remote_hostio_open): Add 'self' argument.
4957 (remote_bfd_iovec_open): Add 'self' argument.
4958 (remote_file_put): Add 'self' argument.
4959 (remote_file_get): Add 'self' argument.
4960 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4962 2014-02-19 Tom Tromey <tromey@redhat.com>
4964 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4966 (target_can_run_breakpoint_commands): Add argument.
4967 * target.c (update_current_target): Update.
4968 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4970 (remote_insert_breakpoint): Add 'self' argument.
4971 (remote_insert_hw_breakpoint): Add 'self' argument.
4972 (remote_can_run_breakpoint_commands): Add 'self' argument.
4974 2014-02-19 Tom Tromey <tromey@redhat.com>
4976 * target.h (struct target_ops)
4977 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4978 (target_supports_evaluation_of_breakpoint_conditions): Add
4980 * target.c (update_current_target): Update.
4981 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4983 (remote_insert_breakpoint): Add 'self' argument.
4984 (remote_insert_hw_breakpoint): Add 'self' argument.
4985 (remote_supports_cond_breakpoints): Add 'self' argument.
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4991 (target_supports_string_tracing): Add argument.
4992 * target.c (update_current_target): Update.
4993 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * target.h (struct target_ops)
4998 <to_supports_disable_randomization>: Add argument.
4999 * target.c (find_default_supports_disable_randomization): Add
5001 (target_supports_disable_randomization): Add argument.
5002 (find_default_supports_disable_randomization): Add 'self'
5004 * remote.c (extended_remote_supports_disable_randomization): Add
5006 (remote_supports_disable_randomization): Add 'self' argument.
5007 (extended_remote_create_inferior): Update.
5008 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5011 2014-02-19 Tom Tromey <tromey@redhat.com>
5013 * target.h (struct target_ops)
5014 <to_supports_enable_disable_tracepoint>: Add argument.
5015 (target_supports_enable_disable_tracepoint): Add argument.
5016 * target.c (update_current_target): Update.
5017 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5020 2014-02-19 Tom Tromey <tromey@redhat.com>
5022 * target.h (struct target_ops) <to_supports_multi_process>: Add
5024 (target_supports_multi_process): Add argument.
5025 * target.c (update_current_target): Update.
5026 * remote.c (remote_supports_multi_process): Add 'self' argument.
5027 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5029 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5032 2014-02-19 Tom Tromey <tromey@redhat.com>
5034 * target.h (struct target_ops) <to_execution_direction>: Add
5036 (target_execution_direction): Add argument.
5037 * target.c (default_execution_direction): Add 'self' argument.
5038 * record-full.c (record_full_execution_direction): Add 'self'
5041 2014-02-19 Tom Tromey <tromey@redhat.com>
5043 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5045 (target_can_execute_reverse): Add argument.
5046 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5047 * record-full.c (record_full_can_execute_reverse): Add 'self'
5049 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5055 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5057 (target_get_ada_task_ptid): Add argument.
5058 * target.c (update_current_target): Update.
5059 (default_get_ada_task_ptid): Add 'self' argument.
5060 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5061 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5062 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5064 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5066 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5068 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5070 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5071 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5074 2014-02-19 Tom Tromey <tromey@redhat.com>
5076 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5077 (target_goto_bookmark): Add argument.
5078 * target.c (dummy_goto_bookmark): Add 'self' argument.
5079 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5084 (target_get_bookmark): Add argument.
5085 * target.c (dummy_get_bookmark): Add 'self' argument.
5086 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5088 2014-02-19 Tom Tromey <tromey@redhat.com>
5090 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5092 (target_make_corefile_notes): Add argument.
5093 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5094 * procfs.c (procfs_make_note_section): Add 'self' argument.
5095 (procfs_make_note_section): Add 'self' argument.
5096 (procfs_make_note_section): Add 'self' argument.
5097 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5099 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5100 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5101 * exec.c (exec_make_note_section): Add 'self' argument.
5102 (exec_make_note_section): Add 'self' argument.
5104 2014-02-19 Tom Tromey <tromey@redhat.com>
5106 * target.h (struct target_ops) <to_find_memory_regions>: Add
5108 (target_find_memory_regions): Add argument.
5109 * target.c (dummy_find_memory_regions): Add 'self' argument.
5110 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5111 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5112 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5113 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5114 * exec. (exec_do_find_memory_regions): New global.
5115 (exec_set_find_memory_regions): Rewrite.
5116 (exec_find_memory_regions): New function.
5117 (init_exec_ops): Use exec_find_memory_regions.
5119 2014-02-19 Tom Tromey <tromey@redhat.com>
5121 * target.h (struct target_ops) <to_supports_non_stop>: Add
5123 * target.c (find_default_supports_non_stop): Add argument.
5124 (target_supports_non_stop): Add argument.
5125 (find_default_supports_non_stop): Add 'self' argument.
5126 * remote.c (remote_supports_non_stop): Add 'self' argument.
5127 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5129 2014-02-19 Tom Tromey <tromey@redhat.com>
5131 * target.h (struct target_ops) <to_log_command>: Add argument.
5132 (target_log_command): Add argument.
5133 * serial.h (serial_log_command): Add 'self' argument.
5134 * serial.c (serial_log_command): Add 'self' argument.
5136 2014-02-19 Tom Tromey <tromey@redhat.com>
5138 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5139 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5141 (target_pid_to_exec_file): Add argument.
5142 * target.c (debug_to_pid_to_exec_file): Add argument.
5143 (update_current_target): Update.
5144 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5145 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5146 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5147 (linux_handle_extended_wait): Update.
5148 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5149 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5150 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5151 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5155 * target.h (struct target_ops) <to_rcmd>: Add argument.
5156 (target_rcmd): Add argument.
5157 * target.c (debug_to_rcmd): Add argument.
5158 (update_current_target, do_monitor_command): Update.
5159 * remote.c (remote_rcmd): Add 'self' argument.
5160 * monitor.c (monitor_rcmd): Add 'self' argument.
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * windows-nat.c (windows_stop): Add 'self' argument.
5165 * target.h (struct target_ops) <to_stop>: Add argument.
5166 * target.c (target_stop): Add argument.
5167 (debug_to_stop): Add argument.
5168 (update_current_target): Update.
5169 * remote.c (remote_stop): Add 'self' argument.
5170 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5171 (gdbsim_cntrl_c): Update.
5172 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5173 * procfs.c (procfs_stop): Add 'self' argument.
5174 * nto-procfs.c (procfs_stop): Add 'self' argument.
5175 * monitor.c (monitor_stop): Add 'self' argument.
5176 (monitor_open): Update.
5177 * linux-nat.c (linux_nat_stop): Add argument.
5178 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5179 * gnu-nat.c (gnu_stop): Add 'self' argument.
5180 * darwin-nat.c (darwin_stop): Add 'self' argument.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target.h (struct target_ops) <to_thread_name>: Add argument.
5185 * target.c (target_thread_name): Add argument.
5186 (update_current_target): Update.
5187 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5189 2014-02-19 Tom Tromey <tromey@redhat.com>
5191 * target.h (struct target_ops) <to_extra_thread_info>: Add
5193 (target_extra_thread_info): Add argument.
5194 * target.c (update_current_target): Update.
5195 * remote.c (remote_threads_extra_info): Add 'self' argument.
5196 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5198 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5199 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5200 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5202 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5204 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5206 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_program_signals>: Add argument.
5212 * target.c (target_program_signals): Add argument.
5213 * remote.c (remote_program_signals): Add 'self' argument.
5215 2014-02-19 Tom Tromey <tromey@redhat.com>
5217 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5218 * target.c (target_pass_signals): Add argument.
5219 * remote.c (remote_pass_signals): Add 'self' argument.
5220 (remote_start_remote): Update.
5221 * procfs.c (procfs_pass_signals): Add 'self' argument.
5222 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5223 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5224 (linux_nat_create_inferior, linux_nat_attach): Update.
5226 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * windows-nat.c (windows_can_run): Add 'self' argument.
5229 * target.h (struct target_ops) <to_can_run>: Add argument.
5230 (target_can_run): Add argument.
5231 * target.c (debug_to_can_run): Add argument.
5232 (update_current_target): Update.
5233 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5234 * inf-child.c (inf_child_can_run): Add 'self' argument.
5235 * go32-nat.c (go32_can_run): Add 'self' argument.
5237 2014-02-19 Tom Tromey <tromey@redhat.com>
5239 * target.h (struct target_ops) <to_has_exited>: Add argument.
5240 (target_has_exited): Add argument.
5241 * target.c (debug_to_has_exited): Add argument.
5242 (update_current_target): Update.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5248 (target_set_syscall_catchpoint): Add argument.
5249 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5251 * target.c (update_current_target): Update.
5253 2014-02-19 Tom Tromey <tromey@redhat.com>
5255 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5257 (target_remove_exec_catchpoint): Add argument.
5258 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5259 (update_current_target): Update.
5260 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5267 (target_insert_exec_catchpoint): Add argument.
5268 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5269 (update_current_target): Update.
5270 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5273 2014-02-19 Tom Tromey <tromey@redhat.com>
5275 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5277 (target_remove_vfork_catchpoint): Add argument.
5278 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5279 (update_current_target): Update.
5280 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5287 (target_insert_vfork_catchpoint): Add argument.
5288 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5289 (update_current_target): Update.
5290 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5297 (target_remove_fork_catchpoint): Add argument.
5298 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5299 (update_current_target): Update.
5300 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5303 2014-02-19 Tom Tromey <tromey@redhat.com>
5305 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5307 (target_insert_fork_catchpoint): Add argument.
5308 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5309 (update_current_target): Update.
5310 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5313 2014-02-19 Tom Tromey <tromey@redhat.com>
5315 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5317 (target_post_startup_inferior): Add argument.
5318 * target.c (debug_to_post_startup_inferior): Add argument.
5319 (update_current_target): Update.
5320 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5322 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5324 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5326 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5328 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5330 (super_post_startup_inferior): Likewise.
5331 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5333 (super_post_startup_inferior): Likewise.
5334 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5335 Add 'self' argument.
5336 (super_post_startup_inferior): Likewise.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * target.h (struct target_ops) <to_load>: Add argument.
5341 * target.c (target_load): Add argument.
5342 (debug_to_load): Add argument.
5343 (update_current_target): Update.
5344 * remote.c (remote_load): Add 'self' argument.
5345 * remote-sim.c (gdbsim_load): Add 'self' argument.
5346 * remote-mips.c (mips_load): Add 'self' argument.
5347 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5348 * monitor.c (monitor_load): Add 'self' argument.
5349 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5351 2014-02-19 Tom Tromey <tromey@redhat.com>
5353 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5354 (target_terminal_info): Add argument.
5355 * target.c (debug_to_terminal_info): Add argument.
5356 (default_terminal_info): Likewise.
5357 * inflow.c (child_terminal_info): Add 'self' argument.
5358 * inferior.h (child_terminal_info): Add 'self' argument.
5359 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5361 2014-02-19 Tom Tromey <tromey@redhat.com>
5363 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5365 (target_terminal_save_ours): Add argument.
5366 * target.c (debug_to_terminal_save_ours): Add argument.
5367 (update_current_target): Update.
5368 * inflow.c (terminal_save_ours): Add 'self' argument.
5369 * inferior.h (terminal_save_ours): Add 'self' argument.
5371 2014-02-19 Tom Tromey <tromey@redhat.com>
5373 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5374 (target_terminal_ours): Add argument.
5375 * target.c (debug_to_terminal_ours): Add argument.
5376 (update_current_target): Update.
5377 * remote.c (remote_terminal_ours): Add 'self' argument.
5378 (remote_close): Update.
5379 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5380 * inflow.c (terminal_ours): Add 'self' argument.
5381 * inferior.h (terminal_ours): Add 'self' argument.
5382 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5384 2014-02-19 Pedro Alves <palves@redhat.com>
5385 Tom Tromey <tromey@redhat.com>
5387 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5389 (target_terminal_ours_for_output): Add argument.
5390 * target.c (debug_to_terminal_ours_for_output): Add argument.
5391 (update_current_target): Update.
5392 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5393 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5394 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target.h (struct target_ops) <to_terminal_inferior>: Add
5400 * target.c (target_terminal_inferior): Add argument.
5401 (update_current_target): Update.
5402 * remote.c (remote_terminal_inferior): Add 'self' argument.
5403 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5404 * inflow.c (terminal_inferior): Add 'self' argument.
5405 * inferior.h (terminal_inferior): Add 'self' argument.
5406 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5407 (go32_terminal_inferior): Add 'self' argument.
5409 2014-02-19 Tom Tromey <tromey@redhat.com>
5411 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5412 (target_terminal_init): Add argument.
5413 * target.c (debug_to_terminal_init): Add argument.
5414 (update_current_target): Update.
5415 * inflow.c (terminal_init_inferior): Add 'self' argument.
5416 * inferior.h (terminal_init_inferior): Add 'self' argument.
5417 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5418 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5420 2014-02-19 Tom Tromey <tromey@redhat.com>
5422 * target.h (struct target_ops)
5423 <to_can_accel_watchpoint_condition>: Add argument.
5424 (target_can_accel_watchpoint_condition): Add argument.
5425 * target.c (debug_to_can_accel_watchpoint_condition): Add
5427 (update_current_target): Update.
5428 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5431 2014-02-19 Tom Tromey <tromey@redhat.com>
5433 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5435 (target_region_ok_for_hw_watchpoint): Add argument.
5436 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5437 (default_region_ok_for_hw_watchpoint): Add argument.
5438 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5439 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5441 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5443 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5445 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5447 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5449 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5451 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5452 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5454 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5455 Add 'self' argument.
5457 2014-02-19 Tom Tromey <tromey@redhat.com>
5459 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5461 (target_insert_watchpoint): Add argument.
5462 * target.c (debug_to_insert_watchpoint): Add argument.
5463 (update_current_target): Update.
5464 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5465 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5466 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5467 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5468 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5469 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5471 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5472 (procfs_insert_hw_watchpoint): Add 'self' argument.
5473 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5475 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5477 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5479 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5480 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5482 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5489 (target_remove_watchpoint): Add argument.
5490 * target.c (debug_to_remove_watchpoint): Add argument.
5491 (update_current_target): Update.
5492 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5493 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5494 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5495 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5496 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5497 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5499 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5500 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5502 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5504 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5506 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5507 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5509 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5512 2014-02-19 Tom Tromey <tromey@redhat.com>
5514 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5516 (target_remove_hw_breakpoint): Add argument.
5517 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5518 (update_current_target): Update.
5519 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5520 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5522 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5523 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5525 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5528 2014-02-19 Tom Tromey <tromey@redhat.com>
5530 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5532 (target_insert_hw_breakpoint): Add argument.
5533 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5534 (update_current_target): Update.
5535 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5536 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5538 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5539 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5540 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5542 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5545 2014-02-19 Tom Tromey <tromey@redhat.com>
5547 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5549 (target_can_use_hardware_watchpoint): Add argument.
5550 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5551 (update_current_target): Update.
5552 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5554 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5556 * remote.c (remote_check_watch_resources): Add 'self' argument.
5557 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5558 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5560 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5561 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5563 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5565 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5567 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5569 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5571 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5573 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5574 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5576 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5579 2014-02-19 Tom Tromey <tromey@redhat.com>
5581 * target.h (struct target_ops) <to_post_attach>: Add argument.
5582 (target_post_attach): Add argument.
5583 * target.c (debug_to_post_attach): Add argument.
5584 (update_current_target): Update.
5585 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5586 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5587 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5588 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5589 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5591 2014-02-19 Tom Tromey <tromey@redhat.com>
5593 * windows-nat.c (windows_close): Add 'self' argument.
5594 * tracepoint.c (tfile_close): Add 'self' argument.
5595 * target.h (struct target_ops) <to_close>: Add argument.
5596 * target.c (target_close): Add argument.
5597 (update_current_target): Update.
5598 * remote.c (remote_close): Add 'self' argument.
5599 * remote-sim.c (gdbsim_close): Add 'self' argument.
5600 * remote-mips.c (mips_close): Add 'self' argument.
5601 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5602 * record-full.c (record_full_close): Add 'self' argument.
5603 * record-btrace.c (record_btrace_close): Add 'self' argument.
5604 * monitor.h (monitor_close): Add 'self' argument.
5605 * monitor.c (monitor_close): Add 'self' argument.
5606 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5607 * linux-nat.c (linux_nat_close): Add argument.
5608 * go32-nat.c (go32_close): Add 'self' argument.
5609 * exec.c (exec_close_1): Add 'self' argument.
5610 * ctf.c (ctf_close): Add 'self' argument.
5611 * corelow.c (core_close): Add 'self' argument.
5612 (core_close_cleanup): Update.
5613 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5614 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * remote.c (remote_load): New function.
5619 (init_remote_ops): Use it.
5621 2014-02-19 Tom Tromey <tromey@redhat.com>
5623 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5625 * common/linux-btrace.h (linux_supports_btrace): Update.
5626 * remote.c (remote_supports_btrace): Add "self" argument.
5627 * target-delegates.c: Rebuild.
5628 * target.c (target_supports_btrace): Remove.
5629 * target.h (struct target_ops) <to_supports_btrace>: Add
5630 target_ops argument.
5631 (target_supports_btrace): New define.
5633 2014-02-19 Tom Tromey <tromey@redhat.com>
5635 * record-full.c (record_full_beneath_to_resume_ops)
5636 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5637 (record_full_beneath_to_wait)
5638 (record_full_beneath_to_store_registers_ops)
5639 (record_full_beneath_to_store_registers)
5640 (record_full_beneath_to_xfer_partial_ops)
5641 (record_full_beneath_to_xfer_partial)
5642 (record_full_beneath_to_insert_breakpoint_ops)
5643 (record_full_beneath_to_insert_breakpoint)
5644 (record_full_beneath_to_remove_breakpoint_ops)
5645 (record_full_beneath_to_remove_breakpoint)
5646 (record_full_beneath_to_stopped_by_watchpoint)
5647 (record_full_beneath_to_stopped_data_address)
5648 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5649 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5650 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5651 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5652 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5653 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5654 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5655 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5656 (record_full_resume, record_full_wait_1)
5657 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5658 (record_full_store_registers, record_full_xfer_partial)
5659 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5660 (record_full_async, record_full_core_xfer_partial): Use target
5662 * target-delegates.c: Rebuild.
5663 * target.c (current_xfer_partial): Remove.
5664 (update_current_target): Do not INHERIT or de_fault
5665 to_insert_breakpoint, to_remove_breakpoint,
5666 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5667 to_is_async_p, to_async. Do not set to_xfer_partial field.
5668 (default_xfer_partial): Simplify.
5669 (current_xfer_partial): Remove.
5670 (target_wait, target_resume): Simplify.
5671 (find_default_can_async_p, find_default_is_async_p): Update.
5672 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5673 to_xfer_partial, to_stopped_by_watchpoint,
5674 to_stopped_data_address.
5675 (target_store_registers): Simplify.
5676 (forward_target_remove_breakpoint)
5677 (forward_target_insert_breakpoint): Remove.
5678 (target_remove_breakpoint, target_insert_breakpoint)
5679 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5680 * target.h (struct target_ops) <to_resume, to_wait,
5681 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5682 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5683 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5685 (forward_target_remove_breakpoint)
5686 (forward_target_insert_breakpoint): Remove.
5687 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5689 (record_btrace_insert_breakpoint): Delegate directly.
5691 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target-delegates.c: New file.
5695 * target.c: Include target-delegates.c.
5696 (init_dummy_target): Call install_dummy_methods.
5697 (complete_target_initialization): Call install_delegators.
5698 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5699 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5700 * make-target-delegates: New file.
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * record.c (find_record_target): Use find_target_at.
5705 * target.c (find_target_at): New function.
5706 * target.h (find_target_at): Declare.
5708 2014-02-19 Tom Tromey <tromey@redhat.com>
5710 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5712 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5714 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5715 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5717 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5719 * linux-nat.c (save_sigtrap): Update.
5720 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5721 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5722 (linux_nat_close): Update.
5723 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5725 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5727 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5728 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5729 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5730 (tmp_to_async): Add 'ops' argument.
5731 (record_full_stopped_by_watchpoint, record_full_async)
5732 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5734 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5735 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5736 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5737 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5738 (remote_is_async_p, remote_async): Add 'ops' argument.
5739 (remote_stopped_data_address): Update.
5740 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5741 * target.c (update_current_target)
5742 (find_default_can_async_p, find_default_is_async_p): Update.
5743 (init_dummy_target): Update.
5744 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5745 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5746 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5747 (target_can_async_p, target_is_async_p, target_async)
5748 (target_stopped_by_watchpoint): Update.
5750 2014-02-19 Yao Qi <yao@codesourcery.com>
5753 * gdbarch.sh: Remove startup_gdbarch.
5754 * gdbarch.c: Regenerated.
5755 * gdbarch.h: Likewise.
5757 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5759 * rl78-tdep.c (rl78_g10_register_name): New function.
5760 (rl78_return_value): Add g10 support.
5761 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5764 2014-02-17 Doug Evans <xdje42@gmail.com>
5766 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5767 (SUBDIR_GUILE_SRCS): Ditto.
5768 (scm-gsmob.o): Ditto.
5770 2014-02-17 Yao Qi <yao@codesourcery.com>
5772 * gnu-nat.c (ILL_RPC): Declare defined function.
5774 2014-02-17 Yao Qi <yao@codesourcery.com>
5776 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5777 mach_msg_type_number_t.
5778 (gnu_write_inferior): Likewise.
5780 2014-02-17 Yao Qi <yao@codesourcery.com>
5782 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5784 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5785 (inf_validate_procs, inf_signal): Likewise.
5786 (S_exception_raise_request): Likewise.
5787 (do_mach_notify_dead_name): Likewise.
5788 (steal_exc_port): Likewise.
5789 (gnu_read_inferior): Change 'copy_count''s type to
5790 mach_msg_type_number_t.
5791 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5794 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5796 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5797 flag. Adjust all users; in particular...
5798 (gnu_wait): ..., don't decrement its value in here...
5799 (gnu_create_inferior): ..., and instead set the flag in here,
5800 around the startup_inferior call, and call that one with
5801 START_INFERIOR_TRAPS_EXPECTED.
5803 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5804 (ILL_RPC): ... new macro.
5805 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5806 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5807 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5808 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5809 functions with ILL_RPC macro.
5810 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5811 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5812 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5813 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5814 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5815 (S_proc_getlogin_reply, S_proc_getsid_reply)
5816 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5817 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5818 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5819 (S_proc_getnports_reply, S_proc_is_important_reply)
5820 (S_proc_get_code_reply): New stub functions, generated with
5823 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5824 collected the type check structures.
5826 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5828 2014-02-14 Doug Evans <dje@google.com>
5830 * target.c (target_write_partial): Fix result type.
5832 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5834 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5835 the proper offsets to access fpregset_t.
5837 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5839 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5840 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5841 * h8300-tdep.c (setmachinelist): Remove global.
5842 * hppa-tdep.c (hppa_sigtramp): Remove global.
5843 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5844 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5845 * ravenscar-thread.c (update_target_observer): Remove global.
5846 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5848 2014-02-12 Tom Tromey <tromey@redhat.com>
5850 * common/rsp-low.c: Update comments.
5851 * common/rsp-low.h: Update comments.
5853 2014-02-12 Tom Tromey <tromey@redhat.com>
5855 * common/rsp-low.c (convert_ascii_to_int): Remove.
5856 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5858 2014-02-12 Tom Tromey <tromey@redhat.com>
5860 * common/rsp-low.h (unhexify): Don't declare.
5861 * common/rsp-low.c (unhexify): Remove.
5863 2014-02-12 Tom Tromey <tromey@redhat.com>
5865 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5866 * common/rsp-low.c (convert_int_to_ascii): Remove.
5868 2014-02-12 Tom Tromey <tromey@redhat.com>
5870 * common/rsp-low.h (hexify): Don't declare.
5871 * common/rsp-low.c (hexify): Remove.
5873 2014-02-12 Tom Tromey <tromey@redhat.com>
5875 * common/rsp-low.c (hexify): Never take strlen of argument.
5877 2014-02-12 Tom Tromey <tromey@redhat.com>
5879 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5880 * remote.c (extended_remote_run, remote_rcmd)
5881 (remote_download_trace_state_variable, remote_save_trace_data)
5882 (remote_set_trace_notes): Update.
5883 * tracepoint.c (encode_source_string, tfile_write_status)
5884 (tfile_write_uploaded_tsv): Update.
5886 2014-02-12 Tom Tromey <tromey@redhat.com>
5888 * tracepoint.c: Include rsp-low.h.
5889 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5890 * remote.c: Include rsp-low.h.
5891 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5892 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5893 (remote_unescape_input): Move to common/rsp-low.c.
5894 * common/rsp-low.h: New file.
5895 * common/rsp-low.c: New file.
5896 * Makefile.in (SFILES): Add common/rsp-low.c.
5897 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5898 (COMMON_OBS): Add rsp-low.o.
5899 (rsp-low.o): New target.
5901 2014-02-12 Tom Tromey <tromey@redhat.com>
5903 * utils.h: Include print-utils.h.
5904 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5905 (int_string, core_addr_to_string, core_addr_to_string_nz)
5906 (hex_string, hex_string_custom): Don't declare.
5907 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5908 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5909 (hex_string_custom, int_string, core_addr_to_string)
5910 (core_addr_to_string_nz, host_address_to_string): Move to
5911 common/print-utils.c.
5912 * common/print-utils.h: New file.
5913 * common/print-utils.c: New file
5914 * Makefile.in (SFILES): Add common/print-utils.c.
5915 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5916 (COMMON_OBS): Add print-utils.o.
5917 (print-utils.o): New target.
5919 2014-02-12 Tom Tromey <tromey@redhat.com>
5921 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5923 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5925 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5927 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5929 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5930 if a PT_IO ptrace request returns sucessfully but indicates that 0
5931 bytes were transferred.
5933 2014-02-12 Pedro Alves <palves@redhat.com>
5934 Kevin Buettner <kevinb@redhat.com>
5936 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5937 TYPE_INSTANCE_FLAG_CODE_SPACE.
5939 2014-02-12 Pedro Alves <palves@redhat.com>
5941 * h8300-tdep.c (pseudo_from_raw_register)
5942 (raw_from_pseudo_register): New functions.
5943 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5946 2014-02-12 Pedro Alves <palves@redhat.com>
5948 * h8300-tdep.c (h8300_register_sim_regno): New function.
5949 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5950 gdbarch_register_sim_regno hook.
5952 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5954 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5956 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5958 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5960 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5962 * obsd-tdep.h (obsd_init_abi): New prototype.
5963 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5964 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5965 (obsd_init_abi): New functions.
5966 * i386obsd-tdep.c: Include "obsd-tdep.h".
5967 (i386obsd_init_abi): Call obsd_init_abi.
5968 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5969 (amd64obsd_init_abi): Call obsd_init_abi.
5970 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5971 obsd-tdep.c to gdb_target_obs.
5973 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5975 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5976 double float arguments to 16-byte in the argument slots.
5978 2014-02-11 Doug Evans <xdje42@gmail.com>
5980 * configure.ac: Don't crash if pkg-config is not found and guile
5981 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5983 * configure: Regenerate.
5985 2014-02-11 Yao Qi <yao@codesourcery.com>
5987 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5988 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5989 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5990 * gnu-nat.c (gnu_xfer_memory): Likewise.
5991 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5992 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5993 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5994 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5996 2014-02-11 Yao Qi <yao@codesourcery.com>
5998 * target.h (enum target_xfer_error): Rename to ...
5999 (enum target_xfer_status): ... it. New. All users updated.
6000 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6002 (TARGET_XFER_STATUS_ERROR_P): New macro.
6003 (target_xfer_error_to_string): Remove declaration.
6004 (target_xfer_status_to_string): Declare.
6005 (target_xfer_partial_ftype): Adjust it.
6006 (struct target_ops) <to_xfer_partial>: Return
6007 target_xfer_status. Add argument xfered_len. Update
6009 * target.c (target_xfer_error_to_string): Rename to ...
6010 (target_xfer_status_to_string): ... it. New. All callers
6012 (target_read_live_memory): Likewise. Call target_xfer_partial
6013 instead of target_read.
6014 (memory_xfer_live_readonly_partial): Return
6015 target_xfer_status. Add argument xfered_len.
6016 (raw_memory_xfer_partial): Likewise.
6017 (memory_xfer_partial_1): Likewise.
6018 (memory_xfer_partial): Likewise.
6019 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6020 properly. Update debug message.
6021 (default_xfer_partial, current_xfer_partial): Likewise.
6022 (target_write_partial): Likewise.
6023 (target_read_partial): Likewise. All callers updated.
6024 (read_whatever_is_readable): Likewise.
6025 (target_write_with_progress): Likewise.
6026 (target_read_alloc_1): Likewise.
6028 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6029 * auxv.c (procfs_xfer_auxv): Likewise.
6030 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6031 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6032 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6033 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6034 * corefile.c (read_memory): Adjust.
6035 * corelow.c (core_xfer_partial): Likewise.
6036 * ctf.c (ctf_xfer_partial): Likewise.
6037 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6039 (darwin_xfer_partial): Likewise.
6040 * exec.c (section_table_xfer_memory_partial): Likewise. All
6042 (exec_xfer_partial): Likewise.
6043 * exec.h (section_table_xfer_memory_partial): Update
6045 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6047 (gnu_xfer_partial): Likewise.
6048 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6049 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6050 (ia64_hpux_xfer_solib_got): Likewise.
6051 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6052 type of 'partial_len' to ULONGEST.
6053 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6054 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6055 (linux_nat_xfer_partial): Likewise.
6056 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6057 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6058 * monitor.c (monitor_xfer_memory): Likewise.
6059 (monitor_xfer_partial): Likewise.
6060 * procfs.c (procfs_xfer_partial): Likewise.
6061 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6062 * record-full.c (record_full_xfer_partial): Likewise.
6063 (record_full_core_xfer_partial): Likewise.
6064 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6065 (gdbsim_xfer_partial): Likewise.
6066 * remote.c (remote_write_bytes_aux): Likewise. All callers
6068 (remote_write_bytes, remote_read_bytes): Likewise. All
6070 (remote_flash_erase): Likewise. All callers updated.
6071 (remote_write_qxfer): Likewise. All callers updated.
6072 (remote_read_qxfer): Likewise. All callers updated.
6073 (remote_xfer_partial): Likewise.
6074 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6075 (rs6000_xfer_shared_libraries): Likewise.
6076 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6077 (sol_thread_xfer_partial): Likewise.
6078 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6079 (sparc_xfer_partial): Likewise.
6080 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6082 (spu_xfer_partial): Likewise.
6083 * spu-multiarch.c (spu_xfer_partial): Likewise.
6084 * tracepoint.c (tfile_xfer_partial): Likewise.
6085 * windows-nat.c (windows_xfer_memory): Likewise.
6086 (windows_xfer_shared_libraries): Likewise.
6087 (windows_xfer_partial): Likewise.
6088 * valprint.c: Replace 'target_xfer_error' with
6089 'target_xfer_status' in comments.
6091 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6093 Checked in by Joel Brobecker <brobecker@adacore.com>.
6094 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6096 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6098 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6099 function parameters.
6101 2014-02-10 Will Newton <will.newton@linaro.org>
6103 * elfread.c (elf_rel_plt_read): Look for a .got section if
6104 looking up .got.plt fails.
6105 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6106 on address passed to elf_gnu_ifunc_record_cache.
6107 (elf_gnu_ifunc_resolve_addr): Likewise.
6108 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6110 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6112 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6113 (X_RETTURN): New macro.
6114 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6116 * sparc64-tdep.c (sparc64_init_abi): Hook
6117 sparc_in_function_epilogue_p.
6119 2014-02-10 Gary Benson <gbenson@redhat.com>
6121 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6122 Rename name_matcher to symbol_matcher.
6124 2014-02-10 Gary Benson <gbenson@redhat.com>
6126 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6127 Use expand_symtabs_file_matcher_ftype and
6128 expand_symtabs_symbol_matcher_ftype.
6130 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6132 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6133 (struct ada_symbol_cache): New.
6134 (ada_free_symbol_cache): Forward declare.
6135 (struct ada_pspace_data): New.
6136 (ada_pspace_data_handle): New static global.
6137 (get_ada_pspace_data, ada_pspace_data_cleanup)
6138 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6139 (cache_space, cache): Delete, now folded inside struct
6141 (ada_get_symbol_cache): New function.
6142 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6144 (_initialize_ada_language): Remove initialization of cache_space.
6145 Move call to observer_attach_inferior_exit up, grouping it
6146 with the other observer registrations inside this function.
6147 Rename command to be more general. Add call to
6148 register_program_space_data_with_cleanup.
6150 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6152 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6153 ada_new_objfile_observer.
6154 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6155 (_initialize_tasks): Update uses of ada_new_objfile_observer
6156 and ada_tasks_normal_stop_observer.
6158 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6160 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6161 returned by the 'Length attribute to integer.
6163 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6165 * ada-lang.c (_initialize_ada_language): Initialize
6166 cache_space obstack.
6168 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6170 * ada-lang.c (HASH_SIZE): New macro.
6171 (struct cache_entry): New type.
6172 (cache_space, cache): New static globals.
6173 (ada_clear_symbol_cache, find_entry): New functions.
6174 (lookup_cached_symbol, cache_symbol): Implement.
6175 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6176 (_initialize_ada_language): Attach ada_new_objfile_observer
6177 and ada_free_objfile_observer.
6179 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6181 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6182 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6183 struct block * parameter.
6184 (ada_lookup_symbol_list_worker): Constify local variable "block".
6185 Remove cast which is no longer necessary.
6187 2014-02-10 Doug Evans <xdje42@gmail.com>
6189 Add Guile as an extension language.
6190 * NEWS: Mention Guile scripting.
6191 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6192 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6193 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6194 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6195 (CLIBS): Add GUILE_LIBS.
6196 (install-guile): New rule.
6197 (guile.o): New rule.
6198 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6199 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6200 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6201 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6202 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6203 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6204 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6205 * configure.ac: New option --with-guile.
6206 * configure: Regenerate.
6207 * config.in: Regenerate.
6208 * auto-load.c: Remove #include "python/python.h". Add #include
6209 "gdb/section-scripts.h".
6210 (source_section_scripts): Handle Guile scripts.
6211 (_initialize_auto_load): Add name of Guile objfile script to
6212 scripts-directory help text.
6213 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6214 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6215 (struct breakpoint): New member scm_bp_object.
6216 * defs.h (enum command_control_type): New value guile_control.
6217 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6219 (show_user): Update comment.
6220 (_initialize_cli_cmds): Update help text for "show user". Update help
6221 text for max-user-call-depth.
6222 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6224 (multi_line_command_p): Add guile_control.
6225 (print_command_lines): Handle guile_control.
6226 (execute_control_command, recurse_read_control_structure): Ditto.
6227 (process_next_line): Recognize "guile" commands.
6228 * disasm.c (gdb_disassemble_info): Make non-static.
6229 * disasm.h: #include "dis-asm.h".
6230 (struct gdbarch): Add forward decl.
6231 (gdb_disassemble_info): Declare.
6232 * extension.c: #include "guile/guile.h".
6233 (extension_languages): Add guile.
6234 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6235 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6236 * gdbtypes.c (get_unsigned_type_max): New function.
6237 (get_signed_type_minmax): New function.
6238 * gdbtypes.h (get_unsigned_type_max): Declare.
6239 (get_signed_type_minmax): Declare.
6240 * guile/README: New file.
6241 * guile/guile-internal.h: New file.
6242 * guile/guile.c: New file.
6243 * guile/guile.h: New file.
6244 * guile/scm-arch.c: New file.
6245 * guile/scm-auto-load.c: New file.
6246 * guile/scm-block.c: New file.
6247 * guile/scm-breakpoint.c: New file.
6248 * guile/scm-disasm.c: New file.
6249 * guile/scm-exception.c: New file.
6250 * guile/scm-frame.c: New file.
6251 * guile/scm-gsmob.c: New file.
6252 * guile/scm-iterator.c: New file.
6253 * guile/scm-lazy-string.c: New file.
6254 * guile/scm-math.c: New file.
6255 * guile/scm-objfile.c: New file.
6256 * guile/scm-ports.c: New file.
6257 * guile/scm-pretty-print.c: New file.
6258 * guile/scm-safe-call.c: New file.
6259 * guile/scm-string.c: New file.
6260 * guile/scm-symbol.c: New file.
6261 * guile/scm-symtab.c: New file.
6262 * guile/scm-type.c: New file.
6263 * guile/scm-utils.c: New file.
6264 * guile/scm-value.c: New file.
6265 * guile/lib/gdb.scm: New file.
6266 * guile/lib/gdb/boot.scm: New file.
6267 * guile/lib/gdb/experimental.scm: New file.
6268 * guile/lib/gdb/init.scm: New file.
6269 * guile/lib/gdb/iterator.scm: New file.
6270 * guile/lib/gdb/printing.scm: New file.
6271 * guile/lib/gdb/types.scm: New file.
6272 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6273 (VPATH): Add $(GUILE_SRCDIR).
6274 (GUILE_DIR): New variable.
6275 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6276 (all): Add stamp-guile dependency.
6277 (stamp-guile): New rule.
6278 (clean-guile, install-guile, uninstall-guile): New rules.
6279 (install-only): Add install-guile dependency.
6280 (uninstall): Add uninstall-guile dependency.
6281 (clean): Add clean-guile dependency.
6283 2014-02-09 Doug Evans <xdje42@gmail.com>
6285 Revert this patch (which I approved, mea culpa).
6287 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6289 * Makefile.in (all-lib): Remove.
6290 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6292 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6294 Fix Python stack corruption.
6295 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6298 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6300 * Makefile.in (all-lib): Remove.
6301 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6303 2014-02-07 Doug Evans <dje@google.com>
6305 * extension-priv.h (extension_language_script_ops): Add comment.
6306 (extension_language_ops): Add comment.
6307 (active_ext_lang_state): Fix typo in comment.
6309 2014-02-07 Pedro Alves <palves@redhat.com>
6311 PR breakpoints/16292
6312 * infrun.c (handle_signal_stop) <signal arrives while stepping
6313 over a breakpoint>: Switch back to the stepping thread.
6315 2014-02-07 Yao Qi <yao@codesourcery.com>
6317 * target.c (target_xfer_partial): Return zero if LEN is zero.
6319 2014-02-07 Yao Qi <yao@codesourcery.com>
6321 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6322 (ld_so_xfer_auxv): Likewise.
6323 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6324 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6325 * corelow.c (core_xfer_partial): Likewise.
6326 * ctf.c (ctf_xfer_partial): Likewise.
6327 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6328 (darwin_xfer_partial): Likewise.
6329 * exec.c (exec_xfer_partial): Likewise.
6330 * gnu-nat.c (gnu_xfer_partial): Likewise.
6331 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6332 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6333 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6334 * linux-nat.c (linux_xfer_siginfo): Likewise.
6335 (linux_proc_xfer_spu): Likewise.
6336 * procfs.c (procfs_xfer_partial): Likewise.
6337 * record-full.c (record_full_xfer_partial): Likewise.
6338 (record_full_core_xfer_partial): Likewise.
6339 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6340 * remote.c (remote_write_qxfer): Likewise.
6341 (remote_write_qxfer, remote_read_qxfer): Likewise.
6342 (remote_xfer_partial): Likewise.
6343 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6344 (rs6000_xfer_shared_libraries): Likewise.
6345 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6346 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6347 (spu_xfer_partial): Likewise.
6348 * target.c (memory_xfer_partial_1): Likewise.
6349 * tracepoint.c (tfile_xfer_partial): Likewise.
6350 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6351 (windows_xfer_partial): Likewise.
6353 2014-02-07 Yao Qi <yao@codesourcery.com>
6355 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6357 (core_xfer_shared_libraries_aix): Likewise.
6358 * gdbarch.c, gdbarch.h: Regenerated.
6359 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6360 ULONGEST. Change 'len_avail' type to ULONGEST.
6361 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6362 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6364 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6366 2014-02-07 Yao Qi <yao@codesourcery.com>
6368 * corefile.c (memory_error): Get 'exception' from ERR and pass
6369 'exception' to throw_error.
6371 2014-02-06 Doug Evans <xdje42@gmail.com>
6373 * configure.ac (libpython checking): Remove all but python.o from
6374 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6375 * configure: Regenerate.
6377 * Makefile.in (SFILES): Add extension.c.
6378 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6379 (COMMON_OBS): Add extension.o.
6380 * extension.h: New file.
6381 * extension-priv.h: New file.
6382 * extension.c: New file.
6384 * python/python-internal.h: #include "extension.h".
6385 (gdbpy_auto_load_enabled): Declare.
6386 (gdbpy_apply_val_pretty_printer): Declare.
6387 (gdbpy_apply_frame_filter): Declare.
6388 (gdbpy_preserve_values): Declare.
6389 (gdbpy_breakpoint_cond_says_stop): Declare.
6390 (gdbpy_breakpoint_has_cond): Declare.
6391 (void source_python_script_for_objfile): Delete.
6392 * python/python.c: #include "extension-priv.h".
6393 Delete inclusion of "observer.h".
6394 (extension_language_python): Moved here and renamed from
6395 script_language_python in py-auto-load.c.
6396 Redefined to be of type extension_language_defn.
6397 (python_extension_script_ops): New global.
6398 (python_extension_ops): New global.
6399 (struct python_env): New member previous_active.
6400 (restore_python_env): Call restore_active_ext_lang.
6401 (ensure_python_env): Call set_active_ext_lang.
6402 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6404 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6406 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6408 (gdbpy_eval_from_control_command): Renamed from
6409 eval_python_from_control_command, made static. New arg extlang.
6410 (gdbpy_source_script) Renamed from source_python_script, made static.
6412 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6413 result to int. New arg extlang.
6414 (gdbpy_source_objfile_script): Renamed from
6415 source_python_script_for_objfile, made static. New arg extlang.
6416 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6417 static. New args extlang, extlang_printers. Change result type to
6419 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6420 static. New arg extlang. Rename arg printers to extlang_printers
6421 and change type to ext_lang_type_printers *.
6422 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6423 static. Replace argument arg with extlang, extlang_printers.
6424 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6425 (!HAVE_PYTHON, source_python_script): Delete.
6426 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6427 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6428 (!HAVE_PYTHON, start_type_printers): Delete.
6429 (!HAVE_PYTHON, apply_type_printers): Delete.
6430 (!HAVE_PYTHON, free_type_printers): Delete.
6431 (_initialize_python): Delete call to observer_attach_before_prompt.
6432 (finalize_python): Set/restore active extension language.
6433 (gdbpy_finish_initialization) Renamed from
6434 finish_python_initialization, made static. New arg extlang.
6435 (gdbpy_initialized): New function.
6436 * python/python.h: #include "extension.h". Delete #include
6437 "value.h", "mi/mi-cmds.h".
6438 (extension_language_python): Declare.
6439 (GDBPY_AUTO_FILE_NAME): Delete.
6440 (enum py_bt_status): Moved to extension.h and renamed to
6442 (enum frame_filter_flags): Moved to extension.h.
6443 (enum py_frame_args): Moved to extension.h and renamed to
6444 ext_lang_frame_args.
6445 (finish_python_initialization): Delete.
6446 (eval_python_from_control_command): Delete.
6447 (source_python_script): Delete.
6448 (apply_val_pretty_printer): Delete.
6449 (apply_frame_filter): Delete.
6450 (preserve_python_values): Delete.
6451 (gdbpy_script_language_defn): Delete.
6452 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6453 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6455 * auto-load.c: #include "extension.h".
6456 (GDB_AUTO_FILE_NAME): Delete.
6457 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6458 (script_language_gdb): Delete, moved to extension.c and renamed to
6459 extension_language_gdb.
6460 (source_gdb_script_for_objfile): Delete.
6461 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6462 (loaded_script): Change type of language member to
6463 struct extension_language_defn *.
6464 (init_loaded_scripts_info): Initialize
6465 unsupported_script_warning_printed.
6466 (maybe_add_script): Make static. Change type of language arg to
6467 struct extension_language_defn *.
6468 (clear_section_scripts): Reset unsupported_script_warning_printed.
6469 (auto_load_objfile_script_1): Rewrite to use extension language API.
6470 (auto_load_objfile_script): Make public. Remove support-compiled-in
6471 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6472 (source_section_scripts): Rewrite to use extension language API.
6473 (load_auto_scripts_for_objfile): Rewrite to use
6474 auto_load_scripts_for_objfile.
6475 (collect_matching_scripts_data): Change type of language member to
6476 struct extension_language_defn *.
6477 (auto_load_info_scripts): Change type of language arg to
6478 struct extension_language_defn *.
6479 (unsupported_script_warning_print): New function.
6480 (script_not_found_warning_print): Make static.
6481 (_initialize_auto_load): Rewrite construction of scripts-directory
6483 * auto-load.h (struct objfile): Add forward decl.
6484 (struct script_language): Delete.
6485 (struct auto_load_pspace_info): Add forward decl.
6486 (struct extension_language_defn): Add forward decl.
6487 (maybe_add_script): Delete.
6488 (auto_load_objfile_script): Declare.
6489 (script_not_found_warning_print): Delete.
6490 (auto_load_info_scripts): Update prototype.
6491 (auto_load_gdb_scripts_enabled): Declare.
6492 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6493 auto_load_python_scripts_enabled and made public.
6494 (script_language_python): Delete, moved to python.c.
6495 (gdbpy_script_language_defn): Delete.
6496 (info_auto_load_python_scripts): Update to use
6497 extension_language_python.
6499 * breakpoint.c (condition_command): Replace call to
6500 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6501 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6502 with call to breakpoint_ext_lang_cond_says_stop.
6503 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6504 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6505 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6506 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6508 (local_setattro): Print name of extension language with existing
6511 * valprint.c (val_print, value_print): Update to call
6512 apply_ext_lang_val_pretty_printer.
6513 * cp-valprint.c (cp_print_value): Update call to
6514 apply_ext_lang_val_pretty_printer.
6515 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6516 (gdbpy_apply_val_pretty_printer): Renamed from
6517 apply_val_pretty_printer. New arg extlang.
6518 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6520 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6521 extension language API.
6522 * cli/cli-script.c (execute_control_command): Update to call
6523 eval_ext_lang_from_control_command.
6525 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6526 enum ext_lang_bt_status values. Update call to
6527 apply_ext_lang_frame_filter.
6528 (mi_cmd_stack_list_locals): Ditto.
6529 (mi_cmd_stack_list_args): Ditto.
6530 (mi_cmd_stack_list_variables): Ditto.
6531 * mi/mi-main.c: Delete #include "python/python-internal.h".
6532 Add #include "extension.h".
6533 (mi_cmd_list_features): Replace reference to python internal variable
6534 gdb_python_initialized with call to ext_lang_initialized_p.
6536 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6537 Update to use enum ext_lang_frame_args. Update to call
6538 apply_ext_lang_frame_filter.
6539 * python/py-framefilter.c (extract_sym): Update to use enum
6541 (extract_value, py_print_type, py_print_value): Ditto.
6542 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6543 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6544 (py_print_frame): Ditto.
6545 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6546 New arg extlang. Update to use enum ext_lang_bt_status.
6548 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6549 finish_python_initialization. Replace with call to
6550 finish_ext_lang_initialization.
6552 * typeprint.c (do_free_global_table): Update to call
6553 free_ext_lang_type_printers.
6554 (create_global_typedef_table): Update to call
6555 start_ext_lang_type_printers.
6556 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6557 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6558 (type_print_options): Change type of global_printers from "void *"
6559 to "struct ext_lang_type_printers *".
6561 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6562 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6563 (gdbpy_preserve_values): Renamed from preserve_python_values.
6565 (!HAVE_PYTHON, preserve_python_values): Delete.
6567 * utils.c (quit_flag): Delete, moved to extension.c.
6568 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6571 * eval.c: Delete #include "python/python.h".
6572 * main.c: Delete #include "python/python.h".
6574 * defs.h: Update comment.
6576 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6580 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6582 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6585 2014-02-05 Yao Qi <yao@codesourcery.com>
6587 * remote.c (remote_pass_signals): Remove local 'buf' and use
6589 (remote_program_signals): Likewise.
6591 2014-02-05 Yao Qi <yao@codesourcery.com>
6593 * ctf.c: Include "inferior.h" and "gdbthread.h".
6594 (CTF_PID): A new macro.
6595 (ctf_open): Call inferior_appeared and add_thread_silent.
6596 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6597 (ctf_thread_alive): New function.
6598 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6600 2014-02-05 Yao Qi <yao@codesourcery.com>
6604 2013-05-24 Yao Qi <yao@codesourcery.com>
6606 * tracepoint.c (TFILE_PID): Remove.
6607 (tfile_open): Don't add thread and inferior.
6608 (tfile_close): Don't set 'inferior_ptid'. Don't call
6609 exit_inferior_silent.
6610 (tfile_thread_alive): Remove.
6611 (init_tfile_ops): Don't set field 'to_thread_alive' of
6614 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6616 * remote.c (remote_start_remote): Call remote_check_symbols even
6617 if only symbol-file (not file) has been given.
6619 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6621 * gdbarch.sh (skip_entrypoint): New callback.
6622 * gdbarch.c, gdbarch.h: Regenerate.
6623 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6624 * infrun.c (fill_in_stop_func): Likewise.
6625 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6626 (ppc_elfv2_elf_make_msymbol_special): New function.
6627 (ppc_elfv2_skip_entrypoint): Likewise.
6628 (ppc_linux_init_abi): Install them for ELFv2.
6630 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6632 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6633 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6634 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6635 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6636 structures returned in GPRs.
6638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6640 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6641 offset to the stack parameter list for the ELFv2 ABI.
6643 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6645 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6646 set_gdbarch_convert_from_func_ptr_addr and
6647 set_gdbarch_elf_make_msymbol_special for ELFv1.
6648 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6649 function descriptors on ELFv1.
6650 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6651 set up r12 at function entry.
6653 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6655 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6656 (struct gdbarch_tdep): New member elf_abi.
6658 * rs6000-tdep.c: Include "elf/ppc64.h".
6659 (rs6000_gdbarch_init): Detect ELF ABI version.
6661 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6663 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6664 within a register pair holding a DFP 128-bit value on little-endian.
6665 (ppc64_sysv_abi_return_value_base): Likewise.
6666 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6667 (dfp_pseudo_register_write): Likewise.
6669 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6671 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6672 offset on little-endian when passing _Decimal32.
6673 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6675 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6677 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6678 of the overlapped FP register within the VSX register on little-
6680 (efpr_pseudo_register_write): Likewise.
6682 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6684 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6685 offset on little-endian when passing small structures.
6687 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6689 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6690 (struct ppc64_sysv_argpos): New data structure.
6691 (ppc64_sysv_abi_push_float): Remove.
6692 (ppc64_sysv_abi_push_val): New function.
6693 (ppc64_sysv_abi_push_integer): Likewise.
6694 (ppc64_sysv_abi_push_freg): Likewise.
6695 (ppc64_sysv_abi_push_vreg): Likewise.
6696 (ppc64_sysv_abi_push_param): Likewise.
6697 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6698 (ppc64_sysv_abi_return_value_base): New function.
6699 (ppc64_sysv_abi_return_value): Refactor to use it.
6701 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6703 * NEWS: Document new target powerpc64le-*-linux*.
6705 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6707 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6708 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6710 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6711 register set used in ELF core dumps. Add floating-point register set.
6713 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6715 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6716 dwarf2_to_gdb[] table using symbolic constants. Adjust
6717 penultimate entry from number representing the PC register
6718 to symbolic constant representing the MDR register. Add
6719 constant for the PC register to the end of the table.
6721 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6723 * bsd-kvm.c: Include <sys/param.h>
6725 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6727 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6729 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6731 * ada-lang.h (clear_ada_sym_cache): Delete.
6733 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6735 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6737 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6739 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6740 the sigreturn register save area only if the syscall is
6743 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6745 * valops.c (value_slice): Minor reformatting.
6747 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6749 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6751 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6753 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6755 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6756 (ada_ignore_descriptive_types_p): New static global.
6757 (find_parallel_type_by_descriptive_type): Return immediately
6758 if ada_ignore_descriptive_types_p is set.
6759 (_initialize_ada_language): Register new commands "maintenance
6760 set ada", "maintenance show ada", "maintenance set ada
6761 ignore-descriptive-types" and "maintenance show ada
6762 ignore-descriptive-types".
6763 * NEWS: Add entry for new "maint ada set/show
6764 ignore-descriptive-types" commands.
6766 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6768 * record-btrace.c (record_btrace_close): Call btrace_teardown
6771 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6773 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6776 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6778 * ada-typeprint (type_is_full_subrange_of_target_type):
6780 (print_range): Add parameter bounds_prefered_p. If not set,
6781 try printing range types using the name of their base type.
6782 (print_range_type): Add parameter bounds_prefered_p.
6783 Use it in call to print_range.
6784 (print_array_type, ada_print_type): Update calls to print_range
6785 and print_range_type.
6787 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6789 * ada-typeprint.c (print_array_type, print_choices, print_range)
6790 (print_range_bound, print_dynamic_range_bound, print_range_type):
6793 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6795 * ada-typeprint.c (print_range): Add missing empty line
6796 after local declaration.
6798 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6800 * ada-valprint.c (print_optional_low_bound): Get index_type's
6801 target type for as long as it is a TYPE_CODE_RANGE.
6803 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6805 * procfs.c (procfs_make_note_section): Remove assertion and
6808 2014-01-24 Yao Qi <yao@codesourcery.com>
6810 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6811 * corelow.c (get_core_siginfo): Likewise.
6813 2014-01-24 Yao Qi <yao@codesourcery.com>
6815 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6816 ULONGEST. Don't check 'len' is negative.
6817 (remote_write_bytes): Change type of 'len' to ULONGEST.
6819 2014-01-23 Tom Tromey <tromey@redhat.com>
6822 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6823 Handle exception from frame.block.
6824 (FrameVars.fetch_frame_locals): Likewise.
6826 2014-01-23 Tom Tromey <tromey@redhat.com>
6829 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6830 on a NULL pointer. Move "goto error" to correct place.
6832 2014-01-23 Tom Tromey <tromey@redhat.com>
6835 * python/py-framefilter.c (apply_frame_filter): Call
6836 ensure_python_env after computing gdbarch.
6838 2014-01-23 Yao Qi <yao@codesourcery.com>
6840 * target.c (raw_memory_xfer_partial): Change argument type
6841 from void * to gdb_byte *.
6842 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6844 2014-01-22 Doug Evans <dje@google.com>
6846 New gdbserver option --debug-format=timestamp.
6849 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6851 * syscalls/s390x-linux.xml: New file.
6852 * syscalls/s390-linux.xml: New file.
6853 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6854 (XML_SYSCALL_FILENAME_S390X): Likewise.
6855 (op_svc): New enum value for SVC opcode.
6856 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6857 (s390_linux_get_syscall_number): New function.
6858 (s390_gdbarch_init): Register '*get_syscall_number' and the
6859 syscall xml file name.
6860 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6861 "s390-linux.xml" and "s390x-linux.xml".
6862 * NEWS: Announce new feature.
6864 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6866 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6868 2014-01-22 Pedro Alves <palves@redhat.com>
6870 * xtensa-config.c: Include defs.h.
6872 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6874 * common/common-utils.h: Add "ARI:" comment beside __func__
6877 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6879 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6880 documentation a bit.
6882 2014-01-21 Roland McGrath <mcgrathr@google.com>
6884 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6885 * configure: Regenerate.
6886 * aclocal.m4: Regenerate.
6887 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6888 New substituted variables.
6889 (install-strip): New target.
6890 (INSTALL_SCRIPT): New substituted variable.
6891 (FLAGS_TO_PASS): Add it.
6892 (install-only): Use $(INSTALL_SCRIPT) rather than
6893 $(INSTALL_PROGRAM) for gcore.
6895 2014-01-20 Tom Tromey <tromey@redhat.com>
6897 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6900 2014-01-20 Tom Tromey <tromey@redhat.com>
6902 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6903 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6904 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6905 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6906 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6907 (struct cmd_list_element) <flags>: Remove.
6908 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6909 doc_allocated>: New fields.
6910 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6912 * maint.c (maintenance_do_deprecate): Update.
6913 * top.c (execute_command): Update.
6915 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6917 * xtensa-linux-nat.c: Include asm/ptrace.h.
6919 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6921 * Makefile.in (SFILES): Add d-support.c.
6922 (COMMON_OBS): Add d-support.o.
6923 * d-lang.h (d_parse_symbol): Add comment, now defined in
6925 * d-lang.c (parse_call_convention)
6926 (parse_attributes, parse_function_types)
6927 (parse_function_args, parse_type, parse_identifier)
6928 (call_convention_p, d_parse_symbol): Move functions to ...
6929 * d-support.c: ... New file.
6931 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6933 * d-lang.h (d_parse_symbol): Add declaration.
6934 * d-lang.c (extract_identifiers)
6935 (extract_type_info): Remove functions.
6936 (parse_call_convention, parse_attributes)
6937 (parse_function_types, parse_function_args)
6938 (parse_type, parse_identifier, call_convention_p)
6939 (d_parse_symbol): New functions.
6940 (d_demangle): Use d_parse_symbol to demangle D symbols.
6942 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6944 * d-lang.h (struct builtin_d_type): New data type.
6945 (builtin_d_type): Add declaration.
6946 * d-lang.c (d_language_arch_info, build_d_types)
6947 (builtin_d_type): New functions.
6948 (enum d_primitive_types): New data type.
6949 (d_language_defn): Change c_language_arch_info to
6950 d_language_arch_info.
6951 (d_type_data): New static variable.
6952 (_initialize_d_language): Initialize d_type_data.
6954 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6956 * d-lang.h (d_main_name): Add declaration.
6957 * d-lang.c (d_main_name): New function.
6958 * symtab.c (find_main_name): Add call to d_main_name.
6960 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6962 * d-lang.c (d_language_defn): Change macro_expansion_c to
6965 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6967 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6969 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6971 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6972 gdb_exception" declaration.
6973 * remote.c (getpkt_or_notif_sane): Likewise.
6975 2014-01-17 Doug Evans <dje@google.com>
6977 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6978 function, contents of dirnames_to_char_ptr_vec_append moved here.
6979 (delim_string_to_char_ptr_vec): New function.
6980 (dirnames_to_char_ptr_vec_append): Rewrite.
6981 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6983 2014-01-17 Doug Evans <dje@google.com>
6985 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6987 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6988 #include "common-utils.h".
6989 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6990 * common/vec.h (VEC_ASSERT_PASS): Update.
6991 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6992 (MACH_CHECK_ERROR): Update.
6994 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6996 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6998 * gdbarch.h: Regenerate.
7000 2014-01-16 Tom Tromey <tromey@redhat.com>
7002 * value.c (struct value) <regnum>: Move earlier.
7004 2014-01-16 Tom Tromey <tromey@redhat.com>
7006 * remote.c (extended_remote_create_inferior): Rename from
7007 extended_remote_create_inferior_1. Add "ops" argument. Remove
7010 2014-01-16 Pedro Alves <palves@redhat.com>
7012 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7013 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7016 2014-01-16 Doug Evans <dje@google.com>
7018 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7022 * btrace.h (btrace_thread_flag): New.
7023 (struct btrace_thread_info) <flags>: New.
7024 * record-btrace.c (record_btrace_resume_thread)
7025 (record_btrace_find_thread_to_move, btrace_step_no_history)
7026 (btrace_step_stopped, record_btrace_start_replaying)
7027 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7028 (record_btrace_find_resume_thread): New.
7029 (record_btrace_resume, record_btrace_wait): Extend.
7030 (record_btrace_can_execute_reverse): New.
7031 (record_btrace_open): Fail in non-stop mode.
7032 (record_btrace_set_replay): Split into this, ...
7033 (record_btrace_stop_replaying): ... this, ...
7034 (record_btrace_clear_histories): ... and this.
7035 (init_record_btrace_ops): Init to_can_execute_reverse.
7036 * NEWS: Announce it.
7038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7040 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7041 (forward_target_decr_pc_after_break)
7042 (target_decr_pc_after_break): New.
7043 * target.c (forward_target_decr_pc_after_break)
7044 (target_decr_pc_after_break): New.
7045 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7046 instead of gdbarch_decr_pc_after_break.
7047 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7048 instead of gdbarch_decr_pc_after_break.
7049 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7050 instead of gdbarch_decr_pc_after_break.
7051 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7052 instead of gdbarch_decr_pc_after_break.
7053 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7054 instead of gdbarch_decr_pc_after_break.
7055 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7056 instead of gdbarch_decr_pc_after_break.
7058 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7060 * btrace.c: Include regcache.h.
7061 (btrace_add_pc): New.
7062 (btrace_enable): Call btrace_add_pc.
7063 (btrace_is_empty): New.
7064 * btrace.h (btrace_is_empty): New.
7065 * record-btrace.c (require_btrace, record_btrace_info): Call
7068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7070 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7071 Support delta reads.
7072 (linux_disable_btrace): Change return type.
7073 * common/linux-btrace.h (linux_read_btrace): Change parameters
7074 and return type to allow error reporting. Update users.
7075 (linux_disable_btrace): Change return type. Update users.
7076 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7078 (btrace_error): New.
7079 (btrace_block) <begin>: Comment on BEGIN == 0.
7080 * btrace.c (btrace_compute_ftrace): Start from the end of
7082 (btrace_stitch_trace, btrace_clear_history): New.
7083 (btrace_fetch): Read delta trace, return if replaying.
7084 (btrace_clear): Move clear history code to btrace_clear_history.
7085 (parse_xml_btrace): Throw an error if parsing failed.
7086 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7087 and return type to allow error reporting.
7088 (target_read_btrace): Change parameters and return type to allow
7090 * target.c (target_read_btrace): Update.
7091 * remote.c (remote_read_btrace): Support delta reads. Pass
7093 * NEWS: Announce it.
7095 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7097 * record.h (record_btrace_frame_unwind)
7098 (record_btrace_tailcall_frame_unwind): New declarations.
7099 * dwarf2-frame: Include record.h
7100 (dwarf2_frame_cfa): Throw an error for btrace frames.
7101 * record-btrace.c: Include hashtab.h.
7102 (btrace_get_bfun_name): New.
7103 (btrace_call_history): Call btrace_get_bfun_name.
7104 (struct btrace_frame_cache): New.
7106 (bfcache_hash, bfcache_eq, bfcache_new): New.
7107 (btrace_get_frame_function): New.
7108 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7109 (record_btrace_frame_this_id): Compute own id.
7110 (record_btrace_frame_prev_register): Provide PC, throw_error
7111 for all other registers.
7112 (record_btrace_frame_sniffer): Detect btrace frames.
7113 (record_btrace_tailcall_frame_sniffer): New.
7114 (record_btrace_frame_dealloc_cache): New.
7115 (record_btrace_frame_unwind): Add new functions.
7116 (record_btrace_tailcall_frame_unwind): New.
7117 (_initialize_record_btrace): Allocate cache.
7118 * btrace.c (btrace_clear): Call reinit_frame_cache.
7119 * NEWS: Announce it.
7121 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7123 * record-btrace.c (record_btrace_set_replay)
7124 (record_btrace_goto_begin, record_btrace_goto_end)
7125 (record_btrace_goto): New.
7126 (init_record_btrace_ops): Initialize them.
7127 * NEWS: Announce it.
7129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7131 * record-btrace.c (record_btrace_find_new_threads)
7132 (record_btrace_thread_alive): New.
7133 (init_record_btrace_ops): Initialize to_find_new_threads and
7136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7138 * record-btrace.c (record_btrace_resume): New.
7139 (record_btrace_wait): New.
7140 (init_record_btrace_ops): Initialize to_wait and to_resume.
7142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7144 * record-btrace.c (record_btrace_xfer_partial)
7145 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7146 (record_btrace_allow_memory_access): New.
7147 (init_record_btrace_ops): Initialize new methods.
7148 * target.c (raw_memory_xfer_partial): Bail out if target reports
7149 that this memory is not available.
7151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7153 * target.h (target_ops) <to_insert_breakpoint>
7154 <to_remove_breakpoint>: Add target_ops parameter.
7155 (forward_target_insert_breakpoint): New.
7156 (forward_target_remove_breakpoint): New.
7157 (memory_remove_breakpoint, memory_insert_breakpoint):
7158 Add target_ops parameter.
7159 * target.c (target_insert_breakpoint): Split into this and ...
7160 (forward_target_insert_breakpoint): ... this.
7161 (target_remove_breakpoint): Split into this and ...
7162 (forward_target_remove_breakpoint): ... this.
7163 (debug_to_insert_breakpoint): Add target_ops parameter.
7164 Call forward_target_insert_breakpoint.
7165 (debug_to_remove_breakpoint): Add target_ops parameter.
7166 Call forward_target_remove_breakpoint.
7167 (update_current_target): Do not inherit or default to_insert_breakpoint
7168 and to_remove_breakpoint.
7169 * corelow.c (ignore): Add target_ops parameter.
7170 * exec.c (ignore): Add target_ops parameter.
7171 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7172 Add target_ops parameter.
7173 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7174 Add target_ops parameter.
7175 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7176 Add target_ops parameter.
7177 * record-full.c (record_full_beneath_to_insert_breakpoint)
7178 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7179 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7180 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7181 (record_full_core_remove_breakpoint): Add target_ops parameter.
7183 (record_full_beneath_to_insert_breakpoint_ops)
7184 (record_full_beneath_to_remove_breakpoint_ops)
7185 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7186 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7187 tmp_to_remove_breakpoint_ops,
7188 record_full_beneath_to_insert_breakpoint_ops, and
7189 record_full_beneath_to_remove_breakpoint_ops.
7190 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7191 (m32r_remove_breakpoint): Add target_ops parameter.
7192 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7193 Add target_ops parameter.
7194 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7195 Add target_ops parameter.
7197 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7198 Markus Metzger <markus.t.metzger@intel.com>
7200 * record-btrace.c: Include frame-unwind.h.
7201 (record_btrace_frame_unwind_stop_reason)
7202 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7203 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7205 (init_record_btrace_ops): Install it.
7207 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7212 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7214 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7217 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7219 * frame-unwind.c: Include target.h.
7220 (frame_unwind_try_unwinder): New function with code from ...
7221 (frame_unwind_find_by_frame): ... here. New variable
7222 unwinder_from_target, call also target_get_unwinder)
7223 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7224 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7225 * target.h (struct target_ops): New fields to_get_unwinder and
7226 to_get_tailcall_unwinder.
7227 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7231 * record-btrace.c (record_btrace_fetch_registers)
7232 (record_btrace_store_registers)
7233 (record_btrace_to_prepare_to_store): New.
7234 (init_record_btrace_ops): Add the above.
7236 2014-01-16 Tom Tromey <tromey@redhat.com>
7238 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7239 * target.h (struct target_ops) <to_prepare_to_store>: Add
7241 (target_prepare_to_store): Add argument.
7242 * target.c (debug_to_prepare_to_store): Add argument.
7243 (update_current_target): Update.
7244 * remote.c (remote_prepare_to_store): Add 'self' argument.
7245 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7246 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7247 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7248 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7250 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7251 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7252 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7253 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7254 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7258 * btrace.h (replay) <replay>: New.
7259 (btrace_is_replaying): New.
7260 * btrace.c (btrace_clear): Free replay iterator.
7261 (btrace_is_replaying): New.
7262 * record-btrace.c (record_btrace_is_replaying): New.
7263 (record_btrace_info): Print insn number if replaying.
7264 (record_btrace_insn_history): Start at replay position.
7265 (record_btrace_call_history): Start at replay position.
7266 (init_record_btrace_ops): Init to_record_is_replaying.
7268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7270 * record-btrace.c (record_btrace_insn_history_range): Include
7272 (record_btrace_insn_history_from): Adjust range.
7273 (record_btrace_call_history_range): Include
7275 (record_btrace_call_history_from): Adjust range.
7276 * NEWS: Announce changes.
7278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7280 * record.h (enum record_print_flag)
7281 <record_print_indent_calls>: New.
7282 * record.c (get_call_history_modifiers): Recognize /c modifier.
7283 (_initialize_record): Document /c modifier.
7284 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7285 Reorder fields. Optionally indent the function name. Update
7287 * NEWS: Announce changes.
7289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7291 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7295 * btrace.c (ftrace_new_function): Start counting at one.
7296 * record-btrace.c (record_btrace_info): Adjust number of calls
7298 * NEWS: Announce it.
7300 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7302 * record-btrace.c (btrace_call_history_insn_range): Print
7303 insn range as [begin, end].
7305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7307 * btrace.h (struct btrace_func_link): New.
7308 (enum btrace_function_flag): New.
7309 (struct btrace_inst): Rename to ...
7310 (struct btrace_insn): ...this. Update all users.
7311 (struct btrace_func) <ibegin, iend>: Remove.
7312 (struct btrace_func_link): New.
7313 (struct btrace_func): Rename to ...
7314 (struct btrace_function): ...this. Update all users.
7315 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7316 (number, level, flags>: New.
7317 (struct btrace_insn_iterator): Rename to ...
7318 (struct btrace_insn_history): ...this.
7320 (struct btrace_insn_iterator, btrace_call_iterator): New.
7321 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7322 (struct btrace_target_info) <begin, end, level>
7323 <insn_history, call_history>: New.
7324 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7325 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7326 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7327 (btrace_call_number, btrace_call_begin, btrace_call_end)
7328 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7329 (btrace_find_function_by_number, btrace_set_insn_history)
7330 (btrace_set_call_history): New.
7331 * btrace.c (btrace_init_insn_iterator)
7332 (btrace_init_func_iterator, compute_itrace): Remove.
7333 (ftrace_print_function_name, ftrace_print_filename)
7334 (ftrace_skip_file): Change
7336 (ftrace_init_func): Remove.
7337 (ftrace_debug): Use new btrace_function fields.
7338 (ftrace_function_switched): Also consider gaining and
7339 losing symbol information).
7340 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7341 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7342 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7344 (ftrace_new_function): Move. Remove debug print.
7345 (ftrace_update_lines, ftrace_update_insns): New.
7346 (ftrace_update_function): Check for call, ret, and jump.
7347 (compute_ftrace): Renamed to ...
7348 (btrace_compute_ftrace): ...this. Rewritten to compute call
7350 (btrace_fetch, btrace_clear): Updated.
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 * record-btrace.c (require_btrace): Use new btrace thread
7360 (record_btrace_info, btrace_insn_history)
7361 (record_btrace_insn_history, record_btrace_insn_history_range):
7362 Use new btrace thread info fields and new iterator.
7363 (btrace_func_history_src_line): Rename to ...
7364 (btrace_call_history_src_line): ...this. Use new btrace
7366 (btrace_func_history): Rename to ...
7367 (btrace_call_history): ...this. Use new btrace thread info
7368 fields and new iterator.
7369 (record_btrace_call_history, record_btrace_call_history_range):
7370 Use new btrace thread info fields and new iterator.
7372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7374 * frame.h (frame_id_build_unavailable_stack_special): New.
7375 * frame.c (frame_id_build_unavailable_stack_special): New.
7377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7379 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7380 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7381 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7383 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7384 (i386_insn_is_jump, i386_jmp_p): New.
7385 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7386 insn_is_jump to gdbarch.
7387 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7388 * gdbarch.h: Regenerated.
7389 * gdbarch.c: Regenerated.
7390 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7391 (default_insn_is_jump): New.
7392 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7393 (default_insn_is_jump): New.
7395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7397 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7399 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7400 (btrace_read_type) <btrace_read_new>: Change to ...
7401 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7403 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7405 * common/linux-btrace.c (linux_read_btrace): Free trace from
7408 2014-01-15 Doug Evans <dje@google.com>
7410 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7413 2014-01-15 Tom Tromey <tromey@redhat.com>
7415 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7416 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7417 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7418 (set_objfile_main_name): New function.
7419 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7420 language_of_main>: New fields.
7421 (set_objfile_main_name): Declare.
7422 * symtab.c (find_main_name): Loop over objfiles to find the main
7424 (set_main_name): Now static.
7425 (get_main_info): Add comment.
7426 * symtab.h (set_main_name): Don't declare.
7428 2014-01-15 Tom Tromey <tromey@redhat.com>
7430 * symtab.c (main_progspace_key): New global.
7431 (struct main_info): New.
7432 (name_of_main, language_of_main): Remove.
7433 (get_main_info, main_info_cleanup): New function.
7434 (set_main_name, main_name, main_language): Use get_main_info.
7435 (_initialize_symtab): Initialize main_progspace_key.
7437 2014-01-15 Tom Tromey <tromey@redhat.com>
7439 * dbxread.c (process_one_symbol): Update.
7440 * dwarf2read.c (read_partial_die): Update.
7441 * symfile.c (set_initial_language): Call main_language.
7442 * symtab.c (language_of_main): Now static.
7443 (set_main_name): Add 'lang' parameter.
7444 (find_main_name): Update.
7445 (main_language): New function.
7446 (symtab_observer_executable_changed): Update.
7447 * symtab.h (set_main_name): Update.
7448 (language_of_main): Remove.
7449 (main_language): Declare.
7451 2014-01-15 Tom Tromey <tromey@redhat.com>
7453 * symfile.c (init_entry_point_info): Use new "initialized" field.
7455 * objfiles.h (struct entry_point) <initialized>: New field.
7456 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7457 (struct objfile) <ei>: ...here. Remove.
7458 * objfiles.c (entry_point_address_query): Update.
7460 2014-01-15 Tom Tromey <tromey@redhat.com>
7462 * objfiles.c (entry_point_address_query): Relocate entry point
7464 (objfile_relocate1): Do not relocate entry point address.
7465 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7466 <the_bfd_section_index>: New field.
7467 * symfile.c (init_entry_point_info): Find the entry point's
7470 2014-01-15 Tom Tromey <tromey@redhat.com>
7472 * solib-frv.c (enable_break): Use entry_point_address_query.
7474 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7476 * NEWS: Add note on improved process record-replay on
7477 arm*-linux* targets.
7479 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7481 * arm-tdep.c (enum arm_record_result): New enum.
7482 (arm_record_unsupported_insn): New function.
7483 (arm_record_coproc_data_proc): Removed.
7484 (thumb2_record_ld_st_multiple): New function.
7485 (thumb2_record_ld_st_dual_ex_tbb): New function.
7486 (thumb2_record_data_proc_sreg_mimm): New function.
7487 (thumb2_record_ps_dest_generic): New function.
7488 (thumb2_record_branch_misc_cntrl): New function.
7489 (thumb2_record_str_single_data): New function.
7490 (thumb2_record_ld_mem_hints): New function.
7491 (thumb2_record_ld_word): New function.
7492 (thumb2_record_lmul_lmla_div): New function.
7493 (thumb2_record_decode_insn_handler): New function.
7494 (decode_insn): Add thumb32 instruction handlers.
7496 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7498 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7499 (struct arm_linux_record_tdep): Declare.
7500 (arm_canonicalize_syscall): New function.
7501 (arm_all_but_pc_registers_record): New function.
7502 (arm_linux_syscall_record): New function.
7503 (arm_linux_init_abi): Add syscall recording constructs.
7504 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7505 decoding. (arm_record_coproc_data_proc): Update arm syscall
7507 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7508 <arm_syscall_record>: New field.
7509 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7512 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7514 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7515 register for push instruction recording.
7517 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7519 * arm-tdep.c (thumb_record_misc): Update to correct logical
7520 error while recording ldm, ldmia and pop instructions.
7522 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7524 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7526 2014-01-15 Pedro Alves <palves@redhat.com>
7528 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7529 (go32_resume, go32_fetch_registers, store_register)
7530 (go32_store_registers, go32_prepare_to_store)
7531 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7532 (go32_create_inferior, go32_can_run, go32_terminal_init)
7533 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7536 2014-01-15 Tom Tromey <tromey@redhat.com>
7538 * target.h (async_callback_ftype): New typedef.
7539 (struct target_ops) <to_async>: Use it.
7541 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7543 * python/py-value.c (get_field_type): Remove unnecessary curly
7544 braces for single-statement if block.
7546 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7548 * python/py-type.c (convert_field): Add missing empty line
7551 2014-01-14 Doug Evans <dje@google.com>
7553 * symfile.h (expand_symtabs_matching): Renamed from
7554 expand_partial_symbol_names. Update prototype.
7555 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7556 * symfile.c (expand_symtabs_matching): Renamed from
7557 expand_partial_symbol_names. New args file_matcher, kind.
7558 Rename arg fun to symbol_matcher.
7559 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7560 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7561 ada_expand_partial_symbol_name.
7562 (ada_make_symbol_completion_list): Update to call
7563 expand_symtabs_matching.
7564 (ada_add_global_exceptions): Call expand_symtabs_matching.
7565 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7566 call map_symbol_filenames.
7567 * symtab.c (sources_info): Update to call map_symbol_filenames.
7568 (search_symbols): Call expand_symtabs_matching.
7569 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7570 (default_make_symbol_completion_list_break_on): Update to call
7571 expand_symtabs_matching.
7572 (make_source_files_completion_list): Update to call
7573 map_symbol_filenames.
7575 2014-01-14 Doug Evans <dje@google.com>
7577 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7578 (expand_symtabs_symbol_matcher_ftype): New typedef.
7579 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7580 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7581 * symfile.c (expand_partial_symbol_names): Update to use
7582 expand_symtabs_symbol_matcher_ftype.
7583 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7584 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7585 Arg name_matcher renamed to symbol_matcher.
7586 * psymtab.c (recursively_search_psymtabs): Update to use
7587 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7589 (expand_symtabs_matching_via_partial): Update to use
7590 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7591 Arg name_matcher renamed to symbol_matcher.
7593 2014-01-14 Doug Evans <dje@google.com>
7595 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7596 (map_partial_symbol_filenames): Ditto.
7597 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7598 (map_partial_symbol_filenames): Ditto.
7599 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7600 (map_partial_symbol_filenames): Ditto.
7601 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7602 (map_partial_symbol_filenames): Ditto.
7603 * symtab.c: Delete #include "psymtab.h".
7605 2014-01-14 Pedro Alves <palves@redhat.com>
7606 Tom Tromey <tromey@redhat.com>
7608 * infrun.c (use_displaced_stepping): Use find_record_target
7609 instead of RECORD_IS_USED.
7610 (adjust_pc_after_break): Use record_full_is_used instead of
7612 * record-btrace.c (record_btrace_open): Call record_preopen
7613 instead of checking RECORD_IS_USED.
7614 * record-full.c (record_full_shortname)
7615 (record_full_core_shortname): New globals.
7616 (record_full_is_used): New function.
7617 (find_full_open): Call record_preopen instead of checking
7619 (init_record_full_ops): Set the target's shortname to
7620 record_full_shortname.
7621 (init_record_full_core_ops): Set the target's shortname to
7622 record_full_core_shortname.
7623 * record-full.h (record_full_is_used): Declare.
7624 * record.c (find_record_target): Make extern.
7625 (record_preopen): New function.
7626 * record.h (RECORD_IS_USED): Delete macro.
7627 (find_record_target, record_preopen): Declare functions.
7629 2014-01-14 Yao Qi <yao@codesourcery.com>
7631 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7632 'len''s type to ULONGEST.
7633 (core_xfer_shared_libraries_aix): Likewise.
7634 * gdbarch.c, gdbarch.h: Regenerated.
7635 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7636 Change type of 'len' to ULONGEST.
7637 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7638 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7640 2014-01-14 Yao Qi <yao@codesourcery.com>
7642 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7643 type of 'len' to ULONGEST.
7644 (linux_xfer_osdata_processgroups): Likewise.
7645 (linux_xfer_osdata_threads): Likewise.
7646 (linux_xfer_osdata_fds): Likewise.
7647 (linux_xfer_osdata_isockets): Likewise.
7648 (linux_xfer_osdata_shm): Likewise.
7649 (linux_xfer_osdata_sem): Likewise.
7650 (linux_xfer_osdata_msg): Likewise.
7651 (linux_common_xfer_osdata): Likewise.
7652 (struct osdata_type) <getter>: Likewise.
7653 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7656 2014-01-14 Yao Qi <yao@codesourcery.com>
7658 * target.h (target_xfer_partial_ftype): Update.
7659 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7661 * aix-thread.c (aix_thread_xfer_partial): Change type of
7662 argument 'len' to ULONGEST.
7663 * auxv.c (procfs_xfer_auxv): Likewise.
7664 (ld_so_xfer_auxv): Likewise.
7665 (memory_xfer_auxv): Likewise.
7666 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7667 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7668 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7669 * corelow.c (core_xfer_partial): Likewise.
7670 * ctf.c (ctf_xfer_partial): Likewise.
7671 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7673 (darwin_read_dyld_info): Likewise.
7674 (darwin_xfer_partial): Likewise.
7675 * exec.c (section_table_xfer_memory_partial): Likewise.
7676 (exec_xfer_partial): Likewise.
7677 * exec.h (section_table_xfer_memory_partial): Update
7679 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7680 instead of plongest.
7681 (gnu_xfer_partial): Likewise.
7682 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7683 (ia64_hpux_xfer_solib_got): Likewise.
7684 (ia64_hpux_xfer_partial): Likewise.
7685 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7686 * inf-ptrace.c (inf_ptrace_xfer_partial):
7687 * inf-ttrace.c (inf_ttrace_xfer_partial):
7688 * linux-nat.c (linux_xfer_siginfo): Likewise.
7689 (linux_nat_xfer_partial): Likewise.
7690 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7691 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7692 * monitor.c (monitor_xfer_memory): Likewise.
7693 (monitor_xfer_partial): Likewise.
7694 * procfs.c (procfs_xfer_partial): Likewise.
7695 * record-full.c (record_full_xfer_partial): Likewise.
7696 (record_full_core_xfer_partial): Likewise.
7697 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7698 instead of plongest.
7699 (gdbsim_xfer_partial): Likewise.
7700 * remote.c (remote_xfer_partial): Likewise.
7701 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7702 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7704 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7705 (rs6000_xfer_shared_libraries): Likewise.
7706 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7707 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7708 (sparc_xfer_partial): Likewise.
7709 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7710 (spu_xfer_partial): Likewise.
7711 * spu-multiarch.c (spu_xfer_partial): Likewise.
7712 * target.c (target_read_live_memory): Likewise.
7713 (memory_xfer_live_readonly_partial): Likewise.
7714 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7715 (target_xfer_partial, default_xfer_partial): Likewise.
7716 (current_xfer_partial): Likewise.
7717 * tracepoint.c (tfile_xfer_partial): Likewise.
7718 * windows-nat.c (windows_xfer_memory): Likewise. Call
7719 pulongest instead of plongest.
7720 (windows_xfer_partial): Likewise.
7721 (windows_xfer_shared_libraries): Likewise.
7723 2014-01-14 Yao Qi <yao@codesourcery.com>
7725 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7726 target_xfer_partial_ftype.
7728 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7732 * valops.c (value_struct_elt_bitpos): New function
7733 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7734 object to 'None' if the field name is an empty string ("").
7735 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7736 attribute to look for a field when 'name' is 'None'.
7737 (get_field_type): New function
7739 2014-01-13 Doug Evans <dje@google.com>
7742 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7743 (try_open_dwop_file): Ditto.
7744 * gdb_bfd.c: #include "vec.h".
7745 (bfdp): New typedef.
7746 (struct gdb_bfd_data): New member included_bfds.
7747 (gdb_bfd_unref): Unref all included bfds.
7748 (gdb_bfd_record_inclusion): New function.
7749 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7751 2014-01-13 Tom Tromey <tromey@redhat.com>
7753 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7755 2014-01-13 Tom Tromey <tromey@redhat.com>
7757 * defs.h (use_windows): Remove.
7758 * gdb.c (main): Update.
7759 * main.c (captured_main, gdb_main): Update.
7760 * main.h (struct captured_main_args) <use_windows>: Remove.
7761 * top.c (use_windows): Remove.
7763 2014-01-13 Tom Tromey <tromey@redhat.com>
7765 * defs.h (deprecated_flush_hook): Remove.
7767 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7770 * linux-thread-db.c (try_thread_db_load): Add parameter
7771 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7772 (try_thread_db_load_from_pdir_1): Move it there from here.
7773 (try_thread_db_load_from_sdir): Update caller.
7774 (try_thread_db_load_from_dir): Move it there from here.
7776 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7778 * regformats/regdat.sh: Always rewrite the register file.
7780 2014-01-13 Pedro Alves <palves@redhat.com>
7782 * Makefile.in (CHECK_HEADERS): New variable.
7783 (check-headers:): New rule.
7785 2014-01-13 Tom Tromey <tromey@redhat.com>
7787 * cli/cli-setshow.c (do_set_command): Update.
7788 * defs.h (deprecated_set_hook): Remove.
7789 * top.c (deprecated_set_hook): Remove.
7791 2014-01-13 Pedro Alves <palves@redhat.com>
7793 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7794 the tracepoint if the PC is a pseudo-register.
7796 2014-01-13 Tom Tromey <tromey@redhat.com>
7798 * defs.h (XCALLOC): Remove.
7799 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7800 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7801 * dwarf2loc.c (allocate_piece_closure): Likewise.
7802 * elfread.c (elf_symfile_segments): Likewise.
7803 (elf_symfile_segments): Likewise.
7804 * gdbtypes.c (copy_type_recursive): Likewise.
7805 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7806 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7807 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7809 * mt-tdep.c (mt_gdbarch_init): Likewise.
7810 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7812 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7813 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7814 * registry.c (registry_alloc_data): Likewise.
7815 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7816 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7817 * serial.c (serial_fdopen_ops): Likewise.
7818 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7820 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7821 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7824 2014-01-13 Tom Tromey <tromey@redhat.com>
7826 * defs.h (XMALLOC): Remove.
7827 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7828 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7829 * cli-out.c (struct ui_out *): Likewise.
7830 * cli/cli-dump.c (add_dump_command): Likewise.
7831 (add_dump_command): Likewise.
7832 * complaints.c (get_complaints): Likewise.
7833 (find_complaint): Likewise.
7834 * dwarf2-frame.c (execute_cfa_program): Likewise.
7835 * dwarf2read.c (abbrev_table_read_table): Likewise.
7836 * gdbarch.sh: Likewise.
7837 * gdbarch.c: Rebuild.
7838 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7839 * interps.c (interp_new): Likewise.
7840 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7841 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7842 * mi/mi-console.c (mi_console_file_new): Likewise.
7843 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7844 * mi/mi-out.c (mi_out_new): Likewise.
7845 * mi/mi-parse.c (mi_parse): Likewise.
7846 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7847 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7848 * observer.c (xalloc_observer_list_node): Likewise.
7849 * regcache.c (regcache_xmalloc_1): Likewise.
7850 * reggroups.c (reggroup_new): Likewise.
7851 (_initialize_reggroup): Likewise.
7852 * registry.c (register_data_with_cleanup): Likewise.
7853 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7854 * ser-base.c (serial_ttystate): Likewise.
7855 * ser-mingw.c (make_pipe_state): Likewise.
7856 * ser-pipe.c (pipe_open): Likewise.
7857 * serial.c (serial_open): Likewise.
7858 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7859 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7860 (tui_alloc_win_info): Likewise.
7861 (tui_add_content_elements): Likewise.
7862 * tui/tui-file.c (tui_file_new): Likewise.
7863 * tui/tui-out.c (tui_out_new): Likewise.
7864 * ui-file.c (mem_file_new): Likewise.
7865 * ui-out.c (push_level): Likewise.
7866 (make_cleanup_ui_out_end): Likewise.
7867 (append_header_to_list): Likewise.
7868 (ui_out_new): Likewise.
7869 * user-regs.c (user_reg_add_builtin): Likewise.
7871 2014-01-13 Tom Tromey <tromey@redhat.com>
7873 * defs.h (XZALLOC): Remove.
7874 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7875 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7876 (get_ada_tasks_inferior_data): Likewise.
7877 * auto-load.c (get_auto_load_pspace_data): Likewise.
7878 * auxv.c (get_auxv_inferior_data): Likewise.
7879 * bfd-target.c (target_bfd_reopen): Likewise.
7880 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7881 (deprecated_insert_raw_breakpoint): Likewise.
7882 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7883 * corelow.c (core_open): Likewise.
7884 * darwin-nat.c (darwin_check_new_threads): Likewise.
7885 (darwin_attach_pid): Likewise.
7886 * dummy-frame.c (dummy_frame_push): Likewise.
7887 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7888 * dwarf2loc.c (allocate_piece_closure): Likewise.
7889 * elfread.c (elf_symfile_segments): Likewise.
7890 * eval.c (ptrmath_type_p): Likewise.
7891 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7892 * gdbtypes.c (alloc_type_arch): Likewise.
7893 (alloc_type_instance): Likewise.
7894 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7895 * inf-child.c (inf_child_can_use_agent): Likewise.
7896 * inflow.c (get_inflow_inferior_data): Likewise.
7897 * infrun.c (save_infcall_suspend_state): Likewise.
7898 * jit.c (jit_reader_load): Likewise.
7899 (get_jit_objfile_data): Likewise.
7900 (get_jit_program_space_data): Likewise.
7901 (jit_object_open_impl): Likewise.
7902 (jit_symtab_open_impl): Likewise.
7903 (jit_block_open_impl): Likewise.
7904 (jit_frame_sniffer): Likewise.
7905 * linux-fork.c (add_fork): Likewise.
7906 * maint.c (make_command_stats_cleanup): Likewise.
7907 * objfiles.c (get_objfile_pspace_data): Likewise.
7908 * opencl-lang.c (struct lval_closure): Likewise.
7909 * osdata.c (osdata_start_osdata): Likewise.
7910 * progspace.c (new_address_space): Likewise.
7911 (add_program_space): Likewise.
7912 * remote-sim.c (get_sim_inferior_data): Likewise.
7913 * sh-tdep.c (sh_gdbarch_init): Likewise.
7914 * skip.c (Ignore): Likewise.
7915 (skip_delete_command): Likewise.
7916 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7917 (library_list_start_library): Likewise.
7918 (solib_aix_current_sos): Likewise.
7919 * solib-darwin.c (get_darwin_info): Likewise.
7920 (darwin_current_sos): Likewise.
7921 * solib-dsbt.c (get_dsbt_info): Likewise.
7922 * solib-ia64-hpux.c (new_so_list): Likewise.
7923 (ia64_hpux_get_solib_linkage_addr): Likewise.
7924 * solib-spu.c (append_ocl_sos): Likewise.
7925 (spu_current_sos): Likewise.
7926 * solib-svr4.c (get_svr4_info): Likewise.
7927 (svr4_keep_data_in_core): Likewise.
7928 (library_list_start_library): Likewise.
7929 (svr4_default_sos): Likewise.
7930 (svr4_read_so_list): Likewise.
7931 * solib-target.c (library_list_start_library): Likewise.
7932 (solib_target_current_sos): Likewise.
7933 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7934 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7935 * symfile.c (default_symfile_segments): Likewise.
7936 * target-descriptions.c (tdesc_data_init): Likewise.
7937 (tdesc_create_reg): Likewise.
7938 (struct tdesc_type *): Likewise.
7939 (tdesc_create_vector): Likewise.
7940 (tdesc_set_struct_size): Likewise.
7941 (struct tdesc_type *): Likewise.
7942 (tdesc_free_feature): Likewise.
7943 (tdesc_create_feature): Likewise.
7944 * windows-nat.c (windows_add_thread): Likewise.
7945 (windows_make_so): Likewise.
7946 * xml-support.c (gdb_xml_body_text): Likewise.
7947 (gdb_xml_create_parser_and_cleanup): Likewise.
7948 (xml_process_xincludes): Likewise.
7949 * xml-syscall.c (allocate_syscalls_info): Likewise.
7950 (syscall_create_syscall_desc): Likewise.
7952 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7954 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7955 function, with code from i386_stap_parse_special_token.
7956 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7957 (i386_stap_parse_special_token): Move code to the two functions
7960 2014-01-09 Pedro Alves <palves@redhat.com>
7961 Hui Zhu <hui@codesourcery.com>
7964 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7965 bp_err_string. Don't mark the location shlib_disabled if the
7966 error thrown wasn't a generic or memory error. Catch errors
7967 thrown while inserting breakpoints in overlayed code. Output
7968 error message of software breakpoints.
7969 * remote.c (remote_insert_breakpoint): If this breakpoint has
7970 target-side commands but this stub doesn't support Z0 packets,
7971 throw NOT_SUPPORTED_ERROR error.
7972 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7973 * target.h (target_insert_breakpoint): Extend comment.
7974 (target_insert_hw_breakpoint): Add comment.
7976 2014-01-08 Pedro Alves <palves@redhat.com>
7978 * remote.c (remote_add_thread): Add threads silently if starting
7980 (remote_notice_new_inferior): If in all-stop, and starting up,
7981 don't call notice_new_inferior.
7982 (get_current_thread): New function, factored out from ...
7983 (add_current_inferior_and_thread): ... this. Adjust.
7984 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7985 found any thread, then select the remote's current thread as GDB's
7988 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7990 * NEWS: Create a new section for the next release branch.
7991 Rename the section of the current branch, now that it has
7994 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7996 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7997 * version.in: Bump version to 7.7.50.DATE-cvs.
7999 2014-01-08 Yao Qi <yao@codesourcery.com>
8001 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8002 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8003 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8005 2014-01-08 Yao Qi <yao@codesourcery.com>
8007 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8008 return value of bfd_get_filename to symbol_file_add_from_bfd.
8010 2014-01-08 Pierre Muller <muller@sourceware.org>
8013 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8014 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8015 to prim_record_mininal_symbol_and_info.
8016 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8017 in call to prim_record_minimal_symbol_and_info.
8018 (read_pe_exported_syms): Set index field of section_data.
8020 2014-01-07 Andrew Pinski <apinski@cavium.com>
8022 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8023 * features/aarch64.c: Regenerate.
8025 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8027 * target.c (return_null): Define.
8028 (update_current_target): Use it instead of return_zero for
8029 functions that return a pointer.
8031 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8033 * source.c (add_path): Fix check for duplicated paths in the previously
8036 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8038 * ada-lang.c: Remove duplicated include statements.
8039 * alphabsd-nat.c: Ditto.
8040 * amd64-darwin-tdep.c: Ditto.
8041 * amd64fbsd-nat.c: Ditto.
8042 * auto-load.c: Ditto.
8044 * breakpoint.c: Ditto.
8046 * fork-child.c: Ditto.
8047 * gdb_usleep.c: Ditto.
8048 * i386-darwin-tdep.c: Ditto.
8049 * i386fbsd-nat.c: Ditto.
8051 * inferior.c: Ditto.
8053 * linux-nat.c: Ditto.
8054 * linux-tdep.c: Ditto.
8055 * m68kbsd-nat.c: Ditto.
8056 * m68klinux-nat.c: Ditto.
8057 * microblaze-tdep.c: Ditto.
8058 * mips-linux-tdep.c: Ditto.
8059 * mn10300-tdep.c: Ditto.
8060 * nto-tdep.c: Ditto.
8061 * opencl-lang.c: Ditto.
8063 * printcmd.c: Ditto.
8064 * regcache.c: Ditto.
8065 * remote-m32r-sdi.c: Ditto.
8069 * tilegx-linux-nat.c: Ditto.
8070 * tilegx-tdep.c: Ditto.
8071 * tracepoint.c: Ditto.
8073 * vaxbsd-nat.c: Ditto.
8074 * windows-nat.c: Ditto.
8075 * xtensa-tdep.c: Ditto.
8077 2014-01-07 Yao Qi <yao@codesourcery.com>
8079 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8081 2014-01-07 Yao Qi <yao@codesourcery.com>
8082 Joel Brobecker <brobecker@adacore.com>
8084 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8085 (pdc_write_regs): Likewise.
8086 (fetch_regs_kernel_thread): Likewise.
8087 (store_regs_kernel_thread): Likewise.
8089 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8091 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8092 tagged type objects to their actual type.
8094 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8096 * ada-valprint.c (print_field_values): Add "language" parameter.
8097 Update calls to print_field_values and print_variant_part.
8098 Pass new parameter "language" in call to val_print instead
8099 of "current_language". Replace call to ada_val_print by call
8101 (print_variant_part): Add "language" parameter.
8102 (ada_val_print_struct_union): Update call to print_field_values.
8104 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8106 * ada-valprint.c (ui_memcpy): Delete.
8107 (ada_print_floating): Update documentation. Add empty line
8108 between between function documentation and implementation.
8109 Delete variable "buffer". Use ui_file_xstrdup in place of
8110 ui_file_put. Minor adjustments following this change.
8112 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8114 * ada-valprint.c (ada_val_print_string): New function,
8115 extracted from ada_val_print_array.
8116 (ada_val_print_array): Replace extracted code by call
8117 to ada_val_print_string followed by a return. Move
8118 "else" branch to the function's top block.
8120 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8122 * ada-valprint.c (ada_val_print_array): Move implementation
8123 down. Rename parameter "offset" and "val" into "offset_aligned"
8124 and "original_value" respectively. Add parameter "offset".
8126 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8128 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8129 re-organizing the code. Change the "???" message printed
8130 when target type is a TYPE_CODE_UNDEF into
8131 "<ref to undefined type>".
8133 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8135 * ada-valprint.c (print_record): Delete, implementation inlined...
8136 (ada_val_print_struct_union): ... here. Remove call to
8137 ada_check_typedef in inlined implementation.
8139 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8141 * ada-valprint.c (ada_val_print_gnat_array): New function,
8142 extracted from ada_val_print_1;
8143 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8144 (ada_val_print_flt, ada_val_print_struct_union)
8145 (ada_val_print_ref): Likewise.
8146 (ada_val_print_1): Delete variables i and elttype.
8147 Replace extracted-out code by call to corresponding
8150 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8152 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8156 * ada-valprint.c (ada_val_print_1): Replace calls to
8157 ada_val_print_1 by calls to val_print.
8159 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8161 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8162 Update calls to self accordingly. Replace calls to c_val_print
8163 by calls to val_print.
8165 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8167 * ada-valprint.c (print_record): Delete declaration.
8168 (adjust_type_signedness, ada_val_print_1): Likewise.
8169 (ada_val_print): Move function implementation down.
8170 (print_variant_part, print_field_values, print_record):
8171 Move function implementation up.
8173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8175 * python/py-type.c (typy_get_name): New function.
8176 (type_object_getset): Add entry for attribute "name".
8177 * NEWS: Add entry mentioning this new attribute.
8179 2014-01-07 Yao Qi <yao@codesourcery.com>
8181 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8184 2014-01-07 Yao Qi <yao@codesourcery.com>
8186 * gnu-nat.c (info_port_rights): Add qualifier const to
8189 2014-01-07 Yao Qi <yao@codesourcery.com>
8191 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8193 2014-01-07 Yao Qi <yao@codesourcery.com>
8195 * gnu-nat.c (make_inf) Update declaration.
8196 (make_inf): Make it static.
8197 (inf_set_traced): Likewise.
8198 (inf_port_to_thread, inf_task_died_status): Likewise.
8200 2014-01-07 Yao Qi <yao@codesourcery.com>
8202 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8204 2014-01-07 Yao Qi <yao@codesourcery.com>
8206 * gnu-nat.c (_initialize_gnu_nat): Declare.
8208 2014-01-07 Yao Qi <yao@codesourcery.com>
8210 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8212 (struct gdbarch_info) <byte_order>: Change type to
8214 <byte_order_for_code>: Likewise.
8215 * gdbarch.c, gdbarch.h: Regenerated.
8217 2014-01-06 Sasha Smundak <asmundak@google.com>
8219 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8221 2014-01-06 Tom Tromey <tromey@redhat.com>
8223 * doublest.c (convert_doublest_to_floatformat): Use const, not
8225 * somread.c (som_symtab_read): Likewise.
8227 2014-01-07 Hui Zhu <hui@codesourcery.com>
8229 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8230 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8231 (gdb_bfd_fopen): Ditto.
8232 (gdb_bfd_openr): Ditto.
8233 (gdb_bfd_openw): Ditto.
8234 (gdb_bfd_openr_iovec): Ditto.
8235 (gdb_bfd_fdopenr): Ditto.
8236 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8237 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8239 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8241 * symfile-mem.c (symbol_file_add_from_memory): Removed
8242 gdb_bfd_stash_filename.
8244 2014-01-03 Doug Evans <dje@google.com>
8246 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8249 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8251 Update year range in copyright notice of all files.
8253 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8255 * top.c (print_gdb_version): Set copyright year to 2014.
8257 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8259 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8261 For older changes see ChangeLog-2013.
8267 version-control: never