1 2014-05-29 Pedro Alves <palves@redhat.com>
3 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4 (_initialize_cli_interp): Adjust.
5 * event-loop.c: Include "observer.h".
6 (start_event_loop): Notify 'command_error' observers instead of
7 calling display_gdb_prompt. Remove FIXME comment.
8 * event-top.c (display_gdb_prompt): Remove call into the
10 * inf-loop.c: Include "observer.h".
11 (inferior_event_handler): Notify 'command_error' observers instead
12 of calling display_gdb_prompt.
13 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
14 observers instead of calling display_gdb_prompt.
15 * interps.c (interp_set): Don't call display_gdb_prompt.
16 (current_interp_display_prompt_p): Delete.
17 * interps.h (interp_prompt_p): Delete declaration.
18 (interp_prompt_p_ftype): Delete.
19 (struct interp_procs) <prompt_proc_p>: Delete field.
20 (current_interp_display_prompt_p): Delete declaration.
21 * mi-interp.c (mi_interpreter_prompt_p): Delete.
22 (_initialize_mi_interp): Adjust.
23 * tui-interp.c (tui_init): Install 'sync_execution_done' and
24 'command_error' observers.
25 (tui_on_sync_execution_done, tui_on_command_error): New
27 (tui_display_prompt_p): Delete.
28 (_initialize_tui_interp): Adjust.
30 2014-05-29 Pedro Alves <palves@redhat.com>
33 * cli/cli-interp.c: Include infrun.h and observer.h.
34 (cli_uiout, cli_interp): New globals.
35 (cli_on_signal_received, cli_on_end_stepping_range)
36 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
38 (cli_interpreter_init): Install them as 'end_stepping_range',
39 'signal_received' 'signal_exited', 'exited' and 'no_history'
41 (_initialize_cli_interp): Remove cli_interp local.
42 * infrun.c (handle_inferior_event): Call the several stop reason
43 observers instead of printing the stop reason directly.
44 (end_stepping_range): New function.
45 (print_end_stepping_range_reason, print_signal_exited_reason)
46 (print_exited_reason, print_signal_received_reason)
47 (print_no_history_reason): Make static, and add an uiout
48 parameter. Print to that instead of to CURRENT_UIOUT.
49 * infrun.h (print_end_stepping_range_reason)
50 (print_signal_exited_reason, print_exited_reason)
51 (print_signal_received_reason print_no_history_reason): New
53 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
55 <cli_uiout>: New field.
56 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
57 uiout for CLI output. Install 'signal_received',
58 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
60 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
61 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
62 (mi_on_no_history): New functions.
63 (ui_out_free_cleanup): Delete function.
64 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
65 instead use the one already stored in the MI interpreter data.
67 * tui/tui-interp.c: Include infrun.h and observer.h.
68 (tui_interp): New global.
69 (tui_on_signal_received, tui_on_end_stepping_range)
70 (tui_on_signal_exited, tui_on_exited)
71 (tui_on_no_history): New functions.
72 (tui_init): Install them as 'end_stepping_range',
73 'signal_received' 'signal_exited', 'exited' and 'no_history'
75 (_initialize_tui_interp): Delete tui_interp local.
77 2014-05-29 Pedro Alves <palves@redhat.com>
80 * linux-nat.c (linux_nat_resume_callback): Rename the second
81 parameter to 'except'. Skip LP if it points to EXCEPT.
82 (linux_nat_resume): Don't mark the event lwp as not stopped
83 before resuming sibling lwps. Instead ask
84 linux_nat_resume_callback to skip the event lwp. Mark it as not
85 stopped after actually resuming it.
86 (linux_handle_syscall_trap): Mark the lwp as not stopped after
88 (wait_lwp): Mark the lwp as stopped here.
89 (stop_wait_callback): Mark the lwp as not stopped right after
90 resuming it. Don't mark lwps as stopped here.
91 (linux_nat_filter_event): Mark the lwp as stopped earlier.
92 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
94 2014-05-29 Pedro Alves <palves@redhat.com>
97 * infrun.c (resume): Determine how much to resume depending on
98 whether the caller wanted a step, not whether we can hardware step
99 the target. Mark all threads that we intend to run as running,
100 unless we're calling an inferior function.
101 (normal_stop): If the thread is running an infcall, don't finish
103 * target.c (target_resume): Don't mark threads as running here.
105 2014-05-28 Joel Brobecker <brobecker@adacore.com>
107 * serial.c (_initialize_serial): Remove support for
108 the "set remotebaud" and "show remotebaud" commands.
109 * NEWS: Add entry documenting the removal of that command.
111 2014-05-28 Yao Qi <yao@codesourcery.com>
113 * charset.c: Fix typo in comments.
115 2014-05-27 Gary Benson <gbenson@redhat.com>
117 * utils.c (internal_vproblem): Prompt for a bug report.
119 2014-05-26 Andy Wingo <wingo@igalia.com>
121 * guile/scm-arch.c (arscm_mark_arch_smob):
122 * guile/scm-block.c (bkscm_mark_block_smob)
123 (bkscm_mark_block_syms_progress_smob):
124 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
125 * guile/scm-exception.c (exscm_mark_exception_smob):
126 * guile/scm-frame.c (frscm_mark_frame_smob):
127 * guile/scm-iterator.c (itscm_mark_iterator_smob):
128 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
129 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
130 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
131 (ppscm_mark_pretty_printer_worker_smob):
132 * guile/scm-symbol.c (syscm_mark_symbol_smob):
133 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
134 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
135 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
137 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
140 2014-05-26 Andy Wingo <wingo@igalia.com>
141 Doug Evans <xdje42@gmail.com>
143 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
144 empty_base_class. All uses updated.
145 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
146 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
148 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
149 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
150 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
151 (gdbscm_gsmob_has_property_p, add_property_name)
152 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
153 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
154 (gdb-object-has-property?, gdb-object-properties): Remove.
155 (gdb-object-kind): Renamed from gsmob-kind.
157 2014-05-26 Andy Wingo <wingo@igalia.com>
159 * configure.ac (try_guile_versions): Allow building with guile 2.2.
160 * configure: Regenerate.
162 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
164 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
166 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
168 * record-btrace.c (record_btrace_allow_memory_access): Remove.
169 (replay_memory_access_read_only, replay_memory_access_read_write)
170 (replay_memory_access_types, replay_memory_access)
171 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
172 (cmd_set_record_btrace, cmd_show_record_btrace)
173 (cmd_show_replay_memory_access): New.
174 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
175 (record_btrace_remove_breakpoint): Replace
176 record_btrace_allow_memory_access with replay_memory_access.
177 (_initialize_record_btrace): Add commands.
180 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
182 * aarch64-linux-nat.c (asm/ptrace.h): Include.
184 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
186 * MAINTAINERS (Write After Approval): Move self back from
189 2014-05-22 Pedro Alves <palves@redhat.com>
191 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
192 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
193 (disable_randomization, enum exec_direction_kind)
194 (execution_direction, stop_registers, start_remote)
195 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
196 (wait_for_inferior, normal_stop, get_last_target_status)
197 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
198 (insert_step_resume_breakpoint_at_sal)
199 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
200 (set_step_info, print_stop_event, signal_stop_state)
201 (signal_print_state, signal_pass_state, signal_stop_update)
202 (signal_print_update, signal_pass_update)
203 (update_signals_program_target, clear_exit_convenience_vars)
204 (displaced_step_dump_bytes, update_observer_mode)
205 (signal_catch_update, gdb_signal_from_command): Move
207 * infrun.h: ... to this new file.
208 * amd64-tdep.c: Include infrun.h.
209 * annotate.c: Include infrun.h.
210 * arch-utils.c: Include infrun.h.
211 * arm-linux-tdep.c: Include infrun.h.
212 * arm-tdep.c: Include infrun.h.
213 * break-catch-sig.c: Include infrun.h.
214 * breakpoint.c: Include infrun.h.
215 * common/agent.c: Include infrun.h instead of inferior.h.
216 * corelow.c: Include infrun.h.
217 * event-top.c: Include infrun.h.
218 * go32-nat.c: Include infrun.h.
219 * i386-tdep.c: Include infrun.h.
220 * inf-loop.c: Include infrun.h.
221 * infcall.c: Include infrun.h.
222 * infcmd.c: Include infrun.h.
223 * infrun.c: Include infrun.h.
224 * linux-fork.c: Include infrun.h.
225 * linux-nat.c: Include infrun.h.
226 * linux-thread-db.c: Include infrun.h.
227 * monitor.c: Include infrun.h.
228 * nto-tdep.c: Include infrun.h.
229 * procfs.c: Include infrun.h.
230 * record-btrace.c: Include infrun.h.
231 * record-full.c: Include infrun.h.
232 * remote-m32r-sdi.c: Include infrun.h.
233 * remote-mips.c: Include infrun.h.
234 * remote-notif.c: Include infrun.h.
235 * remote-sim.c: Include infrun.h.
236 * remote.c: Include infrun.h.
237 * reverse.c: Include infrun.h.
238 * rs6000-tdep.c: Include infrun.h.
239 * s390-linux-tdep.c: Include infrun.h.
240 * solib-irix.c: Include infrun.h.
241 * solib-osf.c: Include infrun.h.
242 * solib-svr4.c: Include infrun.h.
243 * target.c: Include infrun.h.
244 * top.c: Include infrun.h.
245 * windows-nat.c: Include infrun.h.
246 * mi/mi-interp.c: Include infrun.h.
247 * mi/mi-main.c: Include infrun.h.
248 * python/py-threadevent.c: Include infrun.h.
250 2014-05-22 Pedro Alves <palves@redhat.com>
252 * infrun.c (handle_inferior_event): Store the exit code for
253 --return-child-result here, instead of ...
254 (print_exited_reason): ... here.
256 2014-05-21 Pedro Alves <palves@redhat.com>
259 * gdbthread.h (struct thread_control_state): New field
261 * infrun.c (follow_fork): Copy the new thread control field to the
263 (clear_proceed_status_thread): Clear the new thread control field.
264 (proceed): Set the new thread control field.
265 * interps.h (command_interp): Declare.
266 * interps.c (command_interpreter): New global.
267 (command_interp): New function.
268 (interp_exec): Set `command_interpreter' while here.
269 * cli-out.c (cli_uiout_dtor): New function.
270 (cli_ui_out_impl): Install it.
271 * mi/mi-interp.c: Include cli-out.h.
272 (mi_cmd_interpreter_exec): Add comment.
273 (restore_current_uiout_cleanup): New function.
274 (ui_out_free_cleanup): New function.
275 (mi_on_normal_stop): If finishing an execution command started by
276 a CLI command, or any kind of breakpoint-like event triggered,
277 print the stop event to the output (CLI) stream.
278 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
280 2014-05-21 Pedro Alves <palves@redhat.com>
282 * cli/cli-cmds.c (list_command): Handle the first "list" after the
283 current source line having changed.
284 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
285 * infrun.c (normal_stop): Adjust call to
286 set_current_sal_from_frame.
287 * source.c (clear_lines_listed_range): New function.
288 (set_current_source_symtab_and_line, identify_source_line): Clear
289 the lines listed range.
290 (line_info): Handle the first "info line" after the current source
292 * stack.c (print_stack_frame): Remove center handling.
293 (set_current_sal_from_frame): Remove 'center' parameter. Don't
296 2014-05-21 Pedro Alves <palves@redhat.com>
298 * inf-child.c (inf_child_mourn_inferior): New function.
299 * inf-child.h (inf_child_mourn_inferior): New declaration.
300 * darwin-nat.c (darwin_mourn_inferior): Use
301 inf_child_mourn_inferior.
302 * gnu-nat.c (gnu_mourn_inferior): Likewise.
303 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
304 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
305 * nto-procfs.c (procfs_mourn_inferior): Likewise.
306 * windows-nat.c (windows_mourn_inferior): Likewise.
308 2014-05-21 Doug Evans <xdje42@gmail.com>
310 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
312 2014-05-21 Doug Evans <xdje42@gmail.com>
314 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
315 (gdbscm_out_of_range_error): Ditto.
316 (gdbscm_memory_error): Ditto.
317 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
318 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
319 (gdbscm_out_of_range_error): Update.
320 (gdbscm_memory_error): Update.
321 (gdbscm_scm_to_target_string_unsafe): Delete.
323 2014-05-21 Pedro Alves <palves@redhat.com>
325 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
327 (inf_child_open_target): New function.
328 (inf_child_open): Use inf_child_open_target to push the target
329 instead of erroring out.
330 (inf_child_disconnect, inf_child_close)
331 (inf_child_maybe_unpush_target): New functions.
332 (inf_child_target): Install inf_child_disconnect and
333 inf_child_close. Store a pointer to the returned object.
334 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
336 * target.c (auto_connect_native_target): New global.
337 (show_default_run_target): New function.
338 (find_default_run_target): Return NULL if automatically connecting
339 to the native target is disabled.
340 (_initialize_target): Install set/show auto-connect-native-target.
341 * NEWS: Mention "set auto-connect-native-target", and "target
343 * linux-nat.c (super_close): New global.
344 (linux_nat_close): Call super_close.
345 (linux_nat_add_target): Store a pointer to the base class's
347 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
348 inf_child_maybe_unpush.
349 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
351 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
352 the inferior. Use inf_child_maybe_unpush_target.
353 (inf_ttrace_attach): Don't push the target if it is already
355 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
356 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
357 after mourning the inferior. Use inf_child_maybe_unpush_target.
358 (darwin_attach_pid): Don't push the target if it is already
360 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
361 mourning the inferior. Use inf_child_maybe_unpush_target.
362 (gnu_detach): Use inf_child_maybe_unpush_target.
363 * go32-nat.c (go32_create_inferior): Don't push the target if it
365 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
366 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
367 (procfs_open): Rename to ...
368 (procfs_open_1): ... this. Add target_ops parameter. Adjust
369 comments. Can target_preopen before changing node. Call
370 inf_child_open_target to push the target explicitly.
371 (procfs_attach): Don't push the target if it is already pushed.
372 (procfs_detach): Use inf_child_maybe_unpush_target.
373 (procfs_create_inferior): Don't push the target if it is already
375 (nto_native_ops): New global.
376 (procfs_open): Reimplement.
377 (procfs_native_open): New function.
378 (init_procfs_targets): Install procfs_native_open as to_open of
379 "target native". Store a pointer to the "native" target in
381 * procfs.c (procfs_attach): Don't push the target if it is already
383 (procfs_detach): Use inf_child_maybe_unpush_target.
384 (procfs_mourn_inferior): Only unpush the target after mourning the
385 inferior. Use inf_child_maybe_unpush_target.
386 (procfs_init_inferior): Don't push the target if it is already
388 * windows-nat.c (do_initial_windows_stuff): Don't push the target
389 if it is already pushed.
391 2014-05-21 Pedro Alves <palves@redhat.com>
393 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
394 and "procfs" targets are now called "native" instead.
396 2014-05-21 Pedro Alves <palves@redhat.com>
398 * go32-nat.c (go32_open): Delete.
399 (go32_target): Don't override the to_open method.
401 2014-05-21 Pedro Alves <palves@redhat.com>
403 * nto-procfs.c (procfs_can_run): New function.
404 (nto_procfs_ops): New global.
405 (init_procfs_targets): New, based on procfs_target. Install
406 "target native" in addition to "target procfs".
407 (_initialize_procfs): Call init_procfs_targets instead of adding
410 2014-05-21 Pedro Alves <palves@redhat.com>
412 * windows-nat.c (windows_target): Don't override to_shortname,
413 to_longname or to_doc.
415 2014-05-21 Pedro Alves <palves@redhat.com>
417 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
420 2014-05-21 Pedro Alves <palves@redhat.com>
422 * darwin-nat.c (_initialize_darwin_inferior): Don't override
423 to_shortname, to_longname or to_doc.
425 2014-05-21 Pedro Alves <palves@redhat.com>
427 * go32-nat.c (go32_target): Don't override to_shortname,
428 to_longname or to_doc.
430 2014-05-21 Pedro Alves <palves@redhat.com>
432 * inf-child.c (inf_child_open): Remove mention of "child".
433 (inf_child_target): Rename target to "native" instead of "child".
435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
437 * Makefile.in (SFILES): Delete "regset.c".
438 (COMMON_OBS): Delete "regset.o".
440 * regset.h (regset_alloc): Delete prototype.
442 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
444 * sparc-linux-tdep.c (sparc32_linux_gregset)
445 (sparc32_linux_fpregset): New static regset structures.
446 (sparc32_linux_init_abi): Drop dynamic regset allocations.
447 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
449 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
450 (sparc64_linux_fpregset): New static regset structures.
451 (sparc64_linux_init_abi): Drop dynamic regset allocations.
452 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
453 New static regset structures.
454 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
455 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
456 New static regset structures.
457 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
458 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
459 New static regset structures.
460 (sparc64obsd_init_abi): Drop dynamic regset allocations.
461 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
462 New static regset structures.
463 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
465 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
467 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
468 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
469 register maps ("regmaps") from "*regset" to "*regmap". Do this
470 for all regmap types and variables.
471 * sparc-linux-tdep.c (sparc32_linux_step_trap)
472 (sparc32_linux_supply_core_gregset)
473 (sparc32_linux_collect_core_gregset)
474 (sparc32_linux_supply_core_fpregset)
475 (sparc32_linux_collect_core_fpregset): Likewise.
476 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
477 (sparc_gregmap, sparc_fpregmap): ... these.
478 (sparc_supply_gregset, sparc_collect_gregset)
479 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
480 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
481 (_initialize_sparc_nat): Rename regmaps.
482 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
483 (sparc_gregmap, sparc_fpregmap): ... these.
484 (sparc_supply_gregset, sparc_collect_gregset)
485 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
486 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
488 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
489 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
491 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
493 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
494 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
495 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
497 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
498 (sparc32_bsd_fpregset): Rename to...
499 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
500 (sparc32_bsd_fpregmap): ... these.
501 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
502 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
503 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
504 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
505 (struct sparc_gregmap, struct sparc_fpregmap)
506 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
507 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
508 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
509 (sparc32_supply_regset, sparc32_collect_gregset)
510 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
512 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
513 (sparc64_linux_ptrace_gregmap): ... this.
514 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
515 (_initialize_sparc64_linux_nat): Rename regmaps.
516 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
517 (sparc64_linux_core_gregmap): ... this.
518 (sparc64_linux_supply_core_gregset)
519 (sparc64_linux_collect_core_gregset)
520 (sparc64_linux_supply_core_fpregset)
521 (sparc64_linux_collect_core_fpregset): Rename regmaps.
522 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
523 (sparc64_sol2_fpregset): Rename to...
524 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
525 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
526 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
528 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
529 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
530 (sparc64_bsd_fpregset): Rename to...
531 (struct sparc_gregmap, sparc64_sol2_gregmap)
532 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
533 (sparc64_bsd_fpregmap): ... these.
534 (sparc64_supply_gregset, sparc64_collect_gregset)
535 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
537 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
538 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
539 (sparc64fbsd_gregmap): ... this.
540 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
541 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
543 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
544 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
545 (sparc64nbsd_collect_fpregset): Likewise.
546 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
547 (sparc64nbsd_gregmap): ... this.
548 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
550 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
551 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
552 (sparc64obsd_gregmap): ... this.
553 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
555 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
556 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
557 (sparc32nbsd_gregmap): ... this.
558 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
561 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
563 * score-tdep.c (score7_linux_gregset): New static regset
565 (score7_linux_regset_from_core_section): Remove dynamic regset
567 (score_gdbarch_init): Drop allocation of tdep structure.
568 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
570 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
572 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
574 (am33_regset_from_core_section): Remove dynamic regset
577 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
579 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
580 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
582 (mips_linux_regset_from_core_section): Remove dynamic regset
584 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
585 'gregset64', 'fpregset', and 'fpregset64'.
586 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
589 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
591 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
593 (amd64_regset_from_core_section): Remove dynamic regset
595 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
597 (amd64obsd_regset_from_core_section): Remove dynamic regset
599 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
601 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
602 x86-common regset supply function.
603 * i386-tdep.c (i386_collect_gregset): Make static.
604 (i386_gregset): New global regset structure.
605 (i386_fpregset, i386_xstateregset): New static regset structures.
606 (i386_regset_from_core_section): Remove dynamic regset
608 (i386_gdbarch_init): Remove initialization of tdep fields
609 'gregset', 'fpregset', and 'xstateregset'.
610 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
611 'fpregset', and 'xstateregset'.
612 (i386_collect_gregset): Remove prototype.
613 (i386_gregset): New declaration.
614 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
616 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
619 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
621 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
622 (arm_linux_vfpregset): New static regset structures.
623 (arm_linux_regset_from_core_section): Remove dynamic allocation of
625 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
626 and 'vfpregset' fields.
628 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
630 * aarch64-linux-tdep.c (aarch64_linux_gregset)
631 (aarch64_linux_fpregset): New static regset structures.
632 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
633 of regset structures.
634 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
639 * regset.h (struct regset): Remove gdbarch field.
640 * regset.c (regset_alloc): Drop initialization of gdbarch field.
641 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
642 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
644 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
645 (ppc32_linux_fpregset, ppc32_linux_vrregset)
646 (ppc32_linux_vsxregset): Likewise.
647 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
648 via the regcache instead of the regset.
649 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
650 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
651 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
652 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
655 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
657 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
659 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
660 (alphanbsd_aout_gregset): Likewise.
661 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
662 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
664 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
665 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
667 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
668 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
669 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
670 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
671 * m88k-tdep.c (m88k_gregset): Likewise.
672 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
673 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
674 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
675 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
676 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
677 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
678 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
679 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
680 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
682 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
683 * sh-tdep.h (sh_corefile_gregset): Likewise.
684 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
685 * vax-tdep.c (vax_gregset): Likewise.
687 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
689 Fix TLS access for -static -pthread.
690 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
691 (try_thread_db_load_1): Initialize it.
692 (thread_db_get_thread_local_address): Call it if LM is zero.
693 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
694 * target.h (struct target_ops) (to_get_thread_local_address): Add
695 load_module_addr comment.
697 2014-05-21 Pedro Alves <palves@redhat.com>
699 * dcache.c (dcache_read_memory_partial): If reading the cache line
700 fails, fallback to reading just the memory the caller wanted.
702 2014-05-20 Doug Evans <dje@google.com>
704 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
705 instead of get_current_arch.
707 2014-05-20 Pedro Alves <palves@redhat.com>
709 * NEWS: Mention that compare-sections now works with all targets.
711 * remote.c (PACKET_qCRC): New enum value.
712 (remote_verify_memory): Don't send qCRC if the target has no
713 execution. Use packet_support/packet_ok. If the target doesn't
714 support the qCRC packet, fallback to a deep memory copy.
715 (compare_sections_command): Say "target image" instead of "remote
717 (_initialize_remote): Add PACKET_qCRC to the list of config
718 packets that have no associated command. Extend comment.
719 * target.c (simple_verify_memory, default_verify_memory): New
721 * target.h (struct target_ops) <to_verify_memory>: Default to
722 default_verify_memory.
723 (simple_verify_memory): New declaration.
724 * target-delegates.c: Regenerate.
726 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
728 * record-btrace.c (record_btrace_step_thread): Check for empty history.
730 2014-05-20 Hui Zhu <hui@codesourcery.com>
731 Yao Qi <yao@codesourcery.com>
734 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
735 and change address of sp and pc.
737 2014-05-19 Tom Tromey <tromey@redhat.com>
739 * gdbtypes.c (rank_function): Use XNEWVEC.
740 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
742 2014-05-19 Doug Evans <dje@google.com>
744 * dwarf2read.c (build_type_psymtabs_1): Renamed from
745 build_type_unit_groups and moved closer to only caller. Remove
746 arguments. All references updated. Remove outdated .gdb_index
748 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
749 build_type_psymtabs_1.
751 2014-05-19 Doug Evans <dje@google.com>
753 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
754 n_type_unit_groups, all_type_unit_groups. All uses removed.
755 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
756 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
757 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
758 (add_type_unit_group_to_table): Delete.
760 2014-05-19 Doug Evans <dje@google.com>
762 * eval.c (evaluate_subexp_standard): Add some comments.
764 2014-05-17 Doug Evans <xdje42@gmail.com>
766 * progspace.c (remove_program_space): Delete, unused.
767 * progspace.h (remove_program_space): Ditto.
769 2014-05-17 Doug Evans <xdje42@gmail.com>
771 * inferior.c (prune_inferiors): Fix comment.
772 (remove_inferior_command): Call prune_program_spaces.
774 2014-05-16 Doug Evans <dje@google.com>
776 New command line option -D.
778 * main.c (set_gdb_data_directory): New function.
779 (captured_main): Recognize -D. Flag error for --data-directory "".
780 Call set_gdb_data_directory.
781 (print_gdb_help): Print --data-directory, -D.
782 * main.h (set_gdb_data_directory): Declare.
783 * top.c (staged_gdb_datadir): New static global.
784 (set_gdb_datadir): Call set_gdb_data_directory
785 (show_gdb_datadir): New function.
786 (init_main): Update init of data-directory parameter.
788 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
790 Import the "dirfd" gnulib module.
791 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
792 * gnulib/aclocal.m4: Update.
793 * gnulib/config.in: Update.
794 * gnulib/configure: Update.
795 * gnulib/import/Makefile.am: Update.
796 * gnulib/import/Makefile.in: Update.
797 * gnulib/import/dirfd.c: New.
798 * gnulib/import/m4/dirfd.m4: New.
799 * gnulib/import/m4/gnulib-cache.m4: Update.
800 * gnulib/import/m4/gnulib-comp.m4: Update.
802 2014-05-16 Pierre Muller <muller@sourceware.org>
803 Yao Qi <yao@codesourcery.com>
805 * valprint.c (print_wchar): Move the code on checking whether
806 W is a printable wide char to the default branch of switch
807 statement below. Call wchar_printable instead of gdb_iswprint.
809 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
811 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
812 ldr.w and ldrd instructions.
814 2014-05-15 Doug Evans <dje@google.com>
816 * dwarf2read.c (read_structure_type): Delete outdated comments.
818 2014-05-14 Tom Tromey <tromey@redhat.com>
820 * macrocmd.c (print_macro_definition): Reindent.
822 2014-05-13 Doug Evans <xdje42@gmail.com>
824 * python/py-cmd.c (cmdpy_completer): Add comment.
825 (completers): Make const.
827 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
829 * infrun.c (resume): Remove should_resume (unused). Move up
830 declaration of resume_ptid.
832 2014-05-13 Tom Tromey <tromey@redhat.com>
834 * language.h (unop_type_check): Remove.
835 (binop_type_check): Don't declare.
837 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
839 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
840 call to regcache_raw_collect.
842 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
844 * mi/mi-console.c (mi_console_raw_packet): Use the value from
845 mi_console->quote as the quoting character.
847 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
849 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
851 2014-04-29 Tom Tromey <tromey@redhat.com>
853 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
856 2014-05-07 Kyle McMartin <kyle@redhat.com>
858 Pushed by Joel Brobecker <brobecker@adacore.com>.
859 * aarch64-tdep.c (aarch64_software_single_step): New function.
860 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
861 with aarch64_software_single_step.
863 2014-05-05 Joel Brobecker <brobecker@adacore.com>
867 2014-05-05 Keith Seitz <keiths@redhat.com>
869 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
870 variable or history value is successfully parsed.
872 2014-05-05 Yao Qi <yao@codesourcery.com>
873 Pedro Alves <palves@redhat.com>
875 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
876 address of blocks that intersects the requested range. Trim
877 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
879 * ctf.c (ctf_xfer_partial): Likewise.
881 2014-05-05 Yao Qi <yao@codesourcery.com>
883 * printcmd.c (display_command): Remove the check to
884 target_has_execution.
886 2014-05-03 Mark Kettenis <kettenis@gnu.org>
888 * ppcobsd-nat.c: Include "obsd-nat.h".
889 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
891 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
893 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
895 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
896 and 16-bit signed and unsigned arguments. Update comment.
897 (stap_parse_probe_arguments): Extend code to handle such
898 arguments. Use warning instead of complaint to notify about
899 unrecognized bitness.
901 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
904 * stap-probe.c (stap_parse_probe_arguments): Simplify
905 check for non-prefixed probes (i.e., probes whose
906 arguments do not start with "N@"). Always set the
907 argument type to a sane value.
909 2014-05-01 David Taylor <dtaylor@emc.com>
911 * remote.c (compare_sections_command): Add -r option to compare
912 all loadable read-only sections.
914 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
916 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
917 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
919 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
920 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
921 Remove unused CORE_ADDR argument. Update all callers.
923 2014-04-29 Pedro Alves <palves@redhat.com>
925 * remote.c (struct packet_config) <detect>: Extend comment.
926 (add_packet_config_cmd): Don't set the config's detect or support
928 (init_all_packet_configs): Also initialize the config's 'detect'
930 (reset_all_packet_configs_support): New function.
931 (remote_open_1): Call reset_all_packet_configs_support instead of
932 init_all_packet_configs.
933 (_initialize_remote): Initialize all packet configs. Assert that
934 all packets have an associated command, except a few known
937 2014-04-28 Joel Brobecker <brobecker@adacore.com>
939 * dwarf2read.c (read_subrange_type): Handle dynamic
940 DW_AT_lower_bound attributes.
942 2014-04-28 Joel Brobecker <brobecker@adacore.com>
944 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
945 dynamic bounds before computing its upper bound.
946 (ada_discrete_type_low_bound): Same as above with the lower bound.
948 2014-04-28 Joel Brobecker <brobecker@adacore.com>
950 * dwarf2read.c (is_dynamic_type): Return true for dynamic
951 range types. Adjust the array handling implementation to
952 take advantage of this change.
953 (resolve_dynamic_range): New function, mostly extracted from
954 resolve_dynamic_bounds.
955 (resolve_dynamic_array): New function, mostly extracted from
956 resolve_dynamic_bounds.
957 (resolve_dynamic_bounds): Delete.
958 (resolve_dynamic_type): Reimplement. Add handling of
959 TYPE_CODE_RANGE types.
961 2014-04-28 Joel Brobecker <brobecker@adacore.com>
963 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
964 handling of parallel ___XA types.
966 2014-04-28 Joel Brobecker <brobecker@adacore.com>
968 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
969 unnecessary second call to static_unwrap_type.
971 2014-04-27 Hui Zhu <hui@codesourcery.com>
973 * stack.c (print_frame_info): Call do_gdb_disassembly with
974 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
976 2014-04-26 Doug Evans <xdje42@gmail.com>
978 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
980 2014-04-25 Pedro Alves <palves@redhat.com>
983 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
984 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
985 and newline from built string.
986 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
987 (linux_ptrace_attach_fail_reason): ... this.
988 * linux-nat.c (linux_nat_attach): Adjust to use
989 linux_ptrace_attach_fail_reason.
991 2014-04-25 Pedro Alves <palves@redhat.com>
993 * remote.c (struct remote_state): Remove multi_process_aware,
994 non_stop_aware, cond_tracepoints, cond_breakpoints,
995 breakpoint_commands, fast_tracepoints, static_tracepoints,
996 install_in_trace, disconnected_tracing,
997 enable_disable_tracepoints, string_tracing, and
998 augmented_libraries_svr4_read fields.
999 (remote_multi_process_p): Move further below in the file.
1000 (struct packet_config): Add comments.
1001 (update_packet_config): Delete function.
1002 (show_packet_config_cmd): Use packet_config_support.
1003 (add_packet_config_cmd): Use NULL as set callback.
1004 (packet_ok): "set remote foo-packet"-style commands no longer
1005 change config->supported -- adjust.
1006 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1007 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1008 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1009 (PACKET_QNonStop, PACKET_multiprocess_feature)
1010 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1011 (PACKET_DisconnectedTracing_feature)
1012 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1013 (set_remote_protocol_packet_cmd): Delete function.
1014 (packet_config_support, packet_support): New functions.
1015 (set_remote_protocol_Z_packet_cmd): Don't call
1016 update_packet_config.
1017 (remote_query_attached, remote_pass_signals)
1018 (remote_program_signals, remote_threads_info)
1019 (remote_threads_extra_info, remote_start_remote): Use
1021 (remote_start_remote): Use packet_config_support and
1023 (init_all_packet_configs): Set all packets to unknown support,
1024 instead of calling update_packet_config.
1025 (remote_check_symbols): Use packet_support.
1026 (remote_supported_packet): Unconditionally set the packet config's
1028 (remote_multi_process_feature, remote_non_stop_feature)
1029 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1030 (remote_breakpoint_commands_feature)
1031 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1032 (remote_install_in_trace_feature)
1033 (remote_disconnected_tracing_feature)
1034 (remote_enable_disable_tracepoint_feature)
1035 (remote_string_tracing_feature)
1036 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1037 (remote_protocol_features): Adjust to use remote_supported_packet
1038 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1039 "ConditionalTracepoints", "ConditionalBreakpoints",
1040 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1041 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1042 "EnableDisableTracepoints", and "tracenz".
1043 (remote_query_supported): Use packet_support.
1044 (remote_open_1): Adjust.
1045 (extended_remote_attach_1): Use packet_support. Switch on the
1046 result of packet_ok instead of checking whether the packet ended
1048 (remote_vcont_resume): Use packet_support.
1049 (remote_resume, remote_stop_ns, fetch_register_using_p)
1050 (remote_prepare_to_store, store_register_using_P)
1051 (check_binary_download, remote_write_bytes): Use packet_support.
1052 (remote_vkill): Use packet_support. Switch on the result of
1053 packet_ok instead of checking whether the packet ended up
1055 (extended_remote_supports_disable_randomization): Use
1057 (extended_remote_run): Switch on the result of packet_ok instead
1058 of checking whether the packet ended up disabled.
1059 (remote_insert_breakpoint, remote_remove_breakpoint)
1060 (remote_insert_watchpoint, remote_remove_watchpoint)
1061 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1063 (remote_search_memory): Use packet_config_support.
1064 (remote_get_thread_local_address, remote_get_tib_address)
1065 (remote_hostio_send_command, remote_can_execute_reverse): Use
1067 (remote_supports_cond_tracepoints)
1068 (remote_supports_cond_breakpoints)
1069 (remote_supports_fast_tracepoints)
1070 (remote_supports_static_tracepoints)
1071 (remote_supports_install_in_trace)
1072 (remote_supports_enable_disable_tracepoint)
1073 (remote_supports_string_tracing)
1074 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1075 the packet config says the feature is enabled or disabled.
1076 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1077 (remote_get_trace_status): Use packet_support.
1078 (remote_set_disconnected_tracing): Adjust to check whether the
1079 feature is enabled with packet_support.
1080 (remote_set_trace_buffer_size, remote_use_agent)
1081 (remote_can_use_agent, remote_supports_btrace): Use
1083 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1084 Use packet_config_support.
1085 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1086 the packet config says the feature is enabled or disabled.
1087 (set_range_stepping): Use packet_support.
1089 2014-04-25 Tom Tromey <tromey@redhat.com>
1091 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1094 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1096 * NEWS: Mention support for C99 variable length arrays.
1098 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1100 * ada-lang.c (standard_exc): Expand introductory comment.
1102 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1103 Walfred Tedeschi <walfred.tedeschi@intel.com>
1105 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1107 (amd64_linux_read_description): Add code to handle AVX512 xstate
1108 mask and return respective tdesc.
1109 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1110 and features/i386/x32-avx512-linux.c.
1111 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1112 (amd64_linux_core_read_description): Add code to handle AVX512
1113 xstate mask and return respective tdesc.
1114 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1115 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1117 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1118 (tdesc_amd64_avx512_linux): New prototype.
1119 (tdesc_x32_avx512_linux): Likewise.
1120 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1121 features/i386/x32-avx512.c.
1122 (amd64_ymm_avx512_names): New register names for pseudo
1124 (amd64_ymmh_avx512_names): New register names for raw registers
1126 (amd64_k_names): New register names for K registers.
1127 (amd64_zmmh_names): New register names for ZMM raw registers.
1128 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1129 (amd64_xmm_avx512_names): New register names for XMM16-31
1131 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1133 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1134 if feature is present.
1135 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1136 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1137 (AMD64_NUM_REGS): Adjust to new number of registers.
1138 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1139 registers supplied via XSTATE by AVX512 registers.
1140 (i386_linux_read_description): Add case for AVX512.
1141 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1142 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1143 (i386_linux_core_read_description): Add case for AVX512.
1144 (i386_linux_init_abi): Install supported register note section
1146 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1148 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1149 registers to be number of zmm7h + 1.
1150 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1151 * i386-tdep.c: Include features/i386/i386-avx512.c.
1152 (i386_zmm_names): Add ZMM pseudo register names array.
1153 (i386_zmmh_names): Add ZMM raw register names array.
1154 (i386_k_names): Add K raw register names array.
1155 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1156 registers. AVX512 has 16 more ZMM registers than there are YMM
1158 (i386_zmmh_regnum_p): Add function to look up register number of
1160 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1161 (i386_k_regnum_p): Likewise for K raw registers.
1162 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1163 registers added by AVX512.
1164 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1165 registers added by AVX512.
1166 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1168 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1169 (i386_pseudo_register_name): Add ZMM pseudo registers.
1170 (i386_zmm_type): Construct and return vector registers type for ZMM
1172 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1173 ZMM0-31 pseudo registers and K registers.
1174 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1175 and YMM16-31 registers from register cache.
1176 (i386_pseudo_register_write): Add code to write K, ZMM and
1178 (i386_register_reggroup_p): Add code to include/exclude AVX512
1179 registers in/from respective register groups.
1180 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1181 registers if feature is present in xcr0.
1182 (i386_gdbarch_init): Add code to initialize AVX512 feature
1183 variables in tdep structure, wire in pseudo registers and call
1184 initialize_tdesc_i386_avx512.
1185 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1187 (i386_regnum): Add AVX512 registers.
1188 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1189 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1190 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1191 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1193 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1194 (i386_ymm_avx512_regnum_p): Likewise.
1195 (i386_k_regnum_p): Likewise.
1196 (i386_zmm_regnum_p): Likewise.
1197 (i386_zmmh_regnum_p): Likewise.
1198 * i387-tdep.c : Update year in copyright notice.
1199 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1201 (XSAVE_YMM_AVX512_ADDR): New macro.
1202 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1204 (XSAVE_XMM_AVX512_ADDR): New macro.
1205 (xsave_avx512_k_offset): New table for K register offsets in
1207 (XSAVE_AVX512_K_ADDR): New macro.
1208 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1210 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1211 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1213 (i387_collect_xsave): Add code to collect AVX512 registers from
1215 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1216 of XMM16-31 registers.
1217 (I387_NUM_K_REGS): New define for number of K registers.
1218 (I387_K0_REGNUM): New define for K0 register number.
1219 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1220 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1221 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1223 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1224 (I387_XMM16_REGNUM): New define for XMM16 register number.
1225 (I387_YMM0_REGNUM): New define for YMM0 register number.
1226 (I387_KEND_REGNUM): New define for last K register number.
1227 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1228 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1230 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1232 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1234 * features/Makefile: Add AVX512 related files.
1235 * features/i386/32bit-avx512.xml: New file.
1236 * features/i386/64bit-avx512.xml: Likewise.
1237 * features/i386/amd64-avx512-linux.c: Likewise.
1238 * features/i386/amd64-avx512-linux.xml: Likewise.
1239 * features/i386/amd64-avx512.c: Likewise.
1240 * features/i386/amd64-avx512.xml: Likewise.
1241 * features/i386/i386-avx512-linux.c: Likewise.
1242 * features/i386/i386-avx512-linux.xml: Likewise.
1243 * features/i386/i386-avx512.c: Likewise.
1244 * features/i386/i386-avx512.xml: Likewise.
1245 * features/i386/x32-avx512-linux.c: Likewise.
1246 * features/i386/x32-avx512-linux.xml: Likewise.
1247 * features/i386/x32-avx512.c: Likewise.
1248 * features/i386/x32-avx512.xml: Likewise.
1249 * regformats/i386/amd64-avx512-linux.dat: New file.
1250 * regformats/i386/amd64-avx512.dat: Likewise.
1251 * regformats/i386/i386-avx512-linux.dat: Likewise.
1252 * regformats/i386/i386-avx512.dat: Likewise.
1253 * regformats/i386/x32-avx512-linux.dat: Likewise.
1254 * regformats/i386/x32-avx512.dat: Likewise.
1255 * NEWS: Add note about new support for AVX512.
1258 2014-04-23 Pedro Alves <palves@redhat.com>
1260 * breakpoint.c (insert_bp_location): Tolerate errors if the
1261 breakpoint is set in a user-loaded objfile.
1262 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1263 location is marked shlib_disabled. If the breakpoint is set in a
1264 user-loaded objfile is a GDB-side memory breakpoint, validate it
1265 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1266 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1268 * mem-break.c (memory_validate_breakpoint): New function.
1269 * objfiles.c (userloaded_objfile_contains_address_p): New
1271 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1272 * target.h (memory_validate_breakpoint): New declaration.
1274 2014-04-23 Pedro Alves <palves@redhat.com>
1276 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1277 the breakpoint is set in a shared library, only suppress
1278 errors for software breakpoints, not hardware breakpoints.
1280 2014-04-22 Pedro Alves <palves@redhat.com>
1282 * infrun.c (schedlock_applies): New function, factored out from
1283 find_thread_needs_step_over.
1284 (find_thread_needs_step_over): Use it.
1285 (switch_back_to_stepped_thread): Always clear trap_expected if the
1286 step over is finished. Return early if scheduler locking applies.
1287 Look for the stepping thread and a potential step-over thread with
1289 (currently_stepping_or_nexting_callback): Delete.
1291 2014-04-22 Nick Clifton <nickc@redhat.com>
1293 * NEWS: Mention that ARM sim now supports tracing.
1295 2014-04-22 Yao Qi <yao@codesourcery.com>
1297 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1299 * tracefile.c (tracefile_fetch_registers): ... it. New
1301 * tracefile.h (tracefile_fetch_registers): Declare.
1302 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1303 tracefile_fetch_registers.
1305 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1308 * windows-nat.c (thread_rec): Don't display a warning when
1309 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1310 fails for any reason, set th->suspended to -1, so that we don't
1311 try to resume such a thread. Also, don't return NULL in these
1312 cases, to avoid completely ruin the session due to "PC register is
1313 not available" error.
1314 (do_windows_fetch_inferior_registers): Check errors in
1315 GetThreadContext call.
1316 (windows_continue): Accept an additional argument KILLED; if not
1317 zero, ignore errors in the SetThreadContext call, since the
1318 inferior was killed and is shutting down.
1319 (windows_resume, get_windows_debug_event)
1320 (windows_create_inferior, windows_mourn_inferior)
1321 (windows_kill_inferior): All callers of windows_continue changed
1322 to adjust to its new calling sequence.
1324 2014-04-19 Yao Qi <yao@codesourcery.com>
1326 * ctf.c (ctf_open): Call post_create_inferior.
1328 2014-04-19 Yao Qi <yao@codesourcery.com>
1330 * ctf.c (handle_id): New static variable.
1331 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1332 value. Get the declaration of event "register" and get length
1333 of field "contents".
1335 2014-04-19 Yao Qi <yao@codesourcery.com>
1337 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1339 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1341 * valops.c (oload_method_static): Remove unnecessary argument
1342 METHOD. Update all callers.
1344 2014-04-18 Pedro alves <palves@redhat.com>
1345 Tom Tromey <tromey@redhat.com>
1348 * frame.c (get_prev_frame_1): Rename to ...
1349 (get_prev_frame_always): ... this, and make extern. Adjust.
1350 (skip_artificial_frames): Use get_prev_frame_always.
1351 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1352 (get_frame_unwind_stop_reason): Adjust to rename.
1353 * frame.h (get_prev_frame_always): Declare.
1354 * inline-frame.c: Include frame.h.
1355 (inline_frame_this_id): Use get_prev_frame_always.
1357 2014-04-18 Tristan Gingold <gingold@adacore.com>
1359 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1360 code by using bfd_mach_o_get_base_address.
1362 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1364 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1365 (spu_ax_pseudo_register_collect): New function.
1366 (spu_ax_pseudo_register_push_stack): Likewise.
1367 (spu_dwarf_reg_to_regnum): Likewise.
1368 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1370 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1372 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1373 Replace FRAME argument with FRAME_ID.
1374 * gdbarch.c, gdbarch.h: Regenerate.
1375 * findvar.c (default_value_from_register): Add GDBARCH argument;
1376 replace FRAME by FRAME_ID. No longer call get_frame_id.
1377 (value_from_register): Update call to gdbarch_value_from_register.
1378 * value.h (default_value_from_register): Update prototype.
1379 * s390-linux-tdep.c (s390_value_from_register): Update interface
1380 and call to default_value_from_register.
1381 * spu-tdep.c (spu_value_from_register): Likewise.
1383 * findvar.c (address_from_register): Remove TYPE argument.
1384 Do not call value_from_register; use gdbarch_value_from_register
1385 with null_frame_id instead.
1386 * value.h (address_from_register): Update prototype.
1387 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1388 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1389 address_from_register interface change.
1391 2014-04-17 Yao Qi <yao@codesourcery.com>
1393 * gdbtypes.h: Update comments to link to types and macros'
1396 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1398 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1400 2014-04-16 Keith Seitz <keiths@redhat.com>
1403 * dwarf2read.c (skip_one_die): Check that all relative-offset
1404 sibling DIEs fall within range of the current reader's buffer.
1405 (read_partial_die): Likewise.
1407 2014-04-16 Keith Seitz <keiths@redhat.com>
1410 * cp-namespace.c (lookup_symbol_file): If the type name of
1411 `this' is NULL, return immediately.
1413 2014-04-14 Keith Seitz <keiths@redhat.com>
1416 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1417 from symbol_matches_domain in symtab.c. All local callers
1418 of symbol_matches_domain updated.
1419 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1420 search STRUCT_DOMAIN.
1421 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1422 independently. standard_lookup will do that automatically.
1423 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1424 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1425 (cp_lookup_symbol_in_namespace): Likewise.
1426 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1427 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1428 may return a STRUCT_DOMAIN match.
1429 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1430 * cp-support.c: Include language.h.
1431 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1433 * psymtab.c (match_partial_symbol): Compare the requested
1434 domain with the symbol's domain directly.
1435 (lookup_partial_symbol): Likewise.
1436 * symtab.c (lookup_symbol_in_language): Explain when/why
1437 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1438 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1439 appropriate languages.
1440 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1441 and moved to ada-lang.c
1442 (lookup_block_symbol): Explain that this function only returns
1443 symbol matching the requested DOMAIN.
1444 Compare the requested domain with the symbol's domain directly.
1445 (iterate_over_symbols): Compare the requested domain with the
1446 symbol's domain directly.
1447 * symtab.h (symbol_matches_domain): Remove.
1449 2014-04-14 Tom Tromey <tromey@redhat.com>
1452 * c-exp.y (type_aggregate_p): New function.
1453 (qualified_name, classify_inner_name): Use it.
1454 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1455 and TYPE_TARGET_TYPE of an enum type.
1456 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1458 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1459 handle TYPE_DECLARED_CLASS.
1460 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1462 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1463 * valops.c (enum_constant_from_type): New function.
1464 (value_aggregate_elt): Use it.
1465 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1468 2014-04-14 Tom Tromey <tromey@redhat.com>
1470 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1471 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1473 * value.h (value_aggregate_elt): Update.
1475 2014-04-14 Tom Tromey <tromey@redhat.com>
1477 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1479 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1481 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1482 (evaluate_subexp_standard): Pass noside argument.
1483 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1484 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1485 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1486 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1487 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1489 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1491 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1492 points to a constant blob.
1494 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1496 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1497 property and store it as the high bound and flag the range accordingly.
1498 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1499 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1500 * gdbtypes.h (enum range_flags): New enum.
1501 (struct range_bounds): Add flags member.
1503 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1505 * c-typeprint.c (c_type_print_varspec_suffix): Added
1506 check for not yet resolved high bound. If unresolved, print
1507 "variable length" string to the console instead of random
1510 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1512 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1514 (ada_template_to_fixed_record_type_1): Likewise.
1515 (ada_to_fixed_type_1): Likewise.
1516 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1517 (cp_print_value): Likewise.
1518 * d-valprint.c (dynamic_array_type): Likewise.
1519 * findvar.c (address_of_variable): Likewise.
1520 * jv-valprint.c (java_value_print): Likewise.
1521 * valops.c (value_ind): Likewise.
1522 * value.c (coerce_ref): Likewise.
1524 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1526 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1527 value and retrieve the dynamic type size.
1529 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1531 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1532 passed to sizeof is dynamic evaluate the argument to compute the length.
1534 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1535 Joel Brobecker <brobecker@adacore.com>
1537 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1538 (dwarf2_evaluate_property): New function.
1539 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1540 * dwarf2read.c (attr_to_dynamic_prop): New function.
1541 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1543 * gdbtypes.c: Include dwarf2loc.h.
1544 (is_dynamic_type): New function.
1545 (resolve_dynamic_type): New function.
1546 (resolve_dynamic_bounds): New function.
1547 (get_type_length): New function.
1548 (check_typedef): Use get_type_length to compute type length.
1549 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1550 (TYPE_LOW_BOUND_KIND): New macro.
1551 (is_dynamic_type): New function prototype.
1552 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1553 to resolve dynamic properties of the type. Update comment.
1554 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1556 2014-04-14 Richard Henderson <rth@redhat.com>
1558 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1560 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1561 Doug Evans <xdje42@gmail.com>
1563 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1564 dereference TYPE_CODE_REF values.
1566 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1568 Revert the following changes due to regressions:
1570 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1571 (dwarf2_evaluate_property): New function.
1572 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1573 * dwarf2read.c (attr_to_dynamic_prop): New function.
1574 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1576 * gdbtypes.c: Include dwarf2loc.h.
1577 (is_dynamic_type): New function.
1578 (resolve_dynamic_type): New function.
1579 (resolve_dynamic_bounds): New function.
1580 (get_type_length): New function.
1581 (check_typedef): Use get_type_length to compute type length.
1582 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1583 (TYPE_LOW_BOUND_KIND): New macro.
1584 (is_dynamic_type): New function prototype.
1585 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1586 to resolve dynamic properties of the type. Update comment.
1587 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1589 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1590 passed to sizeof is dynamic evaluate the argument to compute the length.
1592 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1593 value and retrieve the dynamic type size.
1595 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1596 (ada_template_to_fixed_record_type_1): Likewise.
1597 (ada_to_fixed_type_1): Likewise.
1598 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1599 (cp_print_value): Likewise.
1600 * d-valprint.c (dynamic_array_type): Likewise.
1601 * eval.c (evaluate_subexp_with_coercion): Likewise.
1602 * findvar.c (address_of_variable): Likewise.
1603 * jv-valprint.c (java_value_print): Likewise.
1604 * valops.c (value_ind): Likewise.
1605 * value.c (coerce_ref): Likewise.
1607 * c-typeprint.c (c_type_print_varspec_suffix): Added
1608 check for not yet resolved high bound. If unresolved, print
1609 "variable length" string to the console instead of random
1612 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1613 property and store it as the high bound and flag the range accordingly.
1614 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1615 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1616 * gdbtypes.h (enum range_flags): New enum.
1617 (struct range_bounds): Add flags member.
1619 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1620 points to a constant blob.
1622 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1623 (evaluate_subexp_standard): Pass noside argument.
1624 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1625 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1626 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1627 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1628 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1630 2014-04-11 Keith Seitz <keiths@redhat.com>
1633 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1634 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1639 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1640 (evaluate_subexp_standard): Pass noside argument.
1641 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1642 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1643 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1644 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1645 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1647 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1649 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1650 points to a constant blob.
1652 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1654 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1655 property and store it as the high bound and flag the range accordingly.
1656 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1657 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1658 * gdbtypes.h (enum range_flags): New enum.
1659 (struct range_bounds): Add flags member.
1661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1663 * c-typeprint.c (c_type_print_varspec_suffix): Added
1664 check for not yet resolved high bound. If unresolved, print
1665 "variable length" string to the console instead of random
1668 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1670 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1671 (ada_template_to_fixed_record_type_1): Likewise.
1672 (ada_to_fixed_type_1): Likewise.
1673 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1674 (cp_print_value): Likewise.
1675 * d-valprint.c (dynamic_array_type): Likewise.
1676 * eval.c (evaluate_subexp_with_coercion): Likewise.
1677 * findvar.c (address_of_variable): Likewise.
1678 * jv-valprint.c (java_value_print): Likewise.
1679 * valops.c (value_ind): Likewise.
1680 * value.c (coerce_ref): Likewise.
1682 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1684 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1685 value and retrieve the dynamic type size.
1687 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1689 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1690 passed to sizeof is dynamic evaluate the argument to compute the length.
1692 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1694 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1695 (dwarf2_evaluate_property): New function.
1696 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1697 * dwarf2read.c (attr_to_dynamic_prop): New function.
1698 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1700 * gdbtypes.c: Include dwarf2loc.h.
1701 (is_dynamic_type): New function.
1702 (resolve_dynamic_type): New function.
1703 (resolve_dynamic_bounds): New function.
1704 (get_type_length): New function.
1705 (check_typedef): Use get_type_length to compute type length.
1706 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1707 (TYPE_LOW_BOUND_KIND): New macro.
1708 (is_dynamic_type): New function prototype.
1709 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1710 to resolve dynamic properties of the type. Update comment.
1711 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1713 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1715 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1716 declaring high/low bounds and change uses accordingly. Call
1717 create_range_type instead of create_static_range_type.
1718 * gdbtypes.c (create_range_type): New function.
1719 (create_range_type): Convert bounds into struct bound_prop and pass
1720 them to create_range_type.
1721 * gdbtypes.h (struct bound_prop): New struct.
1722 (create_range_type): New function prototype.
1723 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1724 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1725 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1727 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1729 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1731 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1732 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1733 * ada-lang.c: All uses of create_range_type updated.
1734 * coffread.c: All uses of create_range_type updated.
1735 * dwarf2read.c: All uses of create_range_type updated.
1736 * f-exp.y: All uses of create_range_type updated.
1737 * m2-valprint.c: All uses of create_range_type updated.
1738 * mdebugread.c: All uses of create_range_type updated.
1739 * stabsread.c: All uses of create_range_type updated.
1740 * valops.c: All uses of create_range_type updated.
1741 * valprint.c: All uses of create_range_type updated.
1743 2014-04-10 Pedro Alves <palves@redhat.com>
1745 * breakpoint.c (single_step_breakpoints)
1746 (single_step_gdbarch): Move up in the file.
1747 (one_breakpoint_xfer_memory): New function, factored out from ...
1748 (breakpoint_xfer_memory): ... here. Also process single-step
1751 2014-04-09 Tristan Gingold <gingold@adacore.com>
1753 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1755 (darwin_decode_exception_message): Free port only after use.
1757 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1759 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1760 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1761 when setting the size of call_length.
1763 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1765 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1766 dereference TYPE_CODE_REF values.
1768 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1770 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1771 end of warning message.
1773 2014-04-03 Doug Evans <dje@google.com>
1775 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1776 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1778 2014-04-02 Alan Modra <amodra@gmail.com>
1780 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1781 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1782 (struct symbol_file_add_from_memory_args): Add size field.
1783 (find_vdso_size): New function.
1784 (add_vsyscall_page): Attempt to find vdso size.
1786 2014-04-01 Doug Evans <dje@google.com>
1788 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1790 2014-04-01 Tristan Gingold <gingold@adacore.com>
1792 * darwin-nat.c (darwin_encode_reply): Add prototype.
1793 (darwin_decode_exception_message): Reply to unknown inferiors.
1794 (darwin_decode_message): Handle message by id. Ignore message
1795 to unknown inferior.
1796 (darwin_wait): Discard unknown messages, add debug trace.
1798 2014-03-31 Doug Evans <dje@google.com>
1800 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1803 2014-03-31 Doug Evans <dje@google.com>
1805 New option "set print symbol-loading".
1807 * solib.c (solib_read_symbols): Only print symbol loading messages
1809 (solib_add): If symbol loading is in "brief" mode, notify user
1810 symbols are being loaded.
1811 (reload_shared_libraries_1): Ditto.
1812 * symfile.c (print_symbol_loading_off): New static global.
1813 (print_symbol_loading_brief): New static global.
1814 (print_symbol_loading_full): New static global.
1815 (print_symbol_loading_enums): New static global.
1816 (print_symbol_loading): New static global.
1817 (print_symbol_loading_p): New function.
1818 (symbol_file_add_with_addrs): Only print symbol loading messages
1820 (_initialize_symfile): Register "print symbol-loading" set/show
1822 * symfile.h (print_symbol_loading_p): Declare.
1824 2014-03-30 Doug Evans <xdje42@gmail.com>
1826 * infrun.c (set_last_target_status): New function.
1827 (handle_inferior_event): Call it.
1829 2014-03-30 Doug Evans <xdje42@gmail.com>
1831 * inferior.h (enum stop_kind): Improve comment.
1833 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1835 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1836 a reference, strip the reference layer before calling
1837 the lang_ops value_has_mutated callback.
1839 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1841 Remove some globals from our parser.
1842 * language.c (unk_lang_parser): Add "struct parser_state"
1844 * language.h (struct language_defn) <la_parser>: Likewise.
1845 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1846 (initialize_expout): Add "struct parser_state" argument.
1847 Rewrite function to use the parser state.
1848 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1849 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1850 write_exp_elt_longcst, write_exp_elt_dblcst,
1851 write_exp_elt_decfloatcst, write_exp_elt_type,
1852 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1853 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1854 write_dollar_variable): Likewise.
1855 (parse_exp_in_context_1): Use parser state.
1856 (insert_type_address_space): Add "struct parser_state" argument.
1858 (increase_expout_size): New function.
1859 * parser-defs.h: Forward declare "struct language_defn" and
1860 "struct parser_state".
1861 (expout, expout_size, expout_ptr): Remove extern declarations.
1862 (parse_gdbarch, parse_language): Rewrite macro declarations to
1863 accept the parser state.
1864 (struct parser_state): New struct.
1865 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1866 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1867 write_exp_elt_decfloatcst, write_exp_elt_type,
1868 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1869 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1870 write_exp_msymbol, write_dollar_variable,
1871 mark_struct_expression, insert_type_address_space): Add "struct
1872 parser_state" argument.
1873 (increase_expout_size): New function.
1874 * utils.c (do_clear_parser_state): New function.
1875 (make_cleanup_clear_parser_state): Likewise.
1876 * utils.h (make_cleanup_clear_parser_state): New function
1878 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1879 Update calls to write_exp* in order to pass the parser state.
1880 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1881 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1882 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1883 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1884 * stap-probe.c (stap_parse_register_operand): Likewise.
1885 (stap_parse_single_operand): Likewise.
1886 (stap_parse_argument_1): Likewise.
1887 (stap_parse_argument): Use parser state.
1888 * stap-probe.h: Include "parser-defs.h".
1889 (struct stap_parse_info) <pstate>: New field.
1890 * c-exp.y (parse_type): Rewrite to use parser state.
1891 (yyparse): Redefine to c_parse_internal.
1892 (pstate): New global variable.
1893 (parse_number): Add "struct parser_state" argument.
1894 (write_destructor_name): Likewise.
1895 (type_exp): Update calls to write_exp* and similars in order to
1897 (exp1, exp, variable, qualified_name, space_identifier,
1898 typename, typebase): Likewise.
1899 (write_destructor_name, parse_number, lex_one_token,
1900 classify_name, classify_inner_name, c_parse): Add "struct
1901 parser_state" argument. Update function to use parser state.
1902 * c-lang.h: Forward declare "struct parser_state".
1903 (c_parse): Add "struct parser_state" argument.
1904 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1905 (yyparse): Redefine macro to ada_parse_internal.
1906 (pstate): New variable.
1907 (write_int, write_object_renaming, write_var_or_type,
1908 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1909 type_int, type_long, type_long_long, type_float, type_double,
1910 type_long_double, type_char, type_boolean, type_system_address):
1911 Add "struct parser_state" argument.
1912 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1913 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1914 var_or_type, aggregate, aggregate_component_list,
1915 positional_list, others, component_group,
1916 component_associations): Update calls to write_exp* and similar
1917 functions in order to use parser state.
1918 (ada_parse, write_var_from_sym, write_int,
1919 write_exp_op_with_string, write_object_renaming,
1920 find_primitive_type, write_selectors, write_ambiguous_var,
1921 write_var_or_type, write_name_assoc, type_int, type_long,
1922 type_long_long, type_float, type_double, type_long_double,
1923 type_char, type_boolean, type_system_address): Add "struct
1924 parser_state" argument. Adjust function to use parser state.
1925 * ada-lang.c (parse): Likewise.
1926 * ada-lang.h: Forward declare "struct parser_state".
1927 (ada_parse): Add "struct parser_state" argument.
1928 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1929 calls to both functions.
1930 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1932 (yyparse): Redefine macro to f_parse_internal.
1933 (pstate): New variable.
1934 (parse_number): Add "struct parser_state" argument.
1935 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1936 and similars in order to use parser state.
1937 (parse_number): Adjust code to use parser state.
1939 (f_parse): New function.
1940 * f-lang.h: Forward declare "struct parser_state".
1941 (f_parse): Add "struct parser_state" argument.
1942 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1944 (yyparse): Redefine macro for java_parse_internal.
1945 (pstate): New variable.
1946 (push_expression_name, push_expression_name, insert_exp): Add
1947 "struct parser_state" argument.
1948 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1949 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1950 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1951 PostIncrementExpression, PostDecrementExpression,
1952 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1953 UnaryExpressionNotPlusMinus, CastExpression,
1954 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1955 RelationalExpression, EqualityExpression, AndExpression,
1956 ExclusiveOrExpression, InclusiveOrExpression,
1957 ConditionalAndExpression, ConditionalOrExpression,
1958 ConditionalExpression, Assignment, LeftHandSide): Update
1959 calls to write_exp* and similars in order to use parser state.
1960 (parse_number): Ajust code to use parser state.
1962 (java_parse): New function.
1963 (push_variable): Add "struct parser_state" argument. Adjust
1964 code to user parser state.
1965 (push_fieldnames, push_qualified_expression_name,
1966 push_expression_name, insert_exp): Likewise.
1967 * jv-lang.h: Forward declare "struct parser_state".
1968 (java_parse): Add "struct parser_state" argument.
1969 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1971 (yyparse): Redefine macro to m2_parse_internal.
1972 (pstate): New variable.
1973 (type_exp, exp, fblock, variable, type): Update calls to
1974 write_exp* and similars to use parser state.
1976 (m2_parse): New function.
1977 * m2-lang.h: Forward declare "struct parser_state".
1978 (m2_parse): Add "struct parser_state" argument.
1979 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1980 * objc-lang.h: Forward declare "struct parser_state".
1981 (end_msglist): Add "struct parser_state" argument.
1982 * p-exp.y (parse_type): Rewrite macro to use parser state.
1983 (yyparse): Redefine macro to pascal_parse_internal.
1984 (pstate): New variable.
1985 (parse_number): Add "struct parser_state" argument.
1986 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1987 write_exp* and similars in order to use parser state.
1988 (parse_number, yylex): Adjust code to use parser state.
1989 (pascal_parse): New function.
1990 * p-lang.h: Forward declare "struct parser_state".
1991 (pascal_parse): Add "struct parser_state" argument.
1992 * go-exp.y (parse_type): Rewrite macro to use parser state.
1993 (yyparse): Redefine macro to go_parse_internal.
1994 (pstate): New variable.
1995 (parse_number): Add "struct parser_state" argument.
1996 (type_exp, exp1, exp, variable, type): Update calls to
1997 write_exp* and similars in order to use parser state.
1998 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1999 to use parser state.
2000 (go_parse): Likewise.
2001 * go-lang.h: Forward declare "struct parser_state".
2002 (go_parse): Add "struct parser_state" argument.
2004 2014-03-27 Doug Evans <dje@google.com>
2006 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2008 2014-03-27 Doug Evans <dje@google.com>
2010 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2011 Remove argument abbrev_section. All callers updated.
2013 2014-03-27 Doug Evans <dje@google.com>
2015 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2016 addr_base, ranges_base.
2018 2014-03-26 Keith Seitz <keiths@redhat.com>
2020 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2021 types, not VAR_DOMAIN.
2023 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2025 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2027 * features/nios2-linux.c: Regenerated.
2028 * features/nios2.c: Regenerated.
2030 2014-03-25 Pedro Alves <palves@redhat.com>
2032 * cli/cli-script.c (script_from_file): Force the interpreter to
2035 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2037 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2038 small stack allocation.
2040 2014-03-24 Tristan Gingold <gingold@adacore.com>
2042 * darwin-nat.c (exc_server): Remove unused prototype.
2043 (darwin_dump_message): Correctly display data on x86_64.
2044 (darwin_encode_reply): Fix style.
2045 Add comments and fix indentation.
2047 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2049 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2051 2014-03-22 Doug Evans <xdje42@gmail.com>
2053 * infcmd.c: Whitespace fixes.
2054 (interrupt_command): Merge two function comments into one.
2056 2014-03-22 Doug Evans <xdje42@gmail.com>
2058 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2061 2014-03-22 Yao Qi <yao@codesourcery.com>
2063 * remote.c (target_read_live_memory): Remove.
2064 (memory_xfer_live_readonly_partial): Rename it to
2065 remote_xfer_live_readonly_partial. Remove argument 'object'.
2066 All callers updated. Call remote_read_bytes_1
2067 instead of target_read_live_memory.
2068 * tracepoint.c (set_traceframe_number): Remove.
2069 (make_cleanup_restore_traceframe_number): Likewise .
2070 * tracepoint.h (set_traceframe_number): Remove declaration.
2071 (make_cleanup_restore_traceframe_number): Likewise.
2073 2014-03-22 Yao Qi <yao@codesourcery.com>
2075 * remote.c (remote_read_bytes): Move code on reading from the
2077 (remote_read_bytes_1): ... here. New function.
2079 2014-03-22 Yao Qi <yao@codesourcery.com>
2081 * ctf.c (ctf_xfer_partial): Check the return value of
2082 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2083 return TARGET_XFER_UNAVAILABLE.
2084 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2085 * target.c (target_read_live_memory): Move it to remote.c.
2086 (memory_xfer_live_readonly_partial): Likewise.
2087 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2088 * remote.c (target_read_live_memory): Moved from target.c.
2089 (memory_xfer_live_readonly_partial): Likewise.
2090 (remote_read_bytes): Factored out from
2091 memory_xfer_partial_1.
2093 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2095 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2098 2014-03-21 Pedro Alves <palves@redhat.com>
2100 * infrun.c (normal_stop): Extend comment.
2102 2014-03-21 Hui Zhu <hui@codesourcery.com>
2103 Pedro Alves <palves@redhat.com>
2105 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2107 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2108 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2109 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2111 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2113 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2114 `z' formatted output modifier.
2116 2014-03-20 Tom Tromey <tromey@redhat.com>
2117 Sergio Durigan Junior <sergiodj@redhat.com>
2119 * probe.c (parse_probes): Turn assert into an ordinary error.
2120 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2121 exceptions when parsing probes. Rearrange the code for clarity.
2123 2014-03-20 Tom Tromey <tromey@redhat.com>
2126 * top.c (execute_command): Only dispatch events if the command
2129 2014-03-20 Tom Tromey <tromey@redhat.com>
2132 * infcall.c: Include event-top.h.
2133 (run_inferior_call): Call async_disable_stdin if needed.
2135 2014-03-20 Pedro Alves <palves@redhat.com>
2137 * infrun.c (prepare_to_proceed): Delete.
2138 (thread_still_needs_step_over): New function.
2139 (find_thread_needs_step_over): New function.
2140 (proceed): If the current thread needs a step-over, set its
2141 steping_over_breakpoint flag. Adjust to use
2142 find_thread_needs_step_over instead of prepare_to_proceed.
2143 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2144 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2146 (switch_back_to_stepped_thread): Step over breakpoints of all
2147 threads not the stepping thread, before switching back to the
2150 2014-03-20 Pedro Alves <palves@redhat.com>
2152 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2154 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2155 * infrun.c (saved_singlestep_ptid)
2156 (stepping_past_singlestep_breakpoint): Delete.
2157 (resume): Remove stepping_past_singlestep_breakpoint handling.
2158 (proceed): Store the prev_pc of the stepping thread too.
2159 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2161 (enum infwait_states): Delete infwait_thread_hop_state.
2162 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2164 (handle_inferior_event): Adjust.
2165 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2166 handling and the thread-hop code. Before removing single-step
2167 breakpoints, check whether the thread hit a single-step breakpoint
2168 of another thread. If it did, the trap is not a random signal.
2169 (switch_back_to_stepped_thread): If the event thread hit a
2170 single-step breakpoint, unblock it before switching to the
2171 stepping thread. Handle the case of the stepped thread having
2173 (keep_going): Handle the case of the current thread moving past a
2174 single-step breakpoint.
2176 2014-03-20 Pedro Alves <palves@redhat.com>
2179 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2180 are being stepped over.
2181 (breakpoint_address_match): Make extern.
2182 * breakpoint.h (breakpoint_address_match): New declaration.
2183 * inferior.h (stepping_past_instruction_at): New declaration.
2184 * infrun.c (struct step_over_info): New type.
2185 (step_over_info): New global.
2186 (set_step_over_info, clear_step_over_info)
2187 (stepping_past_instruction_at): New functions.
2188 (handle_inferior_event): Clear the step-over info when
2189 trap_expected is cleared.
2190 (resume): Remove now stale comment.
2191 (clear_proceed_status): Clear step-over info.
2192 (proceed): Adjust step-over handling to set or clear the step-over
2193 info instead of removing all breakpoints.
2194 (handle_signal_stop): When setting up a thread-hop, don't remove
2196 (stop_stepping): Clear step-over info.
2197 (keep_going): Adjust step-over handling to set or clear step-over
2198 info and then always inserting breakpoints, instead of removing
2199 all breakpoints when stepping over one.
2201 2014-03-20 Pedro Alves <palves@redhat.com>
2203 * infrun.c (previous_inferior_ptid): Adjust comment.
2204 (deferred_step_ptid): Delete.
2205 (infrun_thread_ptid_changed, prepare_to_proceed)
2206 (init_wait_for_inferior): Adjust.
2207 (handle_signal_stop): Delete deferred_step_ptid handling.
2209 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 * defs.h (sync_quit_force_run): New declaration.
2213 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2214 * event-top.c (async_sigterm_handler): New declaration.
2215 (async_sigterm_token): New variable.
2216 (async_init_signals): Create also async_sigterm_token.
2217 (async_sigterm_handler): New function.
2218 (sync_quit_force_run): New variable.
2219 (handle_sigterm): Replace quit_force call by other calls.
2220 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2222 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2224 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2225 offset into SPE pseudo registers.
2227 2014-03-18 Pedro Alves <palves@redhat.com>
2230 * inferior.h (print_stop_event): Declare.
2231 * infrun.c (print_stop_event): New, factored out from ...
2232 (normal_stop): ... this.
2233 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2234 of bpstat_print/print_stack_frame.
2236 2014-03-17 Tom Tromey <tromey@redhat.com>
2238 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2240 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2242 * ada-lang.c (decode_constrained_packed_array): Perform a
2243 minimal coercion for reference with coerce_ref instead of
2246 2014-03-17 Tristan Gingold <gingold@adacore.com>
2248 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2249 (darwin_solib_create_inferior_hook): Emit a warning if version
2252 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2254 * python/py-value.c (get_field_flag): Cast flag_name argument to
2255 PyObject_GetAttrString to support Python 2.4.
2257 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2259 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2260 (Global Maintainers): Remove Jan Kratochvil.
2262 2014-03-14 Pedro Alves <palves@redhat.com>
2264 * inferior.h (terminal_ours_for_output): Rename to ...
2265 (child_terminal_ours_for_output): ... this.
2266 (terminal_save_ours): Rename to ...
2267 (child_terminal_save_ours): ... this.
2268 (terminal_ours): Rename to ...
2269 (child_terminal_ours): ... this.
2270 (terminal_inferior): Rename to ...
2271 (child_terminal_inferior): ... this.
2272 (terminal_init_inferior): Rename to ...
2273 (child_terminal_init_inferior): ... this.
2274 (terminal_init_inferior_with_pgrp): Rename to ...
2275 (child_terminal_init_inferior_with_pgrp): ... this.
2276 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2277 (child_terminal_init_with_pgrp): ... this.
2278 (terminal_save_ours): Rename to ...
2279 (child_terminal_save_ours): ... this.
2280 (terminal_init_inferior): Rename to ...
2281 (child_terminal_init): ... this. Adjust.
2282 (terminal_inferior): Rename to ...
2283 (child_terminal_inferior): ... this.
2284 (terminal_ours_for_output): Rename to ...
2285 (child_terminal_ours_for_output): ... this. Adjust.
2286 (terminal_ours): Rename to ...
2287 (child_terminal_ours): ... this.
2288 (terminal_ours_1): Rename to ...
2289 (child_terminal_ours_1): ... this. Adjust.
2290 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2291 * windows-nat.c (do_initial_windows_stuff): Adjust.
2292 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2293 (gnu_terminal_init): ... this. Adjust.
2294 (gnu_target): Adjust.
2295 * inf-child.c (inf_child_target): Adjust.
2297 2014-03-13 Doug Evans <xdje42@gmail.com>
2300 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2303 2014-03-13 Doug Evans <xdje42@gmail.com>
2305 * value.c (record_latest_value): Call release_value_or_incref
2306 instead of release_value.
2308 2014-03-13 Pedro Alves <palves@redhat.com>
2310 * procfs.c (procfs_target): Don't override to_shortname,
2311 to_longname or to_doc.
2313 2014-03-13 Pedro Alves <palves@redhat.com>
2315 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2316 Unix in user visible strings.
2318 2014-03-12 Stan Shebs <stan@codesourcery.com>
2320 * gdbtypes.h: Annotate comments for Doxygen, add a page
2321 block comment with some general info.
2323 2014-03-12 Pedro Alves <palves@redhat.com>
2325 * infcmd.c (prepare_execution_command): New function, factored out
2326 from several execution commands.
2327 (run_command_1, continue_command, step_1, jump_command)
2328 (signal_command, until_command, advance_command, finish_command)
2329 (attach_command): Use prepare_execution_command.
2331 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2333 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2336 (struct arm_linux_thread_points): Removed.
2337 (struct arm_linux_process_info): New.
2338 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2339 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2340 (arm_linux_find_breakpoints_by_tid): Removed.
2341 (struct arch_lwp_info): New.
2342 (arm_linux_find_process_pid): New functions.
2343 (arm_linux_add_process): New functions.
2344 (arm_linux_process_info_get): New functions.
2345 (arm_linux_forget_process): New function.
2346 (arm_linux_get_debug_reg_state): New function.
2347 (struct update_registers_data): New.
2348 (update_registers_callback): New function.
2349 (arm_linux_insert_hw_breakpoint1): Updated.
2350 (arm_linux_remove_hw_breakpoint1): Updated.
2351 (arm_linux_insert_hw_breakpoint): Updated.
2352 (arm_linux_remove_hw_breakpoint): Updated.
2353 (arm_linux_insert_watchpoint): Updated.
2354 (arm_linux_remove_watchpoint): Updated.
2355 (arm_linux_new_thread): Updated.
2356 (arm_linux_prepare_to_resume): New function.
2357 (arm_linux_new_fork): New function.
2358 (_initialize_arm_linux_nat): Updated.
2360 2014-03-12 Pedro Alves <palves@redhat.com>
2362 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2364 2014-03-12 Tom Tromey <tromey@redhat.com>
2366 * inf-child.c (return_zero): New function.
2367 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2368 * aix-thread.c (aix_thread_inferior_created): New function.
2369 (aix_thread_attach): Remove.
2370 (init_aix_thread_ops): Don't set to_attach.
2371 (_initialize_aix_thread): Register inferior_created observer.
2372 * corelow.c (init_core_ops): Don't set to_attach or
2374 * exec.c (init_exec_ops): Don't set to_attach or
2376 * infcmd.c (run_command_1): Use find_run_target. Make direct
2378 (attach_command): Use find_attach_target. Make direct target
2380 * record-btrace.c (init_record_btrace_ops): Don't set
2382 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2384 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2385 set to_create_inferior.
2386 * target.c (complete_target_initialization): Add assertion.
2387 (target_create_inferior): Remove.
2388 (find_default_attach, find_default_create_inferior): Remove.
2389 (find_attach_target, find_run_target): New functions.
2390 (find_default_is_async_p, find_default_can_async_p)
2391 (target_supports_non_stop, target_attach): Remove.
2392 (init_dummy_target): Don't set to_create_inferior or
2393 to_supports_non_stop.
2394 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2395 TARGET_DEFAULT_FUNC.
2396 <to_create_inferior>: Add comment.
2397 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2398 TARGET_DEFAULT_RETURN.
2399 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2400 (find_attach_target, find_run_target): Declare.
2401 (target_create_inferior): Remove.
2402 (target_has_execution_1): Update comment.
2403 (target_supports_non_stop): Remove.
2404 * target-delegates.c: Rebuild.
2406 2014-03-12 Pedro Alves <palves@redhat.com>
2408 * inf-child.h: Update comment to not mention Unix.
2410 2014-03-12 Pedro Alves <palves@redhat.com>
2412 * inf-child.c: Update top comment to not mention Unix. Add
2413 generic comment describing how this target is meant to be used.
2414 (inf_child_post_attach, inf_child_post_startup_inferior)
2415 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2418 2014-03-12 Pedro Alves <palves@redhat.com>
2420 * nto-procfs.c: Include inf-child.h.
2421 (procfs_ops): Delete global.
2422 (procfs_can_run): Delete method.
2423 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2424 target pointer instead of referencing procfs_ops.
2425 (procfs_prepare_to_store): Delete.
2426 (init_procfs_ops): Delete function.
2427 (procfs_target): New function, based on init_procfs_ops, but
2428 inherit inf_child_target.
2429 (_initialize_procfs): Use procfs_target.
2431 2014-03-12 Pedro Alves <palves@redhat.com>
2433 * windows-nat.c: Include inf-child.h.
2434 (windows_ops): Delete global.
2435 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2437 (init_windows_ops): Delete function.
2438 (windows_target): New function, based on init_windows_ops, but
2439 inherit inf_child_target.
2440 (_initialize_windows_nat): Use windows_target. Install x86
2441 specific target methods here.
2443 2014-03-10 Doug Evans <xdje42@gmail.com>
2445 * guile/guile.c (call_initialize_gdb_module): New function.
2446 (initialize_guile): Replace call to scm_init_guile with call to
2449 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2451 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2452 in call to TYPE_CODE macro.
2454 2014-03-10 Jerome Guitton <guitton@adacore.com>
2456 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2457 Resolve tagged types to full view.
2459 2014-03-10 Hui Zhu <hui@codesourcery.com>
2461 * target.h (target_insert_breakpoint): Remove "hardware" from its
2464 2014-03-07 Doug Evans <dje@google.com>
2466 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2468 2014-03-07 Doug Evans <dje@google.com>
2470 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2471 Remove unused local comp_dir_attr. Assert exactly one of
2472 stub_comp_unit_die, stub_comp_dir is non-NULL.
2474 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2476 * target.h (complete_target_initialization, add_target):
2479 2014-03-07 Pedro Alves <palves@redhat.com>
2481 * go32-nat.c: Include inf-child.h.
2482 (go32_ops): Delete global.
2483 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2485 (go32_create_inferior): Push the passed in target pointer instead
2486 of referencing go32_ops.
2487 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2488 (go32_target): New function, based on init_go32_ops, but inherit
2490 (_initialize_go32_nat): Use go32_target. Move parts of
2493 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2495 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2496 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2497 SYMBOL_VALUE_ADDRESS.
2498 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2500 2014-03-06 Yao Qi <yao@codesourcery.com>
2502 * breakpoint.c (get_tracepoint_by_number): Remove argument
2503 optional_p. All callers updated. Adjust comments. Update
2505 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2507 2014-03-06 Yao Qi <yao@codesourcery.com>
2509 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2510 early if get_number returns zero. Use 'p' instead of 'args'.
2512 2014-03-06 Yao Qi <yao@codesourcery.com>
2514 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2517 2014-03-06 Yao Qi <yao@codesourcery.com>
2519 PR breakpoints/16508
2520 * tracepoint.c (check_trace_running): New function.
2521 (trace_find_command): Move code to check_trace_running and
2522 call check_trace_running.
2523 (trace_find_pc_command): Likewise.
2524 (trace_find_tracepoint_command): Likewise.
2525 (trace_find_line_command): Likewise.
2526 (trace_find_range_command): Likewise.
2527 * tracepoint.h (check_trace_running): Likewise.
2528 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2530 2014-03-06 Yao Qi <yao@codesourcery.com>
2532 * target.h (struct target_ops) <to_traceframe_info>: Use
2533 TARGET_DEFAULT_NORETURN (tcomplain ()).
2534 * target-delegates.c: Regenerated.
2536 2014-03-05 Pedro Alves <palves@redhat.com>
2539 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2540 void. Update comment.
2541 (dcache_xfer_memory): Delete.
2542 (dcache_read_memory_partial): New, based on the read bits of
2544 (dcache_update): Add status parameter. Use ULONGEST for len, and
2545 adjust. Discard cache lines if the reason for the update was
2547 * dcache.h (dcache_xfer_memory): Delete declaration.
2548 (dcache_read_memory_partial): New declaration.
2549 (dcache_update): Update prototype.
2550 * target.c (raw_memory_xfer_partial): Update the dcache here.
2551 (memory_xfer_partial_1): Don't handle dcache writes here.
2553 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2555 * remote-sim.c (gdbsim_load): Add const to prog.
2557 2014-03-03 Tom Tromey <tromey@redhat.com>
2559 * elfread.c (probe_key): Change to bfd_data.
2560 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2561 now per-BFD, not per-objfile.
2562 * stap-probe.c (stap_probe_destroy): Update comment.
2563 (handle_stap_probe): Allocate on the per-BFD obstack.
2565 2014-03-03 Tom Tromey <tromey@redhat.com>
2567 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2568 * breakpoint.c (create_longjmp_master_breakpoint): Use
2570 (add_location_to_breakpoint, bkpt_probe_insert_location)
2571 (bkpt_probe_remove_location): Update.
2572 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2573 * elfread.c (elf_symfile_relocate_probe): Remove.
2574 (elf_probe_fns): Update.
2575 (insert_exception_resume_breakpoint): Change type of "probe"
2576 parameter to bound_probe.
2577 (check_exception_resume): Update.
2578 * objfiles.c (objfile_relocate1): Don't relocate probes.
2579 * probe.c (bound_probe_s): New typedef.
2580 (parse_probes): Use get_probe_address. Set sal's objfile.
2581 (find_probe_by_pc): Return a bound_probe.
2582 (collect_probes): Return a VEC(bound_probe_s).
2583 (compare_probes): Update.
2584 (gen_ui_out_table_header_info): Change type of "probes"
2586 (info_probes_for_ops): Update.
2587 (get_probe_address): New function.
2588 (probe_safe_evaluate_at_pc): Update.
2589 * probe.h (struct probe_ops) <get_probe_address>: New field.
2590 <set_semaphore, clear_semaphore>: Add objfile parameter.
2591 (struct probe) <objfile>: Remove field.
2593 <address>: Update comment.
2594 (struct bound_probe): New.
2595 (find_probe_by_pc): Return a bound_probe.
2596 (get_probe_address): Declare.
2597 * solib-svr4.c (struct probe_and_action) <address>: New field.
2598 (hash_probe_and_action, equal_probe_and_action): Update.
2599 (register_solib_event_probe): Add address parameter.
2600 (solib_event_probe_at): Update.
2601 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2603 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2604 (stap_get_probe_address): New function.
2605 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2606 (compile_probe_arg): Update.
2607 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2609 (handle_stap_probe): Don't relocate the probe.
2610 (stap_relocate): Remove.
2611 (stap_gen_info_probes_table_values): Update.
2612 (stap_probe_ops): Remove stap_relocate.
2613 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2614 (debug_sym_probe_fns): Update.
2615 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2616 * symtab.c (init_sal): Use memset.
2617 * symtab.h (struct symtab_and_line) <objfile>: New field.
2618 * tracepoint.c (start_tracing, stop_tracing): Update.
2620 2014-03-03 Tom Tromey <tromey@redhat.com>
2622 * probe.h (parse_probes, find_probe_by_pc)
2623 (find_probes_in_objfile): Fix comments.
2625 2014-03-02 Doug Evans <xdje42@gmail.com>
2627 * infrun.c (handle_signal_stop): Replace test for
2628 TARGET_WAITKIND_STOPPED with an assert.
2630 2014-03-02 Doug Evans <xdje42@gmail.com>
2632 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2634 2014-03-02 Doug Evans <xdje42@gmail.com>
2636 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2638 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2640 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2642 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2644 * i386obsd-nat.c: Include "obsd-nat.h".
2645 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2647 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2649 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2651 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2653 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2655 * mips64obsd-nat.c: Include "obsd-nath".
2656 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2658 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2660 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2662 * amd64obsd-nat.c: Include "obsd-nat,h.
2663 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2665 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2667 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2669 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2670 (find_overload_match): Update call to find_oload_champ.
2671 (find_oload_champ_namespace_loop): Likewise
2673 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2675 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2677 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2678 * config/sparc/obsd64.mh: New file.
2679 * sparc64obsd-nat.c: New file.
2681 * obsd-nat.h: New file.
2682 * obsd-nat.c: New file.
2683 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2684 (ALLDEPFILES): Add obsd-nat.c.
2686 2014-02-28 Tom Tromey <tromey@redhat.com>
2688 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2689 * cli-out.h (cli_ui_out_impl): Now const.
2690 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2691 * ui-out.c (struct ui_out) <impl>: Now const.
2692 (default_ui_out_impl): Now const.
2693 (ui_out_new): Make 'impl' parameter const.
2694 * ui-out.h (ui_out_new): Update.
2696 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2698 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2700 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2702 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2704 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2706 Additional PR 8882 fix.
2707 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2709 2014-02-27 Pedro Alves <palves@redhat.com>
2711 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2714 2014-02-27 Pedro Alves <palves@redhat.com>
2717 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2718 * nat/linux-waitpid.c: Include string.h.
2719 (status_to_str): Moved here and made extern.
2720 * nat/linux-waitpid.h (status_to_str): New declaration.
2722 2014-02-27 Hui Zhu <hui@codesourcery.com>
2725 * infrun.c (ptid_match): Move ...
2726 * common/ptid.c (ptid_match): ... here.
2727 * inferior.h (ptid_match): Move ...
2728 * common/ptid.h (ptid_match): ... here.
2730 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2732 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2733 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2736 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2738 * obsd-tdep.c (obsd_auxv_parse): New function.
2739 (obsd_init_abi): Set auxv_parse.
2741 * gdbarch.sh (auxv_parse): New.
2742 * gdbarch.h: Regenerated.
2743 * gdbarch.c: Regenerated.
2744 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2746 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2748 * guile/scm-value.c (gdbscm_history_append_x): New function.
2749 (value_functions): Add it.
2751 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2753 * dwarf2read.c (attr_value_as_address): New function.
2754 (dwarf2_find_base_address, read_call_site_scope): Use
2755 attr_value_as_address in place of DW_ADDR.
2756 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2757 the low and high addresses. Slight rework of the handling
2758 of the high pc being a constant form, and limit it to
2759 DWARF verson 4 or higher.
2760 (dwarf2_record_block_ranges): Likewise.
2761 (read_partial_die): Likewise.
2762 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2764 2014-02-26 Tom Tromey <tromey@redhat.com>
2766 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2768 2014-02-26 Tom Tromey <tromey@redhat.com>
2770 * elfread.c (elf_read_minimal_symbols): Return early if
2771 minimal symbols have already been read. Add "ei" parameter.
2772 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2773 * minsyms.c (prim_record_minimal_symbol_full): Update.
2774 * objfiles.h (struct objstats) <n_minsyms>: Move...
2775 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2776 * symmisc.c (print_objfile_statistics): Update.
2778 2014-02-26 Tom Tromey <tromey@redhat.com>
2780 * elfread.c (elf_read_minimal_symbols): New function, from
2782 (elf_symfile_read): Call it.
2784 2014-02-26 Tom Tromey <tromey@redhat.com>
2786 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2787 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2788 (lookup_minimal_symbol_solib_trampoline)
2789 (lookup_minimal_symbol_by_pc_section_1)
2790 (lookup_minimal_symbol_and_objfile): Update.
2791 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2792 Don't allocate a minimal symbol if minsyms have already been read.
2793 (build_minimal_symbol_hash_tables): Update.
2794 (install_minimal_symbols): Do nothing if minsyms already read.
2795 Use the per-BFD obstack.
2796 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2797 * objfiles.c (allocate_objfile): Call
2798 terminate_minimal_symbol_table later.
2799 (have_minimal_symbols): Update.
2800 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2801 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2802 Move from struct objfile.
2803 <minsyms_read>: New field.
2804 (struct objfile) <msymbols, minimal_symbol_count,
2805 msymbol_hash, msymbol_demangled_hash>: Move.
2806 (ALL_OBJFILE_MSYMBOLS): Update.
2807 * symfile.c (read_symbols): Set minsyms_read.
2808 (reread_symbols): Update.
2809 * symmisc.c (dump_objfile, dump_msymbols): Update.
2811 2014-02-26 Tom Tromey <tromey@redhat.com>
2813 * minsyms.c (msymbols_sort): Remove.
2814 * minsyms.h (msymbols_sort): Remove.
2815 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2816 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2817 * elfread.c (elf_symtab_read): Don't add section offsets.
2818 * xcoffread.c (record_minimal_symbol): Don't add section offset
2819 to minimal symbol address.
2820 * somread.c (text_offset, data_offset): Remove.
2821 (som_symtab_read): Don't add section offsets to minimal symbol
2823 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2824 Don't add section offsets to minimal symbols.
2825 * coffread.c (coff_symtab_read): Don't add section offsets
2826 to minimal symbol addresses.
2827 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2828 to minimal symbol addresses.
2829 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2830 section offset to minimal symbol addresses.
2831 * mdebugread.c (parse_partial_symbols): Don't add section
2832 offset to minimal symbol addresses.
2833 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2834 offset to minimal symbol addresses.
2836 2014-02-26 Tom Tromey <tromey@redhat.com>
2838 * ada-lang.c (ada_main_name): Update.
2839 (ada_add_standard_exceptions): Update.
2840 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2841 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2842 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2843 * auxv.c (ld_so_xfer_auxv): Update.
2844 * avr-tdep.c (avr_scan_prologue): Update.
2845 * ax-gdb.c (gen_var_ref): Update.
2846 * blockframe.c (get_pc_function_start)
2847 (find_pc_partial_function_gnu_ifunc): Update.
2848 * breakpoint.c (create_overlay_event_breakpoint)
2849 (create_longjmp_master_breakpoint)
2850 (create_std_terminate_master_breakpoint)
2851 (create_exception_master_breakpoint): Update.
2852 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2853 * c-valprint.c (c_val_print): Update.
2854 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2855 * common/agent.c (agent_look_up_symbols): Update.
2856 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2857 * dwarf2loc.c (call_site_to_target_addr): Update.
2858 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2859 * elfread.c (elf_gnu_ifunc_record_cache)
2860 (elf_gnu_ifunc_resolve_by_got): Update.
2861 * findvar.c (default_read_var_value): Update.
2862 * frame.c (inside_main_func): Update.
2863 * frv-tdep.c (frv_frame_this_id): Update.
2864 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2865 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2867 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2868 (hppa_hpux_find_dummy_bpaddr): Update.
2869 * hppa-tdep.c (hppa_symbol_address): Update.
2870 * infcmd.c (until_next_command): Update.
2871 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2873 * linespec.c (minsym_found, add_minsym): Update.
2874 * linux-nat.c (get_signo): Update.
2875 * linux-thread-db.c (inferior_has_bug): Update.
2876 * m32c-tdep.c (m32c_return_value)
2877 (m32c_m16c_address_to_pointer): Update.
2878 * m32r-tdep.c (m32r_frame_this_id): Update.
2879 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2880 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2881 * maint.c (maintenance_translate_address): Update.
2882 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2883 (frob_address): New function.
2884 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2885 frob_address. Rename parameter to "pc_in".
2886 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2888 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2890 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2891 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2892 * objc-lang.c (find_objc_msgsend): Update.
2893 * objfiles.c (objfile_relocate1): Update.
2894 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2895 * p-valprint.c (pascal_val_print): Update.
2896 * parse.c (write_exp_msymbol): Update.
2897 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2898 (ppc_elfv2_skip_entrypoint): Update.
2899 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2900 * printcmd.c (build_address_symbolic, msym_info)
2901 (address_info): Update.
2902 * proc-service.c (ps_pglobal_lookup): Update.
2903 * psymtab.c (find_pc_sect_psymtab_closer)
2904 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2905 Change msymbol parameter to bound_minimal_symbol.
2906 * ravenscar-thread.c (get_running_thread_id): Update.
2907 * remote.c (remote_check_symbols): Update.
2908 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2910 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2911 * solib-dsbt.c (lm_base): Update.
2912 * solib-frv.c (lm_base, main_got): Update.
2913 * solib-irix.c (locate_base): Update.
2914 * solib-som.c (som_solib_create_inferior_hook)
2915 (link_map_start): Update.
2916 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2917 * solib-svr4.c (elf_locate_base, enable_break): Update.
2918 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2919 (flush_ea_cache): Update.
2920 * stabsread.c (define_symbol, scan_file_globals): Update.
2921 * stack.c (find_frame_funname): Update.
2922 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2923 (debug_qf_find_pc_sect_symtab): Update.
2924 * symfile.c (simple_read_overlay_table)
2925 (simple_overlay_update): Update.
2926 * symfile.h (struct quick_symbol_functions)
2927 <find_pc_sect_symtab>: Change type of msymbol to
2928 bound_minimal_symbol.
2929 * symmisc.c (dump_msymbols): Update.
2930 * symtab.c (find_pc_sect_symtab_via_partial)
2931 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2932 (search_symbols, print_msymbol_info): Update.
2933 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2934 (MSYMBOL_VALUE_ADDRESS): Redefine.
2935 (BMSYMBOL_VALUE_ADDRESS): New macro.
2936 * tracepoint.c (scope_info): Update.
2937 * tui/tui-disasm.c (tui_find_disassembly_address)
2938 (tui_get_begin_asm_address): Update.
2939 * valops.c (find_function_in_inferior): Update.
2940 * value.c (value_static_field, value_fn_field): Update.
2942 2014-02-26 Tom Tromey <tromey@redhat.com>
2944 * ada-lang.c (ada_update_initial_language): Update.
2945 (ada_main_name, ada_has_this_exception_support): Update.
2946 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2947 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2948 * arm-tdep.c (arm_skip_stub): Update.
2949 * auxv.c (ld_so_xfer_auxv): Update.
2950 * avr-tdep.c (avr_scan_prologue): Update.
2951 * ax-gdb.c (gen_var_ref): Update.
2952 * breakpoint.c (struct breakpoint_objfile_data)
2953 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2954 type to bound_minimal_symbol.
2955 (create_overlay_event_breakpoint)
2956 (create_longjmp_master_breakpoint)
2957 (create_std_terminate_master_breakpoint)
2958 (create_exception_master_breakpoint): Update.
2959 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2960 * c-exp.y (classify_name): Update.
2961 * coffread.c (coff_symfile_read): Update.
2962 * common/agent.c (agent_look_up_symbols): Update.
2963 * d-lang.c (d_main_name): Update.
2964 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2965 * dec-thread.c (enable_dec_thread): Update.
2966 * dwarf2loc.c (call_site_to_target_addr): Update.
2967 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2968 * eval.c (evaluate_subexp_standard): Update.
2969 * findvar.c (struct minsym_lookup_data) <result>: Change type
2970 to bound_minimal_symbol.
2972 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2973 * frame.c (inside_main_func): Update.
2974 * frv-tdep.c (frv_frame_this_id): Update.
2975 * gcore.c (call_target_sbrk): Update.
2976 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2977 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2979 * go-lang.c (go_main_name): Update.
2980 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2981 (hppa_hpux_find_import_stub_for_addr): Update.
2982 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2983 Update. Change return type.
2984 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2986 * jit.c (jit_breakpoint_re_set_internal): Update.
2987 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2989 * linux-nat.c (get_signo): Update.
2990 * linux-thread-db.c (inferior_has_bug): Update
2991 * m32c-tdep.c (m32c_return_value)
2992 (m32c_m16c_address_to_pointer): Update.
2993 * m32r-tdep.c (m32r_frame_this_id): Update.
2994 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2995 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2996 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2997 lookup_minimal_symbol. Change return type.
2998 (lookup_minimal_symbol): Remove.
2999 (lookup_bound_minimal_symbol): Update.
3000 (lookup_minimal_symbol_text): Change return type.
3001 (lookup_minimal_symbol_solib_trampoline): Change return type.
3002 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3003 (lookup_minimal_symbol_solib_trampoline): Change return type.
3004 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3005 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3006 (value_nsstring, find_imps): Update.
3007 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3008 * p-lang.c (pascal_main_name): Update.
3009 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3010 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3011 * proc-service.c (ps_pglobal_lookup): Update.
3012 * ravenscar-thread.c (get_running_thread_msymbol): Change
3014 (has_ravenscar_runtime, get_running_thread_id): Update.
3015 * remote.c (remote_check_symbols): Update.
3016 * sol-thread.c (ps_pglobal_lookup): Update.
3017 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3018 * solib-dsbt.c (lm_base): Update.
3019 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3021 * solib-irix.c (locate_base): Update.
3022 * solib-som.c (som_solib_create_inferior_hook)
3023 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3025 * solib-spu.c (spu_enable_break): Update.
3026 * solib-svr4.c (elf_locate_base, enable_break): Update.
3027 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3028 (flush_ea_cache): Update.
3029 * stabsread.c (define_symbol): Update.
3030 * symfile.c (simple_read_overlay_table): Update.
3031 * symtab.c (find_pc_sect_line): Update.
3032 * tracepoint.c (scope_info): Update.
3033 * tui-disasm.c (tui_get_begin_asm_address): Update.
3034 * value.c (value_static_field): Update.
3036 2014-02-26 Tom Tromey <tromey@redhat.com>
3038 * minsyms.c (prim_record_minimal_symbol_full): Use
3039 SET_MSYMBOL_VALUE_ADDRESS.
3040 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3041 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3042 SET_MSYMBOL_VALUE_ADDRESS.
3043 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3044 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3046 2014-02-26 Tom Tromey <tromey@redhat.com>
3048 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3049 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3050 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3051 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3052 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3053 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3054 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3055 * ada-lang.c (ada_main_name): Update.
3056 (ada_lookup_simple_minsym): Update.
3057 (ada_make_symbol_completion_list): Update.
3058 (ada_add_standard_exceptions): Update.
3059 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3060 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3061 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3062 * arm-tdep.c (skip_prologue_function): Update.
3063 (arm_skip_stack_protector, arm_skip_stub): Update.
3064 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3065 (arm_wince_skip_main_prologue): Update.
3066 * auxv.c (ld_so_xfer_auxv): Update.
3067 * avr-tdep.c (avr_scan_prologue): Update.
3068 * ax-gdb.c (gen_var_ref): Update.
3069 * block.c (call_site_for_pc): Update.
3070 * blockframe.c (get_pc_function_start): Update.
3071 (find_pc_partial_function_gnu_ifunc): Update.
3072 * breakpoint.c (create_overlay_event_breakpoint): Update.
3073 (create_longjmp_master_breakpoint): Update.
3074 (create_std_terminate_master_breakpoint): Update.
3075 (create_exception_master_breakpoint): Update.
3076 (resolve_sal_pc): Update.
3077 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3078 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3080 * c-valprint.c (c_val_print): Update.
3081 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3082 * coffread.c (coff_symfile_read): Update.
3083 * common/agent.c (agent_look_up_symbols): Update.
3084 * dbxread.c (find_stab_function_addr): Update.
3085 (end_psymtab): Update.
3086 * dwarf2loc.c (call_site_to_target_addr): Update.
3087 (func_verify_no_selftailcall): Update.
3088 (tailcall_dump): Update.
3089 (call_site_find_chain_1): Update.
3090 (dwarf_expr_reg_to_entry_parameter): Update.
3091 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3092 (elf_gnu_ifunc_resolve_by_got): Update.
3093 * f-valprint.c (info_common_command): Update.
3094 * findvar.c (read_var_value): Update.
3095 * frame.c (get_prev_frame_1): Update.
3096 (inside_main_func): Update.
3097 * frv-tdep.c (frv_skip_main_prologue): Update.
3098 (frv_frame_this_id): Update.
3099 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3100 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3101 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3102 (gnuv3_skip_trampoline): Update.
3103 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3104 (hppa64_hpux_in_solib_call_trampoline): Update.
3105 (hppa_hpux_skip_trampoline_code): Update.
3106 (hppa64_hpux_search_dummy_call_sequence): Update.
3107 (hppa_hpux_find_import_stub_for_addr): Update.
3108 (hppa_hpux_find_dummy_bpaddr): Update.
3109 * hppa-tdep.c (hppa_symbol_address)
3110 (hppa_lookup_stub_minimal_symbol): Update.
3111 * i386-tdep.c (i386_skip_main_prologue): Update.
3112 (i386_pe_skip_trampoline_code): Update.
3113 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3114 * infcall.c (get_function_name): Update.
3115 * infcmd.c (until_next_command): Update.
3116 * jit.c (jit_breakpoint_re_set_internal): Update.
3117 (jit_inferior_init): Update.
3118 * linespec.c (minsym_found): Update.
3119 (add_minsym): Update.
3120 * linux-fork.c (info_checkpoints_command): Update.
3121 * linux-nat.c (get_signo): Update.
3122 * linux-thread-db.c (inferior_has_bug): Update.
3123 * m32c-tdep.c (m32c_return_value): Update.
3124 (m32c_m16c_address_to_pointer): Update.
3125 (m32c_m16c_pointer_to_address): Update.
3126 * m32r-tdep.c (m32r_frame_this_id): Update.
3127 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3128 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3129 * maint.c (maintenance_translate_address): Update.
3130 * minsyms.c (add_minsym_to_hash_table): Update.
3131 (add_minsym_to_demangled_hash_table): Update.
3132 (msymbol_objfile): Update.
3133 (lookup_minimal_symbol): Update.
3134 (iterate_over_minimal_symbols): Update.
3135 (lookup_minimal_symbol_text): Update.
3136 (lookup_minimal_symbol_by_pc_name): Update.
3137 (lookup_minimal_symbol_solib_trampoline): Update.
3138 (lookup_minimal_symbol_by_pc_section_1): Update.
3139 (lookup_minimal_symbol_and_objfile): Update.
3140 (prim_record_minimal_symbol_full): Update.
3141 (compare_minimal_symbols): Update.
3142 (compact_minimal_symbols): Update.
3143 (build_minimal_symbol_hash_tables): Update.
3144 (install_minimal_symbols): Update.
3145 (terminate_minimal_symbol_table): Update.
3146 (find_solib_trampoline_target): Update.
3147 (minimal_symbol_upper_bound): Update.
3148 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3149 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3150 (mips_skip_pic_trampoline_code): Update.
3151 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3152 * objc-lang.c (selectors_info): Update.
3153 (classes_info): Update.
3154 (find_methods): Update.
3155 (find_imps): Update.
3156 (find_objc_msgsend): Update.
3157 * objfiles.c (objfile_relocate1): Update.
3158 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3159 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3160 * p-valprint.c (pascal_val_print): Update.
3161 * parse.c (write_exp_msymbol): Update.
3162 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3163 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3164 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3165 * printcmd.c (build_address_symbolic): Update.
3167 (address_info): Update.
3168 * proc-service.c (ps_pglobal_lookup): Update.
3169 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3170 (find_pc_sect_psymtab): Update.
3171 * python/py-framefilter.c (py_print_frame): Update.
3172 * ravenscar-thread.c (get_running_thread_id): Update.
3173 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3175 * remote.c (remote_check_symbols): Update.
3176 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3177 (rs6000_skip_trampoline_code): Update.
3178 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3179 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3180 * solib-dsbt.c (lm_base): Update.
3181 * solib-frv.c (lm_base): Update.
3183 * solib-irix.c (locate_base): Update.
3184 * solib-som.c (som_solib_create_inferior_hook): Update.
3185 (som_solib_desire_dynamic_linker_symbols): Update.
3186 (link_map_start): Update.
3187 * solib-spu.c (spu_enable_break): Update.
3188 (ocl_enable_break): Update.
3189 * solib-svr4.c (elf_locate_base): Update.
3190 (enable_break): Update.
3191 * spu-tdep.c (spu_get_overlay_table): Update.
3192 (spu_catch_start): Update.
3193 (flush_ea_cache): Update.
3194 * stabsread.c (define_symbol): Update.
3195 (scan_file_globals): Update.
3196 * stack.c (find_frame_funname): Update.
3197 (frame_info): Update.
3198 * symfile.c (simple_read_overlay_table): Update.
3199 (simple_overlay_update): Update.
3200 * symmisc.c (dump_msymbols): Update.
3201 * symtab.c (fixup_section): Update.
3202 (find_pc_sect_line): Update.
3203 (skip_prologue_sal): Update.
3204 (search_symbols): Update.
3205 (print_msymbol_info): Update.
3206 (rbreak_command): Update.
3207 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3208 (completion_list_objc_symbol): Update.
3209 (default_make_symbol_completion_list_break_on): Update.
3210 * tracepoint.c (scope_info): Update.
3211 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3212 (tui_get_begin_asm_address): Update.
3213 * valops.c (find_function_in_inferior): Update.
3214 * value.c (value_static_field): Update.
3215 (value_fn_field): Update.
3217 2014-02-26 Tom Tromey <tromey@redhat.com>
3219 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3220 bound minimal symbols. Move code that knows about minsym
3222 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3224 * minsyms.h (minimal_symbol_upper_bound): Declare.
3225 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3226 minimal_symbol_upper_bound.
3228 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3230 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3231 Use the type's name if its basic type does not have a tag.
3233 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3235 * dwarf2read.c (read_subrange_type): Add comment.
3237 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3239 * dwarf2read.c (update_enumeration_type_from_children): New
3240 function, mostly extracted from process_structure_scope.
3241 (read_enumeration_type): Call update_enumeration_type_from_children.
3242 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3243 and flag_flag_enum fields.
3245 2014-02-26 Pedro Alves <palves@redhat.com>
3247 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3248 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3249 to_xfer_partial method.
3251 2014-02-26 Pedro Alves <palves@redhat.com>
3253 * target.c (complete_target_initialization): Don't install
3254 default_xfer_partial as to_xfer_partial hook.
3256 (update_current_target): Don't INHERIT nor de_fault
3257 deprecated_xfer_memory. Delete de_fault macro.
3258 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3259 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3260 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3263 2014-02-26 Pedro Alves <palves@redhat.com>
3265 * go32-nat.c (my_write_child): New function.
3266 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3267 (go32_xfer_partial): New function.
3268 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3269 Instead install a to_xfer_partial hook.
3271 2014-02-26 Pedro Alves <palves@redhat.com>
3273 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3274 to_xfer_partial helper. Rewrite.
3275 (procfs_xfer_partial): New function.
3276 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3277 Install a to_xfer_partial hook.
3279 2014-02-26 Pedro Alves <palves@redhat.com>
3281 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3282 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3283 (m32r_xfer_partial): New function.
3284 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3285 Install a to_xfer_partial hook.
3287 2014-02-26 Pedro Alves <palves@redhat.com>
3289 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3291 (mips_xfer_partial): New function.
3292 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3293 hook. Install a to_xfer_partial hook.
3295 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3297 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3298 * gdbtypes.c (create_array_type_with_stride): New function,
3299 renaming create_array_type, but with an added parameter
3300 called "bit_stride".
3301 (create_array_type): Re-implement using
3302 create_array_type_with_stride.
3303 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3304 and DW_AT_bit_stride attributes.
3306 2014-02-26 Pedro Alves <palves@redhat.com>
3308 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3309 task-specific breakpoints.
3311 2014-02-25 Pedro Alves <palves@redhat.com>
3313 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3314 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3316 2014-02-25 Stan Shebs <stan@codesourcery.com>
3318 * defs.h: Annotate comments for Doxygen.
3320 2014-02-25 Tom Tromey <tromey@redhat.com>
3322 * target.h (target_ignore): Don't declare.
3323 * target.c (target_ignore): Remove.
3325 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3328 * auto-load.c (auto_load_objfile_script_1): Change filename to
3331 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3333 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3334 documentation. Adjust prototype to match the target_ops
3335 to_xfer_partial method. Adjust implementation accordingly.
3337 2014-02-25 Hui Zhu <hui@codesourcery.com>
3339 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3342 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3344 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3345 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3346 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3347 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3348 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3349 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3350 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3351 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3353 (rl78_register_type): Use a data pointer type for SP and
3354 new pseudo registers mentioned above. Use a 16 bit integer
3355 type for all other register pairs.
3356 (rl78_register_name, rl78_g10_register_name): Update for
3357 new pseudo registers.
3358 (rl78_pseudo_register_read): Likewise.
3359 (rl78_pseudo_register_write): Likewise.
3360 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3361 to the newly added pseudo registers.
3363 2014-02-24 Doug Evans <dje@google.com>
3365 * value.c (record_latest_value): Fix comment.
3366 * printcmd.c (print_command_1): Remove code to handle -1 return from
3367 record_latest_value.
3369 2014-02-24 Pedro Alves <palves@redhat.com>
3371 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3372 deprecated_xfer_memory hook.
3373 (procfs_xfer_partial): Call procfs_xfer_memory instead
3374 of the deprecated_xfer_memory target hook.
3375 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3378 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3380 * windows-nat.c (windows_xfer_shared_libraries): Return
3381 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3382 requested object is TARGET_OBJECT_LIBRARIES.
3384 2014-02-24 Yao Qi <yao@codesourcery.com>
3386 * target.h (enum target_xfer_status)
3387 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3388 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3390 * corefile.c (memory_error_message): User updated.
3391 * exec.c (section_table_read_available_memory): Likewise.
3392 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3393 * target.c (target_xfer_status_to_string): Likewise.
3394 (raw_memory_xfer_partial): Likewise.
3395 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3396 * valops.c (read_value_memory): Likewise.
3397 * exec.h: Update comments.
3399 2014-02-24 Yao Qi <yao@codesourcery.com>
3401 * target.c (target_xfer_status_to_string): Rename argument err
3403 * target.h (target_xfer_status_to_string): Update declaration.
3404 Replace target_xfer_error_to_string with
3405 target_xfer_status_to_string in comment.
3407 2014-02-24 Yao Qi <yao@codesourcery.com>
3409 * mips-linux-nat.c (super_close): Update its type.
3410 (mips_linux_close): Pass 'self' to super_close.
3412 2014-02-24 Yao Qi <yao@codesourcery.com>
3414 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3415 * corefile.c (read_memory): Adjusted.
3416 * target.c (target_write_with_progress): Adjusted.
3418 2014-02-23 Yao Qi <yao@codesourcery.com>
3422 2013-10-25 Yao Qi <yao@codesourcery.com>
3424 * remote.c (remote_traceframe_info): Return early if
3425 traceframe is not selected.
3427 2013-07-19 Yao Qi <yao@codesourcery.com>
3429 * target.c (update_current_target): Change the default action
3430 of 'to_traceframe_info' from tcomplain to return_zero.
3431 * target.h (struct target_ops) <to_traceframe_info>: Add more
3434 2014-02-23 Yao Qi <yao@codesourcery.com>
3436 * valops.c (read_value_memory): Rewrite it. Call
3437 target_xfer_partial in a loop.
3438 * exec.h (section_table_available_memory): Remove declaration.
3439 Move comments to ...
3440 * exec.c (section_table_available_memory): ... here. Make it
3443 2014-02-23 Yao Qi <yao@codesourcery.com>
3445 * exec.c (section_table_read_available_memory): New function.
3446 * exec.h (section_table_read_available_memory): Declare.
3447 * ctf.c (ctf_xfer_partial): Call
3448 section_table_read_available_memory.
3449 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3451 2014-02-23 Yao Qi <yao@codesourcery.com>
3453 * ctf.c (ctf_xfer_partial): Move code to ...
3454 * exec.c (exec_read_partial_read_only): ... it. New function.
3455 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3456 * tracefile.c: Include "exec.h".
3457 * exec.h (exec_read_partial_read_only): Declare.
3459 2014-02-23 Yao Qi <yao@codesourcery.com>
3461 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3462 (tfile_has_memory): Remove.
3463 (init_tfile_ops): Don't set fields to_has_all_memory and
3464 to_has_memory of tfile_ops.
3465 * tracefile.c (tracefile_has_all_memory): New function.
3466 (tracefile_has_memory): New function.
3467 (init_tracefile_ops): Initialize fields to_has_all_memory and
3468 to_has_memory of 'ops'.
3470 2014-02-23 Yao Qi <yao@codesourcery.com>
3472 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3473 (ctf_thread_alive, ctf_get_trace_status): Remove.
3474 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3476 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3477 (tfile_has_stack, tfile_has_registers): Remove.
3478 (tfile_thread_alive): Remove.
3479 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3481 * tracefile.c (tracefile_has_stack): New function.
3482 (tracefile_has_registers): New function.
3483 (tracefile_thread_alive): New function.
3484 (tracefile_get_trace_status): New function.
3485 (init_tracefile_ops): New function.
3486 * tracefile.h (init_tracefile_ops): Declare.
3488 2014-02-23 Yao Qi <yao@codesourcery.com>
3490 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3491 (O_LARGEFILE): Likewise.
3492 (tfile_ops): Likewise.
3493 (TRACE_HEADER_SIZE): Likewise.
3494 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3495 (cur_data_size): Likewise.
3496 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3497 (tfile_close, tfile_files_info): Likewise.
3498 (tfile_get_trace_status): Likewise.
3499 (tfile_get_tracepoint_status): Likewise.
3500 (tfile_get_traceframe_address): Likewise.
3501 (tfile_trace_find, match_blocktype): Likewise.
3502 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3503 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3504 (tfile_get_trace_state_variable_value): Likewise.
3505 (tfile_has_all_memory, tfile_has_memory): Likewise.
3506 (tfile_has_stack, tfile_has_registers): Likewise.
3507 (tfile_thread_alive, build_traceframe_info): Likewise.
3508 (tfile_traceframe_info, init_tfile_ops): Likewise.
3509 (_initialize_tracepoint): Don't call init_tfile_ops
3510 and add_target_with_completer.
3511 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3512 exec.h, completer.h and filenames.h.
3513 (_initialize_tracefile_tfile): New function.
3515 2014-02-23 Yao Qi <yao@codesourcery.com>
3517 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3519 (HFILES_NO_SRCDIR): Add tracefile.h.
3520 * ctf.c: Include "tracefile.h".
3521 * tracefile.h: New file.
3522 * tracefile.c: New file
3523 * tracefile-tfile.c: New file.
3524 * tracepoint.c: Include "tracefile.h".
3525 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3526 (stop_reason_names): Add const.
3527 (trace_file_writer_xfree): Move it to tracefile.c.
3528 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3529 (trace_save_ctf): Likewise.
3530 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3531 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3532 (tfile_write_header, tfile_write_regblock_type): Likewise.
3533 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3534 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3535 (tfile_write_raw_data, tfile_end): Likewise.
3536 (tfile_trace_file_writer_new): Likewise.
3537 (free_uploaded_tp): Make it extern.
3538 (free_uploaded_tsv): Make it extern.
3539 (_initialize_tracepoint): Move code to register command 'tsave'
3541 * tracepoint.h (stop_reason_names): Declare.
3542 (struct trace_frame_write_ops): Move it to tracefile.h.
3543 (struct trace_file_write_ops): Likewise.
3544 (struct trace_file_writer): Likewise.
3545 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3547 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3550 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3552 (get_cores_used_by_process): New parameter num_cores, use it.
3553 (linux_xfer_osdata_processes): Pass num_cores to it.
3554 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3557 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3559 * target.c (memory_xfer_partial): Fix length arg in call to
3560 breakpoint_xfer_memory.
3562 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3565 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3566 number comes after the + or - signs. Adjust length of register
3567 name to be extracted.
3569 2014-02-20 Tom Tromey <tromey@redhat.com>
3571 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3572 (ada_varobj_ops): Mark "extern".
3574 2014-02-20 Tom Tromey <tromey@redhat.com>
3576 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3578 2014-02-20 Doug Evans <xdje42@gmail.com>
3580 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3581 All callers updated.
3582 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3583 All callers updated.
3584 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3585 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3587 2014-02-20 lin zuojian <manjian2006@gmail.com>
3588 Joel Brobecker <brobecker@adacore.com>
3589 Doug Evans <xdje42@gmail.com>
3592 * dwarf2read.c (struct die_info): New member in_process.
3593 (reset_die_in_process): New function.
3594 (process_die): Set it at the start, reset when returning.
3595 (inherit_abstract_dies): Only call process_die if origin_child_die
3596 not already being processed.
3598 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3600 * windows-nat.c (handle_unload_dll): Add function documentation.
3601 (do_initial_windows_stuff): Add comment explaining why we wait
3602 until after inferior initialization has finished before
3603 processing all DLLs.
3605 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3607 * windows-nat.c (get_module_name): Delete.
3608 (windows_get_exec_module_filename): New function, mostly
3609 inspired from get_module_name.
3610 (windows_pid_to_exec_file): Replace call to get_module_name
3611 by call to windows_get_exec_module_filename.
3613 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3615 * windows-nat.c (handle_load_dll): Rewrite this function's
3616 introductory comment. Remove code using get_module_name
3617 to get the DLL's name.
3619 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3621 * windows-nat.c (get_windows_debug_event): Ignore
3622 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3623 if windows_initialization_done == 0.
3624 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3625 Adjust implementation to always load all DLLs.
3626 (do_initial_windows_stuff): Replace call to
3627 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3629 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3631 * windows-nat.c (_initialize_windows_nat): Deprecate the
3632 "dll-symbols" command. Turn the "add-shared-symbol-files"
3633 and "assf" aliases into commands, and deprecate them as well.
3634 * NEWS: Add entry explaining that "dll-symbols" and its two
3635 aliases are now deprecated.
3637 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3639 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3640 new-line in debug string. Remove trailing spaces.
3642 2014-02-19 Stan Shebs <stan@codesourcery.com>
3644 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3646 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3648 * NEWS: Add entry for the new feature
3649 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3652 2014-02-19 Stan Shebs <stan@codesourcery.com>
3654 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3656 2014-02-19 Pedro Alves <palves@redhat.com>
3658 * common/ptid.h (struct ptid): Mention that process_stratum
3659 targets should prefer ptid.lwp.
3661 2014-02-19 Pedro Alves <palves@redhat.com>
3663 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3664 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3665 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3666 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3667 store remote thread ids rather than ptid.tid.
3668 (_initialize_remote): Adjust.
3670 2014-02-19 Tom Tromey <tromey@redhat.com>
3672 * target.c (target_get_unwinder): Rewrite.
3673 (target_get_tailcall_unwinder): Rewrite.
3674 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3675 (record_btrace_to_get_tailcall_unwinder): New function.
3676 (init_record_btrace_ops): Update.
3677 * target.h (struct target_ops) <to_get_unwinder,
3678 to_get_tailcall_unwinder>: Now function pointers. Use
3679 TARGET_DEFAULT_RETURN.
3681 2014-02-19 Tom Tromey <tromey@redhat.com>
3683 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3685 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3687 2014-02-19 Tom Tromey <tromey@redhat.com>
3689 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3691 * target-delegates.c: Rebuild.
3692 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3693 TARGET_DEFAULT_FUNC.
3694 * target.c (default_target_decr_pc_after_break): Rename from
3695 forward_target_decr_pc_after_break. Simplify.
3696 (target_decr_pc_after_break): Rely on delegation.
3698 2014-02-19 Tom Tromey <tromey@redhat.com>
3700 * target.c (update_current_target): Do not INHERIT to_doc or
3701 to_magic. Do not de_fault to_open or to_close.
3703 2014-02-19 Tom Tromey <tromey@redhat.com>
3705 * gcore.h (objfile_find_memory_regions): Declare.
3706 * gcore.c (objfile_find_memory_regions): No longer static. Add
3708 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3709 * exec.c: Include gcore.h.
3710 (exec_set_find_memory_regions): Remove.
3711 (exec_find_memory_regions): Remove.
3712 (exec_do_find_memory_regions): Remove.
3713 (init_exec_ops): Update.
3714 * defs.h (exec_set_find_memory_regions): Remove.
3716 2014-02-19 Tom Tromey <tromey@redhat.com>
3718 * target-delegates.c: Rebuild.
3719 * target.h (struct target_ops) <to_extra_thread_info,
3720 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3721 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3722 not 0, in TARGET_DEFAULT_RETURN.
3724 2014-02-19 Tom Tromey <tromey@redhat.com>
3726 * target.c (complete_target_initialization): Remove casts. Use
3727 return_zero_has_execution.
3728 (return_zero): Add "ignore" argument.
3729 (return_zero_has_execution): New function.
3730 (init_dummy_target): Remove casts. Use
3731 return_zero_has_execution.
3733 2014-02-19 Tom Tromey <tromey@redhat.com>
3735 * target.c (update_current_target): Update comments. Do not
3738 2014-02-19 Tom Tromey <tromey@redhat.com>
3740 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3742 * corelow.c (core_read_description): Delegate when needed.
3743 * remote.c (remote_read_description): Delegate when needed.
3744 * target-delegates.c: Rebuild.
3745 * target.c (target_read_description): Rewrite.
3746 * target.h (struct target_ops) <to_read_description>: Update
3747 comment. Use TARGET_DEFAULT_RETURN.
3749 2014-02-19 Tom Tromey <tromey@redhat.com>
3751 * target-delegates.c: Rebuild.
3752 * target.c (update_current_target): Don't inherit or default
3754 (find_default_run_target): Check against delegate_can_run.
3755 * target.h (struct target_ops) <to_can_run>: Use
3756 TARGET_DEFAULT_RETURN.
3758 2014-02-19 Tom Tromey <tromey@redhat.com>
3760 * target-delegates.c: Rebuild.
3761 * target.c (target_disconnect): Unconditionally delegate.
3762 * target.h (struct target_ops) <to_disconnect>: Use
3763 TARGET_DEFAULT_NORETURN.
3765 2014-02-19 Tom Tromey <tromey@redhat.com>
3767 * record.c (record_stop): Unconditionally delegate.
3768 * target-delegates.c: Rebuild.
3769 * target.c (target_stop_recording): Unconditionally delegate.
3770 * target.h (struct target_ops) <to_stop_recording>: Use
3771 TARGET_DEFAULT_IGNORE.
3773 2014-02-19 Tom Tromey <tromey@redhat.com>
3775 * target-delegates.c: Rebuild.
3776 * target.c (target_enable_btrace): Unconditionally delegate.
3777 * target.h (struct target_ops) <to_enable_btrace>: Use
3778 TARGET_DEFAULT_NORETURN.
3780 2014-02-19 Tom Tromey <tromey@redhat.com>
3782 * target-delegates.c: Rebuild.
3783 * target.c (target_read_btrace): Unconditionally delegate.
3784 * target.h (struct target_ops) <to_read_btrace>: Use
3785 TARGET_DEFAULT_NORETURN.
3787 2014-02-19 Tom Tromey <tromey@redhat.com>
3789 * target-delegates.c: Rebuild.
3790 * target.c (target_teardown_btrace): Unconditionally delegate.
3791 * target.h (struct target_ops) <to_teardown_btrace>: Use
3792 TARGET_DEFAULT_NORETURN.
3794 2014-02-19 Tom Tromey <tromey@redhat.com>
3796 * target-delegates.c: Rebuild.
3797 * target.c (target_disable_btrace): Unconditionally delegate.
3798 * target.h (struct target_ops) <to_disable_btrace>: Use
3799 TARGET_DEFAULT_NORETURN.
3801 2014-02-19 Tom Tromey <tromey@redhat.com>
3803 * target-delegates.c: Rebuild.
3804 * target.c (default_search_memory): New function.
3805 (simple_search_memory): Update comment.
3806 (target_search_memory): Unconditionally delegate.
3807 * target.h (struct target_ops) <to_search_memory>: Use
3808 TARGET_DEFAULT_FUNC.
3810 2014-02-19 Tom Tromey <tromey@redhat.com>
3812 * auxv.c (default_auxv_parse): No longer static.
3813 (target_auxv_parse): Unconditionally delegate.
3814 * auxv.h (default_auxv_parse): Declare.
3815 * target-delegates.c: Rebuild.
3816 * target.c: Include auxv.h.
3817 * target.h (struct target_ops) <to_auxv_parse>: Use
3818 TARGET_DEFAULT_FUNC.
3820 2014-02-19 Tom Tromey <tromey@redhat.com>
3822 * target-delegates.c: Rebuild.
3823 * target.c (target_memory_map): Unconditionally delegate.
3824 * target.h (struct target_ops) <to_memory_map>: Use
3825 TARGET_DEFAULT_RETURN.
3827 2014-02-19 Tom Tromey <tromey@redhat.com>
3829 * target-delegates.c: Rebuild.
3830 * target.c (target_thread_alive): Unconditionally delegate.
3831 * target.h (struct target_ops) <to_thread_alive>: Use
3832 TARGET_DEFAULT_RETURN.
3834 2014-02-19 Tom Tromey <tromey@redhat.com>
3836 * target-delegates.c: Rebuild.
3837 * target.c (target_save_record): Unconditionally delegate.
3838 * target.h (struct target_ops) <to_save_record>: Use
3839 TARGET_DEFAULT_NORETURN.
3841 2014-02-19 Tom Tromey <tromey@redhat.com>
3843 * target-delegates.c: Rebuild.
3844 * target.c (target_delete_record): Unconditionally delegate.
3845 * target.h (struct target_ops) <to_delete_record>: Use
3846 TARGET_DEFAULT_NORETURN.
3848 2014-02-19 Tom Tromey <tromey@redhat.com>
3850 * target-delegates.c: Rebuild.
3851 * target.c (target_record_is_replaying): Unconditionally
3853 * target.h (struct target_ops) <to_record_is_replaying>: Use
3854 TARGET_DEFAULT_RETURN.
3856 2014-02-19 Tom Tromey <tromey@redhat.com>
3858 * target-delegates.c: Rebuild.
3859 * target.c (target_goto_record_begin): Unconditionally delegate.
3860 * target.h (struct target_ops) <to_goto_record_begin>: Use
3861 TARGET_DEFAULT_NORETURN.
3863 2014-02-19 Tom Tromey <tromey@redhat.com>
3865 * target-delegates.c: Rebuild.
3866 * target.c (target_goto_record_end): Unconditionally delegate.
3867 * target.h (struct target_ops) <to_goto_record_end>: Use
3868 TARGET_DEFAULT_NORETURN.
3870 2014-02-19 Tom Tromey <tromey@redhat.com>
3872 * target-delegates.c: Rebuild.
3873 * target.c (target_goto_record): Unconditionally delegate.
3874 * target.h (struct target_ops) <to_goto_record>: Use
3875 TARGET_DEFAULT_NORETURN.
3877 2014-02-19 Tom Tromey <tromey@redhat.com>
3879 * target-delegates.c: Rebuild.
3880 * target.c (target_insn_history): Unconditionally delegate.
3881 * target.h (struct target_ops) <to_insn_history>: Use
3882 TARGET_DEFAULT_NORETURN.
3884 2014-02-19 Tom Tromey <tromey@redhat.com>
3886 * target-delegates.c: Rebuild.
3887 * target.c (target_insn_history_from): Unconditionally delegate.
3888 * target.h (struct target_ops) <to_insn_history_from>: Use
3889 TARGET_DEFAULT_NORETURN.
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * target-delegates.c: Rebuild.
3894 * target.c (target_insn_history_range): Unconditionally delegate.
3895 * target.h (struct target_ops) <to_insn_history_range>: Use
3896 TARGET_DEFAULT_NORETURN.
3898 2014-02-19 Tom Tromey <tromey@redhat.com>
3900 * target-delegates.c: Rebuild.
3901 * target.c (target_call_history): Unconditionally delegate.
3902 * target.h (struct target_ops) <to_call_history>: Use
3903 TARGET_DEFAULT_NORETURN.
3905 2014-02-19 Tom Tromey <tromey@redhat.com>
3907 * target-delegates.c: Rebuild.
3908 * target.c (target_call_history_from): Unconditionally delegate.
3909 * target.h (struct target_ops) <to_call_history_from>: Use
3910 TARGET_DEFAULT_NORETURN.
3912 2014-02-19 Tom Tromey <tromey@redhat.com>
3914 * target-delegates.c: Rebuild.
3915 * target.c (target_call_history_range): Unconditionally delegate.
3916 * target.h (struct target_ops) <to_call_history_range>: Use
3917 TARGET_DEFAULT_NORETURN.
3919 2014-02-19 Tom Tromey <tromey@redhat.com>
3921 * target-delegates.c: Rebuild.
3922 * target.c (target_verify_memory): Unconditionally delegate.
3923 * target.h (struct target_ops) <to_verify_memory>: Use
3924 TARGET_DEFAULT_NORETURN.
3926 2014-02-19 Tom Tromey <tromey@redhat.com>
3928 * target-delegates.c: Rebuild.
3929 * target.c (target_core_of_thread): Unconditionally delegate.
3930 * target.h (struct target_ops) <to_core_of_thread>: Use
3931 TARGET_DEFAULT_RETURN.
3933 2014-02-19 Tom Tromey <tromey@redhat.com>
3935 * target-delegates.c: Rebuild.
3936 * target.c (target_flash_done): Unconditionally delegate.
3937 * target.h (struct target_ops) <to_flash_done>: Use
3938 TARGET_DEFAULT_NORETURN.
3940 2014-02-19 Tom Tromey <tromey@redhat.com>
3942 * target-delegates.c: Rebuild.
3943 * target.c (target_flash_erase): Unconditionally delegate.
3944 * target.h (struct target_ops) <to_flash_erase>: Use
3945 TARGET_DEFAULT_NORETURN.
3947 2014-02-19 Tom Tromey <tromey@redhat.com>
3949 * target-delegates.c: Rebuild.
3950 * target.c (target_get_section_table): Unconditionally delegate.
3951 * target.h (struct target_ops) <to_get_section_table>: Use
3952 TARGET_DEFAULT_RETURN.
3954 2014-02-19 Tom Tromey <tromey@redhat.com>
3956 * target-delegates.c: Rebuild.
3957 * target.c (target_pid_to_str): Unconditionally delegate.
3958 (init_dummy_target): Don't initialize to_pid_to_str.
3959 (default_pid_to_str): Rename from dummy_pid_to_str.
3960 * target.h (struct target_ops) <to_pid_to_str>: Use
3961 TARGET_DEFAULT_FUNC.
3963 2014-02-19 Tom Tromey <tromey@redhat.com>
3965 * target-delegates.c: Rebuild.
3966 * target.c (target_find_new_threads): Unconditionally delegate.
3967 * target.h (struct target_ops) <to_find_new_threads>: Use
3968 TARGET_DEFAULT_RETURN.
3970 2014-02-19 Tom Tromey <tromey@redhat.com>
3972 * target-delegates.c: Rebuild.
3973 * target.c (target_program_signals): Unconditionally delegate.
3974 * target.h (struct target_ops) <to_program_signals>: Use
3975 TARGET_DEFAULT_IGNORE.
3977 2014-02-19 Tom Tromey <tromey@redhat.com>
3979 * target-delegates.c: Rebuild.
3980 * target.c (target_pass_signals): Unconditionally delegate.
3981 * target.h (struct target_ops) <to_pass_signals>: Use
3982 TARGET_DEFAULT_IGNORE.
3984 2014-02-19 Tom Tromey <tromey@redhat.com>
3986 * target-delegates.c: Rebuild.
3987 * target.c (default_mourn_inferior): New function.
3988 (target_mourn_inferior): Unconditionally delegate.
3989 * target.h (struct target_ops) <to_mourn_inferior>: Use
3990 TARGET_DEFAULT_FUNC.
3992 2014-02-19 Tom Tromey <tromey@redhat.com>
3994 * target-delegates.c: Rebuild.
3995 * target.c (default_follow_fork): New function.
3996 (target_follow_fork): Unconditionally delegate.
3997 * target.h (struct target_ops) <to_follow_fork>: Use
3998 TARGET_DEFAULT_FUNC.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * target-delegates.c: Rebuild.
4003 * target.c (target_kill): Unconditionally delegate.
4004 * target.h (struct target_ops) <to_kill>: Use
4005 TARGET_DEFAULT_NORETURN.
4007 2014-02-19 Tom Tromey <tromey@redhat.com>
4009 * target-delegates.c: Rebuild.
4010 * target.c (target_masked_watch_num_registers): Unconditionally
4012 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4013 Use TARGET_DEFAULT_RETURN.
4015 2014-02-19 Tom Tromey <tromey@redhat.com>
4017 * target-delegates.c: Rebuild.
4018 * target.c (target_remove_mask_watchpoint): Unconditionally
4020 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4021 TARGET_DEFAULT_RETURN.
4023 2014-02-19 Tom Tromey <tromey@redhat.com>
4025 * target-delegates.c: Rebuild.
4026 * target.c (target_insert_mask_watchpoint): Unconditionally
4028 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4029 TARGET_DEFAULT_RETURN.
4031 2014-02-19 Tom Tromey <tromey@redhat.com>
4033 * target-delegates.c: Rebuild.
4034 * target.c (target_ranged_break_num_registers): Unconditionally
4036 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4037 Use TARGET_DEFAULT_RETURN.
4039 2014-02-19 Tom Tromey <tromey@redhat.com>
4041 * target-delegates.c: Rebuild.
4042 * target.c (target_fetch_registers): Unconditionally delegate.
4043 * target.h (struct target_ops) <to_fetch_registers>: Use
4044 TARGET_DEFAULT_NORETURN.
4046 2014-02-19 Tom Tromey <tromey@redhat.com>
4048 * target-delegates.c: Rebuild.
4049 * target.c (update_current_target): Don't inherit or default
4051 * target.h (struct target_ops) <to_stop>: Use
4052 TARGET_DEFAULT_IGNORE.
4054 2014-02-19 Tom Tromey <tromey@redhat.com>
4056 * target-delegates.c: Rebuild.
4057 * target.c (update_current_target): Don't inherit or default
4058 to_can_run_breakpoint_commands.
4059 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4060 Use TARGET_DEFAULT_RETURN.
4062 2014-02-19 Tom Tromey <tromey@redhat.com>
4064 * target-delegates.c: Rebuild.
4065 * target.c (update_current_target): Don't inherit or default
4066 to_supports_evaluation_of_breakpoint_conditions.
4067 * target.h (struct target_ops)
4068 <to_supports_evaluation_of_breakpoint_conditions>: Use
4069 TARGET_DEFAULT_RETURN.
4071 2014-02-19 Tom Tromey <tromey@redhat.com>
4073 * target-delegates.c: Rebuild.
4074 * target.c (update_current_target): Don't inherit or default
4075 to_augmented_libraries_svr4_read.
4076 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4077 Use TARGET_DEFAULT_RETURN.
4079 2014-02-19 Tom Tromey <tromey@redhat.com>
4081 * target-delegates.c: Rebuild.
4082 * target.c (update_current_target): Don't inherit or default
4084 * target.h (struct target_ops) <to_can_use_agent>: Use
4085 TARGET_DEFAULT_RETURN.
4087 2014-02-19 Tom Tromey <tromey@redhat.com>
4089 * target-delegates.c: Rebuild.
4090 * target.c (update_current_target): Don't inherit or default
4092 * target.h (struct target_ops) <to_use_agent>: Use
4093 TARGET_DEFAULT_NORETURN.
4095 2014-02-19 Tom Tromey <tromey@redhat.com>
4097 * target-delegates.c: Rebuild.
4098 * target.c (update_current_target): Don't inherit or default
4100 (return_null): Remove.
4101 * target.h (struct target_ops) <to_traceframe_info>: Use
4102 TARGET_DEFAULT_RETURN.
4104 2014-02-19 Tom Tromey <tromey@redhat.com>
4106 * target-delegates.c: Rebuild.
4107 * target.c (update_current_target): Don't inherit or default
4108 to_static_tracepoint_markers_by_strid.
4109 * target.h (struct target_ops)
4110 <to_static_tracepoint_markers_by_strid>: Use
4111 TARGET_DEFAULT_NORETURN.
4113 2014-02-19 Tom Tromey <tromey@redhat.com>
4115 * target-delegates.c: Rebuild.
4116 * target.c (update_current_target): Don't inherit or default
4117 to_static_tracepoint_marker_at.
4118 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4119 Use TARGET_DEFAULT_RETURN.
4121 2014-02-19 Tom Tromey <tromey@redhat.com>
4123 * target-delegates.c: Rebuild.
4124 * target.c (update_current_target): Don't inherit or default
4126 * target.h (struct target_ops) <to_set_permissions>: Use
4127 TARGET_DEFAULT_IGNORE.
4129 2014-02-19 Tom Tromey <tromey@redhat.com>
4131 * target-delegates.c: Rebuild.
4132 * target.c (update_current_target): Don't inherit or default
4134 * target.h (struct target_ops) <to_get_tib_address>: Use
4135 TARGET_DEFAULT_NORETURN.
4137 2014-02-19 Tom Tromey <tromey@redhat.com>
4139 * target-delegates.c: Rebuild.
4140 * target.c (update_current_target): Don't inherit or default
4142 * target.h (struct target_ops) <to_set_trace_notes>: Use
4143 TARGET_DEFAULT_RETURN.
4145 2014-02-19 Tom Tromey <tromey@redhat.com>
4147 * target-delegates.c: Rebuild.
4148 * target.c (update_current_target): Don't initialize
4149 to_set_trace_buffer_size.
4150 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4151 TARGET_DEFAULT_IGNORE.
4153 2014-02-19 Tom Tromey <tromey@redhat.com>
4155 * target-delegates.c: Rebuild.
4156 * target.c (update_current_target): Don't inherit or default
4157 to_set_circular_trace_buffer.
4158 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4159 TARGET_DEFAULT_IGNORE.
4161 2014-02-19 Tom Tromey <tromey@redhat.com>
4163 * target-delegates.c: Rebuild.
4164 * target.c (update_current_target): Don't inherit or default
4165 to_set_disconnected_tracing.
4166 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4167 TARGET_DEFAULT_IGNORE.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target-delegates.c: Rebuild.
4172 * target.c (update_current_target): Don't inherit or default
4173 to_get_min_fast_tracepoint_insn_len.
4174 (return_minus_one): Remove.
4175 * target.h (struct target_ops)
4176 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4178 2014-02-19 Tom Tromey <tromey@redhat.com>
4180 * target-delegates.c: Rebuild.
4181 * target.c (update_current_target): Don't inherit or default
4182 to_get_raw_trace_data.
4183 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4184 TARGET_DEFAULT_NORETURN.
4186 2014-02-19 Tom Tromey <tromey@redhat.com>
4188 * target-delegates.c: Rebuild.
4189 * target.c (update_current_target): Don't inherit or default
4190 to_upload_trace_state_variables.
4191 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4192 Use TARGET_DEFAULT_RETURN.
4194 2014-02-19 Tom Tromey <tromey@redhat.com>
4196 * target-delegates.c: Rebuild.
4197 * target.c (update_current_target): Don't inherit or default
4198 to_upload_tracepoints.
4199 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4200 TARGET_DEFAULT_RETURN.
4202 2014-02-19 Tom Tromey <tromey@redhat.com>
4204 * target-delegates.c: Rebuild.
4205 * target.c (update_current_target): Don't inherit or default
4207 * target.h (struct target_ops) <to_save_trace_data>: Use
4208 TARGET_DEFAULT_NORETURN.
4210 2014-02-19 Tom Tromey <tromey@redhat.com>
4212 * target-delegates.c: Rebuild.
4213 * target.c (update_current_target): Don't inherit or default
4214 to_get_trace_state_variable_value.
4215 * target.h (struct target_ops)
4216 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4218 2014-02-19 Tom Tromey <tromey@redhat.com>
4220 * target-delegates.c: Rebuild.
4221 * target.c (update_current_target): Don't inherit or default
4223 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4225 2014-02-19 Tom Tromey <tromey@redhat.com>
4227 * target-delegates.c: Rebuild.
4228 * target.c (update_current_target): Don't inherit or default
4230 * target.h (struct target_ops) <to_trace_stop>: Use
4231 TARGET_DEFAULT_NORETURN.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target-delegates.c: Rebuild.
4236 * target.c (update_current_target): Don't inherit or default
4237 to_get_tracepoint_status.
4238 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4239 TARGET_DEFAULT_NORETURN.
4241 2014-02-19 Tom Tromey <tromey@redhat.com>
4243 * target-delegates.c: Rebuild.
4244 * target.c (update_current_target): Don't inherit or default
4245 to_get_trace_status.
4246 * target.h (struct target_ops) <to_get_trace_status>: Use
4247 TARGET_DEFAULT_RETURN.
4249 2014-02-19 Tom Tromey <tromey@redhat.com>
4251 * target-delegates.c: Rebuild.
4252 * target.c (update_current_target): Don't inherit or default
4254 * target.h (struct target_ops) <to_trace_start>: Use
4255 TARGET_DEFAULT_NORETURN.
4257 2014-02-19 Tom Tromey <tromey@redhat.com>
4259 * target-delegates.c: Rebuild.
4260 * target.c (update_current_target): Don't inherit or default
4261 to_trace_set_readonly_regions.
4262 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4263 Use TARGET_DEFAULT_NORETURN.
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4267 * target-delegates.c: Rebuild.
4268 * target.c (update_current_target): Don't inherit or default
4269 to_disable_tracepoint.
4270 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4271 TARGET_DEFAULT_NORETURN.
4273 2014-02-19 Tom Tromey <tromey@redhat.com>
4275 * target-delegates.c: Rebuild.
4276 * target.c (update_current_target): Don't inherit or default
4277 to_enable_tracepoint.
4278 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4279 TARGET_DEFAULT_NORETURN.
4281 2014-02-19 Tom Tromey <tromey@redhat.com>
4283 * target-delegates.c: Rebuild.
4284 * target.c (update_current_target): Don't inherit or default
4285 to_download_trace_state_variable.
4286 * target.h (struct target_ops) <to_download_trace_state_variable>:
4287 Use TARGET_DEFAULT_NORETURN.
4289 2014-02-19 Tom Tromey <tromey@redhat.com>
4291 * target-delegates.c: Rebuild.
4292 * target.c (update_current_target): Don't inherit or default
4293 to_can_download_tracepoint.
4294 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4295 TARGET_DEFAULT_RETURN.
4297 2014-02-19 Tom Tromey <tromey@redhat.com>
4299 * target-delegates.c: Rebuild.
4300 * target.c (update_current_target): Don't inherit or default
4301 to_download_tracepoint.
4302 * target.h (struct target_ops) <to_download_tracepoint>: Use
4303 TARGET_DEFAULT_NORETURN.
4305 2014-02-19 Tom Tromey <tromey@redhat.com>
4307 * target-delegates.c: Rebuild.
4308 * target.c (update_current_target): Don't inherit or default
4310 * target.h (struct target_ops) <to_trace_init>: Use
4311 TARGET_DEFAULT_RETURN.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * target-delegates.c: Rebuild.
4316 * target.c (update_current_target): Don't inherit or default
4317 to_supports_string_tracing.
4318 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4319 TARGET_DEFAULT_RETURN.
4321 2014-02-19 Tom Tromey <tromey@redhat.com>
4323 * target-delegates.c: Rebuild.
4324 * target.c (update_current_target): Don't inherit or default
4325 to_supports_enable_disable_tracepoint.
4326 * target.h (struct target_ops)
4327 <to_supports_enable_disable_tracepoint>: Use
4328 TARGET_DEFAULT_RETURN.
4330 2014-02-19 Tom Tromey <tromey@redhat.com>
4332 * target-delegates.c: Rebuild.
4333 * target.c (update_current_target): Don't inherit or default
4334 to_supports_multi_process.
4335 * target.h (struct target_ops) <to_supports_multi_process>: Use
4336 TARGET_DEFAULT_RETURN.
4338 2014-02-19 Tom Tromey <tromey@redhat.com>
4340 * target-delegates.c: Rebuild.
4341 * target.c (update_current_target): Don't inherit or default
4342 to_get_ada_task_ptid.
4343 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4344 TARGET_DEFAULT_FUNC.
4346 2014-02-19 Tom Tromey <tromey@redhat.com>
4348 * target-delegates.c: Rebuild.
4349 * target.c (update_current_target): Don't inherit or default
4350 to_thread_architecture.
4351 * target.h (struct target_ops) <to_thread_architecture>: Use
4352 TARGET_DEFAULT_FUNC.
4354 2014-02-19 Tom Tromey <tromey@redhat.com>
4356 * target-delegates.c: Rebuild.
4357 * target.c (update_current_target): Don't inherit or default
4358 to_execution_direction.
4359 * target.h (struct target_ops) <to_execution_direction>: Use
4360 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
4367 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4368 TARGET_DEFAULT_RETURN.
4369 (target_can_execute_reverse): Unconditionally delegate.
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
4376 (dummy_goto_bookmark): Remove.
4377 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4378 * target.h (struct target_ops) <to_goto_bookmark>: Use
4379 TARGET_DEFAULT_NORETURN.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target-delegates.c: Rebuild.
4384 * target.c (update_current_target): Don't inherit or default
4386 (dummy_get_bookmark): Remove.
4387 (init_dummy_target): Don't inherit or default to_get_bookmark.
4388 * target.h (struct target_ops) <to_get_bookmark>: Use
4389 TARGET_DEFAULT_NORETURN
4391 2014-02-19 Tom Tromey <tromey@redhat.com>
4393 * target-delegates.c: Rebuild.
4394 * target.c (update_current_target): Don't inherit or default
4395 to_make_corefile_notes.
4396 (init_dummy_target): Don't initialize to_make_corefile_notes.
4397 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4398 TARGET_DEFAULT_FUNC.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target-delegates.c: Rebuild.
4403 * target.c (update_current_target): Don't inherit or default
4404 to_find_memory_regions.
4405 (init_dummy_target): Don't initialize to_find_memory_regions.
4406 * target.h (struct target_ops) <to_find_memory_regions>: Use
4407 TARGET_DEFAULT_FUNC.
4409 2014-02-19 Tom Tromey <tromey@redhat.com>
4411 * target-delegates.c: Rebuild.
4412 * target.c (update_current_target): Don't inherit or default
4414 * target.h (struct target_ops) <to_log_command>: Use
4415 TARGET_DEFAULT_IGNORE.
4416 (target_log_command): Unconditionally delegate.
4418 2014-02-19 Tom Tromey <tromey@redhat.com>
4420 * target-delegates.c: Rebuild.
4421 * target.c (update_current_target): Don't inherit or default
4422 to_pid_to_exec_file.
4423 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4424 TARGET_DEFAULT_RETURN.
4426 2014-02-19 Tom Tromey <tromey@redhat.com>
4428 * target-delegates.c: Rebuild.
4429 * target.c (update_current_target): Don't inherit or default
4431 (target_thread_name): Unconditionally delegate.
4432 * target.h (struct target_ops) <to_thread_name>: Use
4433 TARGET_DEFAULT_RETURN.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (update_current_target): Don't inherit or default
4439 to_extra_thread_info.
4440 * target.h (struct target_ops) <to_extra_thread_info>: Use
4441 TARGET_DEFAULT_RETURN.
4443 2014-02-19 Tom Tromey <tromey@redhat.com>
4445 * target-delegates.c: Rebuild.
4446 * target.c (update_current_target): Don't inherit or default
4448 * target.h (struct target_ops) <to_has_exited>: Use
4449 TARGET_DEFAULT_RETURN..
4451 2014-02-19 Tom Tromey <tromey@redhat.com>
4453 * target-delegates.c: Rebuild.
4454 * target.c (update_current_target): Don't inherit or default
4455 to_set_syscall_catchpoint.
4456 (return_one): Remove.
4457 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4458 TARGET_DEFAULT_RETURN.
4460 2014-02-19 Tom Tromey <tromey@redhat.com>
4462 * target-delegates.c: Rebuild.
4463 * target.c (update_current_target): Don't inherit or default
4464 to_insert_exec_catchpoint.
4465 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4466 TARGET_DEFAULT_RETURN.
4468 2014-01-08 Tom Tromey <tromey@redhat.com>
4470 * target-delegates.c: Rebuild.
4471 * target.c (update_current_target): Don't inherit or default
4472 to_insert_exec_catchpoint.
4473 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4474 TARGET_DEFAULT_RETURN.
4476 2014-02-19 Tom Tromey <tromey@redhat.com>
4478 * target-delegates.c: Rebuild.
4479 * target.c (update_current_target): Don't inherit or default
4480 to_remove_vfork_catchpoint.
4481 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4482 TARGET_DEFAULT_RETURN.
4484 2014-02-19 Tom Tromey <tromey@redhat.com>
4486 * target-delegates.c: Rebuild.
4487 * target.c (update_current_target): Don't inherit or default
4488 to_insert_vfork_catchpoint.
4489 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4490 TARGET_DEFAULT_RETURN.
4492 2014-02-19 Tom Tromey <tromey@redhat.com>
4494 * target-delegates.c: Rebuild.
4495 * target.c (update_current_target): Don't inherit or default
4496 to_remove_fork_catchpoint.
4497 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4498 TARGET_DEFAULT_RETURN.
4500 2014-02-19 Tom Tromey <tromey@redhat.com>
4502 * target-delegates.c: Rebuild.
4503 * target.c (update_current_target): Don't inherit or default
4504 to_insert_fork_catchpoint.
4505 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4506 TARGET_DEFAULT_RETURN.
4508 2014-02-19 Tom Tromey <tromey@redhat.com>
4510 * target-delegates.c: Rebuild.
4511 * target.c (update_current_target): Don't inherit or default
4512 to_post_startup_inferior.
4513 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4514 TARGET_DEFAULT_IGNORE.
4516 2014-02-19 Tom Tromey <tromey@redhat.com>
4518 * target-delegates.c: Rebuild.
4519 * target.c (update_current_target): Don't inherit or default
4521 * target.h (struct target_ops) <to_load>: Use
4522 TARGET_DEFAULT_NORETURN.
4524 2014-02-19 Tom Tromey <tromey@redhat.com>
4526 * target-delegates.c: Rebuild.
4527 * target.c (update_current_target): Don't inherit or default
4529 * target.h (struct target_ops) <to_terminal_info>: Use
4530 TARGET_DEFAULT_FUNC.
4532 2014-02-19 Tom Tromey <tromey@redhat.com>
4534 * target-delegates.c: Rebuild.
4535 * target.c (update_current_target): Don't inherit or default
4536 to_terminal_save_ours.
4537 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4538 TARGET_DEFAULT_IGNORE.
4540 2014-02-19 Tom Tromey <tromey@redhat.com>
4542 * target-delegates.c: Rebuild.
4543 * target.c (update_current_target): Don't inherit or default
4545 * target.h (struct target_ops) <to_terminal_ours>: Use
4546 TARGET_DEFAULT_IGNORE.
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target-delegates.c: Rebuild.
4551 * target.c (update_current_target): Don't inherit or default
4552 to_terminal_ours_for_output.
4553 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4554 TARGET_DEFAULT_IGNORE.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target-delegates.c: Rebuild.
4559 * target.c (update_current_target): Don't inherit or default
4560 to_terminal_inferior.
4561 * target.h (struct target_ops) <to_terminal_inferior>: Use
4562 TARGET_DEFAULT_IGNORE.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target-delegates.c: Rebuild.
4567 * target.c (update_current_target): Don't inherit or default
4569 * target.h (struct target_ops) <to_terminal_init>: Use
4570 TARGET_DEFAULT_IGNORE.
4572 2014-02-19 Tom Tromey <tromey@redhat.com>
4574 * target-delegates.c: Rebuild.
4575 * target.c (update_current_target): Don't inherit or default
4576 to_can_accel_watchpoint_condition.
4577 * target.h (struct target_ops)
4578 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4580 2014-02-19 Tom Tromey <tromey@redhat.com>
4582 * target-delegates.c: Rebuild.
4583 * target.c (update_current_target): Don't inherit or default
4584 to_region_ok_for_hw_watchpoint.
4585 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4586 Use TARGET_DEFAULT_FUNC.
4588 2014-02-19 Tom Tromey <tromey@redhat.com>
4590 * target-delegates.c: Rebuild.
4591 * target.c (update_current_target): Don't inherit or default
4592 to_watchpoint_addr_within_range.
4593 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4594 Use TARGET_DEFAULT_FUNC.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target-delegates.c: Rebuild.
4599 * target.c (update_current_target): Don't inherit or default
4600 to_remove_watchpoint.
4601 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4602 TARGET_DEFAULT_NORETURN.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target-delegates.c: Rebuild.
4607 * target.c (update_current_target): Don't inherit or default
4608 to_insert_watchpoint.
4609 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4610 TARGET_DEFAULT_RETURN.
4612 2014-02-19 Tom Tromey <tromey@redhat.com>
4614 * target-delegates.c: Rebuild.
4615 * target.c (update_current_target): Don't inherit or default
4616 to_remove_hw_breakpoint.
4617 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4618 TARGET_DEFAULT_RETURN.
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target-delegates.c: Rebuild.
4623 * target.c (update_current_target): Don't inherit or default
4624 to_insert_hw_breakpoint.
4625 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4626 TARGET_DEFAULT_RETURN.
4628 2014-02-19 Tom Tromey <tromey@redhat.com>
4630 * target-delegates.c: Rebuild.
4631 * target.c (update_current_target): Don't inherit or default
4632 to_can_use_hw_breakpoint.
4633 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4634 TARGET_DEFAULT_RETURN.
4636 2014-02-19 Tom Tromey <tromey@redhat.com>
4638 * target-delegates.c: Rebuild.
4639 * target.c (update_current_target): Don't inherit or default
4641 * target.h (struct target_ops) <to_files_info>: Use
4642 TARGET_DEFAULT_IGNORE.
4644 2014-02-19 Tom Tromey <tromey@redhat.com>
4646 * target-delegates.c: Rebuild.
4647 * target.c (update_current_target): Don't inherit or default
4649 * target.h (struct target_ops) <to_store>: Use
4650 TARGET_DEFAULT_NORETURN.
4652 2014-02-19 Tom Tromey <tromey@redhat.com>
4654 * target-delegates.c: Rebuild.
4655 * target.c (update_current_target): Don't inherit or default
4657 * target.h (struct target_ops) <to_post_attach>: Use
4658 TARGET_DEFAULT_IGNORE.
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target-delegates.c: Rebuild.
4663 * target.c (update_current_target): Don't inherit or default
4665 (default_rcmd): New function.
4666 (do_monitor_command): Unconditionally delegate.
4667 * target.h (struct target_ops) <to_rmcd>: Use
4668 TARGET_DEFAULT_FUNC.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target-delegates.c: Rebuild.
4673 * target.c (init_dummy_target): Don't initialize to_attach.
4674 (target_attach): Unconditionally delegate.
4675 * target.h (struct target_ops) <to_attach>: Use
4676 TARGET_DEFAULT_FUNC.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (target_detach): Unconditionally delegate.
4682 (init_dummy_target): Don't initialize to_detach.
4683 * target.h (struct target_ops) <to_detach>: Use
4684 TARGET_DEFAULT_IGNORE.
4686 2014-02-19 Tom Tromey <tromey@redhat.com>
4688 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4690 (target_augmented_libraries_svr4_read): Add argument.
4691 * target.c (update_current_target): Update.
4692 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4695 2014-02-19 Tom Tromey <tromey@redhat.com>
4697 * target.h (struct target_ops) <to_call_history_range>: Add
4699 * target.c (target_call_history_range): Add argument.
4700 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4702 (record_btrace_call_history_from): Update.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target.h (struct target_ops) <to_call_history_from>: Add
4708 * target.c (target_call_history_from): Add argument.
4709 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4712 2014-02-19 Tom Tromey <tromey@redhat.com>
4714 * target.h (struct target_ops) <to_call_history>: Add argument.
4715 * target.c (target_call_history): Add argument.
4716 * record-btrace.c (record_btrace_call_history): Add 'self'
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target.h (struct target_ops) <to_insn_history_range>: Add
4723 * target.c (target_insn_history_range): Add argument.
4724 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4726 (record_btrace_insn_history_from): Update.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * target.h (struct target_ops) <to_insn_history_from>: Add
4732 * target.c (target_insn_history_from): Add argument.
4733 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4736 2014-02-19 Tom Tromey <tromey@redhat.com>
4738 * target.h (struct target_ops) <to_insn_history>: Add argument.
4739 * target.c (target_insn_history): Add argument.
4740 * record-btrace.c (record_btrace_insn_history): Add 'self'
4743 2014-02-19 Tom Tromey <tromey@redhat.com>
4745 * target.h (struct target_ops) <to_goto_record>: Add argument.
4746 * target.c (target_goto_record): Add argument.
4747 * record-full.c (record_full_goto): Add 'self' argument.
4748 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4750 2014-02-19 Tom Tromey <tromey@redhat.com>
4752 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4753 * target.c (target_goto_record_end): Add argument.
4754 * record-full.c (record_full_goto_end): Add 'self' argument.
4755 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4757 2014-02-19 Tom Tromey <tromey@redhat.com>
4759 * target.h (struct target_ops) <to_goto_record_begin>: Add
4761 * target.c (target_goto_record_begin): Add argument.
4762 * record-full.c (record_full_goto_begin): Add 'self' argument.
4763 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4766 2014-02-19 Tom Tromey <tromey@redhat.com>
4768 * target.h (struct target_ops) <to_record_is_replaying>: Add
4770 * target.c (target_record_is_replaying): Add argument.
4771 * record-full.c (record_full_is_replaying): Add 'self' argument.
4772 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4774 (record_btrace_xfer_partial, record_btrace_store_registers)
4775 (record_btrace_prepare_to_store, record_btrace_resume)
4776 (record_btrace_wait, record_btrace_decr_pc_after_break)
4777 (record_btrace_find_new_threads, record_btrace_thread_alive):
4780 2014-02-19 Tom Tromey <tromey@redhat.com>
4782 * target.h (struct target_ops) <to_delete_record>: Add argument.
4783 * target.c (target_delete_record): Add argument.
4784 * record-full.c (record_full_delete): Add 'self' argument.
4786 2014-02-19 Tom Tromey <tromey@redhat.com>
4788 * target.h (struct target_ops) <to_save_record>: Add argument.
4789 * target.c (target_save_record): Add argument.
4790 * record-full.c (record_full_save): Add 'self' argument.
4791 (record_full_save): Add 'self' argument.
4793 2014-02-19 Tom Tromey <tromey@redhat.com>
4795 * target.h (struct target_ops) <to_info_record>: Add argument.
4796 * target.c (target_info_record): Add argument.
4797 * record.c (info_record_command): Add argument.
4798 * record-full.c (record_full_info): Add 'self' argument.
4799 * record-btrace.c (record_btrace_info): Add 'self' argument.
4801 2014-02-19 Tom Tromey <tromey@redhat.com>
4803 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4804 * target.c (target_stop_recording): Add argument.
4805 * record.c (record_stop): Add argument.
4806 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4809 2014-02-19 Tom Tromey <tromey@redhat.com>
4811 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4812 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4813 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4815 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4816 (_initialize_amd64_linux_nat): Use it.
4817 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4818 (_initialize_i386_linux_nat): Use it.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4823 * target.c (target_teardown_btrace): Add argument.
4824 * remote.c (remote_teardown_btrace): Add 'self' argument.
4825 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4827 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4830 2014-02-19 Tom Tromey <tromey@redhat.com>
4832 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4833 * target.c (target_disable_btrace): Add argument.
4834 * remote.c (remote_disable_btrace): Add 'self' argument.
4835 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4837 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4843 * target.c (target_enable_btrace): Add argument.
4844 * remote.c (remote_enable_btrace): Add 'self' argument.
4845 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4847 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4850 2014-02-19 Tom Tromey <tromey@redhat.com>
4852 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4853 (target_can_use_agent): Add argument.
4854 * target.c (update_current_target): Update.
4855 * remote.c (remote_can_use_agent): Add 'self' argument.
4856 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4858 2014-02-19 Tom Tromey <tromey@redhat.com>
4860 * target.h (struct target_ops) <to_use_agent>: Add argument.
4861 (target_use_agent): Add argument.
4862 * target.c (update_current_target): Update.
4863 * remote.c (remote_use_agent): Add 'self' argument.
4864 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4866 2014-02-19 Tom Tromey <tromey@redhat.com>
4868 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4869 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4870 (target_traceframe_info): Add argument.
4871 * target.c (update_current_target): Update.
4872 * remote.c (remote_traceframe_info): Add 'self' argument.
4873 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target.h (target_static_tracepoint_markers_by_strid): Add
4879 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4881 * target.c (update_current_target): Update.
4882 * remote.c (struct target_ops)
4883 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4884 * linux-nat.c (struct target_ops)
4885 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4887 2014-02-19 Tom Tromey <tromey@redhat.com>
4889 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4891 (target_static_tracepoint_marker_at): Add argument.
4892 * target.c (update_current_target): Update.
4893 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4896 2014-02-19 Tom Tromey <tromey@redhat.com>
4898 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4899 (target_set_permissions): Add argument.
4900 * target.c (update_current_target): Update.
4901 * remote.c (remote_set_permissions): Add 'self' argument.
4902 (remote_start_remote): Update.
4904 2014-02-19 Tom Tromey <tromey@redhat.com>
4906 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4907 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4908 (target_get_tib_address): Add argument.
4909 * target.c (update_current_target): Update.
4910 * remote.c (remote_get_tib_address): Add 'self' argument.
4912 2014-02-19 Tom Tromey <tromey@redhat.com>
4914 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4915 (target_set_trace_notes): Add argument.
4916 * target.c (update_current_target): Update.
4917 * remote.c (remote_set_trace_notes): Add 'self' argument.
4919 2014-02-19 Tom Tromey <tromey@redhat.com>
4921 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4923 (target_set_trace_buffer_size): Add argument.
4924 * target.c (update_current_target): Update.
4925 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4931 (target_set_circular_trace_buffer): Add argument.
4932 * target.c (update_current_target): Update.
4933 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4936 2014-02-19 Tom Tromey <tromey@redhat.com>
4938 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4940 (target_set_disconnected_tracing): Add argument.
4941 * target.c (update_current_target): Update.
4942 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target.h (struct target_ops)
4947 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4948 (target_get_min_fast_tracepoint_insn_len): Add argument.
4949 * target.c (update_current_target): Update.
4950 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4957 (target_get_raw_trace_data): Add argument.
4958 * target.c (update_current_target): Update.
4959 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4965 (target_upload_trace_state_variables): Add argument.
4966 * target.c (update_current_target): Update.
4967 * remote.c (remote_upload_trace_state_variables): Add 'self'
4969 (remote_start_remote): Update.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4975 (target_upload_tracepoints): Add argument.
4976 * target.c (update_current_target): Update.
4977 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4978 (remote_start_remote): Update.
4980 2014-02-19 Tom Tromey <tromey@redhat.com>
4982 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4983 (target_save_trace_data): Add argument.
4984 * target.c (update_current_target): Update.
4985 * remote.c (remote_save_trace_data): Add 'self' argument.
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4991 * target.h (struct target_ops)
4992 <to_get_trace_state_variable_value>: Add argument.
4993 (target_get_trace_state_variable_value): Add argument.
4994 * target.c (update_current_target): Update.
4995 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4997 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5002 * target.h (struct target_ops) <to_trace_find>: Add argument.
5003 (target_trace_find): Add argument.
5004 * target.c (update_current_target): Update.
5005 * remote.c (remote_trace_find): Add 'self' argument.
5006 * ctf.c (ctf_trace_find): Add 'self' argument.
5008 2014-02-19 Tom Tromey <tromey@redhat.com>
5010 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5011 (target_trace_stop): Add argument.
5012 * target.c (update_current_target): Update.
5013 * remote.c (remote_trace_stop): Add 'self' argument.
5015 2014-02-19 Tom Tromey <tromey@redhat.com>
5017 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5018 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5020 (target_get_tracepoint_status): Add argument.
5021 * target.c (update_current_target): Update.
5022 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5027 * target.h (struct target_ops) <to_get_trace_status>: Add
5029 (target_get_trace_status): Add argument.
5030 * target.c (update_current_target): Update.
5031 * remote.c (remote_get_trace_status): Add 'self' argument.
5032 (remote_start_remote, remote_can_download_tracepoint): Update.
5033 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5035 2014-02-19 Tom Tromey <tromey@redhat.com>
5037 * target.h (struct target_ops) <to_trace_start>: Add argument.
5038 (target_trace_start): Add argument.
5039 * target.c (update_current_target): Update.
5040 * remote.c (remote_trace_start): Add 'self' argument.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5046 (target_trace_set_readonly_regions): Add argument.
5047 * target.c (update_current_target): Update.
5048 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5051 2014-02-19 Tom Tromey <tromey@redhat.com>
5053 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5055 (target_disable_tracepoint): Add argument.
5056 * target.c (update_current_target): Update.
5057 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5063 (target_enable_tracepoint): Add argument.
5064 * target.c (update_current_target): Update.
5065 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5067 2014-02-19 Tom Tromey <tromey@redhat.com>
5069 * target.h (struct target_ops) <to_download_trace_state_variable>:
5071 (target_download_trace_state_variable): Add argument.
5072 * target.c (update_current_target): Update.
5073 * remote.c (remote_download_trace_state_variable): Add 'self'
5076 2014-02-19 Tom Tromey <tromey@redhat.com>
5078 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5080 (target_can_download_tracepoint): Add argument.
5081 * target.c (update_current_target): Update.
5082 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5084 2014-02-19 Tom Tromey <tromey@redhat.com>
5086 * target.h (struct target_ops) <to_download_tracepoint>: Add
5088 (target_download_tracepoint): Add argument.
5089 * target.c (update_current_target): Update.
5090 * remote.c (remote_download_tracepoint): Add 'self' argument.
5092 2014-02-19 Tom Tromey <tromey@redhat.com>
5094 * target.h (struct target_ops) <to_trace_init>: Add argument.
5095 (target_trace_init): Add argument.
5096 * target.c (update_current_target): Update.
5097 * remote.c (remote_trace_init): Add 'self' argument.
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5102 * target.c (target_fileio_readlink): Add argument.
5103 * remote.c (remote_hostio_readlink): Add 'self' argument.
5104 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5106 2014-02-19 Tom Tromey <tromey@redhat.com>
5108 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5109 * target.c (target_fileio_unlink): Add argument.
5110 * remote.c (remote_hostio_unlink): Add 'self' argument.
5111 (remote_file_delete): Update.
5112 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5114 2014-02-19 Tom Tromey <tromey@redhat.com>
5116 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5117 * target.c (target_fileio_close): Add argument.
5118 * remote.c (remote_hostio_close): Add 'self' argument.
5119 (remote_hostio_close_cleanup): Update.
5120 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5122 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5124 2014-02-19 Tom Tromey <tromey@redhat.com>
5126 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5127 * target.c (target_fileio_pread): Add argument.
5128 * remote.c (remote_hostio_pread): Add 'self' argument.
5129 (remote_bfd_iovec_pread, remote_file_get): Update.
5130 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5132 2014-02-19 Tom Tromey <tromey@redhat.com>
5134 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5135 * target.c (target_fileio_pwrite): Add argument.
5136 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5137 (remote_file_put): Update.
5138 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5140 2014-02-19 Tom Tromey <tromey@redhat.com>
5142 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5143 * target.c (target_fileio_open): Add argument.
5144 * remote.c (remote_hostio_open): Add 'self' argument.
5145 (remote_bfd_iovec_open): Add 'self' argument.
5146 (remote_file_put): Add 'self' argument.
5147 (remote_file_get): Add 'self' argument.
5148 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5152 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5154 (target_can_run_breakpoint_commands): Add argument.
5155 * target.c (update_current_target): Update.
5156 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5158 (remote_insert_breakpoint): Add 'self' argument.
5159 (remote_insert_hw_breakpoint): Add 'self' argument.
5160 (remote_can_run_breakpoint_commands): Add 'self' argument.
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * target.h (struct target_ops)
5165 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5166 (target_supports_evaluation_of_breakpoint_conditions): Add
5168 * target.c (update_current_target): Update.
5169 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5171 (remote_insert_breakpoint): Add 'self' argument.
5172 (remote_insert_hw_breakpoint): Add 'self' argument.
5173 (remote_supports_cond_breakpoints): Add 'self' argument.
5175 2014-02-19 Tom Tromey <tromey@redhat.com>
5177 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5179 (target_supports_string_tracing): Add argument.
5180 * target.c (update_current_target): Update.
5181 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5183 2014-02-19 Tom Tromey <tromey@redhat.com>
5185 * target.h (struct target_ops)
5186 <to_supports_disable_randomization>: Add argument.
5187 * target.c (find_default_supports_disable_randomization): Add
5189 (target_supports_disable_randomization): Add argument.
5190 (find_default_supports_disable_randomization): Add 'self'
5192 * remote.c (extended_remote_supports_disable_randomization): Add
5194 (remote_supports_disable_randomization): Add 'self' argument.
5195 (extended_remote_create_inferior): Update.
5196 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5201 * target.h (struct target_ops)
5202 <to_supports_enable_disable_tracepoint>: Add argument.
5203 (target_supports_enable_disable_tracepoint): Add argument.
5204 * target.c (update_current_target): Update.
5205 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5208 2014-02-19 Tom Tromey <tromey@redhat.com>
5210 * target.h (struct target_ops) <to_supports_multi_process>: Add
5212 (target_supports_multi_process): Add argument.
5213 * target.c (update_current_target): Update.
5214 * remote.c (remote_supports_multi_process): Add 'self' argument.
5215 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5217 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5220 2014-02-19 Tom Tromey <tromey@redhat.com>
5222 * target.h (struct target_ops) <to_execution_direction>: Add
5224 (target_execution_direction): Add argument.
5225 * target.c (default_execution_direction): Add 'self' argument.
5226 * record-full.c (record_full_execution_direction): Add 'self'
5229 2014-02-19 Tom Tromey <tromey@redhat.com>
5231 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5233 (target_can_execute_reverse): Add argument.
5234 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5235 * record-full.c (record_full_can_execute_reverse): Add 'self'
5237 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5240 2014-02-19 Tom Tromey <tromey@redhat.com>
5242 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5243 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5245 (target_get_ada_task_ptid): Add argument.
5246 * target.c (update_current_target): Update.
5247 (default_get_ada_task_ptid): Add 'self' argument.
5248 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5249 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5250 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5252 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5254 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5256 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5258 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5259 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5265 (target_goto_bookmark): Add argument.
5266 * target.c (dummy_goto_bookmark): Add 'self' argument.
5267 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5269 2014-02-19 Tom Tromey <tromey@redhat.com>
5271 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5272 (target_get_bookmark): Add argument.
5273 * target.c (dummy_get_bookmark): Add 'self' argument.
5274 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5280 (target_make_corefile_notes): Add argument.
5281 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5282 * procfs.c (procfs_make_note_section): Add 'self' argument.
5283 (procfs_make_note_section): Add 'self' argument.
5284 (procfs_make_note_section): Add 'self' argument.
5285 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5287 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5288 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5289 * exec.c (exec_make_note_section): Add 'self' argument.
5290 (exec_make_note_section): Add 'self' argument.
5292 2014-02-19 Tom Tromey <tromey@redhat.com>
5294 * target.h (struct target_ops) <to_find_memory_regions>: Add
5296 (target_find_memory_regions): Add argument.
5297 * target.c (dummy_find_memory_regions): Add 'self' argument.
5298 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5299 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5300 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5301 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5302 * exec. (exec_do_find_memory_regions): New global.
5303 (exec_set_find_memory_regions): Rewrite.
5304 (exec_find_memory_regions): New function.
5305 (init_exec_ops): Use exec_find_memory_regions.
5307 2014-02-19 Tom Tromey <tromey@redhat.com>
5309 * target.h (struct target_ops) <to_supports_non_stop>: Add
5311 * target.c (find_default_supports_non_stop): Add argument.
5312 (target_supports_non_stop): Add argument.
5313 (find_default_supports_non_stop): Add 'self' argument.
5314 * remote.c (remote_supports_non_stop): Add 'self' argument.
5315 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5317 2014-02-19 Tom Tromey <tromey@redhat.com>
5319 * target.h (struct target_ops) <to_log_command>: Add argument.
5320 (target_log_command): Add argument.
5321 * serial.h (serial_log_command): Add 'self' argument.
5322 * serial.c (serial_log_command): Add 'self' argument.
5324 2014-02-19 Tom Tromey <tromey@redhat.com>
5326 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5327 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5329 (target_pid_to_exec_file): Add argument.
5330 * target.c (debug_to_pid_to_exec_file): Add argument.
5331 (update_current_target): Update.
5332 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5333 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5334 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5335 (linux_handle_extended_wait): Update.
5336 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5337 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5338 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5339 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5341 2014-02-19 Tom Tromey <tromey@redhat.com>
5343 * target.h (struct target_ops) <to_rcmd>: Add argument.
5344 (target_rcmd): Add argument.
5345 * target.c (debug_to_rcmd): Add argument.
5346 (update_current_target, do_monitor_command): Update.
5347 * remote.c (remote_rcmd): Add 'self' argument.
5348 * monitor.c (monitor_rcmd): Add 'self' argument.
5350 2014-02-19 Tom Tromey <tromey@redhat.com>
5352 * windows-nat.c (windows_stop): Add 'self' argument.
5353 * target.h (struct target_ops) <to_stop>: Add argument.
5354 * target.c (target_stop): Add argument.
5355 (debug_to_stop): Add argument.
5356 (update_current_target): Update.
5357 * remote.c (remote_stop): Add 'self' argument.
5358 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5359 (gdbsim_cntrl_c): Update.
5360 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5361 * procfs.c (procfs_stop): Add 'self' argument.
5362 * nto-procfs.c (procfs_stop): Add 'self' argument.
5363 * monitor.c (monitor_stop): Add 'self' argument.
5364 (monitor_open): Update.
5365 * linux-nat.c (linux_nat_stop): Add argument.
5366 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5367 * gnu-nat.c (gnu_stop): Add 'self' argument.
5368 * darwin-nat.c (darwin_stop): Add 'self' argument.
5370 2014-02-19 Tom Tromey <tromey@redhat.com>
5372 * target.h (struct target_ops) <to_thread_name>: Add argument.
5373 * target.c (target_thread_name): Add argument.
5374 (update_current_target): Update.
5375 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5377 2014-02-19 Tom Tromey <tromey@redhat.com>
5379 * target.h (struct target_ops) <to_extra_thread_info>: Add
5381 (target_extra_thread_info): Add argument.
5382 * target.c (update_current_target): Update.
5383 * remote.c (remote_threads_extra_info): Add 'self' argument.
5384 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5386 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5387 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5388 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5390 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5392 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5394 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target.h (struct target_ops) <to_program_signals>: Add argument.
5400 * target.c (target_program_signals): Add argument.
5401 * remote.c (remote_program_signals): Add 'self' argument.
5403 2014-02-19 Tom Tromey <tromey@redhat.com>
5405 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5406 * target.c (target_pass_signals): Add argument.
5407 * remote.c (remote_pass_signals): Add 'self' argument.
5408 (remote_start_remote): Update.
5409 * procfs.c (procfs_pass_signals): Add 'self' argument.
5410 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5411 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5412 (linux_nat_create_inferior, linux_nat_attach): Update.
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * windows-nat.c (windows_can_run): Add 'self' argument.
5417 * target.h (struct target_ops) <to_can_run>: Add argument.
5418 (target_can_run): Add argument.
5419 * target.c (debug_to_can_run): Add argument.
5420 (update_current_target): Update.
5421 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5422 * inf-child.c (inf_child_can_run): Add 'self' argument.
5423 * go32-nat.c (go32_can_run): Add 'self' argument.
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target.h (struct target_ops) <to_has_exited>: Add argument.
5428 (target_has_exited): Add argument.
5429 * target.c (debug_to_has_exited): Add argument.
5430 (update_current_target): Update.
5432 2014-02-19 Tom Tromey <tromey@redhat.com>
5434 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5436 (target_set_syscall_catchpoint): Add argument.
5437 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5439 * target.c (update_current_target): Update.
5441 2014-02-19 Tom Tromey <tromey@redhat.com>
5443 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5445 (target_remove_exec_catchpoint): Add argument.
5446 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5447 (update_current_target): Update.
5448 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5451 2014-02-19 Tom Tromey <tromey@redhat.com>
5453 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5455 (target_insert_exec_catchpoint): Add argument.
5456 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5457 (update_current_target): Update.
5458 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5465 (target_remove_vfork_catchpoint): Add argument.
5466 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5467 (update_current_target): Update.
5468 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5471 2014-02-19 Tom Tromey <tromey@redhat.com>
5473 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5475 (target_insert_vfork_catchpoint): Add argument.
5476 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5477 (update_current_target): Update.
5478 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5485 (target_remove_fork_catchpoint): Add argument.
5486 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5487 (update_current_target): Update.
5488 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5491 2014-02-19 Tom Tromey <tromey@redhat.com>
5493 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5495 (target_insert_fork_catchpoint): Add argument.
5496 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5497 (update_current_target): Update.
5498 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5501 2014-02-19 Tom Tromey <tromey@redhat.com>
5503 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5505 (target_post_startup_inferior): Add argument.
5506 * target.c (debug_to_post_startup_inferior): Add argument.
5507 (update_current_target): Update.
5508 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5510 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5512 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5514 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5516 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5518 (super_post_startup_inferior): Likewise.
5519 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5521 (super_post_startup_inferior): Likewise.
5522 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5523 Add 'self' argument.
5524 (super_post_startup_inferior): Likewise.
5526 2014-02-19 Tom Tromey <tromey@redhat.com>
5528 * target.h (struct target_ops) <to_load>: Add argument.
5529 * target.c (target_load): Add argument.
5530 (debug_to_load): Add argument.
5531 (update_current_target): Update.
5532 * remote.c (remote_load): Add 'self' argument.
5533 * remote-sim.c (gdbsim_load): Add 'self' argument.
5534 * remote-mips.c (mips_load): Add 'self' argument.
5535 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5536 * monitor.c (monitor_load): Add 'self' argument.
5537 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5542 (target_terminal_info): Add argument.
5543 * target.c (debug_to_terminal_info): Add argument.
5544 (default_terminal_info): Likewise.
5545 * inflow.c (child_terminal_info): Add 'self' argument.
5546 * inferior.h (child_terminal_info): Add 'self' argument.
5547 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5553 (target_terminal_save_ours): Add argument.
5554 * target.c (debug_to_terminal_save_ours): Add argument.
5555 (update_current_target): Update.
5556 * inflow.c (terminal_save_ours): Add 'self' argument.
5557 * inferior.h (terminal_save_ours): Add 'self' argument.
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5562 (target_terminal_ours): Add argument.
5563 * target.c (debug_to_terminal_ours): Add argument.
5564 (update_current_target): Update.
5565 * remote.c (remote_terminal_ours): Add 'self' argument.
5566 (remote_close): Update.
5567 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5568 * inflow.c (terminal_ours): Add 'self' argument.
5569 * inferior.h (terminal_ours): Add 'self' argument.
5570 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5572 2014-02-19 Pedro Alves <palves@redhat.com>
5573 Tom Tromey <tromey@redhat.com>
5575 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5577 (target_terminal_ours_for_output): Add argument.
5578 * target.c (debug_to_terminal_ours_for_output): Add argument.
5579 (update_current_target): Update.
5580 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5581 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5582 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5584 2014-02-19 Tom Tromey <tromey@redhat.com>
5586 * target.h (struct target_ops) <to_terminal_inferior>: Add
5588 * target.c (target_terminal_inferior): Add argument.
5589 (update_current_target): Update.
5590 * remote.c (remote_terminal_inferior): Add 'self' argument.
5591 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5592 * inflow.c (terminal_inferior): Add 'self' argument.
5593 * inferior.h (terminal_inferior): Add 'self' argument.
5594 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5595 (go32_terminal_inferior): Add 'self' argument.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5600 (target_terminal_init): Add argument.
5601 * target.c (debug_to_terminal_init): Add argument.
5602 (update_current_target): Update.
5603 * inflow.c (terminal_init_inferior): Add 'self' argument.
5604 * inferior.h (terminal_init_inferior): Add 'self' argument.
5605 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5606 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5608 2014-02-19 Tom Tromey <tromey@redhat.com>
5610 * target.h (struct target_ops)
5611 <to_can_accel_watchpoint_condition>: Add argument.
5612 (target_can_accel_watchpoint_condition): Add argument.
5613 * target.c (debug_to_can_accel_watchpoint_condition): Add
5615 (update_current_target): Update.
5616 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5619 2014-02-19 Tom Tromey <tromey@redhat.com>
5621 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5623 (target_region_ok_for_hw_watchpoint): Add argument.
5624 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5625 (default_region_ok_for_hw_watchpoint): Add argument.
5626 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5627 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5629 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5631 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5633 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5635 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5637 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5639 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5640 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5642 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5643 Add 'self' argument.
5645 2014-02-19 Tom Tromey <tromey@redhat.com>
5647 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5649 (target_insert_watchpoint): Add argument.
5650 * target.c (debug_to_insert_watchpoint): Add argument.
5651 (update_current_target): Update.
5652 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5653 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5654 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5655 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5656 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5657 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5659 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5660 (procfs_insert_hw_watchpoint): Add 'self' argument.
5661 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5663 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5665 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5667 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5668 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5670 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5677 (target_remove_watchpoint): Add argument.
5678 * target.c (debug_to_remove_watchpoint): Add argument.
5679 (update_current_target): Update.
5680 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5681 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5682 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5683 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5684 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5685 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5687 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5688 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5690 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5692 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5694 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5695 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5697 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5704 (target_remove_hw_breakpoint): Add argument.
5705 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5706 (update_current_target): Update.
5707 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5708 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5710 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5711 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5713 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5720 (target_insert_hw_breakpoint): Add argument.
5721 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5722 (update_current_target): Update.
5723 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5724 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5726 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5727 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5728 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5730 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5737 (target_can_use_hardware_watchpoint): Add argument.
5738 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5739 (update_current_target): Update.
5740 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5742 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5744 * remote.c (remote_check_watch_resources): Add 'self' argument.
5745 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5746 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5748 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5749 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5751 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5753 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5755 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5757 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5759 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5761 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5762 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5764 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * target.h (struct target_ops) <to_post_attach>: Add argument.
5770 (target_post_attach): Add argument.
5771 * target.c (debug_to_post_attach): Add argument.
5772 (update_current_target): Update.
5773 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5774 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5775 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5776 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5777 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5781 * windows-nat.c (windows_close): Add 'self' argument.
5782 * tracepoint.c (tfile_close): Add 'self' argument.
5783 * target.h (struct target_ops) <to_close>: Add argument.
5784 * target.c (target_close): Add argument.
5785 (update_current_target): Update.
5786 * remote.c (remote_close): Add 'self' argument.
5787 * remote-sim.c (gdbsim_close): Add 'self' argument.
5788 * remote-mips.c (mips_close): Add 'self' argument.
5789 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5790 * record-full.c (record_full_close): Add 'self' argument.
5791 * record-btrace.c (record_btrace_close): Add 'self' argument.
5792 * monitor.h (monitor_close): Add 'self' argument.
5793 * monitor.c (monitor_close): Add 'self' argument.
5794 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5795 * linux-nat.c (linux_nat_close): Add argument.
5796 * go32-nat.c (go32_close): Add 'self' argument.
5797 * exec.c (exec_close_1): Add 'self' argument.
5798 * ctf.c (ctf_close): Add 'self' argument.
5799 * corelow.c (core_close): Add 'self' argument.
5800 (core_close_cleanup): Update.
5801 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5802 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5804 2014-02-19 Tom Tromey <tromey@redhat.com>
5806 * remote.c (remote_load): New function.
5807 (init_remote_ops): Use it.
5809 2014-02-19 Tom Tromey <tromey@redhat.com>
5811 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5813 * common/linux-btrace.h (linux_supports_btrace): Update.
5814 * remote.c (remote_supports_btrace): Add "self" argument.
5815 * target-delegates.c: Rebuild.
5816 * target.c (target_supports_btrace): Remove.
5817 * target.h (struct target_ops) <to_supports_btrace>: Add
5818 target_ops argument.
5819 (target_supports_btrace): New define.
5821 2014-02-19 Tom Tromey <tromey@redhat.com>
5823 * record-full.c (record_full_beneath_to_resume_ops)
5824 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5825 (record_full_beneath_to_wait)
5826 (record_full_beneath_to_store_registers_ops)
5827 (record_full_beneath_to_store_registers)
5828 (record_full_beneath_to_xfer_partial_ops)
5829 (record_full_beneath_to_xfer_partial)
5830 (record_full_beneath_to_insert_breakpoint_ops)
5831 (record_full_beneath_to_insert_breakpoint)
5832 (record_full_beneath_to_remove_breakpoint_ops)
5833 (record_full_beneath_to_remove_breakpoint)
5834 (record_full_beneath_to_stopped_by_watchpoint)
5835 (record_full_beneath_to_stopped_data_address)
5836 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5837 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5838 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5839 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5840 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5841 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5842 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5843 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5844 (record_full_resume, record_full_wait_1)
5845 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5846 (record_full_store_registers, record_full_xfer_partial)
5847 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5848 (record_full_async, record_full_core_xfer_partial): Use target
5850 * target-delegates.c: Rebuild.
5851 * target.c (current_xfer_partial): Remove.
5852 (update_current_target): Do not INHERIT or de_fault
5853 to_insert_breakpoint, to_remove_breakpoint,
5854 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5855 to_is_async_p, to_async. Do not set to_xfer_partial field.
5856 (default_xfer_partial): Simplify.
5857 (current_xfer_partial): Remove.
5858 (target_wait, target_resume): Simplify.
5859 (find_default_can_async_p, find_default_is_async_p): Update.
5860 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5861 to_xfer_partial, to_stopped_by_watchpoint,
5862 to_stopped_data_address.
5863 (target_store_registers): Simplify.
5864 (forward_target_remove_breakpoint)
5865 (forward_target_insert_breakpoint): Remove.
5866 (target_remove_breakpoint, target_insert_breakpoint)
5867 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5868 * target.h (struct target_ops) <to_resume, to_wait,
5869 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5870 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5871 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5873 (forward_target_remove_breakpoint)
5874 (forward_target_insert_breakpoint): Remove.
5875 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5877 (record_btrace_insert_breakpoint): Delegate directly.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target-delegates.c: New file.
5883 * target.c: Include target-delegates.c.
5884 (init_dummy_target): Call install_dummy_methods.
5885 (complete_target_initialization): Call install_delegators.
5886 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5887 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5888 * make-target-delegates: New file.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * record.c (find_record_target): Use find_target_at.
5893 * target.c (find_target_at): New function.
5894 * target.h (find_target_at): Declare.
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5900 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5902 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5903 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5905 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5907 * linux-nat.c (save_sigtrap): Update.
5908 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5909 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5910 (linux_nat_close): Update.
5911 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5913 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5915 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5916 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5917 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5918 (tmp_to_async): Add 'ops' argument.
5919 (record_full_stopped_by_watchpoint, record_full_async)
5920 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5922 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5923 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5924 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5925 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5926 (remote_is_async_p, remote_async): Add 'ops' argument.
5927 (remote_stopped_data_address): Update.
5928 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5929 * target.c (update_current_target)
5930 (find_default_can_async_p, find_default_is_async_p): Update.
5931 (init_dummy_target): Update.
5932 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5933 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5934 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5935 (target_can_async_p, target_is_async_p, target_async)
5936 (target_stopped_by_watchpoint): Update.
5938 2014-02-19 Yao Qi <yao@codesourcery.com>
5941 * gdbarch.sh: Remove startup_gdbarch.
5942 * gdbarch.c: Regenerated.
5943 * gdbarch.h: Likewise.
5945 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5947 * rl78-tdep.c (rl78_g10_register_name): New function.
5948 (rl78_return_value): Add g10 support.
5949 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5952 2014-02-17 Doug Evans <xdje42@gmail.com>
5954 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5955 (SUBDIR_GUILE_SRCS): Ditto.
5956 (scm-gsmob.o): Ditto.
5958 2014-02-17 Yao Qi <yao@codesourcery.com>
5960 * gnu-nat.c (ILL_RPC): Declare defined function.
5962 2014-02-17 Yao Qi <yao@codesourcery.com>
5964 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5965 mach_msg_type_number_t.
5966 (gnu_write_inferior): Likewise.
5968 2014-02-17 Yao Qi <yao@codesourcery.com>
5970 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5972 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5973 (inf_validate_procs, inf_signal): Likewise.
5974 (S_exception_raise_request): Likewise.
5975 (do_mach_notify_dead_name): Likewise.
5976 (steal_exc_port): Likewise.
5977 (gnu_read_inferior): Change 'copy_count''s type to
5978 mach_msg_type_number_t.
5979 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5982 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5984 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5985 flag. Adjust all users; in particular...
5986 (gnu_wait): ..., don't decrement its value in here...
5987 (gnu_create_inferior): ..., and instead set the flag in here,
5988 around the startup_inferior call, and call that one with
5989 START_INFERIOR_TRAPS_EXPECTED.
5991 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5992 (ILL_RPC): ... new macro.
5993 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5994 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5995 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5996 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5997 functions with ILL_RPC macro.
5998 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5999 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6000 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6001 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6002 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6003 (S_proc_getlogin_reply, S_proc_getsid_reply)
6004 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6005 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6006 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6007 (S_proc_getnports_reply, S_proc_is_important_reply)
6008 (S_proc_get_code_reply): New stub functions, generated with
6011 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6012 collected the type check structures.
6014 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6016 2014-02-14 Doug Evans <dje@google.com>
6018 * target.c (target_write_partial): Fix result type.
6020 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6022 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6023 the proper offsets to access fpregset_t.
6025 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6027 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6028 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6029 * h8300-tdep.c (setmachinelist): Remove global.
6030 * hppa-tdep.c (hppa_sigtramp): Remove global.
6031 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6032 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6033 * ravenscar-thread.c (update_target_observer): Remove global.
6034 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6036 2014-02-12 Tom Tromey <tromey@redhat.com>
6038 * common/rsp-low.c: Update comments.
6039 * common/rsp-low.h: Update comments.
6041 2014-02-12 Tom Tromey <tromey@redhat.com>
6043 * common/rsp-low.c (convert_ascii_to_int): Remove.
6044 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6046 2014-02-12 Tom Tromey <tromey@redhat.com>
6048 * common/rsp-low.h (unhexify): Don't declare.
6049 * common/rsp-low.c (unhexify): Remove.
6051 2014-02-12 Tom Tromey <tromey@redhat.com>
6053 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6054 * common/rsp-low.c (convert_int_to_ascii): Remove.
6056 2014-02-12 Tom Tromey <tromey@redhat.com>
6058 * common/rsp-low.h (hexify): Don't declare.
6059 * common/rsp-low.c (hexify): Remove.
6061 2014-02-12 Tom Tromey <tromey@redhat.com>
6063 * common/rsp-low.c (hexify): Never take strlen of argument.
6065 2014-02-12 Tom Tromey <tromey@redhat.com>
6067 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6068 * remote.c (extended_remote_run, remote_rcmd)
6069 (remote_download_trace_state_variable, remote_save_trace_data)
6070 (remote_set_trace_notes): Update.
6071 * tracepoint.c (encode_source_string, tfile_write_status)
6072 (tfile_write_uploaded_tsv): Update.
6074 2014-02-12 Tom Tromey <tromey@redhat.com>
6076 * tracepoint.c: Include rsp-low.h.
6077 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6078 * remote.c: Include rsp-low.h.
6079 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6080 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6081 (remote_unescape_input): Move to common/rsp-low.c.
6082 * common/rsp-low.h: New file.
6083 * common/rsp-low.c: New file.
6084 * Makefile.in (SFILES): Add common/rsp-low.c.
6085 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6086 (COMMON_OBS): Add rsp-low.o.
6087 (rsp-low.o): New target.
6089 2014-02-12 Tom Tromey <tromey@redhat.com>
6091 * utils.h: Include print-utils.h.
6092 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6093 (int_string, core_addr_to_string, core_addr_to_string_nz)
6094 (hex_string, hex_string_custom): Don't declare.
6095 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6096 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6097 (hex_string_custom, int_string, core_addr_to_string)
6098 (core_addr_to_string_nz, host_address_to_string): Move to
6099 common/print-utils.c.
6100 * common/print-utils.h: New file.
6101 * common/print-utils.c: New file
6102 * Makefile.in (SFILES): Add common/print-utils.c.
6103 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6104 (COMMON_OBS): Add print-utils.o.
6105 (print-utils.o): New target.
6107 2014-02-12 Tom Tromey <tromey@redhat.com>
6109 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6111 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6113 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6115 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6117 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6118 if a PT_IO ptrace request returns sucessfully but indicates that 0
6119 bytes were transferred.
6121 2014-02-12 Pedro Alves <palves@redhat.com>
6122 Kevin Buettner <kevinb@redhat.com>
6124 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6125 TYPE_INSTANCE_FLAG_CODE_SPACE.
6127 2014-02-12 Pedro Alves <palves@redhat.com>
6129 * h8300-tdep.c (pseudo_from_raw_register)
6130 (raw_from_pseudo_register): New functions.
6131 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6134 2014-02-12 Pedro Alves <palves@redhat.com>
6136 * h8300-tdep.c (h8300_register_sim_regno): New function.
6137 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6138 gdbarch_register_sim_regno hook.
6140 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6142 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6144 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6146 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6148 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6150 * obsd-tdep.h (obsd_init_abi): New prototype.
6151 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6152 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6153 (obsd_init_abi): New functions.
6154 * i386obsd-tdep.c: Include "obsd-tdep.h".
6155 (i386obsd_init_abi): Call obsd_init_abi.
6156 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6157 (amd64obsd_init_abi): Call obsd_init_abi.
6158 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6159 obsd-tdep.c to gdb_target_obs.
6161 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6163 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6164 double float arguments to 16-byte in the argument slots.
6166 2014-02-11 Doug Evans <xdje42@gmail.com>
6168 * configure.ac: Don't crash if pkg-config is not found and guile
6169 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6171 * configure: Regenerate.
6173 2014-02-11 Yao Qi <yao@codesourcery.com>
6175 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6176 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6177 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6178 * gnu-nat.c (gnu_xfer_memory): Likewise.
6179 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6180 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6181 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6182 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6184 2014-02-11 Yao Qi <yao@codesourcery.com>
6186 * target.h (enum target_xfer_error): Rename to ...
6187 (enum target_xfer_status): ... it. New. All users updated.
6188 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6190 (TARGET_XFER_STATUS_ERROR_P): New macro.
6191 (target_xfer_error_to_string): Remove declaration.
6192 (target_xfer_status_to_string): Declare.
6193 (target_xfer_partial_ftype): Adjust it.
6194 (struct target_ops) <to_xfer_partial>: Return
6195 target_xfer_status. Add argument xfered_len. Update
6197 * target.c (target_xfer_error_to_string): Rename to ...
6198 (target_xfer_status_to_string): ... it. New. All callers
6200 (target_read_live_memory): Likewise. Call target_xfer_partial
6201 instead of target_read.
6202 (memory_xfer_live_readonly_partial): Return
6203 target_xfer_status. Add argument xfered_len.
6204 (raw_memory_xfer_partial): Likewise.
6205 (memory_xfer_partial_1): Likewise.
6206 (memory_xfer_partial): Likewise.
6207 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6208 properly. Update debug message.
6209 (default_xfer_partial, current_xfer_partial): Likewise.
6210 (target_write_partial): Likewise.
6211 (target_read_partial): Likewise. All callers updated.
6212 (read_whatever_is_readable): Likewise.
6213 (target_write_with_progress): Likewise.
6214 (target_read_alloc_1): Likewise.
6216 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6217 * auxv.c (procfs_xfer_auxv): Likewise.
6218 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6219 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6220 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6221 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6222 * corefile.c (read_memory): Adjust.
6223 * corelow.c (core_xfer_partial): Likewise.
6224 * ctf.c (ctf_xfer_partial): Likewise.
6225 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6227 (darwin_xfer_partial): Likewise.
6228 * exec.c (section_table_xfer_memory_partial): Likewise. All
6230 (exec_xfer_partial): Likewise.
6231 * exec.h (section_table_xfer_memory_partial): Update
6233 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6235 (gnu_xfer_partial): Likewise.
6236 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6237 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6238 (ia64_hpux_xfer_solib_got): Likewise.
6239 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6240 type of 'partial_len' to ULONGEST.
6241 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6242 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6243 (linux_nat_xfer_partial): Likewise.
6244 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6245 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6246 * monitor.c (monitor_xfer_memory): Likewise.
6247 (monitor_xfer_partial): Likewise.
6248 * procfs.c (procfs_xfer_partial): Likewise.
6249 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6250 * record-full.c (record_full_xfer_partial): Likewise.
6251 (record_full_core_xfer_partial): Likewise.
6252 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6253 (gdbsim_xfer_partial): Likewise.
6254 * remote.c (remote_write_bytes_aux): Likewise. All callers
6256 (remote_write_bytes, remote_read_bytes): Likewise. All
6258 (remote_flash_erase): Likewise. All callers updated.
6259 (remote_write_qxfer): Likewise. All callers updated.
6260 (remote_read_qxfer): Likewise. All callers updated.
6261 (remote_xfer_partial): Likewise.
6262 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6263 (rs6000_xfer_shared_libraries): Likewise.
6264 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6265 (sol_thread_xfer_partial): Likewise.
6266 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6267 (sparc_xfer_partial): Likewise.
6268 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6270 (spu_xfer_partial): Likewise.
6271 * spu-multiarch.c (spu_xfer_partial): Likewise.
6272 * tracepoint.c (tfile_xfer_partial): Likewise.
6273 * windows-nat.c (windows_xfer_memory): Likewise.
6274 (windows_xfer_shared_libraries): Likewise.
6275 (windows_xfer_partial): Likewise.
6276 * valprint.c: Replace 'target_xfer_error' with
6277 'target_xfer_status' in comments.
6279 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6281 Checked in by Joel Brobecker <brobecker@adacore.com>.
6282 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6284 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6286 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6287 function parameters.
6289 2014-02-10 Will Newton <will.newton@linaro.org>
6291 * elfread.c (elf_rel_plt_read): Look for a .got section if
6292 looking up .got.plt fails.
6293 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6294 on address passed to elf_gnu_ifunc_record_cache.
6295 (elf_gnu_ifunc_resolve_addr): Likewise.
6296 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6298 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6300 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6301 (X_RETTURN): New macro.
6302 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6304 * sparc64-tdep.c (sparc64_init_abi): Hook
6305 sparc_in_function_epilogue_p.
6307 2014-02-10 Gary Benson <gbenson@redhat.com>
6309 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6310 Rename name_matcher to symbol_matcher.
6312 2014-02-10 Gary Benson <gbenson@redhat.com>
6314 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6315 Use expand_symtabs_file_matcher_ftype and
6316 expand_symtabs_symbol_matcher_ftype.
6318 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6320 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6321 (struct ada_symbol_cache): New.
6322 (ada_free_symbol_cache): Forward declare.
6323 (struct ada_pspace_data): New.
6324 (ada_pspace_data_handle): New static global.
6325 (get_ada_pspace_data, ada_pspace_data_cleanup)
6326 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6327 (cache_space, cache): Delete, now folded inside struct
6329 (ada_get_symbol_cache): New function.
6330 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6332 (_initialize_ada_language): Remove initialization of cache_space.
6333 Move call to observer_attach_inferior_exit up, grouping it
6334 with the other observer registrations inside this function.
6335 Rename command to be more general. Add call to
6336 register_program_space_data_with_cleanup.
6338 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6340 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6341 ada_new_objfile_observer.
6342 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6343 (_initialize_tasks): Update uses of ada_new_objfile_observer
6344 and ada_tasks_normal_stop_observer.
6346 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6348 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6349 returned by the 'Length attribute to integer.
6351 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6353 * ada-lang.c (_initialize_ada_language): Initialize
6354 cache_space obstack.
6356 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6358 * ada-lang.c (HASH_SIZE): New macro.
6359 (struct cache_entry): New type.
6360 (cache_space, cache): New static globals.
6361 (ada_clear_symbol_cache, find_entry): New functions.
6362 (lookup_cached_symbol, cache_symbol): Implement.
6363 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6364 (_initialize_ada_language): Attach ada_new_objfile_observer
6365 and ada_free_objfile_observer.
6367 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6369 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6370 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6371 struct block * parameter.
6372 (ada_lookup_symbol_list_worker): Constify local variable "block".
6373 Remove cast which is no longer necessary.
6375 2014-02-10 Doug Evans <xdje42@gmail.com>
6377 Add Guile as an extension language.
6378 * NEWS: Mention Guile scripting.
6379 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6380 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6381 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6382 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6383 (CLIBS): Add GUILE_LIBS.
6384 (install-guile): New rule.
6385 (guile.o): New rule.
6386 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6387 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6388 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6389 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6390 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6391 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6392 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6393 * configure.ac: New option --with-guile.
6394 * configure: Regenerate.
6395 * config.in: Regenerate.
6396 * auto-load.c: Remove #include "python/python.h". Add #include
6397 "gdb/section-scripts.h".
6398 (source_section_scripts): Handle Guile scripts.
6399 (_initialize_auto_load): Add name of Guile objfile script to
6400 scripts-directory help text.
6401 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6402 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6403 (struct breakpoint): New member scm_bp_object.
6404 * defs.h (enum command_control_type): New value guile_control.
6405 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6407 (show_user): Update comment.
6408 (_initialize_cli_cmds): Update help text for "show user". Update help
6409 text for max-user-call-depth.
6410 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6412 (multi_line_command_p): Add guile_control.
6413 (print_command_lines): Handle guile_control.
6414 (execute_control_command, recurse_read_control_structure): Ditto.
6415 (process_next_line): Recognize "guile" commands.
6416 * disasm.c (gdb_disassemble_info): Make non-static.
6417 * disasm.h: #include "dis-asm.h".
6418 (struct gdbarch): Add forward decl.
6419 (gdb_disassemble_info): Declare.
6420 * extension.c: #include "guile/guile.h".
6421 (extension_languages): Add guile.
6422 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6423 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6424 * gdbtypes.c (get_unsigned_type_max): New function.
6425 (get_signed_type_minmax): New function.
6426 * gdbtypes.h (get_unsigned_type_max): Declare.
6427 (get_signed_type_minmax): Declare.
6428 * guile/README: New file.
6429 * guile/guile-internal.h: New file.
6430 * guile/guile.c: New file.
6431 * guile/guile.h: New file.
6432 * guile/scm-arch.c: New file.
6433 * guile/scm-auto-load.c: New file.
6434 * guile/scm-block.c: New file.
6435 * guile/scm-breakpoint.c: New file.
6436 * guile/scm-disasm.c: New file.
6437 * guile/scm-exception.c: New file.
6438 * guile/scm-frame.c: New file.
6439 * guile/scm-gsmob.c: New file.
6440 * guile/scm-iterator.c: New file.
6441 * guile/scm-lazy-string.c: New file.
6442 * guile/scm-math.c: New file.
6443 * guile/scm-objfile.c: New file.
6444 * guile/scm-ports.c: New file.
6445 * guile/scm-pretty-print.c: New file.
6446 * guile/scm-safe-call.c: New file.
6447 * guile/scm-string.c: New file.
6448 * guile/scm-symbol.c: New file.
6449 * guile/scm-symtab.c: New file.
6450 * guile/scm-type.c: New file.
6451 * guile/scm-utils.c: New file.
6452 * guile/scm-value.c: New file.
6453 * guile/lib/gdb.scm: New file.
6454 * guile/lib/gdb/boot.scm: New file.
6455 * guile/lib/gdb/experimental.scm: New file.
6456 * guile/lib/gdb/init.scm: New file.
6457 * guile/lib/gdb/iterator.scm: New file.
6458 * guile/lib/gdb/printing.scm: New file.
6459 * guile/lib/gdb/types.scm: New file.
6460 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6461 (VPATH): Add $(GUILE_SRCDIR).
6462 (GUILE_DIR): New variable.
6463 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6464 (all): Add stamp-guile dependency.
6465 (stamp-guile): New rule.
6466 (clean-guile, install-guile, uninstall-guile): New rules.
6467 (install-only): Add install-guile dependency.
6468 (uninstall): Add uninstall-guile dependency.
6469 (clean): Add clean-guile dependency.
6471 2014-02-09 Doug Evans <xdje42@gmail.com>
6473 Revert this patch (which I approved, mea culpa).
6475 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6477 * Makefile.in (all-lib): Remove.
6478 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6480 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6482 Fix Python stack corruption.
6483 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6486 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6488 * Makefile.in (all-lib): Remove.
6489 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6491 2014-02-07 Doug Evans <dje@google.com>
6493 * extension-priv.h (extension_language_script_ops): Add comment.
6494 (extension_language_ops): Add comment.
6495 (active_ext_lang_state): Fix typo in comment.
6497 2014-02-07 Pedro Alves <palves@redhat.com>
6499 PR breakpoints/16292
6500 * infrun.c (handle_signal_stop) <signal arrives while stepping
6501 over a breakpoint>: Switch back to the stepping thread.
6503 2014-02-07 Yao Qi <yao@codesourcery.com>
6505 * target.c (target_xfer_partial): Return zero if LEN is zero.
6507 2014-02-07 Yao Qi <yao@codesourcery.com>
6509 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6510 (ld_so_xfer_auxv): Likewise.
6511 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6512 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6513 * corelow.c (core_xfer_partial): Likewise.
6514 * ctf.c (ctf_xfer_partial): Likewise.
6515 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6516 (darwin_xfer_partial): Likewise.
6517 * exec.c (exec_xfer_partial): Likewise.
6518 * gnu-nat.c (gnu_xfer_partial): Likewise.
6519 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6520 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6521 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6522 * linux-nat.c (linux_xfer_siginfo): Likewise.
6523 (linux_proc_xfer_spu): Likewise.
6524 * procfs.c (procfs_xfer_partial): Likewise.
6525 * record-full.c (record_full_xfer_partial): Likewise.
6526 (record_full_core_xfer_partial): Likewise.
6527 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6528 * remote.c (remote_write_qxfer): Likewise.
6529 (remote_write_qxfer, remote_read_qxfer): Likewise.
6530 (remote_xfer_partial): Likewise.
6531 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6532 (rs6000_xfer_shared_libraries): Likewise.
6533 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6534 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6535 (spu_xfer_partial): Likewise.
6536 * target.c (memory_xfer_partial_1): Likewise.
6537 * tracepoint.c (tfile_xfer_partial): Likewise.
6538 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6539 (windows_xfer_partial): Likewise.
6541 2014-02-07 Yao Qi <yao@codesourcery.com>
6543 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6545 (core_xfer_shared_libraries_aix): Likewise.
6546 * gdbarch.c, gdbarch.h: Regenerated.
6547 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6548 ULONGEST. Change 'len_avail' type to ULONGEST.
6549 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6550 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6552 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6554 2014-02-07 Yao Qi <yao@codesourcery.com>
6556 * corefile.c (memory_error): Get 'exception' from ERR and pass
6557 'exception' to throw_error.
6559 2014-02-06 Doug Evans <xdje42@gmail.com>
6561 * configure.ac (libpython checking): Remove all but python.o from
6562 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6563 * configure: Regenerate.
6565 * Makefile.in (SFILES): Add extension.c.
6566 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6567 (COMMON_OBS): Add extension.o.
6568 * extension.h: New file.
6569 * extension-priv.h: New file.
6570 * extension.c: New file.
6572 * python/python-internal.h: #include "extension.h".
6573 (gdbpy_auto_load_enabled): Declare.
6574 (gdbpy_apply_val_pretty_printer): Declare.
6575 (gdbpy_apply_frame_filter): Declare.
6576 (gdbpy_preserve_values): Declare.
6577 (gdbpy_breakpoint_cond_says_stop): Declare.
6578 (gdbpy_breakpoint_has_cond): Declare.
6579 (void source_python_script_for_objfile): Delete.
6580 * python/python.c: #include "extension-priv.h".
6581 Delete inclusion of "observer.h".
6582 (extension_language_python): Moved here and renamed from
6583 script_language_python in py-auto-load.c.
6584 Redefined to be of type extension_language_defn.
6585 (python_extension_script_ops): New global.
6586 (python_extension_ops): New global.
6587 (struct python_env): New member previous_active.
6588 (restore_python_env): Call restore_active_ext_lang.
6589 (ensure_python_env): Call set_active_ext_lang.
6590 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6592 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6594 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6596 (gdbpy_eval_from_control_command): Renamed from
6597 eval_python_from_control_command, made static. New arg extlang.
6598 (gdbpy_source_script) Renamed from source_python_script, made static.
6600 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6601 result to int. New arg extlang.
6602 (gdbpy_source_objfile_script): Renamed from
6603 source_python_script_for_objfile, made static. New arg extlang.
6604 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6605 static. New args extlang, extlang_printers. Change result type to
6607 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6608 static. New arg extlang. Rename arg printers to extlang_printers
6609 and change type to ext_lang_type_printers *.
6610 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6611 static. Replace argument arg with extlang, extlang_printers.
6612 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6613 (!HAVE_PYTHON, source_python_script): Delete.
6614 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6615 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6616 (!HAVE_PYTHON, start_type_printers): Delete.
6617 (!HAVE_PYTHON, apply_type_printers): Delete.
6618 (!HAVE_PYTHON, free_type_printers): Delete.
6619 (_initialize_python): Delete call to observer_attach_before_prompt.
6620 (finalize_python): Set/restore active extension language.
6621 (gdbpy_finish_initialization) Renamed from
6622 finish_python_initialization, made static. New arg extlang.
6623 (gdbpy_initialized): New function.
6624 * python/python.h: #include "extension.h". Delete #include
6625 "value.h", "mi/mi-cmds.h".
6626 (extension_language_python): Declare.
6627 (GDBPY_AUTO_FILE_NAME): Delete.
6628 (enum py_bt_status): Moved to extension.h and renamed to
6630 (enum frame_filter_flags): Moved to extension.h.
6631 (enum py_frame_args): Moved to extension.h and renamed to
6632 ext_lang_frame_args.
6633 (finish_python_initialization): Delete.
6634 (eval_python_from_control_command): Delete.
6635 (source_python_script): Delete.
6636 (apply_val_pretty_printer): Delete.
6637 (apply_frame_filter): Delete.
6638 (preserve_python_values): Delete.
6639 (gdbpy_script_language_defn): Delete.
6640 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6641 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6643 * auto-load.c: #include "extension.h".
6644 (GDB_AUTO_FILE_NAME): Delete.
6645 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6646 (script_language_gdb): Delete, moved to extension.c and renamed to
6647 extension_language_gdb.
6648 (source_gdb_script_for_objfile): Delete.
6649 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6650 (loaded_script): Change type of language member to
6651 struct extension_language_defn *.
6652 (init_loaded_scripts_info): Initialize
6653 unsupported_script_warning_printed.
6654 (maybe_add_script): Make static. Change type of language arg to
6655 struct extension_language_defn *.
6656 (clear_section_scripts): Reset unsupported_script_warning_printed.
6657 (auto_load_objfile_script_1): Rewrite to use extension language API.
6658 (auto_load_objfile_script): Make public. Remove support-compiled-in
6659 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6660 (source_section_scripts): Rewrite to use extension language API.
6661 (load_auto_scripts_for_objfile): Rewrite to use
6662 auto_load_scripts_for_objfile.
6663 (collect_matching_scripts_data): Change type of language member to
6664 struct extension_language_defn *.
6665 (auto_load_info_scripts): Change type of language arg to
6666 struct extension_language_defn *.
6667 (unsupported_script_warning_print): New function.
6668 (script_not_found_warning_print): Make static.
6669 (_initialize_auto_load): Rewrite construction of scripts-directory
6671 * auto-load.h (struct objfile): Add forward decl.
6672 (struct script_language): Delete.
6673 (struct auto_load_pspace_info): Add forward decl.
6674 (struct extension_language_defn): Add forward decl.
6675 (maybe_add_script): Delete.
6676 (auto_load_objfile_script): Declare.
6677 (script_not_found_warning_print): Delete.
6678 (auto_load_info_scripts): Update prototype.
6679 (auto_load_gdb_scripts_enabled): Declare.
6680 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6681 auto_load_python_scripts_enabled and made public.
6682 (script_language_python): Delete, moved to python.c.
6683 (gdbpy_script_language_defn): Delete.
6684 (info_auto_load_python_scripts): Update to use
6685 extension_language_python.
6687 * breakpoint.c (condition_command): Replace call to
6688 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6689 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6690 with call to breakpoint_ext_lang_cond_says_stop.
6691 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6692 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6693 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6694 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6696 (local_setattro): Print name of extension language with existing
6699 * valprint.c (val_print, value_print): Update to call
6700 apply_ext_lang_val_pretty_printer.
6701 * cp-valprint.c (cp_print_value): Update call to
6702 apply_ext_lang_val_pretty_printer.
6703 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6704 (gdbpy_apply_val_pretty_printer): Renamed from
6705 apply_val_pretty_printer. New arg extlang.
6706 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6708 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6709 extension language API.
6710 * cli/cli-script.c (execute_control_command): Update to call
6711 eval_ext_lang_from_control_command.
6713 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6714 enum ext_lang_bt_status values. Update call to
6715 apply_ext_lang_frame_filter.
6716 (mi_cmd_stack_list_locals): Ditto.
6717 (mi_cmd_stack_list_args): Ditto.
6718 (mi_cmd_stack_list_variables): Ditto.
6719 * mi/mi-main.c: Delete #include "python/python-internal.h".
6720 Add #include "extension.h".
6721 (mi_cmd_list_features): Replace reference to python internal variable
6722 gdb_python_initialized with call to ext_lang_initialized_p.
6724 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6725 Update to use enum ext_lang_frame_args. Update to call
6726 apply_ext_lang_frame_filter.
6727 * python/py-framefilter.c (extract_sym): Update to use enum
6729 (extract_value, py_print_type, py_print_value): Ditto.
6730 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6731 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6732 (py_print_frame): Ditto.
6733 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6734 New arg extlang. Update to use enum ext_lang_bt_status.
6736 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6737 finish_python_initialization. Replace with call to
6738 finish_ext_lang_initialization.
6740 * typeprint.c (do_free_global_table): Update to call
6741 free_ext_lang_type_printers.
6742 (create_global_typedef_table): Update to call
6743 start_ext_lang_type_printers.
6744 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6745 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6746 (type_print_options): Change type of global_printers from "void *"
6747 to "struct ext_lang_type_printers *".
6749 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6750 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6751 (gdbpy_preserve_values): Renamed from preserve_python_values.
6753 (!HAVE_PYTHON, preserve_python_values): Delete.
6755 * utils.c (quit_flag): Delete, moved to extension.c.
6756 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6759 * eval.c: Delete #include "python/python.h".
6760 * main.c: Delete #include "python/python.h".
6762 * defs.h: Update comment.
6764 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6768 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6770 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6773 2014-02-05 Yao Qi <yao@codesourcery.com>
6775 * remote.c (remote_pass_signals): Remove local 'buf' and use
6777 (remote_program_signals): Likewise.
6779 2014-02-05 Yao Qi <yao@codesourcery.com>
6781 * ctf.c: Include "inferior.h" and "gdbthread.h".
6782 (CTF_PID): A new macro.
6783 (ctf_open): Call inferior_appeared and add_thread_silent.
6784 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6785 (ctf_thread_alive): New function.
6786 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6788 2014-02-05 Yao Qi <yao@codesourcery.com>
6792 2013-05-24 Yao Qi <yao@codesourcery.com>
6794 * tracepoint.c (TFILE_PID): Remove.
6795 (tfile_open): Don't add thread and inferior.
6796 (tfile_close): Don't set 'inferior_ptid'. Don't call
6797 exit_inferior_silent.
6798 (tfile_thread_alive): Remove.
6799 (init_tfile_ops): Don't set field 'to_thread_alive' of
6802 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6804 * remote.c (remote_start_remote): Call remote_check_symbols even
6805 if only symbol-file (not file) has been given.
6807 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6809 * gdbarch.sh (skip_entrypoint): New callback.
6810 * gdbarch.c, gdbarch.h: Regenerate.
6811 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6812 * infrun.c (fill_in_stop_func): Likewise.
6813 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6814 (ppc_elfv2_elf_make_msymbol_special): New function.
6815 (ppc_elfv2_skip_entrypoint): Likewise.
6816 (ppc_linux_init_abi): Install them for ELFv2.
6818 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6820 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6821 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6822 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6823 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6824 structures returned in GPRs.
6826 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6828 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6829 offset to the stack parameter list for the ELFv2 ABI.
6831 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6833 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6834 set_gdbarch_convert_from_func_ptr_addr and
6835 set_gdbarch_elf_make_msymbol_special for ELFv1.
6836 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6837 function descriptors on ELFv1.
6838 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6839 set up r12 at function entry.
6841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6843 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6844 (struct gdbarch_tdep): New member elf_abi.
6846 * rs6000-tdep.c: Include "elf/ppc64.h".
6847 (rs6000_gdbarch_init): Detect ELF ABI version.
6849 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6852 within a register pair holding a DFP 128-bit value on little-endian.
6853 (ppc64_sysv_abi_return_value_base): Likewise.
6854 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6855 (dfp_pseudo_register_write): Likewise.
6857 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6859 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6860 offset on little-endian when passing _Decimal32.
6861 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6863 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6865 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6866 of the overlapped FP register within the VSX register on little-
6868 (efpr_pseudo_register_write): Likewise.
6870 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6872 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6873 offset on little-endian when passing small structures.
6875 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6877 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6878 (struct ppc64_sysv_argpos): New data structure.
6879 (ppc64_sysv_abi_push_float): Remove.
6880 (ppc64_sysv_abi_push_val): New function.
6881 (ppc64_sysv_abi_push_integer): Likewise.
6882 (ppc64_sysv_abi_push_freg): Likewise.
6883 (ppc64_sysv_abi_push_vreg): Likewise.
6884 (ppc64_sysv_abi_push_param): Likewise.
6885 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6886 (ppc64_sysv_abi_return_value_base): New function.
6887 (ppc64_sysv_abi_return_value): Refactor to use it.
6889 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6891 * NEWS: Document new target powerpc64le-*-linux*.
6893 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6895 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6896 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6898 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6899 register set used in ELF core dumps. Add floating-point register set.
6901 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6903 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6904 dwarf2_to_gdb[] table using symbolic constants. Adjust
6905 penultimate entry from number representing the PC register
6906 to symbolic constant representing the MDR register. Add
6907 constant for the PC register to the end of the table.
6909 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6911 * bsd-kvm.c: Include <sys/param.h>
6913 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6915 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6917 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6919 * ada-lang.h (clear_ada_sym_cache): Delete.
6921 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6923 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6925 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6927 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6928 the sigreturn register save area only if the syscall is
6931 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6933 * valops.c (value_slice): Minor reformatting.
6935 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6937 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6939 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6941 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6943 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6944 (ada_ignore_descriptive_types_p): New static global.
6945 (find_parallel_type_by_descriptive_type): Return immediately
6946 if ada_ignore_descriptive_types_p is set.
6947 (_initialize_ada_language): Register new commands "maintenance
6948 set ada", "maintenance show ada", "maintenance set ada
6949 ignore-descriptive-types" and "maintenance show ada
6950 ignore-descriptive-types".
6951 * NEWS: Add entry for new "maint ada set/show
6952 ignore-descriptive-types" commands.
6954 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6956 * record-btrace.c (record_btrace_close): Call btrace_teardown
6959 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6961 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6964 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6966 * ada-typeprint (type_is_full_subrange_of_target_type):
6968 (print_range): Add parameter bounds_prefered_p. If not set,
6969 try printing range types using the name of their base type.
6970 (print_range_type): Add parameter bounds_prefered_p.
6971 Use it in call to print_range.
6972 (print_array_type, ada_print_type): Update calls to print_range
6973 and print_range_type.
6975 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6977 * ada-typeprint.c (print_array_type, print_choices, print_range)
6978 (print_range_bound, print_dynamic_range_bound, print_range_type):
6981 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6983 * ada-typeprint.c (print_range): Add missing empty line
6984 after local declaration.
6986 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6988 * ada-valprint.c (print_optional_low_bound): Get index_type's
6989 target type for as long as it is a TYPE_CODE_RANGE.
6991 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6993 * procfs.c (procfs_make_note_section): Remove assertion and
6996 2014-01-24 Yao Qi <yao@codesourcery.com>
6998 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6999 * corelow.c (get_core_siginfo): Likewise.
7001 2014-01-24 Yao Qi <yao@codesourcery.com>
7003 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7004 ULONGEST. Don't check 'len' is negative.
7005 (remote_write_bytes): Change type of 'len' to ULONGEST.
7007 2014-01-23 Tom Tromey <tromey@redhat.com>
7010 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7011 Handle exception from frame.block.
7012 (FrameVars.fetch_frame_locals): Likewise.
7014 2014-01-23 Tom Tromey <tromey@redhat.com>
7017 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7018 on a NULL pointer. Move "goto error" to correct place.
7020 2014-01-23 Tom Tromey <tromey@redhat.com>
7023 * python/py-framefilter.c (apply_frame_filter): Call
7024 ensure_python_env after computing gdbarch.
7026 2014-01-23 Yao Qi <yao@codesourcery.com>
7028 * target.c (raw_memory_xfer_partial): Change argument type
7029 from void * to gdb_byte *.
7030 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7032 2014-01-22 Doug Evans <dje@google.com>
7034 New gdbserver option --debug-format=timestamp.
7037 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7039 * syscalls/s390x-linux.xml: New file.
7040 * syscalls/s390-linux.xml: New file.
7041 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7042 (XML_SYSCALL_FILENAME_S390X): Likewise.
7043 (op_svc): New enum value for SVC opcode.
7044 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7045 (s390_linux_get_syscall_number): New function.
7046 (s390_gdbarch_init): Register '*get_syscall_number' and the
7047 syscall xml file name.
7048 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7049 "s390-linux.xml" and "s390x-linux.xml".
7050 * NEWS: Announce new feature.
7052 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7054 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7056 2014-01-22 Pedro Alves <palves@redhat.com>
7058 * xtensa-config.c: Include defs.h.
7060 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7062 * common/common-utils.h: Add "ARI:" comment beside __func__
7065 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7067 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7068 documentation a bit.
7070 2014-01-21 Roland McGrath <mcgrathr@google.com>
7072 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7073 * configure: Regenerate.
7074 * aclocal.m4: Regenerate.
7075 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7076 New substituted variables.
7077 (install-strip): New target.
7078 (INSTALL_SCRIPT): New substituted variable.
7079 (FLAGS_TO_PASS): Add it.
7080 (install-only): Use $(INSTALL_SCRIPT) rather than
7081 $(INSTALL_PROGRAM) for gcore.
7083 2014-01-20 Tom Tromey <tromey@redhat.com>
7085 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7088 2014-01-20 Tom Tromey <tromey@redhat.com>
7090 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7091 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7092 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7093 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7094 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7095 (struct cmd_list_element) <flags>: Remove.
7096 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7097 doc_allocated>: New fields.
7098 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7100 * maint.c (maintenance_do_deprecate): Update.
7101 * top.c (execute_command): Update.
7103 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7105 * xtensa-linux-nat.c: Include asm/ptrace.h.
7107 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7109 * Makefile.in (SFILES): Add d-support.c.
7110 (COMMON_OBS): Add d-support.o.
7111 * d-lang.h (d_parse_symbol): Add comment, now defined in
7113 * d-lang.c (parse_call_convention)
7114 (parse_attributes, parse_function_types)
7115 (parse_function_args, parse_type, parse_identifier)
7116 (call_convention_p, d_parse_symbol): Move functions to ...
7117 * d-support.c: ... New file.
7119 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7121 * d-lang.h (d_parse_symbol): Add declaration.
7122 * d-lang.c (extract_identifiers)
7123 (extract_type_info): Remove functions.
7124 (parse_call_convention, parse_attributes)
7125 (parse_function_types, parse_function_args)
7126 (parse_type, parse_identifier, call_convention_p)
7127 (d_parse_symbol): New functions.
7128 (d_demangle): Use d_parse_symbol to demangle D symbols.
7130 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7132 * d-lang.h (struct builtin_d_type): New data type.
7133 (builtin_d_type): Add declaration.
7134 * d-lang.c (d_language_arch_info, build_d_types)
7135 (builtin_d_type): New functions.
7136 (enum d_primitive_types): New data type.
7137 (d_language_defn): Change c_language_arch_info to
7138 d_language_arch_info.
7139 (d_type_data): New static variable.
7140 (_initialize_d_language): Initialize d_type_data.
7142 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7144 * d-lang.h (d_main_name): Add declaration.
7145 * d-lang.c (d_main_name): New function.
7146 * symtab.c (find_main_name): Add call to d_main_name.
7148 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7150 * d-lang.c (d_language_defn): Change macro_expansion_c to
7153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7155 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7157 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7159 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7160 gdb_exception" declaration.
7161 * remote.c (getpkt_or_notif_sane): Likewise.
7163 2014-01-17 Doug Evans <dje@google.com>
7165 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7166 function, contents of dirnames_to_char_ptr_vec_append moved here.
7167 (delim_string_to_char_ptr_vec): New function.
7168 (dirnames_to_char_ptr_vec_append): Rewrite.
7169 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7171 2014-01-17 Doug Evans <dje@google.com>
7173 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7175 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7176 #include "common-utils.h".
7177 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7178 * common/vec.h (VEC_ASSERT_PASS): Update.
7179 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7180 (MACH_CHECK_ERROR): Update.
7182 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7184 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7186 * gdbarch.h: Regenerate.
7188 2014-01-16 Tom Tromey <tromey@redhat.com>
7190 * value.c (struct value) <regnum>: Move earlier.
7192 2014-01-16 Tom Tromey <tromey@redhat.com>
7194 * remote.c (extended_remote_create_inferior): Rename from
7195 extended_remote_create_inferior_1. Add "ops" argument. Remove
7198 2014-01-16 Pedro Alves <palves@redhat.com>
7200 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7201 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7204 2014-01-16 Doug Evans <dje@google.com>
7206 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7208 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7210 * btrace.h (btrace_thread_flag): New.
7211 (struct btrace_thread_info) <flags>: New.
7212 * record-btrace.c (record_btrace_resume_thread)
7213 (record_btrace_find_thread_to_move, btrace_step_no_history)
7214 (btrace_step_stopped, record_btrace_start_replaying)
7215 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7216 (record_btrace_find_resume_thread): New.
7217 (record_btrace_resume, record_btrace_wait): Extend.
7218 (record_btrace_can_execute_reverse): New.
7219 (record_btrace_open): Fail in non-stop mode.
7220 (record_btrace_set_replay): Split into this, ...
7221 (record_btrace_stop_replaying): ... this, ...
7222 (record_btrace_clear_histories): ... and this.
7223 (init_record_btrace_ops): Init to_can_execute_reverse.
7224 * NEWS: Announce it.
7226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7228 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7229 (forward_target_decr_pc_after_break)
7230 (target_decr_pc_after_break): New.
7231 * target.c (forward_target_decr_pc_after_break)
7232 (target_decr_pc_after_break): New.
7233 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7234 instead of gdbarch_decr_pc_after_break.
7235 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7236 instead of gdbarch_decr_pc_after_break.
7237 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7238 instead of gdbarch_decr_pc_after_break.
7239 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7240 instead of gdbarch_decr_pc_after_break.
7241 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7242 instead of gdbarch_decr_pc_after_break.
7243 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7244 instead of gdbarch_decr_pc_after_break.
7246 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7248 * btrace.c: Include regcache.h.
7249 (btrace_add_pc): New.
7250 (btrace_enable): Call btrace_add_pc.
7251 (btrace_is_empty): New.
7252 * btrace.h (btrace_is_empty): New.
7253 * record-btrace.c (require_btrace, record_btrace_info): Call
7256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7258 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7259 Support delta reads.
7260 (linux_disable_btrace): Change return type.
7261 * common/linux-btrace.h (linux_read_btrace): Change parameters
7262 and return type to allow error reporting. Update users.
7263 (linux_disable_btrace): Change return type. Update users.
7264 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7266 (btrace_error): New.
7267 (btrace_block) <begin>: Comment on BEGIN == 0.
7268 * btrace.c (btrace_compute_ftrace): Start from the end of
7270 (btrace_stitch_trace, btrace_clear_history): New.
7271 (btrace_fetch): Read delta trace, return if replaying.
7272 (btrace_clear): Move clear history code to btrace_clear_history.
7273 (parse_xml_btrace): Throw an error if parsing failed.
7274 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7275 and return type to allow error reporting.
7276 (target_read_btrace): Change parameters and return type to allow
7278 * target.c (target_read_btrace): Update.
7279 * remote.c (remote_read_btrace): Support delta reads. Pass
7281 * NEWS: Announce it.
7283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7285 * record.h (record_btrace_frame_unwind)
7286 (record_btrace_tailcall_frame_unwind): New declarations.
7287 * dwarf2-frame: Include record.h
7288 (dwarf2_frame_cfa): Throw an error for btrace frames.
7289 * record-btrace.c: Include hashtab.h.
7290 (btrace_get_bfun_name): New.
7291 (btrace_call_history): Call btrace_get_bfun_name.
7292 (struct btrace_frame_cache): New.
7294 (bfcache_hash, bfcache_eq, bfcache_new): New.
7295 (btrace_get_frame_function): New.
7296 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7297 (record_btrace_frame_this_id): Compute own id.
7298 (record_btrace_frame_prev_register): Provide PC, throw_error
7299 for all other registers.
7300 (record_btrace_frame_sniffer): Detect btrace frames.
7301 (record_btrace_tailcall_frame_sniffer): New.
7302 (record_btrace_frame_dealloc_cache): New.
7303 (record_btrace_frame_unwind): Add new functions.
7304 (record_btrace_tailcall_frame_unwind): New.
7305 (_initialize_record_btrace): Allocate cache.
7306 * btrace.c (btrace_clear): Call reinit_frame_cache.
7307 * NEWS: Announce it.
7309 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7311 * record-btrace.c (record_btrace_set_replay)
7312 (record_btrace_goto_begin, record_btrace_goto_end)
7313 (record_btrace_goto): New.
7314 (init_record_btrace_ops): Initialize them.
7315 * NEWS: Announce it.
7317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7319 * record-btrace.c (record_btrace_find_new_threads)
7320 (record_btrace_thread_alive): New.
7321 (init_record_btrace_ops): Initialize to_find_new_threads and
7324 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7326 * record-btrace.c (record_btrace_resume): New.
7327 (record_btrace_wait): New.
7328 (init_record_btrace_ops): Initialize to_wait and to_resume.
7330 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7332 * record-btrace.c (record_btrace_xfer_partial)
7333 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7334 (record_btrace_allow_memory_access): New.
7335 (init_record_btrace_ops): Initialize new methods.
7336 * target.c (raw_memory_xfer_partial): Bail out if target reports
7337 that this memory is not available.
7339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7341 * target.h (target_ops) <to_insert_breakpoint>
7342 <to_remove_breakpoint>: Add target_ops parameter.
7343 (forward_target_insert_breakpoint): New.
7344 (forward_target_remove_breakpoint): New.
7345 (memory_remove_breakpoint, memory_insert_breakpoint):
7346 Add target_ops parameter.
7347 * target.c (target_insert_breakpoint): Split into this and ...
7348 (forward_target_insert_breakpoint): ... this.
7349 (target_remove_breakpoint): Split into this and ...
7350 (forward_target_remove_breakpoint): ... this.
7351 (debug_to_insert_breakpoint): Add target_ops parameter.
7352 Call forward_target_insert_breakpoint.
7353 (debug_to_remove_breakpoint): Add target_ops parameter.
7354 Call forward_target_remove_breakpoint.
7355 (update_current_target): Do not inherit or default to_insert_breakpoint
7356 and to_remove_breakpoint.
7357 * corelow.c (ignore): Add target_ops parameter.
7358 * exec.c (ignore): Add target_ops parameter.
7359 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7360 Add target_ops parameter.
7361 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7362 Add target_ops parameter.
7363 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7364 Add target_ops parameter.
7365 * record-full.c (record_full_beneath_to_insert_breakpoint)
7366 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7367 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7368 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7369 (record_full_core_remove_breakpoint): Add target_ops parameter.
7371 (record_full_beneath_to_insert_breakpoint_ops)
7372 (record_full_beneath_to_remove_breakpoint_ops)
7373 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7374 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7375 tmp_to_remove_breakpoint_ops,
7376 record_full_beneath_to_insert_breakpoint_ops, and
7377 record_full_beneath_to_remove_breakpoint_ops.
7378 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7379 (m32r_remove_breakpoint): Add target_ops parameter.
7380 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7381 Add target_ops parameter.
7382 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7383 Add target_ops parameter.
7385 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7386 Markus Metzger <markus.t.metzger@intel.com>
7388 * record-btrace.c: Include frame-unwind.h.
7389 (record_btrace_frame_unwind_stop_reason)
7390 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7391 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7393 (init_record_btrace_ops): Install it.
7395 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7397 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7400 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7402 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7405 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 * frame-unwind.c: Include target.h.
7408 (frame_unwind_try_unwinder): New function with code from ...
7409 (frame_unwind_find_by_frame): ... here. New variable
7410 unwinder_from_target, call also target_get_unwinder)
7411 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7412 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7413 * target.h (struct target_ops): New fields to_get_unwinder and
7414 to_get_tailcall_unwinder.
7415 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7419 * record-btrace.c (record_btrace_fetch_registers)
7420 (record_btrace_store_registers)
7421 (record_btrace_to_prepare_to_store): New.
7422 (init_record_btrace_ops): Add the above.
7424 2014-01-16 Tom Tromey <tromey@redhat.com>
7426 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7427 * target.h (struct target_ops) <to_prepare_to_store>: Add
7429 (target_prepare_to_store): Add argument.
7430 * target.c (debug_to_prepare_to_store): Add argument.
7431 (update_current_target): Update.
7432 * remote.c (remote_prepare_to_store): Add 'self' argument.
7433 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7434 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7435 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7436 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7438 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7439 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7440 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7441 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7442 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7446 * btrace.h (replay) <replay>: New.
7447 (btrace_is_replaying): New.
7448 * btrace.c (btrace_clear): Free replay iterator.
7449 (btrace_is_replaying): New.
7450 * record-btrace.c (record_btrace_is_replaying): New.
7451 (record_btrace_info): Print insn number if replaying.
7452 (record_btrace_insn_history): Start at replay position.
7453 (record_btrace_call_history): Start at replay position.
7454 (init_record_btrace_ops): Init to_record_is_replaying.
7456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7458 * record-btrace.c (record_btrace_insn_history_range): Include
7460 (record_btrace_insn_history_from): Adjust range.
7461 (record_btrace_call_history_range): Include
7463 (record_btrace_call_history_from): Adjust range.
7464 * NEWS: Announce changes.
7466 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7468 * record.h (enum record_print_flag)
7469 <record_print_indent_calls>: New.
7470 * record.c (get_call_history_modifiers): Recognize /c modifier.
7471 (_initialize_record): Document /c modifier.
7472 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7473 Reorder fields. Optionally indent the function name. Update
7475 * NEWS: Announce changes.
7477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7479 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7483 * btrace.c (ftrace_new_function): Start counting at one.
7484 * record-btrace.c (record_btrace_info): Adjust number of calls
7486 * NEWS: Announce it.
7488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7490 * record-btrace.c (btrace_call_history_insn_range): Print
7491 insn range as [begin, end].
7493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7495 * btrace.h (struct btrace_func_link): New.
7496 (enum btrace_function_flag): New.
7497 (struct btrace_inst): Rename to ...
7498 (struct btrace_insn): ...this. Update all users.
7499 (struct btrace_func) <ibegin, iend>: Remove.
7500 (struct btrace_func_link): New.
7501 (struct btrace_func): Rename to ...
7502 (struct btrace_function): ...this. Update all users.
7503 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7504 (number, level, flags>: New.
7505 (struct btrace_insn_iterator): Rename to ...
7506 (struct btrace_insn_history): ...this.
7508 (struct btrace_insn_iterator, btrace_call_iterator): New.
7509 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7510 (struct btrace_target_info) <begin, end, level>
7511 <insn_history, call_history>: New.
7512 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7513 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7514 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7515 (btrace_call_number, btrace_call_begin, btrace_call_end)
7516 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7517 (btrace_find_function_by_number, btrace_set_insn_history)
7518 (btrace_set_call_history): New.
7519 * btrace.c (btrace_init_insn_iterator)
7520 (btrace_init_func_iterator, compute_itrace): Remove.
7521 (ftrace_print_function_name, ftrace_print_filename)
7522 (ftrace_skip_file): Change
7524 (ftrace_init_func): Remove.
7525 (ftrace_debug): Use new btrace_function fields.
7526 (ftrace_function_switched): Also consider gaining and
7527 losing symbol information).
7528 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7529 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7530 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7532 (ftrace_new_function): Move. Remove debug print.
7533 (ftrace_update_lines, ftrace_update_insns): New.
7534 (ftrace_update_function): Check for call, ret, and jump.
7535 (compute_ftrace): Renamed to ...
7536 (btrace_compute_ftrace): ...this. Rewritten to compute call
7538 (btrace_fetch, btrace_clear): Updated.
7539 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7540 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7541 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7542 (btrace_call_number, btrace_call_begin, btrace_call_end)
7543 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7544 (btrace_find_function_by_number, btrace_set_insn_history)
7545 (btrace_set_call_history): New.
7546 * record-btrace.c (require_btrace): Use new btrace thread
7548 (record_btrace_info, btrace_insn_history)
7549 (record_btrace_insn_history, record_btrace_insn_history_range):
7550 Use new btrace thread info fields and new iterator.
7551 (btrace_func_history_src_line): Rename to ...
7552 (btrace_call_history_src_line): ...this. Use new btrace
7554 (btrace_func_history): Rename to ...
7555 (btrace_call_history): ...this. Use new btrace thread info
7556 fields and new iterator.
7557 (record_btrace_call_history, record_btrace_call_history_range):
7558 Use new btrace thread info fields and new iterator.
7560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7562 * frame.h (frame_id_build_unavailable_stack_special): New.
7563 * frame.c (frame_id_build_unavailable_stack_special): New.
7565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7567 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7568 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7569 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7571 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7572 (i386_insn_is_jump, i386_jmp_p): New.
7573 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7574 insn_is_jump to gdbarch.
7575 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7576 * gdbarch.h: Regenerated.
7577 * gdbarch.c: Regenerated.
7578 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7579 (default_insn_is_jump): New.
7580 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7581 (default_insn_is_jump): New.
7583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7585 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7587 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7588 (btrace_read_type) <btrace_read_new>: Change to ...
7589 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7591 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7593 * common/linux-btrace.c (linux_read_btrace): Free trace from
7596 2014-01-15 Doug Evans <dje@google.com>
7598 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7601 2014-01-15 Tom Tromey <tromey@redhat.com>
7603 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7604 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7605 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7606 (set_objfile_main_name): New function.
7607 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7608 language_of_main>: New fields.
7609 (set_objfile_main_name): Declare.
7610 * symtab.c (find_main_name): Loop over objfiles to find the main
7612 (set_main_name): Now static.
7613 (get_main_info): Add comment.
7614 * symtab.h (set_main_name): Don't declare.
7616 2014-01-15 Tom Tromey <tromey@redhat.com>
7618 * symtab.c (main_progspace_key): New global.
7619 (struct main_info): New.
7620 (name_of_main, language_of_main): Remove.
7621 (get_main_info, main_info_cleanup): New function.
7622 (set_main_name, main_name, main_language): Use get_main_info.
7623 (_initialize_symtab): Initialize main_progspace_key.
7625 2014-01-15 Tom Tromey <tromey@redhat.com>
7627 * dbxread.c (process_one_symbol): Update.
7628 * dwarf2read.c (read_partial_die): Update.
7629 * symfile.c (set_initial_language): Call main_language.
7630 * symtab.c (language_of_main): Now static.
7631 (set_main_name): Add 'lang' parameter.
7632 (find_main_name): Update.
7633 (main_language): New function.
7634 (symtab_observer_executable_changed): Update.
7635 * symtab.h (set_main_name): Update.
7636 (language_of_main): Remove.
7637 (main_language): Declare.
7639 2014-01-15 Tom Tromey <tromey@redhat.com>
7641 * symfile.c (init_entry_point_info): Use new "initialized" field.
7643 * objfiles.h (struct entry_point) <initialized>: New field.
7644 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7645 (struct objfile) <ei>: ...here. Remove.
7646 * objfiles.c (entry_point_address_query): Update.
7648 2014-01-15 Tom Tromey <tromey@redhat.com>
7650 * objfiles.c (entry_point_address_query): Relocate entry point
7652 (objfile_relocate1): Do not relocate entry point address.
7653 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7654 <the_bfd_section_index>: New field.
7655 * symfile.c (init_entry_point_info): Find the entry point's
7658 2014-01-15 Tom Tromey <tromey@redhat.com>
7660 * solib-frv.c (enable_break): Use entry_point_address_query.
7662 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7664 * NEWS: Add note on improved process record-replay on
7665 arm*-linux* targets.
7667 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7669 * arm-tdep.c (enum arm_record_result): New enum.
7670 (arm_record_unsupported_insn): New function.
7671 (arm_record_coproc_data_proc): Removed.
7672 (thumb2_record_ld_st_multiple): New function.
7673 (thumb2_record_ld_st_dual_ex_tbb): New function.
7674 (thumb2_record_data_proc_sreg_mimm): New function.
7675 (thumb2_record_ps_dest_generic): New function.
7676 (thumb2_record_branch_misc_cntrl): New function.
7677 (thumb2_record_str_single_data): New function.
7678 (thumb2_record_ld_mem_hints): New function.
7679 (thumb2_record_ld_word): New function.
7680 (thumb2_record_lmul_lmla_div): New function.
7681 (thumb2_record_decode_insn_handler): New function.
7682 (decode_insn): Add thumb32 instruction handlers.
7684 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7686 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7687 (struct arm_linux_record_tdep): Declare.
7688 (arm_canonicalize_syscall): New function.
7689 (arm_all_but_pc_registers_record): New function.
7690 (arm_linux_syscall_record): New function.
7691 (arm_linux_init_abi): Add syscall recording constructs.
7692 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7693 decoding. (arm_record_coproc_data_proc): Update arm syscall
7695 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7696 <arm_syscall_record>: New field.
7697 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7700 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7702 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7703 register for push instruction recording.
7705 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7707 * arm-tdep.c (thumb_record_misc): Update to correct logical
7708 error while recording ldm, ldmia and pop instructions.
7710 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7712 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7714 2014-01-15 Pedro Alves <palves@redhat.com>
7716 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7717 (go32_resume, go32_fetch_registers, store_register)
7718 (go32_store_registers, go32_prepare_to_store)
7719 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7720 (go32_create_inferior, go32_can_run, go32_terminal_init)
7721 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7724 2014-01-15 Tom Tromey <tromey@redhat.com>
7726 * target.h (async_callback_ftype): New typedef.
7727 (struct target_ops) <to_async>: Use it.
7729 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7731 * python/py-value.c (get_field_type): Remove unnecessary curly
7732 braces for single-statement if block.
7734 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7736 * python/py-type.c (convert_field): Add missing empty line
7739 2014-01-14 Doug Evans <dje@google.com>
7741 * symfile.h (expand_symtabs_matching): Renamed from
7742 expand_partial_symbol_names. Update prototype.
7743 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7744 * symfile.c (expand_symtabs_matching): Renamed from
7745 expand_partial_symbol_names. New args file_matcher, kind.
7746 Rename arg fun to symbol_matcher.
7747 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7748 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7749 ada_expand_partial_symbol_name.
7750 (ada_make_symbol_completion_list): Update to call
7751 expand_symtabs_matching.
7752 (ada_add_global_exceptions): Call expand_symtabs_matching.
7753 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7754 call map_symbol_filenames.
7755 * symtab.c (sources_info): Update to call map_symbol_filenames.
7756 (search_symbols): Call expand_symtabs_matching.
7757 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7758 (default_make_symbol_completion_list_break_on): Update to call
7759 expand_symtabs_matching.
7760 (make_source_files_completion_list): Update to call
7761 map_symbol_filenames.
7763 2014-01-14 Doug Evans <dje@google.com>
7765 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7766 (expand_symtabs_symbol_matcher_ftype): New typedef.
7767 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7768 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7769 * symfile.c (expand_partial_symbol_names): Update to use
7770 expand_symtabs_symbol_matcher_ftype.
7771 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7772 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7773 Arg name_matcher renamed to symbol_matcher.
7774 * psymtab.c (recursively_search_psymtabs): Update to use
7775 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7777 (expand_symtabs_matching_via_partial): Update to use
7778 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7779 Arg name_matcher renamed to symbol_matcher.
7781 2014-01-14 Doug Evans <dje@google.com>
7783 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7784 (map_partial_symbol_filenames): Ditto.
7785 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7786 (map_partial_symbol_filenames): Ditto.
7787 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7788 (map_partial_symbol_filenames): Ditto.
7789 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7790 (map_partial_symbol_filenames): Ditto.
7791 * symtab.c: Delete #include "psymtab.h".
7793 2014-01-14 Pedro Alves <palves@redhat.com>
7794 Tom Tromey <tromey@redhat.com>
7796 * infrun.c (use_displaced_stepping): Use find_record_target
7797 instead of RECORD_IS_USED.
7798 (adjust_pc_after_break): Use record_full_is_used instead of
7800 * record-btrace.c (record_btrace_open): Call record_preopen
7801 instead of checking RECORD_IS_USED.
7802 * record-full.c (record_full_shortname)
7803 (record_full_core_shortname): New globals.
7804 (record_full_is_used): New function.
7805 (find_full_open): Call record_preopen instead of checking
7807 (init_record_full_ops): Set the target's shortname to
7808 record_full_shortname.
7809 (init_record_full_core_ops): Set the target's shortname to
7810 record_full_core_shortname.
7811 * record-full.h (record_full_is_used): Declare.
7812 * record.c (find_record_target): Make extern.
7813 (record_preopen): New function.
7814 * record.h (RECORD_IS_USED): Delete macro.
7815 (find_record_target, record_preopen): Declare functions.
7817 2014-01-14 Yao Qi <yao@codesourcery.com>
7819 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7820 'len''s type to ULONGEST.
7821 (core_xfer_shared_libraries_aix): Likewise.
7822 * gdbarch.c, gdbarch.h: Regenerated.
7823 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7824 Change type of 'len' to ULONGEST.
7825 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7826 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7828 2014-01-14 Yao Qi <yao@codesourcery.com>
7830 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7831 type of 'len' to ULONGEST.
7832 (linux_xfer_osdata_processgroups): Likewise.
7833 (linux_xfer_osdata_threads): Likewise.
7834 (linux_xfer_osdata_fds): Likewise.
7835 (linux_xfer_osdata_isockets): Likewise.
7836 (linux_xfer_osdata_shm): Likewise.
7837 (linux_xfer_osdata_sem): Likewise.
7838 (linux_xfer_osdata_msg): Likewise.
7839 (linux_common_xfer_osdata): Likewise.
7840 (struct osdata_type) <getter>: Likewise.
7841 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7844 2014-01-14 Yao Qi <yao@codesourcery.com>
7846 * target.h (target_xfer_partial_ftype): Update.
7847 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7849 * aix-thread.c (aix_thread_xfer_partial): Change type of
7850 argument 'len' to ULONGEST.
7851 * auxv.c (procfs_xfer_auxv): Likewise.
7852 (ld_so_xfer_auxv): Likewise.
7853 (memory_xfer_auxv): Likewise.
7854 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7855 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7856 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7857 * corelow.c (core_xfer_partial): Likewise.
7858 * ctf.c (ctf_xfer_partial): Likewise.
7859 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7861 (darwin_read_dyld_info): Likewise.
7862 (darwin_xfer_partial): Likewise.
7863 * exec.c (section_table_xfer_memory_partial): Likewise.
7864 (exec_xfer_partial): Likewise.
7865 * exec.h (section_table_xfer_memory_partial): Update
7867 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7868 instead of plongest.
7869 (gnu_xfer_partial): Likewise.
7870 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7871 (ia64_hpux_xfer_solib_got): Likewise.
7872 (ia64_hpux_xfer_partial): Likewise.
7873 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7874 * inf-ptrace.c (inf_ptrace_xfer_partial):
7875 * inf-ttrace.c (inf_ttrace_xfer_partial):
7876 * linux-nat.c (linux_xfer_siginfo): Likewise.
7877 (linux_nat_xfer_partial): Likewise.
7878 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7879 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7880 * monitor.c (monitor_xfer_memory): Likewise.
7881 (monitor_xfer_partial): Likewise.
7882 * procfs.c (procfs_xfer_partial): Likewise.
7883 * record-full.c (record_full_xfer_partial): Likewise.
7884 (record_full_core_xfer_partial): Likewise.
7885 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7886 instead of plongest.
7887 (gdbsim_xfer_partial): Likewise.
7888 * remote.c (remote_xfer_partial): Likewise.
7889 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7890 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7892 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7893 (rs6000_xfer_shared_libraries): Likewise.
7894 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7895 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7896 (sparc_xfer_partial): Likewise.
7897 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7898 (spu_xfer_partial): Likewise.
7899 * spu-multiarch.c (spu_xfer_partial): Likewise.
7900 * target.c (target_read_live_memory): Likewise.
7901 (memory_xfer_live_readonly_partial): Likewise.
7902 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7903 (target_xfer_partial, default_xfer_partial): Likewise.
7904 (current_xfer_partial): Likewise.
7905 * tracepoint.c (tfile_xfer_partial): Likewise.
7906 * windows-nat.c (windows_xfer_memory): Likewise. Call
7907 pulongest instead of plongest.
7908 (windows_xfer_partial): Likewise.
7909 (windows_xfer_shared_libraries): Likewise.
7911 2014-01-14 Yao Qi <yao@codesourcery.com>
7913 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7914 target_xfer_partial_ftype.
7916 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7920 * valops.c (value_struct_elt_bitpos): New function
7921 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7922 object to 'None' if the field name is an empty string ("").
7923 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7924 attribute to look for a field when 'name' is 'None'.
7925 (get_field_type): New function
7927 2014-01-13 Doug Evans <dje@google.com>
7930 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7931 (try_open_dwop_file): Ditto.
7932 * gdb_bfd.c: #include "vec.h".
7933 (bfdp): New typedef.
7934 (struct gdb_bfd_data): New member included_bfds.
7935 (gdb_bfd_unref): Unref all included bfds.
7936 (gdb_bfd_record_inclusion): New function.
7937 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7939 2014-01-13 Tom Tromey <tromey@redhat.com>
7941 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7943 2014-01-13 Tom Tromey <tromey@redhat.com>
7945 * defs.h (use_windows): Remove.
7946 * gdb.c (main): Update.
7947 * main.c (captured_main, gdb_main): Update.
7948 * main.h (struct captured_main_args) <use_windows>: Remove.
7949 * top.c (use_windows): Remove.
7951 2014-01-13 Tom Tromey <tromey@redhat.com>
7953 * defs.h (deprecated_flush_hook): Remove.
7955 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7958 * linux-thread-db.c (try_thread_db_load): Add parameter
7959 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7960 (try_thread_db_load_from_pdir_1): Move it there from here.
7961 (try_thread_db_load_from_sdir): Update caller.
7962 (try_thread_db_load_from_dir): Move it there from here.
7964 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7966 * regformats/regdat.sh: Always rewrite the register file.
7968 2014-01-13 Pedro Alves <palves@redhat.com>
7970 * Makefile.in (CHECK_HEADERS): New variable.
7971 (check-headers:): New rule.
7973 2014-01-13 Tom Tromey <tromey@redhat.com>
7975 * cli/cli-setshow.c (do_set_command): Update.
7976 * defs.h (deprecated_set_hook): Remove.
7977 * top.c (deprecated_set_hook): Remove.
7979 2014-01-13 Pedro Alves <palves@redhat.com>
7981 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7982 the tracepoint if the PC is a pseudo-register.
7984 2014-01-13 Tom Tromey <tromey@redhat.com>
7986 * defs.h (XCALLOC): Remove.
7987 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7988 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7989 * dwarf2loc.c (allocate_piece_closure): Likewise.
7990 * elfread.c (elf_symfile_segments): Likewise.
7991 (elf_symfile_segments): Likewise.
7992 * gdbtypes.c (copy_type_recursive): Likewise.
7993 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7994 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7995 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7997 * mt-tdep.c (mt_gdbarch_init): Likewise.
7998 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8000 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8001 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8002 * registry.c (registry_alloc_data): Likewise.
8003 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8004 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8005 * serial.c (serial_fdopen_ops): Likewise.
8006 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8008 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8009 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8012 2014-01-13 Tom Tromey <tromey@redhat.com>
8014 * defs.h (XMALLOC): Remove.
8015 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8016 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8017 * cli-out.c (struct ui_out *): Likewise.
8018 * cli/cli-dump.c (add_dump_command): Likewise.
8019 (add_dump_command): Likewise.
8020 * complaints.c (get_complaints): Likewise.
8021 (find_complaint): Likewise.
8022 * dwarf2-frame.c (execute_cfa_program): Likewise.
8023 * dwarf2read.c (abbrev_table_read_table): Likewise.
8024 * gdbarch.sh: Likewise.
8025 * gdbarch.c: Rebuild.
8026 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8027 * interps.c (interp_new): Likewise.
8028 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8029 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8030 * mi/mi-console.c (mi_console_file_new): Likewise.
8031 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8032 * mi/mi-out.c (mi_out_new): Likewise.
8033 * mi/mi-parse.c (mi_parse): Likewise.
8034 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8035 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8036 * observer.c (xalloc_observer_list_node): Likewise.
8037 * regcache.c (regcache_xmalloc_1): Likewise.
8038 * reggroups.c (reggroup_new): Likewise.
8039 (_initialize_reggroup): Likewise.
8040 * registry.c (register_data_with_cleanup): Likewise.
8041 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8042 * ser-base.c (serial_ttystate): Likewise.
8043 * ser-mingw.c (make_pipe_state): Likewise.
8044 * ser-pipe.c (pipe_open): Likewise.
8045 * serial.c (serial_open): Likewise.
8046 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8047 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8048 (tui_alloc_win_info): Likewise.
8049 (tui_add_content_elements): Likewise.
8050 * tui/tui-file.c (tui_file_new): Likewise.
8051 * tui/tui-out.c (tui_out_new): Likewise.
8052 * ui-file.c (mem_file_new): Likewise.
8053 * ui-out.c (push_level): Likewise.
8054 (make_cleanup_ui_out_end): Likewise.
8055 (append_header_to_list): Likewise.
8056 (ui_out_new): Likewise.
8057 * user-regs.c (user_reg_add_builtin): Likewise.
8059 2014-01-13 Tom Tromey <tromey@redhat.com>
8061 * defs.h (XZALLOC): Remove.
8062 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8063 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8064 (get_ada_tasks_inferior_data): Likewise.
8065 * auto-load.c (get_auto_load_pspace_data): Likewise.
8066 * auxv.c (get_auxv_inferior_data): Likewise.
8067 * bfd-target.c (target_bfd_reopen): Likewise.
8068 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8069 (deprecated_insert_raw_breakpoint): Likewise.
8070 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8071 * corelow.c (core_open): Likewise.
8072 * darwin-nat.c (darwin_check_new_threads): Likewise.
8073 (darwin_attach_pid): Likewise.
8074 * dummy-frame.c (dummy_frame_push): Likewise.
8075 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8076 * dwarf2loc.c (allocate_piece_closure): Likewise.
8077 * elfread.c (elf_symfile_segments): Likewise.
8078 * eval.c (ptrmath_type_p): Likewise.
8079 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8080 * gdbtypes.c (alloc_type_arch): Likewise.
8081 (alloc_type_instance): Likewise.
8082 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8083 * inf-child.c (inf_child_can_use_agent): Likewise.
8084 * inflow.c (get_inflow_inferior_data): Likewise.
8085 * infrun.c (save_infcall_suspend_state): Likewise.
8086 * jit.c (jit_reader_load): Likewise.
8087 (get_jit_objfile_data): Likewise.
8088 (get_jit_program_space_data): Likewise.
8089 (jit_object_open_impl): Likewise.
8090 (jit_symtab_open_impl): Likewise.
8091 (jit_block_open_impl): Likewise.
8092 (jit_frame_sniffer): Likewise.
8093 * linux-fork.c (add_fork): Likewise.
8094 * maint.c (make_command_stats_cleanup): Likewise.
8095 * objfiles.c (get_objfile_pspace_data): Likewise.
8096 * opencl-lang.c (struct lval_closure): Likewise.
8097 * osdata.c (osdata_start_osdata): Likewise.
8098 * progspace.c (new_address_space): Likewise.
8099 (add_program_space): Likewise.
8100 * remote-sim.c (get_sim_inferior_data): Likewise.
8101 * sh-tdep.c (sh_gdbarch_init): Likewise.
8102 * skip.c (Ignore): Likewise.
8103 (skip_delete_command): Likewise.
8104 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8105 (library_list_start_library): Likewise.
8106 (solib_aix_current_sos): Likewise.
8107 * solib-darwin.c (get_darwin_info): Likewise.
8108 (darwin_current_sos): Likewise.
8109 * solib-dsbt.c (get_dsbt_info): Likewise.
8110 * solib-ia64-hpux.c (new_so_list): Likewise.
8111 (ia64_hpux_get_solib_linkage_addr): Likewise.
8112 * solib-spu.c (append_ocl_sos): Likewise.
8113 (spu_current_sos): Likewise.
8114 * solib-svr4.c (get_svr4_info): Likewise.
8115 (svr4_keep_data_in_core): Likewise.
8116 (library_list_start_library): Likewise.
8117 (svr4_default_sos): Likewise.
8118 (svr4_read_so_list): Likewise.
8119 * solib-target.c (library_list_start_library): Likewise.
8120 (solib_target_current_sos): Likewise.
8121 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8122 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8123 * symfile.c (default_symfile_segments): Likewise.
8124 * target-descriptions.c (tdesc_data_init): Likewise.
8125 (tdesc_create_reg): Likewise.
8126 (struct tdesc_type *): Likewise.
8127 (tdesc_create_vector): Likewise.
8128 (tdesc_set_struct_size): Likewise.
8129 (struct tdesc_type *): Likewise.
8130 (tdesc_free_feature): Likewise.
8131 (tdesc_create_feature): Likewise.
8132 * windows-nat.c (windows_add_thread): Likewise.
8133 (windows_make_so): Likewise.
8134 * xml-support.c (gdb_xml_body_text): Likewise.
8135 (gdb_xml_create_parser_and_cleanup): Likewise.
8136 (xml_process_xincludes): Likewise.
8137 * xml-syscall.c (allocate_syscalls_info): Likewise.
8138 (syscall_create_syscall_desc): Likewise.
8140 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8142 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8143 function, with code from i386_stap_parse_special_token.
8144 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8145 (i386_stap_parse_special_token): Move code to the two functions
8148 2014-01-09 Pedro Alves <palves@redhat.com>
8149 Hui Zhu <hui@codesourcery.com>
8152 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8153 bp_err_string. Don't mark the location shlib_disabled if the
8154 error thrown wasn't a generic or memory error. Catch errors
8155 thrown while inserting breakpoints in overlayed code. Output
8156 error message of software breakpoints.
8157 * remote.c (remote_insert_breakpoint): If this breakpoint has
8158 target-side commands but this stub doesn't support Z0 packets,
8159 throw NOT_SUPPORTED_ERROR error.
8160 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8161 * target.h (target_insert_breakpoint): Extend comment.
8162 (target_insert_hw_breakpoint): Add comment.
8164 2014-01-08 Pedro Alves <palves@redhat.com>
8166 * remote.c (remote_add_thread): Add threads silently if starting
8168 (remote_notice_new_inferior): If in all-stop, and starting up,
8169 don't call notice_new_inferior.
8170 (get_current_thread): New function, factored out from ...
8171 (add_current_inferior_and_thread): ... this. Adjust.
8172 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8173 found any thread, then select the remote's current thread as GDB's
8176 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8178 * NEWS: Create a new section for the next release branch.
8179 Rename the section of the current branch, now that it has
8182 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8184 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8185 * version.in: Bump version to 7.7.50.DATE-cvs.
8187 2014-01-08 Yao Qi <yao@codesourcery.com>
8189 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8190 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8191 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8193 2014-01-08 Yao Qi <yao@codesourcery.com>
8195 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8196 return value of bfd_get_filename to symbol_file_add_from_bfd.
8198 2014-01-08 Pierre Muller <muller@sourceware.org>
8201 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8202 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8203 to prim_record_mininal_symbol_and_info.
8204 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8205 in call to prim_record_minimal_symbol_and_info.
8206 (read_pe_exported_syms): Set index field of section_data.
8208 2014-01-07 Andrew Pinski <apinski@cavium.com>
8210 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8211 * features/aarch64.c: Regenerate.
8213 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8215 * target.c (return_null): Define.
8216 (update_current_target): Use it instead of return_zero for
8217 functions that return a pointer.
8219 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8221 * source.c (add_path): Fix check for duplicated paths in the previously
8224 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8226 * ada-lang.c: Remove duplicated include statements.
8227 * alphabsd-nat.c: Ditto.
8228 * amd64-darwin-tdep.c: Ditto.
8229 * amd64fbsd-nat.c: Ditto.
8230 * auto-load.c: Ditto.
8232 * breakpoint.c: Ditto.
8234 * fork-child.c: Ditto.
8235 * gdb_usleep.c: Ditto.
8236 * i386-darwin-tdep.c: Ditto.
8237 * i386fbsd-nat.c: Ditto.
8239 * inferior.c: Ditto.
8241 * linux-nat.c: Ditto.
8242 * linux-tdep.c: Ditto.
8243 * m68kbsd-nat.c: Ditto.
8244 * m68klinux-nat.c: Ditto.
8245 * microblaze-tdep.c: Ditto.
8246 * mips-linux-tdep.c: Ditto.
8247 * mn10300-tdep.c: Ditto.
8248 * nto-tdep.c: Ditto.
8249 * opencl-lang.c: Ditto.
8251 * printcmd.c: Ditto.
8252 * regcache.c: Ditto.
8253 * remote-m32r-sdi.c: Ditto.
8257 * tilegx-linux-nat.c: Ditto.
8258 * tilegx-tdep.c: Ditto.
8259 * tracepoint.c: Ditto.
8261 * vaxbsd-nat.c: Ditto.
8262 * windows-nat.c: Ditto.
8263 * xtensa-tdep.c: Ditto.
8265 2014-01-07 Yao Qi <yao@codesourcery.com>
8267 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8269 2014-01-07 Yao Qi <yao@codesourcery.com>
8270 Joel Brobecker <brobecker@adacore.com>
8272 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8273 (pdc_write_regs): Likewise.
8274 (fetch_regs_kernel_thread): Likewise.
8275 (store_regs_kernel_thread): Likewise.
8277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8279 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8280 tagged type objects to their actual type.
8282 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8284 * ada-valprint.c (print_field_values): Add "language" parameter.
8285 Update calls to print_field_values and print_variant_part.
8286 Pass new parameter "language" in call to val_print instead
8287 of "current_language". Replace call to ada_val_print by call
8289 (print_variant_part): Add "language" parameter.
8290 (ada_val_print_struct_union): Update call to print_field_values.
8292 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8294 * ada-valprint.c (ui_memcpy): Delete.
8295 (ada_print_floating): Update documentation. Add empty line
8296 between between function documentation and implementation.
8297 Delete variable "buffer". Use ui_file_xstrdup in place of
8298 ui_file_put. Minor adjustments following this change.
8300 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8302 * ada-valprint.c (ada_val_print_string): New function,
8303 extracted from ada_val_print_array.
8304 (ada_val_print_array): Replace extracted code by call
8305 to ada_val_print_string followed by a return. Move
8306 "else" branch to the function's top block.
8308 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8310 * ada-valprint.c (ada_val_print_array): Move implementation
8311 down. Rename parameter "offset" and "val" into "offset_aligned"
8312 and "original_value" respectively. Add parameter "offset".
8314 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8316 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8317 re-organizing the code. Change the "???" message printed
8318 when target type is a TYPE_CODE_UNDEF into
8319 "<ref to undefined type>".
8321 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8323 * ada-valprint.c (print_record): Delete, implementation inlined...
8324 (ada_val_print_struct_union): ... here. Remove call to
8325 ada_check_typedef in inlined implementation.
8327 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8329 * ada-valprint.c (ada_val_print_gnat_array): New function,
8330 extracted from ada_val_print_1;
8331 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8332 (ada_val_print_flt, ada_val_print_struct_union)
8333 (ada_val_print_ref): Likewise.
8334 (ada_val_print_1): Delete variables i and elttype.
8335 Replace extracted-out code by call to corresponding
8338 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8340 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8344 * ada-valprint.c (ada_val_print_1): Replace calls to
8345 ada_val_print_1 by calls to val_print.
8347 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8349 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8350 Update calls to self accordingly. Replace calls to c_val_print
8351 by calls to val_print.
8353 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8355 * ada-valprint.c (print_record): Delete declaration.
8356 (adjust_type_signedness, ada_val_print_1): Likewise.
8357 (ada_val_print): Move function implementation down.
8358 (print_variant_part, print_field_values, print_record):
8359 Move function implementation up.
8361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8363 * python/py-type.c (typy_get_name): New function.
8364 (type_object_getset): Add entry for attribute "name".
8365 * NEWS: Add entry mentioning this new attribute.
8367 2014-01-07 Yao Qi <yao@codesourcery.com>
8369 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8372 2014-01-07 Yao Qi <yao@codesourcery.com>
8374 * gnu-nat.c (info_port_rights): Add qualifier const to
8377 2014-01-07 Yao Qi <yao@codesourcery.com>
8379 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8381 2014-01-07 Yao Qi <yao@codesourcery.com>
8383 * gnu-nat.c (make_inf) Update declaration.
8384 (make_inf): Make it static.
8385 (inf_set_traced): Likewise.
8386 (inf_port_to_thread, inf_task_died_status): Likewise.
8388 2014-01-07 Yao Qi <yao@codesourcery.com>
8390 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8392 2014-01-07 Yao Qi <yao@codesourcery.com>
8394 * gnu-nat.c (_initialize_gnu_nat): Declare.
8396 2014-01-07 Yao Qi <yao@codesourcery.com>
8398 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8400 (struct gdbarch_info) <byte_order>: Change type to
8402 <byte_order_for_code>: Likewise.
8403 * gdbarch.c, gdbarch.h: Regenerated.
8405 2014-01-06 Sasha Smundak <asmundak@google.com>
8407 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8409 2014-01-06 Tom Tromey <tromey@redhat.com>
8411 * doublest.c (convert_doublest_to_floatformat): Use const, not
8413 * somread.c (som_symtab_read): Likewise.
8415 2014-01-07 Hui Zhu <hui@codesourcery.com>
8417 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8418 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8419 (gdb_bfd_fopen): Ditto.
8420 (gdb_bfd_openr): Ditto.
8421 (gdb_bfd_openw): Ditto.
8422 (gdb_bfd_openr_iovec): Ditto.
8423 (gdb_bfd_fdopenr): Ditto.
8424 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8425 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8427 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8429 * symfile-mem.c (symbol_file_add_from_memory): Removed
8430 gdb_bfd_stash_filename.
8432 2014-01-03 Doug Evans <dje@google.com>
8434 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8437 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8439 Update year range in copyright notice of all files.
8441 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8443 * top.c (print_gdb_version): Set copyright year to 2014.
8445 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8447 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8449 For older changes see ChangeLog-2013.
8455 version-control: never