1 2014-05-29 Pedro Alves <palves@redhat.com>
2 Tom Tromey <tromey@redhat.com>
4 * NEWS: Mention "maint set target-async", "set mi-async", and that
5 background execution commands are now always available.
6 * target.h (target_async_permitted): Update comment.
7 * target.c (target_async_permitted, target_async_permitted_1):
9 (set_target_async_command): Rename to ...
10 (maint_set_target_async_command): ... this.
11 (show_target_async_command): Rename to ...
12 (maint_show_target_async_command): ... this.
13 (_initialize_target): Adjust.
14 * infcmd.c (prepare_execution_command): Make extern.
15 * inferior.h (prepare_execution_command): Declare.
16 * infrun.c (set_observer_mode): Leave target async alone.
17 * mi/mi-interp.c (mi_interpreter_init): Install
18 mi_on_sync_execution_done as sync_execution_done observer.
19 (mi_on_sync_execution_done): New function.
20 (mi_execute_command_input_handler): Don't print the prompt if we
21 just started a synchronous command with an async target.
22 (mi_on_resume): Check sync_execution before printing prompt.
23 * mi/mi-main.h (mi_async_p): Declare.
24 * mi/mi-main.c: Include gdbcmd.h.
25 (mi_async_p): New function.
26 (mi_async, mi_async_1): New globals.
27 (set_mi_async_command, show_mi_async_command, mi_async): New
29 (exec_continue): Call prepare_execution_command.
30 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
31 (mi_execute_async_cli_command): Use mi_async_p.
32 (_initialize_mi_main): Install "set mi-async". Make
33 "target-async" a deprecated alias.
35 2014-05-29 Pedro Alves <palves@redhat.com>
37 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
38 (_initialize_cli_interp): Adjust.
39 * event-loop.c: Include "observer.h".
40 (start_event_loop): Notify 'command_error' observers instead of
41 calling display_gdb_prompt. Remove FIXME comment.
42 * event-top.c (display_gdb_prompt): Remove call into the
44 * inf-loop.c: Include "observer.h".
45 (inferior_event_handler): Notify 'command_error' observers instead
46 of calling display_gdb_prompt.
47 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
48 observers instead of calling display_gdb_prompt.
49 * interps.c (interp_set): Don't call display_gdb_prompt.
50 (current_interp_display_prompt_p): Delete.
51 * interps.h (interp_prompt_p): Delete declaration.
52 (interp_prompt_p_ftype): Delete.
53 (struct interp_procs) <prompt_proc_p>: Delete field.
54 (current_interp_display_prompt_p): Delete declaration.
55 * mi-interp.c (mi_interpreter_prompt_p): Delete.
56 (_initialize_mi_interp): Adjust.
57 * tui-interp.c (tui_init): Install 'sync_execution_done' and
58 'command_error' observers.
59 (tui_on_sync_execution_done, tui_on_command_error): New
61 (tui_display_prompt_p): Delete.
62 (_initialize_tui_interp): Adjust.
64 2014-05-29 Pedro Alves <palves@redhat.com>
67 * cli/cli-interp.c: Include infrun.h and observer.h.
68 (cli_uiout, cli_interp): New globals.
69 (cli_on_signal_received, cli_on_end_stepping_range)
70 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
72 (cli_interpreter_init): Install them as 'end_stepping_range',
73 'signal_received' 'signal_exited', 'exited' and 'no_history'
75 (_initialize_cli_interp): Remove cli_interp local.
76 * infrun.c (handle_inferior_event): Call the several stop reason
77 observers instead of printing the stop reason directly.
78 (end_stepping_range): New function.
79 (print_end_stepping_range_reason, print_signal_exited_reason)
80 (print_exited_reason, print_signal_received_reason)
81 (print_no_history_reason): Make static, and add an uiout
82 parameter. Print to that instead of to CURRENT_UIOUT.
83 * infrun.h (print_end_stepping_range_reason)
84 (print_signal_exited_reason, print_exited_reason)
85 (print_signal_received_reason print_no_history_reason): New
87 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
89 <cli_uiout>: New field.
90 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
91 uiout for CLI output. Install 'signal_received',
92 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
94 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
95 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
96 (mi_on_no_history): New functions.
97 (ui_out_free_cleanup): Delete function.
98 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
99 instead use the one already stored in the MI interpreter data.
101 * tui/tui-interp.c: Include infrun.h and observer.h.
102 (tui_interp): New global.
103 (tui_on_signal_received, tui_on_end_stepping_range)
104 (tui_on_signal_exited, tui_on_exited)
105 (tui_on_no_history): New functions.
106 (tui_init): Install them as 'end_stepping_range',
107 'signal_received' 'signal_exited', 'exited' and 'no_history'
109 (_initialize_tui_interp): Delete tui_interp local.
111 2014-05-29 Pedro Alves <palves@redhat.com>
114 * linux-nat.c (linux_nat_resume_callback): Rename the second
115 parameter to 'except'. Skip LP if it points to EXCEPT.
116 (linux_nat_resume): Don't mark the event lwp as not stopped
117 before resuming sibling lwps. Instead ask
118 linux_nat_resume_callback to skip the event lwp. Mark it as not
119 stopped after actually resuming it.
120 (linux_handle_syscall_trap): Mark the lwp as not stopped after
122 (wait_lwp): Mark the lwp as stopped here.
123 (stop_wait_callback): Mark the lwp as not stopped right after
124 resuming it. Don't mark lwps as stopped here.
125 (linux_nat_filter_event): Mark the lwp as stopped earlier.
126 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
128 2014-05-29 Pedro Alves <palves@redhat.com>
131 * infrun.c (resume): Determine how much to resume depending on
132 whether the caller wanted a step, not whether we can hardware step
133 the target. Mark all threads that we intend to run as running,
134 unless we're calling an inferior function.
135 (normal_stop): If the thread is running an infcall, don't finish
137 * target.c (target_resume): Don't mark threads as running here.
139 2014-05-28 Joel Brobecker <brobecker@adacore.com>
141 * serial.c (_initialize_serial): Remove support for
142 the "set remotebaud" and "show remotebaud" commands.
143 * NEWS: Add entry documenting the removal of that command.
145 2014-05-28 Yao Qi <yao@codesourcery.com>
147 * charset.c: Fix typo in comments.
149 2014-05-27 Gary Benson <gbenson@redhat.com>
151 * utils.c (internal_vproblem): Prompt for a bug report.
153 2014-05-26 Andy Wingo <wingo@igalia.com>
155 * guile/scm-arch.c (arscm_mark_arch_smob):
156 * guile/scm-block.c (bkscm_mark_block_smob)
157 (bkscm_mark_block_syms_progress_smob):
158 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
159 * guile/scm-exception.c (exscm_mark_exception_smob):
160 * guile/scm-frame.c (frscm_mark_frame_smob):
161 * guile/scm-iterator.c (itscm_mark_iterator_smob):
162 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
163 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
164 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
165 (ppscm_mark_pretty_printer_worker_smob):
166 * guile/scm-symbol.c (syscm_mark_symbol_smob):
167 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
168 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
169 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
171 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
174 2014-05-26 Andy Wingo <wingo@igalia.com>
175 Doug Evans <xdje42@gmail.com>
177 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
178 empty_base_class. All uses updated.
179 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
180 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
182 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
183 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
184 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
185 (gdbscm_gsmob_has_property_p, add_property_name)
186 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
187 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
188 (gdb-object-has-property?, gdb-object-properties): Remove.
189 (gdb-object-kind): Renamed from gsmob-kind.
191 2014-05-26 Andy Wingo <wingo@igalia.com>
193 * configure.ac (try_guile_versions): Allow building with guile 2.2.
194 * configure: Regenerate.
196 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
198 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
200 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
202 * record-btrace.c (record_btrace_allow_memory_access): Remove.
203 (replay_memory_access_read_only, replay_memory_access_read_write)
204 (replay_memory_access_types, replay_memory_access)
205 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
206 (cmd_set_record_btrace, cmd_show_record_btrace)
207 (cmd_show_replay_memory_access): New.
208 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
209 (record_btrace_remove_breakpoint): Replace
210 record_btrace_allow_memory_access with replay_memory_access.
211 (_initialize_record_btrace): Add commands.
214 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
216 * aarch64-linux-nat.c (asm/ptrace.h): Include.
218 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
220 * MAINTAINERS (Write After Approval): Move self back from
223 2014-05-22 Pedro Alves <palves@redhat.com>
225 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
226 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
227 (disable_randomization, enum exec_direction_kind)
228 (execution_direction, stop_registers, start_remote)
229 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
230 (wait_for_inferior, normal_stop, get_last_target_status)
231 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
232 (insert_step_resume_breakpoint_at_sal)
233 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
234 (set_step_info, print_stop_event, signal_stop_state)
235 (signal_print_state, signal_pass_state, signal_stop_update)
236 (signal_print_update, signal_pass_update)
237 (update_signals_program_target, clear_exit_convenience_vars)
238 (displaced_step_dump_bytes, update_observer_mode)
239 (signal_catch_update, gdb_signal_from_command): Move
241 * infrun.h: ... to this new file.
242 * amd64-tdep.c: Include infrun.h.
243 * annotate.c: Include infrun.h.
244 * arch-utils.c: Include infrun.h.
245 * arm-linux-tdep.c: Include infrun.h.
246 * arm-tdep.c: Include infrun.h.
247 * break-catch-sig.c: Include infrun.h.
248 * breakpoint.c: Include infrun.h.
249 * common/agent.c: Include infrun.h instead of inferior.h.
250 * corelow.c: Include infrun.h.
251 * event-top.c: Include infrun.h.
252 * go32-nat.c: Include infrun.h.
253 * i386-tdep.c: Include infrun.h.
254 * inf-loop.c: Include infrun.h.
255 * infcall.c: Include infrun.h.
256 * infcmd.c: Include infrun.h.
257 * infrun.c: Include infrun.h.
258 * linux-fork.c: Include infrun.h.
259 * linux-nat.c: Include infrun.h.
260 * linux-thread-db.c: Include infrun.h.
261 * monitor.c: Include infrun.h.
262 * nto-tdep.c: Include infrun.h.
263 * procfs.c: Include infrun.h.
264 * record-btrace.c: Include infrun.h.
265 * record-full.c: Include infrun.h.
266 * remote-m32r-sdi.c: Include infrun.h.
267 * remote-mips.c: Include infrun.h.
268 * remote-notif.c: Include infrun.h.
269 * remote-sim.c: Include infrun.h.
270 * remote.c: Include infrun.h.
271 * reverse.c: Include infrun.h.
272 * rs6000-tdep.c: Include infrun.h.
273 * s390-linux-tdep.c: Include infrun.h.
274 * solib-irix.c: Include infrun.h.
275 * solib-osf.c: Include infrun.h.
276 * solib-svr4.c: Include infrun.h.
277 * target.c: Include infrun.h.
278 * top.c: Include infrun.h.
279 * windows-nat.c: Include infrun.h.
280 * mi/mi-interp.c: Include infrun.h.
281 * mi/mi-main.c: Include infrun.h.
282 * python/py-threadevent.c: Include infrun.h.
284 2014-05-22 Pedro Alves <palves@redhat.com>
286 * infrun.c (handle_inferior_event): Store the exit code for
287 --return-child-result here, instead of ...
288 (print_exited_reason): ... here.
290 2014-05-21 Pedro Alves <palves@redhat.com>
293 * gdbthread.h (struct thread_control_state): New field
295 * infrun.c (follow_fork): Copy the new thread control field to the
297 (clear_proceed_status_thread): Clear the new thread control field.
298 (proceed): Set the new thread control field.
299 * interps.h (command_interp): Declare.
300 * interps.c (command_interpreter): New global.
301 (command_interp): New function.
302 (interp_exec): Set `command_interpreter' while here.
303 * cli-out.c (cli_uiout_dtor): New function.
304 (cli_ui_out_impl): Install it.
305 * mi/mi-interp.c: Include cli-out.h.
306 (mi_cmd_interpreter_exec): Add comment.
307 (restore_current_uiout_cleanup): New function.
308 (ui_out_free_cleanup): New function.
309 (mi_on_normal_stop): If finishing an execution command started by
310 a CLI command, or any kind of breakpoint-like event triggered,
311 print the stop event to the output (CLI) stream.
312 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
314 2014-05-21 Pedro Alves <palves@redhat.com>
316 * cli/cli-cmds.c (list_command): Handle the first "list" after the
317 current source line having changed.
318 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
319 * infrun.c (normal_stop): Adjust call to
320 set_current_sal_from_frame.
321 * source.c (clear_lines_listed_range): New function.
322 (set_current_source_symtab_and_line, identify_source_line): Clear
323 the lines listed range.
324 (line_info): Handle the first "info line" after the current source
326 * stack.c (print_stack_frame): Remove center handling.
327 (set_current_sal_from_frame): Remove 'center' parameter. Don't
330 2014-05-21 Pedro Alves <palves@redhat.com>
332 * inf-child.c (inf_child_mourn_inferior): New function.
333 * inf-child.h (inf_child_mourn_inferior): New declaration.
334 * darwin-nat.c (darwin_mourn_inferior): Use
335 inf_child_mourn_inferior.
336 * gnu-nat.c (gnu_mourn_inferior): Likewise.
337 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
338 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
339 * nto-procfs.c (procfs_mourn_inferior): Likewise.
340 * windows-nat.c (windows_mourn_inferior): Likewise.
342 2014-05-21 Doug Evans <xdje42@gmail.com>
344 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
346 2014-05-21 Doug Evans <xdje42@gmail.com>
348 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
349 (gdbscm_out_of_range_error): Ditto.
350 (gdbscm_memory_error): Ditto.
351 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
352 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
353 (gdbscm_out_of_range_error): Update.
354 (gdbscm_memory_error): Update.
355 (gdbscm_scm_to_target_string_unsafe): Delete.
357 2014-05-21 Pedro Alves <palves@redhat.com>
359 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
361 (inf_child_open_target): New function.
362 (inf_child_open): Use inf_child_open_target to push the target
363 instead of erroring out.
364 (inf_child_disconnect, inf_child_close)
365 (inf_child_maybe_unpush_target): New functions.
366 (inf_child_target): Install inf_child_disconnect and
367 inf_child_close. Store a pointer to the returned object.
368 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
370 * target.c (auto_connect_native_target): New global.
371 (show_default_run_target): New function.
372 (find_default_run_target): Return NULL if automatically connecting
373 to the native target is disabled.
374 (_initialize_target): Install set/show auto-connect-native-target.
375 * NEWS: Mention "set auto-connect-native-target", and "target
377 * linux-nat.c (super_close): New global.
378 (linux_nat_close): Call super_close.
379 (linux_nat_add_target): Store a pointer to the base class's
381 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
382 inf_child_maybe_unpush.
383 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
385 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
386 the inferior. Use inf_child_maybe_unpush_target.
387 (inf_ttrace_attach): Don't push the target if it is already
389 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
390 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
391 after mourning the inferior. Use inf_child_maybe_unpush_target.
392 (darwin_attach_pid): Don't push the target if it is already
394 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
395 mourning the inferior. Use inf_child_maybe_unpush_target.
396 (gnu_detach): Use inf_child_maybe_unpush_target.
397 * go32-nat.c (go32_create_inferior): Don't push the target if it
399 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
400 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
401 (procfs_open): Rename to ...
402 (procfs_open_1): ... this. Add target_ops parameter. Adjust
403 comments. Can target_preopen before changing node. Call
404 inf_child_open_target to push the target explicitly.
405 (procfs_attach): Don't push the target if it is already pushed.
406 (procfs_detach): Use inf_child_maybe_unpush_target.
407 (procfs_create_inferior): Don't push the target if it is already
409 (nto_native_ops): New global.
410 (procfs_open): Reimplement.
411 (procfs_native_open): New function.
412 (init_procfs_targets): Install procfs_native_open as to_open of
413 "target native". Store a pointer to the "native" target in
415 * procfs.c (procfs_attach): Don't push the target if it is already
417 (procfs_detach): Use inf_child_maybe_unpush_target.
418 (procfs_mourn_inferior): Only unpush the target after mourning the
419 inferior. Use inf_child_maybe_unpush_target.
420 (procfs_init_inferior): Don't push the target if it is already
422 * windows-nat.c (do_initial_windows_stuff): Don't push the target
423 if it is already pushed.
425 2014-05-21 Pedro Alves <palves@redhat.com>
427 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
428 and "procfs" targets are now called "native" instead.
430 2014-05-21 Pedro Alves <palves@redhat.com>
432 * go32-nat.c (go32_open): Delete.
433 (go32_target): Don't override the to_open method.
435 2014-05-21 Pedro Alves <palves@redhat.com>
437 * nto-procfs.c (procfs_can_run): New function.
438 (nto_procfs_ops): New global.
439 (init_procfs_targets): New, based on procfs_target. Install
440 "target native" in addition to "target procfs".
441 (_initialize_procfs): Call init_procfs_targets instead of adding
444 2014-05-21 Pedro Alves <palves@redhat.com>
446 * windows-nat.c (windows_target): Don't override to_shortname,
447 to_longname or to_doc.
449 2014-05-21 Pedro Alves <palves@redhat.com>
451 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
454 2014-05-21 Pedro Alves <palves@redhat.com>
456 * darwin-nat.c (_initialize_darwin_inferior): Don't override
457 to_shortname, to_longname or to_doc.
459 2014-05-21 Pedro Alves <palves@redhat.com>
461 * go32-nat.c (go32_target): Don't override to_shortname,
462 to_longname or to_doc.
464 2014-05-21 Pedro Alves <palves@redhat.com>
466 * inf-child.c (inf_child_open): Remove mention of "child".
467 (inf_child_target): Rename target to "native" instead of "child".
469 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
471 * Makefile.in (SFILES): Delete "regset.c".
472 (COMMON_OBS): Delete "regset.o".
474 * regset.h (regset_alloc): Delete prototype.
476 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
478 * sparc-linux-tdep.c (sparc32_linux_gregset)
479 (sparc32_linux_fpregset): New static regset structures.
480 (sparc32_linux_init_abi): Drop dynamic regset allocations.
481 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
483 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
484 (sparc64_linux_fpregset): New static regset structures.
485 (sparc64_linux_init_abi): Drop dynamic regset allocations.
486 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
487 New static regset structures.
488 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
489 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
490 New static regset structures.
491 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
492 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
493 New static regset structures.
494 (sparc64obsd_init_abi): Drop dynamic regset allocations.
495 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
496 New static regset structures.
497 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
499 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
501 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
502 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
503 register maps ("regmaps") from "*regset" to "*regmap". Do this
504 for all regmap types and variables.
505 * sparc-linux-tdep.c (sparc32_linux_step_trap)
506 (sparc32_linux_supply_core_gregset)
507 (sparc32_linux_collect_core_gregset)
508 (sparc32_linux_supply_core_fpregset)
509 (sparc32_linux_collect_core_fpregset): Likewise.
510 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
511 (sparc_gregmap, sparc_fpregmap): ... these.
512 (sparc_supply_gregset, sparc_collect_gregset)
513 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
514 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
515 (_initialize_sparc_nat): Rename regmaps.
516 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
517 (sparc_gregmap, sparc_fpregmap): ... these.
518 (sparc_supply_gregset, sparc_collect_gregset)
519 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
520 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
522 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
523 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
525 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
527 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
528 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
529 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
531 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
532 (sparc32_bsd_fpregset): Rename to...
533 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
534 (sparc32_bsd_fpregmap): ... these.
535 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
536 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
537 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
538 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
539 (struct sparc_gregmap, struct sparc_fpregmap)
540 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
541 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
542 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
543 (sparc32_supply_regset, sparc32_collect_gregset)
544 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
546 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
547 (sparc64_linux_ptrace_gregmap): ... this.
548 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
549 (_initialize_sparc64_linux_nat): Rename regmaps.
550 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
551 (sparc64_linux_core_gregmap): ... this.
552 (sparc64_linux_supply_core_gregset)
553 (sparc64_linux_collect_core_gregset)
554 (sparc64_linux_supply_core_fpregset)
555 (sparc64_linux_collect_core_fpregset): Rename regmaps.
556 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
557 (sparc64_sol2_fpregset): Rename to...
558 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
559 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
560 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
562 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
563 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
564 (sparc64_bsd_fpregset): Rename to...
565 (struct sparc_gregmap, sparc64_sol2_gregmap)
566 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
567 (sparc64_bsd_fpregmap): ... these.
568 (sparc64_supply_gregset, sparc64_collect_gregset)
569 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
571 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
572 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
573 (sparc64fbsd_gregmap): ... this.
574 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
575 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
577 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
578 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
579 (sparc64nbsd_collect_fpregset): Likewise.
580 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
581 (sparc64nbsd_gregmap): ... this.
582 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
584 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
585 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
586 (sparc64obsd_gregmap): ... this.
587 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
589 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
590 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
591 (sparc32nbsd_gregmap): ... this.
592 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
595 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
597 * score-tdep.c (score7_linux_gregset): New static regset
599 (score7_linux_regset_from_core_section): Remove dynamic regset
601 (score_gdbarch_init): Drop allocation of tdep structure.
602 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
604 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
606 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
608 (am33_regset_from_core_section): Remove dynamic regset
611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
613 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
614 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
616 (mips_linux_regset_from_core_section): Remove dynamic regset
618 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
619 'gregset64', 'fpregset', and 'fpregset64'.
620 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
623 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
625 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
627 (amd64_regset_from_core_section): Remove dynamic regset
629 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
631 (amd64obsd_regset_from_core_section): Remove dynamic regset
633 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
635 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
636 x86-common regset supply function.
637 * i386-tdep.c (i386_collect_gregset): Make static.
638 (i386_gregset): New global regset structure.
639 (i386_fpregset, i386_xstateregset): New static regset structures.
640 (i386_regset_from_core_section): Remove dynamic regset
642 (i386_gdbarch_init): Remove initialization of tdep fields
643 'gregset', 'fpregset', and 'xstateregset'.
644 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
645 'fpregset', and 'xstateregset'.
646 (i386_collect_gregset): Remove prototype.
647 (i386_gregset): New declaration.
648 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
650 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
653 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
655 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
656 (arm_linux_vfpregset): New static regset structures.
657 (arm_linux_regset_from_core_section): Remove dynamic allocation of
659 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
660 and 'vfpregset' fields.
662 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
664 * aarch64-linux-tdep.c (aarch64_linux_gregset)
665 (aarch64_linux_fpregset): New static regset structures.
666 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
667 of regset structures.
668 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
671 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
673 * regset.h (struct regset): Remove gdbarch field.
674 * regset.c (regset_alloc): Drop initialization of gdbarch field.
675 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
676 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
678 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
679 (ppc32_linux_fpregset, ppc32_linux_vrregset)
680 (ppc32_linux_vsxregset): Likewise.
681 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
682 via the regcache instead of the regset.
683 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
684 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
685 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
686 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
689 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
691 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
693 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
694 (alphanbsd_aout_gregset): Likewise.
695 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
696 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
698 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
699 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
701 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
702 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
703 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
704 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
705 * m88k-tdep.c (m88k_gregset): Likewise.
706 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
707 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
708 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
709 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
710 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
711 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
712 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
713 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
714 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
716 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
717 * sh-tdep.h (sh_corefile_gregset): Likewise.
718 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
719 * vax-tdep.c (vax_gregset): Likewise.
721 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
723 Fix TLS access for -static -pthread.
724 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
725 (try_thread_db_load_1): Initialize it.
726 (thread_db_get_thread_local_address): Call it if LM is zero.
727 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
728 * target.h (struct target_ops) (to_get_thread_local_address): Add
729 load_module_addr comment.
731 2014-05-21 Pedro Alves <palves@redhat.com>
733 * dcache.c (dcache_read_memory_partial): If reading the cache line
734 fails, fallback to reading just the memory the caller wanted.
736 2014-05-20 Doug Evans <dje@google.com>
738 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
739 instead of get_current_arch.
741 2014-05-20 Pedro Alves <palves@redhat.com>
743 * NEWS: Mention that compare-sections now works with all targets.
745 * remote.c (PACKET_qCRC): New enum value.
746 (remote_verify_memory): Don't send qCRC if the target has no
747 execution. Use packet_support/packet_ok. If the target doesn't
748 support the qCRC packet, fallback to a deep memory copy.
749 (compare_sections_command): Say "target image" instead of "remote
751 (_initialize_remote): Add PACKET_qCRC to the list of config
752 packets that have no associated command. Extend comment.
753 * target.c (simple_verify_memory, default_verify_memory): New
755 * target.h (struct target_ops) <to_verify_memory>: Default to
756 default_verify_memory.
757 (simple_verify_memory): New declaration.
758 * target-delegates.c: Regenerate.
760 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
762 * record-btrace.c (record_btrace_step_thread): Check for empty history.
764 2014-05-20 Hui Zhu <hui@codesourcery.com>
765 Yao Qi <yao@codesourcery.com>
768 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
769 and change address of sp and pc.
771 2014-05-19 Tom Tromey <tromey@redhat.com>
773 * gdbtypes.c (rank_function): Use XNEWVEC.
774 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
776 2014-05-19 Doug Evans <dje@google.com>
778 * dwarf2read.c (build_type_psymtabs_1): Renamed from
779 build_type_unit_groups and moved closer to only caller. Remove
780 arguments. All references updated. Remove outdated .gdb_index
782 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
783 build_type_psymtabs_1.
785 2014-05-19 Doug Evans <dje@google.com>
787 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
788 n_type_unit_groups, all_type_unit_groups. All uses removed.
789 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
790 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
791 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
792 (add_type_unit_group_to_table): Delete.
794 2014-05-19 Doug Evans <dje@google.com>
796 * eval.c (evaluate_subexp_standard): Add some comments.
798 2014-05-17 Doug Evans <xdje42@gmail.com>
800 * progspace.c (remove_program_space): Delete, unused.
801 * progspace.h (remove_program_space): Ditto.
803 2014-05-17 Doug Evans <xdje42@gmail.com>
805 * inferior.c (prune_inferiors): Fix comment.
806 (remove_inferior_command): Call prune_program_spaces.
808 2014-05-16 Doug Evans <dje@google.com>
810 New command line option -D.
812 * main.c (set_gdb_data_directory): New function.
813 (captured_main): Recognize -D. Flag error for --data-directory "".
814 Call set_gdb_data_directory.
815 (print_gdb_help): Print --data-directory, -D.
816 * main.h (set_gdb_data_directory): Declare.
817 * top.c (staged_gdb_datadir): New static global.
818 (set_gdb_datadir): Call set_gdb_data_directory
819 (show_gdb_datadir): New function.
820 (init_main): Update init of data-directory parameter.
822 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
824 Import the "dirfd" gnulib module.
825 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
826 * gnulib/aclocal.m4: Update.
827 * gnulib/config.in: Update.
828 * gnulib/configure: Update.
829 * gnulib/import/Makefile.am: Update.
830 * gnulib/import/Makefile.in: Update.
831 * gnulib/import/dirfd.c: New.
832 * gnulib/import/m4/dirfd.m4: New.
833 * gnulib/import/m4/gnulib-cache.m4: Update.
834 * gnulib/import/m4/gnulib-comp.m4: Update.
836 2014-05-16 Pierre Muller <muller@sourceware.org>
837 Yao Qi <yao@codesourcery.com>
839 * valprint.c (print_wchar): Move the code on checking whether
840 W is a printable wide char to the default branch of switch
841 statement below. Call wchar_printable instead of gdb_iswprint.
843 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
845 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
846 ldr.w and ldrd instructions.
848 2014-05-15 Doug Evans <dje@google.com>
850 * dwarf2read.c (read_structure_type): Delete outdated comments.
852 2014-05-14 Tom Tromey <tromey@redhat.com>
854 * macrocmd.c (print_macro_definition): Reindent.
856 2014-05-13 Doug Evans <xdje42@gmail.com>
858 * python/py-cmd.c (cmdpy_completer): Add comment.
859 (completers): Make const.
861 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
863 * infrun.c (resume): Remove should_resume (unused). Move up
864 declaration of resume_ptid.
866 2014-05-13 Tom Tromey <tromey@redhat.com>
868 * language.h (unop_type_check): Remove.
869 (binop_type_check): Don't declare.
871 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
873 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
874 call to regcache_raw_collect.
876 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
878 * mi/mi-console.c (mi_console_raw_packet): Use the value from
879 mi_console->quote as the quoting character.
881 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
883 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
885 2014-04-29 Tom Tromey <tromey@redhat.com>
887 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
890 2014-05-07 Kyle McMartin <kyle@redhat.com>
892 Pushed by Joel Brobecker <brobecker@adacore.com>.
893 * aarch64-tdep.c (aarch64_software_single_step): New function.
894 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
895 with aarch64_software_single_step.
897 2014-05-05 Joel Brobecker <brobecker@adacore.com>
901 2014-05-05 Keith Seitz <keiths@redhat.com>
903 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
904 variable or history value is successfully parsed.
906 2014-05-05 Yao Qi <yao@codesourcery.com>
907 Pedro Alves <palves@redhat.com>
909 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
910 address of blocks that intersects the requested range. Trim
911 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
913 * ctf.c (ctf_xfer_partial): Likewise.
915 2014-05-05 Yao Qi <yao@codesourcery.com>
917 * printcmd.c (display_command): Remove the check to
918 target_has_execution.
920 2014-05-03 Mark Kettenis <kettenis@gnu.org>
922 * ppcobsd-nat.c: Include "obsd-nat.h".
923 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
925 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
927 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
929 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
930 and 16-bit signed and unsigned arguments. Update comment.
931 (stap_parse_probe_arguments): Extend code to handle such
932 arguments. Use warning instead of complaint to notify about
933 unrecognized bitness.
935 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
938 * stap-probe.c (stap_parse_probe_arguments): Simplify
939 check for non-prefixed probes (i.e., probes whose
940 arguments do not start with "N@"). Always set the
941 argument type to a sane value.
943 2014-05-01 David Taylor <dtaylor@emc.com>
945 * remote.c (compare_sections_command): Add -r option to compare
946 all loadable read-only sections.
948 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
950 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
951 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
953 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
954 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
955 Remove unused CORE_ADDR argument. Update all callers.
957 2014-04-29 Pedro Alves <palves@redhat.com>
959 * remote.c (struct packet_config) <detect>: Extend comment.
960 (add_packet_config_cmd): Don't set the config's detect or support
962 (init_all_packet_configs): Also initialize the config's 'detect'
964 (reset_all_packet_configs_support): New function.
965 (remote_open_1): Call reset_all_packet_configs_support instead of
966 init_all_packet_configs.
967 (_initialize_remote): Initialize all packet configs. Assert that
968 all packets have an associated command, except a few known
971 2014-04-28 Joel Brobecker <brobecker@adacore.com>
973 * dwarf2read.c (read_subrange_type): Handle dynamic
974 DW_AT_lower_bound attributes.
976 2014-04-28 Joel Brobecker <brobecker@adacore.com>
978 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
979 dynamic bounds before computing its upper bound.
980 (ada_discrete_type_low_bound): Same as above with the lower bound.
982 2014-04-28 Joel Brobecker <brobecker@adacore.com>
984 * dwarf2read.c (is_dynamic_type): Return true for dynamic
985 range types. Adjust the array handling implementation to
986 take advantage of this change.
987 (resolve_dynamic_range): New function, mostly extracted from
988 resolve_dynamic_bounds.
989 (resolve_dynamic_array): New function, mostly extracted from
990 resolve_dynamic_bounds.
991 (resolve_dynamic_bounds): Delete.
992 (resolve_dynamic_type): Reimplement. Add handling of
993 TYPE_CODE_RANGE types.
995 2014-04-28 Joel Brobecker <brobecker@adacore.com>
997 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
998 handling of parallel ___XA types.
1000 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1002 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1003 unnecessary second call to static_unwrap_type.
1005 2014-04-27 Hui Zhu <hui@codesourcery.com>
1007 * stack.c (print_frame_info): Call do_gdb_disassembly with
1008 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1010 2014-04-26 Doug Evans <xdje42@gmail.com>
1012 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1014 2014-04-25 Pedro Alves <palves@redhat.com>
1017 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1018 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1019 and newline from built string.
1020 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1021 (linux_ptrace_attach_fail_reason): ... this.
1022 * linux-nat.c (linux_nat_attach): Adjust to use
1023 linux_ptrace_attach_fail_reason.
1025 2014-04-25 Pedro Alves <palves@redhat.com>
1027 * remote.c (struct remote_state): Remove multi_process_aware,
1028 non_stop_aware, cond_tracepoints, cond_breakpoints,
1029 breakpoint_commands, fast_tracepoints, static_tracepoints,
1030 install_in_trace, disconnected_tracing,
1031 enable_disable_tracepoints, string_tracing, and
1032 augmented_libraries_svr4_read fields.
1033 (remote_multi_process_p): Move further below in the file.
1034 (struct packet_config): Add comments.
1035 (update_packet_config): Delete function.
1036 (show_packet_config_cmd): Use packet_config_support.
1037 (add_packet_config_cmd): Use NULL as set callback.
1038 (packet_ok): "set remote foo-packet"-style commands no longer
1039 change config->supported -- adjust.
1040 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1041 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1042 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1043 (PACKET_QNonStop, PACKET_multiprocess_feature)
1044 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1045 (PACKET_DisconnectedTracing_feature)
1046 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1047 (set_remote_protocol_packet_cmd): Delete function.
1048 (packet_config_support, packet_support): New functions.
1049 (set_remote_protocol_Z_packet_cmd): Don't call
1050 update_packet_config.
1051 (remote_query_attached, remote_pass_signals)
1052 (remote_program_signals, remote_threads_info)
1053 (remote_threads_extra_info, remote_start_remote): Use
1055 (remote_start_remote): Use packet_config_support and
1057 (init_all_packet_configs): Set all packets to unknown support,
1058 instead of calling update_packet_config.
1059 (remote_check_symbols): Use packet_support.
1060 (remote_supported_packet): Unconditionally set the packet config's
1062 (remote_multi_process_feature, remote_non_stop_feature)
1063 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1064 (remote_breakpoint_commands_feature)
1065 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1066 (remote_install_in_trace_feature)
1067 (remote_disconnected_tracing_feature)
1068 (remote_enable_disable_tracepoint_feature)
1069 (remote_string_tracing_feature)
1070 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1071 (remote_protocol_features): Adjust to use remote_supported_packet
1072 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1073 "ConditionalTracepoints", "ConditionalBreakpoints",
1074 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1075 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1076 "EnableDisableTracepoints", and "tracenz".
1077 (remote_query_supported): Use packet_support.
1078 (remote_open_1): Adjust.
1079 (extended_remote_attach_1): Use packet_support. Switch on the
1080 result of packet_ok instead of checking whether the packet ended
1082 (remote_vcont_resume): Use packet_support.
1083 (remote_resume, remote_stop_ns, fetch_register_using_p)
1084 (remote_prepare_to_store, store_register_using_P)
1085 (check_binary_download, remote_write_bytes): Use packet_support.
1086 (remote_vkill): Use packet_support. Switch on the result of
1087 packet_ok instead of checking whether the packet ended up
1089 (extended_remote_supports_disable_randomization): Use
1091 (extended_remote_run): Switch on the result of packet_ok instead
1092 of checking whether the packet ended up disabled.
1093 (remote_insert_breakpoint, remote_remove_breakpoint)
1094 (remote_insert_watchpoint, remote_remove_watchpoint)
1095 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1097 (remote_search_memory): Use packet_config_support.
1098 (remote_get_thread_local_address, remote_get_tib_address)
1099 (remote_hostio_send_command, remote_can_execute_reverse): Use
1101 (remote_supports_cond_tracepoints)
1102 (remote_supports_cond_breakpoints)
1103 (remote_supports_fast_tracepoints)
1104 (remote_supports_static_tracepoints)
1105 (remote_supports_install_in_trace)
1106 (remote_supports_enable_disable_tracepoint)
1107 (remote_supports_string_tracing)
1108 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1109 the packet config says the feature is enabled or disabled.
1110 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1111 (remote_get_trace_status): Use packet_support.
1112 (remote_set_disconnected_tracing): Adjust to check whether the
1113 feature is enabled with packet_support.
1114 (remote_set_trace_buffer_size, remote_use_agent)
1115 (remote_can_use_agent, remote_supports_btrace): Use
1117 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1118 Use packet_config_support.
1119 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1120 the packet config says the feature is enabled or disabled.
1121 (set_range_stepping): Use packet_support.
1123 2014-04-25 Tom Tromey <tromey@redhat.com>
1125 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1128 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1130 * NEWS: Mention support for C99 variable length arrays.
1132 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1134 * ada-lang.c (standard_exc): Expand introductory comment.
1136 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1137 Walfred Tedeschi <walfred.tedeschi@intel.com>
1139 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1141 (amd64_linux_read_description): Add code to handle AVX512 xstate
1142 mask and return respective tdesc.
1143 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1144 and features/i386/x32-avx512-linux.c.
1145 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1146 (amd64_linux_core_read_description): Add code to handle AVX512
1147 xstate mask and return respective tdesc.
1148 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1149 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1151 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1152 (tdesc_amd64_avx512_linux): New prototype.
1153 (tdesc_x32_avx512_linux): Likewise.
1154 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1155 features/i386/x32-avx512.c.
1156 (amd64_ymm_avx512_names): New register names for pseudo
1158 (amd64_ymmh_avx512_names): New register names for raw registers
1160 (amd64_k_names): New register names for K registers.
1161 (amd64_zmmh_names): New register names for ZMM raw registers.
1162 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1163 (amd64_xmm_avx512_names): New register names for XMM16-31
1165 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1167 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1168 if feature is present.
1169 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1170 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1171 (AMD64_NUM_REGS): Adjust to new number of registers.
1172 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1173 registers supplied via XSTATE by AVX512 registers.
1174 (i386_linux_read_description): Add case for AVX512.
1175 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1176 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1177 (i386_linux_core_read_description): Add case for AVX512.
1178 (i386_linux_init_abi): Install supported register note section
1180 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1182 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1183 registers to be number of zmm7h + 1.
1184 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1185 * i386-tdep.c: Include features/i386/i386-avx512.c.
1186 (i386_zmm_names): Add ZMM pseudo register names array.
1187 (i386_zmmh_names): Add ZMM raw register names array.
1188 (i386_k_names): Add K raw register names array.
1189 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1190 registers. AVX512 has 16 more ZMM registers than there are YMM
1192 (i386_zmmh_regnum_p): Add function to look up register number of
1194 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1195 (i386_k_regnum_p): Likewise for K raw registers.
1196 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1197 registers added by AVX512.
1198 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1199 registers added by AVX512.
1200 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1202 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1203 (i386_pseudo_register_name): Add ZMM pseudo registers.
1204 (i386_zmm_type): Construct and return vector registers type for ZMM
1206 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1207 ZMM0-31 pseudo registers and K registers.
1208 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1209 and YMM16-31 registers from register cache.
1210 (i386_pseudo_register_write): Add code to write K, ZMM and
1212 (i386_register_reggroup_p): Add code to include/exclude AVX512
1213 registers in/from respective register groups.
1214 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1215 registers if feature is present in xcr0.
1216 (i386_gdbarch_init): Add code to initialize AVX512 feature
1217 variables in tdep structure, wire in pseudo registers and call
1218 initialize_tdesc_i386_avx512.
1219 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1221 (i386_regnum): Add AVX512 registers.
1222 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1223 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1224 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1225 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1227 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1228 (i386_ymm_avx512_regnum_p): Likewise.
1229 (i386_k_regnum_p): Likewise.
1230 (i386_zmm_regnum_p): Likewise.
1231 (i386_zmmh_regnum_p): Likewise.
1232 * i387-tdep.c : Update year in copyright notice.
1233 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1235 (XSAVE_YMM_AVX512_ADDR): New macro.
1236 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1238 (XSAVE_XMM_AVX512_ADDR): New macro.
1239 (xsave_avx512_k_offset): New table for K register offsets in
1241 (XSAVE_AVX512_K_ADDR): New macro.
1242 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1244 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1245 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1247 (i387_collect_xsave): Add code to collect AVX512 registers from
1249 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1250 of XMM16-31 registers.
1251 (I387_NUM_K_REGS): New define for number of K registers.
1252 (I387_K0_REGNUM): New define for K0 register number.
1253 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1254 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1255 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1257 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1258 (I387_XMM16_REGNUM): New define for XMM16 register number.
1259 (I387_YMM0_REGNUM): New define for YMM0 register number.
1260 (I387_KEND_REGNUM): New define for last K register number.
1261 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1262 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1264 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1266 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1268 * features/Makefile: Add AVX512 related files.
1269 * features/i386/32bit-avx512.xml: New file.
1270 * features/i386/64bit-avx512.xml: Likewise.
1271 * features/i386/amd64-avx512-linux.c: Likewise.
1272 * features/i386/amd64-avx512-linux.xml: Likewise.
1273 * features/i386/amd64-avx512.c: Likewise.
1274 * features/i386/amd64-avx512.xml: Likewise.
1275 * features/i386/i386-avx512-linux.c: Likewise.
1276 * features/i386/i386-avx512-linux.xml: Likewise.
1277 * features/i386/i386-avx512.c: Likewise.
1278 * features/i386/i386-avx512.xml: Likewise.
1279 * features/i386/x32-avx512-linux.c: Likewise.
1280 * features/i386/x32-avx512-linux.xml: Likewise.
1281 * features/i386/x32-avx512.c: Likewise.
1282 * features/i386/x32-avx512.xml: Likewise.
1283 * regformats/i386/amd64-avx512-linux.dat: New file.
1284 * regformats/i386/amd64-avx512.dat: Likewise.
1285 * regformats/i386/i386-avx512-linux.dat: Likewise.
1286 * regformats/i386/i386-avx512.dat: Likewise.
1287 * regformats/i386/x32-avx512-linux.dat: Likewise.
1288 * regformats/i386/x32-avx512.dat: Likewise.
1289 * NEWS: Add note about new support for AVX512.
1292 2014-04-23 Pedro Alves <palves@redhat.com>
1294 * breakpoint.c (insert_bp_location): Tolerate errors if the
1295 breakpoint is set in a user-loaded objfile.
1296 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1297 location is marked shlib_disabled. If the breakpoint is set in a
1298 user-loaded objfile is a GDB-side memory breakpoint, validate it
1299 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1300 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1302 * mem-break.c (memory_validate_breakpoint): New function.
1303 * objfiles.c (userloaded_objfile_contains_address_p): New
1305 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1306 * target.h (memory_validate_breakpoint): New declaration.
1308 2014-04-23 Pedro Alves <palves@redhat.com>
1310 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1311 the breakpoint is set in a shared library, only suppress
1312 errors for software breakpoints, not hardware breakpoints.
1314 2014-04-22 Pedro Alves <palves@redhat.com>
1316 * infrun.c (schedlock_applies): New function, factored out from
1317 find_thread_needs_step_over.
1318 (find_thread_needs_step_over): Use it.
1319 (switch_back_to_stepped_thread): Always clear trap_expected if the
1320 step over is finished. Return early if scheduler locking applies.
1321 Look for the stepping thread and a potential step-over thread with
1323 (currently_stepping_or_nexting_callback): Delete.
1325 2014-04-22 Nick Clifton <nickc@redhat.com>
1327 * NEWS: Mention that ARM sim now supports tracing.
1329 2014-04-22 Yao Qi <yao@codesourcery.com>
1331 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1333 * tracefile.c (tracefile_fetch_registers): ... it. New
1335 * tracefile.h (tracefile_fetch_registers): Declare.
1336 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1337 tracefile_fetch_registers.
1339 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1342 * windows-nat.c (thread_rec): Don't display a warning when
1343 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1344 fails for any reason, set th->suspended to -1, so that we don't
1345 try to resume such a thread. Also, don't return NULL in these
1346 cases, to avoid completely ruin the session due to "PC register is
1347 not available" error.
1348 (do_windows_fetch_inferior_registers): Check errors in
1349 GetThreadContext call.
1350 (windows_continue): Accept an additional argument KILLED; if not
1351 zero, ignore errors in the SetThreadContext call, since the
1352 inferior was killed and is shutting down.
1353 (windows_resume, get_windows_debug_event)
1354 (windows_create_inferior, windows_mourn_inferior)
1355 (windows_kill_inferior): All callers of windows_continue changed
1356 to adjust to its new calling sequence.
1358 2014-04-19 Yao Qi <yao@codesourcery.com>
1360 * ctf.c (ctf_open): Call post_create_inferior.
1362 2014-04-19 Yao Qi <yao@codesourcery.com>
1364 * ctf.c (handle_id): New static variable.
1365 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1366 value. Get the declaration of event "register" and get length
1367 of field "contents".
1369 2014-04-19 Yao Qi <yao@codesourcery.com>
1371 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1373 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1375 * valops.c (oload_method_static): Remove unnecessary argument
1376 METHOD. Update all callers.
1378 2014-04-18 Pedro alves <palves@redhat.com>
1379 Tom Tromey <tromey@redhat.com>
1382 * frame.c (get_prev_frame_1): Rename to ...
1383 (get_prev_frame_always): ... this, and make extern. Adjust.
1384 (skip_artificial_frames): Use get_prev_frame_always.
1385 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1386 (get_frame_unwind_stop_reason): Adjust to rename.
1387 * frame.h (get_prev_frame_always): Declare.
1388 * inline-frame.c: Include frame.h.
1389 (inline_frame_this_id): Use get_prev_frame_always.
1391 2014-04-18 Tristan Gingold <gingold@adacore.com>
1393 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1394 code by using bfd_mach_o_get_base_address.
1396 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1398 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1399 (spu_ax_pseudo_register_collect): New function.
1400 (spu_ax_pseudo_register_push_stack): Likewise.
1401 (spu_dwarf_reg_to_regnum): Likewise.
1402 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1404 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1406 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1407 Replace FRAME argument with FRAME_ID.
1408 * gdbarch.c, gdbarch.h: Regenerate.
1409 * findvar.c (default_value_from_register): Add GDBARCH argument;
1410 replace FRAME by FRAME_ID. No longer call get_frame_id.
1411 (value_from_register): Update call to gdbarch_value_from_register.
1412 * value.h (default_value_from_register): Update prototype.
1413 * s390-linux-tdep.c (s390_value_from_register): Update interface
1414 and call to default_value_from_register.
1415 * spu-tdep.c (spu_value_from_register): Likewise.
1417 * findvar.c (address_from_register): Remove TYPE argument.
1418 Do not call value_from_register; use gdbarch_value_from_register
1419 with null_frame_id instead.
1420 * value.h (address_from_register): Update prototype.
1421 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1422 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1423 address_from_register interface change.
1425 2014-04-17 Yao Qi <yao@codesourcery.com>
1427 * gdbtypes.h: Update comments to link to types and macros'
1430 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1432 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1434 2014-04-16 Keith Seitz <keiths@redhat.com>
1437 * dwarf2read.c (skip_one_die): Check that all relative-offset
1438 sibling DIEs fall within range of the current reader's buffer.
1439 (read_partial_die): Likewise.
1441 2014-04-16 Keith Seitz <keiths@redhat.com>
1444 * cp-namespace.c (lookup_symbol_file): If the type name of
1445 `this' is NULL, return immediately.
1447 2014-04-14 Keith Seitz <keiths@redhat.com>
1450 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1451 from symbol_matches_domain in symtab.c. All local callers
1452 of symbol_matches_domain updated.
1453 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1454 search STRUCT_DOMAIN.
1455 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1456 independently. standard_lookup will do that automatically.
1457 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1458 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1459 (cp_lookup_symbol_in_namespace): Likewise.
1460 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1461 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1462 may return a STRUCT_DOMAIN match.
1463 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1464 * cp-support.c: Include language.h.
1465 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1467 * psymtab.c (match_partial_symbol): Compare the requested
1468 domain with the symbol's domain directly.
1469 (lookup_partial_symbol): Likewise.
1470 * symtab.c (lookup_symbol_in_language): Explain when/why
1471 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1472 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1473 appropriate languages.
1474 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1475 and moved to ada-lang.c
1476 (lookup_block_symbol): Explain that this function only returns
1477 symbol matching the requested DOMAIN.
1478 Compare the requested domain with the symbol's domain directly.
1479 (iterate_over_symbols): Compare the requested domain with the
1480 symbol's domain directly.
1481 * symtab.h (symbol_matches_domain): Remove.
1483 2014-04-14 Tom Tromey <tromey@redhat.com>
1486 * c-exp.y (type_aggregate_p): New function.
1487 (qualified_name, classify_inner_name): Use it.
1488 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1489 and TYPE_TARGET_TYPE of an enum type.
1490 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1492 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1493 handle TYPE_DECLARED_CLASS.
1494 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1496 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1497 * valops.c (enum_constant_from_type): New function.
1498 (value_aggregate_elt): Use it.
1499 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1502 2014-04-14 Tom Tromey <tromey@redhat.com>
1504 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1505 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1507 * value.h (value_aggregate_elt): Update.
1509 2014-04-14 Tom Tromey <tromey@redhat.com>
1511 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1513 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1515 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1516 (evaluate_subexp_standard): Pass noside argument.
1517 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1518 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1519 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1520 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1521 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1523 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1525 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1526 points to a constant blob.
1528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1530 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1531 property and store it as the high bound and flag the range accordingly.
1532 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1533 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1534 * gdbtypes.h (enum range_flags): New enum.
1535 (struct range_bounds): Add flags member.
1537 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1539 * c-typeprint.c (c_type_print_varspec_suffix): Added
1540 check for not yet resolved high bound. If unresolved, print
1541 "variable length" string to the console instead of random
1544 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1546 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1548 (ada_template_to_fixed_record_type_1): Likewise.
1549 (ada_to_fixed_type_1): Likewise.
1550 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1551 (cp_print_value): Likewise.
1552 * d-valprint.c (dynamic_array_type): Likewise.
1553 * findvar.c (address_of_variable): Likewise.
1554 * jv-valprint.c (java_value_print): Likewise.
1555 * valops.c (value_ind): Likewise.
1556 * value.c (coerce_ref): Likewise.
1558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1560 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1561 value and retrieve the dynamic type size.
1563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1565 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1566 passed to sizeof is dynamic evaluate the argument to compute the length.
1568 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1569 Joel Brobecker <brobecker@adacore.com>
1571 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1572 (dwarf2_evaluate_property): New function.
1573 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1574 * dwarf2read.c (attr_to_dynamic_prop): New function.
1575 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1577 * gdbtypes.c: Include dwarf2loc.h.
1578 (is_dynamic_type): New function.
1579 (resolve_dynamic_type): New function.
1580 (resolve_dynamic_bounds): New function.
1581 (get_type_length): New function.
1582 (check_typedef): Use get_type_length to compute type length.
1583 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1584 (TYPE_LOW_BOUND_KIND): New macro.
1585 (is_dynamic_type): New function prototype.
1586 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1587 to resolve dynamic properties of the type. Update comment.
1588 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1590 2014-04-14 Richard Henderson <rth@redhat.com>
1592 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1594 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1595 Doug Evans <xdje42@gmail.com>
1597 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1598 dereference TYPE_CODE_REF values.
1600 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1602 Revert the following changes due to regressions:
1604 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1605 (dwarf2_evaluate_property): New function.
1606 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1607 * dwarf2read.c (attr_to_dynamic_prop): New function.
1608 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1610 * gdbtypes.c: Include dwarf2loc.h.
1611 (is_dynamic_type): New function.
1612 (resolve_dynamic_type): New function.
1613 (resolve_dynamic_bounds): New function.
1614 (get_type_length): New function.
1615 (check_typedef): Use get_type_length to compute type length.
1616 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1617 (TYPE_LOW_BOUND_KIND): New macro.
1618 (is_dynamic_type): New function prototype.
1619 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1620 to resolve dynamic properties of the type. Update comment.
1621 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1623 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1624 passed to sizeof is dynamic evaluate the argument to compute the length.
1626 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1627 value and retrieve the dynamic type size.
1629 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1630 (ada_template_to_fixed_record_type_1): Likewise.
1631 (ada_to_fixed_type_1): Likewise.
1632 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1633 (cp_print_value): Likewise.
1634 * d-valprint.c (dynamic_array_type): Likewise.
1635 * eval.c (evaluate_subexp_with_coercion): Likewise.
1636 * findvar.c (address_of_variable): Likewise.
1637 * jv-valprint.c (java_value_print): Likewise.
1638 * valops.c (value_ind): Likewise.
1639 * value.c (coerce_ref): Likewise.
1641 * c-typeprint.c (c_type_print_varspec_suffix): Added
1642 check for not yet resolved high bound. If unresolved, print
1643 "variable length" string to the console instead of random
1646 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1647 property and store it as the high bound and flag the range accordingly.
1648 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1649 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1650 * gdbtypes.h (enum range_flags): New enum.
1651 (struct range_bounds): Add flags member.
1653 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1654 points to a constant blob.
1656 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1657 (evaluate_subexp_standard): Pass noside argument.
1658 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1659 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1660 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1661 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1662 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1664 2014-04-11 Keith Seitz <keiths@redhat.com>
1667 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1668 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1671 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1673 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1674 (evaluate_subexp_standard): Pass noside argument.
1675 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1676 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1677 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1678 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1679 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1681 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1683 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1684 points to a constant blob.
1686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1688 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1689 property and store it as the high bound and flag the range accordingly.
1690 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1691 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1692 * gdbtypes.h (enum range_flags): New enum.
1693 (struct range_bounds): Add flags member.
1695 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1697 * c-typeprint.c (c_type_print_varspec_suffix): Added
1698 check for not yet resolved high bound. If unresolved, print
1699 "variable length" string to the console instead of random
1702 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1704 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1705 (ada_template_to_fixed_record_type_1): Likewise.
1706 (ada_to_fixed_type_1): Likewise.
1707 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1708 (cp_print_value): Likewise.
1709 * d-valprint.c (dynamic_array_type): Likewise.
1710 * eval.c (evaluate_subexp_with_coercion): Likewise.
1711 * findvar.c (address_of_variable): Likewise.
1712 * jv-valprint.c (java_value_print): Likewise.
1713 * valops.c (value_ind): Likewise.
1714 * value.c (coerce_ref): Likewise.
1716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1718 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1719 value and retrieve the dynamic type size.
1721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1723 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1724 passed to sizeof is dynamic evaluate the argument to compute the length.
1726 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1728 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1729 (dwarf2_evaluate_property): New function.
1730 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1731 * dwarf2read.c (attr_to_dynamic_prop): New function.
1732 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1734 * gdbtypes.c: Include dwarf2loc.h.
1735 (is_dynamic_type): New function.
1736 (resolve_dynamic_type): New function.
1737 (resolve_dynamic_bounds): New function.
1738 (get_type_length): New function.
1739 (check_typedef): Use get_type_length to compute type length.
1740 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1741 (TYPE_LOW_BOUND_KIND): New macro.
1742 (is_dynamic_type): New function prototype.
1743 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1744 to resolve dynamic properties of the type. Update comment.
1745 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1749 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1750 declaring high/low bounds and change uses accordingly. Call
1751 create_range_type instead of create_static_range_type.
1752 * gdbtypes.c (create_range_type): New function.
1753 (create_range_type): Convert bounds into struct bound_prop and pass
1754 them to create_range_type.
1755 * gdbtypes.h (struct bound_prop): New struct.
1756 (create_range_type): New function prototype.
1757 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1758 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1759 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1761 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1763 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1765 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1766 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1767 * ada-lang.c: All uses of create_range_type updated.
1768 * coffread.c: All uses of create_range_type updated.
1769 * dwarf2read.c: All uses of create_range_type updated.
1770 * f-exp.y: All uses of create_range_type updated.
1771 * m2-valprint.c: All uses of create_range_type updated.
1772 * mdebugread.c: All uses of create_range_type updated.
1773 * stabsread.c: All uses of create_range_type updated.
1774 * valops.c: All uses of create_range_type updated.
1775 * valprint.c: All uses of create_range_type updated.
1777 2014-04-10 Pedro Alves <palves@redhat.com>
1779 * breakpoint.c (single_step_breakpoints)
1780 (single_step_gdbarch): Move up in the file.
1781 (one_breakpoint_xfer_memory): New function, factored out from ...
1782 (breakpoint_xfer_memory): ... here. Also process single-step
1785 2014-04-09 Tristan Gingold <gingold@adacore.com>
1787 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1789 (darwin_decode_exception_message): Free port only after use.
1791 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1793 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1794 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1795 when setting the size of call_length.
1797 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1799 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1800 dereference TYPE_CODE_REF values.
1802 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1804 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1805 end of warning message.
1807 2014-04-03 Doug Evans <dje@google.com>
1809 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1810 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1812 2014-04-02 Alan Modra <amodra@gmail.com>
1814 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1815 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1816 (struct symbol_file_add_from_memory_args): Add size field.
1817 (find_vdso_size): New function.
1818 (add_vsyscall_page): Attempt to find vdso size.
1820 2014-04-01 Doug Evans <dje@google.com>
1822 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1824 2014-04-01 Tristan Gingold <gingold@adacore.com>
1826 * darwin-nat.c (darwin_encode_reply): Add prototype.
1827 (darwin_decode_exception_message): Reply to unknown inferiors.
1828 (darwin_decode_message): Handle message by id. Ignore message
1829 to unknown inferior.
1830 (darwin_wait): Discard unknown messages, add debug trace.
1832 2014-03-31 Doug Evans <dje@google.com>
1834 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1837 2014-03-31 Doug Evans <dje@google.com>
1839 New option "set print symbol-loading".
1841 * solib.c (solib_read_symbols): Only print symbol loading messages
1843 (solib_add): If symbol loading is in "brief" mode, notify user
1844 symbols are being loaded.
1845 (reload_shared_libraries_1): Ditto.
1846 * symfile.c (print_symbol_loading_off): New static global.
1847 (print_symbol_loading_brief): New static global.
1848 (print_symbol_loading_full): New static global.
1849 (print_symbol_loading_enums): New static global.
1850 (print_symbol_loading): New static global.
1851 (print_symbol_loading_p): New function.
1852 (symbol_file_add_with_addrs): Only print symbol loading messages
1854 (_initialize_symfile): Register "print symbol-loading" set/show
1856 * symfile.h (print_symbol_loading_p): Declare.
1858 2014-03-30 Doug Evans <xdje42@gmail.com>
1860 * infrun.c (set_last_target_status): New function.
1861 (handle_inferior_event): Call it.
1863 2014-03-30 Doug Evans <xdje42@gmail.com>
1865 * inferior.h (enum stop_kind): Improve comment.
1867 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1869 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1870 a reference, strip the reference layer before calling
1871 the lang_ops value_has_mutated callback.
1873 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1875 Remove some globals from our parser.
1876 * language.c (unk_lang_parser): Add "struct parser_state"
1878 * language.h (struct language_defn) <la_parser>: Likewise.
1879 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1880 (initialize_expout): Add "struct parser_state" argument.
1881 Rewrite function to use the parser state.
1882 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1883 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1884 write_exp_elt_longcst, write_exp_elt_dblcst,
1885 write_exp_elt_decfloatcst, write_exp_elt_type,
1886 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1887 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1888 write_dollar_variable): Likewise.
1889 (parse_exp_in_context_1): Use parser state.
1890 (insert_type_address_space): Add "struct parser_state" argument.
1892 (increase_expout_size): New function.
1893 * parser-defs.h: Forward declare "struct language_defn" and
1894 "struct parser_state".
1895 (expout, expout_size, expout_ptr): Remove extern declarations.
1896 (parse_gdbarch, parse_language): Rewrite macro declarations to
1897 accept the parser state.
1898 (struct parser_state): New struct.
1899 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1900 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1901 write_exp_elt_decfloatcst, write_exp_elt_type,
1902 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1903 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1904 write_exp_msymbol, write_dollar_variable,
1905 mark_struct_expression, insert_type_address_space): Add "struct
1906 parser_state" argument.
1907 (increase_expout_size): New function.
1908 * utils.c (do_clear_parser_state): New function.
1909 (make_cleanup_clear_parser_state): Likewise.
1910 * utils.h (make_cleanup_clear_parser_state): New function
1912 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1913 Update calls to write_exp* in order to pass the parser state.
1914 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1915 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1916 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1917 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1918 * stap-probe.c (stap_parse_register_operand): Likewise.
1919 (stap_parse_single_operand): Likewise.
1920 (stap_parse_argument_1): Likewise.
1921 (stap_parse_argument): Use parser state.
1922 * stap-probe.h: Include "parser-defs.h".
1923 (struct stap_parse_info) <pstate>: New field.
1924 * c-exp.y (parse_type): Rewrite to use parser state.
1925 (yyparse): Redefine to c_parse_internal.
1926 (pstate): New global variable.
1927 (parse_number): Add "struct parser_state" argument.
1928 (write_destructor_name): Likewise.
1929 (type_exp): Update calls to write_exp* and similars in order to
1931 (exp1, exp, variable, qualified_name, space_identifier,
1932 typename, typebase): Likewise.
1933 (write_destructor_name, parse_number, lex_one_token,
1934 classify_name, classify_inner_name, c_parse): Add "struct
1935 parser_state" argument. Update function to use parser state.
1936 * c-lang.h: Forward declare "struct parser_state".
1937 (c_parse): Add "struct parser_state" argument.
1938 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1939 (yyparse): Redefine macro to ada_parse_internal.
1940 (pstate): New variable.
1941 (write_int, write_object_renaming, write_var_or_type,
1942 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1943 type_int, type_long, type_long_long, type_float, type_double,
1944 type_long_double, type_char, type_boolean, type_system_address):
1945 Add "struct parser_state" argument.
1946 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1947 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1948 var_or_type, aggregate, aggregate_component_list,
1949 positional_list, others, component_group,
1950 component_associations): Update calls to write_exp* and similar
1951 functions in order to use parser state.
1952 (ada_parse, write_var_from_sym, write_int,
1953 write_exp_op_with_string, write_object_renaming,
1954 find_primitive_type, write_selectors, write_ambiguous_var,
1955 write_var_or_type, write_name_assoc, type_int, type_long,
1956 type_long_long, type_float, type_double, type_long_double,
1957 type_char, type_boolean, type_system_address): Add "struct
1958 parser_state" argument. Adjust function to use parser state.
1959 * ada-lang.c (parse): Likewise.
1960 * ada-lang.h: Forward declare "struct parser_state".
1961 (ada_parse): Add "struct parser_state" argument.
1962 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1963 calls to both functions.
1964 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1966 (yyparse): Redefine macro to f_parse_internal.
1967 (pstate): New variable.
1968 (parse_number): Add "struct parser_state" argument.
1969 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1970 and similars in order to use parser state.
1971 (parse_number): Adjust code to use parser state.
1973 (f_parse): New function.
1974 * f-lang.h: Forward declare "struct parser_state".
1975 (f_parse): Add "struct parser_state" argument.
1976 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1978 (yyparse): Redefine macro for java_parse_internal.
1979 (pstate): New variable.
1980 (push_expression_name, push_expression_name, insert_exp): Add
1981 "struct parser_state" argument.
1982 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1983 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1984 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1985 PostIncrementExpression, PostDecrementExpression,
1986 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1987 UnaryExpressionNotPlusMinus, CastExpression,
1988 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1989 RelationalExpression, EqualityExpression, AndExpression,
1990 ExclusiveOrExpression, InclusiveOrExpression,
1991 ConditionalAndExpression, ConditionalOrExpression,
1992 ConditionalExpression, Assignment, LeftHandSide): Update
1993 calls to write_exp* and similars in order to use parser state.
1994 (parse_number): Ajust code to use parser state.
1996 (java_parse): New function.
1997 (push_variable): Add "struct parser_state" argument. Adjust
1998 code to user parser state.
1999 (push_fieldnames, push_qualified_expression_name,
2000 push_expression_name, insert_exp): Likewise.
2001 * jv-lang.h: Forward declare "struct parser_state".
2002 (java_parse): Add "struct parser_state" argument.
2003 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2005 (yyparse): Redefine macro to m2_parse_internal.
2006 (pstate): New variable.
2007 (type_exp, exp, fblock, variable, type): Update calls to
2008 write_exp* and similars to use parser state.
2010 (m2_parse): New function.
2011 * m2-lang.h: Forward declare "struct parser_state".
2012 (m2_parse): Add "struct parser_state" argument.
2013 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2014 * objc-lang.h: Forward declare "struct parser_state".
2015 (end_msglist): Add "struct parser_state" argument.
2016 * p-exp.y (parse_type): Rewrite macro to use parser state.
2017 (yyparse): Redefine macro to pascal_parse_internal.
2018 (pstate): New variable.
2019 (parse_number): Add "struct parser_state" argument.
2020 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2021 write_exp* and similars in order to use parser state.
2022 (parse_number, yylex): Adjust code to use parser state.
2023 (pascal_parse): New function.
2024 * p-lang.h: Forward declare "struct parser_state".
2025 (pascal_parse): Add "struct parser_state" argument.
2026 * go-exp.y (parse_type): Rewrite macro to use parser state.
2027 (yyparse): Redefine macro to go_parse_internal.
2028 (pstate): New variable.
2029 (parse_number): Add "struct parser_state" argument.
2030 (type_exp, exp1, exp, variable, type): Update calls to
2031 write_exp* and similars in order to use parser state.
2032 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2033 to use parser state.
2034 (go_parse): Likewise.
2035 * go-lang.h: Forward declare "struct parser_state".
2036 (go_parse): Add "struct parser_state" argument.
2038 2014-03-27 Doug Evans <dje@google.com>
2040 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2042 2014-03-27 Doug Evans <dje@google.com>
2044 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2045 Remove argument abbrev_section. All callers updated.
2047 2014-03-27 Doug Evans <dje@google.com>
2049 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2050 addr_base, ranges_base.
2052 2014-03-26 Keith Seitz <keiths@redhat.com>
2054 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2055 types, not VAR_DOMAIN.
2057 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2059 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2061 * features/nios2-linux.c: Regenerated.
2062 * features/nios2.c: Regenerated.
2064 2014-03-25 Pedro Alves <palves@redhat.com>
2066 * cli/cli-script.c (script_from_file): Force the interpreter to
2069 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2071 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2072 small stack allocation.
2074 2014-03-24 Tristan Gingold <gingold@adacore.com>
2076 * darwin-nat.c (exc_server): Remove unused prototype.
2077 (darwin_dump_message): Correctly display data on x86_64.
2078 (darwin_encode_reply): Fix style.
2079 Add comments and fix indentation.
2081 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2083 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2085 2014-03-22 Doug Evans <xdje42@gmail.com>
2087 * infcmd.c: Whitespace fixes.
2088 (interrupt_command): Merge two function comments into one.
2090 2014-03-22 Doug Evans <xdje42@gmail.com>
2092 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2095 2014-03-22 Yao Qi <yao@codesourcery.com>
2097 * remote.c (target_read_live_memory): Remove.
2098 (memory_xfer_live_readonly_partial): Rename it to
2099 remote_xfer_live_readonly_partial. Remove argument 'object'.
2100 All callers updated. Call remote_read_bytes_1
2101 instead of target_read_live_memory.
2102 * tracepoint.c (set_traceframe_number): Remove.
2103 (make_cleanup_restore_traceframe_number): Likewise .
2104 * tracepoint.h (set_traceframe_number): Remove declaration.
2105 (make_cleanup_restore_traceframe_number): Likewise.
2107 2014-03-22 Yao Qi <yao@codesourcery.com>
2109 * remote.c (remote_read_bytes): Move code on reading from the
2111 (remote_read_bytes_1): ... here. New function.
2113 2014-03-22 Yao Qi <yao@codesourcery.com>
2115 * ctf.c (ctf_xfer_partial): Check the return value of
2116 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2117 return TARGET_XFER_UNAVAILABLE.
2118 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2119 * target.c (target_read_live_memory): Move it to remote.c.
2120 (memory_xfer_live_readonly_partial): Likewise.
2121 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2122 * remote.c (target_read_live_memory): Moved from target.c.
2123 (memory_xfer_live_readonly_partial): Likewise.
2124 (remote_read_bytes): Factored out from
2125 memory_xfer_partial_1.
2127 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2129 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2132 2014-03-21 Pedro Alves <palves@redhat.com>
2134 * infrun.c (normal_stop): Extend comment.
2136 2014-03-21 Hui Zhu <hui@codesourcery.com>
2137 Pedro Alves <palves@redhat.com>
2139 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2141 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2142 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2143 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2145 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2147 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2148 `z' formatted output modifier.
2150 2014-03-20 Tom Tromey <tromey@redhat.com>
2151 Sergio Durigan Junior <sergiodj@redhat.com>
2153 * probe.c (parse_probes): Turn assert into an ordinary error.
2154 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2155 exceptions when parsing probes. Rearrange the code for clarity.
2157 2014-03-20 Tom Tromey <tromey@redhat.com>
2160 * top.c (execute_command): Only dispatch events if the command
2163 2014-03-20 Tom Tromey <tromey@redhat.com>
2166 * infcall.c: Include event-top.h.
2167 (run_inferior_call): Call async_disable_stdin if needed.
2169 2014-03-20 Pedro Alves <palves@redhat.com>
2171 * infrun.c (prepare_to_proceed): Delete.
2172 (thread_still_needs_step_over): New function.
2173 (find_thread_needs_step_over): New function.
2174 (proceed): If the current thread needs a step-over, set its
2175 steping_over_breakpoint flag. Adjust to use
2176 find_thread_needs_step_over instead of prepare_to_proceed.
2177 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2178 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2180 (switch_back_to_stepped_thread): Step over breakpoints of all
2181 threads not the stepping thread, before switching back to the
2184 2014-03-20 Pedro Alves <palves@redhat.com>
2186 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2188 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2189 * infrun.c (saved_singlestep_ptid)
2190 (stepping_past_singlestep_breakpoint): Delete.
2191 (resume): Remove stepping_past_singlestep_breakpoint handling.
2192 (proceed): Store the prev_pc of the stepping thread too.
2193 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2195 (enum infwait_states): Delete infwait_thread_hop_state.
2196 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2198 (handle_inferior_event): Adjust.
2199 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2200 handling and the thread-hop code. Before removing single-step
2201 breakpoints, check whether the thread hit a single-step breakpoint
2202 of another thread. If it did, the trap is not a random signal.
2203 (switch_back_to_stepped_thread): If the event thread hit a
2204 single-step breakpoint, unblock it before switching to the
2205 stepping thread. Handle the case of the stepped thread having
2207 (keep_going): Handle the case of the current thread moving past a
2208 single-step breakpoint.
2210 2014-03-20 Pedro Alves <palves@redhat.com>
2213 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2214 are being stepped over.
2215 (breakpoint_address_match): Make extern.
2216 * breakpoint.h (breakpoint_address_match): New declaration.
2217 * inferior.h (stepping_past_instruction_at): New declaration.
2218 * infrun.c (struct step_over_info): New type.
2219 (step_over_info): New global.
2220 (set_step_over_info, clear_step_over_info)
2221 (stepping_past_instruction_at): New functions.
2222 (handle_inferior_event): Clear the step-over info when
2223 trap_expected is cleared.
2224 (resume): Remove now stale comment.
2225 (clear_proceed_status): Clear step-over info.
2226 (proceed): Adjust step-over handling to set or clear the step-over
2227 info instead of removing all breakpoints.
2228 (handle_signal_stop): When setting up a thread-hop, don't remove
2230 (stop_stepping): Clear step-over info.
2231 (keep_going): Adjust step-over handling to set or clear step-over
2232 info and then always inserting breakpoints, instead of removing
2233 all breakpoints when stepping over one.
2235 2014-03-20 Pedro Alves <palves@redhat.com>
2237 * infrun.c (previous_inferior_ptid): Adjust comment.
2238 (deferred_step_ptid): Delete.
2239 (infrun_thread_ptid_changed, prepare_to_proceed)
2240 (init_wait_for_inferior): Adjust.
2241 (handle_signal_stop): Delete deferred_step_ptid handling.
2243 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2246 * defs.h (sync_quit_force_run): New declaration.
2247 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2248 * event-top.c (async_sigterm_handler): New declaration.
2249 (async_sigterm_token): New variable.
2250 (async_init_signals): Create also async_sigterm_token.
2251 (async_sigterm_handler): New function.
2252 (sync_quit_force_run): New variable.
2253 (handle_sigterm): Replace quit_force call by other calls.
2254 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2256 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2258 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2259 offset into SPE pseudo registers.
2261 2014-03-18 Pedro Alves <palves@redhat.com>
2264 * inferior.h (print_stop_event): Declare.
2265 * infrun.c (print_stop_event): New, factored out from ...
2266 (normal_stop): ... this.
2267 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2268 of bpstat_print/print_stack_frame.
2270 2014-03-17 Tom Tromey <tromey@redhat.com>
2272 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2274 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2276 * ada-lang.c (decode_constrained_packed_array): Perform a
2277 minimal coercion for reference with coerce_ref instead of
2280 2014-03-17 Tristan Gingold <gingold@adacore.com>
2282 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2283 (darwin_solib_create_inferior_hook): Emit a warning if version
2286 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2288 * python/py-value.c (get_field_flag): Cast flag_name argument to
2289 PyObject_GetAttrString to support Python 2.4.
2291 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2293 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2294 (Global Maintainers): Remove Jan Kratochvil.
2296 2014-03-14 Pedro Alves <palves@redhat.com>
2298 * inferior.h (terminal_ours_for_output): Rename to ...
2299 (child_terminal_ours_for_output): ... this.
2300 (terminal_save_ours): Rename to ...
2301 (child_terminal_save_ours): ... this.
2302 (terminal_ours): Rename to ...
2303 (child_terminal_ours): ... this.
2304 (terminal_inferior): Rename to ...
2305 (child_terminal_inferior): ... this.
2306 (terminal_init_inferior): Rename to ...
2307 (child_terminal_init_inferior): ... this.
2308 (terminal_init_inferior_with_pgrp): Rename to ...
2309 (child_terminal_init_inferior_with_pgrp): ... this.
2310 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2311 (child_terminal_init_with_pgrp): ... this.
2312 (terminal_save_ours): Rename to ...
2313 (child_terminal_save_ours): ... this.
2314 (terminal_init_inferior): Rename to ...
2315 (child_terminal_init): ... this. Adjust.
2316 (terminal_inferior): Rename to ...
2317 (child_terminal_inferior): ... this.
2318 (terminal_ours_for_output): Rename to ...
2319 (child_terminal_ours_for_output): ... this. Adjust.
2320 (terminal_ours): Rename to ...
2321 (child_terminal_ours): ... this.
2322 (terminal_ours_1): Rename to ...
2323 (child_terminal_ours_1): ... this. Adjust.
2324 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2325 * windows-nat.c (do_initial_windows_stuff): Adjust.
2326 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2327 (gnu_terminal_init): ... this. Adjust.
2328 (gnu_target): Adjust.
2329 * inf-child.c (inf_child_target): Adjust.
2331 2014-03-13 Doug Evans <xdje42@gmail.com>
2334 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2337 2014-03-13 Doug Evans <xdje42@gmail.com>
2339 * value.c (record_latest_value): Call release_value_or_incref
2340 instead of release_value.
2342 2014-03-13 Pedro Alves <palves@redhat.com>
2344 * procfs.c (procfs_target): Don't override to_shortname,
2345 to_longname or to_doc.
2347 2014-03-13 Pedro Alves <palves@redhat.com>
2349 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2350 Unix in user visible strings.
2352 2014-03-12 Stan Shebs <stan@codesourcery.com>
2354 * gdbtypes.h: Annotate comments for Doxygen, add a page
2355 block comment with some general info.
2357 2014-03-12 Pedro Alves <palves@redhat.com>
2359 * infcmd.c (prepare_execution_command): New function, factored out
2360 from several execution commands.
2361 (run_command_1, continue_command, step_1, jump_command)
2362 (signal_command, until_command, advance_command, finish_command)
2363 (attach_command): Use prepare_execution_command.
2365 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2367 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2370 (struct arm_linux_thread_points): Removed.
2371 (struct arm_linux_process_info): New.
2372 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2373 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2374 (arm_linux_find_breakpoints_by_tid): Removed.
2375 (struct arch_lwp_info): New.
2376 (arm_linux_find_process_pid): New functions.
2377 (arm_linux_add_process): New functions.
2378 (arm_linux_process_info_get): New functions.
2379 (arm_linux_forget_process): New function.
2380 (arm_linux_get_debug_reg_state): New function.
2381 (struct update_registers_data): New.
2382 (update_registers_callback): New function.
2383 (arm_linux_insert_hw_breakpoint1): Updated.
2384 (arm_linux_remove_hw_breakpoint1): Updated.
2385 (arm_linux_insert_hw_breakpoint): Updated.
2386 (arm_linux_remove_hw_breakpoint): Updated.
2387 (arm_linux_insert_watchpoint): Updated.
2388 (arm_linux_remove_watchpoint): Updated.
2389 (arm_linux_new_thread): Updated.
2390 (arm_linux_prepare_to_resume): New function.
2391 (arm_linux_new_fork): New function.
2392 (_initialize_arm_linux_nat): Updated.
2394 2014-03-12 Pedro Alves <palves@redhat.com>
2396 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2398 2014-03-12 Tom Tromey <tromey@redhat.com>
2400 * inf-child.c (return_zero): New function.
2401 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2402 * aix-thread.c (aix_thread_inferior_created): New function.
2403 (aix_thread_attach): Remove.
2404 (init_aix_thread_ops): Don't set to_attach.
2405 (_initialize_aix_thread): Register inferior_created observer.
2406 * corelow.c (init_core_ops): Don't set to_attach or
2408 * exec.c (init_exec_ops): Don't set to_attach or
2410 * infcmd.c (run_command_1): Use find_run_target. Make direct
2412 (attach_command): Use find_attach_target. Make direct target
2414 * record-btrace.c (init_record_btrace_ops): Don't set
2416 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2418 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2419 set to_create_inferior.
2420 * target.c (complete_target_initialization): Add assertion.
2421 (target_create_inferior): Remove.
2422 (find_default_attach, find_default_create_inferior): Remove.
2423 (find_attach_target, find_run_target): New functions.
2424 (find_default_is_async_p, find_default_can_async_p)
2425 (target_supports_non_stop, target_attach): Remove.
2426 (init_dummy_target): Don't set to_create_inferior or
2427 to_supports_non_stop.
2428 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2429 TARGET_DEFAULT_FUNC.
2430 <to_create_inferior>: Add comment.
2431 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2432 TARGET_DEFAULT_RETURN.
2433 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2434 (find_attach_target, find_run_target): Declare.
2435 (target_create_inferior): Remove.
2436 (target_has_execution_1): Update comment.
2437 (target_supports_non_stop): Remove.
2438 * target-delegates.c: Rebuild.
2440 2014-03-12 Pedro Alves <palves@redhat.com>
2442 * inf-child.h: Update comment to not mention Unix.
2444 2014-03-12 Pedro Alves <palves@redhat.com>
2446 * inf-child.c: Update top comment to not mention Unix. Add
2447 generic comment describing how this target is meant to be used.
2448 (inf_child_post_attach, inf_child_post_startup_inferior)
2449 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2452 2014-03-12 Pedro Alves <palves@redhat.com>
2454 * nto-procfs.c: Include inf-child.h.
2455 (procfs_ops): Delete global.
2456 (procfs_can_run): Delete method.
2457 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2458 target pointer instead of referencing procfs_ops.
2459 (procfs_prepare_to_store): Delete.
2460 (init_procfs_ops): Delete function.
2461 (procfs_target): New function, based on init_procfs_ops, but
2462 inherit inf_child_target.
2463 (_initialize_procfs): Use procfs_target.
2465 2014-03-12 Pedro Alves <palves@redhat.com>
2467 * windows-nat.c: Include inf-child.h.
2468 (windows_ops): Delete global.
2469 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2471 (init_windows_ops): Delete function.
2472 (windows_target): New function, based on init_windows_ops, but
2473 inherit inf_child_target.
2474 (_initialize_windows_nat): Use windows_target. Install x86
2475 specific target methods here.
2477 2014-03-10 Doug Evans <xdje42@gmail.com>
2479 * guile/guile.c (call_initialize_gdb_module): New function.
2480 (initialize_guile): Replace call to scm_init_guile with call to
2483 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2485 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2486 in call to TYPE_CODE macro.
2488 2014-03-10 Jerome Guitton <guitton@adacore.com>
2490 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2491 Resolve tagged types to full view.
2493 2014-03-10 Hui Zhu <hui@codesourcery.com>
2495 * target.h (target_insert_breakpoint): Remove "hardware" from its
2498 2014-03-07 Doug Evans <dje@google.com>
2500 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2502 2014-03-07 Doug Evans <dje@google.com>
2504 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2505 Remove unused local comp_dir_attr. Assert exactly one of
2506 stub_comp_unit_die, stub_comp_dir is non-NULL.
2508 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2510 * target.h (complete_target_initialization, add_target):
2513 2014-03-07 Pedro Alves <palves@redhat.com>
2515 * go32-nat.c: Include inf-child.h.
2516 (go32_ops): Delete global.
2517 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2519 (go32_create_inferior): Push the passed in target pointer instead
2520 of referencing go32_ops.
2521 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2522 (go32_target): New function, based on init_go32_ops, but inherit
2524 (_initialize_go32_nat): Use go32_target. Move parts of
2527 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2529 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2530 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2531 SYMBOL_VALUE_ADDRESS.
2532 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2534 2014-03-06 Yao Qi <yao@codesourcery.com>
2536 * breakpoint.c (get_tracepoint_by_number): Remove argument
2537 optional_p. All callers updated. Adjust comments. Update
2539 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2541 2014-03-06 Yao Qi <yao@codesourcery.com>
2543 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2544 early if get_number returns zero. Use 'p' instead of 'args'.
2546 2014-03-06 Yao Qi <yao@codesourcery.com>
2548 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2551 2014-03-06 Yao Qi <yao@codesourcery.com>
2553 PR breakpoints/16508
2554 * tracepoint.c (check_trace_running): New function.
2555 (trace_find_command): Move code to check_trace_running and
2556 call check_trace_running.
2557 (trace_find_pc_command): Likewise.
2558 (trace_find_tracepoint_command): Likewise.
2559 (trace_find_line_command): Likewise.
2560 (trace_find_range_command): Likewise.
2561 * tracepoint.h (check_trace_running): Likewise.
2562 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2564 2014-03-06 Yao Qi <yao@codesourcery.com>
2566 * target.h (struct target_ops) <to_traceframe_info>: Use
2567 TARGET_DEFAULT_NORETURN (tcomplain ()).
2568 * target-delegates.c: Regenerated.
2570 2014-03-05 Pedro Alves <palves@redhat.com>
2573 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2574 void. Update comment.
2575 (dcache_xfer_memory): Delete.
2576 (dcache_read_memory_partial): New, based on the read bits of
2578 (dcache_update): Add status parameter. Use ULONGEST for len, and
2579 adjust. Discard cache lines if the reason for the update was
2581 * dcache.h (dcache_xfer_memory): Delete declaration.
2582 (dcache_read_memory_partial): New declaration.
2583 (dcache_update): Update prototype.
2584 * target.c (raw_memory_xfer_partial): Update the dcache here.
2585 (memory_xfer_partial_1): Don't handle dcache writes here.
2587 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2589 * remote-sim.c (gdbsim_load): Add const to prog.
2591 2014-03-03 Tom Tromey <tromey@redhat.com>
2593 * elfread.c (probe_key): Change to bfd_data.
2594 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2595 now per-BFD, not per-objfile.
2596 * stap-probe.c (stap_probe_destroy): Update comment.
2597 (handle_stap_probe): Allocate on the per-BFD obstack.
2599 2014-03-03 Tom Tromey <tromey@redhat.com>
2601 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2602 * breakpoint.c (create_longjmp_master_breakpoint): Use
2604 (add_location_to_breakpoint, bkpt_probe_insert_location)
2605 (bkpt_probe_remove_location): Update.
2606 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2607 * elfread.c (elf_symfile_relocate_probe): Remove.
2608 (elf_probe_fns): Update.
2609 (insert_exception_resume_breakpoint): Change type of "probe"
2610 parameter to bound_probe.
2611 (check_exception_resume): Update.
2612 * objfiles.c (objfile_relocate1): Don't relocate probes.
2613 * probe.c (bound_probe_s): New typedef.
2614 (parse_probes): Use get_probe_address. Set sal's objfile.
2615 (find_probe_by_pc): Return a bound_probe.
2616 (collect_probes): Return a VEC(bound_probe_s).
2617 (compare_probes): Update.
2618 (gen_ui_out_table_header_info): Change type of "probes"
2620 (info_probes_for_ops): Update.
2621 (get_probe_address): New function.
2622 (probe_safe_evaluate_at_pc): Update.
2623 * probe.h (struct probe_ops) <get_probe_address>: New field.
2624 <set_semaphore, clear_semaphore>: Add objfile parameter.
2625 (struct probe) <objfile>: Remove field.
2627 <address>: Update comment.
2628 (struct bound_probe): New.
2629 (find_probe_by_pc): Return a bound_probe.
2630 (get_probe_address): Declare.
2631 * solib-svr4.c (struct probe_and_action) <address>: New field.
2632 (hash_probe_and_action, equal_probe_and_action): Update.
2633 (register_solib_event_probe): Add address parameter.
2634 (solib_event_probe_at): Update.
2635 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2637 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2638 (stap_get_probe_address): New function.
2639 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2640 (compile_probe_arg): Update.
2641 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2643 (handle_stap_probe): Don't relocate the probe.
2644 (stap_relocate): Remove.
2645 (stap_gen_info_probes_table_values): Update.
2646 (stap_probe_ops): Remove stap_relocate.
2647 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2648 (debug_sym_probe_fns): Update.
2649 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2650 * symtab.c (init_sal): Use memset.
2651 * symtab.h (struct symtab_and_line) <objfile>: New field.
2652 * tracepoint.c (start_tracing, stop_tracing): Update.
2654 2014-03-03 Tom Tromey <tromey@redhat.com>
2656 * probe.h (parse_probes, find_probe_by_pc)
2657 (find_probes_in_objfile): Fix comments.
2659 2014-03-02 Doug Evans <xdje42@gmail.com>
2661 * infrun.c (handle_signal_stop): Replace test for
2662 TARGET_WAITKIND_STOPPED with an assert.
2664 2014-03-02 Doug Evans <xdje42@gmail.com>
2666 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2668 2014-03-02 Doug Evans <xdje42@gmail.com>
2670 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2672 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2674 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2676 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2678 * i386obsd-nat.c: Include "obsd-nat.h".
2679 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2681 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2683 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2685 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2687 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2689 * mips64obsd-nat.c: Include "obsd-nath".
2690 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2692 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2694 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2696 * amd64obsd-nat.c: Include "obsd-nat,h.
2697 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2699 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2701 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2703 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2704 (find_overload_match): Update call to find_oload_champ.
2705 (find_oload_champ_namespace_loop): Likewise
2707 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2709 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2711 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2712 * config/sparc/obsd64.mh: New file.
2713 * sparc64obsd-nat.c: New file.
2715 * obsd-nat.h: New file.
2716 * obsd-nat.c: New file.
2717 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2718 (ALLDEPFILES): Add obsd-nat.c.
2720 2014-02-28 Tom Tromey <tromey@redhat.com>
2722 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2723 * cli-out.h (cli_ui_out_impl): Now const.
2724 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2725 * ui-out.c (struct ui_out) <impl>: Now const.
2726 (default_ui_out_impl): Now const.
2727 (ui_out_new): Make 'impl' parameter const.
2728 * ui-out.h (ui_out_new): Update.
2730 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2732 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2734 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2736 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2738 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2740 Additional PR 8882 fix.
2741 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2743 2014-02-27 Pedro Alves <palves@redhat.com>
2745 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2748 2014-02-27 Pedro Alves <palves@redhat.com>
2751 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2752 * nat/linux-waitpid.c: Include string.h.
2753 (status_to_str): Moved here and made extern.
2754 * nat/linux-waitpid.h (status_to_str): New declaration.
2756 2014-02-27 Hui Zhu <hui@codesourcery.com>
2759 * infrun.c (ptid_match): Move ...
2760 * common/ptid.c (ptid_match): ... here.
2761 * inferior.h (ptid_match): Move ...
2762 * common/ptid.h (ptid_match): ... here.
2764 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2766 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2767 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2770 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2772 * obsd-tdep.c (obsd_auxv_parse): New function.
2773 (obsd_init_abi): Set auxv_parse.
2775 * gdbarch.sh (auxv_parse): New.
2776 * gdbarch.h: Regenerated.
2777 * gdbarch.c: Regenerated.
2778 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2780 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2782 * guile/scm-value.c (gdbscm_history_append_x): New function.
2783 (value_functions): Add it.
2785 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2787 * dwarf2read.c (attr_value_as_address): New function.
2788 (dwarf2_find_base_address, read_call_site_scope): Use
2789 attr_value_as_address in place of DW_ADDR.
2790 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2791 the low and high addresses. Slight rework of the handling
2792 of the high pc being a constant form, and limit it to
2793 DWARF verson 4 or higher.
2794 (dwarf2_record_block_ranges): Likewise.
2795 (read_partial_die): Likewise.
2796 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2798 2014-02-26 Tom Tromey <tromey@redhat.com>
2800 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2802 2014-02-26 Tom Tromey <tromey@redhat.com>
2804 * elfread.c (elf_read_minimal_symbols): Return early if
2805 minimal symbols have already been read. Add "ei" parameter.
2806 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2807 * minsyms.c (prim_record_minimal_symbol_full): Update.
2808 * objfiles.h (struct objstats) <n_minsyms>: Move...
2809 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2810 * symmisc.c (print_objfile_statistics): Update.
2812 2014-02-26 Tom Tromey <tromey@redhat.com>
2814 * elfread.c (elf_read_minimal_symbols): New function, from
2816 (elf_symfile_read): Call it.
2818 2014-02-26 Tom Tromey <tromey@redhat.com>
2820 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2821 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2822 (lookup_minimal_symbol_solib_trampoline)
2823 (lookup_minimal_symbol_by_pc_section_1)
2824 (lookup_minimal_symbol_and_objfile): Update.
2825 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2826 Don't allocate a minimal symbol if minsyms have already been read.
2827 (build_minimal_symbol_hash_tables): Update.
2828 (install_minimal_symbols): Do nothing if minsyms already read.
2829 Use the per-BFD obstack.
2830 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2831 * objfiles.c (allocate_objfile): Call
2832 terminate_minimal_symbol_table later.
2833 (have_minimal_symbols): Update.
2834 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2835 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2836 Move from struct objfile.
2837 <minsyms_read>: New field.
2838 (struct objfile) <msymbols, minimal_symbol_count,
2839 msymbol_hash, msymbol_demangled_hash>: Move.
2840 (ALL_OBJFILE_MSYMBOLS): Update.
2841 * symfile.c (read_symbols): Set minsyms_read.
2842 (reread_symbols): Update.
2843 * symmisc.c (dump_objfile, dump_msymbols): Update.
2845 2014-02-26 Tom Tromey <tromey@redhat.com>
2847 * minsyms.c (msymbols_sort): Remove.
2848 * minsyms.h (msymbols_sort): Remove.
2849 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2850 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2851 * elfread.c (elf_symtab_read): Don't add section offsets.
2852 * xcoffread.c (record_minimal_symbol): Don't add section offset
2853 to minimal symbol address.
2854 * somread.c (text_offset, data_offset): Remove.
2855 (som_symtab_read): Don't add section offsets to minimal symbol
2857 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2858 Don't add section offsets to minimal symbols.
2859 * coffread.c (coff_symtab_read): Don't add section offsets
2860 to minimal symbol addresses.
2861 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2862 to minimal symbol addresses.
2863 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2864 section offset to minimal symbol addresses.
2865 * mdebugread.c (parse_partial_symbols): Don't add section
2866 offset to minimal symbol addresses.
2867 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2868 offset to minimal symbol addresses.
2870 2014-02-26 Tom Tromey <tromey@redhat.com>
2872 * ada-lang.c (ada_main_name): Update.
2873 (ada_add_standard_exceptions): Update.
2874 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2875 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2876 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2877 * auxv.c (ld_so_xfer_auxv): Update.
2878 * avr-tdep.c (avr_scan_prologue): Update.
2879 * ax-gdb.c (gen_var_ref): Update.
2880 * blockframe.c (get_pc_function_start)
2881 (find_pc_partial_function_gnu_ifunc): Update.
2882 * breakpoint.c (create_overlay_event_breakpoint)
2883 (create_longjmp_master_breakpoint)
2884 (create_std_terminate_master_breakpoint)
2885 (create_exception_master_breakpoint): Update.
2886 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2887 * c-valprint.c (c_val_print): Update.
2888 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2889 * common/agent.c (agent_look_up_symbols): Update.
2890 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2891 * dwarf2loc.c (call_site_to_target_addr): Update.
2892 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2893 * elfread.c (elf_gnu_ifunc_record_cache)
2894 (elf_gnu_ifunc_resolve_by_got): Update.
2895 * findvar.c (default_read_var_value): Update.
2896 * frame.c (inside_main_func): Update.
2897 * frv-tdep.c (frv_frame_this_id): Update.
2898 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2899 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2901 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2902 (hppa_hpux_find_dummy_bpaddr): Update.
2903 * hppa-tdep.c (hppa_symbol_address): Update.
2904 * infcmd.c (until_next_command): Update.
2905 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2907 * linespec.c (minsym_found, add_minsym): Update.
2908 * linux-nat.c (get_signo): Update.
2909 * linux-thread-db.c (inferior_has_bug): Update.
2910 * m32c-tdep.c (m32c_return_value)
2911 (m32c_m16c_address_to_pointer): Update.
2912 * m32r-tdep.c (m32r_frame_this_id): Update.
2913 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2914 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2915 * maint.c (maintenance_translate_address): Update.
2916 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2917 (frob_address): New function.
2918 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2919 frob_address. Rename parameter to "pc_in".
2920 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2922 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2924 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2925 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2926 * objc-lang.c (find_objc_msgsend): Update.
2927 * objfiles.c (objfile_relocate1): Update.
2928 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2929 * p-valprint.c (pascal_val_print): Update.
2930 * parse.c (write_exp_msymbol): Update.
2931 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2932 (ppc_elfv2_skip_entrypoint): Update.
2933 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2934 * printcmd.c (build_address_symbolic, msym_info)
2935 (address_info): Update.
2936 * proc-service.c (ps_pglobal_lookup): Update.
2937 * psymtab.c (find_pc_sect_psymtab_closer)
2938 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2939 Change msymbol parameter to bound_minimal_symbol.
2940 * ravenscar-thread.c (get_running_thread_id): Update.
2941 * remote.c (remote_check_symbols): Update.
2942 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2944 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2945 * solib-dsbt.c (lm_base): Update.
2946 * solib-frv.c (lm_base, main_got): Update.
2947 * solib-irix.c (locate_base): Update.
2948 * solib-som.c (som_solib_create_inferior_hook)
2949 (link_map_start): Update.
2950 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2951 * solib-svr4.c (elf_locate_base, enable_break): Update.
2952 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2953 (flush_ea_cache): Update.
2954 * stabsread.c (define_symbol, scan_file_globals): Update.
2955 * stack.c (find_frame_funname): Update.
2956 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2957 (debug_qf_find_pc_sect_symtab): Update.
2958 * symfile.c (simple_read_overlay_table)
2959 (simple_overlay_update): Update.
2960 * symfile.h (struct quick_symbol_functions)
2961 <find_pc_sect_symtab>: Change type of msymbol to
2962 bound_minimal_symbol.
2963 * symmisc.c (dump_msymbols): Update.
2964 * symtab.c (find_pc_sect_symtab_via_partial)
2965 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2966 (search_symbols, print_msymbol_info): Update.
2967 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2968 (MSYMBOL_VALUE_ADDRESS): Redefine.
2969 (BMSYMBOL_VALUE_ADDRESS): New macro.
2970 * tracepoint.c (scope_info): Update.
2971 * tui/tui-disasm.c (tui_find_disassembly_address)
2972 (tui_get_begin_asm_address): Update.
2973 * valops.c (find_function_in_inferior): Update.
2974 * value.c (value_static_field, value_fn_field): Update.
2976 2014-02-26 Tom Tromey <tromey@redhat.com>
2978 * ada-lang.c (ada_update_initial_language): Update.
2979 (ada_main_name, ada_has_this_exception_support): Update.
2980 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2981 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2982 * arm-tdep.c (arm_skip_stub): Update.
2983 * auxv.c (ld_so_xfer_auxv): Update.
2984 * avr-tdep.c (avr_scan_prologue): Update.
2985 * ax-gdb.c (gen_var_ref): Update.
2986 * breakpoint.c (struct breakpoint_objfile_data)
2987 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2988 type to bound_minimal_symbol.
2989 (create_overlay_event_breakpoint)
2990 (create_longjmp_master_breakpoint)
2991 (create_std_terminate_master_breakpoint)
2992 (create_exception_master_breakpoint): Update.
2993 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2994 * c-exp.y (classify_name): Update.
2995 * coffread.c (coff_symfile_read): Update.
2996 * common/agent.c (agent_look_up_symbols): Update.
2997 * d-lang.c (d_main_name): Update.
2998 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2999 * dec-thread.c (enable_dec_thread): Update.
3000 * dwarf2loc.c (call_site_to_target_addr): Update.
3001 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3002 * eval.c (evaluate_subexp_standard): Update.
3003 * findvar.c (struct minsym_lookup_data) <result>: Change type
3004 to bound_minimal_symbol.
3006 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3007 * frame.c (inside_main_func): Update.
3008 * frv-tdep.c (frv_frame_this_id): Update.
3009 * gcore.c (call_target_sbrk): Update.
3010 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3011 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3013 * go-lang.c (go_main_name): Update.
3014 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3015 (hppa_hpux_find_import_stub_for_addr): Update.
3016 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3017 Update. Change return type.
3018 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3020 * jit.c (jit_breakpoint_re_set_internal): Update.
3021 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3023 * linux-nat.c (get_signo): Update.
3024 * linux-thread-db.c (inferior_has_bug): Update
3025 * m32c-tdep.c (m32c_return_value)
3026 (m32c_m16c_address_to_pointer): Update.
3027 * m32r-tdep.c (m32r_frame_this_id): Update.
3028 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3029 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3030 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3031 lookup_minimal_symbol. Change return type.
3032 (lookup_minimal_symbol): Remove.
3033 (lookup_bound_minimal_symbol): Update.
3034 (lookup_minimal_symbol_text): Change return type.
3035 (lookup_minimal_symbol_solib_trampoline): Change return type.
3036 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3037 (lookup_minimal_symbol_solib_trampoline): Change return type.
3038 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3039 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3040 (value_nsstring, find_imps): Update.
3041 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3042 * p-lang.c (pascal_main_name): Update.
3043 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3044 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3045 * proc-service.c (ps_pglobal_lookup): Update.
3046 * ravenscar-thread.c (get_running_thread_msymbol): Change
3048 (has_ravenscar_runtime, get_running_thread_id): Update.
3049 * remote.c (remote_check_symbols): Update.
3050 * sol-thread.c (ps_pglobal_lookup): Update.
3051 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3052 * solib-dsbt.c (lm_base): Update.
3053 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3055 * solib-irix.c (locate_base): Update.
3056 * solib-som.c (som_solib_create_inferior_hook)
3057 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3059 * solib-spu.c (spu_enable_break): Update.
3060 * solib-svr4.c (elf_locate_base, enable_break): Update.
3061 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3062 (flush_ea_cache): Update.
3063 * stabsread.c (define_symbol): Update.
3064 * symfile.c (simple_read_overlay_table): Update.
3065 * symtab.c (find_pc_sect_line): Update.
3066 * tracepoint.c (scope_info): Update.
3067 * tui-disasm.c (tui_get_begin_asm_address): Update.
3068 * value.c (value_static_field): Update.
3070 2014-02-26 Tom Tromey <tromey@redhat.com>
3072 * minsyms.c (prim_record_minimal_symbol_full): Use
3073 SET_MSYMBOL_VALUE_ADDRESS.
3074 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3075 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3076 SET_MSYMBOL_VALUE_ADDRESS.
3077 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3078 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3080 2014-02-26 Tom Tromey <tromey@redhat.com>
3082 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3083 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3084 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3085 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3086 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3087 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3088 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3089 * ada-lang.c (ada_main_name): Update.
3090 (ada_lookup_simple_minsym): Update.
3091 (ada_make_symbol_completion_list): Update.
3092 (ada_add_standard_exceptions): Update.
3093 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3094 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3095 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3096 * arm-tdep.c (skip_prologue_function): Update.
3097 (arm_skip_stack_protector, arm_skip_stub): Update.
3098 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3099 (arm_wince_skip_main_prologue): Update.
3100 * auxv.c (ld_so_xfer_auxv): Update.
3101 * avr-tdep.c (avr_scan_prologue): Update.
3102 * ax-gdb.c (gen_var_ref): Update.
3103 * block.c (call_site_for_pc): Update.
3104 * blockframe.c (get_pc_function_start): Update.
3105 (find_pc_partial_function_gnu_ifunc): Update.
3106 * breakpoint.c (create_overlay_event_breakpoint): Update.
3107 (create_longjmp_master_breakpoint): Update.
3108 (create_std_terminate_master_breakpoint): Update.
3109 (create_exception_master_breakpoint): Update.
3110 (resolve_sal_pc): Update.
3111 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3112 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3114 * c-valprint.c (c_val_print): Update.
3115 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3116 * coffread.c (coff_symfile_read): Update.
3117 * common/agent.c (agent_look_up_symbols): Update.
3118 * dbxread.c (find_stab_function_addr): Update.
3119 (end_psymtab): Update.
3120 * dwarf2loc.c (call_site_to_target_addr): Update.
3121 (func_verify_no_selftailcall): Update.
3122 (tailcall_dump): Update.
3123 (call_site_find_chain_1): Update.
3124 (dwarf_expr_reg_to_entry_parameter): Update.
3125 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3126 (elf_gnu_ifunc_resolve_by_got): Update.
3127 * f-valprint.c (info_common_command): Update.
3128 * findvar.c (read_var_value): Update.
3129 * frame.c (get_prev_frame_1): Update.
3130 (inside_main_func): Update.
3131 * frv-tdep.c (frv_skip_main_prologue): Update.
3132 (frv_frame_this_id): Update.
3133 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3134 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3135 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3136 (gnuv3_skip_trampoline): Update.
3137 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3138 (hppa64_hpux_in_solib_call_trampoline): Update.
3139 (hppa_hpux_skip_trampoline_code): Update.
3140 (hppa64_hpux_search_dummy_call_sequence): Update.
3141 (hppa_hpux_find_import_stub_for_addr): Update.
3142 (hppa_hpux_find_dummy_bpaddr): Update.
3143 * hppa-tdep.c (hppa_symbol_address)
3144 (hppa_lookup_stub_minimal_symbol): Update.
3145 * i386-tdep.c (i386_skip_main_prologue): Update.
3146 (i386_pe_skip_trampoline_code): Update.
3147 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3148 * infcall.c (get_function_name): Update.
3149 * infcmd.c (until_next_command): Update.
3150 * jit.c (jit_breakpoint_re_set_internal): Update.
3151 (jit_inferior_init): Update.
3152 * linespec.c (minsym_found): Update.
3153 (add_minsym): Update.
3154 * linux-fork.c (info_checkpoints_command): Update.
3155 * linux-nat.c (get_signo): Update.
3156 * linux-thread-db.c (inferior_has_bug): Update.
3157 * m32c-tdep.c (m32c_return_value): Update.
3158 (m32c_m16c_address_to_pointer): Update.
3159 (m32c_m16c_pointer_to_address): Update.
3160 * m32r-tdep.c (m32r_frame_this_id): Update.
3161 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3162 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3163 * maint.c (maintenance_translate_address): Update.
3164 * minsyms.c (add_minsym_to_hash_table): Update.
3165 (add_minsym_to_demangled_hash_table): Update.
3166 (msymbol_objfile): Update.
3167 (lookup_minimal_symbol): Update.
3168 (iterate_over_minimal_symbols): Update.
3169 (lookup_minimal_symbol_text): Update.
3170 (lookup_minimal_symbol_by_pc_name): Update.
3171 (lookup_minimal_symbol_solib_trampoline): Update.
3172 (lookup_minimal_symbol_by_pc_section_1): Update.
3173 (lookup_minimal_symbol_and_objfile): Update.
3174 (prim_record_minimal_symbol_full): Update.
3175 (compare_minimal_symbols): Update.
3176 (compact_minimal_symbols): Update.
3177 (build_minimal_symbol_hash_tables): Update.
3178 (install_minimal_symbols): Update.
3179 (terminate_minimal_symbol_table): Update.
3180 (find_solib_trampoline_target): Update.
3181 (minimal_symbol_upper_bound): Update.
3182 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3183 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3184 (mips_skip_pic_trampoline_code): Update.
3185 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3186 * objc-lang.c (selectors_info): Update.
3187 (classes_info): Update.
3188 (find_methods): Update.
3189 (find_imps): Update.
3190 (find_objc_msgsend): Update.
3191 * objfiles.c (objfile_relocate1): Update.
3192 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3193 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3194 * p-valprint.c (pascal_val_print): Update.
3195 * parse.c (write_exp_msymbol): Update.
3196 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3197 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3198 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3199 * printcmd.c (build_address_symbolic): Update.
3201 (address_info): Update.
3202 * proc-service.c (ps_pglobal_lookup): Update.
3203 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3204 (find_pc_sect_psymtab): Update.
3205 * python/py-framefilter.c (py_print_frame): Update.
3206 * ravenscar-thread.c (get_running_thread_id): Update.
3207 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3209 * remote.c (remote_check_symbols): Update.
3210 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3211 (rs6000_skip_trampoline_code): Update.
3212 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3213 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3214 * solib-dsbt.c (lm_base): Update.
3215 * solib-frv.c (lm_base): Update.
3217 * solib-irix.c (locate_base): Update.
3218 * solib-som.c (som_solib_create_inferior_hook): Update.
3219 (som_solib_desire_dynamic_linker_symbols): Update.
3220 (link_map_start): Update.
3221 * solib-spu.c (spu_enable_break): Update.
3222 (ocl_enable_break): Update.
3223 * solib-svr4.c (elf_locate_base): Update.
3224 (enable_break): Update.
3225 * spu-tdep.c (spu_get_overlay_table): Update.
3226 (spu_catch_start): Update.
3227 (flush_ea_cache): Update.
3228 * stabsread.c (define_symbol): Update.
3229 (scan_file_globals): Update.
3230 * stack.c (find_frame_funname): Update.
3231 (frame_info): Update.
3232 * symfile.c (simple_read_overlay_table): Update.
3233 (simple_overlay_update): Update.
3234 * symmisc.c (dump_msymbols): Update.
3235 * symtab.c (fixup_section): Update.
3236 (find_pc_sect_line): Update.
3237 (skip_prologue_sal): Update.
3238 (search_symbols): Update.
3239 (print_msymbol_info): Update.
3240 (rbreak_command): Update.
3241 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3242 (completion_list_objc_symbol): Update.
3243 (default_make_symbol_completion_list_break_on): Update.
3244 * tracepoint.c (scope_info): Update.
3245 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3246 (tui_get_begin_asm_address): Update.
3247 * valops.c (find_function_in_inferior): Update.
3248 * value.c (value_static_field): Update.
3249 (value_fn_field): Update.
3251 2014-02-26 Tom Tromey <tromey@redhat.com>
3253 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3254 bound minimal symbols. Move code that knows about minsym
3256 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3258 * minsyms.h (minimal_symbol_upper_bound): Declare.
3259 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3260 minimal_symbol_upper_bound.
3262 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3264 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3265 Use the type's name if its basic type does not have a tag.
3267 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3269 * dwarf2read.c (read_subrange_type): Add comment.
3271 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3273 * dwarf2read.c (update_enumeration_type_from_children): New
3274 function, mostly extracted from process_structure_scope.
3275 (read_enumeration_type): Call update_enumeration_type_from_children.
3276 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3277 and flag_flag_enum fields.
3279 2014-02-26 Pedro Alves <palves@redhat.com>
3281 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3282 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3283 to_xfer_partial method.
3285 2014-02-26 Pedro Alves <palves@redhat.com>
3287 * target.c (complete_target_initialization): Don't install
3288 default_xfer_partial as to_xfer_partial hook.
3290 (update_current_target): Don't INHERIT nor de_fault
3291 deprecated_xfer_memory. Delete de_fault macro.
3292 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3293 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3294 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3297 2014-02-26 Pedro Alves <palves@redhat.com>
3299 * go32-nat.c (my_write_child): New function.
3300 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3301 (go32_xfer_partial): New function.
3302 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3303 Instead install a to_xfer_partial hook.
3305 2014-02-26 Pedro Alves <palves@redhat.com>
3307 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3308 to_xfer_partial helper. Rewrite.
3309 (procfs_xfer_partial): New function.
3310 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3311 Install a to_xfer_partial hook.
3313 2014-02-26 Pedro Alves <palves@redhat.com>
3315 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3316 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3317 (m32r_xfer_partial): New function.
3318 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3319 Install a to_xfer_partial hook.
3321 2014-02-26 Pedro Alves <palves@redhat.com>
3323 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3325 (mips_xfer_partial): New function.
3326 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3327 hook. Install a to_xfer_partial hook.
3329 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3331 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3332 * gdbtypes.c (create_array_type_with_stride): New function,
3333 renaming create_array_type, but with an added parameter
3334 called "bit_stride".
3335 (create_array_type): Re-implement using
3336 create_array_type_with_stride.
3337 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3338 and DW_AT_bit_stride attributes.
3340 2014-02-26 Pedro Alves <palves@redhat.com>
3342 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3343 task-specific breakpoints.
3345 2014-02-25 Pedro Alves <palves@redhat.com>
3347 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3348 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3350 2014-02-25 Stan Shebs <stan@codesourcery.com>
3352 * defs.h: Annotate comments for Doxygen.
3354 2014-02-25 Tom Tromey <tromey@redhat.com>
3356 * target.h (target_ignore): Don't declare.
3357 * target.c (target_ignore): Remove.
3359 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 * auto-load.c (auto_load_objfile_script_1): Change filename to
3365 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3367 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3368 documentation. Adjust prototype to match the target_ops
3369 to_xfer_partial method. Adjust implementation accordingly.
3371 2014-02-25 Hui Zhu <hui@codesourcery.com>
3373 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3376 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3378 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3379 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3380 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3381 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3382 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3383 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3384 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3385 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3387 (rl78_register_type): Use a data pointer type for SP and
3388 new pseudo registers mentioned above. Use a 16 bit integer
3389 type for all other register pairs.
3390 (rl78_register_name, rl78_g10_register_name): Update for
3391 new pseudo registers.
3392 (rl78_pseudo_register_read): Likewise.
3393 (rl78_pseudo_register_write): Likewise.
3394 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3395 to the newly added pseudo registers.
3397 2014-02-24 Doug Evans <dje@google.com>
3399 * value.c (record_latest_value): Fix comment.
3400 * printcmd.c (print_command_1): Remove code to handle -1 return from
3401 record_latest_value.
3403 2014-02-24 Pedro Alves <palves@redhat.com>
3405 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3406 deprecated_xfer_memory hook.
3407 (procfs_xfer_partial): Call procfs_xfer_memory instead
3408 of the deprecated_xfer_memory target hook.
3409 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3412 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3414 * windows-nat.c (windows_xfer_shared_libraries): Return
3415 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3416 requested object is TARGET_OBJECT_LIBRARIES.
3418 2014-02-24 Yao Qi <yao@codesourcery.com>
3420 * target.h (enum target_xfer_status)
3421 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3422 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3424 * corefile.c (memory_error_message): User updated.
3425 * exec.c (section_table_read_available_memory): Likewise.
3426 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3427 * target.c (target_xfer_status_to_string): Likewise.
3428 (raw_memory_xfer_partial): Likewise.
3429 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3430 * valops.c (read_value_memory): Likewise.
3431 * exec.h: Update comments.
3433 2014-02-24 Yao Qi <yao@codesourcery.com>
3435 * target.c (target_xfer_status_to_string): Rename argument err
3437 * target.h (target_xfer_status_to_string): Update declaration.
3438 Replace target_xfer_error_to_string with
3439 target_xfer_status_to_string in comment.
3441 2014-02-24 Yao Qi <yao@codesourcery.com>
3443 * mips-linux-nat.c (super_close): Update its type.
3444 (mips_linux_close): Pass 'self' to super_close.
3446 2014-02-24 Yao Qi <yao@codesourcery.com>
3448 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3449 * corefile.c (read_memory): Adjusted.
3450 * target.c (target_write_with_progress): Adjusted.
3452 2014-02-23 Yao Qi <yao@codesourcery.com>
3456 2013-10-25 Yao Qi <yao@codesourcery.com>
3458 * remote.c (remote_traceframe_info): Return early if
3459 traceframe is not selected.
3461 2013-07-19 Yao Qi <yao@codesourcery.com>
3463 * target.c (update_current_target): Change the default action
3464 of 'to_traceframe_info' from tcomplain to return_zero.
3465 * target.h (struct target_ops) <to_traceframe_info>: Add more
3468 2014-02-23 Yao Qi <yao@codesourcery.com>
3470 * valops.c (read_value_memory): Rewrite it. Call
3471 target_xfer_partial in a loop.
3472 * exec.h (section_table_available_memory): Remove declaration.
3473 Move comments to ...
3474 * exec.c (section_table_available_memory): ... here. Make it
3477 2014-02-23 Yao Qi <yao@codesourcery.com>
3479 * exec.c (section_table_read_available_memory): New function.
3480 * exec.h (section_table_read_available_memory): Declare.
3481 * ctf.c (ctf_xfer_partial): Call
3482 section_table_read_available_memory.
3483 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3485 2014-02-23 Yao Qi <yao@codesourcery.com>
3487 * ctf.c (ctf_xfer_partial): Move code to ...
3488 * exec.c (exec_read_partial_read_only): ... it. New function.
3489 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3490 * tracefile.c: Include "exec.h".
3491 * exec.h (exec_read_partial_read_only): Declare.
3493 2014-02-23 Yao Qi <yao@codesourcery.com>
3495 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3496 (tfile_has_memory): Remove.
3497 (init_tfile_ops): Don't set fields to_has_all_memory and
3498 to_has_memory of tfile_ops.
3499 * tracefile.c (tracefile_has_all_memory): New function.
3500 (tracefile_has_memory): New function.
3501 (init_tracefile_ops): Initialize fields to_has_all_memory and
3502 to_has_memory of 'ops'.
3504 2014-02-23 Yao Qi <yao@codesourcery.com>
3506 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3507 (ctf_thread_alive, ctf_get_trace_status): Remove.
3508 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3510 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3511 (tfile_has_stack, tfile_has_registers): Remove.
3512 (tfile_thread_alive): Remove.
3513 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3515 * tracefile.c (tracefile_has_stack): New function.
3516 (tracefile_has_registers): New function.
3517 (tracefile_thread_alive): New function.
3518 (tracefile_get_trace_status): New function.
3519 (init_tracefile_ops): New function.
3520 * tracefile.h (init_tracefile_ops): Declare.
3522 2014-02-23 Yao Qi <yao@codesourcery.com>
3524 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3525 (O_LARGEFILE): Likewise.
3526 (tfile_ops): Likewise.
3527 (TRACE_HEADER_SIZE): Likewise.
3528 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3529 (cur_data_size): Likewise.
3530 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3531 (tfile_close, tfile_files_info): Likewise.
3532 (tfile_get_trace_status): Likewise.
3533 (tfile_get_tracepoint_status): Likewise.
3534 (tfile_get_traceframe_address): Likewise.
3535 (tfile_trace_find, match_blocktype): Likewise.
3536 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3537 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3538 (tfile_get_trace_state_variable_value): Likewise.
3539 (tfile_has_all_memory, tfile_has_memory): Likewise.
3540 (tfile_has_stack, tfile_has_registers): Likewise.
3541 (tfile_thread_alive, build_traceframe_info): Likewise.
3542 (tfile_traceframe_info, init_tfile_ops): Likewise.
3543 (_initialize_tracepoint): Don't call init_tfile_ops
3544 and add_target_with_completer.
3545 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3546 exec.h, completer.h and filenames.h.
3547 (_initialize_tracefile_tfile): New function.
3549 2014-02-23 Yao Qi <yao@codesourcery.com>
3551 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3553 (HFILES_NO_SRCDIR): Add tracefile.h.
3554 * ctf.c: Include "tracefile.h".
3555 * tracefile.h: New file.
3556 * tracefile.c: New file
3557 * tracefile-tfile.c: New file.
3558 * tracepoint.c: Include "tracefile.h".
3559 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3560 (stop_reason_names): Add const.
3561 (trace_file_writer_xfree): Move it to tracefile.c.
3562 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3563 (trace_save_ctf): Likewise.
3564 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3565 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3566 (tfile_write_header, tfile_write_regblock_type): Likewise.
3567 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3568 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3569 (tfile_write_raw_data, tfile_end): Likewise.
3570 (tfile_trace_file_writer_new): Likewise.
3571 (free_uploaded_tp): Make it extern.
3572 (free_uploaded_tsv): Make it extern.
3573 (_initialize_tracepoint): Move code to register command 'tsave'
3575 * tracepoint.h (stop_reason_names): Declare.
3576 (struct trace_frame_write_ops): Move it to tracefile.h.
3577 (struct trace_file_write_ops): Likewise.
3578 (struct trace_file_writer): Likewise.
3579 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3581 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3584 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3586 (get_cores_used_by_process): New parameter num_cores, use it.
3587 (linux_xfer_osdata_processes): Pass num_cores to it.
3588 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3591 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3593 * target.c (memory_xfer_partial): Fix length arg in call to
3594 breakpoint_xfer_memory.
3596 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3599 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3600 number comes after the + or - signs. Adjust length of register
3601 name to be extracted.
3603 2014-02-20 Tom Tromey <tromey@redhat.com>
3605 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3606 (ada_varobj_ops): Mark "extern".
3608 2014-02-20 Tom Tromey <tromey@redhat.com>
3610 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3612 2014-02-20 Doug Evans <xdje42@gmail.com>
3614 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3615 All callers updated.
3616 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3617 All callers updated.
3618 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3619 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3621 2014-02-20 lin zuojian <manjian2006@gmail.com>
3622 Joel Brobecker <brobecker@adacore.com>
3623 Doug Evans <xdje42@gmail.com>
3626 * dwarf2read.c (struct die_info): New member in_process.
3627 (reset_die_in_process): New function.
3628 (process_die): Set it at the start, reset when returning.
3629 (inherit_abstract_dies): Only call process_die if origin_child_die
3630 not already being processed.
3632 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3634 * windows-nat.c (handle_unload_dll): Add function documentation.
3635 (do_initial_windows_stuff): Add comment explaining why we wait
3636 until after inferior initialization has finished before
3637 processing all DLLs.
3639 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3641 * windows-nat.c (get_module_name): Delete.
3642 (windows_get_exec_module_filename): New function, mostly
3643 inspired from get_module_name.
3644 (windows_pid_to_exec_file): Replace call to get_module_name
3645 by call to windows_get_exec_module_filename.
3647 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3649 * windows-nat.c (handle_load_dll): Rewrite this function's
3650 introductory comment. Remove code using get_module_name
3651 to get the DLL's name.
3653 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3655 * windows-nat.c (get_windows_debug_event): Ignore
3656 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3657 if windows_initialization_done == 0.
3658 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3659 Adjust implementation to always load all DLLs.
3660 (do_initial_windows_stuff): Replace call to
3661 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3663 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3665 * windows-nat.c (_initialize_windows_nat): Deprecate the
3666 "dll-symbols" command. Turn the "add-shared-symbol-files"
3667 and "assf" aliases into commands, and deprecate them as well.
3668 * NEWS: Add entry explaining that "dll-symbols" and its two
3669 aliases are now deprecated.
3671 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3673 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3674 new-line in debug string. Remove trailing spaces.
3676 2014-02-19 Stan Shebs <stan@codesourcery.com>
3678 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3680 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3682 * NEWS: Add entry for the new feature
3683 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3686 2014-02-19 Stan Shebs <stan@codesourcery.com>
3688 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3690 2014-02-19 Pedro Alves <palves@redhat.com>
3692 * common/ptid.h (struct ptid): Mention that process_stratum
3693 targets should prefer ptid.lwp.
3695 2014-02-19 Pedro Alves <palves@redhat.com>
3697 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3698 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3699 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3700 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3701 store remote thread ids rather than ptid.tid.
3702 (_initialize_remote): Adjust.
3704 2014-02-19 Tom Tromey <tromey@redhat.com>
3706 * target.c (target_get_unwinder): Rewrite.
3707 (target_get_tailcall_unwinder): Rewrite.
3708 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3709 (record_btrace_to_get_tailcall_unwinder): New function.
3710 (init_record_btrace_ops): Update.
3711 * target.h (struct target_ops) <to_get_unwinder,
3712 to_get_tailcall_unwinder>: Now function pointers. Use
3713 TARGET_DEFAULT_RETURN.
3715 2014-02-19 Tom Tromey <tromey@redhat.com>
3717 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3719 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3721 2014-02-19 Tom Tromey <tromey@redhat.com>
3723 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3725 * target-delegates.c: Rebuild.
3726 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3727 TARGET_DEFAULT_FUNC.
3728 * target.c (default_target_decr_pc_after_break): Rename from
3729 forward_target_decr_pc_after_break. Simplify.
3730 (target_decr_pc_after_break): Rely on delegation.
3732 2014-02-19 Tom Tromey <tromey@redhat.com>
3734 * target.c (update_current_target): Do not INHERIT to_doc or
3735 to_magic. Do not de_fault to_open or to_close.
3737 2014-02-19 Tom Tromey <tromey@redhat.com>
3739 * gcore.h (objfile_find_memory_regions): Declare.
3740 * gcore.c (objfile_find_memory_regions): No longer static. Add
3742 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3743 * exec.c: Include gcore.h.
3744 (exec_set_find_memory_regions): Remove.
3745 (exec_find_memory_regions): Remove.
3746 (exec_do_find_memory_regions): Remove.
3747 (init_exec_ops): Update.
3748 * defs.h (exec_set_find_memory_regions): Remove.
3750 2014-02-19 Tom Tromey <tromey@redhat.com>
3752 * target-delegates.c: Rebuild.
3753 * target.h (struct target_ops) <to_extra_thread_info,
3754 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3755 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3756 not 0, in TARGET_DEFAULT_RETURN.
3758 2014-02-19 Tom Tromey <tromey@redhat.com>
3760 * target.c (complete_target_initialization): Remove casts. Use
3761 return_zero_has_execution.
3762 (return_zero): Add "ignore" argument.
3763 (return_zero_has_execution): New function.
3764 (init_dummy_target): Remove casts. Use
3765 return_zero_has_execution.
3767 2014-02-19 Tom Tromey <tromey@redhat.com>
3769 * target.c (update_current_target): Update comments. Do not
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3776 * corelow.c (core_read_description): Delegate when needed.
3777 * remote.c (remote_read_description): Delegate when needed.
3778 * target-delegates.c: Rebuild.
3779 * target.c (target_read_description): Rewrite.
3780 * target.h (struct target_ops) <to_read_description>: Update
3781 comment. Use TARGET_DEFAULT_RETURN.
3783 2014-02-19 Tom Tromey <tromey@redhat.com>
3785 * target-delegates.c: Rebuild.
3786 * target.c (update_current_target): Don't inherit or default
3788 (find_default_run_target): Check against delegate_can_run.
3789 * target.h (struct target_ops) <to_can_run>: Use
3790 TARGET_DEFAULT_RETURN.
3792 2014-02-19 Tom Tromey <tromey@redhat.com>
3794 * target-delegates.c: Rebuild.
3795 * target.c (target_disconnect): Unconditionally delegate.
3796 * target.h (struct target_ops) <to_disconnect>: Use
3797 TARGET_DEFAULT_NORETURN.
3799 2014-02-19 Tom Tromey <tromey@redhat.com>
3801 * record.c (record_stop): Unconditionally delegate.
3802 * target-delegates.c: Rebuild.
3803 * target.c (target_stop_recording): Unconditionally delegate.
3804 * target.h (struct target_ops) <to_stop_recording>: Use
3805 TARGET_DEFAULT_IGNORE.
3807 2014-02-19 Tom Tromey <tromey@redhat.com>
3809 * target-delegates.c: Rebuild.
3810 * target.c (target_enable_btrace): Unconditionally delegate.
3811 * target.h (struct target_ops) <to_enable_btrace>: Use
3812 TARGET_DEFAULT_NORETURN.
3814 2014-02-19 Tom Tromey <tromey@redhat.com>
3816 * target-delegates.c: Rebuild.
3817 * target.c (target_read_btrace): Unconditionally delegate.
3818 * target.h (struct target_ops) <to_read_btrace>: Use
3819 TARGET_DEFAULT_NORETURN.
3821 2014-02-19 Tom Tromey <tromey@redhat.com>
3823 * target-delegates.c: Rebuild.
3824 * target.c (target_teardown_btrace): Unconditionally delegate.
3825 * target.h (struct target_ops) <to_teardown_btrace>: Use
3826 TARGET_DEFAULT_NORETURN.
3828 2014-02-19 Tom Tromey <tromey@redhat.com>
3830 * target-delegates.c: Rebuild.
3831 * target.c (target_disable_btrace): Unconditionally delegate.
3832 * target.h (struct target_ops) <to_disable_btrace>: Use
3833 TARGET_DEFAULT_NORETURN.
3835 2014-02-19 Tom Tromey <tromey@redhat.com>
3837 * target-delegates.c: Rebuild.
3838 * target.c (default_search_memory): New function.
3839 (simple_search_memory): Update comment.
3840 (target_search_memory): Unconditionally delegate.
3841 * target.h (struct target_ops) <to_search_memory>: Use
3842 TARGET_DEFAULT_FUNC.
3844 2014-02-19 Tom Tromey <tromey@redhat.com>
3846 * auxv.c (default_auxv_parse): No longer static.
3847 (target_auxv_parse): Unconditionally delegate.
3848 * auxv.h (default_auxv_parse): Declare.
3849 * target-delegates.c: Rebuild.
3850 * target.c: Include auxv.h.
3851 * target.h (struct target_ops) <to_auxv_parse>: Use
3852 TARGET_DEFAULT_FUNC.
3854 2014-02-19 Tom Tromey <tromey@redhat.com>
3856 * target-delegates.c: Rebuild.
3857 * target.c (target_memory_map): Unconditionally delegate.
3858 * target.h (struct target_ops) <to_memory_map>: Use
3859 TARGET_DEFAULT_RETURN.
3861 2014-02-19 Tom Tromey <tromey@redhat.com>
3863 * target-delegates.c: Rebuild.
3864 * target.c (target_thread_alive): Unconditionally delegate.
3865 * target.h (struct target_ops) <to_thread_alive>: Use
3866 TARGET_DEFAULT_RETURN.
3868 2014-02-19 Tom Tromey <tromey@redhat.com>
3870 * target-delegates.c: Rebuild.
3871 * target.c (target_save_record): Unconditionally delegate.
3872 * target.h (struct target_ops) <to_save_record>: Use
3873 TARGET_DEFAULT_NORETURN.
3875 2014-02-19 Tom Tromey <tromey@redhat.com>
3877 * target-delegates.c: Rebuild.
3878 * target.c (target_delete_record): Unconditionally delegate.
3879 * target.h (struct target_ops) <to_delete_record>: Use
3880 TARGET_DEFAULT_NORETURN.
3882 2014-02-19 Tom Tromey <tromey@redhat.com>
3884 * target-delegates.c: Rebuild.
3885 * target.c (target_record_is_replaying): Unconditionally
3887 * target.h (struct target_ops) <to_record_is_replaying>: Use
3888 TARGET_DEFAULT_RETURN.
3890 2014-02-19 Tom Tromey <tromey@redhat.com>
3892 * target-delegates.c: Rebuild.
3893 * target.c (target_goto_record_begin): Unconditionally delegate.
3894 * target.h (struct target_ops) <to_goto_record_begin>: Use
3895 TARGET_DEFAULT_NORETURN.
3897 2014-02-19 Tom Tromey <tromey@redhat.com>
3899 * target-delegates.c: Rebuild.
3900 * target.c (target_goto_record_end): Unconditionally delegate.
3901 * target.h (struct target_ops) <to_goto_record_end>: Use
3902 TARGET_DEFAULT_NORETURN.
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target-delegates.c: Rebuild.
3907 * target.c (target_goto_record): Unconditionally delegate.
3908 * target.h (struct target_ops) <to_goto_record>: Use
3909 TARGET_DEFAULT_NORETURN.
3911 2014-02-19 Tom Tromey <tromey@redhat.com>
3913 * target-delegates.c: Rebuild.
3914 * target.c (target_insn_history): Unconditionally delegate.
3915 * target.h (struct target_ops) <to_insn_history>: Use
3916 TARGET_DEFAULT_NORETURN.
3918 2014-02-19 Tom Tromey <tromey@redhat.com>
3920 * target-delegates.c: Rebuild.
3921 * target.c (target_insn_history_from): Unconditionally delegate.
3922 * target.h (struct target_ops) <to_insn_history_from>: Use
3923 TARGET_DEFAULT_NORETURN.
3925 2014-02-19 Tom Tromey <tromey@redhat.com>
3927 * target-delegates.c: Rebuild.
3928 * target.c (target_insn_history_range): Unconditionally delegate.
3929 * target.h (struct target_ops) <to_insn_history_range>: Use
3930 TARGET_DEFAULT_NORETURN.
3932 2014-02-19 Tom Tromey <tromey@redhat.com>
3934 * target-delegates.c: Rebuild.
3935 * target.c (target_call_history): Unconditionally delegate.
3936 * target.h (struct target_ops) <to_call_history>: Use
3937 TARGET_DEFAULT_NORETURN.
3939 2014-02-19 Tom Tromey <tromey@redhat.com>
3941 * target-delegates.c: Rebuild.
3942 * target.c (target_call_history_from): Unconditionally delegate.
3943 * target.h (struct target_ops) <to_call_history_from>: Use
3944 TARGET_DEFAULT_NORETURN.
3946 2014-02-19 Tom Tromey <tromey@redhat.com>
3948 * target-delegates.c: Rebuild.
3949 * target.c (target_call_history_range): Unconditionally delegate.
3950 * target.h (struct target_ops) <to_call_history_range>: Use
3951 TARGET_DEFAULT_NORETURN.
3953 2014-02-19 Tom Tromey <tromey@redhat.com>
3955 * target-delegates.c: Rebuild.
3956 * target.c (target_verify_memory): Unconditionally delegate.
3957 * target.h (struct target_ops) <to_verify_memory>: Use
3958 TARGET_DEFAULT_NORETURN.
3960 2014-02-19 Tom Tromey <tromey@redhat.com>
3962 * target-delegates.c: Rebuild.
3963 * target.c (target_core_of_thread): Unconditionally delegate.
3964 * target.h (struct target_ops) <to_core_of_thread>: Use
3965 TARGET_DEFAULT_RETURN.
3967 2014-02-19 Tom Tromey <tromey@redhat.com>
3969 * target-delegates.c: Rebuild.
3970 * target.c (target_flash_done): Unconditionally delegate.
3971 * target.h (struct target_ops) <to_flash_done>: Use
3972 TARGET_DEFAULT_NORETURN.
3974 2014-02-19 Tom Tromey <tromey@redhat.com>
3976 * target-delegates.c: Rebuild.
3977 * target.c (target_flash_erase): Unconditionally delegate.
3978 * target.h (struct target_ops) <to_flash_erase>: Use
3979 TARGET_DEFAULT_NORETURN.
3981 2014-02-19 Tom Tromey <tromey@redhat.com>
3983 * target-delegates.c: Rebuild.
3984 * target.c (target_get_section_table): Unconditionally delegate.
3985 * target.h (struct target_ops) <to_get_section_table>: Use
3986 TARGET_DEFAULT_RETURN.
3988 2014-02-19 Tom Tromey <tromey@redhat.com>
3990 * target-delegates.c: Rebuild.
3991 * target.c (target_pid_to_str): Unconditionally delegate.
3992 (init_dummy_target): Don't initialize to_pid_to_str.
3993 (default_pid_to_str): Rename from dummy_pid_to_str.
3994 * target.h (struct target_ops) <to_pid_to_str>: Use
3995 TARGET_DEFAULT_FUNC.
3997 2014-02-19 Tom Tromey <tromey@redhat.com>
3999 * target-delegates.c: Rebuild.
4000 * target.c (target_find_new_threads): Unconditionally delegate.
4001 * target.h (struct target_ops) <to_find_new_threads>: Use
4002 TARGET_DEFAULT_RETURN.
4004 2014-02-19 Tom Tromey <tromey@redhat.com>
4006 * target-delegates.c: Rebuild.
4007 * target.c (target_program_signals): Unconditionally delegate.
4008 * target.h (struct target_ops) <to_program_signals>: Use
4009 TARGET_DEFAULT_IGNORE.
4011 2014-02-19 Tom Tromey <tromey@redhat.com>
4013 * target-delegates.c: Rebuild.
4014 * target.c (target_pass_signals): Unconditionally delegate.
4015 * target.h (struct target_ops) <to_pass_signals>: Use
4016 TARGET_DEFAULT_IGNORE.
4018 2014-02-19 Tom Tromey <tromey@redhat.com>
4020 * target-delegates.c: Rebuild.
4021 * target.c (default_mourn_inferior): New function.
4022 (target_mourn_inferior): Unconditionally delegate.
4023 * target.h (struct target_ops) <to_mourn_inferior>: Use
4024 TARGET_DEFAULT_FUNC.
4026 2014-02-19 Tom Tromey <tromey@redhat.com>
4028 * target-delegates.c: Rebuild.
4029 * target.c (default_follow_fork): New function.
4030 (target_follow_fork): Unconditionally delegate.
4031 * target.h (struct target_ops) <to_follow_fork>: Use
4032 TARGET_DEFAULT_FUNC.
4034 2014-02-19 Tom Tromey <tromey@redhat.com>
4036 * target-delegates.c: Rebuild.
4037 * target.c (target_kill): Unconditionally delegate.
4038 * target.h (struct target_ops) <to_kill>: Use
4039 TARGET_DEFAULT_NORETURN.
4041 2014-02-19 Tom Tromey <tromey@redhat.com>
4043 * target-delegates.c: Rebuild.
4044 * target.c (target_masked_watch_num_registers): Unconditionally
4046 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4047 Use TARGET_DEFAULT_RETURN.
4049 2014-02-19 Tom Tromey <tromey@redhat.com>
4051 * target-delegates.c: Rebuild.
4052 * target.c (target_remove_mask_watchpoint): Unconditionally
4054 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4055 TARGET_DEFAULT_RETURN.
4057 2014-02-19 Tom Tromey <tromey@redhat.com>
4059 * target-delegates.c: Rebuild.
4060 * target.c (target_insert_mask_watchpoint): Unconditionally
4062 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4063 TARGET_DEFAULT_RETURN.
4065 2014-02-19 Tom Tromey <tromey@redhat.com>
4067 * target-delegates.c: Rebuild.
4068 * target.c (target_ranged_break_num_registers): Unconditionally
4070 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4071 Use TARGET_DEFAULT_RETURN.
4073 2014-02-19 Tom Tromey <tromey@redhat.com>
4075 * target-delegates.c: Rebuild.
4076 * target.c (target_fetch_registers): Unconditionally delegate.
4077 * target.h (struct target_ops) <to_fetch_registers>: Use
4078 TARGET_DEFAULT_NORETURN.
4080 2014-02-19 Tom Tromey <tromey@redhat.com>
4082 * target-delegates.c: Rebuild.
4083 * target.c (update_current_target): Don't inherit or default
4085 * target.h (struct target_ops) <to_stop>: Use
4086 TARGET_DEFAULT_IGNORE.
4088 2014-02-19 Tom Tromey <tromey@redhat.com>
4090 * target-delegates.c: Rebuild.
4091 * target.c (update_current_target): Don't inherit or default
4092 to_can_run_breakpoint_commands.
4093 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4094 Use TARGET_DEFAULT_RETURN.
4096 2014-02-19 Tom Tromey <tromey@redhat.com>
4098 * target-delegates.c: Rebuild.
4099 * target.c (update_current_target): Don't inherit or default
4100 to_supports_evaluation_of_breakpoint_conditions.
4101 * target.h (struct target_ops)
4102 <to_supports_evaluation_of_breakpoint_conditions>: Use
4103 TARGET_DEFAULT_RETURN.
4105 2014-02-19 Tom Tromey <tromey@redhat.com>
4107 * target-delegates.c: Rebuild.
4108 * target.c (update_current_target): Don't inherit or default
4109 to_augmented_libraries_svr4_read.
4110 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4111 Use TARGET_DEFAULT_RETURN.
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
4118 * target.h (struct target_ops) <to_can_use_agent>: Use
4119 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_use_agent>: Use
4127 TARGET_DEFAULT_NORETURN.
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 (return_null): Remove.
4135 * target.h (struct target_ops) <to_traceframe_info>: Use
4136 TARGET_DEFAULT_RETURN.
4138 2014-02-19 Tom Tromey <tromey@redhat.com>
4140 * target-delegates.c: Rebuild.
4141 * target.c (update_current_target): Don't inherit or default
4142 to_static_tracepoint_markers_by_strid.
4143 * target.h (struct target_ops)
4144 <to_static_tracepoint_markers_by_strid>: Use
4145 TARGET_DEFAULT_NORETURN.
4147 2014-02-19 Tom Tromey <tromey@redhat.com>
4149 * target-delegates.c: Rebuild.
4150 * target.c (update_current_target): Don't inherit or default
4151 to_static_tracepoint_marker_at.
4152 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4153 Use TARGET_DEFAULT_RETURN.
4155 2014-02-19 Tom Tromey <tromey@redhat.com>
4157 * target-delegates.c: Rebuild.
4158 * target.c (update_current_target): Don't inherit or default
4160 * target.h (struct target_ops) <to_set_permissions>: Use
4161 TARGET_DEFAULT_IGNORE.
4163 2014-02-19 Tom Tromey <tromey@redhat.com>
4165 * target-delegates.c: Rebuild.
4166 * target.c (update_current_target): Don't inherit or default
4168 * target.h (struct target_ops) <to_get_tib_address>: Use
4169 TARGET_DEFAULT_NORETURN.
4171 2014-02-19 Tom Tromey <tromey@redhat.com>
4173 * target-delegates.c: Rebuild.
4174 * target.c (update_current_target): Don't inherit or default
4176 * target.h (struct target_ops) <to_set_trace_notes>: Use
4177 TARGET_DEFAULT_RETURN.
4179 2014-02-19 Tom Tromey <tromey@redhat.com>
4181 * target-delegates.c: Rebuild.
4182 * target.c (update_current_target): Don't initialize
4183 to_set_trace_buffer_size.
4184 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4185 TARGET_DEFAULT_IGNORE.
4187 2014-02-19 Tom Tromey <tromey@redhat.com>
4189 * target-delegates.c: Rebuild.
4190 * target.c (update_current_target): Don't inherit or default
4191 to_set_circular_trace_buffer.
4192 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4193 TARGET_DEFAULT_IGNORE.
4195 2014-02-19 Tom Tromey <tromey@redhat.com>
4197 * target-delegates.c: Rebuild.
4198 * target.c (update_current_target): Don't inherit or default
4199 to_set_disconnected_tracing.
4200 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4201 TARGET_DEFAULT_IGNORE.
4203 2014-02-19 Tom Tromey <tromey@redhat.com>
4205 * target-delegates.c: Rebuild.
4206 * target.c (update_current_target): Don't inherit or default
4207 to_get_min_fast_tracepoint_insn_len.
4208 (return_minus_one): Remove.
4209 * target.h (struct target_ops)
4210 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4212 2014-02-19 Tom Tromey <tromey@redhat.com>
4214 * target-delegates.c: Rebuild.
4215 * target.c (update_current_target): Don't inherit or default
4216 to_get_raw_trace_data.
4217 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4218 TARGET_DEFAULT_NORETURN.
4220 2014-02-19 Tom Tromey <tromey@redhat.com>
4222 * target-delegates.c: Rebuild.
4223 * target.c (update_current_target): Don't inherit or default
4224 to_upload_trace_state_variables.
4225 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4226 Use TARGET_DEFAULT_RETURN.
4228 2014-02-19 Tom Tromey <tromey@redhat.com>
4230 * target-delegates.c: Rebuild.
4231 * target.c (update_current_target): Don't inherit or default
4232 to_upload_tracepoints.
4233 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4234 TARGET_DEFAULT_RETURN.
4236 2014-02-19 Tom Tromey <tromey@redhat.com>
4238 * target-delegates.c: Rebuild.
4239 * target.c (update_current_target): Don't inherit or default
4241 * target.h (struct target_ops) <to_save_trace_data>: Use
4242 TARGET_DEFAULT_NORETURN.
4244 2014-02-19 Tom Tromey <tromey@redhat.com>
4246 * target-delegates.c: Rebuild.
4247 * target.c (update_current_target): Don't inherit or default
4248 to_get_trace_state_variable_value.
4249 * target.h (struct target_ops)
4250 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4252 2014-02-19 Tom Tromey <tromey@redhat.com>
4254 * target-delegates.c: Rebuild.
4255 * target.c (update_current_target): Don't inherit or default
4257 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4259 2014-02-19 Tom Tromey <tromey@redhat.com>
4261 * target-delegates.c: Rebuild.
4262 * target.c (update_current_target): Don't inherit or default
4264 * target.h (struct target_ops) <to_trace_stop>: Use
4265 TARGET_DEFAULT_NORETURN.
4267 2014-02-19 Tom Tromey <tromey@redhat.com>
4269 * target-delegates.c: Rebuild.
4270 * target.c (update_current_target): Don't inherit or default
4271 to_get_tracepoint_status.
4272 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4273 TARGET_DEFAULT_NORETURN.
4275 2014-02-19 Tom Tromey <tromey@redhat.com>
4277 * target-delegates.c: Rebuild.
4278 * target.c (update_current_target): Don't inherit or default
4279 to_get_trace_status.
4280 * target.h (struct target_ops) <to_get_trace_status>: Use
4281 TARGET_DEFAULT_RETURN.
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target-delegates.c: Rebuild.
4286 * target.c (update_current_target): Don't inherit or default
4288 * target.h (struct target_ops) <to_trace_start>: Use
4289 TARGET_DEFAULT_NORETURN.
4291 2014-02-19 Tom Tromey <tromey@redhat.com>
4293 * target-delegates.c: Rebuild.
4294 * target.c (update_current_target): Don't inherit or default
4295 to_trace_set_readonly_regions.
4296 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4297 Use TARGET_DEFAULT_NORETURN.
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target-delegates.c: Rebuild.
4302 * target.c (update_current_target): Don't inherit or default
4303 to_disable_tracepoint.
4304 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4305 TARGET_DEFAULT_NORETURN.
4307 2014-02-19 Tom Tromey <tromey@redhat.com>
4309 * target-delegates.c: Rebuild.
4310 * target.c (update_current_target): Don't inherit or default
4311 to_enable_tracepoint.
4312 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4313 TARGET_DEFAULT_NORETURN.
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target-delegates.c: Rebuild.
4318 * target.c (update_current_target): Don't inherit or default
4319 to_download_trace_state_variable.
4320 * target.h (struct target_ops) <to_download_trace_state_variable>:
4321 Use TARGET_DEFAULT_NORETURN.
4323 2014-02-19 Tom Tromey <tromey@redhat.com>
4325 * target-delegates.c: Rebuild.
4326 * target.c (update_current_target): Don't inherit or default
4327 to_can_download_tracepoint.
4328 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4329 TARGET_DEFAULT_RETURN.
4331 2014-02-19 Tom Tromey <tromey@redhat.com>
4333 * target-delegates.c: Rebuild.
4334 * target.c (update_current_target): Don't inherit or default
4335 to_download_tracepoint.
4336 * target.h (struct target_ops) <to_download_tracepoint>: Use
4337 TARGET_DEFAULT_NORETURN.
4339 2014-02-19 Tom Tromey <tromey@redhat.com>
4341 * target-delegates.c: Rebuild.
4342 * target.c (update_current_target): Don't inherit or default
4344 * target.h (struct target_ops) <to_trace_init>: Use
4345 TARGET_DEFAULT_RETURN.
4347 2014-02-19 Tom Tromey <tromey@redhat.com>
4349 * target-delegates.c: Rebuild.
4350 * target.c (update_current_target): Don't inherit or default
4351 to_supports_string_tracing.
4352 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4353 TARGET_DEFAULT_RETURN.
4355 2014-02-19 Tom Tromey <tromey@redhat.com>
4357 * target-delegates.c: Rebuild.
4358 * target.c (update_current_target): Don't inherit or default
4359 to_supports_enable_disable_tracepoint.
4360 * target.h (struct target_ops)
4361 <to_supports_enable_disable_tracepoint>: Use
4362 TARGET_DEFAULT_RETURN.
4364 2014-02-19 Tom Tromey <tromey@redhat.com>
4366 * target-delegates.c: Rebuild.
4367 * target.c (update_current_target): Don't inherit or default
4368 to_supports_multi_process.
4369 * target.h (struct target_ops) <to_supports_multi_process>: Use
4370 TARGET_DEFAULT_RETURN.
4372 2014-02-19 Tom Tromey <tromey@redhat.com>
4374 * target-delegates.c: Rebuild.
4375 * target.c (update_current_target): Don't inherit or default
4376 to_get_ada_task_ptid.
4377 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4378 TARGET_DEFAULT_FUNC.
4380 2014-02-19 Tom Tromey <tromey@redhat.com>
4382 * target-delegates.c: Rebuild.
4383 * target.c (update_current_target): Don't inherit or default
4384 to_thread_architecture.
4385 * target.h (struct target_ops) <to_thread_architecture>: Use
4386 TARGET_DEFAULT_FUNC.
4388 2014-02-19 Tom Tromey <tromey@redhat.com>
4390 * target-delegates.c: Rebuild.
4391 * target.c (update_current_target): Don't inherit or default
4392 to_execution_direction.
4393 * target.h (struct target_ops) <to_execution_direction>: Use
4394 TARGET_DEFAULT_FUNC.
4396 2014-02-19 Tom Tromey <tromey@redhat.com>
4398 * target-delegates.c: Rebuild.
4399 * target.c (update_current_target): Don't inherit or default
4400 to_can_execute_reverse.
4401 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4402 TARGET_DEFAULT_RETURN.
4403 (target_can_execute_reverse): Unconditionally delegate.
4405 2014-02-19 Tom Tromey <tromey@redhat.com>
4407 * target-delegates.c: Rebuild.
4408 * target.c (update_current_target): Don't inherit or default
4410 (dummy_goto_bookmark): Remove.
4411 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4412 * target.h (struct target_ops) <to_goto_bookmark>: Use
4413 TARGET_DEFAULT_NORETURN.
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target-delegates.c: Rebuild.
4418 * target.c (update_current_target): Don't inherit or default
4420 (dummy_get_bookmark): Remove.
4421 (init_dummy_target): Don't inherit or default to_get_bookmark.
4422 * target.h (struct target_ops) <to_get_bookmark>: Use
4423 TARGET_DEFAULT_NORETURN
4425 2014-02-19 Tom Tromey <tromey@redhat.com>
4427 * target-delegates.c: Rebuild.
4428 * target.c (update_current_target): Don't inherit or default
4429 to_make_corefile_notes.
4430 (init_dummy_target): Don't initialize to_make_corefile_notes.
4431 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4432 TARGET_DEFAULT_FUNC.
4434 2014-02-19 Tom Tromey <tromey@redhat.com>
4436 * target-delegates.c: Rebuild.
4437 * target.c (update_current_target): Don't inherit or default
4438 to_find_memory_regions.
4439 (init_dummy_target): Don't initialize to_find_memory_regions.
4440 * target.h (struct target_ops) <to_find_memory_regions>: Use
4441 TARGET_DEFAULT_FUNC.
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_log_command>: Use
4449 TARGET_DEFAULT_IGNORE.
4450 (target_log_command): Unconditionally delegate.
4452 2014-02-19 Tom Tromey <tromey@redhat.com>
4454 * target-delegates.c: Rebuild.
4455 * target.c (update_current_target): Don't inherit or default
4456 to_pid_to_exec_file.
4457 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
4465 (target_thread_name): Unconditionally delegate.
4466 * target.h (struct target_ops) <to_thread_name>: Use
4467 TARGET_DEFAULT_RETURN.
4469 2014-02-19 Tom Tromey <tromey@redhat.com>
4471 * target-delegates.c: Rebuild.
4472 * target.c (update_current_target): Don't inherit or default
4473 to_extra_thread_info.
4474 * target.h (struct target_ops) <to_extra_thread_info>: Use
4475 TARGET_DEFAULT_RETURN.
4477 2014-02-19 Tom Tromey <tromey@redhat.com>
4479 * target-delegates.c: Rebuild.
4480 * target.c (update_current_target): Don't inherit or default
4482 * target.h (struct target_ops) <to_has_exited>: Use
4483 TARGET_DEFAULT_RETURN..
4485 2014-02-19 Tom Tromey <tromey@redhat.com>
4487 * target-delegates.c: Rebuild.
4488 * target.c (update_current_target): Don't inherit or default
4489 to_set_syscall_catchpoint.
4490 (return_one): Remove.
4491 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4492 TARGET_DEFAULT_RETURN.
4494 2014-02-19 Tom Tromey <tromey@redhat.com>
4496 * target-delegates.c: Rebuild.
4497 * target.c (update_current_target): Don't inherit or default
4498 to_insert_exec_catchpoint.
4499 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4500 TARGET_DEFAULT_RETURN.
4502 2014-01-08 Tom Tromey <tromey@redhat.com>
4504 * target-delegates.c: Rebuild.
4505 * target.c (update_current_target): Don't inherit or default
4506 to_insert_exec_catchpoint.
4507 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4508 TARGET_DEFAULT_RETURN.
4510 2014-02-19 Tom Tromey <tromey@redhat.com>
4512 * target-delegates.c: Rebuild.
4513 * target.c (update_current_target): Don't inherit or default
4514 to_remove_vfork_catchpoint.
4515 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4516 TARGET_DEFAULT_RETURN.
4518 2014-02-19 Tom Tromey <tromey@redhat.com>
4520 * target-delegates.c: Rebuild.
4521 * target.c (update_current_target): Don't inherit or default
4522 to_insert_vfork_catchpoint.
4523 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4524 TARGET_DEFAULT_RETURN.
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target-delegates.c: Rebuild.
4529 * target.c (update_current_target): Don't inherit or default
4530 to_remove_fork_catchpoint.
4531 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4532 TARGET_DEFAULT_RETURN.
4534 2014-02-19 Tom Tromey <tromey@redhat.com>
4536 * target-delegates.c: Rebuild.
4537 * target.c (update_current_target): Don't inherit or default
4538 to_insert_fork_catchpoint.
4539 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4540 TARGET_DEFAULT_RETURN.
4542 2014-02-19 Tom Tromey <tromey@redhat.com>
4544 * target-delegates.c: Rebuild.
4545 * target.c (update_current_target): Don't inherit or default
4546 to_post_startup_inferior.
4547 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4548 TARGET_DEFAULT_IGNORE.
4550 2014-02-19 Tom Tromey <tromey@redhat.com>
4552 * target-delegates.c: Rebuild.
4553 * target.c (update_current_target): Don't inherit or default
4555 * target.h (struct target_ops) <to_load>: Use
4556 TARGET_DEFAULT_NORETURN.
4558 2014-02-19 Tom Tromey <tromey@redhat.com>
4560 * target-delegates.c: Rebuild.
4561 * target.c (update_current_target): Don't inherit or default
4563 * target.h (struct target_ops) <to_terminal_info>: Use
4564 TARGET_DEFAULT_FUNC.
4566 2014-02-19 Tom Tromey <tromey@redhat.com>
4568 * target-delegates.c: Rebuild.
4569 * target.c (update_current_target): Don't inherit or default
4570 to_terminal_save_ours.
4571 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4572 TARGET_DEFAULT_IGNORE.
4574 2014-02-19 Tom Tromey <tromey@redhat.com>
4576 * target-delegates.c: Rebuild.
4577 * target.c (update_current_target): Don't inherit or default
4579 * target.h (struct target_ops) <to_terminal_ours>: Use
4580 TARGET_DEFAULT_IGNORE.
4582 2014-02-19 Tom Tromey <tromey@redhat.com>
4584 * target-delegates.c: Rebuild.
4585 * target.c (update_current_target): Don't inherit or default
4586 to_terminal_ours_for_output.
4587 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4588 TARGET_DEFAULT_IGNORE.
4590 2014-02-19 Tom Tromey <tromey@redhat.com>
4592 * target-delegates.c: Rebuild.
4593 * target.c (update_current_target): Don't inherit or default
4594 to_terminal_inferior.
4595 * target.h (struct target_ops) <to_terminal_inferior>: Use
4596 TARGET_DEFAULT_IGNORE.
4598 2014-02-19 Tom Tromey <tromey@redhat.com>
4600 * target-delegates.c: Rebuild.
4601 * target.c (update_current_target): Don't inherit or default
4603 * target.h (struct target_ops) <to_terminal_init>: Use
4604 TARGET_DEFAULT_IGNORE.
4606 2014-02-19 Tom Tromey <tromey@redhat.com>
4608 * target-delegates.c: Rebuild.
4609 * target.c (update_current_target): Don't inherit or default
4610 to_can_accel_watchpoint_condition.
4611 * target.h (struct target_ops)
4612 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4614 2014-02-19 Tom Tromey <tromey@redhat.com>
4616 * target-delegates.c: Rebuild.
4617 * target.c (update_current_target): Don't inherit or default
4618 to_region_ok_for_hw_watchpoint.
4619 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4620 Use TARGET_DEFAULT_FUNC.
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * target-delegates.c: Rebuild.
4625 * target.c (update_current_target): Don't inherit or default
4626 to_watchpoint_addr_within_range.
4627 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4628 Use TARGET_DEFAULT_FUNC.
4630 2014-02-19 Tom Tromey <tromey@redhat.com>
4632 * target-delegates.c: Rebuild.
4633 * target.c (update_current_target): Don't inherit or default
4634 to_remove_watchpoint.
4635 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4636 TARGET_DEFAULT_NORETURN.
4638 2014-02-19 Tom Tromey <tromey@redhat.com>
4640 * target-delegates.c: Rebuild.
4641 * target.c (update_current_target): Don't inherit or default
4642 to_insert_watchpoint.
4643 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4644 TARGET_DEFAULT_RETURN.
4646 2014-02-19 Tom Tromey <tromey@redhat.com>
4648 * target-delegates.c: Rebuild.
4649 * target.c (update_current_target): Don't inherit or default
4650 to_remove_hw_breakpoint.
4651 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4652 TARGET_DEFAULT_RETURN.
4654 2014-02-19 Tom Tromey <tromey@redhat.com>
4656 * target-delegates.c: Rebuild.
4657 * target.c (update_current_target): Don't inherit or default
4658 to_insert_hw_breakpoint.
4659 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4660 TARGET_DEFAULT_RETURN.
4662 2014-02-19 Tom Tromey <tromey@redhat.com>
4664 * target-delegates.c: Rebuild.
4665 * target.c (update_current_target): Don't inherit or default
4666 to_can_use_hw_breakpoint.
4667 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4668 TARGET_DEFAULT_RETURN.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target-delegates.c: Rebuild.
4673 * target.c (update_current_target): Don't inherit or default
4675 * target.h (struct target_ops) <to_files_info>: Use
4676 TARGET_DEFAULT_IGNORE.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (update_current_target): Don't inherit or default
4683 * target.h (struct target_ops) <to_store>: Use
4684 TARGET_DEFAULT_NORETURN.
4686 2014-02-19 Tom Tromey <tromey@redhat.com>
4688 * target-delegates.c: Rebuild.
4689 * target.c (update_current_target): Don't inherit or default
4691 * target.h (struct target_ops) <to_post_attach>: Use
4692 TARGET_DEFAULT_IGNORE.
4694 2014-02-19 Tom Tromey <tromey@redhat.com>
4696 * target-delegates.c: Rebuild.
4697 * target.c (update_current_target): Don't inherit or default
4699 (default_rcmd): New function.
4700 (do_monitor_command): Unconditionally delegate.
4701 * target.h (struct target_ops) <to_rmcd>: Use
4702 TARGET_DEFAULT_FUNC.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target-delegates.c: Rebuild.
4707 * target.c (init_dummy_target): Don't initialize to_attach.
4708 (target_attach): Unconditionally delegate.
4709 * target.h (struct target_ops) <to_attach>: Use
4710 TARGET_DEFAULT_FUNC.
4712 2014-02-19 Tom Tromey <tromey@redhat.com>
4714 * target-delegates.c: Rebuild.
4715 * target.c (target_detach): Unconditionally delegate.
4716 (init_dummy_target): Don't initialize to_detach.
4717 * target.h (struct target_ops) <to_detach>: Use
4718 TARGET_DEFAULT_IGNORE.
4720 2014-02-19 Tom Tromey <tromey@redhat.com>
4722 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4724 (target_augmented_libraries_svr4_read): Add argument.
4725 * target.c (update_current_target): Update.
4726 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4729 2014-02-19 Tom Tromey <tromey@redhat.com>
4731 * target.h (struct target_ops) <to_call_history_range>: Add
4733 * target.c (target_call_history_range): Add argument.
4734 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4736 (record_btrace_call_history_from): Update.
4738 2014-02-19 Tom Tromey <tromey@redhat.com>
4740 * target.h (struct target_ops) <to_call_history_from>: Add
4742 * target.c (target_call_history_from): Add argument.
4743 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4746 2014-02-19 Tom Tromey <tromey@redhat.com>
4748 * target.h (struct target_ops) <to_call_history>: Add argument.
4749 * target.c (target_call_history): Add argument.
4750 * record-btrace.c (record_btrace_call_history): Add 'self'
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target.h (struct target_ops) <to_insn_history_range>: Add
4757 * target.c (target_insn_history_range): Add argument.
4758 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4760 (record_btrace_insn_history_from): Update.
4762 2014-02-19 Tom Tromey <tromey@redhat.com>
4764 * target.h (struct target_ops) <to_insn_history_from>: Add
4766 * target.c (target_insn_history_from): Add argument.
4767 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4770 2014-02-19 Tom Tromey <tromey@redhat.com>
4772 * target.h (struct target_ops) <to_insn_history>: Add argument.
4773 * target.c (target_insn_history): Add argument.
4774 * record-btrace.c (record_btrace_insn_history): Add 'self'
4777 2014-02-19 Tom Tromey <tromey@redhat.com>
4779 * target.h (struct target_ops) <to_goto_record>: Add argument.
4780 * target.c (target_goto_record): Add argument.
4781 * record-full.c (record_full_goto): Add 'self' argument.
4782 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4784 2014-02-19 Tom Tromey <tromey@redhat.com>
4786 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4787 * target.c (target_goto_record_end): Add argument.
4788 * record-full.c (record_full_goto_end): Add 'self' argument.
4789 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target.h (struct target_ops) <to_goto_record_begin>: Add
4795 * target.c (target_goto_record_begin): Add argument.
4796 * record-full.c (record_full_goto_begin): Add 'self' argument.
4797 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4800 2014-02-19 Tom Tromey <tromey@redhat.com>
4802 * target.h (struct target_ops) <to_record_is_replaying>: Add
4804 * target.c (target_record_is_replaying): Add argument.
4805 * record-full.c (record_full_is_replaying): Add 'self' argument.
4806 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4808 (record_btrace_xfer_partial, record_btrace_store_registers)
4809 (record_btrace_prepare_to_store, record_btrace_resume)
4810 (record_btrace_wait, record_btrace_decr_pc_after_break)
4811 (record_btrace_find_new_threads, record_btrace_thread_alive):
4814 2014-02-19 Tom Tromey <tromey@redhat.com>
4816 * target.h (struct target_ops) <to_delete_record>: Add argument.
4817 * target.c (target_delete_record): Add argument.
4818 * record-full.c (record_full_delete): Add 'self' argument.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target.h (struct target_ops) <to_save_record>: Add argument.
4823 * target.c (target_save_record): Add argument.
4824 * record-full.c (record_full_save): Add 'self' argument.
4825 (record_full_save): Add 'self' argument.
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * target.h (struct target_ops) <to_info_record>: Add argument.
4830 * target.c (target_info_record): Add argument.
4831 * record.c (info_record_command): Add argument.
4832 * record-full.c (record_full_info): Add 'self' argument.
4833 * record-btrace.c (record_btrace_info): Add 'self' argument.
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4838 * target.c (target_stop_recording): Add argument.
4839 * record.c (record_stop): Add argument.
4840 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4846 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4847 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4849 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4850 (_initialize_amd64_linux_nat): Use it.
4851 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4852 (_initialize_i386_linux_nat): Use it.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4857 * target.c (target_teardown_btrace): Add argument.
4858 * remote.c (remote_teardown_btrace): Add 'self' argument.
4859 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4861 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4864 2014-02-19 Tom Tromey <tromey@redhat.com>
4866 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4867 * target.c (target_disable_btrace): Add argument.
4868 * remote.c (remote_disable_btrace): Add 'self' argument.
4869 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4871 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4874 2014-02-19 Tom Tromey <tromey@redhat.com>
4876 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4877 * target.c (target_enable_btrace): Add argument.
4878 * remote.c (remote_enable_btrace): Add 'self' argument.
4879 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4881 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4884 2014-02-19 Tom Tromey <tromey@redhat.com>
4886 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4887 (target_can_use_agent): Add argument.
4888 * target.c (update_current_target): Update.
4889 * remote.c (remote_can_use_agent): Add 'self' argument.
4890 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4892 2014-02-19 Tom Tromey <tromey@redhat.com>
4894 * target.h (struct target_ops) <to_use_agent>: Add argument.
4895 (target_use_agent): Add argument.
4896 * target.c (update_current_target): Update.
4897 * remote.c (remote_use_agent): Add 'self' argument.
4898 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4900 2014-02-19 Tom Tromey <tromey@redhat.com>
4902 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4903 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4904 (target_traceframe_info): Add argument.
4905 * target.c (update_current_target): Update.
4906 * remote.c (remote_traceframe_info): Add 'self' argument.
4907 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4909 2014-02-19 Tom Tromey <tromey@redhat.com>
4911 * target.h (target_static_tracepoint_markers_by_strid): Add
4913 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4915 * target.c (update_current_target): Update.
4916 * remote.c (struct target_ops)
4917 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4918 * linux-nat.c (struct target_ops)
4919 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4925 (target_static_tracepoint_marker_at): Add argument.
4926 * target.c (update_current_target): Update.
4927 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4930 2014-02-19 Tom Tromey <tromey@redhat.com>
4932 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4933 (target_set_permissions): Add argument.
4934 * target.c (update_current_target): Update.
4935 * remote.c (remote_set_permissions): Add 'self' argument.
4936 (remote_start_remote): Update.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4941 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4942 (target_get_tib_address): Add argument.
4943 * target.c (update_current_target): Update.
4944 * remote.c (remote_get_tib_address): Add 'self' argument.
4946 2014-02-19 Tom Tromey <tromey@redhat.com>
4948 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4949 (target_set_trace_notes): Add argument.
4950 * target.c (update_current_target): Update.
4951 * remote.c (remote_set_trace_notes): Add 'self' argument.
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4957 (target_set_trace_buffer_size): Add argument.
4958 * target.c (update_current_target): Update.
4959 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4965 (target_set_circular_trace_buffer): Add argument.
4966 * target.c (update_current_target): Update.
4967 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4970 2014-02-19 Tom Tromey <tromey@redhat.com>
4972 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4974 (target_set_disconnected_tracing): Add argument.
4975 * target.c (update_current_target): Update.
4976 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4978 2014-02-19 Tom Tromey <tromey@redhat.com>
4980 * target.h (struct target_ops)
4981 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4982 (target_get_min_fast_tracepoint_insn_len): Add argument.
4983 * target.c (update_current_target): Update.
4984 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4991 (target_get_raw_trace_data): Add argument.
4992 * target.c (update_current_target): Update.
4993 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4999 (target_upload_trace_state_variables): Add argument.
5000 * target.c (update_current_target): Update.
5001 * remote.c (remote_upload_trace_state_variables): Add 'self'
5003 (remote_start_remote): Update.
5005 2014-02-19 Tom Tromey <tromey@redhat.com>
5007 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5009 (target_upload_tracepoints): Add argument.
5010 * target.c (update_current_target): Update.
5011 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5012 (remote_start_remote): Update.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5017 (target_save_trace_data): Add argument.
5018 * target.c (update_current_target): Update.
5019 * remote.c (remote_save_trace_data): Add 'self' argument.
5021 2014-02-19 Tom Tromey <tromey@redhat.com>
5023 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5025 * target.h (struct target_ops)
5026 <to_get_trace_state_variable_value>: Add argument.
5027 (target_get_trace_state_variable_value): Add argument.
5028 * target.c (update_current_target): Update.
5029 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5031 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5033 2014-02-19 Tom Tromey <tromey@redhat.com>
5035 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5036 * target.h (struct target_ops) <to_trace_find>: Add argument.
5037 (target_trace_find): Add argument.
5038 * target.c (update_current_target): Update.
5039 * remote.c (remote_trace_find): Add 'self' argument.
5040 * ctf.c (ctf_trace_find): Add 'self' argument.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5045 (target_trace_stop): Add argument.
5046 * target.c (update_current_target): Update.
5047 * remote.c (remote_trace_stop): Add 'self' argument.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5052 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5054 (target_get_tracepoint_status): Add argument.
5055 * target.c (update_current_target): Update.
5056 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5061 * target.h (struct target_ops) <to_get_trace_status>: Add
5063 (target_get_trace_status): Add argument.
5064 * target.c (update_current_target): Update.
5065 * remote.c (remote_get_trace_status): Add 'self' argument.
5066 (remote_start_remote, remote_can_download_tracepoint): Update.
5067 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5071 * target.h (struct target_ops) <to_trace_start>: Add argument.
5072 (target_trace_start): Add argument.
5073 * target.c (update_current_target): Update.
5074 * remote.c (remote_trace_start): Add 'self' argument.
5076 2014-02-19 Tom Tromey <tromey@redhat.com>
5078 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5080 (target_trace_set_readonly_regions): Add argument.
5081 * target.c (update_current_target): Update.
5082 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5089 (target_disable_tracepoint): Add argument.
5090 * target.c (update_current_target): Update.
5091 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5093 2014-02-19 Tom Tromey <tromey@redhat.com>
5095 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5097 (target_enable_tracepoint): Add argument.
5098 * target.c (update_current_target): Update.
5099 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5101 2014-02-19 Tom Tromey <tromey@redhat.com>
5103 * target.h (struct target_ops) <to_download_trace_state_variable>:
5105 (target_download_trace_state_variable): Add argument.
5106 * target.c (update_current_target): Update.
5107 * remote.c (remote_download_trace_state_variable): Add 'self'
5110 2014-02-19 Tom Tromey <tromey@redhat.com>
5112 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5114 (target_can_download_tracepoint): Add argument.
5115 * target.c (update_current_target): Update.
5116 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5120 * target.h (struct target_ops) <to_download_tracepoint>: Add
5122 (target_download_tracepoint): Add argument.
5123 * target.c (update_current_target): Update.
5124 * remote.c (remote_download_tracepoint): Add 'self' argument.
5126 2014-02-19 Tom Tromey <tromey@redhat.com>
5128 * target.h (struct target_ops) <to_trace_init>: Add argument.
5129 (target_trace_init): Add argument.
5130 * target.c (update_current_target): Update.
5131 * remote.c (remote_trace_init): Add 'self' argument.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5136 * target.c (target_fileio_readlink): Add argument.
5137 * remote.c (remote_hostio_readlink): Add 'self' argument.
5138 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5140 2014-02-19 Tom Tromey <tromey@redhat.com>
5142 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5143 * target.c (target_fileio_unlink): Add argument.
5144 * remote.c (remote_hostio_unlink): Add 'self' argument.
5145 (remote_file_delete): Update.
5146 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5148 2014-02-19 Tom Tromey <tromey@redhat.com>
5150 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5151 * target.c (target_fileio_close): Add argument.
5152 * remote.c (remote_hostio_close): Add 'self' argument.
5153 (remote_hostio_close_cleanup): Update.
5154 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5156 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5161 * target.c (target_fileio_pread): Add argument.
5162 * remote.c (remote_hostio_pread): Add 'self' argument.
5163 (remote_bfd_iovec_pread, remote_file_get): Update.
5164 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5169 * target.c (target_fileio_pwrite): Add argument.
5170 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5171 (remote_file_put): Update.
5172 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5177 * target.c (target_fileio_open): Add argument.
5178 * remote.c (remote_hostio_open): Add 'self' argument.
5179 (remote_bfd_iovec_open): Add 'self' argument.
5180 (remote_file_put): Add 'self' argument.
5181 (remote_file_get): Add 'self' argument.
5182 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5188 (target_can_run_breakpoint_commands): Add argument.
5189 * target.c (update_current_target): Update.
5190 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5192 (remote_insert_breakpoint): Add 'self' argument.
5193 (remote_insert_hw_breakpoint): Add 'self' argument.
5194 (remote_can_run_breakpoint_commands): Add 'self' argument.
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target.h (struct target_ops)
5199 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5200 (target_supports_evaluation_of_breakpoint_conditions): Add
5202 * target.c (update_current_target): Update.
5203 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5205 (remote_insert_breakpoint): Add 'self' argument.
5206 (remote_insert_hw_breakpoint): Add 'self' argument.
5207 (remote_supports_cond_breakpoints): Add 'self' argument.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5213 (target_supports_string_tracing): Add argument.
5214 * target.c (update_current_target): Update.
5215 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5217 2014-02-19 Tom Tromey <tromey@redhat.com>
5219 * target.h (struct target_ops)
5220 <to_supports_disable_randomization>: Add argument.
5221 * target.c (find_default_supports_disable_randomization): Add
5223 (target_supports_disable_randomization): Add argument.
5224 (find_default_supports_disable_randomization): Add 'self'
5226 * remote.c (extended_remote_supports_disable_randomization): Add
5228 (remote_supports_disable_randomization): Add 'self' argument.
5229 (extended_remote_create_inferior): Update.
5230 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5233 2014-02-19 Tom Tromey <tromey@redhat.com>
5235 * target.h (struct target_ops)
5236 <to_supports_enable_disable_tracepoint>: Add argument.
5237 (target_supports_enable_disable_tracepoint): Add argument.
5238 * target.c (update_current_target): Update.
5239 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * target.h (struct target_ops) <to_supports_multi_process>: Add
5246 (target_supports_multi_process): Add argument.
5247 * target.c (update_current_target): Update.
5248 * remote.c (remote_supports_multi_process): Add 'self' argument.
5249 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5251 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5254 2014-02-19 Tom Tromey <tromey@redhat.com>
5256 * target.h (struct target_ops) <to_execution_direction>: Add
5258 (target_execution_direction): Add argument.
5259 * target.c (default_execution_direction): Add 'self' argument.
5260 * record-full.c (record_full_execution_direction): Add 'self'
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5267 (target_can_execute_reverse): Add argument.
5268 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5269 * record-full.c (record_full_can_execute_reverse): Add 'self'
5271 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5274 2014-02-19 Tom Tromey <tromey@redhat.com>
5276 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5277 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5279 (target_get_ada_task_ptid): Add argument.
5280 * target.c (update_current_target): Update.
5281 (default_get_ada_task_ptid): Add 'self' argument.
5282 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5283 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5284 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5286 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5288 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5290 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5292 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5293 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5296 2014-02-19 Tom Tromey <tromey@redhat.com>
5298 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5299 (target_goto_bookmark): Add argument.
5300 * target.c (dummy_goto_bookmark): Add 'self' argument.
5301 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5303 2014-02-19 Tom Tromey <tromey@redhat.com>
5305 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5306 (target_get_bookmark): Add argument.
5307 * target.c (dummy_get_bookmark): Add 'self' argument.
5308 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5310 2014-02-19 Tom Tromey <tromey@redhat.com>
5312 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5314 (target_make_corefile_notes): Add argument.
5315 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5316 * procfs.c (procfs_make_note_section): Add 'self' argument.
5317 (procfs_make_note_section): Add 'self' argument.
5318 (procfs_make_note_section): Add 'self' argument.
5319 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5321 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5322 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5323 * exec.c (exec_make_note_section): Add 'self' argument.
5324 (exec_make_note_section): Add 'self' argument.
5326 2014-02-19 Tom Tromey <tromey@redhat.com>
5328 * target.h (struct target_ops) <to_find_memory_regions>: Add
5330 (target_find_memory_regions): Add argument.
5331 * target.c (dummy_find_memory_regions): Add 'self' argument.
5332 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5333 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5334 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5335 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5336 * exec. (exec_do_find_memory_regions): New global.
5337 (exec_set_find_memory_regions): Rewrite.
5338 (exec_find_memory_regions): New function.
5339 (init_exec_ops): Use exec_find_memory_regions.
5341 2014-02-19 Tom Tromey <tromey@redhat.com>
5343 * target.h (struct target_ops) <to_supports_non_stop>: Add
5345 * target.c (find_default_supports_non_stop): Add argument.
5346 (target_supports_non_stop): Add argument.
5347 (find_default_supports_non_stop): Add 'self' argument.
5348 * remote.c (remote_supports_non_stop): Add 'self' argument.
5349 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5351 2014-02-19 Tom Tromey <tromey@redhat.com>
5353 * target.h (struct target_ops) <to_log_command>: Add argument.
5354 (target_log_command): Add argument.
5355 * serial.h (serial_log_command): Add 'self' argument.
5356 * serial.c (serial_log_command): Add 'self' argument.
5358 2014-02-19 Tom Tromey <tromey@redhat.com>
5360 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5361 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5363 (target_pid_to_exec_file): Add argument.
5364 * target.c (debug_to_pid_to_exec_file): Add argument.
5365 (update_current_target): Update.
5366 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5367 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5368 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5369 (linux_handle_extended_wait): Update.
5370 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5371 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5372 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5373 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5375 2014-02-19 Tom Tromey <tromey@redhat.com>
5377 * target.h (struct target_ops) <to_rcmd>: Add argument.
5378 (target_rcmd): Add argument.
5379 * target.c (debug_to_rcmd): Add argument.
5380 (update_current_target, do_monitor_command): Update.
5381 * remote.c (remote_rcmd): Add 'self' argument.
5382 * monitor.c (monitor_rcmd): Add 'self' argument.
5384 2014-02-19 Tom Tromey <tromey@redhat.com>
5386 * windows-nat.c (windows_stop): Add 'self' argument.
5387 * target.h (struct target_ops) <to_stop>: Add argument.
5388 * target.c (target_stop): Add argument.
5389 (debug_to_stop): Add argument.
5390 (update_current_target): Update.
5391 * remote.c (remote_stop): Add 'self' argument.
5392 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5393 (gdbsim_cntrl_c): Update.
5394 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5395 * procfs.c (procfs_stop): Add 'self' argument.
5396 * nto-procfs.c (procfs_stop): Add 'self' argument.
5397 * monitor.c (monitor_stop): Add 'self' argument.
5398 (monitor_open): Update.
5399 * linux-nat.c (linux_nat_stop): Add argument.
5400 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5401 * gnu-nat.c (gnu_stop): Add 'self' argument.
5402 * darwin-nat.c (darwin_stop): Add 'self' argument.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target.h (struct target_ops) <to_thread_name>: Add argument.
5407 * target.c (target_thread_name): Add argument.
5408 (update_current_target): Update.
5409 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * target.h (struct target_ops) <to_extra_thread_info>: Add
5415 (target_extra_thread_info): Add argument.
5416 * target.c (update_current_target): Update.
5417 * remote.c (remote_threads_extra_info): Add 'self' argument.
5418 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5420 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5421 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5422 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5424 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5426 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5428 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5431 2014-02-19 Tom Tromey <tromey@redhat.com>
5433 * target.h (struct target_ops) <to_program_signals>: Add argument.
5434 * target.c (target_program_signals): Add argument.
5435 * remote.c (remote_program_signals): Add 'self' argument.
5437 2014-02-19 Tom Tromey <tromey@redhat.com>
5439 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5440 * target.c (target_pass_signals): Add argument.
5441 * remote.c (remote_pass_signals): Add 'self' argument.
5442 (remote_start_remote): Update.
5443 * procfs.c (procfs_pass_signals): Add 'self' argument.
5444 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5445 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5446 (linux_nat_create_inferior, linux_nat_attach): Update.
5448 2014-02-19 Tom Tromey <tromey@redhat.com>
5450 * windows-nat.c (windows_can_run): Add 'self' argument.
5451 * target.h (struct target_ops) <to_can_run>: Add argument.
5452 (target_can_run): Add argument.
5453 * target.c (debug_to_can_run): Add argument.
5454 (update_current_target): Update.
5455 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5456 * inf-child.c (inf_child_can_run): Add 'self' argument.
5457 * go32-nat.c (go32_can_run): Add 'self' argument.
5459 2014-02-19 Tom Tromey <tromey@redhat.com>
5461 * target.h (struct target_ops) <to_has_exited>: Add argument.
5462 (target_has_exited): Add argument.
5463 * target.c (debug_to_has_exited): Add argument.
5464 (update_current_target): Update.
5466 2014-02-19 Tom Tromey <tromey@redhat.com>
5468 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5470 (target_set_syscall_catchpoint): Add argument.
5471 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5473 * target.c (update_current_target): Update.
5475 2014-02-19 Tom Tromey <tromey@redhat.com>
5477 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5479 (target_remove_exec_catchpoint): Add argument.
5480 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5481 (update_current_target): Update.
5482 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5489 (target_insert_exec_catchpoint): Add argument.
5490 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5491 (update_current_target): Update.
5492 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5495 2014-02-19 Tom Tromey <tromey@redhat.com>
5497 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5499 (target_remove_vfork_catchpoint): Add argument.
5500 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5501 (update_current_target): Update.
5502 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5505 2014-02-19 Tom Tromey <tromey@redhat.com>
5507 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5509 (target_insert_vfork_catchpoint): Add argument.
5510 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5511 (update_current_target): Update.
5512 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5515 2014-02-19 Tom Tromey <tromey@redhat.com>
5517 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5519 (target_remove_fork_catchpoint): Add argument.
5520 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5521 (update_current_target): Update.
5522 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5529 (target_insert_fork_catchpoint): Add argument.
5530 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5531 (update_current_target): Update.
5532 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5539 (target_post_startup_inferior): Add argument.
5540 * target.c (debug_to_post_startup_inferior): Add argument.
5541 (update_current_target): Update.
5542 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5544 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5546 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5548 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5550 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5552 (super_post_startup_inferior): Likewise.
5553 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5555 (super_post_startup_inferior): Likewise.
5556 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5557 Add 'self' argument.
5558 (super_post_startup_inferior): Likewise.
5560 2014-02-19 Tom Tromey <tromey@redhat.com>
5562 * target.h (struct target_ops) <to_load>: Add argument.
5563 * target.c (target_load): Add argument.
5564 (debug_to_load): Add argument.
5565 (update_current_target): Update.
5566 * remote.c (remote_load): Add 'self' argument.
5567 * remote-sim.c (gdbsim_load): Add 'self' argument.
5568 * remote-mips.c (mips_load): Add 'self' argument.
5569 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5570 * monitor.c (monitor_load): Add 'self' argument.
5571 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5573 2014-02-19 Tom Tromey <tromey@redhat.com>
5575 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5576 (target_terminal_info): Add argument.
5577 * target.c (debug_to_terminal_info): Add argument.
5578 (default_terminal_info): Likewise.
5579 * inflow.c (child_terminal_info): Add 'self' argument.
5580 * inferior.h (child_terminal_info): Add 'self' argument.
5581 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5587 (target_terminal_save_ours): Add argument.
5588 * target.c (debug_to_terminal_save_ours): Add argument.
5589 (update_current_target): Update.
5590 * inflow.c (terminal_save_ours): Add 'self' argument.
5591 * inferior.h (terminal_save_ours): Add 'self' argument.
5593 2014-02-19 Tom Tromey <tromey@redhat.com>
5595 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5596 (target_terminal_ours): Add argument.
5597 * target.c (debug_to_terminal_ours): Add argument.
5598 (update_current_target): Update.
5599 * remote.c (remote_terminal_ours): Add 'self' argument.
5600 (remote_close): Update.
5601 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5602 * inflow.c (terminal_ours): Add 'self' argument.
5603 * inferior.h (terminal_ours): Add 'self' argument.
5604 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5606 2014-02-19 Pedro Alves <palves@redhat.com>
5607 Tom Tromey <tromey@redhat.com>
5609 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5611 (target_terminal_ours_for_output): Add argument.
5612 * target.c (debug_to_terminal_ours_for_output): Add argument.
5613 (update_current_target): Update.
5614 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5615 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5616 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * target.h (struct target_ops) <to_terminal_inferior>: Add
5622 * target.c (target_terminal_inferior): Add argument.
5623 (update_current_target): Update.
5624 * remote.c (remote_terminal_inferior): Add 'self' argument.
5625 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5626 * inflow.c (terminal_inferior): Add 'self' argument.
5627 * inferior.h (terminal_inferior): Add 'self' argument.
5628 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5629 (go32_terminal_inferior): Add 'self' argument.
5631 2014-02-19 Tom Tromey <tromey@redhat.com>
5633 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5634 (target_terminal_init): Add argument.
5635 * target.c (debug_to_terminal_init): Add argument.
5636 (update_current_target): Update.
5637 * inflow.c (terminal_init_inferior): Add 'self' argument.
5638 * inferior.h (terminal_init_inferior): Add 'self' argument.
5639 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5640 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5642 2014-02-19 Tom Tromey <tromey@redhat.com>
5644 * target.h (struct target_ops)
5645 <to_can_accel_watchpoint_condition>: Add argument.
5646 (target_can_accel_watchpoint_condition): Add argument.
5647 * target.c (debug_to_can_accel_watchpoint_condition): Add
5649 (update_current_target): Update.
5650 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5657 (target_region_ok_for_hw_watchpoint): Add argument.
5658 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5659 (default_region_ok_for_hw_watchpoint): Add argument.
5660 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5661 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5663 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5665 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5667 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5669 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5671 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5673 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5674 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5676 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5677 Add 'self' argument.
5679 2014-02-19 Tom Tromey <tromey@redhat.com>
5681 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5683 (target_insert_watchpoint): Add argument.
5684 * target.c (debug_to_insert_watchpoint): Add argument.
5685 (update_current_target): Update.
5686 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5687 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5688 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5689 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5690 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5691 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5693 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5694 (procfs_insert_hw_watchpoint): Add 'self' argument.
5695 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5697 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5699 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5701 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5702 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5704 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5711 (target_remove_watchpoint): Add argument.
5712 * target.c (debug_to_remove_watchpoint): Add argument.
5713 (update_current_target): Update.
5714 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5715 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5716 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5717 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5718 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5719 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5721 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5722 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5724 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5726 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5728 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5729 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5731 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5734 2014-02-19 Tom Tromey <tromey@redhat.com>
5736 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5738 (target_remove_hw_breakpoint): Add argument.
5739 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5740 (update_current_target): Update.
5741 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5742 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5744 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5745 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5747 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5754 (target_insert_hw_breakpoint): Add argument.
5755 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5756 (update_current_target): Update.
5757 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5758 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5760 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5761 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5762 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5764 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5771 (target_can_use_hardware_watchpoint): Add argument.
5772 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5773 (update_current_target): Update.
5774 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5776 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5778 * remote.c (remote_check_watch_resources): Add 'self' argument.
5779 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5780 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5782 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5783 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5785 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5787 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5789 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5791 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5793 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5795 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5796 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5798 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_post_attach>: Add argument.
5804 (target_post_attach): Add argument.
5805 * target.c (debug_to_post_attach): Add argument.
5806 (update_current_target): Update.
5807 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5808 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5809 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5810 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5811 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5813 2014-02-19 Tom Tromey <tromey@redhat.com>
5815 * windows-nat.c (windows_close): Add 'self' argument.
5816 * tracepoint.c (tfile_close): Add 'self' argument.
5817 * target.h (struct target_ops) <to_close>: Add argument.
5818 * target.c (target_close): Add argument.
5819 (update_current_target): Update.
5820 * remote.c (remote_close): Add 'self' argument.
5821 * remote-sim.c (gdbsim_close): Add 'self' argument.
5822 * remote-mips.c (mips_close): Add 'self' argument.
5823 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5824 * record-full.c (record_full_close): Add 'self' argument.
5825 * record-btrace.c (record_btrace_close): Add 'self' argument.
5826 * monitor.h (monitor_close): Add 'self' argument.
5827 * monitor.c (monitor_close): Add 'self' argument.
5828 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5829 * linux-nat.c (linux_nat_close): Add argument.
5830 * go32-nat.c (go32_close): Add 'self' argument.
5831 * exec.c (exec_close_1): Add 'self' argument.
5832 * ctf.c (ctf_close): Add 'self' argument.
5833 * corelow.c (core_close): Add 'self' argument.
5834 (core_close_cleanup): Update.
5835 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5836 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * remote.c (remote_load): New function.
5841 (init_remote_ops): Use it.
5843 2014-02-19 Tom Tromey <tromey@redhat.com>
5845 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5847 * common/linux-btrace.h (linux_supports_btrace): Update.
5848 * remote.c (remote_supports_btrace): Add "self" argument.
5849 * target-delegates.c: Rebuild.
5850 * target.c (target_supports_btrace): Remove.
5851 * target.h (struct target_ops) <to_supports_btrace>: Add
5852 target_ops argument.
5853 (target_supports_btrace): New define.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * record-full.c (record_full_beneath_to_resume_ops)
5858 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5859 (record_full_beneath_to_wait)
5860 (record_full_beneath_to_store_registers_ops)
5861 (record_full_beneath_to_store_registers)
5862 (record_full_beneath_to_xfer_partial_ops)
5863 (record_full_beneath_to_xfer_partial)
5864 (record_full_beneath_to_insert_breakpoint_ops)
5865 (record_full_beneath_to_insert_breakpoint)
5866 (record_full_beneath_to_remove_breakpoint_ops)
5867 (record_full_beneath_to_remove_breakpoint)
5868 (record_full_beneath_to_stopped_by_watchpoint)
5869 (record_full_beneath_to_stopped_data_address)
5870 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5871 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5872 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5873 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5874 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5875 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5876 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5877 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5878 (record_full_resume, record_full_wait_1)
5879 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5880 (record_full_store_registers, record_full_xfer_partial)
5881 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5882 (record_full_async, record_full_core_xfer_partial): Use target
5884 * target-delegates.c: Rebuild.
5885 * target.c (current_xfer_partial): Remove.
5886 (update_current_target): Do not INHERIT or de_fault
5887 to_insert_breakpoint, to_remove_breakpoint,
5888 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5889 to_is_async_p, to_async. Do not set to_xfer_partial field.
5890 (default_xfer_partial): Simplify.
5891 (current_xfer_partial): Remove.
5892 (target_wait, target_resume): Simplify.
5893 (find_default_can_async_p, find_default_is_async_p): Update.
5894 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5895 to_xfer_partial, to_stopped_by_watchpoint,
5896 to_stopped_data_address.
5897 (target_store_registers): Simplify.
5898 (forward_target_remove_breakpoint)
5899 (forward_target_insert_breakpoint): Remove.
5900 (target_remove_breakpoint, target_insert_breakpoint)
5901 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5902 * target.h (struct target_ops) <to_resume, to_wait,
5903 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5904 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5905 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5907 (forward_target_remove_breakpoint)
5908 (forward_target_insert_breakpoint): Remove.
5909 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5911 (record_btrace_insert_breakpoint): Delegate directly.
5913 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * target-delegates.c: New file.
5917 * target.c: Include target-delegates.c.
5918 (init_dummy_target): Call install_dummy_methods.
5919 (complete_target_initialization): Call install_delegators.
5920 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5921 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5922 * make-target-delegates: New file.
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * record.c (find_record_target): Use find_target_at.
5927 * target.c (find_target_at): New function.
5928 * target.h (find_target_at): Declare.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5934 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5936 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5937 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5939 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5941 * linux-nat.c (save_sigtrap): Update.
5942 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5943 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5944 (linux_nat_close): Update.
5945 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5947 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5949 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5950 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5951 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5952 (tmp_to_async): Add 'ops' argument.
5953 (record_full_stopped_by_watchpoint, record_full_async)
5954 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5956 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5957 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5958 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5959 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5960 (remote_is_async_p, remote_async): Add 'ops' argument.
5961 (remote_stopped_data_address): Update.
5962 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5963 * target.c (update_current_target)
5964 (find_default_can_async_p, find_default_is_async_p): Update.
5965 (init_dummy_target): Update.
5966 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5967 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5968 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5969 (target_can_async_p, target_is_async_p, target_async)
5970 (target_stopped_by_watchpoint): Update.
5972 2014-02-19 Yao Qi <yao@codesourcery.com>
5975 * gdbarch.sh: Remove startup_gdbarch.
5976 * gdbarch.c: Regenerated.
5977 * gdbarch.h: Likewise.
5979 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5981 * rl78-tdep.c (rl78_g10_register_name): New function.
5982 (rl78_return_value): Add g10 support.
5983 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5986 2014-02-17 Doug Evans <xdje42@gmail.com>
5988 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5989 (SUBDIR_GUILE_SRCS): Ditto.
5990 (scm-gsmob.o): Ditto.
5992 2014-02-17 Yao Qi <yao@codesourcery.com>
5994 * gnu-nat.c (ILL_RPC): Declare defined function.
5996 2014-02-17 Yao Qi <yao@codesourcery.com>
5998 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5999 mach_msg_type_number_t.
6000 (gnu_write_inferior): Likewise.
6002 2014-02-17 Yao Qi <yao@codesourcery.com>
6004 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6006 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6007 (inf_validate_procs, inf_signal): Likewise.
6008 (S_exception_raise_request): Likewise.
6009 (do_mach_notify_dead_name): Likewise.
6010 (steal_exc_port): Likewise.
6011 (gnu_read_inferior): Change 'copy_count''s type to
6012 mach_msg_type_number_t.
6013 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6016 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6018 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6019 flag. Adjust all users; in particular...
6020 (gnu_wait): ..., don't decrement its value in here...
6021 (gnu_create_inferior): ..., and instead set the flag in here,
6022 around the startup_inferior call, and call that one with
6023 START_INFERIOR_TRAPS_EXPECTED.
6025 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6026 (ILL_RPC): ... new macro.
6027 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6028 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6029 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6030 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6031 functions with ILL_RPC macro.
6032 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6033 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6034 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6035 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6036 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6037 (S_proc_getlogin_reply, S_proc_getsid_reply)
6038 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6039 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6040 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6041 (S_proc_getnports_reply, S_proc_is_important_reply)
6042 (S_proc_get_code_reply): New stub functions, generated with
6045 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6046 collected the type check structures.
6048 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6050 2014-02-14 Doug Evans <dje@google.com>
6052 * target.c (target_write_partial): Fix result type.
6054 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6056 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6057 the proper offsets to access fpregset_t.
6059 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6061 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6062 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6063 * h8300-tdep.c (setmachinelist): Remove global.
6064 * hppa-tdep.c (hppa_sigtramp): Remove global.
6065 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6066 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6067 * ravenscar-thread.c (update_target_observer): Remove global.
6068 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6070 2014-02-12 Tom Tromey <tromey@redhat.com>
6072 * common/rsp-low.c: Update comments.
6073 * common/rsp-low.h: Update comments.
6075 2014-02-12 Tom Tromey <tromey@redhat.com>
6077 * common/rsp-low.c (convert_ascii_to_int): Remove.
6078 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6080 2014-02-12 Tom Tromey <tromey@redhat.com>
6082 * common/rsp-low.h (unhexify): Don't declare.
6083 * common/rsp-low.c (unhexify): Remove.
6085 2014-02-12 Tom Tromey <tromey@redhat.com>
6087 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6088 * common/rsp-low.c (convert_int_to_ascii): Remove.
6090 2014-02-12 Tom Tromey <tromey@redhat.com>
6092 * common/rsp-low.h (hexify): Don't declare.
6093 * common/rsp-low.c (hexify): Remove.
6095 2014-02-12 Tom Tromey <tromey@redhat.com>
6097 * common/rsp-low.c (hexify): Never take strlen of argument.
6099 2014-02-12 Tom Tromey <tromey@redhat.com>
6101 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6102 * remote.c (extended_remote_run, remote_rcmd)
6103 (remote_download_trace_state_variable, remote_save_trace_data)
6104 (remote_set_trace_notes): Update.
6105 * tracepoint.c (encode_source_string, tfile_write_status)
6106 (tfile_write_uploaded_tsv): Update.
6108 2014-02-12 Tom Tromey <tromey@redhat.com>
6110 * tracepoint.c: Include rsp-low.h.
6111 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6112 * remote.c: Include rsp-low.h.
6113 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6114 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6115 (remote_unescape_input): Move to common/rsp-low.c.
6116 * common/rsp-low.h: New file.
6117 * common/rsp-low.c: New file.
6118 * Makefile.in (SFILES): Add common/rsp-low.c.
6119 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6120 (COMMON_OBS): Add rsp-low.o.
6121 (rsp-low.o): New target.
6123 2014-02-12 Tom Tromey <tromey@redhat.com>
6125 * utils.h: Include print-utils.h.
6126 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6127 (int_string, core_addr_to_string, core_addr_to_string_nz)
6128 (hex_string, hex_string_custom): Don't declare.
6129 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6130 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6131 (hex_string_custom, int_string, core_addr_to_string)
6132 (core_addr_to_string_nz, host_address_to_string): Move to
6133 common/print-utils.c.
6134 * common/print-utils.h: New file.
6135 * common/print-utils.c: New file
6136 * Makefile.in (SFILES): Add common/print-utils.c.
6137 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6138 (COMMON_OBS): Add print-utils.o.
6139 (print-utils.o): New target.
6141 2014-02-12 Tom Tromey <tromey@redhat.com>
6143 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6145 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6147 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6149 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6151 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6152 if a PT_IO ptrace request returns sucessfully but indicates that 0
6153 bytes were transferred.
6155 2014-02-12 Pedro Alves <palves@redhat.com>
6156 Kevin Buettner <kevinb@redhat.com>
6158 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6159 TYPE_INSTANCE_FLAG_CODE_SPACE.
6161 2014-02-12 Pedro Alves <palves@redhat.com>
6163 * h8300-tdep.c (pseudo_from_raw_register)
6164 (raw_from_pseudo_register): New functions.
6165 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6168 2014-02-12 Pedro Alves <palves@redhat.com>
6170 * h8300-tdep.c (h8300_register_sim_regno): New function.
6171 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6172 gdbarch_register_sim_regno hook.
6174 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6176 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6178 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6180 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6182 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6184 * obsd-tdep.h (obsd_init_abi): New prototype.
6185 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6186 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6187 (obsd_init_abi): New functions.
6188 * i386obsd-tdep.c: Include "obsd-tdep.h".
6189 (i386obsd_init_abi): Call obsd_init_abi.
6190 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6191 (amd64obsd_init_abi): Call obsd_init_abi.
6192 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6193 obsd-tdep.c to gdb_target_obs.
6195 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6197 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6198 double float arguments to 16-byte in the argument slots.
6200 2014-02-11 Doug Evans <xdje42@gmail.com>
6202 * configure.ac: Don't crash if pkg-config is not found and guile
6203 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6205 * configure: Regenerate.
6207 2014-02-11 Yao Qi <yao@codesourcery.com>
6209 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6210 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6211 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6212 * gnu-nat.c (gnu_xfer_memory): Likewise.
6213 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6214 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6215 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6216 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6218 2014-02-11 Yao Qi <yao@codesourcery.com>
6220 * target.h (enum target_xfer_error): Rename to ...
6221 (enum target_xfer_status): ... it. New. All users updated.
6222 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6224 (TARGET_XFER_STATUS_ERROR_P): New macro.
6225 (target_xfer_error_to_string): Remove declaration.
6226 (target_xfer_status_to_string): Declare.
6227 (target_xfer_partial_ftype): Adjust it.
6228 (struct target_ops) <to_xfer_partial>: Return
6229 target_xfer_status. Add argument xfered_len. Update
6231 * target.c (target_xfer_error_to_string): Rename to ...
6232 (target_xfer_status_to_string): ... it. New. All callers
6234 (target_read_live_memory): Likewise. Call target_xfer_partial
6235 instead of target_read.
6236 (memory_xfer_live_readonly_partial): Return
6237 target_xfer_status. Add argument xfered_len.
6238 (raw_memory_xfer_partial): Likewise.
6239 (memory_xfer_partial_1): Likewise.
6240 (memory_xfer_partial): Likewise.
6241 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6242 properly. Update debug message.
6243 (default_xfer_partial, current_xfer_partial): Likewise.
6244 (target_write_partial): Likewise.
6245 (target_read_partial): Likewise. All callers updated.
6246 (read_whatever_is_readable): Likewise.
6247 (target_write_with_progress): Likewise.
6248 (target_read_alloc_1): Likewise.
6250 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6251 * auxv.c (procfs_xfer_auxv): Likewise.
6252 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6253 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6254 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6255 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6256 * corefile.c (read_memory): Adjust.
6257 * corelow.c (core_xfer_partial): Likewise.
6258 * ctf.c (ctf_xfer_partial): Likewise.
6259 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6261 (darwin_xfer_partial): Likewise.
6262 * exec.c (section_table_xfer_memory_partial): Likewise. All
6264 (exec_xfer_partial): Likewise.
6265 * exec.h (section_table_xfer_memory_partial): Update
6267 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6269 (gnu_xfer_partial): Likewise.
6270 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6271 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6272 (ia64_hpux_xfer_solib_got): Likewise.
6273 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6274 type of 'partial_len' to ULONGEST.
6275 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6276 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6277 (linux_nat_xfer_partial): Likewise.
6278 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6279 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6280 * monitor.c (monitor_xfer_memory): Likewise.
6281 (monitor_xfer_partial): Likewise.
6282 * procfs.c (procfs_xfer_partial): Likewise.
6283 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6284 * record-full.c (record_full_xfer_partial): Likewise.
6285 (record_full_core_xfer_partial): Likewise.
6286 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6287 (gdbsim_xfer_partial): Likewise.
6288 * remote.c (remote_write_bytes_aux): Likewise. All callers
6290 (remote_write_bytes, remote_read_bytes): Likewise. All
6292 (remote_flash_erase): Likewise. All callers updated.
6293 (remote_write_qxfer): Likewise. All callers updated.
6294 (remote_read_qxfer): Likewise. All callers updated.
6295 (remote_xfer_partial): Likewise.
6296 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6297 (rs6000_xfer_shared_libraries): Likewise.
6298 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6299 (sol_thread_xfer_partial): Likewise.
6300 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6301 (sparc_xfer_partial): Likewise.
6302 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6304 (spu_xfer_partial): Likewise.
6305 * spu-multiarch.c (spu_xfer_partial): Likewise.
6306 * tracepoint.c (tfile_xfer_partial): Likewise.
6307 * windows-nat.c (windows_xfer_memory): Likewise.
6308 (windows_xfer_shared_libraries): Likewise.
6309 (windows_xfer_partial): Likewise.
6310 * valprint.c: Replace 'target_xfer_error' with
6311 'target_xfer_status' in comments.
6313 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6315 Checked in by Joel Brobecker <brobecker@adacore.com>.
6316 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6318 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6320 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6321 function parameters.
6323 2014-02-10 Will Newton <will.newton@linaro.org>
6325 * elfread.c (elf_rel_plt_read): Look for a .got section if
6326 looking up .got.plt fails.
6327 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6328 on address passed to elf_gnu_ifunc_record_cache.
6329 (elf_gnu_ifunc_resolve_addr): Likewise.
6330 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6332 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6334 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6335 (X_RETTURN): New macro.
6336 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6338 * sparc64-tdep.c (sparc64_init_abi): Hook
6339 sparc_in_function_epilogue_p.
6341 2014-02-10 Gary Benson <gbenson@redhat.com>
6343 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6344 Rename name_matcher to symbol_matcher.
6346 2014-02-10 Gary Benson <gbenson@redhat.com>
6348 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6349 Use expand_symtabs_file_matcher_ftype and
6350 expand_symtabs_symbol_matcher_ftype.
6352 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6354 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6355 (struct ada_symbol_cache): New.
6356 (ada_free_symbol_cache): Forward declare.
6357 (struct ada_pspace_data): New.
6358 (ada_pspace_data_handle): New static global.
6359 (get_ada_pspace_data, ada_pspace_data_cleanup)
6360 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6361 (cache_space, cache): Delete, now folded inside struct
6363 (ada_get_symbol_cache): New function.
6364 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6366 (_initialize_ada_language): Remove initialization of cache_space.
6367 Move call to observer_attach_inferior_exit up, grouping it
6368 with the other observer registrations inside this function.
6369 Rename command to be more general. Add call to
6370 register_program_space_data_with_cleanup.
6372 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6374 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6375 ada_new_objfile_observer.
6376 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6377 (_initialize_tasks): Update uses of ada_new_objfile_observer
6378 and ada_tasks_normal_stop_observer.
6380 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6382 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6383 returned by the 'Length attribute to integer.
6385 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6387 * ada-lang.c (_initialize_ada_language): Initialize
6388 cache_space obstack.
6390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6392 * ada-lang.c (HASH_SIZE): New macro.
6393 (struct cache_entry): New type.
6394 (cache_space, cache): New static globals.
6395 (ada_clear_symbol_cache, find_entry): New functions.
6396 (lookup_cached_symbol, cache_symbol): Implement.
6397 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6398 (_initialize_ada_language): Attach ada_new_objfile_observer
6399 and ada_free_objfile_observer.
6401 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6403 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6404 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6405 struct block * parameter.
6406 (ada_lookup_symbol_list_worker): Constify local variable "block".
6407 Remove cast which is no longer necessary.
6409 2014-02-10 Doug Evans <xdje42@gmail.com>
6411 Add Guile as an extension language.
6412 * NEWS: Mention Guile scripting.
6413 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6414 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6415 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6416 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6417 (CLIBS): Add GUILE_LIBS.
6418 (install-guile): New rule.
6419 (guile.o): New rule.
6420 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6421 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6422 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6423 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6424 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6425 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6426 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6427 * configure.ac: New option --with-guile.
6428 * configure: Regenerate.
6429 * config.in: Regenerate.
6430 * auto-load.c: Remove #include "python/python.h". Add #include
6431 "gdb/section-scripts.h".
6432 (source_section_scripts): Handle Guile scripts.
6433 (_initialize_auto_load): Add name of Guile objfile script to
6434 scripts-directory help text.
6435 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6436 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6437 (struct breakpoint): New member scm_bp_object.
6438 * defs.h (enum command_control_type): New value guile_control.
6439 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6441 (show_user): Update comment.
6442 (_initialize_cli_cmds): Update help text for "show user". Update help
6443 text for max-user-call-depth.
6444 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6446 (multi_line_command_p): Add guile_control.
6447 (print_command_lines): Handle guile_control.
6448 (execute_control_command, recurse_read_control_structure): Ditto.
6449 (process_next_line): Recognize "guile" commands.
6450 * disasm.c (gdb_disassemble_info): Make non-static.
6451 * disasm.h: #include "dis-asm.h".
6452 (struct gdbarch): Add forward decl.
6453 (gdb_disassemble_info): Declare.
6454 * extension.c: #include "guile/guile.h".
6455 (extension_languages): Add guile.
6456 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6457 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6458 * gdbtypes.c (get_unsigned_type_max): New function.
6459 (get_signed_type_minmax): New function.
6460 * gdbtypes.h (get_unsigned_type_max): Declare.
6461 (get_signed_type_minmax): Declare.
6462 * guile/README: New file.
6463 * guile/guile-internal.h: New file.
6464 * guile/guile.c: New file.
6465 * guile/guile.h: New file.
6466 * guile/scm-arch.c: New file.
6467 * guile/scm-auto-load.c: New file.
6468 * guile/scm-block.c: New file.
6469 * guile/scm-breakpoint.c: New file.
6470 * guile/scm-disasm.c: New file.
6471 * guile/scm-exception.c: New file.
6472 * guile/scm-frame.c: New file.
6473 * guile/scm-gsmob.c: New file.
6474 * guile/scm-iterator.c: New file.
6475 * guile/scm-lazy-string.c: New file.
6476 * guile/scm-math.c: New file.
6477 * guile/scm-objfile.c: New file.
6478 * guile/scm-ports.c: New file.
6479 * guile/scm-pretty-print.c: New file.
6480 * guile/scm-safe-call.c: New file.
6481 * guile/scm-string.c: New file.
6482 * guile/scm-symbol.c: New file.
6483 * guile/scm-symtab.c: New file.
6484 * guile/scm-type.c: New file.
6485 * guile/scm-utils.c: New file.
6486 * guile/scm-value.c: New file.
6487 * guile/lib/gdb.scm: New file.
6488 * guile/lib/gdb/boot.scm: New file.
6489 * guile/lib/gdb/experimental.scm: New file.
6490 * guile/lib/gdb/init.scm: New file.
6491 * guile/lib/gdb/iterator.scm: New file.
6492 * guile/lib/gdb/printing.scm: New file.
6493 * guile/lib/gdb/types.scm: New file.
6494 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6495 (VPATH): Add $(GUILE_SRCDIR).
6496 (GUILE_DIR): New variable.
6497 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6498 (all): Add stamp-guile dependency.
6499 (stamp-guile): New rule.
6500 (clean-guile, install-guile, uninstall-guile): New rules.
6501 (install-only): Add install-guile dependency.
6502 (uninstall): Add uninstall-guile dependency.
6503 (clean): Add clean-guile dependency.
6505 2014-02-09 Doug Evans <xdje42@gmail.com>
6507 Revert this patch (which I approved, mea culpa).
6509 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6511 * Makefile.in (all-lib): Remove.
6512 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6514 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6516 Fix Python stack corruption.
6517 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6520 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6522 * Makefile.in (all-lib): Remove.
6523 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6525 2014-02-07 Doug Evans <dje@google.com>
6527 * extension-priv.h (extension_language_script_ops): Add comment.
6528 (extension_language_ops): Add comment.
6529 (active_ext_lang_state): Fix typo in comment.
6531 2014-02-07 Pedro Alves <palves@redhat.com>
6533 PR breakpoints/16292
6534 * infrun.c (handle_signal_stop) <signal arrives while stepping
6535 over a breakpoint>: Switch back to the stepping thread.
6537 2014-02-07 Yao Qi <yao@codesourcery.com>
6539 * target.c (target_xfer_partial): Return zero if LEN is zero.
6541 2014-02-07 Yao Qi <yao@codesourcery.com>
6543 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6544 (ld_so_xfer_auxv): Likewise.
6545 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6546 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6547 * corelow.c (core_xfer_partial): Likewise.
6548 * ctf.c (ctf_xfer_partial): Likewise.
6549 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6550 (darwin_xfer_partial): Likewise.
6551 * exec.c (exec_xfer_partial): Likewise.
6552 * gnu-nat.c (gnu_xfer_partial): Likewise.
6553 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6554 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6555 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6556 * linux-nat.c (linux_xfer_siginfo): Likewise.
6557 (linux_proc_xfer_spu): Likewise.
6558 * procfs.c (procfs_xfer_partial): Likewise.
6559 * record-full.c (record_full_xfer_partial): Likewise.
6560 (record_full_core_xfer_partial): Likewise.
6561 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6562 * remote.c (remote_write_qxfer): Likewise.
6563 (remote_write_qxfer, remote_read_qxfer): Likewise.
6564 (remote_xfer_partial): Likewise.
6565 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6566 (rs6000_xfer_shared_libraries): Likewise.
6567 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6568 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6569 (spu_xfer_partial): Likewise.
6570 * target.c (memory_xfer_partial_1): Likewise.
6571 * tracepoint.c (tfile_xfer_partial): Likewise.
6572 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6573 (windows_xfer_partial): Likewise.
6575 2014-02-07 Yao Qi <yao@codesourcery.com>
6577 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6579 (core_xfer_shared_libraries_aix): Likewise.
6580 * gdbarch.c, gdbarch.h: Regenerated.
6581 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6582 ULONGEST. Change 'len_avail' type to ULONGEST.
6583 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6584 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6586 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6588 2014-02-07 Yao Qi <yao@codesourcery.com>
6590 * corefile.c (memory_error): Get 'exception' from ERR and pass
6591 'exception' to throw_error.
6593 2014-02-06 Doug Evans <xdje42@gmail.com>
6595 * configure.ac (libpython checking): Remove all but python.o from
6596 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6597 * configure: Regenerate.
6599 * Makefile.in (SFILES): Add extension.c.
6600 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6601 (COMMON_OBS): Add extension.o.
6602 * extension.h: New file.
6603 * extension-priv.h: New file.
6604 * extension.c: New file.
6606 * python/python-internal.h: #include "extension.h".
6607 (gdbpy_auto_load_enabled): Declare.
6608 (gdbpy_apply_val_pretty_printer): Declare.
6609 (gdbpy_apply_frame_filter): Declare.
6610 (gdbpy_preserve_values): Declare.
6611 (gdbpy_breakpoint_cond_says_stop): Declare.
6612 (gdbpy_breakpoint_has_cond): Declare.
6613 (void source_python_script_for_objfile): Delete.
6614 * python/python.c: #include "extension-priv.h".
6615 Delete inclusion of "observer.h".
6616 (extension_language_python): Moved here and renamed from
6617 script_language_python in py-auto-load.c.
6618 Redefined to be of type extension_language_defn.
6619 (python_extension_script_ops): New global.
6620 (python_extension_ops): New global.
6621 (struct python_env): New member previous_active.
6622 (restore_python_env): Call restore_active_ext_lang.
6623 (ensure_python_env): Call set_active_ext_lang.
6624 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6626 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6628 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6630 (gdbpy_eval_from_control_command): Renamed from
6631 eval_python_from_control_command, made static. New arg extlang.
6632 (gdbpy_source_script) Renamed from source_python_script, made static.
6634 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6635 result to int. New arg extlang.
6636 (gdbpy_source_objfile_script): Renamed from
6637 source_python_script_for_objfile, made static. New arg extlang.
6638 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6639 static. New args extlang, extlang_printers. Change result type to
6641 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6642 static. New arg extlang. Rename arg printers to extlang_printers
6643 and change type to ext_lang_type_printers *.
6644 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6645 static. Replace argument arg with extlang, extlang_printers.
6646 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6647 (!HAVE_PYTHON, source_python_script): Delete.
6648 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6649 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6650 (!HAVE_PYTHON, start_type_printers): Delete.
6651 (!HAVE_PYTHON, apply_type_printers): Delete.
6652 (!HAVE_PYTHON, free_type_printers): Delete.
6653 (_initialize_python): Delete call to observer_attach_before_prompt.
6654 (finalize_python): Set/restore active extension language.
6655 (gdbpy_finish_initialization) Renamed from
6656 finish_python_initialization, made static. New arg extlang.
6657 (gdbpy_initialized): New function.
6658 * python/python.h: #include "extension.h". Delete #include
6659 "value.h", "mi/mi-cmds.h".
6660 (extension_language_python): Declare.
6661 (GDBPY_AUTO_FILE_NAME): Delete.
6662 (enum py_bt_status): Moved to extension.h and renamed to
6664 (enum frame_filter_flags): Moved to extension.h.
6665 (enum py_frame_args): Moved to extension.h and renamed to
6666 ext_lang_frame_args.
6667 (finish_python_initialization): Delete.
6668 (eval_python_from_control_command): Delete.
6669 (source_python_script): Delete.
6670 (apply_val_pretty_printer): Delete.
6671 (apply_frame_filter): Delete.
6672 (preserve_python_values): Delete.
6673 (gdbpy_script_language_defn): Delete.
6674 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6675 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6677 * auto-load.c: #include "extension.h".
6678 (GDB_AUTO_FILE_NAME): Delete.
6679 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6680 (script_language_gdb): Delete, moved to extension.c and renamed to
6681 extension_language_gdb.
6682 (source_gdb_script_for_objfile): Delete.
6683 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6684 (loaded_script): Change type of language member to
6685 struct extension_language_defn *.
6686 (init_loaded_scripts_info): Initialize
6687 unsupported_script_warning_printed.
6688 (maybe_add_script): Make static. Change type of language arg to
6689 struct extension_language_defn *.
6690 (clear_section_scripts): Reset unsupported_script_warning_printed.
6691 (auto_load_objfile_script_1): Rewrite to use extension language API.
6692 (auto_load_objfile_script): Make public. Remove support-compiled-in
6693 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6694 (source_section_scripts): Rewrite to use extension language API.
6695 (load_auto_scripts_for_objfile): Rewrite to use
6696 auto_load_scripts_for_objfile.
6697 (collect_matching_scripts_data): Change type of language member to
6698 struct extension_language_defn *.
6699 (auto_load_info_scripts): Change type of language arg to
6700 struct extension_language_defn *.
6701 (unsupported_script_warning_print): New function.
6702 (script_not_found_warning_print): Make static.
6703 (_initialize_auto_load): Rewrite construction of scripts-directory
6705 * auto-load.h (struct objfile): Add forward decl.
6706 (struct script_language): Delete.
6707 (struct auto_load_pspace_info): Add forward decl.
6708 (struct extension_language_defn): Add forward decl.
6709 (maybe_add_script): Delete.
6710 (auto_load_objfile_script): Declare.
6711 (script_not_found_warning_print): Delete.
6712 (auto_load_info_scripts): Update prototype.
6713 (auto_load_gdb_scripts_enabled): Declare.
6714 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6715 auto_load_python_scripts_enabled and made public.
6716 (script_language_python): Delete, moved to python.c.
6717 (gdbpy_script_language_defn): Delete.
6718 (info_auto_load_python_scripts): Update to use
6719 extension_language_python.
6721 * breakpoint.c (condition_command): Replace call to
6722 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6723 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6724 with call to breakpoint_ext_lang_cond_says_stop.
6725 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6726 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6727 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6728 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6730 (local_setattro): Print name of extension language with existing
6733 * valprint.c (val_print, value_print): Update to call
6734 apply_ext_lang_val_pretty_printer.
6735 * cp-valprint.c (cp_print_value): Update call to
6736 apply_ext_lang_val_pretty_printer.
6737 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6738 (gdbpy_apply_val_pretty_printer): Renamed from
6739 apply_val_pretty_printer. New arg extlang.
6740 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6742 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6743 extension language API.
6744 * cli/cli-script.c (execute_control_command): Update to call
6745 eval_ext_lang_from_control_command.
6747 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6748 enum ext_lang_bt_status values. Update call to
6749 apply_ext_lang_frame_filter.
6750 (mi_cmd_stack_list_locals): Ditto.
6751 (mi_cmd_stack_list_args): Ditto.
6752 (mi_cmd_stack_list_variables): Ditto.
6753 * mi/mi-main.c: Delete #include "python/python-internal.h".
6754 Add #include "extension.h".
6755 (mi_cmd_list_features): Replace reference to python internal variable
6756 gdb_python_initialized with call to ext_lang_initialized_p.
6758 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6759 Update to use enum ext_lang_frame_args. Update to call
6760 apply_ext_lang_frame_filter.
6761 * python/py-framefilter.c (extract_sym): Update to use enum
6763 (extract_value, py_print_type, py_print_value): Ditto.
6764 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6765 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6766 (py_print_frame): Ditto.
6767 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6768 New arg extlang. Update to use enum ext_lang_bt_status.
6770 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6771 finish_python_initialization. Replace with call to
6772 finish_ext_lang_initialization.
6774 * typeprint.c (do_free_global_table): Update to call
6775 free_ext_lang_type_printers.
6776 (create_global_typedef_table): Update to call
6777 start_ext_lang_type_printers.
6778 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6779 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6780 (type_print_options): Change type of global_printers from "void *"
6781 to "struct ext_lang_type_printers *".
6783 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6784 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6785 (gdbpy_preserve_values): Renamed from preserve_python_values.
6787 (!HAVE_PYTHON, preserve_python_values): Delete.
6789 * utils.c (quit_flag): Delete, moved to extension.c.
6790 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6793 * eval.c: Delete #include "python/python.h".
6794 * main.c: Delete #include "python/python.h".
6796 * defs.h: Update comment.
6798 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6802 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6804 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6807 2014-02-05 Yao Qi <yao@codesourcery.com>
6809 * remote.c (remote_pass_signals): Remove local 'buf' and use
6811 (remote_program_signals): Likewise.
6813 2014-02-05 Yao Qi <yao@codesourcery.com>
6815 * ctf.c: Include "inferior.h" and "gdbthread.h".
6816 (CTF_PID): A new macro.
6817 (ctf_open): Call inferior_appeared and add_thread_silent.
6818 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6819 (ctf_thread_alive): New function.
6820 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6822 2014-02-05 Yao Qi <yao@codesourcery.com>
6826 2013-05-24 Yao Qi <yao@codesourcery.com>
6828 * tracepoint.c (TFILE_PID): Remove.
6829 (tfile_open): Don't add thread and inferior.
6830 (tfile_close): Don't set 'inferior_ptid'. Don't call
6831 exit_inferior_silent.
6832 (tfile_thread_alive): Remove.
6833 (init_tfile_ops): Don't set field 'to_thread_alive' of
6836 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6838 * remote.c (remote_start_remote): Call remote_check_symbols even
6839 if only symbol-file (not file) has been given.
6841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6843 * gdbarch.sh (skip_entrypoint): New callback.
6844 * gdbarch.c, gdbarch.h: Regenerate.
6845 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6846 * infrun.c (fill_in_stop_func): Likewise.
6847 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6848 (ppc_elfv2_elf_make_msymbol_special): New function.
6849 (ppc_elfv2_skip_entrypoint): Likewise.
6850 (ppc_linux_init_abi): Install them for ELFv2.
6852 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6854 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6855 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6856 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6857 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6858 structures returned in GPRs.
6860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6862 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6863 offset to the stack parameter list for the ELFv2 ABI.
6865 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6867 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6868 set_gdbarch_convert_from_func_ptr_addr and
6869 set_gdbarch_elf_make_msymbol_special for ELFv1.
6870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6871 function descriptors on ELFv1.
6872 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6873 set up r12 at function entry.
6875 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6877 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6878 (struct gdbarch_tdep): New member elf_abi.
6880 * rs6000-tdep.c: Include "elf/ppc64.h".
6881 (rs6000_gdbarch_init): Detect ELF ABI version.
6883 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6885 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6886 within a register pair holding a DFP 128-bit value on little-endian.
6887 (ppc64_sysv_abi_return_value_base): Likewise.
6888 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6889 (dfp_pseudo_register_write): Likewise.
6891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6893 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6894 offset on little-endian when passing _Decimal32.
6895 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6897 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6899 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6900 of the overlapped FP register within the VSX register on little-
6902 (efpr_pseudo_register_write): Likewise.
6904 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6907 offset on little-endian when passing small structures.
6909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6911 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6912 (struct ppc64_sysv_argpos): New data structure.
6913 (ppc64_sysv_abi_push_float): Remove.
6914 (ppc64_sysv_abi_push_val): New function.
6915 (ppc64_sysv_abi_push_integer): Likewise.
6916 (ppc64_sysv_abi_push_freg): Likewise.
6917 (ppc64_sysv_abi_push_vreg): Likewise.
6918 (ppc64_sysv_abi_push_param): Likewise.
6919 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6920 (ppc64_sysv_abi_return_value_base): New function.
6921 (ppc64_sysv_abi_return_value): Refactor to use it.
6923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6925 * NEWS: Document new target powerpc64le-*-linux*.
6927 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6929 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6930 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6932 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6933 register set used in ELF core dumps. Add floating-point register set.
6935 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6937 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6938 dwarf2_to_gdb[] table using symbolic constants. Adjust
6939 penultimate entry from number representing the PC register
6940 to symbolic constant representing the MDR register. Add
6941 constant for the PC register to the end of the table.
6943 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6945 * bsd-kvm.c: Include <sys/param.h>
6947 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6949 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6951 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6953 * ada-lang.h (clear_ada_sym_cache): Delete.
6955 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6957 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6959 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6961 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6962 the sigreturn register save area only if the syscall is
6965 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6967 * valops.c (value_slice): Minor reformatting.
6969 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6971 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6973 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6975 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6977 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6978 (ada_ignore_descriptive_types_p): New static global.
6979 (find_parallel_type_by_descriptive_type): Return immediately
6980 if ada_ignore_descriptive_types_p is set.
6981 (_initialize_ada_language): Register new commands "maintenance
6982 set ada", "maintenance show ada", "maintenance set ada
6983 ignore-descriptive-types" and "maintenance show ada
6984 ignore-descriptive-types".
6985 * NEWS: Add entry for new "maint ada set/show
6986 ignore-descriptive-types" commands.
6988 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6990 * record-btrace.c (record_btrace_close): Call btrace_teardown
6993 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6995 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6998 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7000 * ada-typeprint (type_is_full_subrange_of_target_type):
7002 (print_range): Add parameter bounds_prefered_p. If not set,
7003 try printing range types using the name of their base type.
7004 (print_range_type): Add parameter bounds_prefered_p.
7005 Use it in call to print_range.
7006 (print_array_type, ada_print_type): Update calls to print_range
7007 and print_range_type.
7009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7011 * ada-typeprint.c (print_array_type, print_choices, print_range)
7012 (print_range_bound, print_dynamic_range_bound, print_range_type):
7015 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7017 * ada-typeprint.c (print_range): Add missing empty line
7018 after local declaration.
7020 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7022 * ada-valprint.c (print_optional_low_bound): Get index_type's
7023 target type for as long as it is a TYPE_CODE_RANGE.
7025 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7027 * procfs.c (procfs_make_note_section): Remove assertion and
7030 2014-01-24 Yao Qi <yao@codesourcery.com>
7032 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7033 * corelow.c (get_core_siginfo): Likewise.
7035 2014-01-24 Yao Qi <yao@codesourcery.com>
7037 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7038 ULONGEST. Don't check 'len' is negative.
7039 (remote_write_bytes): Change type of 'len' to ULONGEST.
7041 2014-01-23 Tom Tromey <tromey@redhat.com>
7044 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7045 Handle exception from frame.block.
7046 (FrameVars.fetch_frame_locals): Likewise.
7048 2014-01-23 Tom Tromey <tromey@redhat.com>
7051 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7052 on a NULL pointer. Move "goto error" to correct place.
7054 2014-01-23 Tom Tromey <tromey@redhat.com>
7057 * python/py-framefilter.c (apply_frame_filter): Call
7058 ensure_python_env after computing gdbarch.
7060 2014-01-23 Yao Qi <yao@codesourcery.com>
7062 * target.c (raw_memory_xfer_partial): Change argument type
7063 from void * to gdb_byte *.
7064 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7066 2014-01-22 Doug Evans <dje@google.com>
7068 New gdbserver option --debug-format=timestamp.
7071 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7073 * syscalls/s390x-linux.xml: New file.
7074 * syscalls/s390-linux.xml: New file.
7075 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7076 (XML_SYSCALL_FILENAME_S390X): Likewise.
7077 (op_svc): New enum value for SVC opcode.
7078 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7079 (s390_linux_get_syscall_number): New function.
7080 (s390_gdbarch_init): Register '*get_syscall_number' and the
7081 syscall xml file name.
7082 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7083 "s390-linux.xml" and "s390x-linux.xml".
7084 * NEWS: Announce new feature.
7086 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7088 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7090 2014-01-22 Pedro Alves <palves@redhat.com>
7092 * xtensa-config.c: Include defs.h.
7094 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7096 * common/common-utils.h: Add "ARI:" comment beside __func__
7099 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7101 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7102 documentation a bit.
7104 2014-01-21 Roland McGrath <mcgrathr@google.com>
7106 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7107 * configure: Regenerate.
7108 * aclocal.m4: Regenerate.
7109 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7110 New substituted variables.
7111 (install-strip): New target.
7112 (INSTALL_SCRIPT): New substituted variable.
7113 (FLAGS_TO_PASS): Add it.
7114 (install-only): Use $(INSTALL_SCRIPT) rather than
7115 $(INSTALL_PROGRAM) for gcore.
7117 2014-01-20 Tom Tromey <tromey@redhat.com>
7119 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7122 2014-01-20 Tom Tromey <tromey@redhat.com>
7124 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7125 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7126 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7127 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7128 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7129 (struct cmd_list_element) <flags>: Remove.
7130 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7131 doc_allocated>: New fields.
7132 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7134 * maint.c (maintenance_do_deprecate): Update.
7135 * top.c (execute_command): Update.
7137 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7139 * xtensa-linux-nat.c: Include asm/ptrace.h.
7141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7143 * Makefile.in (SFILES): Add d-support.c.
7144 (COMMON_OBS): Add d-support.o.
7145 * d-lang.h (d_parse_symbol): Add comment, now defined in
7147 * d-lang.c (parse_call_convention)
7148 (parse_attributes, parse_function_types)
7149 (parse_function_args, parse_type, parse_identifier)
7150 (call_convention_p, d_parse_symbol): Move functions to ...
7151 * d-support.c: ... New file.
7153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7155 * d-lang.h (d_parse_symbol): Add declaration.
7156 * d-lang.c (extract_identifiers)
7157 (extract_type_info): Remove functions.
7158 (parse_call_convention, parse_attributes)
7159 (parse_function_types, parse_function_args)
7160 (parse_type, parse_identifier, call_convention_p)
7161 (d_parse_symbol): New functions.
7162 (d_demangle): Use d_parse_symbol to demangle D symbols.
7164 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7166 * d-lang.h (struct builtin_d_type): New data type.
7167 (builtin_d_type): Add declaration.
7168 * d-lang.c (d_language_arch_info, build_d_types)
7169 (builtin_d_type): New functions.
7170 (enum d_primitive_types): New data type.
7171 (d_language_defn): Change c_language_arch_info to
7172 d_language_arch_info.
7173 (d_type_data): New static variable.
7174 (_initialize_d_language): Initialize d_type_data.
7176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7178 * d-lang.h (d_main_name): Add declaration.
7179 * d-lang.c (d_main_name): New function.
7180 * symtab.c (find_main_name): Add call to d_main_name.
7182 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7184 * d-lang.c (d_language_defn): Change macro_expansion_c to
7187 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7189 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7191 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7193 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7194 gdb_exception" declaration.
7195 * remote.c (getpkt_or_notif_sane): Likewise.
7197 2014-01-17 Doug Evans <dje@google.com>
7199 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7200 function, contents of dirnames_to_char_ptr_vec_append moved here.
7201 (delim_string_to_char_ptr_vec): New function.
7202 (dirnames_to_char_ptr_vec_append): Rewrite.
7203 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7205 2014-01-17 Doug Evans <dje@google.com>
7207 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7209 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7210 #include "common-utils.h".
7211 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7212 * common/vec.h (VEC_ASSERT_PASS): Update.
7213 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7214 (MACH_CHECK_ERROR): Update.
7216 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7218 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7220 * gdbarch.h: Regenerate.
7222 2014-01-16 Tom Tromey <tromey@redhat.com>
7224 * value.c (struct value) <regnum>: Move earlier.
7226 2014-01-16 Tom Tromey <tromey@redhat.com>
7228 * remote.c (extended_remote_create_inferior): Rename from
7229 extended_remote_create_inferior_1. Add "ops" argument. Remove
7232 2014-01-16 Pedro Alves <palves@redhat.com>
7234 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7235 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7238 2014-01-16 Doug Evans <dje@google.com>
7240 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7242 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7244 * btrace.h (btrace_thread_flag): New.
7245 (struct btrace_thread_info) <flags>: New.
7246 * record-btrace.c (record_btrace_resume_thread)
7247 (record_btrace_find_thread_to_move, btrace_step_no_history)
7248 (btrace_step_stopped, record_btrace_start_replaying)
7249 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7250 (record_btrace_find_resume_thread): New.
7251 (record_btrace_resume, record_btrace_wait): Extend.
7252 (record_btrace_can_execute_reverse): New.
7253 (record_btrace_open): Fail in non-stop mode.
7254 (record_btrace_set_replay): Split into this, ...
7255 (record_btrace_stop_replaying): ... this, ...
7256 (record_btrace_clear_histories): ... and this.
7257 (init_record_btrace_ops): Init to_can_execute_reverse.
7258 * NEWS: Announce it.
7260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7262 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7263 (forward_target_decr_pc_after_break)
7264 (target_decr_pc_after_break): New.
7265 * target.c (forward_target_decr_pc_after_break)
7266 (target_decr_pc_after_break): New.
7267 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7268 instead of gdbarch_decr_pc_after_break.
7269 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7270 instead of gdbarch_decr_pc_after_break.
7271 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7272 instead of gdbarch_decr_pc_after_break.
7273 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7274 instead of gdbarch_decr_pc_after_break.
7275 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7276 instead of gdbarch_decr_pc_after_break.
7277 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7278 instead of gdbarch_decr_pc_after_break.
7280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7282 * btrace.c: Include regcache.h.
7283 (btrace_add_pc): New.
7284 (btrace_enable): Call btrace_add_pc.
7285 (btrace_is_empty): New.
7286 * btrace.h (btrace_is_empty): New.
7287 * record-btrace.c (require_btrace, record_btrace_info): Call
7290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7292 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7293 Support delta reads.
7294 (linux_disable_btrace): Change return type.
7295 * common/linux-btrace.h (linux_read_btrace): Change parameters
7296 and return type to allow error reporting. Update users.
7297 (linux_disable_btrace): Change return type. Update users.
7298 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7300 (btrace_error): New.
7301 (btrace_block) <begin>: Comment on BEGIN == 0.
7302 * btrace.c (btrace_compute_ftrace): Start from the end of
7304 (btrace_stitch_trace, btrace_clear_history): New.
7305 (btrace_fetch): Read delta trace, return if replaying.
7306 (btrace_clear): Move clear history code to btrace_clear_history.
7307 (parse_xml_btrace): Throw an error if parsing failed.
7308 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7309 and return type to allow error reporting.
7310 (target_read_btrace): Change parameters and return type to allow
7312 * target.c (target_read_btrace): Update.
7313 * remote.c (remote_read_btrace): Support delta reads. Pass
7315 * NEWS: Announce it.
7317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7319 * record.h (record_btrace_frame_unwind)
7320 (record_btrace_tailcall_frame_unwind): New declarations.
7321 * dwarf2-frame: Include record.h
7322 (dwarf2_frame_cfa): Throw an error for btrace frames.
7323 * record-btrace.c: Include hashtab.h.
7324 (btrace_get_bfun_name): New.
7325 (btrace_call_history): Call btrace_get_bfun_name.
7326 (struct btrace_frame_cache): New.
7328 (bfcache_hash, bfcache_eq, bfcache_new): New.
7329 (btrace_get_frame_function): New.
7330 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7331 (record_btrace_frame_this_id): Compute own id.
7332 (record_btrace_frame_prev_register): Provide PC, throw_error
7333 for all other registers.
7334 (record_btrace_frame_sniffer): Detect btrace frames.
7335 (record_btrace_tailcall_frame_sniffer): New.
7336 (record_btrace_frame_dealloc_cache): New.
7337 (record_btrace_frame_unwind): Add new functions.
7338 (record_btrace_tailcall_frame_unwind): New.
7339 (_initialize_record_btrace): Allocate cache.
7340 * btrace.c (btrace_clear): Call reinit_frame_cache.
7341 * NEWS: Announce it.
7343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7345 * record-btrace.c (record_btrace_set_replay)
7346 (record_btrace_goto_begin, record_btrace_goto_end)
7347 (record_btrace_goto): New.
7348 (init_record_btrace_ops): Initialize them.
7349 * NEWS: Announce it.
7351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7353 * record-btrace.c (record_btrace_find_new_threads)
7354 (record_btrace_thread_alive): New.
7355 (init_record_btrace_ops): Initialize to_find_new_threads and
7358 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7360 * record-btrace.c (record_btrace_resume): New.
7361 (record_btrace_wait): New.
7362 (init_record_btrace_ops): Initialize to_wait and to_resume.
7364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7366 * record-btrace.c (record_btrace_xfer_partial)
7367 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7368 (record_btrace_allow_memory_access): New.
7369 (init_record_btrace_ops): Initialize new methods.
7370 * target.c (raw_memory_xfer_partial): Bail out if target reports
7371 that this memory is not available.
7373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7375 * target.h (target_ops) <to_insert_breakpoint>
7376 <to_remove_breakpoint>: Add target_ops parameter.
7377 (forward_target_insert_breakpoint): New.
7378 (forward_target_remove_breakpoint): New.
7379 (memory_remove_breakpoint, memory_insert_breakpoint):
7380 Add target_ops parameter.
7381 * target.c (target_insert_breakpoint): Split into this and ...
7382 (forward_target_insert_breakpoint): ... this.
7383 (target_remove_breakpoint): Split into this and ...
7384 (forward_target_remove_breakpoint): ... this.
7385 (debug_to_insert_breakpoint): Add target_ops parameter.
7386 Call forward_target_insert_breakpoint.
7387 (debug_to_remove_breakpoint): Add target_ops parameter.
7388 Call forward_target_remove_breakpoint.
7389 (update_current_target): Do not inherit or default to_insert_breakpoint
7390 and to_remove_breakpoint.
7391 * corelow.c (ignore): Add target_ops parameter.
7392 * exec.c (ignore): Add target_ops parameter.
7393 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7394 Add target_ops parameter.
7395 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7396 Add target_ops parameter.
7397 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7398 Add target_ops parameter.
7399 * record-full.c (record_full_beneath_to_insert_breakpoint)
7400 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7401 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7402 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7403 (record_full_core_remove_breakpoint): Add target_ops parameter.
7405 (record_full_beneath_to_insert_breakpoint_ops)
7406 (record_full_beneath_to_remove_breakpoint_ops)
7407 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7408 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7409 tmp_to_remove_breakpoint_ops,
7410 record_full_beneath_to_insert_breakpoint_ops, and
7411 record_full_beneath_to_remove_breakpoint_ops.
7412 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7413 (m32r_remove_breakpoint): Add target_ops parameter.
7414 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7415 Add target_ops parameter.
7416 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7417 Add target_ops parameter.
7419 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7420 Markus Metzger <markus.t.metzger@intel.com>
7422 * record-btrace.c: Include frame-unwind.h.
7423 (record_btrace_frame_unwind_stop_reason)
7424 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7425 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7427 (init_record_btrace_ops): Install it.
7429 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7431 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7434 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7436 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7439 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7441 * frame-unwind.c: Include target.h.
7442 (frame_unwind_try_unwinder): New function with code from ...
7443 (frame_unwind_find_by_frame): ... here. New variable
7444 unwinder_from_target, call also target_get_unwinder)
7445 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7446 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7447 * target.h (struct target_ops): New fields to_get_unwinder and
7448 to_get_tailcall_unwinder.
7449 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7453 * record-btrace.c (record_btrace_fetch_registers)
7454 (record_btrace_store_registers)
7455 (record_btrace_to_prepare_to_store): New.
7456 (init_record_btrace_ops): Add the above.
7458 2014-01-16 Tom Tromey <tromey@redhat.com>
7460 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7461 * target.h (struct target_ops) <to_prepare_to_store>: Add
7463 (target_prepare_to_store): Add argument.
7464 * target.c (debug_to_prepare_to_store): Add argument.
7465 (update_current_target): Update.
7466 * remote.c (remote_prepare_to_store): Add 'self' argument.
7467 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7468 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7469 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7470 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7472 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7473 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7474 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7475 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7476 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7480 * btrace.h (replay) <replay>: New.
7481 (btrace_is_replaying): New.
7482 * btrace.c (btrace_clear): Free replay iterator.
7483 (btrace_is_replaying): New.
7484 * record-btrace.c (record_btrace_is_replaying): New.
7485 (record_btrace_info): Print insn number if replaying.
7486 (record_btrace_insn_history): Start at replay position.
7487 (record_btrace_call_history): Start at replay position.
7488 (init_record_btrace_ops): Init to_record_is_replaying.
7490 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7492 * record-btrace.c (record_btrace_insn_history_range): Include
7494 (record_btrace_insn_history_from): Adjust range.
7495 (record_btrace_call_history_range): Include
7497 (record_btrace_call_history_from): Adjust range.
7498 * NEWS: Announce changes.
7500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7502 * record.h (enum record_print_flag)
7503 <record_print_indent_calls>: New.
7504 * record.c (get_call_history_modifiers): Recognize /c modifier.
7505 (_initialize_record): Document /c modifier.
7506 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7507 Reorder fields. Optionally indent the function name. Update
7509 * NEWS: Announce changes.
7511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7513 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7517 * btrace.c (ftrace_new_function): Start counting at one.
7518 * record-btrace.c (record_btrace_info): Adjust number of calls
7520 * NEWS: Announce it.
7522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7524 * record-btrace.c (btrace_call_history_insn_range): Print
7525 insn range as [begin, end].
7527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7529 * btrace.h (struct btrace_func_link): New.
7530 (enum btrace_function_flag): New.
7531 (struct btrace_inst): Rename to ...
7532 (struct btrace_insn): ...this. Update all users.
7533 (struct btrace_func) <ibegin, iend>: Remove.
7534 (struct btrace_func_link): New.
7535 (struct btrace_func): Rename to ...
7536 (struct btrace_function): ...this. Update all users.
7537 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7538 (number, level, flags>: New.
7539 (struct btrace_insn_iterator): Rename to ...
7540 (struct btrace_insn_history): ...this.
7542 (struct btrace_insn_iterator, btrace_call_iterator): New.
7543 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7544 (struct btrace_target_info) <begin, end, level>
7545 <insn_history, call_history>: New.
7546 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7547 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7548 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7549 (btrace_call_number, btrace_call_begin, btrace_call_end)
7550 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7551 (btrace_find_function_by_number, btrace_set_insn_history)
7552 (btrace_set_call_history): New.
7553 * btrace.c (btrace_init_insn_iterator)
7554 (btrace_init_func_iterator, compute_itrace): Remove.
7555 (ftrace_print_function_name, ftrace_print_filename)
7556 (ftrace_skip_file): Change
7558 (ftrace_init_func): Remove.
7559 (ftrace_debug): Use new btrace_function fields.
7560 (ftrace_function_switched): Also consider gaining and
7561 losing symbol information).
7562 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7563 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7564 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7566 (ftrace_new_function): Move. Remove debug print.
7567 (ftrace_update_lines, ftrace_update_insns): New.
7568 (ftrace_update_function): Check for call, ret, and jump.
7569 (compute_ftrace): Renamed to ...
7570 (btrace_compute_ftrace): ...this. Rewritten to compute call
7572 (btrace_fetch, btrace_clear): Updated.
7573 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7574 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7575 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7576 (btrace_call_number, btrace_call_begin, btrace_call_end)
7577 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7578 (btrace_find_function_by_number, btrace_set_insn_history)
7579 (btrace_set_call_history): New.
7580 * record-btrace.c (require_btrace): Use new btrace thread
7582 (record_btrace_info, btrace_insn_history)
7583 (record_btrace_insn_history, record_btrace_insn_history_range):
7584 Use new btrace thread info fields and new iterator.
7585 (btrace_func_history_src_line): Rename to ...
7586 (btrace_call_history_src_line): ...this. Use new btrace
7588 (btrace_func_history): Rename to ...
7589 (btrace_call_history): ...this. Use new btrace thread info
7590 fields and new iterator.
7591 (record_btrace_call_history, record_btrace_call_history_range):
7592 Use new btrace thread info fields and new iterator.
7594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7596 * frame.h (frame_id_build_unavailable_stack_special): New.
7597 * frame.c (frame_id_build_unavailable_stack_special): New.
7599 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7601 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7602 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7603 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7605 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7606 (i386_insn_is_jump, i386_jmp_p): New.
7607 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7608 insn_is_jump to gdbarch.
7609 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7610 * gdbarch.h: Regenerated.
7611 * gdbarch.c: Regenerated.
7612 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7613 (default_insn_is_jump): New.
7614 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7615 (default_insn_is_jump): New.
7617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7619 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7621 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7622 (btrace_read_type) <btrace_read_new>: Change to ...
7623 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7627 * common/linux-btrace.c (linux_read_btrace): Free trace from
7630 2014-01-15 Doug Evans <dje@google.com>
7632 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7635 2014-01-15 Tom Tromey <tromey@redhat.com>
7637 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7638 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7639 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7640 (set_objfile_main_name): New function.
7641 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7642 language_of_main>: New fields.
7643 (set_objfile_main_name): Declare.
7644 * symtab.c (find_main_name): Loop over objfiles to find the main
7646 (set_main_name): Now static.
7647 (get_main_info): Add comment.
7648 * symtab.h (set_main_name): Don't declare.
7650 2014-01-15 Tom Tromey <tromey@redhat.com>
7652 * symtab.c (main_progspace_key): New global.
7653 (struct main_info): New.
7654 (name_of_main, language_of_main): Remove.
7655 (get_main_info, main_info_cleanup): New function.
7656 (set_main_name, main_name, main_language): Use get_main_info.
7657 (_initialize_symtab): Initialize main_progspace_key.
7659 2014-01-15 Tom Tromey <tromey@redhat.com>
7661 * dbxread.c (process_one_symbol): Update.
7662 * dwarf2read.c (read_partial_die): Update.
7663 * symfile.c (set_initial_language): Call main_language.
7664 * symtab.c (language_of_main): Now static.
7665 (set_main_name): Add 'lang' parameter.
7666 (find_main_name): Update.
7667 (main_language): New function.
7668 (symtab_observer_executable_changed): Update.
7669 * symtab.h (set_main_name): Update.
7670 (language_of_main): Remove.
7671 (main_language): Declare.
7673 2014-01-15 Tom Tromey <tromey@redhat.com>
7675 * symfile.c (init_entry_point_info): Use new "initialized" field.
7677 * objfiles.h (struct entry_point) <initialized>: New field.
7678 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7679 (struct objfile) <ei>: ...here. Remove.
7680 * objfiles.c (entry_point_address_query): Update.
7682 2014-01-15 Tom Tromey <tromey@redhat.com>
7684 * objfiles.c (entry_point_address_query): Relocate entry point
7686 (objfile_relocate1): Do not relocate entry point address.
7687 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7688 <the_bfd_section_index>: New field.
7689 * symfile.c (init_entry_point_info): Find the entry point's
7692 2014-01-15 Tom Tromey <tromey@redhat.com>
7694 * solib-frv.c (enable_break): Use entry_point_address_query.
7696 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7698 * NEWS: Add note on improved process record-replay on
7699 arm*-linux* targets.
7701 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7703 * arm-tdep.c (enum arm_record_result): New enum.
7704 (arm_record_unsupported_insn): New function.
7705 (arm_record_coproc_data_proc): Removed.
7706 (thumb2_record_ld_st_multiple): New function.
7707 (thumb2_record_ld_st_dual_ex_tbb): New function.
7708 (thumb2_record_data_proc_sreg_mimm): New function.
7709 (thumb2_record_ps_dest_generic): New function.
7710 (thumb2_record_branch_misc_cntrl): New function.
7711 (thumb2_record_str_single_data): New function.
7712 (thumb2_record_ld_mem_hints): New function.
7713 (thumb2_record_ld_word): New function.
7714 (thumb2_record_lmul_lmla_div): New function.
7715 (thumb2_record_decode_insn_handler): New function.
7716 (decode_insn): Add thumb32 instruction handlers.
7718 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7720 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7721 (struct arm_linux_record_tdep): Declare.
7722 (arm_canonicalize_syscall): New function.
7723 (arm_all_but_pc_registers_record): New function.
7724 (arm_linux_syscall_record): New function.
7725 (arm_linux_init_abi): Add syscall recording constructs.
7726 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7727 decoding. (arm_record_coproc_data_proc): Update arm syscall
7729 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7730 <arm_syscall_record>: New field.
7731 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7734 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7736 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7737 register for push instruction recording.
7739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7741 * arm-tdep.c (thumb_record_misc): Update to correct logical
7742 error while recording ldm, ldmia and pop instructions.
7744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7746 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7748 2014-01-15 Pedro Alves <palves@redhat.com>
7750 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7751 (go32_resume, go32_fetch_registers, store_register)
7752 (go32_store_registers, go32_prepare_to_store)
7753 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7754 (go32_create_inferior, go32_can_run, go32_terminal_init)
7755 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7758 2014-01-15 Tom Tromey <tromey@redhat.com>
7760 * target.h (async_callback_ftype): New typedef.
7761 (struct target_ops) <to_async>: Use it.
7763 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7765 * python/py-value.c (get_field_type): Remove unnecessary curly
7766 braces for single-statement if block.
7768 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7770 * python/py-type.c (convert_field): Add missing empty line
7773 2014-01-14 Doug Evans <dje@google.com>
7775 * symfile.h (expand_symtabs_matching): Renamed from
7776 expand_partial_symbol_names. Update prototype.
7777 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7778 * symfile.c (expand_symtabs_matching): Renamed from
7779 expand_partial_symbol_names. New args file_matcher, kind.
7780 Rename arg fun to symbol_matcher.
7781 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7782 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7783 ada_expand_partial_symbol_name.
7784 (ada_make_symbol_completion_list): Update to call
7785 expand_symtabs_matching.
7786 (ada_add_global_exceptions): Call expand_symtabs_matching.
7787 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7788 call map_symbol_filenames.
7789 * symtab.c (sources_info): Update to call map_symbol_filenames.
7790 (search_symbols): Call expand_symtabs_matching.
7791 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7792 (default_make_symbol_completion_list_break_on): Update to call
7793 expand_symtabs_matching.
7794 (make_source_files_completion_list): Update to call
7795 map_symbol_filenames.
7797 2014-01-14 Doug Evans <dje@google.com>
7799 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7800 (expand_symtabs_symbol_matcher_ftype): New typedef.
7801 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7802 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7803 * symfile.c (expand_partial_symbol_names): Update to use
7804 expand_symtabs_symbol_matcher_ftype.
7805 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7806 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7807 Arg name_matcher renamed to symbol_matcher.
7808 * psymtab.c (recursively_search_psymtabs): Update to use
7809 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7811 (expand_symtabs_matching_via_partial): Update to use
7812 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7813 Arg name_matcher renamed to symbol_matcher.
7815 2014-01-14 Doug Evans <dje@google.com>
7817 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7818 (map_partial_symbol_filenames): Ditto.
7819 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7820 (map_partial_symbol_filenames): Ditto.
7821 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7822 (map_partial_symbol_filenames): Ditto.
7823 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7824 (map_partial_symbol_filenames): Ditto.
7825 * symtab.c: Delete #include "psymtab.h".
7827 2014-01-14 Pedro Alves <palves@redhat.com>
7828 Tom Tromey <tromey@redhat.com>
7830 * infrun.c (use_displaced_stepping): Use find_record_target
7831 instead of RECORD_IS_USED.
7832 (adjust_pc_after_break): Use record_full_is_used instead of
7834 * record-btrace.c (record_btrace_open): Call record_preopen
7835 instead of checking RECORD_IS_USED.
7836 * record-full.c (record_full_shortname)
7837 (record_full_core_shortname): New globals.
7838 (record_full_is_used): New function.
7839 (find_full_open): Call record_preopen instead of checking
7841 (init_record_full_ops): Set the target's shortname to
7842 record_full_shortname.
7843 (init_record_full_core_ops): Set the target's shortname to
7844 record_full_core_shortname.
7845 * record-full.h (record_full_is_used): Declare.
7846 * record.c (find_record_target): Make extern.
7847 (record_preopen): New function.
7848 * record.h (RECORD_IS_USED): Delete macro.
7849 (find_record_target, record_preopen): Declare functions.
7851 2014-01-14 Yao Qi <yao@codesourcery.com>
7853 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7854 'len''s type to ULONGEST.
7855 (core_xfer_shared_libraries_aix): Likewise.
7856 * gdbarch.c, gdbarch.h: Regenerated.
7857 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7858 Change type of 'len' to ULONGEST.
7859 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7860 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7862 2014-01-14 Yao Qi <yao@codesourcery.com>
7864 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7865 type of 'len' to ULONGEST.
7866 (linux_xfer_osdata_processgroups): Likewise.
7867 (linux_xfer_osdata_threads): Likewise.
7868 (linux_xfer_osdata_fds): Likewise.
7869 (linux_xfer_osdata_isockets): Likewise.
7870 (linux_xfer_osdata_shm): Likewise.
7871 (linux_xfer_osdata_sem): Likewise.
7872 (linux_xfer_osdata_msg): Likewise.
7873 (linux_common_xfer_osdata): Likewise.
7874 (struct osdata_type) <getter>: Likewise.
7875 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7878 2014-01-14 Yao Qi <yao@codesourcery.com>
7880 * target.h (target_xfer_partial_ftype): Update.
7881 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7883 * aix-thread.c (aix_thread_xfer_partial): Change type of
7884 argument 'len' to ULONGEST.
7885 * auxv.c (procfs_xfer_auxv): Likewise.
7886 (ld_so_xfer_auxv): Likewise.
7887 (memory_xfer_auxv): Likewise.
7888 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7889 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7890 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7891 * corelow.c (core_xfer_partial): Likewise.
7892 * ctf.c (ctf_xfer_partial): Likewise.
7893 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7895 (darwin_read_dyld_info): Likewise.
7896 (darwin_xfer_partial): Likewise.
7897 * exec.c (section_table_xfer_memory_partial): Likewise.
7898 (exec_xfer_partial): Likewise.
7899 * exec.h (section_table_xfer_memory_partial): Update
7901 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7902 instead of plongest.
7903 (gnu_xfer_partial): Likewise.
7904 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7905 (ia64_hpux_xfer_solib_got): Likewise.
7906 (ia64_hpux_xfer_partial): Likewise.
7907 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7908 * inf-ptrace.c (inf_ptrace_xfer_partial):
7909 * inf-ttrace.c (inf_ttrace_xfer_partial):
7910 * linux-nat.c (linux_xfer_siginfo): Likewise.
7911 (linux_nat_xfer_partial): Likewise.
7912 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7913 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7914 * monitor.c (monitor_xfer_memory): Likewise.
7915 (monitor_xfer_partial): Likewise.
7916 * procfs.c (procfs_xfer_partial): Likewise.
7917 * record-full.c (record_full_xfer_partial): Likewise.
7918 (record_full_core_xfer_partial): Likewise.
7919 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7920 instead of plongest.
7921 (gdbsim_xfer_partial): Likewise.
7922 * remote.c (remote_xfer_partial): Likewise.
7923 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7924 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7926 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7927 (rs6000_xfer_shared_libraries): Likewise.
7928 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7929 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7930 (sparc_xfer_partial): Likewise.
7931 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7932 (spu_xfer_partial): Likewise.
7933 * spu-multiarch.c (spu_xfer_partial): Likewise.
7934 * target.c (target_read_live_memory): Likewise.
7935 (memory_xfer_live_readonly_partial): Likewise.
7936 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7937 (target_xfer_partial, default_xfer_partial): Likewise.
7938 (current_xfer_partial): Likewise.
7939 * tracepoint.c (tfile_xfer_partial): Likewise.
7940 * windows-nat.c (windows_xfer_memory): Likewise. Call
7941 pulongest instead of plongest.
7942 (windows_xfer_partial): Likewise.
7943 (windows_xfer_shared_libraries): Likewise.
7945 2014-01-14 Yao Qi <yao@codesourcery.com>
7947 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7948 target_xfer_partial_ftype.
7950 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7954 * valops.c (value_struct_elt_bitpos): New function
7955 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7956 object to 'None' if the field name is an empty string ("").
7957 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7958 attribute to look for a field when 'name' is 'None'.
7959 (get_field_type): New function
7961 2014-01-13 Doug Evans <dje@google.com>
7964 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7965 (try_open_dwop_file): Ditto.
7966 * gdb_bfd.c: #include "vec.h".
7967 (bfdp): New typedef.
7968 (struct gdb_bfd_data): New member included_bfds.
7969 (gdb_bfd_unref): Unref all included bfds.
7970 (gdb_bfd_record_inclusion): New function.
7971 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7973 2014-01-13 Tom Tromey <tromey@redhat.com>
7975 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7977 2014-01-13 Tom Tromey <tromey@redhat.com>
7979 * defs.h (use_windows): Remove.
7980 * gdb.c (main): Update.
7981 * main.c (captured_main, gdb_main): Update.
7982 * main.h (struct captured_main_args) <use_windows>: Remove.
7983 * top.c (use_windows): Remove.
7985 2014-01-13 Tom Tromey <tromey@redhat.com>
7987 * defs.h (deprecated_flush_hook): Remove.
7989 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7992 * linux-thread-db.c (try_thread_db_load): Add parameter
7993 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7994 (try_thread_db_load_from_pdir_1): Move it there from here.
7995 (try_thread_db_load_from_sdir): Update caller.
7996 (try_thread_db_load_from_dir): Move it there from here.
7998 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8000 * regformats/regdat.sh: Always rewrite the register file.
8002 2014-01-13 Pedro Alves <palves@redhat.com>
8004 * Makefile.in (CHECK_HEADERS): New variable.
8005 (check-headers:): New rule.
8007 2014-01-13 Tom Tromey <tromey@redhat.com>
8009 * cli/cli-setshow.c (do_set_command): Update.
8010 * defs.h (deprecated_set_hook): Remove.
8011 * top.c (deprecated_set_hook): Remove.
8013 2014-01-13 Pedro Alves <palves@redhat.com>
8015 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8016 the tracepoint if the PC is a pseudo-register.
8018 2014-01-13 Tom Tromey <tromey@redhat.com>
8020 * defs.h (XCALLOC): Remove.
8021 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8022 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8023 * dwarf2loc.c (allocate_piece_closure): Likewise.
8024 * elfread.c (elf_symfile_segments): Likewise.
8025 (elf_symfile_segments): Likewise.
8026 * gdbtypes.c (copy_type_recursive): Likewise.
8027 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8028 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8029 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8031 * mt-tdep.c (mt_gdbarch_init): Likewise.
8032 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8034 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8035 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8036 * registry.c (registry_alloc_data): Likewise.
8037 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8038 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8039 * serial.c (serial_fdopen_ops): Likewise.
8040 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8042 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8043 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8046 2014-01-13 Tom Tromey <tromey@redhat.com>
8048 * defs.h (XMALLOC): Remove.
8049 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8050 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8051 * cli-out.c (struct ui_out *): Likewise.
8052 * cli/cli-dump.c (add_dump_command): Likewise.
8053 (add_dump_command): Likewise.
8054 * complaints.c (get_complaints): Likewise.
8055 (find_complaint): Likewise.
8056 * dwarf2-frame.c (execute_cfa_program): Likewise.
8057 * dwarf2read.c (abbrev_table_read_table): Likewise.
8058 * gdbarch.sh: Likewise.
8059 * gdbarch.c: Rebuild.
8060 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8061 * interps.c (interp_new): Likewise.
8062 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8063 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8064 * mi/mi-console.c (mi_console_file_new): Likewise.
8065 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8066 * mi/mi-out.c (mi_out_new): Likewise.
8067 * mi/mi-parse.c (mi_parse): Likewise.
8068 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8069 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8070 * observer.c (xalloc_observer_list_node): Likewise.
8071 * regcache.c (regcache_xmalloc_1): Likewise.
8072 * reggroups.c (reggroup_new): Likewise.
8073 (_initialize_reggroup): Likewise.
8074 * registry.c (register_data_with_cleanup): Likewise.
8075 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8076 * ser-base.c (serial_ttystate): Likewise.
8077 * ser-mingw.c (make_pipe_state): Likewise.
8078 * ser-pipe.c (pipe_open): Likewise.
8079 * serial.c (serial_open): Likewise.
8080 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8081 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8082 (tui_alloc_win_info): Likewise.
8083 (tui_add_content_elements): Likewise.
8084 * tui/tui-file.c (tui_file_new): Likewise.
8085 * tui/tui-out.c (tui_out_new): Likewise.
8086 * ui-file.c (mem_file_new): Likewise.
8087 * ui-out.c (push_level): Likewise.
8088 (make_cleanup_ui_out_end): Likewise.
8089 (append_header_to_list): Likewise.
8090 (ui_out_new): Likewise.
8091 * user-regs.c (user_reg_add_builtin): Likewise.
8093 2014-01-13 Tom Tromey <tromey@redhat.com>
8095 * defs.h (XZALLOC): Remove.
8096 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8097 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8098 (get_ada_tasks_inferior_data): Likewise.
8099 * auto-load.c (get_auto_load_pspace_data): Likewise.
8100 * auxv.c (get_auxv_inferior_data): Likewise.
8101 * bfd-target.c (target_bfd_reopen): Likewise.
8102 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8103 (deprecated_insert_raw_breakpoint): Likewise.
8104 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8105 * corelow.c (core_open): Likewise.
8106 * darwin-nat.c (darwin_check_new_threads): Likewise.
8107 (darwin_attach_pid): Likewise.
8108 * dummy-frame.c (dummy_frame_push): Likewise.
8109 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8110 * dwarf2loc.c (allocate_piece_closure): Likewise.
8111 * elfread.c (elf_symfile_segments): Likewise.
8112 * eval.c (ptrmath_type_p): Likewise.
8113 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8114 * gdbtypes.c (alloc_type_arch): Likewise.
8115 (alloc_type_instance): Likewise.
8116 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8117 * inf-child.c (inf_child_can_use_agent): Likewise.
8118 * inflow.c (get_inflow_inferior_data): Likewise.
8119 * infrun.c (save_infcall_suspend_state): Likewise.
8120 * jit.c (jit_reader_load): Likewise.
8121 (get_jit_objfile_data): Likewise.
8122 (get_jit_program_space_data): Likewise.
8123 (jit_object_open_impl): Likewise.
8124 (jit_symtab_open_impl): Likewise.
8125 (jit_block_open_impl): Likewise.
8126 (jit_frame_sniffer): Likewise.
8127 * linux-fork.c (add_fork): Likewise.
8128 * maint.c (make_command_stats_cleanup): Likewise.
8129 * objfiles.c (get_objfile_pspace_data): Likewise.
8130 * opencl-lang.c (struct lval_closure): Likewise.
8131 * osdata.c (osdata_start_osdata): Likewise.
8132 * progspace.c (new_address_space): Likewise.
8133 (add_program_space): Likewise.
8134 * remote-sim.c (get_sim_inferior_data): Likewise.
8135 * sh-tdep.c (sh_gdbarch_init): Likewise.
8136 * skip.c (Ignore): Likewise.
8137 (skip_delete_command): Likewise.
8138 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8139 (library_list_start_library): Likewise.
8140 (solib_aix_current_sos): Likewise.
8141 * solib-darwin.c (get_darwin_info): Likewise.
8142 (darwin_current_sos): Likewise.
8143 * solib-dsbt.c (get_dsbt_info): Likewise.
8144 * solib-ia64-hpux.c (new_so_list): Likewise.
8145 (ia64_hpux_get_solib_linkage_addr): Likewise.
8146 * solib-spu.c (append_ocl_sos): Likewise.
8147 (spu_current_sos): Likewise.
8148 * solib-svr4.c (get_svr4_info): Likewise.
8149 (svr4_keep_data_in_core): Likewise.
8150 (library_list_start_library): Likewise.
8151 (svr4_default_sos): Likewise.
8152 (svr4_read_so_list): Likewise.
8153 * solib-target.c (library_list_start_library): Likewise.
8154 (solib_target_current_sos): Likewise.
8155 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8156 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8157 * symfile.c (default_symfile_segments): Likewise.
8158 * target-descriptions.c (tdesc_data_init): Likewise.
8159 (tdesc_create_reg): Likewise.
8160 (struct tdesc_type *): Likewise.
8161 (tdesc_create_vector): Likewise.
8162 (tdesc_set_struct_size): Likewise.
8163 (struct tdesc_type *): Likewise.
8164 (tdesc_free_feature): Likewise.
8165 (tdesc_create_feature): Likewise.
8166 * windows-nat.c (windows_add_thread): Likewise.
8167 (windows_make_so): Likewise.
8168 * xml-support.c (gdb_xml_body_text): Likewise.
8169 (gdb_xml_create_parser_and_cleanup): Likewise.
8170 (xml_process_xincludes): Likewise.
8171 * xml-syscall.c (allocate_syscalls_info): Likewise.
8172 (syscall_create_syscall_desc): Likewise.
8174 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8176 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8177 function, with code from i386_stap_parse_special_token.
8178 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8179 (i386_stap_parse_special_token): Move code to the two functions
8182 2014-01-09 Pedro Alves <palves@redhat.com>
8183 Hui Zhu <hui@codesourcery.com>
8186 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8187 bp_err_string. Don't mark the location shlib_disabled if the
8188 error thrown wasn't a generic or memory error. Catch errors
8189 thrown while inserting breakpoints in overlayed code. Output
8190 error message of software breakpoints.
8191 * remote.c (remote_insert_breakpoint): If this breakpoint has
8192 target-side commands but this stub doesn't support Z0 packets,
8193 throw NOT_SUPPORTED_ERROR error.
8194 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8195 * target.h (target_insert_breakpoint): Extend comment.
8196 (target_insert_hw_breakpoint): Add comment.
8198 2014-01-08 Pedro Alves <palves@redhat.com>
8200 * remote.c (remote_add_thread): Add threads silently if starting
8202 (remote_notice_new_inferior): If in all-stop, and starting up,
8203 don't call notice_new_inferior.
8204 (get_current_thread): New function, factored out from ...
8205 (add_current_inferior_and_thread): ... this. Adjust.
8206 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8207 found any thread, then select the remote's current thread as GDB's
8210 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8212 * NEWS: Create a new section for the next release branch.
8213 Rename the section of the current branch, now that it has
8216 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8218 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8219 * version.in: Bump version to 7.7.50.DATE-cvs.
8221 2014-01-08 Yao Qi <yao@codesourcery.com>
8223 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8224 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8225 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8227 2014-01-08 Yao Qi <yao@codesourcery.com>
8229 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8230 return value of bfd_get_filename to symbol_file_add_from_bfd.
8232 2014-01-08 Pierre Muller <muller@sourceware.org>
8235 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8236 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8237 to prim_record_mininal_symbol_and_info.
8238 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8239 in call to prim_record_minimal_symbol_and_info.
8240 (read_pe_exported_syms): Set index field of section_data.
8242 2014-01-07 Andrew Pinski <apinski@cavium.com>
8244 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8245 * features/aarch64.c: Regenerate.
8247 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8249 * target.c (return_null): Define.
8250 (update_current_target): Use it instead of return_zero for
8251 functions that return a pointer.
8253 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8255 * source.c (add_path): Fix check for duplicated paths in the previously
8258 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8260 * ada-lang.c: Remove duplicated include statements.
8261 * alphabsd-nat.c: Ditto.
8262 * amd64-darwin-tdep.c: Ditto.
8263 * amd64fbsd-nat.c: Ditto.
8264 * auto-load.c: Ditto.
8266 * breakpoint.c: Ditto.
8268 * fork-child.c: Ditto.
8269 * gdb_usleep.c: Ditto.
8270 * i386-darwin-tdep.c: Ditto.
8271 * i386fbsd-nat.c: Ditto.
8273 * inferior.c: Ditto.
8275 * linux-nat.c: Ditto.
8276 * linux-tdep.c: Ditto.
8277 * m68kbsd-nat.c: Ditto.
8278 * m68klinux-nat.c: Ditto.
8279 * microblaze-tdep.c: Ditto.
8280 * mips-linux-tdep.c: Ditto.
8281 * mn10300-tdep.c: Ditto.
8282 * nto-tdep.c: Ditto.
8283 * opencl-lang.c: Ditto.
8285 * printcmd.c: Ditto.
8286 * regcache.c: Ditto.
8287 * remote-m32r-sdi.c: Ditto.
8291 * tilegx-linux-nat.c: Ditto.
8292 * tilegx-tdep.c: Ditto.
8293 * tracepoint.c: Ditto.
8295 * vaxbsd-nat.c: Ditto.
8296 * windows-nat.c: Ditto.
8297 * xtensa-tdep.c: Ditto.
8299 2014-01-07 Yao Qi <yao@codesourcery.com>
8301 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8303 2014-01-07 Yao Qi <yao@codesourcery.com>
8304 Joel Brobecker <brobecker@adacore.com>
8306 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8307 (pdc_write_regs): Likewise.
8308 (fetch_regs_kernel_thread): Likewise.
8309 (store_regs_kernel_thread): Likewise.
8311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8313 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8314 tagged type objects to their actual type.
8316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8318 * ada-valprint.c (print_field_values): Add "language" parameter.
8319 Update calls to print_field_values and print_variant_part.
8320 Pass new parameter "language" in call to val_print instead
8321 of "current_language". Replace call to ada_val_print by call
8323 (print_variant_part): Add "language" parameter.
8324 (ada_val_print_struct_union): Update call to print_field_values.
8326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8328 * ada-valprint.c (ui_memcpy): Delete.
8329 (ada_print_floating): Update documentation. Add empty line
8330 between between function documentation and implementation.
8331 Delete variable "buffer". Use ui_file_xstrdup in place of
8332 ui_file_put. Minor adjustments following this change.
8334 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8336 * ada-valprint.c (ada_val_print_string): New function,
8337 extracted from ada_val_print_array.
8338 (ada_val_print_array): Replace extracted code by call
8339 to ada_val_print_string followed by a return. Move
8340 "else" branch to the function's top block.
8342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8344 * ada-valprint.c (ada_val_print_array): Move implementation
8345 down. Rename parameter "offset" and "val" into "offset_aligned"
8346 and "original_value" respectively. Add parameter "offset".
8348 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8350 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8351 re-organizing the code. Change the "???" message printed
8352 when target type is a TYPE_CODE_UNDEF into
8353 "<ref to undefined type>".
8355 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8357 * ada-valprint.c (print_record): Delete, implementation inlined...
8358 (ada_val_print_struct_union): ... here. Remove call to
8359 ada_check_typedef in inlined implementation.
8361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8363 * ada-valprint.c (ada_val_print_gnat_array): New function,
8364 extracted from ada_val_print_1;
8365 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8366 (ada_val_print_flt, ada_val_print_struct_union)
8367 (ada_val_print_ref): Likewise.
8368 (ada_val_print_1): Delete variables i and elttype.
8369 Replace extracted-out code by call to corresponding
8372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8374 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8378 * ada-valprint.c (ada_val_print_1): Replace calls to
8379 ada_val_print_1 by calls to val_print.
8381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8383 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8384 Update calls to self accordingly. Replace calls to c_val_print
8385 by calls to val_print.
8387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8389 * ada-valprint.c (print_record): Delete declaration.
8390 (adjust_type_signedness, ada_val_print_1): Likewise.
8391 (ada_val_print): Move function implementation down.
8392 (print_variant_part, print_field_values, print_record):
8393 Move function implementation up.
8395 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8397 * python/py-type.c (typy_get_name): New function.
8398 (type_object_getset): Add entry for attribute "name".
8399 * NEWS: Add entry mentioning this new attribute.
8401 2014-01-07 Yao Qi <yao@codesourcery.com>
8403 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8406 2014-01-07 Yao Qi <yao@codesourcery.com>
8408 * gnu-nat.c (info_port_rights): Add qualifier const to
8411 2014-01-07 Yao Qi <yao@codesourcery.com>
8413 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8415 2014-01-07 Yao Qi <yao@codesourcery.com>
8417 * gnu-nat.c (make_inf) Update declaration.
8418 (make_inf): Make it static.
8419 (inf_set_traced): Likewise.
8420 (inf_port_to_thread, inf_task_died_status): Likewise.
8422 2014-01-07 Yao Qi <yao@codesourcery.com>
8424 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8426 2014-01-07 Yao Qi <yao@codesourcery.com>
8428 * gnu-nat.c (_initialize_gnu_nat): Declare.
8430 2014-01-07 Yao Qi <yao@codesourcery.com>
8432 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8434 (struct gdbarch_info) <byte_order>: Change type to
8436 <byte_order_for_code>: Likewise.
8437 * gdbarch.c, gdbarch.h: Regenerated.
8439 2014-01-06 Sasha Smundak <asmundak@google.com>
8441 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8443 2014-01-06 Tom Tromey <tromey@redhat.com>
8445 * doublest.c (convert_doublest_to_floatformat): Use const, not
8447 * somread.c (som_symtab_read): Likewise.
8449 2014-01-07 Hui Zhu <hui@codesourcery.com>
8451 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8452 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8453 (gdb_bfd_fopen): Ditto.
8454 (gdb_bfd_openr): Ditto.
8455 (gdb_bfd_openw): Ditto.
8456 (gdb_bfd_openr_iovec): Ditto.
8457 (gdb_bfd_fdopenr): Ditto.
8458 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8459 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8461 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8463 * symfile-mem.c (symbol_file_add_from_memory): Removed
8464 gdb_bfd_stash_filename.
8466 2014-01-03 Doug Evans <dje@google.com>
8468 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8471 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8473 Update year range in copyright notice of all files.
8475 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8477 * top.c (print_gdb_version): Set copyright year to 2014.
8479 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8481 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8483 For older changes see ChangeLog-2013.
8489 version-control: never