1 2014-05-29 Pedro Alves <palves@redhat.com>
4 * cli/cli-interp.c: Include infrun.h and observer.h.
5 (cli_uiout, cli_interp): New globals.
6 (cli_on_signal_received, cli_on_end_stepping_range)
7 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
9 (cli_interpreter_init): Install them as 'end_stepping_range',
10 'signal_received' 'signal_exited', 'exited' and 'no_history'
12 (_initialize_cli_interp): Remove cli_interp local.
13 * infrun.c (handle_inferior_event): Call the several stop reason
14 observers instead of printing the stop reason directly.
15 (end_stepping_range): New function.
16 (print_end_stepping_range_reason, print_signal_exited_reason)
17 (print_exited_reason, print_signal_received_reason)
18 (print_no_history_reason): Make static, and add an uiout
19 parameter. Print to that instead of to CURRENT_UIOUT.
20 * infrun.h (print_end_stepping_range_reason)
21 (print_signal_exited_reason, print_exited_reason)
22 (print_signal_received_reason print_no_history_reason): New
24 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
26 <cli_uiout>: New field.
27 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
28 uiout for CLI output. Install 'signal_received',
29 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
31 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
32 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
33 (mi_on_no_history): New functions.
34 (ui_out_free_cleanup): Delete function.
35 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
36 instead use the one already stored in the MI interpreter data.
38 * tui/tui-interp.c: Include infrun.h and observer.h.
39 (tui_interp): New global.
40 (tui_on_signal_received, tui_on_end_stepping_range)
41 (tui_on_signal_exited, tui_on_exited)
42 (tui_on_no_history): New functions.
43 (tui_init): Install them as 'end_stepping_range',
44 'signal_received' 'signal_exited', 'exited' and 'no_history'
46 (_initialize_tui_interp): Delete tui_interp local.
48 2014-05-29 Pedro Alves <palves@redhat.com>
51 * linux-nat.c (linux_nat_resume_callback): Rename the second
52 parameter to 'except'. Skip LP if it points to EXCEPT.
53 (linux_nat_resume): Don't mark the event lwp as not stopped
54 before resuming sibling lwps. Instead ask
55 linux_nat_resume_callback to skip the event lwp. Mark it as not
56 stopped after actually resuming it.
57 (linux_handle_syscall_trap): Mark the lwp as not stopped after
59 (wait_lwp): Mark the lwp as stopped here.
60 (stop_wait_callback): Mark the lwp as not stopped right after
61 resuming it. Don't mark lwps as stopped here.
62 (linux_nat_filter_event): Mark the lwp as stopped earlier.
63 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
65 2014-05-29 Pedro Alves <palves@redhat.com>
68 * infrun.c (resume): Determine how much to resume depending on
69 whether the caller wanted a step, not whether we can hardware step
70 the target. Mark all threads that we intend to run as running,
71 unless we're calling an inferior function.
72 (normal_stop): If the thread is running an infcall, don't finish
74 * target.c (target_resume): Don't mark threads as running here.
76 2014-05-28 Joel Brobecker <brobecker@adacore.com>
78 * serial.c (_initialize_serial): Remove support for
79 the "set remotebaud" and "show remotebaud" commands.
80 * NEWS: Add entry documenting the removal of that command.
82 2014-05-28 Yao Qi <yao@codesourcery.com>
84 * charset.c: Fix typo in comments.
86 2014-05-27 Gary Benson <gbenson@redhat.com>
88 * utils.c (internal_vproblem): Prompt for a bug report.
90 2014-05-26 Andy Wingo <wingo@igalia.com>
92 * guile/scm-arch.c (arscm_mark_arch_smob):
93 * guile/scm-block.c (bkscm_mark_block_smob)
94 (bkscm_mark_block_syms_progress_smob):
95 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
96 * guile/scm-exception.c (exscm_mark_exception_smob):
97 * guile/scm-frame.c (frscm_mark_frame_smob):
98 * guile/scm-iterator.c (itscm_mark_iterator_smob):
99 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
100 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
101 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
102 (ppscm_mark_pretty_printer_worker_smob):
103 * guile/scm-symbol.c (syscm_mark_symbol_smob):
104 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
105 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
106 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
108 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
111 2014-05-26 Andy Wingo <wingo@igalia.com>
112 Doug Evans <xdje42@gmail.com>
114 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
115 empty_base_class. All uses updated.
116 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
117 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
119 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
120 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
121 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
122 (gdbscm_gsmob_has_property_p, add_property_name)
123 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
124 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
125 (gdb-object-has-property?, gdb-object-properties): Remove.
126 (gdb-object-kind): Renamed from gsmob-kind.
128 2014-05-26 Andy Wingo <wingo@igalia.com>
130 * configure.ac (try_guile_versions): Allow building with guile 2.2.
131 * configure: Regenerate.
133 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
135 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
137 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
139 * record-btrace.c (record_btrace_allow_memory_access): Remove.
140 (replay_memory_access_read_only, replay_memory_access_read_write)
141 (replay_memory_access_types, replay_memory_access)
142 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
143 (cmd_set_record_btrace, cmd_show_record_btrace)
144 (cmd_show_replay_memory_access): New.
145 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
146 (record_btrace_remove_breakpoint): Replace
147 record_btrace_allow_memory_access with replay_memory_access.
148 (_initialize_record_btrace): Add commands.
151 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
153 * aarch64-linux-nat.c (asm/ptrace.h): Include.
155 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
157 * MAINTAINERS (Write After Approval): Move self back from
160 2014-05-22 Pedro Alves <palves@redhat.com>
162 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
163 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
164 (disable_randomization, enum exec_direction_kind)
165 (execution_direction, stop_registers, start_remote)
166 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
167 (wait_for_inferior, normal_stop, get_last_target_status)
168 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
169 (insert_step_resume_breakpoint_at_sal)
170 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
171 (set_step_info, print_stop_event, signal_stop_state)
172 (signal_print_state, signal_pass_state, signal_stop_update)
173 (signal_print_update, signal_pass_update)
174 (update_signals_program_target, clear_exit_convenience_vars)
175 (displaced_step_dump_bytes, update_observer_mode)
176 (signal_catch_update, gdb_signal_from_command): Move
178 * infrun.h: ... to this new file.
179 * amd64-tdep.c: Include infrun.h.
180 * annotate.c: Include infrun.h.
181 * arch-utils.c: Include infrun.h.
182 * arm-linux-tdep.c: Include infrun.h.
183 * arm-tdep.c: Include infrun.h.
184 * break-catch-sig.c: Include infrun.h.
185 * breakpoint.c: Include infrun.h.
186 * common/agent.c: Include infrun.h instead of inferior.h.
187 * corelow.c: Include infrun.h.
188 * event-top.c: Include infrun.h.
189 * go32-nat.c: Include infrun.h.
190 * i386-tdep.c: Include infrun.h.
191 * inf-loop.c: Include infrun.h.
192 * infcall.c: Include infrun.h.
193 * infcmd.c: Include infrun.h.
194 * infrun.c: Include infrun.h.
195 * linux-fork.c: Include infrun.h.
196 * linux-nat.c: Include infrun.h.
197 * linux-thread-db.c: Include infrun.h.
198 * monitor.c: Include infrun.h.
199 * nto-tdep.c: Include infrun.h.
200 * procfs.c: Include infrun.h.
201 * record-btrace.c: Include infrun.h.
202 * record-full.c: Include infrun.h.
203 * remote-m32r-sdi.c: Include infrun.h.
204 * remote-mips.c: Include infrun.h.
205 * remote-notif.c: Include infrun.h.
206 * remote-sim.c: Include infrun.h.
207 * remote.c: Include infrun.h.
208 * reverse.c: Include infrun.h.
209 * rs6000-tdep.c: Include infrun.h.
210 * s390-linux-tdep.c: Include infrun.h.
211 * solib-irix.c: Include infrun.h.
212 * solib-osf.c: Include infrun.h.
213 * solib-svr4.c: Include infrun.h.
214 * target.c: Include infrun.h.
215 * top.c: Include infrun.h.
216 * windows-nat.c: Include infrun.h.
217 * mi/mi-interp.c: Include infrun.h.
218 * mi/mi-main.c: Include infrun.h.
219 * python/py-threadevent.c: Include infrun.h.
221 2014-05-22 Pedro Alves <palves@redhat.com>
223 * infrun.c (handle_inferior_event): Store the exit code for
224 --return-child-result here, instead of ...
225 (print_exited_reason): ... here.
227 2014-05-21 Pedro Alves <palves@redhat.com>
230 * gdbthread.h (struct thread_control_state): New field
232 * infrun.c (follow_fork): Copy the new thread control field to the
234 (clear_proceed_status_thread): Clear the new thread control field.
235 (proceed): Set the new thread control field.
236 * interps.h (command_interp): Declare.
237 * interps.c (command_interpreter): New global.
238 (command_interp): New function.
239 (interp_exec): Set `command_interpreter' while here.
240 * cli-out.c (cli_uiout_dtor): New function.
241 (cli_ui_out_impl): Install it.
242 * mi/mi-interp.c: Include cli-out.h.
243 (mi_cmd_interpreter_exec): Add comment.
244 (restore_current_uiout_cleanup): New function.
245 (ui_out_free_cleanup): New function.
246 (mi_on_normal_stop): If finishing an execution command started by
247 a CLI command, or any kind of breakpoint-like event triggered,
248 print the stop event to the output (CLI) stream.
249 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
251 2014-05-21 Pedro Alves <palves@redhat.com>
253 * cli/cli-cmds.c (list_command): Handle the first "list" after the
254 current source line having changed.
255 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
256 * infrun.c (normal_stop): Adjust call to
257 set_current_sal_from_frame.
258 * source.c (clear_lines_listed_range): New function.
259 (set_current_source_symtab_and_line, identify_source_line): Clear
260 the lines listed range.
261 (line_info): Handle the first "info line" after the current source
263 * stack.c (print_stack_frame): Remove center handling.
264 (set_current_sal_from_frame): Remove 'center' parameter. Don't
267 2014-05-21 Pedro Alves <palves@redhat.com>
269 * inf-child.c (inf_child_mourn_inferior): New function.
270 * inf-child.h (inf_child_mourn_inferior): New declaration.
271 * darwin-nat.c (darwin_mourn_inferior): Use
272 inf_child_mourn_inferior.
273 * gnu-nat.c (gnu_mourn_inferior): Likewise.
274 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
275 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
276 * nto-procfs.c (procfs_mourn_inferior): Likewise.
277 * windows-nat.c (windows_mourn_inferior): Likewise.
279 2014-05-21 Doug Evans <xdje42@gmail.com>
281 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
283 2014-05-21 Doug Evans <xdje42@gmail.com>
285 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
286 (gdbscm_out_of_range_error): Ditto.
287 (gdbscm_memory_error): Ditto.
288 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
289 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
290 (gdbscm_out_of_range_error): Update.
291 (gdbscm_memory_error): Update.
292 (gdbscm_scm_to_target_string_unsafe): Delete.
294 2014-05-21 Pedro Alves <palves@redhat.com>
296 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
298 (inf_child_open_target): New function.
299 (inf_child_open): Use inf_child_open_target to push the target
300 instead of erroring out.
301 (inf_child_disconnect, inf_child_close)
302 (inf_child_maybe_unpush_target): New functions.
303 (inf_child_target): Install inf_child_disconnect and
304 inf_child_close. Store a pointer to the returned object.
305 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
307 * target.c (auto_connect_native_target): New global.
308 (show_default_run_target): New function.
309 (find_default_run_target): Return NULL if automatically connecting
310 to the native target is disabled.
311 (_initialize_target): Install set/show auto-connect-native-target.
312 * NEWS: Mention "set auto-connect-native-target", and "target
314 * linux-nat.c (super_close): New global.
315 (linux_nat_close): Call super_close.
316 (linux_nat_add_target): Store a pointer to the base class's
318 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
319 inf_child_maybe_unpush.
320 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
322 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
323 the inferior. Use inf_child_maybe_unpush_target.
324 (inf_ttrace_attach): Don't push the target if it is already
326 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
327 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
328 after mourning the inferior. Use inf_child_maybe_unpush_target.
329 (darwin_attach_pid): Don't push the target if it is already
331 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
332 mourning the inferior. Use inf_child_maybe_unpush_target.
333 (gnu_detach): Use inf_child_maybe_unpush_target.
334 * go32-nat.c (go32_create_inferior): Don't push the target if it
336 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
337 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
338 (procfs_open): Rename to ...
339 (procfs_open_1): ... this. Add target_ops parameter. Adjust
340 comments. Can target_preopen before changing node. Call
341 inf_child_open_target to push the target explicitly.
342 (procfs_attach): Don't push the target if it is already pushed.
343 (procfs_detach): Use inf_child_maybe_unpush_target.
344 (procfs_create_inferior): Don't push the target if it is already
346 (nto_native_ops): New global.
347 (procfs_open): Reimplement.
348 (procfs_native_open): New function.
349 (init_procfs_targets): Install procfs_native_open as to_open of
350 "target native". Store a pointer to the "native" target in
352 * procfs.c (procfs_attach): Don't push the target if it is already
354 (procfs_detach): Use inf_child_maybe_unpush_target.
355 (procfs_mourn_inferior): Only unpush the target after mourning the
356 inferior. Use inf_child_maybe_unpush_target.
357 (procfs_init_inferior): Don't push the target if it is already
359 * windows-nat.c (do_initial_windows_stuff): Don't push the target
360 if it is already pushed.
362 2014-05-21 Pedro Alves <palves@redhat.com>
364 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
365 and "procfs" targets are now called "native" instead.
367 2014-05-21 Pedro Alves <palves@redhat.com>
369 * go32-nat.c (go32_open): Delete.
370 (go32_target): Don't override the to_open method.
372 2014-05-21 Pedro Alves <palves@redhat.com>
374 * nto-procfs.c (procfs_can_run): New function.
375 (nto_procfs_ops): New global.
376 (init_procfs_targets): New, based on procfs_target. Install
377 "target native" in addition to "target procfs".
378 (_initialize_procfs): Call init_procfs_targets instead of adding
381 2014-05-21 Pedro Alves <palves@redhat.com>
383 * windows-nat.c (windows_target): Don't override to_shortname,
384 to_longname or to_doc.
386 2014-05-21 Pedro Alves <palves@redhat.com>
388 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
391 2014-05-21 Pedro Alves <palves@redhat.com>
393 * darwin-nat.c (_initialize_darwin_inferior): Don't override
394 to_shortname, to_longname or to_doc.
396 2014-05-21 Pedro Alves <palves@redhat.com>
398 * go32-nat.c (go32_target): Don't override to_shortname,
399 to_longname or to_doc.
401 2014-05-21 Pedro Alves <palves@redhat.com>
403 * inf-child.c (inf_child_open): Remove mention of "child".
404 (inf_child_target): Rename target to "native" instead of "child".
406 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
408 * Makefile.in (SFILES): Delete "regset.c".
409 (COMMON_OBS): Delete "regset.o".
411 * regset.h (regset_alloc): Delete prototype.
413 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
415 * sparc-linux-tdep.c (sparc32_linux_gregset)
416 (sparc32_linux_fpregset): New static regset structures.
417 (sparc32_linux_init_abi): Drop dynamic regset allocations.
418 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
420 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
421 (sparc64_linux_fpregset): New static regset structures.
422 (sparc64_linux_init_abi): Drop dynamic regset allocations.
423 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
424 New static regset structures.
425 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
426 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
427 New static regset structures.
428 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
429 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
430 New static regset structures.
431 (sparc64obsd_init_abi): Drop dynamic regset allocations.
432 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
433 New static regset structures.
434 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
436 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
438 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
439 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
440 register maps ("regmaps") from "*regset" to "*regmap". Do this
441 for all regmap types and variables.
442 * sparc-linux-tdep.c (sparc32_linux_step_trap)
443 (sparc32_linux_supply_core_gregset)
444 (sparc32_linux_collect_core_gregset)
445 (sparc32_linux_supply_core_fpregset)
446 (sparc32_linux_collect_core_fpregset): Likewise.
447 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
448 (sparc_gregmap, sparc_fpregmap): ... these.
449 (sparc_supply_gregset, sparc_collect_gregset)
450 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
451 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
452 (_initialize_sparc_nat): Rename regmaps.
453 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
454 (sparc_gregmap, sparc_fpregmap): ... these.
455 (sparc_supply_gregset, sparc_collect_gregset)
456 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
457 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
459 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
460 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
462 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
464 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
465 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
466 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
468 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
469 (sparc32_bsd_fpregset): Rename to...
470 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
471 (sparc32_bsd_fpregmap): ... these.
472 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
473 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
474 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
475 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
476 (struct sparc_gregmap, struct sparc_fpregmap)
477 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
478 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
479 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
480 (sparc32_supply_regset, sparc32_collect_gregset)
481 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
483 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
484 (sparc64_linux_ptrace_gregmap): ... this.
485 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
486 (_initialize_sparc64_linux_nat): Rename regmaps.
487 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
488 (sparc64_linux_core_gregmap): ... this.
489 (sparc64_linux_supply_core_gregset)
490 (sparc64_linux_collect_core_gregset)
491 (sparc64_linux_supply_core_fpregset)
492 (sparc64_linux_collect_core_fpregset): Rename regmaps.
493 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
494 (sparc64_sol2_fpregset): Rename to...
495 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
496 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
497 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
499 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
500 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
501 (sparc64_bsd_fpregset): Rename to...
502 (struct sparc_gregmap, sparc64_sol2_gregmap)
503 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
504 (sparc64_bsd_fpregmap): ... these.
505 (sparc64_supply_gregset, sparc64_collect_gregset)
506 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
508 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
509 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
510 (sparc64fbsd_gregmap): ... this.
511 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
512 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
514 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
515 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
516 (sparc64nbsd_collect_fpregset): Likewise.
517 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
518 (sparc64nbsd_gregmap): ... this.
519 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
521 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
522 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
523 (sparc64obsd_gregmap): ... this.
524 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
526 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
527 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
528 (sparc32nbsd_gregmap): ... this.
529 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
532 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
534 * score-tdep.c (score7_linux_gregset): New static regset
536 (score7_linux_regset_from_core_section): Remove dynamic regset
538 (score_gdbarch_init): Drop allocation of tdep structure.
539 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
541 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
545 (am33_regset_from_core_section): Remove dynamic regset
548 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
550 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
551 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
553 (mips_linux_regset_from_core_section): Remove dynamic regset
555 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
556 'gregset64', 'fpregset', and 'fpregset64'.
557 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
562 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
564 (amd64_regset_from_core_section): Remove dynamic regset
566 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
568 (amd64obsd_regset_from_core_section): Remove dynamic regset
570 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
572 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
573 x86-common regset supply function.
574 * i386-tdep.c (i386_collect_gregset): Make static.
575 (i386_gregset): New global regset structure.
576 (i386_fpregset, i386_xstateregset): New static regset structures.
577 (i386_regset_from_core_section): Remove dynamic regset
579 (i386_gdbarch_init): Remove initialization of tdep fields
580 'gregset', 'fpregset', and 'xstateregset'.
581 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
582 'fpregset', and 'xstateregset'.
583 (i386_collect_gregset): Remove prototype.
584 (i386_gregset): New declaration.
585 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
587 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
590 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
592 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
593 (arm_linux_vfpregset): New static regset structures.
594 (arm_linux_regset_from_core_section): Remove dynamic allocation of
596 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
597 and 'vfpregset' fields.
599 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
601 * aarch64-linux-tdep.c (aarch64_linux_gregset)
602 (aarch64_linux_fpregset): New static regset structures.
603 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
604 of regset structures.
605 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
608 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
610 * regset.h (struct regset): Remove gdbarch field.
611 * regset.c (regset_alloc): Drop initialization of gdbarch field.
612 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
613 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
615 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
616 (ppc32_linux_fpregset, ppc32_linux_vrregset)
617 (ppc32_linux_vsxregset): Likewise.
618 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
619 via the regcache instead of the regset.
620 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
621 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
622 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
623 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
626 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
628 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
630 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
631 (alphanbsd_aout_gregset): Likewise.
632 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
633 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
635 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
636 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
638 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
639 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
640 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
641 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
642 * m88k-tdep.c (m88k_gregset): Likewise.
643 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
644 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
645 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
646 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
647 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
648 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
649 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
650 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
651 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
653 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
654 * sh-tdep.h (sh_corefile_gregset): Likewise.
655 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
656 * vax-tdep.c (vax_gregset): Likewise.
658 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
660 Fix TLS access for -static -pthread.
661 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
662 (try_thread_db_load_1): Initialize it.
663 (thread_db_get_thread_local_address): Call it if LM is zero.
664 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
665 * target.h (struct target_ops) (to_get_thread_local_address): Add
666 load_module_addr comment.
668 2014-05-21 Pedro Alves <palves@redhat.com>
670 * dcache.c (dcache_read_memory_partial): If reading the cache line
671 fails, fallback to reading just the memory the caller wanted.
673 2014-05-20 Doug Evans <dje@google.com>
675 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
676 instead of get_current_arch.
678 2014-05-20 Pedro Alves <palves@redhat.com>
680 * NEWS: Mention that compare-sections now works with all targets.
682 * remote.c (PACKET_qCRC): New enum value.
683 (remote_verify_memory): Don't send qCRC if the target has no
684 execution. Use packet_support/packet_ok. If the target doesn't
685 support the qCRC packet, fallback to a deep memory copy.
686 (compare_sections_command): Say "target image" instead of "remote
688 (_initialize_remote): Add PACKET_qCRC to the list of config
689 packets that have no associated command. Extend comment.
690 * target.c (simple_verify_memory, default_verify_memory): New
692 * target.h (struct target_ops) <to_verify_memory>: Default to
693 default_verify_memory.
694 (simple_verify_memory): New declaration.
695 * target-delegates.c: Regenerate.
697 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
699 * record-btrace.c (record_btrace_step_thread): Check for empty history.
701 2014-05-20 Hui Zhu <hui@codesourcery.com>
702 Yao Qi <yao@codesourcery.com>
705 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
706 and change address of sp and pc.
708 2014-05-19 Tom Tromey <tromey@redhat.com>
710 * gdbtypes.c (rank_function): Use XNEWVEC.
711 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
713 2014-05-19 Doug Evans <dje@google.com>
715 * dwarf2read.c (build_type_psymtabs_1): Renamed from
716 build_type_unit_groups and moved closer to only caller. Remove
717 arguments. All references updated. Remove outdated .gdb_index
719 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
720 build_type_psymtabs_1.
722 2014-05-19 Doug Evans <dje@google.com>
724 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
725 n_type_unit_groups, all_type_unit_groups. All uses removed.
726 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
727 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
728 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
729 (add_type_unit_group_to_table): Delete.
731 2014-05-19 Doug Evans <dje@google.com>
733 * eval.c (evaluate_subexp_standard): Add some comments.
735 2014-05-17 Doug Evans <xdje42@gmail.com>
737 * progspace.c (remove_program_space): Delete, unused.
738 * progspace.h (remove_program_space): Ditto.
740 2014-05-17 Doug Evans <xdje42@gmail.com>
742 * inferior.c (prune_inferiors): Fix comment.
743 (remove_inferior_command): Call prune_program_spaces.
745 2014-05-16 Doug Evans <dje@google.com>
747 New command line option -D.
749 * main.c (set_gdb_data_directory): New function.
750 (captured_main): Recognize -D. Flag error for --data-directory "".
751 Call set_gdb_data_directory.
752 (print_gdb_help): Print --data-directory, -D.
753 * main.h (set_gdb_data_directory): Declare.
754 * top.c (staged_gdb_datadir): New static global.
755 (set_gdb_datadir): Call set_gdb_data_directory
756 (show_gdb_datadir): New function.
757 (init_main): Update init of data-directory parameter.
759 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
761 Import the "dirfd" gnulib module.
762 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
763 * gnulib/aclocal.m4: Update.
764 * gnulib/config.in: Update.
765 * gnulib/configure: Update.
766 * gnulib/import/Makefile.am: Update.
767 * gnulib/import/Makefile.in: Update.
768 * gnulib/import/dirfd.c: New.
769 * gnulib/import/m4/dirfd.m4: New.
770 * gnulib/import/m4/gnulib-cache.m4: Update.
771 * gnulib/import/m4/gnulib-comp.m4: Update.
773 2014-05-16 Pierre Muller <muller@sourceware.org>
774 Yao Qi <yao@codesourcery.com>
776 * valprint.c (print_wchar): Move the code on checking whether
777 W is a printable wide char to the default branch of switch
778 statement below. Call wchar_printable instead of gdb_iswprint.
780 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
782 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
783 ldr.w and ldrd instructions.
785 2014-05-15 Doug Evans <dje@google.com>
787 * dwarf2read.c (read_structure_type): Delete outdated comments.
789 2014-05-14 Tom Tromey <tromey@redhat.com>
791 * macrocmd.c (print_macro_definition): Reindent.
793 2014-05-13 Doug Evans <xdje42@gmail.com>
795 * python/py-cmd.c (cmdpy_completer): Add comment.
796 (completers): Make const.
798 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
800 * infrun.c (resume): Remove should_resume (unused). Move up
801 declaration of resume_ptid.
803 2014-05-13 Tom Tromey <tromey@redhat.com>
805 * language.h (unop_type_check): Remove.
806 (binop_type_check): Don't declare.
808 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
810 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
811 call to regcache_raw_collect.
813 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
815 * mi/mi-console.c (mi_console_raw_packet): Use the value from
816 mi_console->quote as the quoting character.
818 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
820 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
822 2014-04-29 Tom Tromey <tromey@redhat.com>
824 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
827 2014-05-07 Kyle McMartin <kyle@redhat.com>
829 Pushed by Joel Brobecker <brobecker@adacore.com>.
830 * aarch64-tdep.c (aarch64_software_single_step): New function.
831 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
832 with aarch64_software_single_step.
834 2014-05-05 Joel Brobecker <brobecker@adacore.com>
838 2014-05-05 Keith Seitz <keiths@redhat.com>
840 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
841 variable or history value is successfully parsed.
843 2014-05-05 Yao Qi <yao@codesourcery.com>
844 Pedro Alves <palves@redhat.com>
846 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
847 address of blocks that intersects the requested range. Trim
848 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
850 * ctf.c (ctf_xfer_partial): Likewise.
852 2014-05-05 Yao Qi <yao@codesourcery.com>
854 * printcmd.c (display_command): Remove the check to
855 target_has_execution.
857 2014-05-03 Mark Kettenis <kettenis@gnu.org>
859 * ppcobsd-nat.c: Include "obsd-nat.h".
860 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
862 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
864 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
866 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
867 and 16-bit signed and unsigned arguments. Update comment.
868 (stap_parse_probe_arguments): Extend code to handle such
869 arguments. Use warning instead of complaint to notify about
870 unrecognized bitness.
872 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
875 * stap-probe.c (stap_parse_probe_arguments): Simplify
876 check for non-prefixed probes (i.e., probes whose
877 arguments do not start with "N@"). Always set the
878 argument type to a sane value.
880 2014-05-01 David Taylor <dtaylor@emc.com>
882 * remote.c (compare_sections_command): Add -r option to compare
883 all loadable read-only sections.
885 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
887 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
888 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
890 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
891 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
892 Remove unused CORE_ADDR argument. Update all callers.
894 2014-04-29 Pedro Alves <palves@redhat.com>
896 * remote.c (struct packet_config) <detect>: Extend comment.
897 (add_packet_config_cmd): Don't set the config's detect or support
899 (init_all_packet_configs): Also initialize the config's 'detect'
901 (reset_all_packet_configs_support): New function.
902 (remote_open_1): Call reset_all_packet_configs_support instead of
903 init_all_packet_configs.
904 (_initialize_remote): Initialize all packet configs. Assert that
905 all packets have an associated command, except a few known
908 2014-04-28 Joel Brobecker <brobecker@adacore.com>
910 * dwarf2read.c (read_subrange_type): Handle dynamic
911 DW_AT_lower_bound attributes.
913 2014-04-28 Joel Brobecker <brobecker@adacore.com>
915 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
916 dynamic bounds before computing its upper bound.
917 (ada_discrete_type_low_bound): Same as above with the lower bound.
919 2014-04-28 Joel Brobecker <brobecker@adacore.com>
921 * dwarf2read.c (is_dynamic_type): Return true for dynamic
922 range types. Adjust the array handling implementation to
923 take advantage of this change.
924 (resolve_dynamic_range): New function, mostly extracted from
925 resolve_dynamic_bounds.
926 (resolve_dynamic_array): New function, mostly extracted from
927 resolve_dynamic_bounds.
928 (resolve_dynamic_bounds): Delete.
929 (resolve_dynamic_type): Reimplement. Add handling of
930 TYPE_CODE_RANGE types.
932 2014-04-28 Joel Brobecker <brobecker@adacore.com>
934 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
935 handling of parallel ___XA types.
937 2014-04-28 Joel Brobecker <brobecker@adacore.com>
939 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
940 unnecessary second call to static_unwrap_type.
942 2014-04-27 Hui Zhu <hui@codesourcery.com>
944 * stack.c (print_frame_info): Call do_gdb_disassembly with
945 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
947 2014-04-26 Doug Evans <xdje42@gmail.com>
949 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
951 2014-04-25 Pedro Alves <palves@redhat.com>
954 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
955 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
956 and newline from built string.
957 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
958 (linux_ptrace_attach_fail_reason): ... this.
959 * linux-nat.c (linux_nat_attach): Adjust to use
960 linux_ptrace_attach_fail_reason.
962 2014-04-25 Pedro Alves <palves@redhat.com>
964 * remote.c (struct remote_state): Remove multi_process_aware,
965 non_stop_aware, cond_tracepoints, cond_breakpoints,
966 breakpoint_commands, fast_tracepoints, static_tracepoints,
967 install_in_trace, disconnected_tracing,
968 enable_disable_tracepoints, string_tracing, and
969 augmented_libraries_svr4_read fields.
970 (remote_multi_process_p): Move further below in the file.
971 (struct packet_config): Add comments.
972 (update_packet_config): Delete function.
973 (show_packet_config_cmd): Use packet_config_support.
974 (add_packet_config_cmd): Use NULL as set callback.
975 (packet_ok): "set remote foo-packet"-style commands no longer
976 change config->supported -- adjust.
977 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
978 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
979 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
980 (PACKET_QNonStop, PACKET_multiprocess_feature)
981 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
982 (PACKET_DisconnectedTracing_feature)
983 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
984 (set_remote_protocol_packet_cmd): Delete function.
985 (packet_config_support, packet_support): New functions.
986 (set_remote_protocol_Z_packet_cmd): Don't call
987 update_packet_config.
988 (remote_query_attached, remote_pass_signals)
989 (remote_program_signals, remote_threads_info)
990 (remote_threads_extra_info, remote_start_remote): Use
992 (remote_start_remote): Use packet_config_support and
994 (init_all_packet_configs): Set all packets to unknown support,
995 instead of calling update_packet_config.
996 (remote_check_symbols): Use packet_support.
997 (remote_supported_packet): Unconditionally set the packet config's
999 (remote_multi_process_feature, remote_non_stop_feature)
1000 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1001 (remote_breakpoint_commands_feature)
1002 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1003 (remote_install_in_trace_feature)
1004 (remote_disconnected_tracing_feature)
1005 (remote_enable_disable_tracepoint_feature)
1006 (remote_string_tracing_feature)
1007 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1008 (remote_protocol_features): Adjust to use remote_supported_packet
1009 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1010 "ConditionalTracepoints", "ConditionalBreakpoints",
1011 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1012 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1013 "EnableDisableTracepoints", and "tracenz".
1014 (remote_query_supported): Use packet_support.
1015 (remote_open_1): Adjust.
1016 (extended_remote_attach_1): Use packet_support. Switch on the
1017 result of packet_ok instead of checking whether the packet ended
1019 (remote_vcont_resume): Use packet_support.
1020 (remote_resume, remote_stop_ns, fetch_register_using_p)
1021 (remote_prepare_to_store, store_register_using_P)
1022 (check_binary_download, remote_write_bytes): Use packet_support.
1023 (remote_vkill): Use packet_support. Switch on the result of
1024 packet_ok instead of checking whether the packet ended up
1026 (extended_remote_supports_disable_randomization): Use
1028 (extended_remote_run): Switch on the result of packet_ok instead
1029 of checking whether the packet ended up disabled.
1030 (remote_insert_breakpoint, remote_remove_breakpoint)
1031 (remote_insert_watchpoint, remote_remove_watchpoint)
1032 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1034 (remote_search_memory): Use packet_config_support.
1035 (remote_get_thread_local_address, remote_get_tib_address)
1036 (remote_hostio_send_command, remote_can_execute_reverse): Use
1038 (remote_supports_cond_tracepoints)
1039 (remote_supports_cond_breakpoints)
1040 (remote_supports_fast_tracepoints)
1041 (remote_supports_static_tracepoints)
1042 (remote_supports_install_in_trace)
1043 (remote_supports_enable_disable_tracepoint)
1044 (remote_supports_string_tracing)
1045 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1046 the packet config says the feature is enabled or disabled.
1047 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1048 (remote_get_trace_status): Use packet_support.
1049 (remote_set_disconnected_tracing): Adjust to check whether the
1050 feature is enabled with packet_support.
1051 (remote_set_trace_buffer_size, remote_use_agent)
1052 (remote_can_use_agent, remote_supports_btrace): Use
1054 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1055 Use packet_config_support.
1056 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1057 the packet config says the feature is enabled or disabled.
1058 (set_range_stepping): Use packet_support.
1060 2014-04-25 Tom Tromey <tromey@redhat.com>
1062 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1065 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1067 * NEWS: Mention support for C99 variable length arrays.
1069 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1071 * ada-lang.c (standard_exc): Expand introductory comment.
1073 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1074 Walfred Tedeschi <walfred.tedeschi@intel.com>
1076 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1078 (amd64_linux_read_description): Add code to handle AVX512 xstate
1079 mask and return respective tdesc.
1080 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1081 and features/i386/x32-avx512-linux.c.
1082 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1083 (amd64_linux_core_read_description): Add code to handle AVX512
1084 xstate mask and return respective tdesc.
1085 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1086 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1088 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1089 (tdesc_amd64_avx512_linux): New prototype.
1090 (tdesc_x32_avx512_linux): Likewise.
1091 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1092 features/i386/x32-avx512.c.
1093 (amd64_ymm_avx512_names): New register names for pseudo
1095 (amd64_ymmh_avx512_names): New register names for raw registers
1097 (amd64_k_names): New register names for K registers.
1098 (amd64_zmmh_names): New register names for ZMM raw registers.
1099 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1100 (amd64_xmm_avx512_names): New register names for XMM16-31
1102 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1104 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1105 if feature is present.
1106 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1107 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1108 (AMD64_NUM_REGS): Adjust to new number of registers.
1109 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1110 registers supplied via XSTATE by AVX512 registers.
1111 (i386_linux_read_description): Add case for AVX512.
1112 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1113 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1114 (i386_linux_core_read_description): Add case for AVX512.
1115 (i386_linux_init_abi): Install supported register note section
1117 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1119 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1120 registers to be number of zmm7h + 1.
1121 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1122 * i386-tdep.c: Include features/i386/i386-avx512.c.
1123 (i386_zmm_names): Add ZMM pseudo register names array.
1124 (i386_zmmh_names): Add ZMM raw register names array.
1125 (i386_k_names): Add K raw register names array.
1126 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1127 registers. AVX512 has 16 more ZMM registers than there are YMM
1129 (i386_zmmh_regnum_p): Add function to look up register number of
1131 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1132 (i386_k_regnum_p): Likewise for K raw registers.
1133 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1134 registers added by AVX512.
1135 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1136 registers added by AVX512.
1137 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1139 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1140 (i386_pseudo_register_name): Add ZMM pseudo registers.
1141 (i386_zmm_type): Construct and return vector registers type for ZMM
1143 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1144 ZMM0-31 pseudo registers and K registers.
1145 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1146 and YMM16-31 registers from register cache.
1147 (i386_pseudo_register_write): Add code to write K, ZMM and
1149 (i386_register_reggroup_p): Add code to include/exclude AVX512
1150 registers in/from respective register groups.
1151 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1152 registers if feature is present in xcr0.
1153 (i386_gdbarch_init): Add code to initialize AVX512 feature
1154 variables in tdep structure, wire in pseudo registers and call
1155 initialize_tdesc_i386_avx512.
1156 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1158 (i386_regnum): Add AVX512 registers.
1159 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1160 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1161 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1162 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1164 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1165 (i386_ymm_avx512_regnum_p): Likewise.
1166 (i386_k_regnum_p): Likewise.
1167 (i386_zmm_regnum_p): Likewise.
1168 (i386_zmmh_regnum_p): Likewise.
1169 * i387-tdep.c : Update year in copyright notice.
1170 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1172 (XSAVE_YMM_AVX512_ADDR): New macro.
1173 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1175 (XSAVE_XMM_AVX512_ADDR): New macro.
1176 (xsave_avx512_k_offset): New table for K register offsets in
1178 (XSAVE_AVX512_K_ADDR): New macro.
1179 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1181 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1182 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1184 (i387_collect_xsave): Add code to collect AVX512 registers from
1186 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1187 of XMM16-31 registers.
1188 (I387_NUM_K_REGS): New define for number of K registers.
1189 (I387_K0_REGNUM): New define for K0 register number.
1190 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1191 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1192 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1194 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1195 (I387_XMM16_REGNUM): New define for XMM16 register number.
1196 (I387_YMM0_REGNUM): New define for YMM0 register number.
1197 (I387_KEND_REGNUM): New define for last K register number.
1198 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1199 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1201 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1203 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1205 * features/Makefile: Add AVX512 related files.
1206 * features/i386/32bit-avx512.xml: New file.
1207 * features/i386/64bit-avx512.xml: Likewise.
1208 * features/i386/amd64-avx512-linux.c: Likewise.
1209 * features/i386/amd64-avx512-linux.xml: Likewise.
1210 * features/i386/amd64-avx512.c: Likewise.
1211 * features/i386/amd64-avx512.xml: Likewise.
1212 * features/i386/i386-avx512-linux.c: Likewise.
1213 * features/i386/i386-avx512-linux.xml: Likewise.
1214 * features/i386/i386-avx512.c: Likewise.
1215 * features/i386/i386-avx512.xml: Likewise.
1216 * features/i386/x32-avx512-linux.c: Likewise.
1217 * features/i386/x32-avx512-linux.xml: Likewise.
1218 * features/i386/x32-avx512.c: Likewise.
1219 * features/i386/x32-avx512.xml: Likewise.
1220 * regformats/i386/amd64-avx512-linux.dat: New file.
1221 * regformats/i386/amd64-avx512.dat: Likewise.
1222 * regformats/i386/i386-avx512-linux.dat: Likewise.
1223 * regformats/i386/i386-avx512.dat: Likewise.
1224 * regformats/i386/x32-avx512-linux.dat: Likewise.
1225 * regformats/i386/x32-avx512.dat: Likewise.
1226 * NEWS: Add note about new support for AVX512.
1229 2014-04-23 Pedro Alves <palves@redhat.com>
1231 * breakpoint.c (insert_bp_location): Tolerate errors if the
1232 breakpoint is set in a user-loaded objfile.
1233 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1234 location is marked shlib_disabled. If the breakpoint is set in a
1235 user-loaded objfile is a GDB-side memory breakpoint, validate it
1236 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1237 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1239 * mem-break.c (memory_validate_breakpoint): New function.
1240 * objfiles.c (userloaded_objfile_contains_address_p): New
1242 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1243 * target.h (memory_validate_breakpoint): New declaration.
1245 2014-04-23 Pedro Alves <palves@redhat.com>
1247 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1248 the breakpoint is set in a shared library, only suppress
1249 errors for software breakpoints, not hardware breakpoints.
1251 2014-04-22 Pedro Alves <palves@redhat.com>
1253 * infrun.c (schedlock_applies): New function, factored out from
1254 find_thread_needs_step_over.
1255 (find_thread_needs_step_over): Use it.
1256 (switch_back_to_stepped_thread): Always clear trap_expected if the
1257 step over is finished. Return early if scheduler locking applies.
1258 Look for the stepping thread and a potential step-over thread with
1260 (currently_stepping_or_nexting_callback): Delete.
1262 2014-04-22 Nick Clifton <nickc@redhat.com>
1264 * NEWS: Mention that ARM sim now supports tracing.
1266 2014-04-22 Yao Qi <yao@codesourcery.com>
1268 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1270 * tracefile.c (tracefile_fetch_registers): ... it. New
1272 * tracefile.h (tracefile_fetch_registers): Declare.
1273 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1274 tracefile_fetch_registers.
1276 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1279 * windows-nat.c (thread_rec): Don't display a warning when
1280 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1281 fails for any reason, set th->suspended to -1, so that we don't
1282 try to resume such a thread. Also, don't return NULL in these
1283 cases, to avoid completely ruin the session due to "PC register is
1284 not available" error.
1285 (do_windows_fetch_inferior_registers): Check errors in
1286 GetThreadContext call.
1287 (windows_continue): Accept an additional argument KILLED; if not
1288 zero, ignore errors in the SetThreadContext call, since the
1289 inferior was killed and is shutting down.
1290 (windows_resume, get_windows_debug_event)
1291 (windows_create_inferior, windows_mourn_inferior)
1292 (windows_kill_inferior): All callers of windows_continue changed
1293 to adjust to its new calling sequence.
1295 2014-04-19 Yao Qi <yao@codesourcery.com>
1297 * ctf.c (ctf_open): Call post_create_inferior.
1299 2014-04-19 Yao Qi <yao@codesourcery.com>
1301 * ctf.c (handle_id): New static variable.
1302 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1303 value. Get the declaration of event "register" and get length
1304 of field "contents".
1306 2014-04-19 Yao Qi <yao@codesourcery.com>
1308 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1310 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1312 * valops.c (oload_method_static): Remove unnecessary argument
1313 METHOD. Update all callers.
1315 2014-04-18 Pedro alves <palves@redhat.com>
1316 Tom Tromey <tromey@redhat.com>
1319 * frame.c (get_prev_frame_1): Rename to ...
1320 (get_prev_frame_always): ... this, and make extern. Adjust.
1321 (skip_artificial_frames): Use get_prev_frame_always.
1322 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1323 (get_frame_unwind_stop_reason): Adjust to rename.
1324 * frame.h (get_prev_frame_always): Declare.
1325 * inline-frame.c: Include frame.h.
1326 (inline_frame_this_id): Use get_prev_frame_always.
1328 2014-04-18 Tristan Gingold <gingold@adacore.com>
1330 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1331 code by using bfd_mach_o_get_base_address.
1333 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1335 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1336 (spu_ax_pseudo_register_collect): New function.
1337 (spu_ax_pseudo_register_push_stack): Likewise.
1338 (spu_dwarf_reg_to_regnum): Likewise.
1339 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1341 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1343 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1344 Replace FRAME argument with FRAME_ID.
1345 * gdbarch.c, gdbarch.h: Regenerate.
1346 * findvar.c (default_value_from_register): Add GDBARCH argument;
1347 replace FRAME by FRAME_ID. No longer call get_frame_id.
1348 (value_from_register): Update call to gdbarch_value_from_register.
1349 * value.h (default_value_from_register): Update prototype.
1350 * s390-linux-tdep.c (s390_value_from_register): Update interface
1351 and call to default_value_from_register.
1352 * spu-tdep.c (spu_value_from_register): Likewise.
1354 * findvar.c (address_from_register): Remove TYPE argument.
1355 Do not call value_from_register; use gdbarch_value_from_register
1356 with null_frame_id instead.
1357 * value.h (address_from_register): Update prototype.
1358 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1359 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1360 address_from_register interface change.
1362 2014-04-17 Yao Qi <yao@codesourcery.com>
1364 * gdbtypes.h: Update comments to link to types and macros'
1367 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1369 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1371 2014-04-16 Keith Seitz <keiths@redhat.com>
1374 * dwarf2read.c (skip_one_die): Check that all relative-offset
1375 sibling DIEs fall within range of the current reader's buffer.
1376 (read_partial_die): Likewise.
1378 2014-04-16 Keith Seitz <keiths@redhat.com>
1381 * cp-namespace.c (lookup_symbol_file): If the type name of
1382 `this' is NULL, return immediately.
1384 2014-04-14 Keith Seitz <keiths@redhat.com>
1387 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1388 from symbol_matches_domain in symtab.c. All local callers
1389 of symbol_matches_domain updated.
1390 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1391 search STRUCT_DOMAIN.
1392 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1393 independently. standard_lookup will do that automatically.
1394 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1395 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1396 (cp_lookup_symbol_in_namespace): Likewise.
1397 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1398 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1399 may return a STRUCT_DOMAIN match.
1400 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1401 * cp-support.c: Include language.h.
1402 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1404 * psymtab.c (match_partial_symbol): Compare the requested
1405 domain with the symbol's domain directly.
1406 (lookup_partial_symbol): Likewise.
1407 * symtab.c (lookup_symbol_in_language): Explain when/why
1408 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1409 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1410 appropriate languages.
1411 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1412 and moved to ada-lang.c
1413 (lookup_block_symbol): Explain that this function only returns
1414 symbol matching the requested DOMAIN.
1415 Compare the requested domain with the symbol's domain directly.
1416 (iterate_over_symbols): Compare the requested domain with the
1417 symbol's domain directly.
1418 * symtab.h (symbol_matches_domain): Remove.
1420 2014-04-14 Tom Tromey <tromey@redhat.com>
1423 * c-exp.y (type_aggregate_p): New function.
1424 (qualified_name, classify_inner_name): Use it.
1425 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1426 and TYPE_TARGET_TYPE of an enum type.
1427 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1429 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1430 handle TYPE_DECLARED_CLASS.
1431 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1433 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1434 * valops.c (enum_constant_from_type): New function.
1435 (value_aggregate_elt): Use it.
1436 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1439 2014-04-14 Tom Tromey <tromey@redhat.com>
1441 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1442 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1444 * value.h (value_aggregate_elt): Update.
1446 2014-04-14 Tom Tromey <tromey@redhat.com>
1448 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1452 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1453 (evaluate_subexp_standard): Pass noside argument.
1454 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1455 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1456 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1457 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1458 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1460 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1462 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1463 points to a constant blob.
1465 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1467 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1468 property and store it as the high bound and flag the range accordingly.
1469 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1470 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1471 * gdbtypes.h (enum range_flags): New enum.
1472 (struct range_bounds): Add flags member.
1474 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1476 * c-typeprint.c (c_type_print_varspec_suffix): Added
1477 check for not yet resolved high bound. If unresolved, print
1478 "variable length" string to the console instead of random
1481 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1483 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1485 (ada_template_to_fixed_record_type_1): Likewise.
1486 (ada_to_fixed_type_1): Likewise.
1487 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1488 (cp_print_value): Likewise.
1489 * d-valprint.c (dynamic_array_type): Likewise.
1490 * findvar.c (address_of_variable): Likewise.
1491 * jv-valprint.c (java_value_print): Likewise.
1492 * valops.c (value_ind): Likewise.
1493 * value.c (coerce_ref): Likewise.
1495 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1497 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1498 value and retrieve the dynamic type size.
1500 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1502 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1503 passed to sizeof is dynamic evaluate the argument to compute the length.
1505 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1506 Joel Brobecker <brobecker@adacore.com>
1508 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1509 (dwarf2_evaluate_property): New function.
1510 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1511 * dwarf2read.c (attr_to_dynamic_prop): New function.
1512 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1514 * gdbtypes.c: Include dwarf2loc.h.
1515 (is_dynamic_type): New function.
1516 (resolve_dynamic_type): New function.
1517 (resolve_dynamic_bounds): New function.
1518 (get_type_length): New function.
1519 (check_typedef): Use get_type_length to compute type length.
1520 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1521 (TYPE_LOW_BOUND_KIND): New macro.
1522 (is_dynamic_type): New function prototype.
1523 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1524 to resolve dynamic properties of the type. Update comment.
1525 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1527 2014-04-14 Richard Henderson <rth@redhat.com>
1529 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1531 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1532 Doug Evans <xdje42@gmail.com>
1534 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1535 dereference TYPE_CODE_REF values.
1537 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1539 Revert the following changes due to regressions:
1541 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1542 (dwarf2_evaluate_property): New function.
1543 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1544 * dwarf2read.c (attr_to_dynamic_prop): New function.
1545 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1547 * gdbtypes.c: Include dwarf2loc.h.
1548 (is_dynamic_type): New function.
1549 (resolve_dynamic_type): New function.
1550 (resolve_dynamic_bounds): New function.
1551 (get_type_length): New function.
1552 (check_typedef): Use get_type_length to compute type length.
1553 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1554 (TYPE_LOW_BOUND_KIND): New macro.
1555 (is_dynamic_type): New function prototype.
1556 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1557 to resolve dynamic properties of the type. Update comment.
1558 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1560 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1561 passed to sizeof is dynamic evaluate the argument to compute the length.
1563 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1564 value and retrieve the dynamic type size.
1566 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1567 (ada_template_to_fixed_record_type_1): Likewise.
1568 (ada_to_fixed_type_1): Likewise.
1569 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1570 (cp_print_value): Likewise.
1571 * d-valprint.c (dynamic_array_type): Likewise.
1572 * eval.c (evaluate_subexp_with_coercion): Likewise.
1573 * findvar.c (address_of_variable): Likewise.
1574 * jv-valprint.c (java_value_print): Likewise.
1575 * valops.c (value_ind): Likewise.
1576 * value.c (coerce_ref): Likewise.
1578 * c-typeprint.c (c_type_print_varspec_suffix): Added
1579 check for not yet resolved high bound. If unresolved, print
1580 "variable length" string to the console instead of random
1583 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1584 property and store it as the high bound and flag the range accordingly.
1585 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1586 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1587 * gdbtypes.h (enum range_flags): New enum.
1588 (struct range_bounds): Add flags member.
1590 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1591 points to a constant blob.
1593 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1594 (evaluate_subexp_standard): Pass noside argument.
1595 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1596 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1597 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1598 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1599 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1601 2014-04-11 Keith Seitz <keiths@redhat.com>
1604 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1605 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1610 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1611 (evaluate_subexp_standard): Pass noside argument.
1612 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1613 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1614 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1615 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1616 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1618 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1620 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1621 points to a constant blob.
1623 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1625 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1626 property and store it as the high bound and flag the range accordingly.
1627 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1628 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1629 * gdbtypes.h (enum range_flags): New enum.
1630 (struct range_bounds): Add flags member.
1632 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1634 * c-typeprint.c (c_type_print_varspec_suffix): Added
1635 check for not yet resolved high bound. If unresolved, print
1636 "variable length" string to the console instead of random
1639 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1641 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1642 (ada_template_to_fixed_record_type_1): Likewise.
1643 (ada_to_fixed_type_1): Likewise.
1644 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1645 (cp_print_value): Likewise.
1646 * d-valprint.c (dynamic_array_type): Likewise.
1647 * eval.c (evaluate_subexp_with_coercion): Likewise.
1648 * findvar.c (address_of_variable): Likewise.
1649 * jv-valprint.c (java_value_print): Likewise.
1650 * valops.c (value_ind): Likewise.
1651 * value.c (coerce_ref): Likewise.
1653 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1655 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1656 value and retrieve the dynamic type size.
1658 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1660 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1661 passed to sizeof is dynamic evaluate the argument to compute the length.
1663 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1665 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1666 (dwarf2_evaluate_property): New function.
1667 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1668 * dwarf2read.c (attr_to_dynamic_prop): New function.
1669 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1671 * gdbtypes.c: Include dwarf2loc.h.
1672 (is_dynamic_type): New function.
1673 (resolve_dynamic_type): New function.
1674 (resolve_dynamic_bounds): New function.
1675 (get_type_length): New function.
1676 (check_typedef): Use get_type_length to compute type length.
1677 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1678 (TYPE_LOW_BOUND_KIND): New macro.
1679 (is_dynamic_type): New function prototype.
1680 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1681 to resolve dynamic properties of the type. Update comment.
1682 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1684 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1686 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1687 declaring high/low bounds and change uses accordingly. Call
1688 create_range_type instead of create_static_range_type.
1689 * gdbtypes.c (create_range_type): New function.
1690 (create_range_type): Convert bounds into struct bound_prop and pass
1691 them to create_range_type.
1692 * gdbtypes.h (struct bound_prop): New struct.
1693 (create_range_type): New function prototype.
1694 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1695 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1696 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1698 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1700 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1702 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1703 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1704 * ada-lang.c: All uses of create_range_type updated.
1705 * coffread.c: All uses of create_range_type updated.
1706 * dwarf2read.c: All uses of create_range_type updated.
1707 * f-exp.y: All uses of create_range_type updated.
1708 * m2-valprint.c: All uses of create_range_type updated.
1709 * mdebugread.c: All uses of create_range_type updated.
1710 * stabsread.c: All uses of create_range_type updated.
1711 * valops.c: All uses of create_range_type updated.
1712 * valprint.c: All uses of create_range_type updated.
1714 2014-04-10 Pedro Alves <palves@redhat.com>
1716 * breakpoint.c (single_step_breakpoints)
1717 (single_step_gdbarch): Move up in the file.
1718 (one_breakpoint_xfer_memory): New function, factored out from ...
1719 (breakpoint_xfer_memory): ... here. Also process single-step
1722 2014-04-09 Tristan Gingold <gingold@adacore.com>
1724 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1726 (darwin_decode_exception_message): Free port only after use.
1728 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1730 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1731 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1732 when setting the size of call_length.
1734 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1736 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1737 dereference TYPE_CODE_REF values.
1739 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1741 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1742 end of warning message.
1744 2014-04-03 Doug Evans <dje@google.com>
1746 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1747 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1749 2014-04-02 Alan Modra <amodra@gmail.com>
1751 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1752 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1753 (struct symbol_file_add_from_memory_args): Add size field.
1754 (find_vdso_size): New function.
1755 (add_vsyscall_page): Attempt to find vdso size.
1757 2014-04-01 Doug Evans <dje@google.com>
1759 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1761 2014-04-01 Tristan Gingold <gingold@adacore.com>
1763 * darwin-nat.c (darwin_encode_reply): Add prototype.
1764 (darwin_decode_exception_message): Reply to unknown inferiors.
1765 (darwin_decode_message): Handle message by id. Ignore message
1766 to unknown inferior.
1767 (darwin_wait): Discard unknown messages, add debug trace.
1769 2014-03-31 Doug Evans <dje@google.com>
1771 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1774 2014-03-31 Doug Evans <dje@google.com>
1776 New option "set print symbol-loading".
1778 * solib.c (solib_read_symbols): Only print symbol loading messages
1780 (solib_add): If symbol loading is in "brief" mode, notify user
1781 symbols are being loaded.
1782 (reload_shared_libraries_1): Ditto.
1783 * symfile.c (print_symbol_loading_off): New static global.
1784 (print_symbol_loading_brief): New static global.
1785 (print_symbol_loading_full): New static global.
1786 (print_symbol_loading_enums): New static global.
1787 (print_symbol_loading): New static global.
1788 (print_symbol_loading_p): New function.
1789 (symbol_file_add_with_addrs): Only print symbol loading messages
1791 (_initialize_symfile): Register "print symbol-loading" set/show
1793 * symfile.h (print_symbol_loading_p): Declare.
1795 2014-03-30 Doug Evans <xdje42@gmail.com>
1797 * infrun.c (set_last_target_status): New function.
1798 (handle_inferior_event): Call it.
1800 2014-03-30 Doug Evans <xdje42@gmail.com>
1802 * inferior.h (enum stop_kind): Improve comment.
1804 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1806 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1807 a reference, strip the reference layer before calling
1808 the lang_ops value_has_mutated callback.
1810 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1812 Remove some globals from our parser.
1813 * language.c (unk_lang_parser): Add "struct parser_state"
1815 * language.h (struct language_defn) <la_parser>: Likewise.
1816 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1817 (initialize_expout): Add "struct parser_state" argument.
1818 Rewrite function to use the parser state.
1819 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1820 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1821 write_exp_elt_longcst, write_exp_elt_dblcst,
1822 write_exp_elt_decfloatcst, write_exp_elt_type,
1823 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1824 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1825 write_dollar_variable): Likewise.
1826 (parse_exp_in_context_1): Use parser state.
1827 (insert_type_address_space): Add "struct parser_state" argument.
1829 (increase_expout_size): New function.
1830 * parser-defs.h: Forward declare "struct language_defn" and
1831 "struct parser_state".
1832 (expout, expout_size, expout_ptr): Remove extern declarations.
1833 (parse_gdbarch, parse_language): Rewrite macro declarations to
1834 accept the parser state.
1835 (struct parser_state): New struct.
1836 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1837 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1838 write_exp_elt_decfloatcst, write_exp_elt_type,
1839 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1840 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1841 write_exp_msymbol, write_dollar_variable,
1842 mark_struct_expression, insert_type_address_space): Add "struct
1843 parser_state" argument.
1844 (increase_expout_size): New function.
1845 * utils.c (do_clear_parser_state): New function.
1846 (make_cleanup_clear_parser_state): Likewise.
1847 * utils.h (make_cleanup_clear_parser_state): New function
1849 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1850 Update calls to write_exp* in order to pass the parser state.
1851 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1852 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1853 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1854 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1855 * stap-probe.c (stap_parse_register_operand): Likewise.
1856 (stap_parse_single_operand): Likewise.
1857 (stap_parse_argument_1): Likewise.
1858 (stap_parse_argument): Use parser state.
1859 * stap-probe.h: Include "parser-defs.h".
1860 (struct stap_parse_info) <pstate>: New field.
1861 * c-exp.y (parse_type): Rewrite to use parser state.
1862 (yyparse): Redefine to c_parse_internal.
1863 (pstate): New global variable.
1864 (parse_number): Add "struct parser_state" argument.
1865 (write_destructor_name): Likewise.
1866 (type_exp): Update calls to write_exp* and similars in order to
1868 (exp1, exp, variable, qualified_name, space_identifier,
1869 typename, typebase): Likewise.
1870 (write_destructor_name, parse_number, lex_one_token,
1871 classify_name, classify_inner_name, c_parse): Add "struct
1872 parser_state" argument. Update function to use parser state.
1873 * c-lang.h: Forward declare "struct parser_state".
1874 (c_parse): Add "struct parser_state" argument.
1875 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1876 (yyparse): Redefine macro to ada_parse_internal.
1877 (pstate): New variable.
1878 (write_int, write_object_renaming, write_var_or_type,
1879 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1880 type_int, type_long, type_long_long, type_float, type_double,
1881 type_long_double, type_char, type_boolean, type_system_address):
1882 Add "struct parser_state" argument.
1883 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1884 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1885 var_or_type, aggregate, aggregate_component_list,
1886 positional_list, others, component_group,
1887 component_associations): Update calls to write_exp* and similar
1888 functions in order to use parser state.
1889 (ada_parse, write_var_from_sym, write_int,
1890 write_exp_op_with_string, write_object_renaming,
1891 find_primitive_type, write_selectors, write_ambiguous_var,
1892 write_var_or_type, write_name_assoc, type_int, type_long,
1893 type_long_long, type_float, type_double, type_long_double,
1894 type_char, type_boolean, type_system_address): Add "struct
1895 parser_state" argument. Adjust function to use parser state.
1896 * ada-lang.c (parse): Likewise.
1897 * ada-lang.h: Forward declare "struct parser_state".
1898 (ada_parse): Add "struct parser_state" argument.
1899 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1900 calls to both functions.
1901 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1903 (yyparse): Redefine macro to f_parse_internal.
1904 (pstate): New variable.
1905 (parse_number): Add "struct parser_state" argument.
1906 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1907 and similars in order to use parser state.
1908 (parse_number): Adjust code to use parser state.
1910 (f_parse): New function.
1911 * f-lang.h: Forward declare "struct parser_state".
1912 (f_parse): Add "struct parser_state" argument.
1913 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1915 (yyparse): Redefine macro for java_parse_internal.
1916 (pstate): New variable.
1917 (push_expression_name, push_expression_name, insert_exp): Add
1918 "struct parser_state" argument.
1919 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1920 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1921 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1922 PostIncrementExpression, PostDecrementExpression,
1923 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1924 UnaryExpressionNotPlusMinus, CastExpression,
1925 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1926 RelationalExpression, EqualityExpression, AndExpression,
1927 ExclusiveOrExpression, InclusiveOrExpression,
1928 ConditionalAndExpression, ConditionalOrExpression,
1929 ConditionalExpression, Assignment, LeftHandSide): Update
1930 calls to write_exp* and similars in order to use parser state.
1931 (parse_number): Ajust code to use parser state.
1933 (java_parse): New function.
1934 (push_variable): Add "struct parser_state" argument. Adjust
1935 code to user parser state.
1936 (push_fieldnames, push_qualified_expression_name,
1937 push_expression_name, insert_exp): Likewise.
1938 * jv-lang.h: Forward declare "struct parser_state".
1939 (java_parse): Add "struct parser_state" argument.
1940 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1942 (yyparse): Redefine macro to m2_parse_internal.
1943 (pstate): New variable.
1944 (type_exp, exp, fblock, variable, type): Update calls to
1945 write_exp* and similars to use parser state.
1947 (m2_parse): New function.
1948 * m2-lang.h: Forward declare "struct parser_state".
1949 (m2_parse): Add "struct parser_state" argument.
1950 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1951 * objc-lang.h: Forward declare "struct parser_state".
1952 (end_msglist): Add "struct parser_state" argument.
1953 * p-exp.y (parse_type): Rewrite macro to use parser state.
1954 (yyparse): Redefine macro to pascal_parse_internal.
1955 (pstate): New variable.
1956 (parse_number): Add "struct parser_state" argument.
1957 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1958 write_exp* and similars in order to use parser state.
1959 (parse_number, yylex): Adjust code to use parser state.
1960 (pascal_parse): New function.
1961 * p-lang.h: Forward declare "struct parser_state".
1962 (pascal_parse): Add "struct parser_state" argument.
1963 * go-exp.y (parse_type): Rewrite macro to use parser state.
1964 (yyparse): Redefine macro to go_parse_internal.
1965 (pstate): New variable.
1966 (parse_number): Add "struct parser_state" argument.
1967 (type_exp, exp1, exp, variable, type): Update calls to
1968 write_exp* and similars in order to use parser state.
1969 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1970 to use parser state.
1971 (go_parse): Likewise.
1972 * go-lang.h: Forward declare "struct parser_state".
1973 (go_parse): Add "struct parser_state" argument.
1975 2014-03-27 Doug Evans <dje@google.com>
1977 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1979 2014-03-27 Doug Evans <dje@google.com>
1981 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1982 Remove argument abbrev_section. All callers updated.
1984 2014-03-27 Doug Evans <dje@google.com>
1986 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1987 addr_base, ranges_base.
1989 2014-03-26 Keith Seitz <keiths@redhat.com>
1991 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1992 types, not VAR_DOMAIN.
1994 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1996 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1998 * features/nios2-linux.c: Regenerated.
1999 * features/nios2.c: Regenerated.
2001 2014-03-25 Pedro Alves <palves@redhat.com>
2003 * cli/cli-script.c (script_from_file): Force the interpreter to
2006 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2008 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2009 small stack allocation.
2011 2014-03-24 Tristan Gingold <gingold@adacore.com>
2013 * darwin-nat.c (exc_server): Remove unused prototype.
2014 (darwin_dump_message): Correctly display data on x86_64.
2015 (darwin_encode_reply): Fix style.
2016 Add comments and fix indentation.
2018 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2020 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2022 2014-03-22 Doug Evans <xdje42@gmail.com>
2024 * infcmd.c: Whitespace fixes.
2025 (interrupt_command): Merge two function comments into one.
2027 2014-03-22 Doug Evans <xdje42@gmail.com>
2029 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2032 2014-03-22 Yao Qi <yao@codesourcery.com>
2034 * remote.c (target_read_live_memory): Remove.
2035 (memory_xfer_live_readonly_partial): Rename it to
2036 remote_xfer_live_readonly_partial. Remove argument 'object'.
2037 All callers updated. Call remote_read_bytes_1
2038 instead of target_read_live_memory.
2039 * tracepoint.c (set_traceframe_number): Remove.
2040 (make_cleanup_restore_traceframe_number): Likewise .
2041 * tracepoint.h (set_traceframe_number): Remove declaration.
2042 (make_cleanup_restore_traceframe_number): Likewise.
2044 2014-03-22 Yao Qi <yao@codesourcery.com>
2046 * remote.c (remote_read_bytes): Move code on reading from the
2048 (remote_read_bytes_1): ... here. New function.
2050 2014-03-22 Yao Qi <yao@codesourcery.com>
2052 * ctf.c (ctf_xfer_partial): Check the return value of
2053 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2054 return TARGET_XFER_UNAVAILABLE.
2055 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2056 * target.c (target_read_live_memory): Move it to remote.c.
2057 (memory_xfer_live_readonly_partial): Likewise.
2058 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2059 * remote.c (target_read_live_memory): Moved from target.c.
2060 (memory_xfer_live_readonly_partial): Likewise.
2061 (remote_read_bytes): Factored out from
2062 memory_xfer_partial_1.
2064 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2066 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2069 2014-03-21 Pedro Alves <palves@redhat.com>
2071 * infrun.c (normal_stop): Extend comment.
2073 2014-03-21 Hui Zhu <hui@codesourcery.com>
2074 Pedro Alves <palves@redhat.com>
2076 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2078 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2079 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2080 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2082 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2084 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2085 `z' formatted output modifier.
2087 2014-03-20 Tom Tromey <tromey@redhat.com>
2088 Sergio Durigan Junior <sergiodj@redhat.com>
2090 * probe.c (parse_probes): Turn assert into an ordinary error.
2091 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2092 exceptions when parsing probes. Rearrange the code for clarity.
2094 2014-03-20 Tom Tromey <tromey@redhat.com>
2097 * top.c (execute_command): Only dispatch events if the command
2100 2014-03-20 Tom Tromey <tromey@redhat.com>
2103 * infcall.c: Include event-top.h.
2104 (run_inferior_call): Call async_disable_stdin if needed.
2106 2014-03-20 Pedro Alves <palves@redhat.com>
2108 * infrun.c (prepare_to_proceed): Delete.
2109 (thread_still_needs_step_over): New function.
2110 (find_thread_needs_step_over): New function.
2111 (proceed): If the current thread needs a step-over, set its
2112 steping_over_breakpoint flag. Adjust to use
2113 find_thread_needs_step_over instead of prepare_to_proceed.
2114 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2115 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2117 (switch_back_to_stepped_thread): Step over breakpoints of all
2118 threads not the stepping thread, before switching back to the
2121 2014-03-20 Pedro Alves <palves@redhat.com>
2123 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2125 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2126 * infrun.c (saved_singlestep_ptid)
2127 (stepping_past_singlestep_breakpoint): Delete.
2128 (resume): Remove stepping_past_singlestep_breakpoint handling.
2129 (proceed): Store the prev_pc of the stepping thread too.
2130 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2132 (enum infwait_states): Delete infwait_thread_hop_state.
2133 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2135 (handle_inferior_event): Adjust.
2136 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2137 handling and the thread-hop code. Before removing single-step
2138 breakpoints, check whether the thread hit a single-step breakpoint
2139 of another thread. If it did, the trap is not a random signal.
2140 (switch_back_to_stepped_thread): If the event thread hit a
2141 single-step breakpoint, unblock it before switching to the
2142 stepping thread. Handle the case of the stepped thread having
2144 (keep_going): Handle the case of the current thread moving past a
2145 single-step breakpoint.
2147 2014-03-20 Pedro Alves <palves@redhat.com>
2150 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2151 are being stepped over.
2152 (breakpoint_address_match): Make extern.
2153 * breakpoint.h (breakpoint_address_match): New declaration.
2154 * inferior.h (stepping_past_instruction_at): New declaration.
2155 * infrun.c (struct step_over_info): New type.
2156 (step_over_info): New global.
2157 (set_step_over_info, clear_step_over_info)
2158 (stepping_past_instruction_at): New functions.
2159 (handle_inferior_event): Clear the step-over info when
2160 trap_expected is cleared.
2161 (resume): Remove now stale comment.
2162 (clear_proceed_status): Clear step-over info.
2163 (proceed): Adjust step-over handling to set or clear the step-over
2164 info instead of removing all breakpoints.
2165 (handle_signal_stop): When setting up a thread-hop, don't remove
2167 (stop_stepping): Clear step-over info.
2168 (keep_going): Adjust step-over handling to set or clear step-over
2169 info and then always inserting breakpoints, instead of removing
2170 all breakpoints when stepping over one.
2172 2014-03-20 Pedro Alves <palves@redhat.com>
2174 * infrun.c (previous_inferior_ptid): Adjust comment.
2175 (deferred_step_ptid): Delete.
2176 (infrun_thread_ptid_changed, prepare_to_proceed)
2177 (init_wait_for_inferior): Adjust.
2178 (handle_signal_stop): Delete deferred_step_ptid handling.
2180 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2183 * defs.h (sync_quit_force_run): New declaration.
2184 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2185 * event-top.c (async_sigterm_handler): New declaration.
2186 (async_sigterm_token): New variable.
2187 (async_init_signals): Create also async_sigterm_token.
2188 (async_sigterm_handler): New function.
2189 (sync_quit_force_run): New variable.
2190 (handle_sigterm): Replace quit_force call by other calls.
2191 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2193 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2195 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2196 offset into SPE pseudo registers.
2198 2014-03-18 Pedro Alves <palves@redhat.com>
2201 * inferior.h (print_stop_event): Declare.
2202 * infrun.c (print_stop_event): New, factored out from ...
2203 (normal_stop): ... this.
2204 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2205 of bpstat_print/print_stack_frame.
2207 2014-03-17 Tom Tromey <tromey@redhat.com>
2209 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2211 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2213 * ada-lang.c (decode_constrained_packed_array): Perform a
2214 minimal coercion for reference with coerce_ref instead of
2217 2014-03-17 Tristan Gingold <gingold@adacore.com>
2219 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2220 (darwin_solib_create_inferior_hook): Emit a warning if version
2223 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2225 * python/py-value.c (get_field_flag): Cast flag_name argument to
2226 PyObject_GetAttrString to support Python 2.4.
2228 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2230 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2231 (Global Maintainers): Remove Jan Kratochvil.
2233 2014-03-14 Pedro Alves <palves@redhat.com>
2235 * inferior.h (terminal_ours_for_output): Rename to ...
2236 (child_terminal_ours_for_output): ... this.
2237 (terminal_save_ours): Rename to ...
2238 (child_terminal_save_ours): ... this.
2239 (terminal_ours): Rename to ...
2240 (child_terminal_ours): ... this.
2241 (terminal_inferior): Rename to ...
2242 (child_terminal_inferior): ... this.
2243 (terminal_init_inferior): Rename to ...
2244 (child_terminal_init_inferior): ... this.
2245 (terminal_init_inferior_with_pgrp): Rename to ...
2246 (child_terminal_init_inferior_with_pgrp): ... this.
2247 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2248 (child_terminal_init_with_pgrp): ... this.
2249 (terminal_save_ours): Rename to ...
2250 (child_terminal_save_ours): ... this.
2251 (terminal_init_inferior): Rename to ...
2252 (child_terminal_init): ... this. Adjust.
2253 (terminal_inferior): Rename to ...
2254 (child_terminal_inferior): ... this.
2255 (terminal_ours_for_output): Rename to ...
2256 (child_terminal_ours_for_output): ... this. Adjust.
2257 (terminal_ours): Rename to ...
2258 (child_terminal_ours): ... this.
2259 (terminal_ours_1): Rename to ...
2260 (child_terminal_ours_1): ... this. Adjust.
2261 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2262 * windows-nat.c (do_initial_windows_stuff): Adjust.
2263 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2264 (gnu_terminal_init): ... this. Adjust.
2265 (gnu_target): Adjust.
2266 * inf-child.c (inf_child_target): Adjust.
2268 2014-03-13 Doug Evans <xdje42@gmail.com>
2271 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2274 2014-03-13 Doug Evans <xdje42@gmail.com>
2276 * value.c (record_latest_value): Call release_value_or_incref
2277 instead of release_value.
2279 2014-03-13 Pedro Alves <palves@redhat.com>
2281 * procfs.c (procfs_target): Don't override to_shortname,
2282 to_longname or to_doc.
2284 2014-03-13 Pedro Alves <palves@redhat.com>
2286 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2287 Unix in user visible strings.
2289 2014-03-12 Stan Shebs <stan@codesourcery.com>
2291 * gdbtypes.h: Annotate comments for Doxygen, add a page
2292 block comment with some general info.
2294 2014-03-12 Pedro Alves <palves@redhat.com>
2296 * infcmd.c (prepare_execution_command): New function, factored out
2297 from several execution commands.
2298 (run_command_1, continue_command, step_1, jump_command)
2299 (signal_command, until_command, advance_command, finish_command)
2300 (attach_command): Use prepare_execution_command.
2302 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2304 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2307 (struct arm_linux_thread_points): Removed.
2308 (struct arm_linux_process_info): New.
2309 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2310 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2311 (arm_linux_find_breakpoints_by_tid): Removed.
2312 (struct arch_lwp_info): New.
2313 (arm_linux_find_process_pid): New functions.
2314 (arm_linux_add_process): New functions.
2315 (arm_linux_process_info_get): New functions.
2316 (arm_linux_forget_process): New function.
2317 (arm_linux_get_debug_reg_state): New function.
2318 (struct update_registers_data): New.
2319 (update_registers_callback): New function.
2320 (arm_linux_insert_hw_breakpoint1): Updated.
2321 (arm_linux_remove_hw_breakpoint1): Updated.
2322 (arm_linux_insert_hw_breakpoint): Updated.
2323 (arm_linux_remove_hw_breakpoint): Updated.
2324 (arm_linux_insert_watchpoint): Updated.
2325 (arm_linux_remove_watchpoint): Updated.
2326 (arm_linux_new_thread): Updated.
2327 (arm_linux_prepare_to_resume): New function.
2328 (arm_linux_new_fork): New function.
2329 (_initialize_arm_linux_nat): Updated.
2331 2014-03-12 Pedro Alves <palves@redhat.com>
2333 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2335 2014-03-12 Tom Tromey <tromey@redhat.com>
2337 * inf-child.c (return_zero): New function.
2338 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2339 * aix-thread.c (aix_thread_inferior_created): New function.
2340 (aix_thread_attach): Remove.
2341 (init_aix_thread_ops): Don't set to_attach.
2342 (_initialize_aix_thread): Register inferior_created observer.
2343 * corelow.c (init_core_ops): Don't set to_attach or
2345 * exec.c (init_exec_ops): Don't set to_attach or
2347 * infcmd.c (run_command_1): Use find_run_target. Make direct
2349 (attach_command): Use find_attach_target. Make direct target
2351 * record-btrace.c (init_record_btrace_ops): Don't set
2353 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2355 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2356 set to_create_inferior.
2357 * target.c (complete_target_initialization): Add assertion.
2358 (target_create_inferior): Remove.
2359 (find_default_attach, find_default_create_inferior): Remove.
2360 (find_attach_target, find_run_target): New functions.
2361 (find_default_is_async_p, find_default_can_async_p)
2362 (target_supports_non_stop, target_attach): Remove.
2363 (init_dummy_target): Don't set to_create_inferior or
2364 to_supports_non_stop.
2365 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2366 TARGET_DEFAULT_FUNC.
2367 <to_create_inferior>: Add comment.
2368 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2369 TARGET_DEFAULT_RETURN.
2370 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2371 (find_attach_target, find_run_target): Declare.
2372 (target_create_inferior): Remove.
2373 (target_has_execution_1): Update comment.
2374 (target_supports_non_stop): Remove.
2375 * target-delegates.c: Rebuild.
2377 2014-03-12 Pedro Alves <palves@redhat.com>
2379 * inf-child.h: Update comment to not mention Unix.
2381 2014-03-12 Pedro Alves <palves@redhat.com>
2383 * inf-child.c: Update top comment to not mention Unix. Add
2384 generic comment describing how this target is meant to be used.
2385 (inf_child_post_attach, inf_child_post_startup_inferior)
2386 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2389 2014-03-12 Pedro Alves <palves@redhat.com>
2391 * nto-procfs.c: Include inf-child.h.
2392 (procfs_ops): Delete global.
2393 (procfs_can_run): Delete method.
2394 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2395 target pointer instead of referencing procfs_ops.
2396 (procfs_prepare_to_store): Delete.
2397 (init_procfs_ops): Delete function.
2398 (procfs_target): New function, based on init_procfs_ops, but
2399 inherit inf_child_target.
2400 (_initialize_procfs): Use procfs_target.
2402 2014-03-12 Pedro Alves <palves@redhat.com>
2404 * windows-nat.c: Include inf-child.h.
2405 (windows_ops): Delete global.
2406 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2408 (init_windows_ops): Delete function.
2409 (windows_target): New function, based on init_windows_ops, but
2410 inherit inf_child_target.
2411 (_initialize_windows_nat): Use windows_target. Install x86
2412 specific target methods here.
2414 2014-03-10 Doug Evans <xdje42@gmail.com>
2416 * guile/guile.c (call_initialize_gdb_module): New function.
2417 (initialize_guile): Replace call to scm_init_guile with call to
2420 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2422 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2423 in call to TYPE_CODE macro.
2425 2014-03-10 Jerome Guitton <guitton@adacore.com>
2427 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2428 Resolve tagged types to full view.
2430 2014-03-10 Hui Zhu <hui@codesourcery.com>
2432 * target.h (target_insert_breakpoint): Remove "hardware" from its
2435 2014-03-07 Doug Evans <dje@google.com>
2437 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2439 2014-03-07 Doug Evans <dje@google.com>
2441 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2442 Remove unused local comp_dir_attr. Assert exactly one of
2443 stub_comp_unit_die, stub_comp_dir is non-NULL.
2445 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2447 * target.h (complete_target_initialization, add_target):
2450 2014-03-07 Pedro Alves <palves@redhat.com>
2452 * go32-nat.c: Include inf-child.h.
2453 (go32_ops): Delete global.
2454 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2456 (go32_create_inferior): Push the passed in target pointer instead
2457 of referencing go32_ops.
2458 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2459 (go32_target): New function, based on init_go32_ops, but inherit
2461 (_initialize_go32_nat): Use go32_target. Move parts of
2464 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2466 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2467 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2468 SYMBOL_VALUE_ADDRESS.
2469 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2471 2014-03-06 Yao Qi <yao@codesourcery.com>
2473 * breakpoint.c (get_tracepoint_by_number): Remove argument
2474 optional_p. All callers updated. Adjust comments. Update
2476 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2478 2014-03-06 Yao Qi <yao@codesourcery.com>
2480 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2481 early if get_number returns zero. Use 'p' instead of 'args'.
2483 2014-03-06 Yao Qi <yao@codesourcery.com>
2485 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2488 2014-03-06 Yao Qi <yao@codesourcery.com>
2490 PR breakpoints/16508
2491 * tracepoint.c (check_trace_running): New function.
2492 (trace_find_command): Move code to check_trace_running and
2493 call check_trace_running.
2494 (trace_find_pc_command): Likewise.
2495 (trace_find_tracepoint_command): Likewise.
2496 (trace_find_line_command): Likewise.
2497 (trace_find_range_command): Likewise.
2498 * tracepoint.h (check_trace_running): Likewise.
2499 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2501 2014-03-06 Yao Qi <yao@codesourcery.com>
2503 * target.h (struct target_ops) <to_traceframe_info>: Use
2504 TARGET_DEFAULT_NORETURN (tcomplain ()).
2505 * target-delegates.c: Regenerated.
2507 2014-03-05 Pedro Alves <palves@redhat.com>
2510 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2511 void. Update comment.
2512 (dcache_xfer_memory): Delete.
2513 (dcache_read_memory_partial): New, based on the read bits of
2515 (dcache_update): Add status parameter. Use ULONGEST for len, and
2516 adjust. Discard cache lines if the reason for the update was
2518 * dcache.h (dcache_xfer_memory): Delete declaration.
2519 (dcache_read_memory_partial): New declaration.
2520 (dcache_update): Update prototype.
2521 * target.c (raw_memory_xfer_partial): Update the dcache here.
2522 (memory_xfer_partial_1): Don't handle dcache writes here.
2524 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2526 * remote-sim.c (gdbsim_load): Add const to prog.
2528 2014-03-03 Tom Tromey <tromey@redhat.com>
2530 * elfread.c (probe_key): Change to bfd_data.
2531 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2532 now per-BFD, not per-objfile.
2533 * stap-probe.c (stap_probe_destroy): Update comment.
2534 (handle_stap_probe): Allocate on the per-BFD obstack.
2536 2014-03-03 Tom Tromey <tromey@redhat.com>
2538 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2539 * breakpoint.c (create_longjmp_master_breakpoint): Use
2541 (add_location_to_breakpoint, bkpt_probe_insert_location)
2542 (bkpt_probe_remove_location): Update.
2543 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2544 * elfread.c (elf_symfile_relocate_probe): Remove.
2545 (elf_probe_fns): Update.
2546 (insert_exception_resume_breakpoint): Change type of "probe"
2547 parameter to bound_probe.
2548 (check_exception_resume): Update.
2549 * objfiles.c (objfile_relocate1): Don't relocate probes.
2550 * probe.c (bound_probe_s): New typedef.
2551 (parse_probes): Use get_probe_address. Set sal's objfile.
2552 (find_probe_by_pc): Return a bound_probe.
2553 (collect_probes): Return a VEC(bound_probe_s).
2554 (compare_probes): Update.
2555 (gen_ui_out_table_header_info): Change type of "probes"
2557 (info_probes_for_ops): Update.
2558 (get_probe_address): New function.
2559 (probe_safe_evaluate_at_pc): Update.
2560 * probe.h (struct probe_ops) <get_probe_address>: New field.
2561 <set_semaphore, clear_semaphore>: Add objfile parameter.
2562 (struct probe) <objfile>: Remove field.
2564 <address>: Update comment.
2565 (struct bound_probe): New.
2566 (find_probe_by_pc): Return a bound_probe.
2567 (get_probe_address): Declare.
2568 * solib-svr4.c (struct probe_and_action) <address>: New field.
2569 (hash_probe_and_action, equal_probe_and_action): Update.
2570 (register_solib_event_probe): Add address parameter.
2571 (solib_event_probe_at): Update.
2572 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2574 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2575 (stap_get_probe_address): New function.
2576 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2577 (compile_probe_arg): Update.
2578 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2580 (handle_stap_probe): Don't relocate the probe.
2581 (stap_relocate): Remove.
2582 (stap_gen_info_probes_table_values): Update.
2583 (stap_probe_ops): Remove stap_relocate.
2584 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2585 (debug_sym_probe_fns): Update.
2586 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2587 * symtab.c (init_sal): Use memset.
2588 * symtab.h (struct symtab_and_line) <objfile>: New field.
2589 * tracepoint.c (start_tracing, stop_tracing): Update.
2591 2014-03-03 Tom Tromey <tromey@redhat.com>
2593 * probe.h (parse_probes, find_probe_by_pc)
2594 (find_probes_in_objfile): Fix comments.
2596 2014-03-02 Doug Evans <xdje42@gmail.com>
2598 * infrun.c (handle_signal_stop): Replace test for
2599 TARGET_WAITKIND_STOPPED with an assert.
2601 2014-03-02 Doug Evans <xdje42@gmail.com>
2603 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2605 2014-03-02 Doug Evans <xdje42@gmail.com>
2607 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2609 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2611 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2613 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2615 * i386obsd-nat.c: Include "obsd-nat.h".
2616 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2618 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2620 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2622 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2624 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2626 * mips64obsd-nat.c: Include "obsd-nath".
2627 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2629 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2631 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2633 * amd64obsd-nat.c: Include "obsd-nat,h.
2634 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2636 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2638 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2640 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2641 (find_overload_match): Update call to find_oload_champ.
2642 (find_oload_champ_namespace_loop): Likewise
2644 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2646 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2648 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2649 * config/sparc/obsd64.mh: New file.
2650 * sparc64obsd-nat.c: New file.
2652 * obsd-nat.h: New file.
2653 * obsd-nat.c: New file.
2654 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2655 (ALLDEPFILES): Add obsd-nat.c.
2657 2014-02-28 Tom Tromey <tromey@redhat.com>
2659 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2660 * cli-out.h (cli_ui_out_impl): Now const.
2661 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2662 * ui-out.c (struct ui_out) <impl>: Now const.
2663 (default_ui_out_impl): Now const.
2664 (ui_out_new): Make 'impl' parameter const.
2665 * ui-out.h (ui_out_new): Update.
2667 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2669 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2671 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2673 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2675 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2677 Additional PR 8882 fix.
2678 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2680 2014-02-27 Pedro Alves <palves@redhat.com>
2682 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2685 2014-02-27 Pedro Alves <palves@redhat.com>
2688 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2689 * nat/linux-waitpid.c: Include string.h.
2690 (status_to_str): Moved here and made extern.
2691 * nat/linux-waitpid.h (status_to_str): New declaration.
2693 2014-02-27 Hui Zhu <hui@codesourcery.com>
2696 * infrun.c (ptid_match): Move ...
2697 * common/ptid.c (ptid_match): ... here.
2698 * inferior.h (ptid_match): Move ...
2699 * common/ptid.h (ptid_match): ... here.
2701 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2703 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2704 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2707 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2709 * obsd-tdep.c (obsd_auxv_parse): New function.
2710 (obsd_init_abi): Set auxv_parse.
2712 * gdbarch.sh (auxv_parse): New.
2713 * gdbarch.h: Regenerated.
2714 * gdbarch.c: Regenerated.
2715 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2717 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2719 * guile/scm-value.c (gdbscm_history_append_x): New function.
2720 (value_functions): Add it.
2722 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2724 * dwarf2read.c (attr_value_as_address): New function.
2725 (dwarf2_find_base_address, read_call_site_scope): Use
2726 attr_value_as_address in place of DW_ADDR.
2727 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2728 the low and high addresses. Slight rework of the handling
2729 of the high pc being a constant form, and limit it to
2730 DWARF verson 4 or higher.
2731 (dwarf2_record_block_ranges): Likewise.
2732 (read_partial_die): Likewise.
2733 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2735 2014-02-26 Tom Tromey <tromey@redhat.com>
2737 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2739 2014-02-26 Tom Tromey <tromey@redhat.com>
2741 * elfread.c (elf_read_minimal_symbols): Return early if
2742 minimal symbols have already been read. Add "ei" parameter.
2743 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2744 * minsyms.c (prim_record_minimal_symbol_full): Update.
2745 * objfiles.h (struct objstats) <n_minsyms>: Move...
2746 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2747 * symmisc.c (print_objfile_statistics): Update.
2749 2014-02-26 Tom Tromey <tromey@redhat.com>
2751 * elfread.c (elf_read_minimal_symbols): New function, from
2753 (elf_symfile_read): Call it.
2755 2014-02-26 Tom Tromey <tromey@redhat.com>
2757 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2758 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2759 (lookup_minimal_symbol_solib_trampoline)
2760 (lookup_minimal_symbol_by_pc_section_1)
2761 (lookup_minimal_symbol_and_objfile): Update.
2762 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2763 Don't allocate a minimal symbol if minsyms have already been read.
2764 (build_minimal_symbol_hash_tables): Update.
2765 (install_minimal_symbols): Do nothing if minsyms already read.
2766 Use the per-BFD obstack.
2767 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2768 * objfiles.c (allocate_objfile): Call
2769 terminate_minimal_symbol_table later.
2770 (have_minimal_symbols): Update.
2771 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2772 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2773 Move from struct objfile.
2774 <minsyms_read>: New field.
2775 (struct objfile) <msymbols, minimal_symbol_count,
2776 msymbol_hash, msymbol_demangled_hash>: Move.
2777 (ALL_OBJFILE_MSYMBOLS): Update.
2778 * symfile.c (read_symbols): Set minsyms_read.
2779 (reread_symbols): Update.
2780 * symmisc.c (dump_objfile, dump_msymbols): Update.
2782 2014-02-26 Tom Tromey <tromey@redhat.com>
2784 * minsyms.c (msymbols_sort): Remove.
2785 * minsyms.h (msymbols_sort): Remove.
2786 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2787 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2788 * elfread.c (elf_symtab_read): Don't add section offsets.
2789 * xcoffread.c (record_minimal_symbol): Don't add section offset
2790 to minimal symbol address.
2791 * somread.c (text_offset, data_offset): Remove.
2792 (som_symtab_read): Don't add section offsets to minimal symbol
2794 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2795 Don't add section offsets to minimal symbols.
2796 * coffread.c (coff_symtab_read): Don't add section offsets
2797 to minimal symbol addresses.
2798 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2799 to minimal symbol addresses.
2800 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2801 section offset to minimal symbol addresses.
2802 * mdebugread.c (parse_partial_symbols): Don't add section
2803 offset to minimal symbol addresses.
2804 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2805 offset to minimal symbol addresses.
2807 2014-02-26 Tom Tromey <tromey@redhat.com>
2809 * ada-lang.c (ada_main_name): Update.
2810 (ada_add_standard_exceptions): Update.
2811 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2812 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2813 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2814 * auxv.c (ld_so_xfer_auxv): Update.
2815 * avr-tdep.c (avr_scan_prologue): Update.
2816 * ax-gdb.c (gen_var_ref): Update.
2817 * blockframe.c (get_pc_function_start)
2818 (find_pc_partial_function_gnu_ifunc): Update.
2819 * breakpoint.c (create_overlay_event_breakpoint)
2820 (create_longjmp_master_breakpoint)
2821 (create_std_terminate_master_breakpoint)
2822 (create_exception_master_breakpoint): Update.
2823 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2824 * c-valprint.c (c_val_print): Update.
2825 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2826 * common/agent.c (agent_look_up_symbols): Update.
2827 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2828 * dwarf2loc.c (call_site_to_target_addr): Update.
2829 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2830 * elfread.c (elf_gnu_ifunc_record_cache)
2831 (elf_gnu_ifunc_resolve_by_got): Update.
2832 * findvar.c (default_read_var_value): Update.
2833 * frame.c (inside_main_func): Update.
2834 * frv-tdep.c (frv_frame_this_id): Update.
2835 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2836 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2838 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2839 (hppa_hpux_find_dummy_bpaddr): Update.
2840 * hppa-tdep.c (hppa_symbol_address): Update.
2841 * infcmd.c (until_next_command): Update.
2842 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2844 * linespec.c (minsym_found, add_minsym): Update.
2845 * linux-nat.c (get_signo): Update.
2846 * linux-thread-db.c (inferior_has_bug): Update.
2847 * m32c-tdep.c (m32c_return_value)
2848 (m32c_m16c_address_to_pointer): Update.
2849 * m32r-tdep.c (m32r_frame_this_id): Update.
2850 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2851 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2852 * maint.c (maintenance_translate_address): Update.
2853 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2854 (frob_address): New function.
2855 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2856 frob_address. Rename parameter to "pc_in".
2857 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2859 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2861 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2862 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2863 * objc-lang.c (find_objc_msgsend): Update.
2864 * objfiles.c (objfile_relocate1): Update.
2865 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2866 * p-valprint.c (pascal_val_print): Update.
2867 * parse.c (write_exp_msymbol): Update.
2868 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2869 (ppc_elfv2_skip_entrypoint): Update.
2870 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2871 * printcmd.c (build_address_symbolic, msym_info)
2872 (address_info): Update.
2873 * proc-service.c (ps_pglobal_lookup): Update.
2874 * psymtab.c (find_pc_sect_psymtab_closer)
2875 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2876 Change msymbol parameter to bound_minimal_symbol.
2877 * ravenscar-thread.c (get_running_thread_id): Update.
2878 * remote.c (remote_check_symbols): Update.
2879 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2881 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2882 * solib-dsbt.c (lm_base): Update.
2883 * solib-frv.c (lm_base, main_got): Update.
2884 * solib-irix.c (locate_base): Update.
2885 * solib-som.c (som_solib_create_inferior_hook)
2886 (link_map_start): Update.
2887 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2888 * solib-svr4.c (elf_locate_base, enable_break): Update.
2889 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2890 (flush_ea_cache): Update.
2891 * stabsread.c (define_symbol, scan_file_globals): Update.
2892 * stack.c (find_frame_funname): Update.
2893 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2894 (debug_qf_find_pc_sect_symtab): Update.
2895 * symfile.c (simple_read_overlay_table)
2896 (simple_overlay_update): Update.
2897 * symfile.h (struct quick_symbol_functions)
2898 <find_pc_sect_symtab>: Change type of msymbol to
2899 bound_minimal_symbol.
2900 * symmisc.c (dump_msymbols): Update.
2901 * symtab.c (find_pc_sect_symtab_via_partial)
2902 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2903 (search_symbols, print_msymbol_info): Update.
2904 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2905 (MSYMBOL_VALUE_ADDRESS): Redefine.
2906 (BMSYMBOL_VALUE_ADDRESS): New macro.
2907 * tracepoint.c (scope_info): Update.
2908 * tui/tui-disasm.c (tui_find_disassembly_address)
2909 (tui_get_begin_asm_address): Update.
2910 * valops.c (find_function_in_inferior): Update.
2911 * value.c (value_static_field, value_fn_field): Update.
2913 2014-02-26 Tom Tromey <tromey@redhat.com>
2915 * ada-lang.c (ada_update_initial_language): Update.
2916 (ada_main_name, ada_has_this_exception_support): Update.
2917 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2918 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2919 * arm-tdep.c (arm_skip_stub): Update.
2920 * auxv.c (ld_so_xfer_auxv): Update.
2921 * avr-tdep.c (avr_scan_prologue): Update.
2922 * ax-gdb.c (gen_var_ref): Update.
2923 * breakpoint.c (struct breakpoint_objfile_data)
2924 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2925 type to bound_minimal_symbol.
2926 (create_overlay_event_breakpoint)
2927 (create_longjmp_master_breakpoint)
2928 (create_std_terminate_master_breakpoint)
2929 (create_exception_master_breakpoint): Update.
2930 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2931 * c-exp.y (classify_name): Update.
2932 * coffread.c (coff_symfile_read): Update.
2933 * common/agent.c (agent_look_up_symbols): Update.
2934 * d-lang.c (d_main_name): Update.
2935 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2936 * dec-thread.c (enable_dec_thread): Update.
2937 * dwarf2loc.c (call_site_to_target_addr): Update.
2938 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2939 * eval.c (evaluate_subexp_standard): Update.
2940 * findvar.c (struct minsym_lookup_data) <result>: Change type
2941 to bound_minimal_symbol.
2943 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2944 * frame.c (inside_main_func): Update.
2945 * frv-tdep.c (frv_frame_this_id): Update.
2946 * gcore.c (call_target_sbrk): Update.
2947 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2948 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2950 * go-lang.c (go_main_name): Update.
2951 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2952 (hppa_hpux_find_import_stub_for_addr): Update.
2953 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2954 Update. Change return type.
2955 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2957 * jit.c (jit_breakpoint_re_set_internal): Update.
2958 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2960 * linux-nat.c (get_signo): Update.
2961 * linux-thread-db.c (inferior_has_bug): Update
2962 * m32c-tdep.c (m32c_return_value)
2963 (m32c_m16c_address_to_pointer): Update.
2964 * m32r-tdep.c (m32r_frame_this_id): Update.
2965 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2966 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2967 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2968 lookup_minimal_symbol. Change return type.
2969 (lookup_minimal_symbol): Remove.
2970 (lookup_bound_minimal_symbol): Update.
2971 (lookup_minimal_symbol_text): Change return type.
2972 (lookup_minimal_symbol_solib_trampoline): Change return type.
2973 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2974 (lookup_minimal_symbol_solib_trampoline): Change return type.
2975 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2976 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2977 (value_nsstring, find_imps): Update.
2978 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2979 * p-lang.c (pascal_main_name): Update.
2980 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2981 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2982 * proc-service.c (ps_pglobal_lookup): Update.
2983 * ravenscar-thread.c (get_running_thread_msymbol): Change
2985 (has_ravenscar_runtime, get_running_thread_id): Update.
2986 * remote.c (remote_check_symbols): Update.
2987 * sol-thread.c (ps_pglobal_lookup): Update.
2988 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2989 * solib-dsbt.c (lm_base): Update.
2990 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2992 * solib-irix.c (locate_base): Update.
2993 * solib-som.c (som_solib_create_inferior_hook)
2994 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2996 * solib-spu.c (spu_enable_break): Update.
2997 * solib-svr4.c (elf_locate_base, enable_break): Update.
2998 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2999 (flush_ea_cache): Update.
3000 * stabsread.c (define_symbol): Update.
3001 * symfile.c (simple_read_overlay_table): Update.
3002 * symtab.c (find_pc_sect_line): Update.
3003 * tracepoint.c (scope_info): Update.
3004 * tui-disasm.c (tui_get_begin_asm_address): Update.
3005 * value.c (value_static_field): Update.
3007 2014-02-26 Tom Tromey <tromey@redhat.com>
3009 * minsyms.c (prim_record_minimal_symbol_full): Use
3010 SET_MSYMBOL_VALUE_ADDRESS.
3011 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3012 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3013 SET_MSYMBOL_VALUE_ADDRESS.
3014 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3015 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3017 2014-02-26 Tom Tromey <tromey@redhat.com>
3019 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3020 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3021 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3022 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3023 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3024 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3025 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3026 * ada-lang.c (ada_main_name): Update.
3027 (ada_lookup_simple_minsym): Update.
3028 (ada_make_symbol_completion_list): Update.
3029 (ada_add_standard_exceptions): Update.
3030 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3031 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3032 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3033 * arm-tdep.c (skip_prologue_function): Update.
3034 (arm_skip_stack_protector, arm_skip_stub): Update.
3035 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3036 (arm_wince_skip_main_prologue): Update.
3037 * auxv.c (ld_so_xfer_auxv): Update.
3038 * avr-tdep.c (avr_scan_prologue): Update.
3039 * ax-gdb.c (gen_var_ref): Update.
3040 * block.c (call_site_for_pc): Update.
3041 * blockframe.c (get_pc_function_start): Update.
3042 (find_pc_partial_function_gnu_ifunc): Update.
3043 * breakpoint.c (create_overlay_event_breakpoint): Update.
3044 (create_longjmp_master_breakpoint): Update.
3045 (create_std_terminate_master_breakpoint): Update.
3046 (create_exception_master_breakpoint): Update.
3047 (resolve_sal_pc): Update.
3048 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3049 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3051 * c-valprint.c (c_val_print): Update.
3052 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3053 * coffread.c (coff_symfile_read): Update.
3054 * common/agent.c (agent_look_up_symbols): Update.
3055 * dbxread.c (find_stab_function_addr): Update.
3056 (end_psymtab): Update.
3057 * dwarf2loc.c (call_site_to_target_addr): Update.
3058 (func_verify_no_selftailcall): Update.
3059 (tailcall_dump): Update.
3060 (call_site_find_chain_1): Update.
3061 (dwarf_expr_reg_to_entry_parameter): Update.
3062 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3063 (elf_gnu_ifunc_resolve_by_got): Update.
3064 * f-valprint.c (info_common_command): Update.
3065 * findvar.c (read_var_value): Update.
3066 * frame.c (get_prev_frame_1): Update.
3067 (inside_main_func): Update.
3068 * frv-tdep.c (frv_skip_main_prologue): Update.
3069 (frv_frame_this_id): Update.
3070 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3071 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3072 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3073 (gnuv3_skip_trampoline): Update.
3074 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3075 (hppa64_hpux_in_solib_call_trampoline): Update.
3076 (hppa_hpux_skip_trampoline_code): Update.
3077 (hppa64_hpux_search_dummy_call_sequence): Update.
3078 (hppa_hpux_find_import_stub_for_addr): Update.
3079 (hppa_hpux_find_dummy_bpaddr): Update.
3080 * hppa-tdep.c (hppa_symbol_address)
3081 (hppa_lookup_stub_minimal_symbol): Update.
3082 * i386-tdep.c (i386_skip_main_prologue): Update.
3083 (i386_pe_skip_trampoline_code): Update.
3084 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3085 * infcall.c (get_function_name): Update.
3086 * infcmd.c (until_next_command): Update.
3087 * jit.c (jit_breakpoint_re_set_internal): Update.
3088 (jit_inferior_init): Update.
3089 * linespec.c (minsym_found): Update.
3090 (add_minsym): Update.
3091 * linux-fork.c (info_checkpoints_command): Update.
3092 * linux-nat.c (get_signo): Update.
3093 * linux-thread-db.c (inferior_has_bug): Update.
3094 * m32c-tdep.c (m32c_return_value): Update.
3095 (m32c_m16c_address_to_pointer): Update.
3096 (m32c_m16c_pointer_to_address): Update.
3097 * m32r-tdep.c (m32r_frame_this_id): Update.
3098 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3099 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3100 * maint.c (maintenance_translate_address): Update.
3101 * minsyms.c (add_minsym_to_hash_table): Update.
3102 (add_minsym_to_demangled_hash_table): Update.
3103 (msymbol_objfile): Update.
3104 (lookup_minimal_symbol): Update.
3105 (iterate_over_minimal_symbols): Update.
3106 (lookup_minimal_symbol_text): Update.
3107 (lookup_minimal_symbol_by_pc_name): Update.
3108 (lookup_minimal_symbol_solib_trampoline): Update.
3109 (lookup_minimal_symbol_by_pc_section_1): Update.
3110 (lookup_minimal_symbol_and_objfile): Update.
3111 (prim_record_minimal_symbol_full): Update.
3112 (compare_minimal_symbols): Update.
3113 (compact_minimal_symbols): Update.
3114 (build_minimal_symbol_hash_tables): Update.
3115 (install_minimal_symbols): Update.
3116 (terminate_minimal_symbol_table): Update.
3117 (find_solib_trampoline_target): Update.
3118 (minimal_symbol_upper_bound): Update.
3119 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3120 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3121 (mips_skip_pic_trampoline_code): Update.
3122 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3123 * objc-lang.c (selectors_info): Update.
3124 (classes_info): Update.
3125 (find_methods): Update.
3126 (find_imps): Update.
3127 (find_objc_msgsend): Update.
3128 * objfiles.c (objfile_relocate1): Update.
3129 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3130 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3131 * p-valprint.c (pascal_val_print): Update.
3132 * parse.c (write_exp_msymbol): Update.
3133 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3134 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3135 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3136 * printcmd.c (build_address_symbolic): Update.
3138 (address_info): Update.
3139 * proc-service.c (ps_pglobal_lookup): Update.
3140 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3141 (find_pc_sect_psymtab): Update.
3142 * python/py-framefilter.c (py_print_frame): Update.
3143 * ravenscar-thread.c (get_running_thread_id): Update.
3144 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3146 * remote.c (remote_check_symbols): Update.
3147 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3148 (rs6000_skip_trampoline_code): Update.
3149 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3150 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3151 * solib-dsbt.c (lm_base): Update.
3152 * solib-frv.c (lm_base): Update.
3154 * solib-irix.c (locate_base): Update.
3155 * solib-som.c (som_solib_create_inferior_hook): Update.
3156 (som_solib_desire_dynamic_linker_symbols): Update.
3157 (link_map_start): Update.
3158 * solib-spu.c (spu_enable_break): Update.
3159 (ocl_enable_break): Update.
3160 * solib-svr4.c (elf_locate_base): Update.
3161 (enable_break): Update.
3162 * spu-tdep.c (spu_get_overlay_table): Update.
3163 (spu_catch_start): Update.
3164 (flush_ea_cache): Update.
3165 * stabsread.c (define_symbol): Update.
3166 (scan_file_globals): Update.
3167 * stack.c (find_frame_funname): Update.
3168 (frame_info): Update.
3169 * symfile.c (simple_read_overlay_table): Update.
3170 (simple_overlay_update): Update.
3171 * symmisc.c (dump_msymbols): Update.
3172 * symtab.c (fixup_section): Update.
3173 (find_pc_sect_line): Update.
3174 (skip_prologue_sal): Update.
3175 (search_symbols): Update.
3176 (print_msymbol_info): Update.
3177 (rbreak_command): Update.
3178 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3179 (completion_list_objc_symbol): Update.
3180 (default_make_symbol_completion_list_break_on): Update.
3181 * tracepoint.c (scope_info): Update.
3182 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3183 (tui_get_begin_asm_address): Update.
3184 * valops.c (find_function_in_inferior): Update.
3185 * value.c (value_static_field): Update.
3186 (value_fn_field): Update.
3188 2014-02-26 Tom Tromey <tromey@redhat.com>
3190 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3191 bound minimal symbols. Move code that knows about minsym
3193 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3195 * minsyms.h (minimal_symbol_upper_bound): Declare.
3196 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3197 minimal_symbol_upper_bound.
3199 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3201 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3202 Use the type's name if its basic type does not have a tag.
3204 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3206 * dwarf2read.c (read_subrange_type): Add comment.
3208 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3210 * dwarf2read.c (update_enumeration_type_from_children): New
3211 function, mostly extracted from process_structure_scope.
3212 (read_enumeration_type): Call update_enumeration_type_from_children.
3213 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3214 and flag_flag_enum fields.
3216 2014-02-26 Pedro Alves <palves@redhat.com>
3218 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3219 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3220 to_xfer_partial method.
3222 2014-02-26 Pedro Alves <palves@redhat.com>
3224 * target.c (complete_target_initialization): Don't install
3225 default_xfer_partial as to_xfer_partial hook.
3227 (update_current_target): Don't INHERIT nor de_fault
3228 deprecated_xfer_memory. Delete de_fault macro.
3229 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3230 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3231 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3234 2014-02-26 Pedro Alves <palves@redhat.com>
3236 * go32-nat.c (my_write_child): New function.
3237 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3238 (go32_xfer_partial): New function.
3239 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3240 Instead install a to_xfer_partial hook.
3242 2014-02-26 Pedro Alves <palves@redhat.com>
3244 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3245 to_xfer_partial helper. Rewrite.
3246 (procfs_xfer_partial): New function.
3247 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3248 Install a to_xfer_partial hook.
3250 2014-02-26 Pedro Alves <palves@redhat.com>
3252 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3253 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3254 (m32r_xfer_partial): New function.
3255 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3256 Install a to_xfer_partial hook.
3258 2014-02-26 Pedro Alves <palves@redhat.com>
3260 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3262 (mips_xfer_partial): New function.
3263 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3264 hook. Install a to_xfer_partial hook.
3266 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3268 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3269 * gdbtypes.c (create_array_type_with_stride): New function,
3270 renaming create_array_type, but with an added parameter
3271 called "bit_stride".
3272 (create_array_type): Re-implement using
3273 create_array_type_with_stride.
3274 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3275 and DW_AT_bit_stride attributes.
3277 2014-02-26 Pedro Alves <palves@redhat.com>
3279 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3280 task-specific breakpoints.
3282 2014-02-25 Pedro Alves <palves@redhat.com>
3284 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3285 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3287 2014-02-25 Stan Shebs <stan@codesourcery.com>
3289 * defs.h: Annotate comments for Doxygen.
3291 2014-02-25 Tom Tromey <tromey@redhat.com>
3293 * target.h (target_ignore): Don't declare.
3294 * target.c (target_ignore): Remove.
3296 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3299 * auto-load.c (auto_load_objfile_script_1): Change filename to
3302 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3304 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3305 documentation. Adjust prototype to match the target_ops
3306 to_xfer_partial method. Adjust implementation accordingly.
3308 2014-02-25 Hui Zhu <hui@codesourcery.com>
3310 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3313 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3315 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3316 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3317 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3318 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3319 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3320 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3321 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3322 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3324 (rl78_register_type): Use a data pointer type for SP and
3325 new pseudo registers mentioned above. Use a 16 bit integer
3326 type for all other register pairs.
3327 (rl78_register_name, rl78_g10_register_name): Update for
3328 new pseudo registers.
3329 (rl78_pseudo_register_read): Likewise.
3330 (rl78_pseudo_register_write): Likewise.
3331 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3332 to the newly added pseudo registers.
3334 2014-02-24 Doug Evans <dje@google.com>
3336 * value.c (record_latest_value): Fix comment.
3337 * printcmd.c (print_command_1): Remove code to handle -1 return from
3338 record_latest_value.
3340 2014-02-24 Pedro Alves <palves@redhat.com>
3342 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3343 deprecated_xfer_memory hook.
3344 (procfs_xfer_partial): Call procfs_xfer_memory instead
3345 of the deprecated_xfer_memory target hook.
3346 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3349 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3351 * windows-nat.c (windows_xfer_shared_libraries): Return
3352 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3353 requested object is TARGET_OBJECT_LIBRARIES.
3355 2014-02-24 Yao Qi <yao@codesourcery.com>
3357 * target.h (enum target_xfer_status)
3358 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3359 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3361 * corefile.c (memory_error_message): User updated.
3362 * exec.c (section_table_read_available_memory): Likewise.
3363 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3364 * target.c (target_xfer_status_to_string): Likewise.
3365 (raw_memory_xfer_partial): Likewise.
3366 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3367 * valops.c (read_value_memory): Likewise.
3368 * exec.h: Update comments.
3370 2014-02-24 Yao Qi <yao@codesourcery.com>
3372 * target.c (target_xfer_status_to_string): Rename argument err
3374 * target.h (target_xfer_status_to_string): Update declaration.
3375 Replace target_xfer_error_to_string with
3376 target_xfer_status_to_string in comment.
3378 2014-02-24 Yao Qi <yao@codesourcery.com>
3380 * mips-linux-nat.c (super_close): Update its type.
3381 (mips_linux_close): Pass 'self' to super_close.
3383 2014-02-24 Yao Qi <yao@codesourcery.com>
3385 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3386 * corefile.c (read_memory): Adjusted.
3387 * target.c (target_write_with_progress): Adjusted.
3389 2014-02-23 Yao Qi <yao@codesourcery.com>
3393 2013-10-25 Yao Qi <yao@codesourcery.com>
3395 * remote.c (remote_traceframe_info): Return early if
3396 traceframe is not selected.
3398 2013-07-19 Yao Qi <yao@codesourcery.com>
3400 * target.c (update_current_target): Change the default action
3401 of 'to_traceframe_info' from tcomplain to return_zero.
3402 * target.h (struct target_ops) <to_traceframe_info>: Add more
3405 2014-02-23 Yao Qi <yao@codesourcery.com>
3407 * valops.c (read_value_memory): Rewrite it. Call
3408 target_xfer_partial in a loop.
3409 * exec.h (section_table_available_memory): Remove declaration.
3410 Move comments to ...
3411 * exec.c (section_table_available_memory): ... here. Make it
3414 2014-02-23 Yao Qi <yao@codesourcery.com>
3416 * exec.c (section_table_read_available_memory): New function.
3417 * exec.h (section_table_read_available_memory): Declare.
3418 * ctf.c (ctf_xfer_partial): Call
3419 section_table_read_available_memory.
3420 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3422 2014-02-23 Yao Qi <yao@codesourcery.com>
3424 * ctf.c (ctf_xfer_partial): Move code to ...
3425 * exec.c (exec_read_partial_read_only): ... it. New function.
3426 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3427 * tracefile.c: Include "exec.h".
3428 * exec.h (exec_read_partial_read_only): Declare.
3430 2014-02-23 Yao Qi <yao@codesourcery.com>
3432 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3433 (tfile_has_memory): Remove.
3434 (init_tfile_ops): Don't set fields to_has_all_memory and
3435 to_has_memory of tfile_ops.
3436 * tracefile.c (tracefile_has_all_memory): New function.
3437 (tracefile_has_memory): New function.
3438 (init_tracefile_ops): Initialize fields to_has_all_memory and
3439 to_has_memory of 'ops'.
3441 2014-02-23 Yao Qi <yao@codesourcery.com>
3443 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3444 (ctf_thread_alive, ctf_get_trace_status): Remove.
3445 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3447 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3448 (tfile_has_stack, tfile_has_registers): Remove.
3449 (tfile_thread_alive): Remove.
3450 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3452 * tracefile.c (tracefile_has_stack): New function.
3453 (tracefile_has_registers): New function.
3454 (tracefile_thread_alive): New function.
3455 (tracefile_get_trace_status): New function.
3456 (init_tracefile_ops): New function.
3457 * tracefile.h (init_tracefile_ops): Declare.
3459 2014-02-23 Yao Qi <yao@codesourcery.com>
3461 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3462 (O_LARGEFILE): Likewise.
3463 (tfile_ops): Likewise.
3464 (TRACE_HEADER_SIZE): Likewise.
3465 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3466 (cur_data_size): Likewise.
3467 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3468 (tfile_close, tfile_files_info): Likewise.
3469 (tfile_get_trace_status): Likewise.
3470 (tfile_get_tracepoint_status): Likewise.
3471 (tfile_get_traceframe_address): Likewise.
3472 (tfile_trace_find, match_blocktype): Likewise.
3473 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3474 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3475 (tfile_get_trace_state_variable_value): Likewise.
3476 (tfile_has_all_memory, tfile_has_memory): Likewise.
3477 (tfile_has_stack, tfile_has_registers): Likewise.
3478 (tfile_thread_alive, build_traceframe_info): Likewise.
3479 (tfile_traceframe_info, init_tfile_ops): Likewise.
3480 (_initialize_tracepoint): Don't call init_tfile_ops
3481 and add_target_with_completer.
3482 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3483 exec.h, completer.h and filenames.h.
3484 (_initialize_tracefile_tfile): New function.
3486 2014-02-23 Yao Qi <yao@codesourcery.com>
3488 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3490 (HFILES_NO_SRCDIR): Add tracefile.h.
3491 * ctf.c: Include "tracefile.h".
3492 * tracefile.h: New file.
3493 * tracefile.c: New file
3494 * tracefile-tfile.c: New file.
3495 * tracepoint.c: Include "tracefile.h".
3496 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3497 (stop_reason_names): Add const.
3498 (trace_file_writer_xfree): Move it to tracefile.c.
3499 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3500 (trace_save_ctf): Likewise.
3501 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3502 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3503 (tfile_write_header, tfile_write_regblock_type): Likewise.
3504 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3505 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3506 (tfile_write_raw_data, tfile_end): Likewise.
3507 (tfile_trace_file_writer_new): Likewise.
3508 (free_uploaded_tp): Make it extern.
3509 (free_uploaded_tsv): Make it extern.
3510 (_initialize_tracepoint): Move code to register command 'tsave'
3512 * tracepoint.h (stop_reason_names): Declare.
3513 (struct trace_frame_write_ops): Move it to tracefile.h.
3514 (struct trace_file_write_ops): Likewise.
3515 (struct trace_file_writer): Likewise.
3516 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3518 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3523 (get_cores_used_by_process): New parameter num_cores, use it.
3524 (linux_xfer_osdata_processes): Pass num_cores to it.
3525 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3528 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3530 * target.c (memory_xfer_partial): Fix length arg in call to
3531 breakpoint_xfer_memory.
3533 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3536 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3537 number comes after the + or - signs. Adjust length of register
3538 name to be extracted.
3540 2014-02-20 Tom Tromey <tromey@redhat.com>
3542 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3543 (ada_varobj_ops): Mark "extern".
3545 2014-02-20 Tom Tromey <tromey@redhat.com>
3547 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3549 2014-02-20 Doug Evans <xdje42@gmail.com>
3551 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3552 All callers updated.
3553 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3554 All callers updated.
3555 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3556 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3558 2014-02-20 lin zuojian <manjian2006@gmail.com>
3559 Joel Brobecker <brobecker@adacore.com>
3560 Doug Evans <xdje42@gmail.com>
3563 * dwarf2read.c (struct die_info): New member in_process.
3564 (reset_die_in_process): New function.
3565 (process_die): Set it at the start, reset when returning.
3566 (inherit_abstract_dies): Only call process_die if origin_child_die
3567 not already being processed.
3569 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3571 * windows-nat.c (handle_unload_dll): Add function documentation.
3572 (do_initial_windows_stuff): Add comment explaining why we wait
3573 until after inferior initialization has finished before
3574 processing all DLLs.
3576 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3578 * windows-nat.c (get_module_name): Delete.
3579 (windows_get_exec_module_filename): New function, mostly
3580 inspired from get_module_name.
3581 (windows_pid_to_exec_file): Replace call to get_module_name
3582 by call to windows_get_exec_module_filename.
3584 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3586 * windows-nat.c (handle_load_dll): Rewrite this function's
3587 introductory comment. Remove code using get_module_name
3588 to get the DLL's name.
3590 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3592 * windows-nat.c (get_windows_debug_event): Ignore
3593 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3594 if windows_initialization_done == 0.
3595 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3596 Adjust implementation to always load all DLLs.
3597 (do_initial_windows_stuff): Replace call to
3598 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3600 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3602 * windows-nat.c (_initialize_windows_nat): Deprecate the
3603 "dll-symbols" command. Turn the "add-shared-symbol-files"
3604 and "assf" aliases into commands, and deprecate them as well.
3605 * NEWS: Add entry explaining that "dll-symbols" and its two
3606 aliases are now deprecated.
3608 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3610 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3611 new-line in debug string. Remove trailing spaces.
3613 2014-02-19 Stan Shebs <stan@codesourcery.com>
3615 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3617 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3619 * NEWS: Add entry for the new feature
3620 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3623 2014-02-19 Stan Shebs <stan@codesourcery.com>
3625 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3627 2014-02-19 Pedro Alves <palves@redhat.com>
3629 * common/ptid.h (struct ptid): Mention that process_stratum
3630 targets should prefer ptid.lwp.
3632 2014-02-19 Pedro Alves <palves@redhat.com>
3634 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3635 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3636 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3637 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3638 store remote thread ids rather than ptid.tid.
3639 (_initialize_remote): Adjust.
3641 2014-02-19 Tom Tromey <tromey@redhat.com>
3643 * target.c (target_get_unwinder): Rewrite.
3644 (target_get_tailcall_unwinder): Rewrite.
3645 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3646 (record_btrace_to_get_tailcall_unwinder): New function.
3647 (init_record_btrace_ops): Update.
3648 * target.h (struct target_ops) <to_get_unwinder,
3649 to_get_tailcall_unwinder>: Now function pointers. Use
3650 TARGET_DEFAULT_RETURN.
3652 2014-02-19 Tom Tromey <tromey@redhat.com>
3654 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3656 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3658 2014-02-19 Tom Tromey <tromey@redhat.com>
3660 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3662 * target-delegates.c: Rebuild.
3663 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3664 TARGET_DEFAULT_FUNC.
3665 * target.c (default_target_decr_pc_after_break): Rename from
3666 forward_target_decr_pc_after_break. Simplify.
3667 (target_decr_pc_after_break): Rely on delegation.
3669 2014-02-19 Tom Tromey <tromey@redhat.com>
3671 * target.c (update_current_target): Do not INHERIT to_doc or
3672 to_magic. Do not de_fault to_open or to_close.
3674 2014-02-19 Tom Tromey <tromey@redhat.com>
3676 * gcore.h (objfile_find_memory_regions): Declare.
3677 * gcore.c (objfile_find_memory_regions): No longer static. Add
3679 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3680 * exec.c: Include gcore.h.
3681 (exec_set_find_memory_regions): Remove.
3682 (exec_find_memory_regions): Remove.
3683 (exec_do_find_memory_regions): Remove.
3684 (init_exec_ops): Update.
3685 * defs.h (exec_set_find_memory_regions): Remove.
3687 2014-02-19 Tom Tromey <tromey@redhat.com>
3689 * target-delegates.c: Rebuild.
3690 * target.h (struct target_ops) <to_extra_thread_info,
3691 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3692 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3693 not 0, in TARGET_DEFAULT_RETURN.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * target.c (complete_target_initialization): Remove casts. Use
3698 return_zero_has_execution.
3699 (return_zero): Add "ignore" argument.
3700 (return_zero_has_execution): New function.
3701 (init_dummy_target): Remove casts. Use
3702 return_zero_has_execution.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3706 * target.c (update_current_target): Update comments. Do not
3709 2014-02-19 Tom Tromey <tromey@redhat.com>
3711 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3713 * corelow.c (core_read_description): Delegate when needed.
3714 * remote.c (remote_read_description): Delegate when needed.
3715 * target-delegates.c: Rebuild.
3716 * target.c (target_read_description): Rewrite.
3717 * target.h (struct target_ops) <to_read_description>: Update
3718 comment. Use TARGET_DEFAULT_RETURN.
3720 2014-02-19 Tom Tromey <tromey@redhat.com>
3722 * target-delegates.c: Rebuild.
3723 * target.c (update_current_target): Don't inherit or default
3725 (find_default_run_target): Check against delegate_can_run.
3726 * target.h (struct target_ops) <to_can_run>: Use
3727 TARGET_DEFAULT_RETURN.
3729 2014-02-19 Tom Tromey <tromey@redhat.com>
3731 * target-delegates.c: Rebuild.
3732 * target.c (target_disconnect): Unconditionally delegate.
3733 * target.h (struct target_ops) <to_disconnect>: Use
3734 TARGET_DEFAULT_NORETURN.
3736 2014-02-19 Tom Tromey <tromey@redhat.com>
3738 * record.c (record_stop): Unconditionally delegate.
3739 * target-delegates.c: Rebuild.
3740 * target.c (target_stop_recording): Unconditionally delegate.
3741 * target.h (struct target_ops) <to_stop_recording>: Use
3742 TARGET_DEFAULT_IGNORE.
3744 2014-02-19 Tom Tromey <tromey@redhat.com>
3746 * target-delegates.c: Rebuild.
3747 * target.c (target_enable_btrace): Unconditionally delegate.
3748 * target.h (struct target_ops) <to_enable_btrace>: Use
3749 TARGET_DEFAULT_NORETURN.
3751 2014-02-19 Tom Tromey <tromey@redhat.com>
3753 * target-delegates.c: Rebuild.
3754 * target.c (target_read_btrace): Unconditionally delegate.
3755 * target.h (struct target_ops) <to_read_btrace>: Use
3756 TARGET_DEFAULT_NORETURN.
3758 2014-02-19 Tom Tromey <tromey@redhat.com>
3760 * target-delegates.c: Rebuild.
3761 * target.c (target_teardown_btrace): Unconditionally delegate.
3762 * target.h (struct target_ops) <to_teardown_btrace>: Use
3763 TARGET_DEFAULT_NORETURN.
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3767 * target-delegates.c: Rebuild.
3768 * target.c (target_disable_btrace): Unconditionally delegate.
3769 * target.h (struct target_ops) <to_disable_btrace>: Use
3770 TARGET_DEFAULT_NORETURN.
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target-delegates.c: Rebuild.
3775 * target.c (default_search_memory): New function.
3776 (simple_search_memory): Update comment.
3777 (target_search_memory): Unconditionally delegate.
3778 * target.h (struct target_ops) <to_search_memory>: Use
3779 TARGET_DEFAULT_FUNC.
3781 2014-02-19 Tom Tromey <tromey@redhat.com>
3783 * auxv.c (default_auxv_parse): No longer static.
3784 (target_auxv_parse): Unconditionally delegate.
3785 * auxv.h (default_auxv_parse): Declare.
3786 * target-delegates.c: Rebuild.
3787 * target.c: Include auxv.h.
3788 * target.h (struct target_ops) <to_auxv_parse>: Use
3789 TARGET_DEFAULT_FUNC.
3791 2014-02-19 Tom Tromey <tromey@redhat.com>
3793 * target-delegates.c: Rebuild.
3794 * target.c (target_memory_map): Unconditionally delegate.
3795 * target.h (struct target_ops) <to_memory_map>: Use
3796 TARGET_DEFAULT_RETURN.
3798 2014-02-19 Tom Tromey <tromey@redhat.com>
3800 * target-delegates.c: Rebuild.
3801 * target.c (target_thread_alive): Unconditionally delegate.
3802 * target.h (struct target_ops) <to_thread_alive>: Use
3803 TARGET_DEFAULT_RETURN.
3805 2014-02-19 Tom Tromey <tromey@redhat.com>
3807 * target-delegates.c: Rebuild.
3808 * target.c (target_save_record): Unconditionally delegate.
3809 * target.h (struct target_ops) <to_save_record>: Use
3810 TARGET_DEFAULT_NORETURN.
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target-delegates.c: Rebuild.
3815 * target.c (target_delete_record): Unconditionally delegate.
3816 * target.h (struct target_ops) <to_delete_record>: Use
3817 TARGET_DEFAULT_NORETURN.
3819 2014-02-19 Tom Tromey <tromey@redhat.com>
3821 * target-delegates.c: Rebuild.
3822 * target.c (target_record_is_replaying): Unconditionally
3824 * target.h (struct target_ops) <to_record_is_replaying>: Use
3825 TARGET_DEFAULT_RETURN.
3827 2014-02-19 Tom Tromey <tromey@redhat.com>
3829 * target-delegates.c: Rebuild.
3830 * target.c (target_goto_record_begin): Unconditionally delegate.
3831 * target.h (struct target_ops) <to_goto_record_begin>: Use
3832 TARGET_DEFAULT_NORETURN.
3834 2014-02-19 Tom Tromey <tromey@redhat.com>
3836 * target-delegates.c: Rebuild.
3837 * target.c (target_goto_record_end): Unconditionally delegate.
3838 * target.h (struct target_ops) <to_goto_record_end>: Use
3839 TARGET_DEFAULT_NORETURN.
3841 2014-02-19 Tom Tromey <tromey@redhat.com>
3843 * target-delegates.c: Rebuild.
3844 * target.c (target_goto_record): Unconditionally delegate.
3845 * target.h (struct target_ops) <to_goto_record>: Use
3846 TARGET_DEFAULT_NORETURN.
3848 2014-02-19 Tom Tromey <tromey@redhat.com>
3850 * target-delegates.c: Rebuild.
3851 * target.c (target_insn_history): Unconditionally delegate.
3852 * target.h (struct target_ops) <to_insn_history>: Use
3853 TARGET_DEFAULT_NORETURN.
3855 2014-02-19 Tom Tromey <tromey@redhat.com>
3857 * target-delegates.c: Rebuild.
3858 * target.c (target_insn_history_from): Unconditionally delegate.
3859 * target.h (struct target_ops) <to_insn_history_from>: Use
3860 TARGET_DEFAULT_NORETURN.
3862 2014-02-19 Tom Tromey <tromey@redhat.com>
3864 * target-delegates.c: Rebuild.
3865 * target.c (target_insn_history_range): Unconditionally delegate.
3866 * target.h (struct target_ops) <to_insn_history_range>: Use
3867 TARGET_DEFAULT_NORETURN.
3869 2014-02-19 Tom Tromey <tromey@redhat.com>
3871 * target-delegates.c: Rebuild.
3872 * target.c (target_call_history): Unconditionally delegate.
3873 * target.h (struct target_ops) <to_call_history>: Use
3874 TARGET_DEFAULT_NORETURN.
3876 2014-02-19 Tom Tromey <tromey@redhat.com>
3878 * target-delegates.c: Rebuild.
3879 * target.c (target_call_history_from): Unconditionally delegate.
3880 * target.h (struct target_ops) <to_call_history_from>: Use
3881 TARGET_DEFAULT_NORETURN.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target-delegates.c: Rebuild.
3886 * target.c (target_call_history_range): Unconditionally delegate.
3887 * target.h (struct target_ops) <to_call_history_range>: Use
3888 TARGET_DEFAULT_NORETURN.
3890 2014-02-19 Tom Tromey <tromey@redhat.com>
3892 * target-delegates.c: Rebuild.
3893 * target.c (target_verify_memory): Unconditionally delegate.
3894 * target.h (struct target_ops) <to_verify_memory>: Use
3895 TARGET_DEFAULT_NORETURN.
3897 2014-02-19 Tom Tromey <tromey@redhat.com>
3899 * target-delegates.c: Rebuild.
3900 * target.c (target_core_of_thread): Unconditionally delegate.
3901 * target.h (struct target_ops) <to_core_of_thread>: Use
3902 TARGET_DEFAULT_RETURN.
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target-delegates.c: Rebuild.
3907 * target.c (target_flash_done): Unconditionally delegate.
3908 * target.h (struct target_ops) <to_flash_done>: Use
3909 TARGET_DEFAULT_NORETURN.
3911 2014-02-19 Tom Tromey <tromey@redhat.com>
3913 * target-delegates.c: Rebuild.
3914 * target.c (target_flash_erase): Unconditionally delegate.
3915 * target.h (struct target_ops) <to_flash_erase>: Use
3916 TARGET_DEFAULT_NORETURN.
3918 2014-02-19 Tom Tromey <tromey@redhat.com>
3920 * target-delegates.c: Rebuild.
3921 * target.c (target_get_section_table): Unconditionally delegate.
3922 * target.h (struct target_ops) <to_get_section_table>: Use
3923 TARGET_DEFAULT_RETURN.
3925 2014-02-19 Tom Tromey <tromey@redhat.com>
3927 * target-delegates.c: Rebuild.
3928 * target.c (target_pid_to_str): Unconditionally delegate.
3929 (init_dummy_target): Don't initialize to_pid_to_str.
3930 (default_pid_to_str): Rename from dummy_pid_to_str.
3931 * target.h (struct target_ops) <to_pid_to_str>: Use
3932 TARGET_DEFAULT_FUNC.
3934 2014-02-19 Tom Tromey <tromey@redhat.com>
3936 * target-delegates.c: Rebuild.
3937 * target.c (target_find_new_threads): Unconditionally delegate.
3938 * target.h (struct target_ops) <to_find_new_threads>: Use
3939 TARGET_DEFAULT_RETURN.
3941 2014-02-19 Tom Tromey <tromey@redhat.com>
3943 * target-delegates.c: Rebuild.
3944 * target.c (target_program_signals): Unconditionally delegate.
3945 * target.h (struct target_ops) <to_program_signals>: Use
3946 TARGET_DEFAULT_IGNORE.
3948 2014-02-19 Tom Tromey <tromey@redhat.com>
3950 * target-delegates.c: Rebuild.
3951 * target.c (target_pass_signals): Unconditionally delegate.
3952 * target.h (struct target_ops) <to_pass_signals>: Use
3953 TARGET_DEFAULT_IGNORE.
3955 2014-02-19 Tom Tromey <tromey@redhat.com>
3957 * target-delegates.c: Rebuild.
3958 * target.c (default_mourn_inferior): New function.
3959 (target_mourn_inferior): Unconditionally delegate.
3960 * target.h (struct target_ops) <to_mourn_inferior>: Use
3961 TARGET_DEFAULT_FUNC.
3963 2014-02-19 Tom Tromey <tromey@redhat.com>
3965 * target-delegates.c: Rebuild.
3966 * target.c (default_follow_fork): New function.
3967 (target_follow_fork): Unconditionally delegate.
3968 * target.h (struct target_ops) <to_follow_fork>: Use
3969 TARGET_DEFAULT_FUNC.
3971 2014-02-19 Tom Tromey <tromey@redhat.com>
3973 * target-delegates.c: Rebuild.
3974 * target.c (target_kill): Unconditionally delegate.
3975 * target.h (struct target_ops) <to_kill>: Use
3976 TARGET_DEFAULT_NORETURN.
3978 2014-02-19 Tom Tromey <tromey@redhat.com>
3980 * target-delegates.c: Rebuild.
3981 * target.c (target_masked_watch_num_registers): Unconditionally
3983 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3984 Use TARGET_DEFAULT_RETURN.
3986 2014-02-19 Tom Tromey <tromey@redhat.com>
3988 * target-delegates.c: Rebuild.
3989 * target.c (target_remove_mask_watchpoint): Unconditionally
3991 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3992 TARGET_DEFAULT_RETURN.
3994 2014-02-19 Tom Tromey <tromey@redhat.com>
3996 * target-delegates.c: Rebuild.
3997 * target.c (target_insert_mask_watchpoint): Unconditionally
3999 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4000 TARGET_DEFAULT_RETURN.
4002 2014-02-19 Tom Tromey <tromey@redhat.com>
4004 * target-delegates.c: Rebuild.
4005 * target.c (target_ranged_break_num_registers): Unconditionally
4007 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4008 Use TARGET_DEFAULT_RETURN.
4010 2014-02-19 Tom Tromey <tromey@redhat.com>
4012 * target-delegates.c: Rebuild.
4013 * target.c (target_fetch_registers): Unconditionally delegate.
4014 * target.h (struct target_ops) <to_fetch_registers>: Use
4015 TARGET_DEFAULT_NORETURN.
4017 2014-02-19 Tom Tromey <tromey@redhat.com>
4019 * target-delegates.c: Rebuild.
4020 * target.c (update_current_target): Don't inherit or default
4022 * target.h (struct target_ops) <to_stop>: Use
4023 TARGET_DEFAULT_IGNORE.
4025 2014-02-19 Tom Tromey <tromey@redhat.com>
4027 * target-delegates.c: Rebuild.
4028 * target.c (update_current_target): Don't inherit or default
4029 to_can_run_breakpoint_commands.
4030 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4031 Use TARGET_DEFAULT_RETURN.
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target-delegates.c: Rebuild.
4036 * target.c (update_current_target): Don't inherit or default
4037 to_supports_evaluation_of_breakpoint_conditions.
4038 * target.h (struct target_ops)
4039 <to_supports_evaluation_of_breakpoint_conditions>: Use
4040 TARGET_DEFAULT_RETURN.
4042 2014-02-19 Tom Tromey <tromey@redhat.com>
4044 * target-delegates.c: Rebuild.
4045 * target.c (update_current_target): Don't inherit or default
4046 to_augmented_libraries_svr4_read.
4047 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4048 Use TARGET_DEFAULT_RETURN.
4050 2014-02-19 Tom Tromey <tromey@redhat.com>
4052 * target-delegates.c: Rebuild.
4053 * target.c (update_current_target): Don't inherit or default
4055 * target.h (struct target_ops) <to_can_use_agent>: Use
4056 TARGET_DEFAULT_RETURN.
4058 2014-02-19 Tom Tromey <tromey@redhat.com>
4060 * target-delegates.c: Rebuild.
4061 * target.c (update_current_target): Don't inherit or default
4063 * target.h (struct target_ops) <to_use_agent>: Use
4064 TARGET_DEFAULT_NORETURN.
4066 2014-02-19 Tom Tromey <tromey@redhat.com>
4068 * target-delegates.c: Rebuild.
4069 * target.c (update_current_target): Don't inherit or default
4071 (return_null): Remove.
4072 * target.h (struct target_ops) <to_traceframe_info>: Use
4073 TARGET_DEFAULT_RETURN.
4075 2014-02-19 Tom Tromey <tromey@redhat.com>
4077 * target-delegates.c: Rebuild.
4078 * target.c (update_current_target): Don't inherit or default
4079 to_static_tracepoint_markers_by_strid.
4080 * target.h (struct target_ops)
4081 <to_static_tracepoint_markers_by_strid>: Use
4082 TARGET_DEFAULT_NORETURN.
4084 2014-02-19 Tom Tromey <tromey@redhat.com>
4086 * target-delegates.c: Rebuild.
4087 * target.c (update_current_target): Don't inherit or default
4088 to_static_tracepoint_marker_at.
4089 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4090 Use TARGET_DEFAULT_RETURN.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * target-delegates.c: Rebuild.
4095 * target.c (update_current_target): Don't inherit or default
4097 * target.h (struct target_ops) <to_set_permissions>: Use
4098 TARGET_DEFAULT_IGNORE.
4100 2014-02-19 Tom Tromey <tromey@redhat.com>
4102 * target-delegates.c: Rebuild.
4103 * target.c (update_current_target): Don't inherit or default
4105 * target.h (struct target_ops) <to_get_tib_address>: Use
4106 TARGET_DEFAULT_NORETURN.
4108 2014-02-19 Tom Tromey <tromey@redhat.com>
4110 * target-delegates.c: Rebuild.
4111 * target.c (update_current_target): Don't inherit or default
4113 * target.h (struct target_ops) <to_set_trace_notes>: Use
4114 TARGET_DEFAULT_RETURN.
4116 2014-02-19 Tom Tromey <tromey@redhat.com>
4118 * target-delegates.c: Rebuild.
4119 * target.c (update_current_target): Don't initialize
4120 to_set_trace_buffer_size.
4121 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4122 TARGET_DEFAULT_IGNORE.
4124 2014-02-19 Tom Tromey <tromey@redhat.com>
4126 * target-delegates.c: Rebuild.
4127 * target.c (update_current_target): Don't inherit or default
4128 to_set_circular_trace_buffer.
4129 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4130 TARGET_DEFAULT_IGNORE.
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * target-delegates.c: Rebuild.
4135 * target.c (update_current_target): Don't inherit or default
4136 to_set_disconnected_tracing.
4137 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4138 TARGET_DEFAULT_IGNORE.
4140 2014-02-19 Tom Tromey <tromey@redhat.com>
4142 * target-delegates.c: Rebuild.
4143 * target.c (update_current_target): Don't inherit or default
4144 to_get_min_fast_tracepoint_insn_len.
4145 (return_minus_one): Remove.
4146 * target.h (struct target_ops)
4147 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4149 2014-02-19 Tom Tromey <tromey@redhat.com>
4151 * target-delegates.c: Rebuild.
4152 * target.c (update_current_target): Don't inherit or default
4153 to_get_raw_trace_data.
4154 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4155 TARGET_DEFAULT_NORETURN.
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4159 * target-delegates.c: Rebuild.
4160 * target.c (update_current_target): Don't inherit or default
4161 to_upload_trace_state_variables.
4162 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4163 Use TARGET_DEFAULT_RETURN.
4165 2014-02-19 Tom Tromey <tromey@redhat.com>
4167 * target-delegates.c: Rebuild.
4168 * target.c (update_current_target): Don't inherit or default
4169 to_upload_tracepoints.
4170 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4171 TARGET_DEFAULT_RETURN.
4173 2014-02-19 Tom Tromey <tromey@redhat.com>
4175 * target-delegates.c: Rebuild.
4176 * target.c (update_current_target): Don't inherit or default
4178 * target.h (struct target_ops) <to_save_trace_data>: Use
4179 TARGET_DEFAULT_NORETURN.
4181 2014-02-19 Tom Tromey <tromey@redhat.com>
4183 * target-delegates.c: Rebuild.
4184 * target.c (update_current_target): Don't inherit or default
4185 to_get_trace_state_variable_value.
4186 * target.h (struct target_ops)
4187 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4189 2014-02-19 Tom Tromey <tromey@redhat.com>
4191 * target-delegates.c: Rebuild.
4192 * target.c (update_current_target): Don't inherit or default
4194 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4196 2014-02-19 Tom Tromey <tromey@redhat.com>
4198 * target-delegates.c: Rebuild.
4199 * target.c (update_current_target): Don't inherit or default
4201 * target.h (struct target_ops) <to_trace_stop>: Use
4202 TARGET_DEFAULT_NORETURN.
4204 2014-02-19 Tom Tromey <tromey@redhat.com>
4206 * target-delegates.c: Rebuild.
4207 * target.c (update_current_target): Don't inherit or default
4208 to_get_tracepoint_status.
4209 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4210 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
4217 * target.h (struct target_ops) <to_get_trace_status>: Use
4218 TARGET_DEFAULT_RETURN.
4220 2014-02-19 Tom Tromey <tromey@redhat.com>
4222 * target-delegates.c: Rebuild.
4223 * target.c (update_current_target): Don't inherit or default
4225 * target.h (struct target_ops) <to_trace_start>: Use
4226 TARGET_DEFAULT_NORETURN.
4228 2014-02-19 Tom Tromey <tromey@redhat.com>
4230 * target-delegates.c: Rebuild.
4231 * target.c (update_current_target): Don't inherit or default
4232 to_trace_set_readonly_regions.
4233 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4234 Use TARGET_DEFAULT_NORETURN.
4236 2014-02-19 Tom Tromey <tromey@redhat.com>
4238 * target-delegates.c: Rebuild.
4239 * target.c (update_current_target): Don't inherit or default
4240 to_disable_tracepoint.
4241 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4242 TARGET_DEFAULT_NORETURN.
4244 2014-02-19 Tom Tromey <tromey@redhat.com>
4246 * target-delegates.c: Rebuild.
4247 * target.c (update_current_target): Don't inherit or default
4248 to_enable_tracepoint.
4249 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4250 TARGET_DEFAULT_NORETURN.
4252 2014-02-19 Tom Tromey <tromey@redhat.com>
4254 * target-delegates.c: Rebuild.
4255 * target.c (update_current_target): Don't inherit or default
4256 to_download_trace_state_variable.
4257 * target.h (struct target_ops) <to_download_trace_state_variable>:
4258 Use TARGET_DEFAULT_NORETURN.
4260 2014-02-19 Tom Tromey <tromey@redhat.com>
4262 * target-delegates.c: Rebuild.
4263 * target.c (update_current_target): Don't inherit or default
4264 to_can_download_tracepoint.
4265 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4266 TARGET_DEFAULT_RETURN.
4268 2014-02-19 Tom Tromey <tromey@redhat.com>
4270 * target-delegates.c: Rebuild.
4271 * target.c (update_current_target): Don't inherit or default
4272 to_download_tracepoint.
4273 * target.h (struct target_ops) <to_download_tracepoint>: Use
4274 TARGET_DEFAULT_NORETURN.
4276 2014-02-19 Tom Tromey <tromey@redhat.com>
4278 * target-delegates.c: Rebuild.
4279 * target.c (update_current_target): Don't inherit or default
4281 * target.h (struct target_ops) <to_trace_init>: Use
4282 TARGET_DEFAULT_RETURN.
4284 2014-02-19 Tom Tromey <tromey@redhat.com>
4286 * target-delegates.c: Rebuild.
4287 * target.c (update_current_target): Don't inherit or default
4288 to_supports_string_tracing.
4289 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4290 TARGET_DEFAULT_RETURN.
4292 2014-02-19 Tom Tromey <tromey@redhat.com>
4294 * target-delegates.c: Rebuild.
4295 * target.c (update_current_target): Don't inherit or default
4296 to_supports_enable_disable_tracepoint.
4297 * target.h (struct target_ops)
4298 <to_supports_enable_disable_tracepoint>: Use
4299 TARGET_DEFAULT_RETURN.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * target-delegates.c: Rebuild.
4304 * target.c (update_current_target): Don't inherit or default
4305 to_supports_multi_process.
4306 * target.h (struct target_ops) <to_supports_multi_process>: Use
4307 TARGET_DEFAULT_RETURN.
4309 2014-02-19 Tom Tromey <tromey@redhat.com>
4311 * target-delegates.c: Rebuild.
4312 * target.c (update_current_target): Don't inherit or default
4313 to_get_ada_task_ptid.
4314 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4315 TARGET_DEFAULT_FUNC.
4317 2014-02-19 Tom Tromey <tromey@redhat.com>
4319 * target-delegates.c: Rebuild.
4320 * target.c (update_current_target): Don't inherit or default
4321 to_thread_architecture.
4322 * target.h (struct target_ops) <to_thread_architecture>: Use
4323 TARGET_DEFAULT_FUNC.
4325 2014-02-19 Tom Tromey <tromey@redhat.com>
4327 * target-delegates.c: Rebuild.
4328 * target.c (update_current_target): Don't inherit or default
4329 to_execution_direction.
4330 * target.h (struct target_ops) <to_execution_direction>: Use
4331 TARGET_DEFAULT_FUNC.
4333 2014-02-19 Tom Tromey <tromey@redhat.com>
4335 * target-delegates.c: Rebuild.
4336 * target.c (update_current_target): Don't inherit or default
4337 to_can_execute_reverse.
4338 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4339 TARGET_DEFAULT_RETURN.
4340 (target_can_execute_reverse): Unconditionally delegate.
4342 2014-02-19 Tom Tromey <tromey@redhat.com>
4344 * target-delegates.c: Rebuild.
4345 * target.c (update_current_target): Don't inherit or default
4347 (dummy_goto_bookmark): Remove.
4348 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4349 * target.h (struct target_ops) <to_goto_bookmark>: Use
4350 TARGET_DEFAULT_NORETURN.
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 (dummy_get_bookmark): Remove.
4358 (init_dummy_target): Don't inherit or default to_get_bookmark.
4359 * target.h (struct target_ops) <to_get_bookmark>: Use
4360 TARGET_DEFAULT_NORETURN
4362 2014-02-19 Tom Tromey <tromey@redhat.com>
4364 * target-delegates.c: Rebuild.
4365 * target.c (update_current_target): Don't inherit or default
4366 to_make_corefile_notes.
4367 (init_dummy_target): Don't initialize to_make_corefile_notes.
4368 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4369 TARGET_DEFAULT_FUNC.
4371 2014-02-19 Tom Tromey <tromey@redhat.com>
4373 * target-delegates.c: Rebuild.
4374 * target.c (update_current_target): Don't inherit or default
4375 to_find_memory_regions.
4376 (init_dummy_target): Don't initialize to_find_memory_regions.
4377 * target.h (struct target_ops) <to_find_memory_regions>: Use
4378 TARGET_DEFAULT_FUNC.
4380 2014-02-19 Tom Tromey <tromey@redhat.com>
4382 * target-delegates.c: Rebuild.
4383 * target.c (update_current_target): Don't inherit or default
4385 * target.h (struct target_ops) <to_log_command>: Use
4386 TARGET_DEFAULT_IGNORE.
4387 (target_log_command): Unconditionally delegate.
4389 2014-02-19 Tom Tromey <tromey@redhat.com>
4391 * target-delegates.c: Rebuild.
4392 * target.c (update_current_target): Don't inherit or default
4393 to_pid_to_exec_file.
4394 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4395 TARGET_DEFAULT_RETURN.
4397 2014-02-19 Tom Tromey <tromey@redhat.com>
4399 * target-delegates.c: Rebuild.
4400 * target.c (update_current_target): Don't inherit or default
4402 (target_thread_name): Unconditionally delegate.
4403 * target.h (struct target_ops) <to_thread_name>: Use
4404 TARGET_DEFAULT_RETURN.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * target-delegates.c: Rebuild.
4409 * target.c (update_current_target): Don't inherit or default
4410 to_extra_thread_info.
4411 * target.h (struct target_ops) <to_extra_thread_info>: Use
4412 TARGET_DEFAULT_RETURN.
4414 2014-02-19 Tom Tromey <tromey@redhat.com>
4416 * target-delegates.c: Rebuild.
4417 * target.c (update_current_target): Don't inherit or default
4419 * target.h (struct target_ops) <to_has_exited>: Use
4420 TARGET_DEFAULT_RETURN..
4422 2014-02-19 Tom Tromey <tromey@redhat.com>
4424 * target-delegates.c: Rebuild.
4425 * target.c (update_current_target): Don't inherit or default
4426 to_set_syscall_catchpoint.
4427 (return_one): Remove.
4428 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4429 TARGET_DEFAULT_RETURN.
4431 2014-02-19 Tom Tromey <tromey@redhat.com>
4433 * target-delegates.c: Rebuild.
4434 * target.c (update_current_target): Don't inherit or default
4435 to_insert_exec_catchpoint.
4436 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4437 TARGET_DEFAULT_RETURN.
4439 2014-01-08 Tom Tromey <tromey@redhat.com>
4441 * target-delegates.c: Rebuild.
4442 * target.c (update_current_target): Don't inherit or default
4443 to_insert_exec_catchpoint.
4444 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4445 TARGET_DEFAULT_RETURN.
4447 2014-02-19 Tom Tromey <tromey@redhat.com>
4449 * target-delegates.c: Rebuild.
4450 * target.c (update_current_target): Don't inherit or default
4451 to_remove_vfork_catchpoint.
4452 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4453 TARGET_DEFAULT_RETURN.
4455 2014-02-19 Tom Tromey <tromey@redhat.com>
4457 * target-delegates.c: Rebuild.
4458 * target.c (update_current_target): Don't inherit or default
4459 to_insert_vfork_catchpoint.
4460 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4461 TARGET_DEFAULT_RETURN.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target-delegates.c: Rebuild.
4466 * target.c (update_current_target): Don't inherit or default
4467 to_remove_fork_catchpoint.
4468 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4469 TARGET_DEFAULT_RETURN.
4471 2014-02-19 Tom Tromey <tromey@redhat.com>
4473 * target-delegates.c: Rebuild.
4474 * target.c (update_current_target): Don't inherit or default
4475 to_insert_fork_catchpoint.
4476 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4477 TARGET_DEFAULT_RETURN.
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target-delegates.c: Rebuild.
4482 * target.c (update_current_target): Don't inherit or default
4483 to_post_startup_inferior.
4484 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4485 TARGET_DEFAULT_IGNORE.
4487 2014-02-19 Tom Tromey <tromey@redhat.com>
4489 * target-delegates.c: Rebuild.
4490 * target.c (update_current_target): Don't inherit or default
4492 * target.h (struct target_ops) <to_load>: Use
4493 TARGET_DEFAULT_NORETURN.
4495 2014-02-19 Tom Tromey <tromey@redhat.com>
4497 * target-delegates.c: Rebuild.
4498 * target.c (update_current_target): Don't inherit or default
4500 * target.h (struct target_ops) <to_terminal_info>: Use
4501 TARGET_DEFAULT_FUNC.
4503 2014-02-19 Tom Tromey <tromey@redhat.com>
4505 * target-delegates.c: Rebuild.
4506 * target.c (update_current_target): Don't inherit or default
4507 to_terminal_save_ours.
4508 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4509 TARGET_DEFAULT_IGNORE.
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target-delegates.c: Rebuild.
4514 * target.c (update_current_target): Don't inherit or default
4516 * target.h (struct target_ops) <to_terminal_ours>: Use
4517 TARGET_DEFAULT_IGNORE.
4519 2014-02-19 Tom Tromey <tromey@redhat.com>
4521 * target-delegates.c: Rebuild.
4522 * target.c (update_current_target): Don't inherit or default
4523 to_terminal_ours_for_output.
4524 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4525 TARGET_DEFAULT_IGNORE.
4527 2014-02-19 Tom Tromey <tromey@redhat.com>
4529 * target-delegates.c: Rebuild.
4530 * target.c (update_current_target): Don't inherit or default
4531 to_terminal_inferior.
4532 * target.h (struct target_ops) <to_terminal_inferior>: Use
4533 TARGET_DEFAULT_IGNORE.
4535 2014-02-19 Tom Tromey <tromey@redhat.com>
4537 * target-delegates.c: Rebuild.
4538 * target.c (update_current_target): Don't inherit or default
4540 * target.h (struct target_ops) <to_terminal_init>: Use
4541 TARGET_DEFAULT_IGNORE.
4543 2014-02-19 Tom Tromey <tromey@redhat.com>
4545 * target-delegates.c: Rebuild.
4546 * target.c (update_current_target): Don't inherit or default
4547 to_can_accel_watchpoint_condition.
4548 * target.h (struct target_ops)
4549 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4551 2014-02-19 Tom Tromey <tromey@redhat.com>
4553 * target-delegates.c: Rebuild.
4554 * target.c (update_current_target): Don't inherit or default
4555 to_region_ok_for_hw_watchpoint.
4556 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4557 Use TARGET_DEFAULT_FUNC.
4559 2014-02-19 Tom Tromey <tromey@redhat.com>
4561 * target-delegates.c: Rebuild.
4562 * target.c (update_current_target): Don't inherit or default
4563 to_watchpoint_addr_within_range.
4564 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4565 Use TARGET_DEFAULT_FUNC.
4567 2014-02-19 Tom Tromey <tromey@redhat.com>
4569 * target-delegates.c: Rebuild.
4570 * target.c (update_current_target): Don't inherit or default
4571 to_remove_watchpoint.
4572 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4573 TARGET_DEFAULT_NORETURN.
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4577 * target-delegates.c: Rebuild.
4578 * target.c (update_current_target): Don't inherit or default
4579 to_insert_watchpoint.
4580 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4581 TARGET_DEFAULT_RETURN.
4583 2014-02-19 Tom Tromey <tromey@redhat.com>
4585 * target-delegates.c: Rebuild.
4586 * target.c (update_current_target): Don't inherit or default
4587 to_remove_hw_breakpoint.
4588 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4589 TARGET_DEFAULT_RETURN.
4591 2014-02-19 Tom Tromey <tromey@redhat.com>
4593 * target-delegates.c: Rebuild.
4594 * target.c (update_current_target): Don't inherit or default
4595 to_insert_hw_breakpoint.
4596 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4597 TARGET_DEFAULT_RETURN.
4599 2014-02-19 Tom Tromey <tromey@redhat.com>
4601 * target-delegates.c: Rebuild.
4602 * target.c (update_current_target): Don't inherit or default
4603 to_can_use_hw_breakpoint.
4604 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4605 TARGET_DEFAULT_RETURN.
4607 2014-02-19 Tom Tromey <tromey@redhat.com>
4609 * target-delegates.c: Rebuild.
4610 * target.c (update_current_target): Don't inherit or default
4612 * target.h (struct target_ops) <to_files_info>: Use
4613 TARGET_DEFAULT_IGNORE.
4615 2014-02-19 Tom Tromey <tromey@redhat.com>
4617 * target-delegates.c: Rebuild.
4618 * target.c (update_current_target): Don't inherit or default
4620 * target.h (struct target_ops) <to_store>: Use
4621 TARGET_DEFAULT_NORETURN.
4623 2014-02-19 Tom Tromey <tromey@redhat.com>
4625 * target-delegates.c: Rebuild.
4626 * target.c (update_current_target): Don't inherit or default
4628 * target.h (struct target_ops) <to_post_attach>: Use
4629 TARGET_DEFAULT_IGNORE.
4631 2014-02-19 Tom Tromey <tromey@redhat.com>
4633 * target-delegates.c: Rebuild.
4634 * target.c (update_current_target): Don't inherit or default
4636 (default_rcmd): New function.
4637 (do_monitor_command): Unconditionally delegate.
4638 * target.h (struct target_ops) <to_rmcd>: Use
4639 TARGET_DEFAULT_FUNC.
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target-delegates.c: Rebuild.
4644 * target.c (init_dummy_target): Don't initialize to_attach.
4645 (target_attach): Unconditionally delegate.
4646 * target.h (struct target_ops) <to_attach>: Use
4647 TARGET_DEFAULT_FUNC.
4649 2014-02-19 Tom Tromey <tromey@redhat.com>
4651 * target-delegates.c: Rebuild.
4652 * target.c (target_detach): Unconditionally delegate.
4653 (init_dummy_target): Don't initialize to_detach.
4654 * target.h (struct target_ops) <to_detach>: Use
4655 TARGET_DEFAULT_IGNORE.
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4661 (target_augmented_libraries_svr4_read): Add argument.
4662 * target.c (update_current_target): Update.
4663 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4666 2014-02-19 Tom Tromey <tromey@redhat.com>
4668 * target.h (struct target_ops) <to_call_history_range>: Add
4670 * target.c (target_call_history_range): Add argument.
4671 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4673 (record_btrace_call_history_from): Update.
4675 2014-02-19 Tom Tromey <tromey@redhat.com>
4677 * target.h (struct target_ops) <to_call_history_from>: Add
4679 * target.c (target_call_history_from): Add argument.
4680 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4683 2014-02-19 Tom Tromey <tromey@redhat.com>
4685 * target.h (struct target_ops) <to_call_history>: Add argument.
4686 * target.c (target_call_history): Add argument.
4687 * record-btrace.c (record_btrace_call_history): Add 'self'
4690 2014-02-19 Tom Tromey <tromey@redhat.com>
4692 * target.h (struct target_ops) <to_insn_history_range>: Add
4694 * target.c (target_insn_history_range): Add argument.
4695 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4697 (record_btrace_insn_history_from): Update.
4699 2014-02-19 Tom Tromey <tromey@redhat.com>
4701 * target.h (struct target_ops) <to_insn_history_from>: Add
4703 * target.c (target_insn_history_from): Add argument.
4704 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4707 2014-02-19 Tom Tromey <tromey@redhat.com>
4709 * target.h (struct target_ops) <to_insn_history>: Add argument.
4710 * target.c (target_insn_history): Add argument.
4711 * record-btrace.c (record_btrace_insn_history): Add 'self'
4714 2014-02-19 Tom Tromey <tromey@redhat.com>
4716 * target.h (struct target_ops) <to_goto_record>: Add argument.
4717 * target.c (target_goto_record): Add argument.
4718 * record-full.c (record_full_goto): Add 'self' argument.
4719 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4721 2014-02-19 Tom Tromey <tromey@redhat.com>
4723 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4724 * target.c (target_goto_record_end): Add argument.
4725 * record-full.c (record_full_goto_end): Add 'self' argument.
4726 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * target.h (struct target_ops) <to_goto_record_begin>: Add
4732 * target.c (target_goto_record_begin): Add argument.
4733 * record-full.c (record_full_goto_begin): Add 'self' argument.
4734 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4737 2014-02-19 Tom Tromey <tromey@redhat.com>
4739 * target.h (struct target_ops) <to_record_is_replaying>: Add
4741 * target.c (target_record_is_replaying): Add argument.
4742 * record-full.c (record_full_is_replaying): Add 'self' argument.
4743 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4745 (record_btrace_xfer_partial, record_btrace_store_registers)
4746 (record_btrace_prepare_to_store, record_btrace_resume)
4747 (record_btrace_wait, record_btrace_decr_pc_after_break)
4748 (record_btrace_find_new_threads, record_btrace_thread_alive):
4751 2014-02-19 Tom Tromey <tromey@redhat.com>
4753 * target.h (struct target_ops) <to_delete_record>: Add argument.
4754 * target.c (target_delete_record): Add argument.
4755 * record-full.c (record_full_delete): Add 'self' argument.
4757 2014-02-19 Tom Tromey <tromey@redhat.com>
4759 * target.h (struct target_ops) <to_save_record>: Add argument.
4760 * target.c (target_save_record): Add argument.
4761 * record-full.c (record_full_save): Add 'self' argument.
4762 (record_full_save): Add 'self' argument.
4764 2014-02-19 Tom Tromey <tromey@redhat.com>
4766 * target.h (struct target_ops) <to_info_record>: Add argument.
4767 * target.c (target_info_record): Add argument.
4768 * record.c (info_record_command): Add argument.
4769 * record-full.c (record_full_info): Add 'self' argument.
4770 * record-btrace.c (record_btrace_info): Add 'self' argument.
4772 2014-02-19 Tom Tromey <tromey@redhat.com>
4774 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4775 * target.c (target_stop_recording): Add argument.
4776 * record.c (record_stop): Add argument.
4777 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4780 2014-02-19 Tom Tromey <tromey@redhat.com>
4782 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4783 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4784 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4786 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4787 (_initialize_amd64_linux_nat): Use it.
4788 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4789 (_initialize_i386_linux_nat): Use it.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4794 * target.c (target_teardown_btrace): Add argument.
4795 * remote.c (remote_teardown_btrace): Add 'self' argument.
4796 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4798 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4801 2014-02-19 Tom Tromey <tromey@redhat.com>
4803 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4804 * target.c (target_disable_btrace): Add argument.
4805 * remote.c (remote_disable_btrace): Add 'self' argument.
4806 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4808 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4811 2014-02-19 Tom Tromey <tromey@redhat.com>
4813 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4814 * target.c (target_enable_btrace): Add argument.
4815 * remote.c (remote_enable_btrace): Add 'self' argument.
4816 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4818 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4821 2014-02-19 Tom Tromey <tromey@redhat.com>
4823 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4824 (target_can_use_agent): Add argument.
4825 * target.c (update_current_target): Update.
4826 * remote.c (remote_can_use_agent): Add 'self' argument.
4827 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4829 2014-02-19 Tom Tromey <tromey@redhat.com>
4831 * target.h (struct target_ops) <to_use_agent>: Add argument.
4832 (target_use_agent): Add argument.
4833 * target.c (update_current_target): Update.
4834 * remote.c (remote_use_agent): Add 'self' argument.
4835 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4837 2014-02-19 Tom Tromey <tromey@redhat.com>
4839 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4840 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4841 (target_traceframe_info): Add argument.
4842 * target.c (update_current_target): Update.
4843 * remote.c (remote_traceframe_info): Add 'self' argument.
4844 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4846 2014-02-19 Tom Tromey <tromey@redhat.com>
4848 * target.h (target_static_tracepoint_markers_by_strid): Add
4850 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4852 * target.c (update_current_target): Update.
4853 * remote.c (struct target_ops)
4854 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4855 * linux-nat.c (struct target_ops)
4856 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4858 2014-02-19 Tom Tromey <tromey@redhat.com>
4860 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4862 (target_static_tracepoint_marker_at): Add argument.
4863 * target.c (update_current_target): Update.
4864 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4870 (target_set_permissions): Add argument.
4871 * target.c (update_current_target): Update.
4872 * remote.c (remote_set_permissions): Add 'self' argument.
4873 (remote_start_remote): Update.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4878 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4879 (target_get_tib_address): Add argument.
4880 * target.c (update_current_target): Update.
4881 * remote.c (remote_get_tib_address): Add 'self' argument.
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4886 (target_set_trace_notes): Add argument.
4887 * target.c (update_current_target): Update.
4888 * remote.c (remote_set_trace_notes): Add 'self' argument.
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4894 (target_set_trace_buffer_size): Add argument.
4895 * target.c (update_current_target): Update.
4896 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4898 2014-02-19 Tom Tromey <tromey@redhat.com>
4900 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4902 (target_set_circular_trace_buffer): Add argument.
4903 * target.c (update_current_target): Update.
4904 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4911 (target_set_disconnected_tracing): Add argument.
4912 * target.c (update_current_target): Update.
4913 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target.h (struct target_ops)
4918 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4919 (target_get_min_fast_tracepoint_insn_len): Add argument.
4920 * target.c (update_current_target): Update.
4921 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4924 2014-02-19 Tom Tromey <tromey@redhat.com>
4926 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4928 (target_get_raw_trace_data): Add argument.
4929 * target.c (update_current_target): Update.
4930 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4934 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4936 (target_upload_trace_state_variables): Add argument.
4937 * target.c (update_current_target): Update.
4938 * remote.c (remote_upload_trace_state_variables): Add 'self'
4940 (remote_start_remote): Update.
4942 2014-02-19 Tom Tromey <tromey@redhat.com>
4944 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4946 (target_upload_tracepoints): Add argument.
4947 * target.c (update_current_target): Update.
4948 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4949 (remote_start_remote): Update.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4954 (target_save_trace_data): Add argument.
4955 * target.c (update_current_target): Update.
4956 * remote.c (remote_save_trace_data): Add 'self' argument.
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4962 * target.h (struct target_ops)
4963 <to_get_trace_state_variable_value>: Add argument.
4964 (target_get_trace_state_variable_value): Add argument.
4965 * target.c (update_current_target): Update.
4966 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4968 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4970 2014-02-19 Tom Tromey <tromey@redhat.com>
4972 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4973 * target.h (struct target_ops) <to_trace_find>: Add argument.
4974 (target_trace_find): Add argument.
4975 * target.c (update_current_target): Update.
4976 * remote.c (remote_trace_find): Add 'self' argument.
4977 * ctf.c (ctf_trace_find): Add 'self' argument.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4982 (target_trace_stop): Add argument.
4983 * target.c (update_current_target): Update.
4984 * remote.c (remote_trace_stop): Add 'self' argument.
4986 2014-02-19 Tom Tromey <tromey@redhat.com>
4988 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4989 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4991 (target_get_tracepoint_status): Add argument.
4992 * target.c (update_current_target): Update.
4993 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4998 * target.h (struct target_ops) <to_get_trace_status>: Add
5000 (target_get_trace_status): Add argument.
5001 * target.c (update_current_target): Update.
5002 * remote.c (remote_get_trace_status): Add 'self' argument.
5003 (remote_start_remote, remote_can_download_tracepoint): Update.
5004 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5006 2014-02-19 Tom Tromey <tromey@redhat.com>
5008 * target.h (struct target_ops) <to_trace_start>: Add argument.
5009 (target_trace_start): Add argument.
5010 * target.c (update_current_target): Update.
5011 * remote.c (remote_trace_start): Add 'self' argument.
5013 2014-02-19 Tom Tromey <tromey@redhat.com>
5015 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5017 (target_trace_set_readonly_regions): Add argument.
5018 * target.c (update_current_target): Update.
5019 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5022 2014-02-19 Tom Tromey <tromey@redhat.com>
5024 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5026 (target_disable_tracepoint): Add argument.
5027 * target.c (update_current_target): Update.
5028 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5034 (target_enable_tracepoint): Add argument.
5035 * target.c (update_current_target): Update.
5036 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target.h (struct target_ops) <to_download_trace_state_variable>:
5042 (target_download_trace_state_variable): Add argument.
5043 * target.c (update_current_target): Update.
5044 * remote.c (remote_download_trace_state_variable): Add 'self'
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5049 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5051 (target_can_download_tracepoint): Add argument.
5052 * target.c (update_current_target): Update.
5053 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * target.h (struct target_ops) <to_download_tracepoint>: Add
5059 (target_download_tracepoint): Add argument.
5060 * target.c (update_current_target): Update.
5061 * remote.c (remote_download_tracepoint): Add 'self' argument.
5063 2014-02-19 Tom Tromey <tromey@redhat.com>
5065 * target.h (struct target_ops) <to_trace_init>: Add argument.
5066 (target_trace_init): Add argument.
5067 * target.c (update_current_target): Update.
5068 * remote.c (remote_trace_init): Add 'self' argument.
5070 2014-02-19 Tom Tromey <tromey@redhat.com>
5072 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5073 * target.c (target_fileio_readlink): Add argument.
5074 * remote.c (remote_hostio_readlink): Add 'self' argument.
5075 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5077 2014-02-19 Tom Tromey <tromey@redhat.com>
5079 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5080 * target.c (target_fileio_unlink): Add argument.
5081 * remote.c (remote_hostio_unlink): Add 'self' argument.
5082 (remote_file_delete): Update.
5083 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5088 * target.c (target_fileio_close): Add argument.
5089 * remote.c (remote_hostio_close): Add 'self' argument.
5090 (remote_hostio_close_cleanup): Update.
5091 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5093 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5098 * target.c (target_fileio_pread): Add argument.
5099 * remote.c (remote_hostio_pread): Add 'self' argument.
5100 (remote_bfd_iovec_pread, remote_file_get): Update.
5101 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5103 2014-02-19 Tom Tromey <tromey@redhat.com>
5105 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5106 * target.c (target_fileio_pwrite): Add argument.
5107 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5108 (remote_file_put): Update.
5109 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5111 2014-02-19 Tom Tromey <tromey@redhat.com>
5113 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5114 * target.c (target_fileio_open): Add argument.
5115 * remote.c (remote_hostio_open): Add 'self' argument.
5116 (remote_bfd_iovec_open): Add 'self' argument.
5117 (remote_file_put): Add 'self' argument.
5118 (remote_file_get): Add 'self' argument.
5119 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5125 (target_can_run_breakpoint_commands): Add argument.
5126 * target.c (update_current_target): Update.
5127 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5129 (remote_insert_breakpoint): Add 'self' argument.
5130 (remote_insert_hw_breakpoint): Add 'self' argument.
5131 (remote_can_run_breakpoint_commands): Add 'self' argument.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target.h (struct target_ops)
5136 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5137 (target_supports_evaluation_of_breakpoint_conditions): Add
5139 * target.c (update_current_target): Update.
5140 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5142 (remote_insert_breakpoint): Add 'self' argument.
5143 (remote_insert_hw_breakpoint): Add 'self' argument.
5144 (remote_supports_cond_breakpoints): Add 'self' argument.
5146 2014-02-19 Tom Tromey <tromey@redhat.com>
5148 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5150 (target_supports_string_tracing): Add argument.
5151 * target.c (update_current_target): Update.
5152 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5154 2014-02-19 Tom Tromey <tromey@redhat.com>
5156 * target.h (struct target_ops)
5157 <to_supports_disable_randomization>: Add argument.
5158 * target.c (find_default_supports_disable_randomization): Add
5160 (target_supports_disable_randomization): Add argument.
5161 (find_default_supports_disable_randomization): Add 'self'
5163 * remote.c (extended_remote_supports_disable_randomization): Add
5165 (remote_supports_disable_randomization): Add 'self' argument.
5166 (extended_remote_create_inferior): Update.
5167 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target.h (struct target_ops)
5173 <to_supports_enable_disable_tracepoint>: Add argument.
5174 (target_supports_enable_disable_tracepoint): Add argument.
5175 * target.c (update_current_target): Update.
5176 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target.h (struct target_ops) <to_supports_multi_process>: Add
5183 (target_supports_multi_process): Add argument.
5184 * target.c (update_current_target): Update.
5185 * remote.c (remote_supports_multi_process): Add 'self' argument.
5186 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5188 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * target.h (struct target_ops) <to_execution_direction>: Add
5195 (target_execution_direction): Add argument.
5196 * target.c (default_execution_direction): Add 'self' argument.
5197 * record-full.c (record_full_execution_direction): Add 'self'
5200 2014-02-19 Tom Tromey <tromey@redhat.com>
5202 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5204 (target_can_execute_reverse): Add argument.
5205 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5206 * record-full.c (record_full_can_execute_reverse): Add 'self'
5208 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5214 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5216 (target_get_ada_task_ptid): Add argument.
5217 * target.c (update_current_target): Update.
5218 (default_get_ada_task_ptid): Add 'self' argument.
5219 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5220 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5221 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5223 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5225 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5227 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5229 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5230 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5233 2014-02-19 Tom Tromey <tromey@redhat.com>
5235 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5236 (target_goto_bookmark): Add argument.
5237 * target.c (dummy_goto_bookmark): Add 'self' argument.
5238 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5240 2014-02-19 Tom Tromey <tromey@redhat.com>
5242 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5243 (target_get_bookmark): Add argument.
5244 * target.c (dummy_get_bookmark): Add 'self' argument.
5245 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5247 2014-02-19 Tom Tromey <tromey@redhat.com>
5249 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5251 (target_make_corefile_notes): Add argument.
5252 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5253 * procfs.c (procfs_make_note_section): Add 'self' argument.
5254 (procfs_make_note_section): Add 'self' argument.
5255 (procfs_make_note_section): Add 'self' argument.
5256 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5258 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5259 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5260 * exec.c (exec_make_note_section): Add 'self' argument.
5261 (exec_make_note_section): Add 'self' argument.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target.h (struct target_ops) <to_find_memory_regions>: Add
5267 (target_find_memory_regions): Add argument.
5268 * target.c (dummy_find_memory_regions): Add 'self' argument.
5269 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5270 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5271 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5272 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5273 * exec. (exec_do_find_memory_regions): New global.
5274 (exec_set_find_memory_regions): Rewrite.
5275 (exec_find_memory_regions): New function.
5276 (init_exec_ops): Use exec_find_memory_regions.
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5280 * target.h (struct target_ops) <to_supports_non_stop>: Add
5282 * target.c (find_default_supports_non_stop): Add argument.
5283 (target_supports_non_stop): Add argument.
5284 (find_default_supports_non_stop): Add 'self' argument.
5285 * remote.c (remote_supports_non_stop): Add 'self' argument.
5286 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5288 2014-02-19 Tom Tromey <tromey@redhat.com>
5290 * target.h (struct target_ops) <to_log_command>: Add argument.
5291 (target_log_command): Add argument.
5292 * serial.h (serial_log_command): Add 'self' argument.
5293 * serial.c (serial_log_command): Add 'self' argument.
5295 2014-02-19 Tom Tromey <tromey@redhat.com>
5297 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5298 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5300 (target_pid_to_exec_file): Add argument.
5301 * target.c (debug_to_pid_to_exec_file): Add argument.
5302 (update_current_target): Update.
5303 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5304 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5305 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5306 (linux_handle_extended_wait): Update.
5307 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5308 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5309 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5310 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target.h (struct target_ops) <to_rcmd>: Add argument.
5315 (target_rcmd): Add argument.
5316 * target.c (debug_to_rcmd): Add argument.
5317 (update_current_target, do_monitor_command): Update.
5318 * remote.c (remote_rcmd): Add 'self' argument.
5319 * monitor.c (monitor_rcmd): Add 'self' argument.
5321 2014-02-19 Tom Tromey <tromey@redhat.com>
5323 * windows-nat.c (windows_stop): Add 'self' argument.
5324 * target.h (struct target_ops) <to_stop>: Add argument.
5325 * target.c (target_stop): Add argument.
5326 (debug_to_stop): Add argument.
5327 (update_current_target): Update.
5328 * remote.c (remote_stop): Add 'self' argument.
5329 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5330 (gdbsim_cntrl_c): Update.
5331 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5332 * procfs.c (procfs_stop): Add 'self' argument.
5333 * nto-procfs.c (procfs_stop): Add 'self' argument.
5334 * monitor.c (monitor_stop): Add 'self' argument.
5335 (monitor_open): Update.
5336 * linux-nat.c (linux_nat_stop): Add argument.
5337 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5338 * gnu-nat.c (gnu_stop): Add 'self' argument.
5339 * darwin-nat.c (darwin_stop): Add 'self' argument.
5341 2014-02-19 Tom Tromey <tromey@redhat.com>
5343 * target.h (struct target_ops) <to_thread_name>: Add argument.
5344 * target.c (target_thread_name): Add argument.
5345 (update_current_target): Update.
5346 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * target.h (struct target_ops) <to_extra_thread_info>: Add
5352 (target_extra_thread_info): Add argument.
5353 * target.c (update_current_target): Update.
5354 * remote.c (remote_threads_extra_info): Add 'self' argument.
5355 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5357 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5358 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5359 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5361 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5363 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5365 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5368 2014-02-19 Tom Tromey <tromey@redhat.com>
5370 * target.h (struct target_ops) <to_program_signals>: Add argument.
5371 * target.c (target_program_signals): Add argument.
5372 * remote.c (remote_program_signals): Add 'self' argument.
5374 2014-02-19 Tom Tromey <tromey@redhat.com>
5376 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5377 * target.c (target_pass_signals): Add argument.
5378 * remote.c (remote_pass_signals): Add 'self' argument.
5379 (remote_start_remote): Update.
5380 * procfs.c (procfs_pass_signals): Add 'self' argument.
5381 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5382 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5383 (linux_nat_create_inferior, linux_nat_attach): Update.
5385 2014-02-19 Tom Tromey <tromey@redhat.com>
5387 * windows-nat.c (windows_can_run): Add 'self' argument.
5388 * target.h (struct target_ops) <to_can_run>: Add argument.
5389 (target_can_run): Add argument.
5390 * target.c (debug_to_can_run): Add argument.
5391 (update_current_target): Update.
5392 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5393 * inf-child.c (inf_child_can_run): Add 'self' argument.
5394 * go32-nat.c (go32_can_run): Add 'self' argument.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target.h (struct target_ops) <to_has_exited>: Add argument.
5399 (target_has_exited): Add argument.
5400 * target.c (debug_to_has_exited): Add argument.
5401 (update_current_target): Update.
5403 2014-02-19 Tom Tromey <tromey@redhat.com>
5405 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5407 (target_set_syscall_catchpoint): Add argument.
5408 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5410 * target.c (update_current_target): Update.
5412 2014-02-19 Tom Tromey <tromey@redhat.com>
5414 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5416 (target_remove_exec_catchpoint): Add argument.
5417 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5418 (update_current_target): Update.
5419 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5422 2014-02-19 Tom Tromey <tromey@redhat.com>
5424 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5426 (target_insert_exec_catchpoint): Add argument.
5427 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5428 (update_current_target): Update.
5429 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5432 2014-02-19 Tom Tromey <tromey@redhat.com>
5434 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5436 (target_remove_vfork_catchpoint): Add argument.
5437 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5438 (update_current_target): Update.
5439 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5442 2014-02-19 Tom Tromey <tromey@redhat.com>
5444 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5446 (target_insert_vfork_catchpoint): Add argument.
5447 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5448 (update_current_target): Update.
5449 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5452 2014-02-19 Tom Tromey <tromey@redhat.com>
5454 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5456 (target_remove_fork_catchpoint): Add argument.
5457 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5458 (update_current_target): Update.
5459 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5462 2014-02-19 Tom Tromey <tromey@redhat.com>
5464 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5466 (target_insert_fork_catchpoint): Add argument.
5467 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5468 (update_current_target): Update.
5469 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5476 (target_post_startup_inferior): Add argument.
5477 * target.c (debug_to_post_startup_inferior): Add argument.
5478 (update_current_target): Update.
5479 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5481 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5483 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5485 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5487 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5489 (super_post_startup_inferior): Likewise.
5490 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5492 (super_post_startup_inferior): Likewise.
5493 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5494 Add 'self' argument.
5495 (super_post_startup_inferior): Likewise.
5497 2014-02-19 Tom Tromey <tromey@redhat.com>
5499 * target.h (struct target_ops) <to_load>: Add argument.
5500 * target.c (target_load): Add argument.
5501 (debug_to_load): Add argument.
5502 (update_current_target): Update.
5503 * remote.c (remote_load): Add 'self' argument.
5504 * remote-sim.c (gdbsim_load): Add 'self' argument.
5505 * remote-mips.c (mips_load): Add 'self' argument.
5506 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5507 * monitor.c (monitor_load): Add 'self' argument.
5508 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5510 2014-02-19 Tom Tromey <tromey@redhat.com>
5512 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5513 (target_terminal_info): Add argument.
5514 * target.c (debug_to_terminal_info): Add argument.
5515 (default_terminal_info): Likewise.
5516 * inflow.c (child_terminal_info): Add 'self' argument.
5517 * inferior.h (child_terminal_info): Add 'self' argument.
5518 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5520 2014-02-19 Tom Tromey <tromey@redhat.com>
5522 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5524 (target_terminal_save_ours): Add argument.
5525 * target.c (debug_to_terminal_save_ours): Add argument.
5526 (update_current_target): Update.
5527 * inflow.c (terminal_save_ours): Add 'self' argument.
5528 * inferior.h (terminal_save_ours): Add 'self' argument.
5530 2014-02-19 Tom Tromey <tromey@redhat.com>
5532 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5533 (target_terminal_ours): Add argument.
5534 * target.c (debug_to_terminal_ours): Add argument.
5535 (update_current_target): Update.
5536 * remote.c (remote_terminal_ours): Add 'self' argument.
5537 (remote_close): Update.
5538 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5539 * inflow.c (terminal_ours): Add 'self' argument.
5540 * inferior.h (terminal_ours): Add 'self' argument.
5541 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5543 2014-02-19 Pedro Alves <palves@redhat.com>
5544 Tom Tromey <tromey@redhat.com>
5546 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5548 (target_terminal_ours_for_output): Add argument.
5549 * target.c (debug_to_terminal_ours_for_output): Add argument.
5550 (update_current_target): Update.
5551 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5552 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5553 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5555 2014-02-19 Tom Tromey <tromey@redhat.com>
5557 * target.h (struct target_ops) <to_terminal_inferior>: Add
5559 * target.c (target_terminal_inferior): Add argument.
5560 (update_current_target): Update.
5561 * remote.c (remote_terminal_inferior): Add 'self' argument.
5562 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5563 * inflow.c (terminal_inferior): Add 'self' argument.
5564 * inferior.h (terminal_inferior): Add 'self' argument.
5565 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5566 (go32_terminal_inferior): Add 'self' argument.
5568 2014-02-19 Tom Tromey <tromey@redhat.com>
5570 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5571 (target_terminal_init): Add argument.
5572 * target.c (debug_to_terminal_init): Add argument.
5573 (update_current_target): Update.
5574 * inflow.c (terminal_init_inferior): Add 'self' argument.
5575 * inferior.h (terminal_init_inferior): Add 'self' argument.
5576 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5577 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5579 2014-02-19 Tom Tromey <tromey@redhat.com>
5581 * target.h (struct target_ops)
5582 <to_can_accel_watchpoint_condition>: Add argument.
5583 (target_can_accel_watchpoint_condition): Add argument.
5584 * target.c (debug_to_can_accel_watchpoint_condition): Add
5586 (update_current_target): Update.
5587 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5590 2014-02-19 Tom Tromey <tromey@redhat.com>
5592 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5594 (target_region_ok_for_hw_watchpoint): Add argument.
5595 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5596 (default_region_ok_for_hw_watchpoint): Add argument.
5597 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5598 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5600 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5602 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5604 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5606 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5608 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5610 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5611 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5613 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5614 Add 'self' argument.
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5620 (target_insert_watchpoint): Add argument.
5621 * target.c (debug_to_insert_watchpoint): Add argument.
5622 (update_current_target): Update.
5623 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5624 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5625 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5626 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5627 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5628 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5630 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5631 (procfs_insert_hw_watchpoint): Add 'self' argument.
5632 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5634 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5636 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5638 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5639 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5641 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5644 2014-02-19 Tom Tromey <tromey@redhat.com>
5646 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5648 (target_remove_watchpoint): Add argument.
5649 * target.c (debug_to_remove_watchpoint): Add argument.
5650 (update_current_target): Update.
5651 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5652 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5653 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5654 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5655 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5656 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5658 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5659 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5661 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5663 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5665 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5666 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5668 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5671 2014-02-19 Tom Tromey <tromey@redhat.com>
5673 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5675 (target_remove_hw_breakpoint): Add argument.
5676 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5677 (update_current_target): Update.
5678 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5679 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5681 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5682 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5684 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5687 2014-02-19 Tom Tromey <tromey@redhat.com>
5689 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5691 (target_insert_hw_breakpoint): Add argument.
5692 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5693 (update_current_target): Update.
5694 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5695 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5697 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5698 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5699 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5701 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5704 2014-02-19 Tom Tromey <tromey@redhat.com>
5706 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5708 (target_can_use_hardware_watchpoint): Add argument.
5709 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5710 (update_current_target): Update.
5711 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5713 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5715 * remote.c (remote_check_watch_resources): Add 'self' argument.
5716 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5717 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5719 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5720 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5722 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5724 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5726 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5728 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5730 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5732 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5733 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5735 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target.h (struct target_ops) <to_post_attach>: Add argument.
5741 (target_post_attach): Add argument.
5742 * target.c (debug_to_post_attach): Add argument.
5743 (update_current_target): Update.
5744 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5745 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5746 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5747 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5748 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * windows-nat.c (windows_close): Add 'self' argument.
5753 * tracepoint.c (tfile_close): Add 'self' argument.
5754 * target.h (struct target_ops) <to_close>: Add argument.
5755 * target.c (target_close): Add argument.
5756 (update_current_target): Update.
5757 * remote.c (remote_close): Add 'self' argument.
5758 * remote-sim.c (gdbsim_close): Add 'self' argument.
5759 * remote-mips.c (mips_close): Add 'self' argument.
5760 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5761 * record-full.c (record_full_close): Add 'self' argument.
5762 * record-btrace.c (record_btrace_close): Add 'self' argument.
5763 * monitor.h (monitor_close): Add 'self' argument.
5764 * monitor.c (monitor_close): Add 'self' argument.
5765 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5766 * linux-nat.c (linux_nat_close): Add argument.
5767 * go32-nat.c (go32_close): Add 'self' argument.
5768 * exec.c (exec_close_1): Add 'self' argument.
5769 * ctf.c (ctf_close): Add 'self' argument.
5770 * corelow.c (core_close): Add 'self' argument.
5771 (core_close_cleanup): Update.
5772 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5773 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * remote.c (remote_load): New function.
5778 (init_remote_ops): Use it.
5780 2014-02-19 Tom Tromey <tromey@redhat.com>
5782 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5784 * common/linux-btrace.h (linux_supports_btrace): Update.
5785 * remote.c (remote_supports_btrace): Add "self" argument.
5786 * target-delegates.c: Rebuild.
5787 * target.c (target_supports_btrace): Remove.
5788 * target.h (struct target_ops) <to_supports_btrace>: Add
5789 target_ops argument.
5790 (target_supports_btrace): New define.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * record-full.c (record_full_beneath_to_resume_ops)
5795 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5796 (record_full_beneath_to_wait)
5797 (record_full_beneath_to_store_registers_ops)
5798 (record_full_beneath_to_store_registers)
5799 (record_full_beneath_to_xfer_partial_ops)
5800 (record_full_beneath_to_xfer_partial)
5801 (record_full_beneath_to_insert_breakpoint_ops)
5802 (record_full_beneath_to_insert_breakpoint)
5803 (record_full_beneath_to_remove_breakpoint_ops)
5804 (record_full_beneath_to_remove_breakpoint)
5805 (record_full_beneath_to_stopped_by_watchpoint)
5806 (record_full_beneath_to_stopped_data_address)
5807 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5808 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5809 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5810 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5811 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5812 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5813 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5814 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5815 (record_full_resume, record_full_wait_1)
5816 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5817 (record_full_store_registers, record_full_xfer_partial)
5818 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5819 (record_full_async, record_full_core_xfer_partial): Use target
5821 * target-delegates.c: Rebuild.
5822 * target.c (current_xfer_partial): Remove.
5823 (update_current_target): Do not INHERIT or de_fault
5824 to_insert_breakpoint, to_remove_breakpoint,
5825 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5826 to_is_async_p, to_async. Do not set to_xfer_partial field.
5827 (default_xfer_partial): Simplify.
5828 (current_xfer_partial): Remove.
5829 (target_wait, target_resume): Simplify.
5830 (find_default_can_async_p, find_default_is_async_p): Update.
5831 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5832 to_xfer_partial, to_stopped_by_watchpoint,
5833 to_stopped_data_address.
5834 (target_store_registers): Simplify.
5835 (forward_target_remove_breakpoint)
5836 (forward_target_insert_breakpoint): Remove.
5837 (target_remove_breakpoint, target_insert_breakpoint)
5838 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5839 * target.h (struct target_ops) <to_resume, to_wait,
5840 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5841 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5842 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5844 (forward_target_remove_breakpoint)
5845 (forward_target_insert_breakpoint): Remove.
5846 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5848 (record_btrace_insert_breakpoint): Delegate directly.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5853 * target-delegates.c: New file.
5854 * target.c: Include target-delegates.c.
5855 (init_dummy_target): Call install_dummy_methods.
5856 (complete_target_initialization): Call install_delegators.
5857 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5858 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5859 * make-target-delegates: New file.
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * record.c (find_record_target): Use find_target_at.
5864 * target.c (find_target_at): New function.
5865 * target.h (find_target_at): Declare.
5867 2014-02-19 Tom Tromey <tromey@redhat.com>
5869 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5871 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5873 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5874 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5876 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5878 * linux-nat.c (save_sigtrap): Update.
5879 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5880 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5881 (linux_nat_close): Update.
5882 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5884 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5886 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5887 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5888 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5889 (tmp_to_async): Add 'ops' argument.
5890 (record_full_stopped_by_watchpoint, record_full_async)
5891 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5893 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5894 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5895 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5896 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5897 (remote_is_async_p, remote_async): Add 'ops' argument.
5898 (remote_stopped_data_address): Update.
5899 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5900 * target.c (update_current_target)
5901 (find_default_can_async_p, find_default_is_async_p): Update.
5902 (init_dummy_target): Update.
5903 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5904 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5905 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5906 (target_can_async_p, target_is_async_p, target_async)
5907 (target_stopped_by_watchpoint): Update.
5909 2014-02-19 Yao Qi <yao@codesourcery.com>
5912 * gdbarch.sh: Remove startup_gdbarch.
5913 * gdbarch.c: Regenerated.
5914 * gdbarch.h: Likewise.
5916 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5918 * rl78-tdep.c (rl78_g10_register_name): New function.
5919 (rl78_return_value): Add g10 support.
5920 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5923 2014-02-17 Doug Evans <xdje42@gmail.com>
5925 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5926 (SUBDIR_GUILE_SRCS): Ditto.
5927 (scm-gsmob.o): Ditto.
5929 2014-02-17 Yao Qi <yao@codesourcery.com>
5931 * gnu-nat.c (ILL_RPC): Declare defined function.
5933 2014-02-17 Yao Qi <yao@codesourcery.com>
5935 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5936 mach_msg_type_number_t.
5937 (gnu_write_inferior): Likewise.
5939 2014-02-17 Yao Qi <yao@codesourcery.com>
5941 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5943 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5944 (inf_validate_procs, inf_signal): Likewise.
5945 (S_exception_raise_request): Likewise.
5946 (do_mach_notify_dead_name): Likewise.
5947 (steal_exc_port): Likewise.
5948 (gnu_read_inferior): Change 'copy_count''s type to
5949 mach_msg_type_number_t.
5950 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5953 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5955 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5956 flag. Adjust all users; in particular...
5957 (gnu_wait): ..., don't decrement its value in here...
5958 (gnu_create_inferior): ..., and instead set the flag in here,
5959 around the startup_inferior call, and call that one with
5960 START_INFERIOR_TRAPS_EXPECTED.
5962 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5963 (ILL_RPC): ... new macro.
5964 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5965 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5966 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5967 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5968 functions with ILL_RPC macro.
5969 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5970 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5971 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5972 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5973 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5974 (S_proc_getlogin_reply, S_proc_getsid_reply)
5975 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5976 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5977 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5978 (S_proc_getnports_reply, S_proc_is_important_reply)
5979 (S_proc_get_code_reply): New stub functions, generated with
5982 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5983 collected the type check structures.
5985 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5987 2014-02-14 Doug Evans <dje@google.com>
5989 * target.c (target_write_partial): Fix result type.
5991 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5993 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5994 the proper offsets to access fpregset_t.
5996 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5998 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5999 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6000 * h8300-tdep.c (setmachinelist): Remove global.
6001 * hppa-tdep.c (hppa_sigtramp): Remove global.
6002 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6003 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6004 * ravenscar-thread.c (update_target_observer): Remove global.
6005 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6007 2014-02-12 Tom Tromey <tromey@redhat.com>
6009 * common/rsp-low.c: Update comments.
6010 * common/rsp-low.h: Update comments.
6012 2014-02-12 Tom Tromey <tromey@redhat.com>
6014 * common/rsp-low.c (convert_ascii_to_int): Remove.
6015 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6017 2014-02-12 Tom Tromey <tromey@redhat.com>
6019 * common/rsp-low.h (unhexify): Don't declare.
6020 * common/rsp-low.c (unhexify): Remove.
6022 2014-02-12 Tom Tromey <tromey@redhat.com>
6024 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6025 * common/rsp-low.c (convert_int_to_ascii): Remove.
6027 2014-02-12 Tom Tromey <tromey@redhat.com>
6029 * common/rsp-low.h (hexify): Don't declare.
6030 * common/rsp-low.c (hexify): Remove.
6032 2014-02-12 Tom Tromey <tromey@redhat.com>
6034 * common/rsp-low.c (hexify): Never take strlen of argument.
6036 2014-02-12 Tom Tromey <tromey@redhat.com>
6038 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6039 * remote.c (extended_remote_run, remote_rcmd)
6040 (remote_download_trace_state_variable, remote_save_trace_data)
6041 (remote_set_trace_notes): Update.
6042 * tracepoint.c (encode_source_string, tfile_write_status)
6043 (tfile_write_uploaded_tsv): Update.
6045 2014-02-12 Tom Tromey <tromey@redhat.com>
6047 * tracepoint.c: Include rsp-low.h.
6048 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6049 * remote.c: Include rsp-low.h.
6050 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6051 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6052 (remote_unescape_input): Move to common/rsp-low.c.
6053 * common/rsp-low.h: New file.
6054 * common/rsp-low.c: New file.
6055 * Makefile.in (SFILES): Add common/rsp-low.c.
6056 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6057 (COMMON_OBS): Add rsp-low.o.
6058 (rsp-low.o): New target.
6060 2014-02-12 Tom Tromey <tromey@redhat.com>
6062 * utils.h: Include print-utils.h.
6063 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6064 (int_string, core_addr_to_string, core_addr_to_string_nz)
6065 (hex_string, hex_string_custom): Don't declare.
6066 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6067 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6068 (hex_string_custom, int_string, core_addr_to_string)
6069 (core_addr_to_string_nz, host_address_to_string): Move to
6070 common/print-utils.c.
6071 * common/print-utils.h: New file.
6072 * common/print-utils.c: New file
6073 * Makefile.in (SFILES): Add common/print-utils.c.
6074 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6075 (COMMON_OBS): Add print-utils.o.
6076 (print-utils.o): New target.
6078 2014-02-12 Tom Tromey <tromey@redhat.com>
6080 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6082 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6084 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6086 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6088 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6089 if a PT_IO ptrace request returns sucessfully but indicates that 0
6090 bytes were transferred.
6092 2014-02-12 Pedro Alves <palves@redhat.com>
6093 Kevin Buettner <kevinb@redhat.com>
6095 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6096 TYPE_INSTANCE_FLAG_CODE_SPACE.
6098 2014-02-12 Pedro Alves <palves@redhat.com>
6100 * h8300-tdep.c (pseudo_from_raw_register)
6101 (raw_from_pseudo_register): New functions.
6102 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6105 2014-02-12 Pedro Alves <palves@redhat.com>
6107 * h8300-tdep.c (h8300_register_sim_regno): New function.
6108 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6109 gdbarch_register_sim_regno hook.
6111 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6113 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6115 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6117 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6119 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6121 * obsd-tdep.h (obsd_init_abi): New prototype.
6122 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6123 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6124 (obsd_init_abi): New functions.
6125 * i386obsd-tdep.c: Include "obsd-tdep.h".
6126 (i386obsd_init_abi): Call obsd_init_abi.
6127 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6128 (amd64obsd_init_abi): Call obsd_init_abi.
6129 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6130 obsd-tdep.c to gdb_target_obs.
6132 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6134 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6135 double float arguments to 16-byte in the argument slots.
6137 2014-02-11 Doug Evans <xdje42@gmail.com>
6139 * configure.ac: Don't crash if pkg-config is not found and guile
6140 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6142 * configure: Regenerate.
6144 2014-02-11 Yao Qi <yao@codesourcery.com>
6146 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6147 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6148 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6149 * gnu-nat.c (gnu_xfer_memory): Likewise.
6150 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6151 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6152 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6153 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6155 2014-02-11 Yao Qi <yao@codesourcery.com>
6157 * target.h (enum target_xfer_error): Rename to ...
6158 (enum target_xfer_status): ... it. New. All users updated.
6159 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6161 (TARGET_XFER_STATUS_ERROR_P): New macro.
6162 (target_xfer_error_to_string): Remove declaration.
6163 (target_xfer_status_to_string): Declare.
6164 (target_xfer_partial_ftype): Adjust it.
6165 (struct target_ops) <to_xfer_partial>: Return
6166 target_xfer_status. Add argument xfered_len. Update
6168 * target.c (target_xfer_error_to_string): Rename to ...
6169 (target_xfer_status_to_string): ... it. New. All callers
6171 (target_read_live_memory): Likewise. Call target_xfer_partial
6172 instead of target_read.
6173 (memory_xfer_live_readonly_partial): Return
6174 target_xfer_status. Add argument xfered_len.
6175 (raw_memory_xfer_partial): Likewise.
6176 (memory_xfer_partial_1): Likewise.
6177 (memory_xfer_partial): Likewise.
6178 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6179 properly. Update debug message.
6180 (default_xfer_partial, current_xfer_partial): Likewise.
6181 (target_write_partial): Likewise.
6182 (target_read_partial): Likewise. All callers updated.
6183 (read_whatever_is_readable): Likewise.
6184 (target_write_with_progress): Likewise.
6185 (target_read_alloc_1): Likewise.
6187 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6188 * auxv.c (procfs_xfer_auxv): Likewise.
6189 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6190 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6191 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6192 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6193 * corefile.c (read_memory): Adjust.
6194 * corelow.c (core_xfer_partial): Likewise.
6195 * ctf.c (ctf_xfer_partial): Likewise.
6196 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6198 (darwin_xfer_partial): Likewise.
6199 * exec.c (section_table_xfer_memory_partial): Likewise. All
6201 (exec_xfer_partial): Likewise.
6202 * exec.h (section_table_xfer_memory_partial): Update
6204 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6206 (gnu_xfer_partial): Likewise.
6207 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6208 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6209 (ia64_hpux_xfer_solib_got): Likewise.
6210 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6211 type of 'partial_len' to ULONGEST.
6212 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6213 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6214 (linux_nat_xfer_partial): Likewise.
6215 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6216 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6217 * monitor.c (monitor_xfer_memory): Likewise.
6218 (monitor_xfer_partial): Likewise.
6219 * procfs.c (procfs_xfer_partial): Likewise.
6220 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6221 * record-full.c (record_full_xfer_partial): Likewise.
6222 (record_full_core_xfer_partial): Likewise.
6223 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6224 (gdbsim_xfer_partial): Likewise.
6225 * remote.c (remote_write_bytes_aux): Likewise. All callers
6227 (remote_write_bytes, remote_read_bytes): Likewise. All
6229 (remote_flash_erase): Likewise. All callers updated.
6230 (remote_write_qxfer): Likewise. All callers updated.
6231 (remote_read_qxfer): Likewise. All callers updated.
6232 (remote_xfer_partial): Likewise.
6233 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6234 (rs6000_xfer_shared_libraries): Likewise.
6235 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6236 (sol_thread_xfer_partial): Likewise.
6237 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6238 (sparc_xfer_partial): Likewise.
6239 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6241 (spu_xfer_partial): Likewise.
6242 * spu-multiarch.c (spu_xfer_partial): Likewise.
6243 * tracepoint.c (tfile_xfer_partial): Likewise.
6244 * windows-nat.c (windows_xfer_memory): Likewise.
6245 (windows_xfer_shared_libraries): Likewise.
6246 (windows_xfer_partial): Likewise.
6247 * valprint.c: Replace 'target_xfer_error' with
6248 'target_xfer_status' in comments.
6250 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6252 Checked in by Joel Brobecker <brobecker@adacore.com>.
6253 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6255 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6257 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6258 function parameters.
6260 2014-02-10 Will Newton <will.newton@linaro.org>
6262 * elfread.c (elf_rel_plt_read): Look for a .got section if
6263 looking up .got.plt fails.
6264 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6265 on address passed to elf_gnu_ifunc_record_cache.
6266 (elf_gnu_ifunc_resolve_addr): Likewise.
6267 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6269 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6271 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6272 (X_RETTURN): New macro.
6273 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6275 * sparc64-tdep.c (sparc64_init_abi): Hook
6276 sparc_in_function_epilogue_p.
6278 2014-02-10 Gary Benson <gbenson@redhat.com>
6280 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6281 Rename name_matcher to symbol_matcher.
6283 2014-02-10 Gary Benson <gbenson@redhat.com>
6285 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6286 Use expand_symtabs_file_matcher_ftype and
6287 expand_symtabs_symbol_matcher_ftype.
6289 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6291 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6292 (struct ada_symbol_cache): New.
6293 (ada_free_symbol_cache): Forward declare.
6294 (struct ada_pspace_data): New.
6295 (ada_pspace_data_handle): New static global.
6296 (get_ada_pspace_data, ada_pspace_data_cleanup)
6297 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6298 (cache_space, cache): Delete, now folded inside struct
6300 (ada_get_symbol_cache): New function.
6301 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6303 (_initialize_ada_language): Remove initialization of cache_space.
6304 Move call to observer_attach_inferior_exit up, grouping it
6305 with the other observer registrations inside this function.
6306 Rename command to be more general. Add call to
6307 register_program_space_data_with_cleanup.
6309 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6311 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6312 ada_new_objfile_observer.
6313 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6314 (_initialize_tasks): Update uses of ada_new_objfile_observer
6315 and ada_tasks_normal_stop_observer.
6317 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6319 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6320 returned by the 'Length attribute to integer.
6322 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6324 * ada-lang.c (_initialize_ada_language): Initialize
6325 cache_space obstack.
6327 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6329 * ada-lang.c (HASH_SIZE): New macro.
6330 (struct cache_entry): New type.
6331 (cache_space, cache): New static globals.
6332 (ada_clear_symbol_cache, find_entry): New functions.
6333 (lookup_cached_symbol, cache_symbol): Implement.
6334 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6335 (_initialize_ada_language): Attach ada_new_objfile_observer
6336 and ada_free_objfile_observer.
6338 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6340 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6341 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6342 struct block * parameter.
6343 (ada_lookup_symbol_list_worker): Constify local variable "block".
6344 Remove cast which is no longer necessary.
6346 2014-02-10 Doug Evans <xdje42@gmail.com>
6348 Add Guile as an extension language.
6349 * NEWS: Mention Guile scripting.
6350 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6351 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6352 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6353 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6354 (CLIBS): Add GUILE_LIBS.
6355 (install-guile): New rule.
6356 (guile.o): New rule.
6357 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6358 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6359 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6360 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6361 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6362 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6363 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6364 * configure.ac: New option --with-guile.
6365 * configure: Regenerate.
6366 * config.in: Regenerate.
6367 * auto-load.c: Remove #include "python/python.h". Add #include
6368 "gdb/section-scripts.h".
6369 (source_section_scripts): Handle Guile scripts.
6370 (_initialize_auto_load): Add name of Guile objfile script to
6371 scripts-directory help text.
6372 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6373 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6374 (struct breakpoint): New member scm_bp_object.
6375 * defs.h (enum command_control_type): New value guile_control.
6376 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6378 (show_user): Update comment.
6379 (_initialize_cli_cmds): Update help text for "show user". Update help
6380 text for max-user-call-depth.
6381 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6383 (multi_line_command_p): Add guile_control.
6384 (print_command_lines): Handle guile_control.
6385 (execute_control_command, recurse_read_control_structure): Ditto.
6386 (process_next_line): Recognize "guile" commands.
6387 * disasm.c (gdb_disassemble_info): Make non-static.
6388 * disasm.h: #include "dis-asm.h".
6389 (struct gdbarch): Add forward decl.
6390 (gdb_disassemble_info): Declare.
6391 * extension.c: #include "guile/guile.h".
6392 (extension_languages): Add guile.
6393 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6394 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6395 * gdbtypes.c (get_unsigned_type_max): New function.
6396 (get_signed_type_minmax): New function.
6397 * gdbtypes.h (get_unsigned_type_max): Declare.
6398 (get_signed_type_minmax): Declare.
6399 * guile/README: New file.
6400 * guile/guile-internal.h: New file.
6401 * guile/guile.c: New file.
6402 * guile/guile.h: New file.
6403 * guile/scm-arch.c: New file.
6404 * guile/scm-auto-load.c: New file.
6405 * guile/scm-block.c: New file.
6406 * guile/scm-breakpoint.c: New file.
6407 * guile/scm-disasm.c: New file.
6408 * guile/scm-exception.c: New file.
6409 * guile/scm-frame.c: New file.
6410 * guile/scm-gsmob.c: New file.
6411 * guile/scm-iterator.c: New file.
6412 * guile/scm-lazy-string.c: New file.
6413 * guile/scm-math.c: New file.
6414 * guile/scm-objfile.c: New file.
6415 * guile/scm-ports.c: New file.
6416 * guile/scm-pretty-print.c: New file.
6417 * guile/scm-safe-call.c: New file.
6418 * guile/scm-string.c: New file.
6419 * guile/scm-symbol.c: New file.
6420 * guile/scm-symtab.c: New file.
6421 * guile/scm-type.c: New file.
6422 * guile/scm-utils.c: New file.
6423 * guile/scm-value.c: New file.
6424 * guile/lib/gdb.scm: New file.
6425 * guile/lib/gdb/boot.scm: New file.
6426 * guile/lib/gdb/experimental.scm: New file.
6427 * guile/lib/gdb/init.scm: New file.
6428 * guile/lib/gdb/iterator.scm: New file.
6429 * guile/lib/gdb/printing.scm: New file.
6430 * guile/lib/gdb/types.scm: New file.
6431 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6432 (VPATH): Add $(GUILE_SRCDIR).
6433 (GUILE_DIR): New variable.
6434 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6435 (all): Add stamp-guile dependency.
6436 (stamp-guile): New rule.
6437 (clean-guile, install-guile, uninstall-guile): New rules.
6438 (install-only): Add install-guile dependency.
6439 (uninstall): Add uninstall-guile dependency.
6440 (clean): Add clean-guile dependency.
6442 2014-02-09 Doug Evans <xdje42@gmail.com>
6444 Revert this patch (which I approved, mea culpa).
6446 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6448 * Makefile.in (all-lib): Remove.
6449 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6451 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6453 Fix Python stack corruption.
6454 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6457 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6459 * Makefile.in (all-lib): Remove.
6460 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6462 2014-02-07 Doug Evans <dje@google.com>
6464 * extension-priv.h (extension_language_script_ops): Add comment.
6465 (extension_language_ops): Add comment.
6466 (active_ext_lang_state): Fix typo in comment.
6468 2014-02-07 Pedro Alves <palves@redhat.com>
6470 PR breakpoints/16292
6471 * infrun.c (handle_signal_stop) <signal arrives while stepping
6472 over a breakpoint>: Switch back to the stepping thread.
6474 2014-02-07 Yao Qi <yao@codesourcery.com>
6476 * target.c (target_xfer_partial): Return zero if LEN is zero.
6478 2014-02-07 Yao Qi <yao@codesourcery.com>
6480 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6481 (ld_so_xfer_auxv): Likewise.
6482 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6483 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6484 * corelow.c (core_xfer_partial): Likewise.
6485 * ctf.c (ctf_xfer_partial): Likewise.
6486 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6487 (darwin_xfer_partial): Likewise.
6488 * exec.c (exec_xfer_partial): Likewise.
6489 * gnu-nat.c (gnu_xfer_partial): Likewise.
6490 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6491 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6492 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6493 * linux-nat.c (linux_xfer_siginfo): Likewise.
6494 (linux_proc_xfer_spu): Likewise.
6495 * procfs.c (procfs_xfer_partial): Likewise.
6496 * record-full.c (record_full_xfer_partial): Likewise.
6497 (record_full_core_xfer_partial): Likewise.
6498 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6499 * remote.c (remote_write_qxfer): Likewise.
6500 (remote_write_qxfer, remote_read_qxfer): Likewise.
6501 (remote_xfer_partial): Likewise.
6502 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6503 (rs6000_xfer_shared_libraries): Likewise.
6504 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6505 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6506 (spu_xfer_partial): Likewise.
6507 * target.c (memory_xfer_partial_1): Likewise.
6508 * tracepoint.c (tfile_xfer_partial): Likewise.
6509 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6510 (windows_xfer_partial): Likewise.
6512 2014-02-07 Yao Qi <yao@codesourcery.com>
6514 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6516 (core_xfer_shared_libraries_aix): Likewise.
6517 * gdbarch.c, gdbarch.h: Regenerated.
6518 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6519 ULONGEST. Change 'len_avail' type to ULONGEST.
6520 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6521 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6523 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6525 2014-02-07 Yao Qi <yao@codesourcery.com>
6527 * corefile.c (memory_error): Get 'exception' from ERR and pass
6528 'exception' to throw_error.
6530 2014-02-06 Doug Evans <xdje42@gmail.com>
6532 * configure.ac (libpython checking): Remove all but python.o from
6533 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6534 * configure: Regenerate.
6536 * Makefile.in (SFILES): Add extension.c.
6537 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6538 (COMMON_OBS): Add extension.o.
6539 * extension.h: New file.
6540 * extension-priv.h: New file.
6541 * extension.c: New file.
6543 * python/python-internal.h: #include "extension.h".
6544 (gdbpy_auto_load_enabled): Declare.
6545 (gdbpy_apply_val_pretty_printer): Declare.
6546 (gdbpy_apply_frame_filter): Declare.
6547 (gdbpy_preserve_values): Declare.
6548 (gdbpy_breakpoint_cond_says_stop): Declare.
6549 (gdbpy_breakpoint_has_cond): Declare.
6550 (void source_python_script_for_objfile): Delete.
6551 * python/python.c: #include "extension-priv.h".
6552 Delete inclusion of "observer.h".
6553 (extension_language_python): Moved here and renamed from
6554 script_language_python in py-auto-load.c.
6555 Redefined to be of type extension_language_defn.
6556 (python_extension_script_ops): New global.
6557 (python_extension_ops): New global.
6558 (struct python_env): New member previous_active.
6559 (restore_python_env): Call restore_active_ext_lang.
6560 (ensure_python_env): Call set_active_ext_lang.
6561 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6563 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6565 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6567 (gdbpy_eval_from_control_command): Renamed from
6568 eval_python_from_control_command, made static. New arg extlang.
6569 (gdbpy_source_script) Renamed from source_python_script, made static.
6571 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6572 result to int. New arg extlang.
6573 (gdbpy_source_objfile_script): Renamed from
6574 source_python_script_for_objfile, made static. New arg extlang.
6575 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6576 static. New args extlang, extlang_printers. Change result type to
6578 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6579 static. New arg extlang. Rename arg printers to extlang_printers
6580 and change type to ext_lang_type_printers *.
6581 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6582 static. Replace argument arg with extlang, extlang_printers.
6583 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6584 (!HAVE_PYTHON, source_python_script): Delete.
6585 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6586 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6587 (!HAVE_PYTHON, start_type_printers): Delete.
6588 (!HAVE_PYTHON, apply_type_printers): Delete.
6589 (!HAVE_PYTHON, free_type_printers): Delete.
6590 (_initialize_python): Delete call to observer_attach_before_prompt.
6591 (finalize_python): Set/restore active extension language.
6592 (gdbpy_finish_initialization) Renamed from
6593 finish_python_initialization, made static. New arg extlang.
6594 (gdbpy_initialized): New function.
6595 * python/python.h: #include "extension.h". Delete #include
6596 "value.h", "mi/mi-cmds.h".
6597 (extension_language_python): Declare.
6598 (GDBPY_AUTO_FILE_NAME): Delete.
6599 (enum py_bt_status): Moved to extension.h and renamed to
6601 (enum frame_filter_flags): Moved to extension.h.
6602 (enum py_frame_args): Moved to extension.h and renamed to
6603 ext_lang_frame_args.
6604 (finish_python_initialization): Delete.
6605 (eval_python_from_control_command): Delete.
6606 (source_python_script): Delete.
6607 (apply_val_pretty_printer): Delete.
6608 (apply_frame_filter): Delete.
6609 (preserve_python_values): Delete.
6610 (gdbpy_script_language_defn): Delete.
6611 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6612 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6614 * auto-load.c: #include "extension.h".
6615 (GDB_AUTO_FILE_NAME): Delete.
6616 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6617 (script_language_gdb): Delete, moved to extension.c and renamed to
6618 extension_language_gdb.
6619 (source_gdb_script_for_objfile): Delete.
6620 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6621 (loaded_script): Change type of language member to
6622 struct extension_language_defn *.
6623 (init_loaded_scripts_info): Initialize
6624 unsupported_script_warning_printed.
6625 (maybe_add_script): Make static. Change type of language arg to
6626 struct extension_language_defn *.
6627 (clear_section_scripts): Reset unsupported_script_warning_printed.
6628 (auto_load_objfile_script_1): Rewrite to use extension language API.
6629 (auto_load_objfile_script): Make public. Remove support-compiled-in
6630 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6631 (source_section_scripts): Rewrite to use extension language API.
6632 (load_auto_scripts_for_objfile): Rewrite to use
6633 auto_load_scripts_for_objfile.
6634 (collect_matching_scripts_data): Change type of language member to
6635 struct extension_language_defn *.
6636 (auto_load_info_scripts): Change type of language arg to
6637 struct extension_language_defn *.
6638 (unsupported_script_warning_print): New function.
6639 (script_not_found_warning_print): Make static.
6640 (_initialize_auto_load): Rewrite construction of scripts-directory
6642 * auto-load.h (struct objfile): Add forward decl.
6643 (struct script_language): Delete.
6644 (struct auto_load_pspace_info): Add forward decl.
6645 (struct extension_language_defn): Add forward decl.
6646 (maybe_add_script): Delete.
6647 (auto_load_objfile_script): Declare.
6648 (script_not_found_warning_print): Delete.
6649 (auto_load_info_scripts): Update prototype.
6650 (auto_load_gdb_scripts_enabled): Declare.
6651 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6652 auto_load_python_scripts_enabled and made public.
6653 (script_language_python): Delete, moved to python.c.
6654 (gdbpy_script_language_defn): Delete.
6655 (info_auto_load_python_scripts): Update to use
6656 extension_language_python.
6658 * breakpoint.c (condition_command): Replace call to
6659 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6660 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6661 with call to breakpoint_ext_lang_cond_says_stop.
6662 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6663 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6664 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6665 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6667 (local_setattro): Print name of extension language with existing
6670 * valprint.c (val_print, value_print): Update to call
6671 apply_ext_lang_val_pretty_printer.
6672 * cp-valprint.c (cp_print_value): Update call to
6673 apply_ext_lang_val_pretty_printer.
6674 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6675 (gdbpy_apply_val_pretty_printer): Renamed from
6676 apply_val_pretty_printer. New arg extlang.
6677 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6679 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6680 extension language API.
6681 * cli/cli-script.c (execute_control_command): Update to call
6682 eval_ext_lang_from_control_command.
6684 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6685 enum ext_lang_bt_status values. Update call to
6686 apply_ext_lang_frame_filter.
6687 (mi_cmd_stack_list_locals): Ditto.
6688 (mi_cmd_stack_list_args): Ditto.
6689 (mi_cmd_stack_list_variables): Ditto.
6690 * mi/mi-main.c: Delete #include "python/python-internal.h".
6691 Add #include "extension.h".
6692 (mi_cmd_list_features): Replace reference to python internal variable
6693 gdb_python_initialized with call to ext_lang_initialized_p.
6695 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6696 Update to use enum ext_lang_frame_args. Update to call
6697 apply_ext_lang_frame_filter.
6698 * python/py-framefilter.c (extract_sym): Update to use enum
6700 (extract_value, py_print_type, py_print_value): Ditto.
6701 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6702 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6703 (py_print_frame): Ditto.
6704 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6705 New arg extlang. Update to use enum ext_lang_bt_status.
6707 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6708 finish_python_initialization. Replace with call to
6709 finish_ext_lang_initialization.
6711 * typeprint.c (do_free_global_table): Update to call
6712 free_ext_lang_type_printers.
6713 (create_global_typedef_table): Update to call
6714 start_ext_lang_type_printers.
6715 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6716 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6717 (type_print_options): Change type of global_printers from "void *"
6718 to "struct ext_lang_type_printers *".
6720 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6721 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6722 (gdbpy_preserve_values): Renamed from preserve_python_values.
6724 (!HAVE_PYTHON, preserve_python_values): Delete.
6726 * utils.c (quit_flag): Delete, moved to extension.c.
6727 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6730 * eval.c: Delete #include "python/python.h".
6731 * main.c: Delete #include "python/python.h".
6733 * defs.h: Update comment.
6735 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6739 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6741 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6744 2014-02-05 Yao Qi <yao@codesourcery.com>
6746 * remote.c (remote_pass_signals): Remove local 'buf' and use
6748 (remote_program_signals): Likewise.
6750 2014-02-05 Yao Qi <yao@codesourcery.com>
6752 * ctf.c: Include "inferior.h" and "gdbthread.h".
6753 (CTF_PID): A new macro.
6754 (ctf_open): Call inferior_appeared and add_thread_silent.
6755 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6756 (ctf_thread_alive): New function.
6757 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6759 2014-02-05 Yao Qi <yao@codesourcery.com>
6763 2013-05-24 Yao Qi <yao@codesourcery.com>
6765 * tracepoint.c (TFILE_PID): Remove.
6766 (tfile_open): Don't add thread and inferior.
6767 (tfile_close): Don't set 'inferior_ptid'. Don't call
6768 exit_inferior_silent.
6769 (tfile_thread_alive): Remove.
6770 (init_tfile_ops): Don't set field 'to_thread_alive' of
6773 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6775 * remote.c (remote_start_remote): Call remote_check_symbols even
6776 if only symbol-file (not file) has been given.
6778 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6780 * gdbarch.sh (skip_entrypoint): New callback.
6781 * gdbarch.c, gdbarch.h: Regenerate.
6782 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6783 * infrun.c (fill_in_stop_func): Likewise.
6784 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6785 (ppc_elfv2_elf_make_msymbol_special): New function.
6786 (ppc_elfv2_skip_entrypoint): Likewise.
6787 (ppc_linux_init_abi): Install them for ELFv2.
6789 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6791 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6792 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6793 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6794 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6795 structures returned in GPRs.
6797 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6799 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6800 offset to the stack parameter list for the ELFv2 ABI.
6802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6804 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6805 set_gdbarch_convert_from_func_ptr_addr and
6806 set_gdbarch_elf_make_msymbol_special for ELFv1.
6807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6808 function descriptors on ELFv1.
6809 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6810 set up r12 at function entry.
6812 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6814 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6815 (struct gdbarch_tdep): New member elf_abi.
6817 * rs6000-tdep.c: Include "elf/ppc64.h".
6818 (rs6000_gdbarch_init): Detect ELF ABI version.
6820 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6822 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6823 within a register pair holding a DFP 128-bit value on little-endian.
6824 (ppc64_sysv_abi_return_value_base): Likewise.
6825 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6826 (dfp_pseudo_register_write): Likewise.
6828 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6830 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6831 offset on little-endian when passing _Decimal32.
6832 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6834 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6836 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6837 of the overlapped FP register within the VSX register on little-
6839 (efpr_pseudo_register_write): Likewise.
6841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6843 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6844 offset on little-endian when passing small structures.
6846 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6848 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6849 (struct ppc64_sysv_argpos): New data structure.
6850 (ppc64_sysv_abi_push_float): Remove.
6851 (ppc64_sysv_abi_push_val): New function.
6852 (ppc64_sysv_abi_push_integer): Likewise.
6853 (ppc64_sysv_abi_push_freg): Likewise.
6854 (ppc64_sysv_abi_push_vreg): Likewise.
6855 (ppc64_sysv_abi_push_param): Likewise.
6856 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6857 (ppc64_sysv_abi_return_value_base): New function.
6858 (ppc64_sysv_abi_return_value): Refactor to use it.
6860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6862 * NEWS: Document new target powerpc64le-*-linux*.
6864 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6866 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6867 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6869 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6870 register set used in ELF core dumps. Add floating-point register set.
6872 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6874 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6875 dwarf2_to_gdb[] table using symbolic constants. Adjust
6876 penultimate entry from number representing the PC register
6877 to symbolic constant representing the MDR register. Add
6878 constant for the PC register to the end of the table.
6880 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6882 * bsd-kvm.c: Include <sys/param.h>
6884 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6886 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6888 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6890 * ada-lang.h (clear_ada_sym_cache): Delete.
6892 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6894 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6896 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6898 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6899 the sigreturn register save area only if the syscall is
6902 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6904 * valops.c (value_slice): Minor reformatting.
6906 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6908 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6910 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6912 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6914 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6915 (ada_ignore_descriptive_types_p): New static global.
6916 (find_parallel_type_by_descriptive_type): Return immediately
6917 if ada_ignore_descriptive_types_p is set.
6918 (_initialize_ada_language): Register new commands "maintenance
6919 set ada", "maintenance show ada", "maintenance set ada
6920 ignore-descriptive-types" and "maintenance show ada
6921 ignore-descriptive-types".
6922 * NEWS: Add entry for new "maint ada set/show
6923 ignore-descriptive-types" commands.
6925 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6927 * record-btrace.c (record_btrace_close): Call btrace_teardown
6930 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6932 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6935 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6937 * ada-typeprint (type_is_full_subrange_of_target_type):
6939 (print_range): Add parameter bounds_prefered_p. If not set,
6940 try printing range types using the name of their base type.
6941 (print_range_type): Add parameter bounds_prefered_p.
6942 Use it in call to print_range.
6943 (print_array_type, ada_print_type): Update calls to print_range
6944 and print_range_type.
6946 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6948 * ada-typeprint.c (print_array_type, print_choices, print_range)
6949 (print_range_bound, print_dynamic_range_bound, print_range_type):
6952 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6954 * ada-typeprint.c (print_range): Add missing empty line
6955 after local declaration.
6957 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6959 * ada-valprint.c (print_optional_low_bound): Get index_type's
6960 target type for as long as it is a TYPE_CODE_RANGE.
6962 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6964 * procfs.c (procfs_make_note_section): Remove assertion and
6967 2014-01-24 Yao Qi <yao@codesourcery.com>
6969 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6970 * corelow.c (get_core_siginfo): Likewise.
6972 2014-01-24 Yao Qi <yao@codesourcery.com>
6974 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6975 ULONGEST. Don't check 'len' is negative.
6976 (remote_write_bytes): Change type of 'len' to ULONGEST.
6978 2014-01-23 Tom Tromey <tromey@redhat.com>
6981 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6982 Handle exception from frame.block.
6983 (FrameVars.fetch_frame_locals): Likewise.
6985 2014-01-23 Tom Tromey <tromey@redhat.com>
6988 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6989 on a NULL pointer. Move "goto error" to correct place.
6991 2014-01-23 Tom Tromey <tromey@redhat.com>
6994 * python/py-framefilter.c (apply_frame_filter): Call
6995 ensure_python_env after computing gdbarch.
6997 2014-01-23 Yao Qi <yao@codesourcery.com>
6999 * target.c (raw_memory_xfer_partial): Change argument type
7000 from void * to gdb_byte *.
7001 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7003 2014-01-22 Doug Evans <dje@google.com>
7005 New gdbserver option --debug-format=timestamp.
7008 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7010 * syscalls/s390x-linux.xml: New file.
7011 * syscalls/s390-linux.xml: New file.
7012 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7013 (XML_SYSCALL_FILENAME_S390X): Likewise.
7014 (op_svc): New enum value for SVC opcode.
7015 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7016 (s390_linux_get_syscall_number): New function.
7017 (s390_gdbarch_init): Register '*get_syscall_number' and the
7018 syscall xml file name.
7019 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7020 "s390-linux.xml" and "s390x-linux.xml".
7021 * NEWS: Announce new feature.
7023 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7025 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7027 2014-01-22 Pedro Alves <palves@redhat.com>
7029 * xtensa-config.c: Include defs.h.
7031 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7033 * common/common-utils.h: Add "ARI:" comment beside __func__
7036 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7038 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7039 documentation a bit.
7041 2014-01-21 Roland McGrath <mcgrathr@google.com>
7043 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7044 * configure: Regenerate.
7045 * aclocal.m4: Regenerate.
7046 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7047 New substituted variables.
7048 (install-strip): New target.
7049 (INSTALL_SCRIPT): New substituted variable.
7050 (FLAGS_TO_PASS): Add it.
7051 (install-only): Use $(INSTALL_SCRIPT) rather than
7052 $(INSTALL_PROGRAM) for gcore.
7054 2014-01-20 Tom Tromey <tromey@redhat.com>
7056 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7059 2014-01-20 Tom Tromey <tromey@redhat.com>
7061 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7062 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7063 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7064 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7065 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7066 (struct cmd_list_element) <flags>: Remove.
7067 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7068 doc_allocated>: New fields.
7069 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7071 * maint.c (maintenance_do_deprecate): Update.
7072 * top.c (execute_command): Update.
7074 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7076 * xtensa-linux-nat.c: Include asm/ptrace.h.
7078 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7080 * Makefile.in (SFILES): Add d-support.c.
7081 (COMMON_OBS): Add d-support.o.
7082 * d-lang.h (d_parse_symbol): Add comment, now defined in
7084 * d-lang.c (parse_call_convention)
7085 (parse_attributes, parse_function_types)
7086 (parse_function_args, parse_type, parse_identifier)
7087 (call_convention_p, d_parse_symbol): Move functions to ...
7088 * d-support.c: ... New file.
7090 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7092 * d-lang.h (d_parse_symbol): Add declaration.
7093 * d-lang.c (extract_identifiers)
7094 (extract_type_info): Remove functions.
7095 (parse_call_convention, parse_attributes)
7096 (parse_function_types, parse_function_args)
7097 (parse_type, parse_identifier, call_convention_p)
7098 (d_parse_symbol): New functions.
7099 (d_demangle): Use d_parse_symbol to demangle D symbols.
7101 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7103 * d-lang.h (struct builtin_d_type): New data type.
7104 (builtin_d_type): Add declaration.
7105 * d-lang.c (d_language_arch_info, build_d_types)
7106 (builtin_d_type): New functions.
7107 (enum d_primitive_types): New data type.
7108 (d_language_defn): Change c_language_arch_info to
7109 d_language_arch_info.
7110 (d_type_data): New static variable.
7111 (_initialize_d_language): Initialize d_type_data.
7113 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7115 * d-lang.h (d_main_name): Add declaration.
7116 * d-lang.c (d_main_name): New function.
7117 * symtab.c (find_main_name): Add call to d_main_name.
7119 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7121 * d-lang.c (d_language_defn): Change macro_expansion_c to
7124 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7126 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7128 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7130 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7131 gdb_exception" declaration.
7132 * remote.c (getpkt_or_notif_sane): Likewise.
7134 2014-01-17 Doug Evans <dje@google.com>
7136 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7137 function, contents of dirnames_to_char_ptr_vec_append moved here.
7138 (delim_string_to_char_ptr_vec): New function.
7139 (dirnames_to_char_ptr_vec_append): Rewrite.
7140 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7142 2014-01-17 Doug Evans <dje@google.com>
7144 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7146 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7147 #include "common-utils.h".
7148 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7149 * common/vec.h (VEC_ASSERT_PASS): Update.
7150 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7151 (MACH_CHECK_ERROR): Update.
7153 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7155 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7157 * gdbarch.h: Regenerate.
7159 2014-01-16 Tom Tromey <tromey@redhat.com>
7161 * value.c (struct value) <regnum>: Move earlier.
7163 2014-01-16 Tom Tromey <tromey@redhat.com>
7165 * remote.c (extended_remote_create_inferior): Rename from
7166 extended_remote_create_inferior_1. Add "ops" argument. Remove
7169 2014-01-16 Pedro Alves <palves@redhat.com>
7171 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7172 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7175 2014-01-16 Doug Evans <dje@google.com>
7177 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7179 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7181 * btrace.h (btrace_thread_flag): New.
7182 (struct btrace_thread_info) <flags>: New.
7183 * record-btrace.c (record_btrace_resume_thread)
7184 (record_btrace_find_thread_to_move, btrace_step_no_history)
7185 (btrace_step_stopped, record_btrace_start_replaying)
7186 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7187 (record_btrace_find_resume_thread): New.
7188 (record_btrace_resume, record_btrace_wait): Extend.
7189 (record_btrace_can_execute_reverse): New.
7190 (record_btrace_open): Fail in non-stop mode.
7191 (record_btrace_set_replay): Split into this, ...
7192 (record_btrace_stop_replaying): ... this, ...
7193 (record_btrace_clear_histories): ... and this.
7194 (init_record_btrace_ops): Init to_can_execute_reverse.
7195 * NEWS: Announce it.
7197 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7199 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7200 (forward_target_decr_pc_after_break)
7201 (target_decr_pc_after_break): New.
7202 * target.c (forward_target_decr_pc_after_break)
7203 (target_decr_pc_after_break): New.
7204 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7205 instead of gdbarch_decr_pc_after_break.
7206 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7207 instead of gdbarch_decr_pc_after_break.
7208 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7209 instead of gdbarch_decr_pc_after_break.
7210 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7211 instead of gdbarch_decr_pc_after_break.
7212 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7213 instead of gdbarch_decr_pc_after_break.
7214 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7215 instead of gdbarch_decr_pc_after_break.
7217 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7219 * btrace.c: Include regcache.h.
7220 (btrace_add_pc): New.
7221 (btrace_enable): Call btrace_add_pc.
7222 (btrace_is_empty): New.
7223 * btrace.h (btrace_is_empty): New.
7224 * record-btrace.c (require_btrace, record_btrace_info): Call
7227 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7229 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7230 Support delta reads.
7231 (linux_disable_btrace): Change return type.
7232 * common/linux-btrace.h (linux_read_btrace): Change parameters
7233 and return type to allow error reporting. Update users.
7234 (linux_disable_btrace): Change return type. Update users.
7235 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7237 (btrace_error): New.
7238 (btrace_block) <begin>: Comment on BEGIN == 0.
7239 * btrace.c (btrace_compute_ftrace): Start from the end of
7241 (btrace_stitch_trace, btrace_clear_history): New.
7242 (btrace_fetch): Read delta trace, return if replaying.
7243 (btrace_clear): Move clear history code to btrace_clear_history.
7244 (parse_xml_btrace): Throw an error if parsing failed.
7245 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7246 and return type to allow error reporting.
7247 (target_read_btrace): Change parameters and return type to allow
7249 * target.c (target_read_btrace): Update.
7250 * remote.c (remote_read_btrace): Support delta reads. Pass
7252 * NEWS: Announce it.
7254 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7256 * record.h (record_btrace_frame_unwind)
7257 (record_btrace_tailcall_frame_unwind): New declarations.
7258 * dwarf2-frame: Include record.h
7259 (dwarf2_frame_cfa): Throw an error for btrace frames.
7260 * record-btrace.c: Include hashtab.h.
7261 (btrace_get_bfun_name): New.
7262 (btrace_call_history): Call btrace_get_bfun_name.
7263 (struct btrace_frame_cache): New.
7265 (bfcache_hash, bfcache_eq, bfcache_new): New.
7266 (btrace_get_frame_function): New.
7267 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7268 (record_btrace_frame_this_id): Compute own id.
7269 (record_btrace_frame_prev_register): Provide PC, throw_error
7270 for all other registers.
7271 (record_btrace_frame_sniffer): Detect btrace frames.
7272 (record_btrace_tailcall_frame_sniffer): New.
7273 (record_btrace_frame_dealloc_cache): New.
7274 (record_btrace_frame_unwind): Add new functions.
7275 (record_btrace_tailcall_frame_unwind): New.
7276 (_initialize_record_btrace): Allocate cache.
7277 * btrace.c (btrace_clear): Call reinit_frame_cache.
7278 * NEWS: Announce it.
7280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7282 * record-btrace.c (record_btrace_set_replay)
7283 (record_btrace_goto_begin, record_btrace_goto_end)
7284 (record_btrace_goto): New.
7285 (init_record_btrace_ops): Initialize them.
7286 * NEWS: Announce it.
7288 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7290 * record-btrace.c (record_btrace_find_new_threads)
7291 (record_btrace_thread_alive): New.
7292 (init_record_btrace_ops): Initialize to_find_new_threads and
7295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7297 * record-btrace.c (record_btrace_resume): New.
7298 (record_btrace_wait): New.
7299 (init_record_btrace_ops): Initialize to_wait and to_resume.
7301 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7303 * record-btrace.c (record_btrace_xfer_partial)
7304 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7305 (record_btrace_allow_memory_access): New.
7306 (init_record_btrace_ops): Initialize new methods.
7307 * target.c (raw_memory_xfer_partial): Bail out if target reports
7308 that this memory is not available.
7310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7312 * target.h (target_ops) <to_insert_breakpoint>
7313 <to_remove_breakpoint>: Add target_ops parameter.
7314 (forward_target_insert_breakpoint): New.
7315 (forward_target_remove_breakpoint): New.
7316 (memory_remove_breakpoint, memory_insert_breakpoint):
7317 Add target_ops parameter.
7318 * target.c (target_insert_breakpoint): Split into this and ...
7319 (forward_target_insert_breakpoint): ... this.
7320 (target_remove_breakpoint): Split into this and ...
7321 (forward_target_remove_breakpoint): ... this.
7322 (debug_to_insert_breakpoint): Add target_ops parameter.
7323 Call forward_target_insert_breakpoint.
7324 (debug_to_remove_breakpoint): Add target_ops parameter.
7325 Call forward_target_remove_breakpoint.
7326 (update_current_target): Do not inherit or default to_insert_breakpoint
7327 and to_remove_breakpoint.
7328 * corelow.c (ignore): Add target_ops parameter.
7329 * exec.c (ignore): Add target_ops parameter.
7330 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7331 Add target_ops parameter.
7332 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7333 Add target_ops parameter.
7334 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7335 Add target_ops parameter.
7336 * record-full.c (record_full_beneath_to_insert_breakpoint)
7337 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7338 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7339 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7340 (record_full_core_remove_breakpoint): Add target_ops parameter.
7342 (record_full_beneath_to_insert_breakpoint_ops)
7343 (record_full_beneath_to_remove_breakpoint_ops)
7344 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7345 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7346 tmp_to_remove_breakpoint_ops,
7347 record_full_beneath_to_insert_breakpoint_ops, and
7348 record_full_beneath_to_remove_breakpoint_ops.
7349 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7350 (m32r_remove_breakpoint): Add target_ops parameter.
7351 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7352 Add target_ops parameter.
7353 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7354 Add target_ops parameter.
7356 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 Markus Metzger <markus.t.metzger@intel.com>
7359 * record-btrace.c: Include frame-unwind.h.
7360 (record_btrace_frame_unwind_stop_reason)
7361 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7362 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7364 (init_record_btrace_ops): Install it.
7366 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7368 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7371 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7373 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7376 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7378 * frame-unwind.c: Include target.h.
7379 (frame_unwind_try_unwinder): New function with code from ...
7380 (frame_unwind_find_by_frame): ... here. New variable
7381 unwinder_from_target, call also target_get_unwinder)
7382 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7383 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7384 * target.h (struct target_ops): New fields to_get_unwinder and
7385 to_get_tailcall_unwinder.
7386 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7390 * record-btrace.c (record_btrace_fetch_registers)
7391 (record_btrace_store_registers)
7392 (record_btrace_to_prepare_to_store): New.
7393 (init_record_btrace_ops): Add the above.
7395 2014-01-16 Tom Tromey <tromey@redhat.com>
7397 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7398 * target.h (struct target_ops) <to_prepare_to_store>: Add
7400 (target_prepare_to_store): Add argument.
7401 * target.c (debug_to_prepare_to_store): Add argument.
7402 (update_current_target): Update.
7403 * remote.c (remote_prepare_to_store): Add 'self' argument.
7404 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7405 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7406 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7407 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7409 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7410 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7411 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7412 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7413 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7417 * btrace.h (replay) <replay>: New.
7418 (btrace_is_replaying): New.
7419 * btrace.c (btrace_clear): Free replay iterator.
7420 (btrace_is_replaying): New.
7421 * record-btrace.c (record_btrace_is_replaying): New.
7422 (record_btrace_info): Print insn number if replaying.
7423 (record_btrace_insn_history): Start at replay position.
7424 (record_btrace_call_history): Start at replay position.
7425 (init_record_btrace_ops): Init to_record_is_replaying.
7427 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7429 * record-btrace.c (record_btrace_insn_history_range): Include
7431 (record_btrace_insn_history_from): Adjust range.
7432 (record_btrace_call_history_range): Include
7434 (record_btrace_call_history_from): Adjust range.
7435 * NEWS: Announce changes.
7437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7439 * record.h (enum record_print_flag)
7440 <record_print_indent_calls>: New.
7441 * record.c (get_call_history_modifiers): Recognize /c modifier.
7442 (_initialize_record): Document /c modifier.
7443 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7444 Reorder fields. Optionally indent the function name. Update
7446 * NEWS: Announce changes.
7448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7450 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7454 * btrace.c (ftrace_new_function): Start counting at one.
7455 * record-btrace.c (record_btrace_info): Adjust number of calls
7457 * NEWS: Announce it.
7459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7461 * record-btrace.c (btrace_call_history_insn_range): Print
7462 insn range as [begin, end].
7464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7466 * btrace.h (struct btrace_func_link): New.
7467 (enum btrace_function_flag): New.
7468 (struct btrace_inst): Rename to ...
7469 (struct btrace_insn): ...this. Update all users.
7470 (struct btrace_func) <ibegin, iend>: Remove.
7471 (struct btrace_func_link): New.
7472 (struct btrace_func): Rename to ...
7473 (struct btrace_function): ...this. Update all users.
7474 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7475 (number, level, flags>: New.
7476 (struct btrace_insn_iterator): Rename to ...
7477 (struct btrace_insn_history): ...this.
7479 (struct btrace_insn_iterator, btrace_call_iterator): New.
7480 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7481 (struct btrace_target_info) <begin, end, level>
7482 <insn_history, call_history>: New.
7483 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7484 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7485 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7486 (btrace_call_number, btrace_call_begin, btrace_call_end)
7487 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7488 (btrace_find_function_by_number, btrace_set_insn_history)
7489 (btrace_set_call_history): New.
7490 * btrace.c (btrace_init_insn_iterator)
7491 (btrace_init_func_iterator, compute_itrace): Remove.
7492 (ftrace_print_function_name, ftrace_print_filename)
7493 (ftrace_skip_file): Change
7495 (ftrace_init_func): Remove.
7496 (ftrace_debug): Use new btrace_function fields.
7497 (ftrace_function_switched): Also consider gaining and
7498 losing symbol information).
7499 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7500 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7501 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7503 (ftrace_new_function): Move. Remove debug print.
7504 (ftrace_update_lines, ftrace_update_insns): New.
7505 (ftrace_update_function): Check for call, ret, and jump.
7506 (compute_ftrace): Renamed to ...
7507 (btrace_compute_ftrace): ...this. Rewritten to compute call
7509 (btrace_fetch, btrace_clear): Updated.
7510 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7511 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7512 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7513 (btrace_call_number, btrace_call_begin, btrace_call_end)
7514 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7515 (btrace_find_function_by_number, btrace_set_insn_history)
7516 (btrace_set_call_history): New.
7517 * record-btrace.c (require_btrace): Use new btrace thread
7519 (record_btrace_info, btrace_insn_history)
7520 (record_btrace_insn_history, record_btrace_insn_history_range):
7521 Use new btrace thread info fields and new iterator.
7522 (btrace_func_history_src_line): Rename to ...
7523 (btrace_call_history_src_line): ...this. Use new btrace
7525 (btrace_func_history): Rename to ...
7526 (btrace_call_history): ...this. Use new btrace thread info
7527 fields and new iterator.
7528 (record_btrace_call_history, record_btrace_call_history_range):
7529 Use new btrace thread info fields and new iterator.
7531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7533 * frame.h (frame_id_build_unavailable_stack_special): New.
7534 * frame.c (frame_id_build_unavailable_stack_special): New.
7536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7538 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7539 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7540 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7542 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7543 (i386_insn_is_jump, i386_jmp_p): New.
7544 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7545 insn_is_jump to gdbarch.
7546 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7547 * gdbarch.h: Regenerated.
7548 * gdbarch.c: Regenerated.
7549 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7550 (default_insn_is_jump): New.
7551 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7552 (default_insn_is_jump): New.
7554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7556 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7558 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7559 (btrace_read_type) <btrace_read_new>: Change to ...
7560 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7562 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7564 * common/linux-btrace.c (linux_read_btrace): Free trace from
7567 2014-01-15 Doug Evans <dje@google.com>
7569 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7572 2014-01-15 Tom Tromey <tromey@redhat.com>
7574 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7575 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7576 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7577 (set_objfile_main_name): New function.
7578 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7579 language_of_main>: New fields.
7580 (set_objfile_main_name): Declare.
7581 * symtab.c (find_main_name): Loop over objfiles to find the main
7583 (set_main_name): Now static.
7584 (get_main_info): Add comment.
7585 * symtab.h (set_main_name): Don't declare.
7587 2014-01-15 Tom Tromey <tromey@redhat.com>
7589 * symtab.c (main_progspace_key): New global.
7590 (struct main_info): New.
7591 (name_of_main, language_of_main): Remove.
7592 (get_main_info, main_info_cleanup): New function.
7593 (set_main_name, main_name, main_language): Use get_main_info.
7594 (_initialize_symtab): Initialize main_progspace_key.
7596 2014-01-15 Tom Tromey <tromey@redhat.com>
7598 * dbxread.c (process_one_symbol): Update.
7599 * dwarf2read.c (read_partial_die): Update.
7600 * symfile.c (set_initial_language): Call main_language.
7601 * symtab.c (language_of_main): Now static.
7602 (set_main_name): Add 'lang' parameter.
7603 (find_main_name): Update.
7604 (main_language): New function.
7605 (symtab_observer_executable_changed): Update.
7606 * symtab.h (set_main_name): Update.
7607 (language_of_main): Remove.
7608 (main_language): Declare.
7610 2014-01-15 Tom Tromey <tromey@redhat.com>
7612 * symfile.c (init_entry_point_info): Use new "initialized" field.
7614 * objfiles.h (struct entry_point) <initialized>: New field.
7615 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7616 (struct objfile) <ei>: ...here. Remove.
7617 * objfiles.c (entry_point_address_query): Update.
7619 2014-01-15 Tom Tromey <tromey@redhat.com>
7621 * objfiles.c (entry_point_address_query): Relocate entry point
7623 (objfile_relocate1): Do not relocate entry point address.
7624 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7625 <the_bfd_section_index>: New field.
7626 * symfile.c (init_entry_point_info): Find the entry point's
7629 2014-01-15 Tom Tromey <tromey@redhat.com>
7631 * solib-frv.c (enable_break): Use entry_point_address_query.
7633 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7635 * NEWS: Add note on improved process record-replay on
7636 arm*-linux* targets.
7638 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7640 * arm-tdep.c (enum arm_record_result): New enum.
7641 (arm_record_unsupported_insn): New function.
7642 (arm_record_coproc_data_proc): Removed.
7643 (thumb2_record_ld_st_multiple): New function.
7644 (thumb2_record_ld_st_dual_ex_tbb): New function.
7645 (thumb2_record_data_proc_sreg_mimm): New function.
7646 (thumb2_record_ps_dest_generic): New function.
7647 (thumb2_record_branch_misc_cntrl): New function.
7648 (thumb2_record_str_single_data): New function.
7649 (thumb2_record_ld_mem_hints): New function.
7650 (thumb2_record_ld_word): New function.
7651 (thumb2_record_lmul_lmla_div): New function.
7652 (thumb2_record_decode_insn_handler): New function.
7653 (decode_insn): Add thumb32 instruction handlers.
7655 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7657 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7658 (struct arm_linux_record_tdep): Declare.
7659 (arm_canonicalize_syscall): New function.
7660 (arm_all_but_pc_registers_record): New function.
7661 (arm_linux_syscall_record): New function.
7662 (arm_linux_init_abi): Add syscall recording constructs.
7663 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7664 decoding. (arm_record_coproc_data_proc): Update arm syscall
7666 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7667 <arm_syscall_record>: New field.
7668 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7671 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7673 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7674 register for push instruction recording.
7676 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7678 * arm-tdep.c (thumb_record_misc): Update to correct logical
7679 error while recording ldm, ldmia and pop instructions.
7681 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7683 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7685 2014-01-15 Pedro Alves <palves@redhat.com>
7687 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7688 (go32_resume, go32_fetch_registers, store_register)
7689 (go32_store_registers, go32_prepare_to_store)
7690 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7691 (go32_create_inferior, go32_can_run, go32_terminal_init)
7692 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7695 2014-01-15 Tom Tromey <tromey@redhat.com>
7697 * target.h (async_callback_ftype): New typedef.
7698 (struct target_ops) <to_async>: Use it.
7700 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7702 * python/py-value.c (get_field_type): Remove unnecessary curly
7703 braces for single-statement if block.
7705 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7707 * python/py-type.c (convert_field): Add missing empty line
7710 2014-01-14 Doug Evans <dje@google.com>
7712 * symfile.h (expand_symtabs_matching): Renamed from
7713 expand_partial_symbol_names. Update prototype.
7714 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7715 * symfile.c (expand_symtabs_matching): Renamed from
7716 expand_partial_symbol_names. New args file_matcher, kind.
7717 Rename arg fun to symbol_matcher.
7718 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7719 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7720 ada_expand_partial_symbol_name.
7721 (ada_make_symbol_completion_list): Update to call
7722 expand_symtabs_matching.
7723 (ada_add_global_exceptions): Call expand_symtabs_matching.
7724 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7725 call map_symbol_filenames.
7726 * symtab.c (sources_info): Update to call map_symbol_filenames.
7727 (search_symbols): Call expand_symtabs_matching.
7728 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7729 (default_make_symbol_completion_list_break_on): Update to call
7730 expand_symtabs_matching.
7731 (make_source_files_completion_list): Update to call
7732 map_symbol_filenames.
7734 2014-01-14 Doug Evans <dje@google.com>
7736 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7737 (expand_symtabs_symbol_matcher_ftype): New typedef.
7738 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7739 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7740 * symfile.c (expand_partial_symbol_names): Update to use
7741 expand_symtabs_symbol_matcher_ftype.
7742 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7743 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7744 Arg name_matcher renamed to symbol_matcher.
7745 * psymtab.c (recursively_search_psymtabs): Update to use
7746 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7748 (expand_symtabs_matching_via_partial): Update to use
7749 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7750 Arg name_matcher renamed to symbol_matcher.
7752 2014-01-14 Doug Evans <dje@google.com>
7754 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7755 (map_partial_symbol_filenames): Ditto.
7756 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7757 (map_partial_symbol_filenames): Ditto.
7758 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7759 (map_partial_symbol_filenames): Ditto.
7760 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7761 (map_partial_symbol_filenames): Ditto.
7762 * symtab.c: Delete #include "psymtab.h".
7764 2014-01-14 Pedro Alves <palves@redhat.com>
7765 Tom Tromey <tromey@redhat.com>
7767 * infrun.c (use_displaced_stepping): Use find_record_target
7768 instead of RECORD_IS_USED.
7769 (adjust_pc_after_break): Use record_full_is_used instead of
7771 * record-btrace.c (record_btrace_open): Call record_preopen
7772 instead of checking RECORD_IS_USED.
7773 * record-full.c (record_full_shortname)
7774 (record_full_core_shortname): New globals.
7775 (record_full_is_used): New function.
7776 (find_full_open): Call record_preopen instead of checking
7778 (init_record_full_ops): Set the target's shortname to
7779 record_full_shortname.
7780 (init_record_full_core_ops): Set the target's shortname to
7781 record_full_core_shortname.
7782 * record-full.h (record_full_is_used): Declare.
7783 * record.c (find_record_target): Make extern.
7784 (record_preopen): New function.
7785 * record.h (RECORD_IS_USED): Delete macro.
7786 (find_record_target, record_preopen): Declare functions.
7788 2014-01-14 Yao Qi <yao@codesourcery.com>
7790 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7791 'len''s type to ULONGEST.
7792 (core_xfer_shared_libraries_aix): Likewise.
7793 * gdbarch.c, gdbarch.h: Regenerated.
7794 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7795 Change type of 'len' to ULONGEST.
7796 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7797 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7799 2014-01-14 Yao Qi <yao@codesourcery.com>
7801 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7802 type of 'len' to ULONGEST.
7803 (linux_xfer_osdata_processgroups): Likewise.
7804 (linux_xfer_osdata_threads): Likewise.
7805 (linux_xfer_osdata_fds): Likewise.
7806 (linux_xfer_osdata_isockets): Likewise.
7807 (linux_xfer_osdata_shm): Likewise.
7808 (linux_xfer_osdata_sem): Likewise.
7809 (linux_xfer_osdata_msg): Likewise.
7810 (linux_common_xfer_osdata): Likewise.
7811 (struct osdata_type) <getter>: Likewise.
7812 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7815 2014-01-14 Yao Qi <yao@codesourcery.com>
7817 * target.h (target_xfer_partial_ftype): Update.
7818 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7820 * aix-thread.c (aix_thread_xfer_partial): Change type of
7821 argument 'len' to ULONGEST.
7822 * auxv.c (procfs_xfer_auxv): Likewise.
7823 (ld_so_xfer_auxv): Likewise.
7824 (memory_xfer_auxv): Likewise.
7825 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7826 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7827 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7828 * corelow.c (core_xfer_partial): Likewise.
7829 * ctf.c (ctf_xfer_partial): Likewise.
7830 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7832 (darwin_read_dyld_info): Likewise.
7833 (darwin_xfer_partial): Likewise.
7834 * exec.c (section_table_xfer_memory_partial): Likewise.
7835 (exec_xfer_partial): Likewise.
7836 * exec.h (section_table_xfer_memory_partial): Update
7838 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7839 instead of plongest.
7840 (gnu_xfer_partial): Likewise.
7841 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7842 (ia64_hpux_xfer_solib_got): Likewise.
7843 (ia64_hpux_xfer_partial): Likewise.
7844 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7845 * inf-ptrace.c (inf_ptrace_xfer_partial):
7846 * inf-ttrace.c (inf_ttrace_xfer_partial):
7847 * linux-nat.c (linux_xfer_siginfo): Likewise.
7848 (linux_nat_xfer_partial): Likewise.
7849 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7850 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7851 * monitor.c (monitor_xfer_memory): Likewise.
7852 (monitor_xfer_partial): Likewise.
7853 * procfs.c (procfs_xfer_partial): Likewise.
7854 * record-full.c (record_full_xfer_partial): Likewise.
7855 (record_full_core_xfer_partial): Likewise.
7856 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7857 instead of plongest.
7858 (gdbsim_xfer_partial): Likewise.
7859 * remote.c (remote_xfer_partial): Likewise.
7860 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7861 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7863 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7864 (rs6000_xfer_shared_libraries): Likewise.
7865 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7866 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7867 (sparc_xfer_partial): Likewise.
7868 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7869 (spu_xfer_partial): Likewise.
7870 * spu-multiarch.c (spu_xfer_partial): Likewise.
7871 * target.c (target_read_live_memory): Likewise.
7872 (memory_xfer_live_readonly_partial): Likewise.
7873 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7874 (target_xfer_partial, default_xfer_partial): Likewise.
7875 (current_xfer_partial): Likewise.
7876 * tracepoint.c (tfile_xfer_partial): Likewise.
7877 * windows-nat.c (windows_xfer_memory): Likewise. Call
7878 pulongest instead of plongest.
7879 (windows_xfer_partial): Likewise.
7880 (windows_xfer_shared_libraries): Likewise.
7882 2014-01-14 Yao Qi <yao@codesourcery.com>
7884 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7885 target_xfer_partial_ftype.
7887 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7891 * valops.c (value_struct_elt_bitpos): New function
7892 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7893 object to 'None' if the field name is an empty string ("").
7894 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7895 attribute to look for a field when 'name' is 'None'.
7896 (get_field_type): New function
7898 2014-01-13 Doug Evans <dje@google.com>
7901 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7902 (try_open_dwop_file): Ditto.
7903 * gdb_bfd.c: #include "vec.h".
7904 (bfdp): New typedef.
7905 (struct gdb_bfd_data): New member included_bfds.
7906 (gdb_bfd_unref): Unref all included bfds.
7907 (gdb_bfd_record_inclusion): New function.
7908 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7910 2014-01-13 Tom Tromey <tromey@redhat.com>
7912 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7914 2014-01-13 Tom Tromey <tromey@redhat.com>
7916 * defs.h (use_windows): Remove.
7917 * gdb.c (main): Update.
7918 * main.c (captured_main, gdb_main): Update.
7919 * main.h (struct captured_main_args) <use_windows>: Remove.
7920 * top.c (use_windows): Remove.
7922 2014-01-13 Tom Tromey <tromey@redhat.com>
7924 * defs.h (deprecated_flush_hook): Remove.
7926 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7929 * linux-thread-db.c (try_thread_db_load): Add parameter
7930 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7931 (try_thread_db_load_from_pdir_1): Move it there from here.
7932 (try_thread_db_load_from_sdir): Update caller.
7933 (try_thread_db_load_from_dir): Move it there from here.
7935 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7937 * regformats/regdat.sh: Always rewrite the register file.
7939 2014-01-13 Pedro Alves <palves@redhat.com>
7941 * Makefile.in (CHECK_HEADERS): New variable.
7942 (check-headers:): New rule.
7944 2014-01-13 Tom Tromey <tromey@redhat.com>
7946 * cli/cli-setshow.c (do_set_command): Update.
7947 * defs.h (deprecated_set_hook): Remove.
7948 * top.c (deprecated_set_hook): Remove.
7950 2014-01-13 Pedro Alves <palves@redhat.com>
7952 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7953 the tracepoint if the PC is a pseudo-register.
7955 2014-01-13 Tom Tromey <tromey@redhat.com>
7957 * defs.h (XCALLOC): Remove.
7958 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7959 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7960 * dwarf2loc.c (allocate_piece_closure): Likewise.
7961 * elfread.c (elf_symfile_segments): Likewise.
7962 (elf_symfile_segments): Likewise.
7963 * gdbtypes.c (copy_type_recursive): Likewise.
7964 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7965 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7966 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7968 * mt-tdep.c (mt_gdbarch_init): Likewise.
7969 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7971 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7972 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7973 * registry.c (registry_alloc_data): Likewise.
7974 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7975 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7976 * serial.c (serial_fdopen_ops): Likewise.
7977 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7979 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7980 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7983 2014-01-13 Tom Tromey <tromey@redhat.com>
7985 * defs.h (XMALLOC): Remove.
7986 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7987 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7988 * cli-out.c (struct ui_out *): Likewise.
7989 * cli/cli-dump.c (add_dump_command): Likewise.
7990 (add_dump_command): Likewise.
7991 * complaints.c (get_complaints): Likewise.
7992 (find_complaint): Likewise.
7993 * dwarf2-frame.c (execute_cfa_program): Likewise.
7994 * dwarf2read.c (abbrev_table_read_table): Likewise.
7995 * gdbarch.sh: Likewise.
7996 * gdbarch.c: Rebuild.
7997 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7998 * interps.c (interp_new): Likewise.
7999 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8000 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8001 * mi/mi-console.c (mi_console_file_new): Likewise.
8002 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8003 * mi/mi-out.c (mi_out_new): Likewise.
8004 * mi/mi-parse.c (mi_parse): Likewise.
8005 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8006 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8007 * observer.c (xalloc_observer_list_node): Likewise.
8008 * regcache.c (regcache_xmalloc_1): Likewise.
8009 * reggroups.c (reggroup_new): Likewise.
8010 (_initialize_reggroup): Likewise.
8011 * registry.c (register_data_with_cleanup): Likewise.
8012 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8013 * ser-base.c (serial_ttystate): Likewise.
8014 * ser-mingw.c (make_pipe_state): Likewise.
8015 * ser-pipe.c (pipe_open): Likewise.
8016 * serial.c (serial_open): Likewise.
8017 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8018 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8019 (tui_alloc_win_info): Likewise.
8020 (tui_add_content_elements): Likewise.
8021 * tui/tui-file.c (tui_file_new): Likewise.
8022 * tui/tui-out.c (tui_out_new): Likewise.
8023 * ui-file.c (mem_file_new): Likewise.
8024 * ui-out.c (push_level): Likewise.
8025 (make_cleanup_ui_out_end): Likewise.
8026 (append_header_to_list): Likewise.
8027 (ui_out_new): Likewise.
8028 * user-regs.c (user_reg_add_builtin): Likewise.
8030 2014-01-13 Tom Tromey <tromey@redhat.com>
8032 * defs.h (XZALLOC): Remove.
8033 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8034 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8035 (get_ada_tasks_inferior_data): Likewise.
8036 * auto-load.c (get_auto_load_pspace_data): Likewise.
8037 * auxv.c (get_auxv_inferior_data): Likewise.
8038 * bfd-target.c (target_bfd_reopen): Likewise.
8039 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8040 (deprecated_insert_raw_breakpoint): Likewise.
8041 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8042 * corelow.c (core_open): Likewise.
8043 * darwin-nat.c (darwin_check_new_threads): Likewise.
8044 (darwin_attach_pid): Likewise.
8045 * dummy-frame.c (dummy_frame_push): Likewise.
8046 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8047 * dwarf2loc.c (allocate_piece_closure): Likewise.
8048 * elfread.c (elf_symfile_segments): Likewise.
8049 * eval.c (ptrmath_type_p): Likewise.
8050 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8051 * gdbtypes.c (alloc_type_arch): Likewise.
8052 (alloc_type_instance): Likewise.
8053 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8054 * inf-child.c (inf_child_can_use_agent): Likewise.
8055 * inflow.c (get_inflow_inferior_data): Likewise.
8056 * infrun.c (save_infcall_suspend_state): Likewise.
8057 * jit.c (jit_reader_load): Likewise.
8058 (get_jit_objfile_data): Likewise.
8059 (get_jit_program_space_data): Likewise.
8060 (jit_object_open_impl): Likewise.
8061 (jit_symtab_open_impl): Likewise.
8062 (jit_block_open_impl): Likewise.
8063 (jit_frame_sniffer): Likewise.
8064 * linux-fork.c (add_fork): Likewise.
8065 * maint.c (make_command_stats_cleanup): Likewise.
8066 * objfiles.c (get_objfile_pspace_data): Likewise.
8067 * opencl-lang.c (struct lval_closure): Likewise.
8068 * osdata.c (osdata_start_osdata): Likewise.
8069 * progspace.c (new_address_space): Likewise.
8070 (add_program_space): Likewise.
8071 * remote-sim.c (get_sim_inferior_data): Likewise.
8072 * sh-tdep.c (sh_gdbarch_init): Likewise.
8073 * skip.c (Ignore): Likewise.
8074 (skip_delete_command): Likewise.
8075 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8076 (library_list_start_library): Likewise.
8077 (solib_aix_current_sos): Likewise.
8078 * solib-darwin.c (get_darwin_info): Likewise.
8079 (darwin_current_sos): Likewise.
8080 * solib-dsbt.c (get_dsbt_info): Likewise.
8081 * solib-ia64-hpux.c (new_so_list): Likewise.
8082 (ia64_hpux_get_solib_linkage_addr): Likewise.
8083 * solib-spu.c (append_ocl_sos): Likewise.
8084 (spu_current_sos): Likewise.
8085 * solib-svr4.c (get_svr4_info): Likewise.
8086 (svr4_keep_data_in_core): Likewise.
8087 (library_list_start_library): Likewise.
8088 (svr4_default_sos): Likewise.
8089 (svr4_read_so_list): Likewise.
8090 * solib-target.c (library_list_start_library): Likewise.
8091 (solib_target_current_sos): Likewise.
8092 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8093 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8094 * symfile.c (default_symfile_segments): Likewise.
8095 * target-descriptions.c (tdesc_data_init): Likewise.
8096 (tdesc_create_reg): Likewise.
8097 (struct tdesc_type *): Likewise.
8098 (tdesc_create_vector): Likewise.
8099 (tdesc_set_struct_size): Likewise.
8100 (struct tdesc_type *): Likewise.
8101 (tdesc_free_feature): Likewise.
8102 (tdesc_create_feature): Likewise.
8103 * windows-nat.c (windows_add_thread): Likewise.
8104 (windows_make_so): Likewise.
8105 * xml-support.c (gdb_xml_body_text): Likewise.
8106 (gdb_xml_create_parser_and_cleanup): Likewise.
8107 (xml_process_xincludes): Likewise.
8108 * xml-syscall.c (allocate_syscalls_info): Likewise.
8109 (syscall_create_syscall_desc): Likewise.
8111 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8113 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8114 function, with code from i386_stap_parse_special_token.
8115 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8116 (i386_stap_parse_special_token): Move code to the two functions
8119 2014-01-09 Pedro Alves <palves@redhat.com>
8120 Hui Zhu <hui@codesourcery.com>
8123 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8124 bp_err_string. Don't mark the location shlib_disabled if the
8125 error thrown wasn't a generic or memory error. Catch errors
8126 thrown while inserting breakpoints in overlayed code. Output
8127 error message of software breakpoints.
8128 * remote.c (remote_insert_breakpoint): If this breakpoint has
8129 target-side commands but this stub doesn't support Z0 packets,
8130 throw NOT_SUPPORTED_ERROR error.
8131 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8132 * target.h (target_insert_breakpoint): Extend comment.
8133 (target_insert_hw_breakpoint): Add comment.
8135 2014-01-08 Pedro Alves <palves@redhat.com>
8137 * remote.c (remote_add_thread): Add threads silently if starting
8139 (remote_notice_new_inferior): If in all-stop, and starting up,
8140 don't call notice_new_inferior.
8141 (get_current_thread): New function, factored out from ...
8142 (add_current_inferior_and_thread): ... this. Adjust.
8143 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8144 found any thread, then select the remote's current thread as GDB's
8147 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8149 * NEWS: Create a new section for the next release branch.
8150 Rename the section of the current branch, now that it has
8153 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8155 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8156 * version.in: Bump version to 7.7.50.DATE-cvs.
8158 2014-01-08 Yao Qi <yao@codesourcery.com>
8160 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8161 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8162 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8164 2014-01-08 Yao Qi <yao@codesourcery.com>
8166 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8167 return value of bfd_get_filename to symbol_file_add_from_bfd.
8169 2014-01-08 Pierre Muller <muller@sourceware.org>
8172 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8173 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8174 to prim_record_mininal_symbol_and_info.
8175 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8176 in call to prim_record_minimal_symbol_and_info.
8177 (read_pe_exported_syms): Set index field of section_data.
8179 2014-01-07 Andrew Pinski <apinski@cavium.com>
8181 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8182 * features/aarch64.c: Regenerate.
8184 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8186 * target.c (return_null): Define.
8187 (update_current_target): Use it instead of return_zero for
8188 functions that return a pointer.
8190 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8192 * source.c (add_path): Fix check for duplicated paths in the previously
8195 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8197 * ada-lang.c: Remove duplicated include statements.
8198 * alphabsd-nat.c: Ditto.
8199 * amd64-darwin-tdep.c: Ditto.
8200 * amd64fbsd-nat.c: Ditto.
8201 * auto-load.c: Ditto.
8203 * breakpoint.c: Ditto.
8205 * fork-child.c: Ditto.
8206 * gdb_usleep.c: Ditto.
8207 * i386-darwin-tdep.c: Ditto.
8208 * i386fbsd-nat.c: Ditto.
8210 * inferior.c: Ditto.
8212 * linux-nat.c: Ditto.
8213 * linux-tdep.c: Ditto.
8214 * m68kbsd-nat.c: Ditto.
8215 * m68klinux-nat.c: Ditto.
8216 * microblaze-tdep.c: Ditto.
8217 * mips-linux-tdep.c: Ditto.
8218 * mn10300-tdep.c: Ditto.
8219 * nto-tdep.c: Ditto.
8220 * opencl-lang.c: Ditto.
8222 * printcmd.c: Ditto.
8223 * regcache.c: Ditto.
8224 * remote-m32r-sdi.c: Ditto.
8228 * tilegx-linux-nat.c: Ditto.
8229 * tilegx-tdep.c: Ditto.
8230 * tracepoint.c: Ditto.
8232 * vaxbsd-nat.c: Ditto.
8233 * windows-nat.c: Ditto.
8234 * xtensa-tdep.c: Ditto.
8236 2014-01-07 Yao Qi <yao@codesourcery.com>
8238 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8240 2014-01-07 Yao Qi <yao@codesourcery.com>
8241 Joel Brobecker <brobecker@adacore.com>
8243 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8244 (pdc_write_regs): Likewise.
8245 (fetch_regs_kernel_thread): Likewise.
8246 (store_regs_kernel_thread): Likewise.
8248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8250 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8251 tagged type objects to their actual type.
8253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8255 * ada-valprint.c (print_field_values): Add "language" parameter.
8256 Update calls to print_field_values and print_variant_part.
8257 Pass new parameter "language" in call to val_print instead
8258 of "current_language". Replace call to ada_val_print by call
8260 (print_variant_part): Add "language" parameter.
8261 (ada_val_print_struct_union): Update call to print_field_values.
8263 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8265 * ada-valprint.c (ui_memcpy): Delete.
8266 (ada_print_floating): Update documentation. Add empty line
8267 between between function documentation and implementation.
8268 Delete variable "buffer". Use ui_file_xstrdup in place of
8269 ui_file_put. Minor adjustments following this change.
8271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8273 * ada-valprint.c (ada_val_print_string): New function,
8274 extracted from ada_val_print_array.
8275 (ada_val_print_array): Replace extracted code by call
8276 to ada_val_print_string followed by a return. Move
8277 "else" branch to the function's top block.
8279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8281 * ada-valprint.c (ada_val_print_array): Move implementation
8282 down. Rename parameter "offset" and "val" into "offset_aligned"
8283 and "original_value" respectively. Add parameter "offset".
8285 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8287 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8288 re-organizing the code. Change the "???" message printed
8289 when target type is a TYPE_CODE_UNDEF into
8290 "<ref to undefined type>".
8292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8294 * ada-valprint.c (print_record): Delete, implementation inlined...
8295 (ada_val_print_struct_union): ... here. Remove call to
8296 ada_check_typedef in inlined implementation.
8298 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8300 * ada-valprint.c (ada_val_print_gnat_array): New function,
8301 extracted from ada_val_print_1;
8302 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8303 (ada_val_print_flt, ada_val_print_struct_union)
8304 (ada_val_print_ref): Likewise.
8305 (ada_val_print_1): Delete variables i and elttype.
8306 Replace extracted-out code by call to corresponding
8309 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8311 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8315 * ada-valprint.c (ada_val_print_1): Replace calls to
8316 ada_val_print_1 by calls to val_print.
8318 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8320 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8321 Update calls to self accordingly. Replace calls to c_val_print
8322 by calls to val_print.
8324 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8326 * ada-valprint.c (print_record): Delete declaration.
8327 (adjust_type_signedness, ada_val_print_1): Likewise.
8328 (ada_val_print): Move function implementation down.
8329 (print_variant_part, print_field_values, print_record):
8330 Move function implementation up.
8332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8334 * python/py-type.c (typy_get_name): New function.
8335 (type_object_getset): Add entry for attribute "name".
8336 * NEWS: Add entry mentioning this new attribute.
8338 2014-01-07 Yao Qi <yao@codesourcery.com>
8340 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8343 2014-01-07 Yao Qi <yao@codesourcery.com>
8345 * gnu-nat.c (info_port_rights): Add qualifier const to
8348 2014-01-07 Yao Qi <yao@codesourcery.com>
8350 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8352 2014-01-07 Yao Qi <yao@codesourcery.com>
8354 * gnu-nat.c (make_inf) Update declaration.
8355 (make_inf): Make it static.
8356 (inf_set_traced): Likewise.
8357 (inf_port_to_thread, inf_task_died_status): Likewise.
8359 2014-01-07 Yao Qi <yao@codesourcery.com>
8361 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8363 2014-01-07 Yao Qi <yao@codesourcery.com>
8365 * gnu-nat.c (_initialize_gnu_nat): Declare.
8367 2014-01-07 Yao Qi <yao@codesourcery.com>
8369 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8371 (struct gdbarch_info) <byte_order>: Change type to
8373 <byte_order_for_code>: Likewise.
8374 * gdbarch.c, gdbarch.h: Regenerated.
8376 2014-01-06 Sasha Smundak <asmundak@google.com>
8378 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8380 2014-01-06 Tom Tromey <tromey@redhat.com>
8382 * doublest.c (convert_doublest_to_floatformat): Use const, not
8384 * somread.c (som_symtab_read): Likewise.
8386 2014-01-07 Hui Zhu <hui@codesourcery.com>
8388 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8389 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8390 (gdb_bfd_fopen): Ditto.
8391 (gdb_bfd_openr): Ditto.
8392 (gdb_bfd_openw): Ditto.
8393 (gdb_bfd_openr_iovec): Ditto.
8394 (gdb_bfd_fdopenr): Ditto.
8395 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8396 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8398 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8400 * symfile-mem.c (symbol_file_add_from_memory): Removed
8401 gdb_bfd_stash_filename.
8403 2014-01-03 Doug Evans <dje@google.com>
8405 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8408 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8410 Update year range in copyright notice of all files.
8412 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8414 * top.c (print_gdb_version): Set copyright year to 2014.
8416 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8418 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8420 For older changes see ChangeLog-2013.
8426 version-control: never