1 2014-05-29 Pedro Alves <palves@redhat.com>
3 * infrun.c (process_event_stop_test, handle_step_into_function)
4 (handle_step_into_function_backward): Adjust.
5 Don't set the even thread's stop_step and call stop_waiting before
6 calling end_stepping_range. Instead do that ...
7 (end_stepping_range): ... here. Take an ecs pointer parameter.
9 2014-05-29 Pedro Alves <palves@redhat.com>
11 * infrun.c (stop_stepping): Rename to ...
12 (stop_waiting): ... this.
13 (proceed): Update comment.
14 (process_event_stop_test, handle_inferior_event)
15 (handle_signal_stop, handle_step_into_function)
16 (handle_step_into_function_backward): Update.
18 2014-05-29 Pedro Alves <palves@redhat.com>
20 * infcall.c (run_inferior_call): Don't check whether the current
21 thread is running after the proceed call.
23 2014-05-29 Pedro Alves <palves@redhat.com>
24 Tom Tromey <tromey@redhat.com>
26 * NEWS: Mention "maint set target-async", "set mi-async", and that
27 background execution commands are now always available.
28 * target.h (target_async_permitted): Update comment.
29 * target.c (target_async_permitted, target_async_permitted_1):
31 (set_target_async_command): Rename to ...
32 (maint_set_target_async_command): ... this.
33 (show_target_async_command): Rename to ...
34 (maint_show_target_async_command): ... this.
35 (_initialize_target): Adjust.
36 * infcmd.c (prepare_execution_command): Make extern.
37 * inferior.h (prepare_execution_command): Declare.
38 * infrun.c (set_observer_mode): Leave target async alone.
39 * mi/mi-interp.c (mi_interpreter_init): Install
40 mi_on_sync_execution_done as sync_execution_done observer.
41 (mi_on_sync_execution_done): New function.
42 (mi_execute_command_input_handler): Don't print the prompt if we
43 just started a synchronous command with an async target.
44 (mi_on_resume): Check sync_execution before printing prompt.
45 * mi/mi-main.h (mi_async_p): Declare.
46 * mi/mi-main.c: Include gdbcmd.h.
47 (mi_async_p): New function.
48 (mi_async, mi_async_1): New globals.
49 (set_mi_async_command, show_mi_async_command, mi_async): New
51 (exec_continue): Call prepare_execution_command.
52 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
53 (mi_execute_async_cli_command): Use mi_async_p.
54 (_initialize_mi_main): Install "set mi-async". Make
55 "target-async" a deprecated alias.
57 2014-05-29 Pedro Alves <palves@redhat.com>
59 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
60 (_initialize_cli_interp): Adjust.
61 * event-loop.c: Include "observer.h".
62 (start_event_loop): Notify 'command_error' observers instead of
63 calling display_gdb_prompt. Remove FIXME comment.
64 * event-top.c (display_gdb_prompt): Remove call into the
66 * inf-loop.c: Include "observer.h".
67 (inferior_event_handler): Notify 'command_error' observers instead
68 of calling display_gdb_prompt.
69 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
70 observers instead of calling display_gdb_prompt.
71 * interps.c (interp_set): Don't call display_gdb_prompt.
72 (current_interp_display_prompt_p): Delete.
73 * interps.h (interp_prompt_p): Delete declaration.
74 (interp_prompt_p_ftype): Delete.
75 (struct interp_procs) <prompt_proc_p>: Delete field.
76 (current_interp_display_prompt_p): Delete declaration.
77 * mi-interp.c (mi_interpreter_prompt_p): Delete.
78 (_initialize_mi_interp): Adjust.
79 * tui-interp.c (tui_init): Install 'sync_execution_done' and
80 'command_error' observers.
81 (tui_on_sync_execution_done, tui_on_command_error): New
83 (tui_display_prompt_p): Delete.
84 (_initialize_tui_interp): Adjust.
86 2014-05-29 Pedro Alves <palves@redhat.com>
89 * cli/cli-interp.c: Include infrun.h and observer.h.
90 (cli_uiout, cli_interp): New globals.
91 (cli_on_signal_received, cli_on_end_stepping_range)
92 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
94 (cli_interpreter_init): Install them as 'end_stepping_range',
95 'signal_received' 'signal_exited', 'exited' and 'no_history'
97 (_initialize_cli_interp): Remove cli_interp local.
98 * infrun.c (handle_inferior_event): Call the several stop reason
99 observers instead of printing the stop reason directly.
100 (end_stepping_range): New function.
101 (print_end_stepping_range_reason, print_signal_exited_reason)
102 (print_exited_reason, print_signal_received_reason)
103 (print_no_history_reason): Make static, and add an uiout
104 parameter. Print to that instead of to CURRENT_UIOUT.
105 * infrun.h (print_end_stepping_range_reason)
106 (print_signal_exited_reason, print_exited_reason)
107 (print_signal_received_reason print_no_history_reason): New
109 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
111 <cli_uiout>: New field.
112 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
113 uiout for CLI output. Install 'signal_received',
114 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
116 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
117 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
118 (mi_on_no_history): New functions.
119 (ui_out_free_cleanup): Delete function.
120 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
121 instead use the one already stored in the MI interpreter data.
123 * tui/tui-interp.c: Include infrun.h and observer.h.
124 (tui_interp): New global.
125 (tui_on_signal_received, tui_on_end_stepping_range)
126 (tui_on_signal_exited, tui_on_exited)
127 (tui_on_no_history): New functions.
128 (tui_init): Install them as 'end_stepping_range',
129 'signal_received' 'signal_exited', 'exited' and 'no_history'
131 (_initialize_tui_interp): Delete tui_interp local.
133 2014-05-29 Pedro Alves <palves@redhat.com>
136 * linux-nat.c (linux_nat_resume_callback): Rename the second
137 parameter to 'except'. Skip LP if it points to EXCEPT.
138 (linux_nat_resume): Don't mark the event lwp as not stopped
139 before resuming sibling lwps. Instead ask
140 linux_nat_resume_callback to skip the event lwp. Mark it as not
141 stopped after actually resuming it.
142 (linux_handle_syscall_trap): Mark the lwp as not stopped after
144 (wait_lwp): Mark the lwp as stopped here.
145 (stop_wait_callback): Mark the lwp as not stopped right after
146 resuming it. Don't mark lwps as stopped here.
147 (linux_nat_filter_event): Mark the lwp as stopped earlier.
148 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
150 2014-05-29 Pedro Alves <palves@redhat.com>
153 * infrun.c (resume): Determine how much to resume depending on
154 whether the caller wanted a step, not whether we can hardware step
155 the target. Mark all threads that we intend to run as running,
156 unless we're calling an inferior function.
157 (normal_stop): If the thread is running an infcall, don't finish
159 * target.c (target_resume): Don't mark threads as running here.
161 2014-05-28 Joel Brobecker <brobecker@adacore.com>
163 * serial.c (_initialize_serial): Remove support for
164 the "set remotebaud" and "show remotebaud" commands.
165 * NEWS: Add entry documenting the removal of that command.
167 2014-05-28 Yao Qi <yao@codesourcery.com>
169 * charset.c: Fix typo in comments.
171 2014-05-27 Gary Benson <gbenson@redhat.com>
173 * utils.c (internal_vproblem): Prompt for a bug report.
175 2014-05-26 Andy Wingo <wingo@igalia.com>
177 * guile/scm-arch.c (arscm_mark_arch_smob):
178 * guile/scm-block.c (bkscm_mark_block_smob)
179 (bkscm_mark_block_syms_progress_smob):
180 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
181 * guile/scm-exception.c (exscm_mark_exception_smob):
182 * guile/scm-frame.c (frscm_mark_frame_smob):
183 * guile/scm-iterator.c (itscm_mark_iterator_smob):
184 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
185 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
186 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
187 (ppscm_mark_pretty_printer_worker_smob):
188 * guile/scm-symbol.c (syscm_mark_symbol_smob):
189 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
190 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
191 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
193 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
196 2014-05-26 Andy Wingo <wingo@igalia.com>
197 Doug Evans <xdje42@gmail.com>
199 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
200 empty_base_class. All uses updated.
201 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
202 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
204 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
205 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
206 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
207 (gdbscm_gsmob_has_property_p, add_property_name)
208 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
209 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
210 (gdb-object-has-property?, gdb-object-properties): Remove.
211 (gdb-object-kind): Renamed from gsmob-kind.
213 2014-05-26 Andy Wingo <wingo@igalia.com>
215 * configure.ac (try_guile_versions): Allow building with guile 2.2.
216 * configure: Regenerate.
218 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
220 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
222 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
224 * record-btrace.c (record_btrace_allow_memory_access): Remove.
225 (replay_memory_access_read_only, replay_memory_access_read_write)
226 (replay_memory_access_types, replay_memory_access)
227 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
228 (cmd_set_record_btrace, cmd_show_record_btrace)
229 (cmd_show_replay_memory_access): New.
230 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
231 (record_btrace_remove_breakpoint): Replace
232 record_btrace_allow_memory_access with replay_memory_access.
233 (_initialize_record_btrace): Add commands.
236 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
238 * aarch64-linux-nat.c (asm/ptrace.h): Include.
240 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
242 * MAINTAINERS (Write After Approval): Move self back from
245 2014-05-22 Pedro Alves <palves@redhat.com>
247 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
248 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
249 (disable_randomization, enum exec_direction_kind)
250 (execution_direction, stop_registers, start_remote)
251 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
252 (wait_for_inferior, normal_stop, get_last_target_status)
253 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
254 (insert_step_resume_breakpoint_at_sal)
255 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
256 (set_step_info, print_stop_event, signal_stop_state)
257 (signal_print_state, signal_pass_state, signal_stop_update)
258 (signal_print_update, signal_pass_update)
259 (update_signals_program_target, clear_exit_convenience_vars)
260 (displaced_step_dump_bytes, update_observer_mode)
261 (signal_catch_update, gdb_signal_from_command): Move
263 * infrun.h: ... to this new file.
264 * amd64-tdep.c: Include infrun.h.
265 * annotate.c: Include infrun.h.
266 * arch-utils.c: Include infrun.h.
267 * arm-linux-tdep.c: Include infrun.h.
268 * arm-tdep.c: Include infrun.h.
269 * break-catch-sig.c: Include infrun.h.
270 * breakpoint.c: Include infrun.h.
271 * common/agent.c: Include infrun.h instead of inferior.h.
272 * corelow.c: Include infrun.h.
273 * event-top.c: Include infrun.h.
274 * go32-nat.c: Include infrun.h.
275 * i386-tdep.c: Include infrun.h.
276 * inf-loop.c: Include infrun.h.
277 * infcall.c: Include infrun.h.
278 * infcmd.c: Include infrun.h.
279 * infrun.c: Include infrun.h.
280 * linux-fork.c: Include infrun.h.
281 * linux-nat.c: Include infrun.h.
282 * linux-thread-db.c: Include infrun.h.
283 * monitor.c: Include infrun.h.
284 * nto-tdep.c: Include infrun.h.
285 * procfs.c: Include infrun.h.
286 * record-btrace.c: Include infrun.h.
287 * record-full.c: Include infrun.h.
288 * remote-m32r-sdi.c: Include infrun.h.
289 * remote-mips.c: Include infrun.h.
290 * remote-notif.c: Include infrun.h.
291 * remote-sim.c: Include infrun.h.
292 * remote.c: Include infrun.h.
293 * reverse.c: Include infrun.h.
294 * rs6000-tdep.c: Include infrun.h.
295 * s390-linux-tdep.c: Include infrun.h.
296 * solib-irix.c: Include infrun.h.
297 * solib-osf.c: Include infrun.h.
298 * solib-svr4.c: Include infrun.h.
299 * target.c: Include infrun.h.
300 * top.c: Include infrun.h.
301 * windows-nat.c: Include infrun.h.
302 * mi/mi-interp.c: Include infrun.h.
303 * mi/mi-main.c: Include infrun.h.
304 * python/py-threadevent.c: Include infrun.h.
306 2014-05-22 Pedro Alves <palves@redhat.com>
308 * infrun.c (handle_inferior_event): Store the exit code for
309 --return-child-result here, instead of ...
310 (print_exited_reason): ... here.
312 2014-05-21 Pedro Alves <palves@redhat.com>
315 * gdbthread.h (struct thread_control_state): New field
317 * infrun.c (follow_fork): Copy the new thread control field to the
319 (clear_proceed_status_thread): Clear the new thread control field.
320 (proceed): Set the new thread control field.
321 * interps.h (command_interp): Declare.
322 * interps.c (command_interpreter): New global.
323 (command_interp): New function.
324 (interp_exec): Set `command_interpreter' while here.
325 * cli-out.c (cli_uiout_dtor): New function.
326 (cli_ui_out_impl): Install it.
327 * mi/mi-interp.c: Include cli-out.h.
328 (mi_cmd_interpreter_exec): Add comment.
329 (restore_current_uiout_cleanup): New function.
330 (ui_out_free_cleanup): New function.
331 (mi_on_normal_stop): If finishing an execution command started by
332 a CLI command, or any kind of breakpoint-like event triggered,
333 print the stop event to the output (CLI) stream.
334 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
336 2014-05-21 Pedro Alves <palves@redhat.com>
338 * cli/cli-cmds.c (list_command): Handle the first "list" after the
339 current source line having changed.
340 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
341 * infrun.c (normal_stop): Adjust call to
342 set_current_sal_from_frame.
343 * source.c (clear_lines_listed_range): New function.
344 (set_current_source_symtab_and_line, identify_source_line): Clear
345 the lines listed range.
346 (line_info): Handle the first "info line" after the current source
348 * stack.c (print_stack_frame): Remove center handling.
349 (set_current_sal_from_frame): Remove 'center' parameter. Don't
352 2014-05-21 Pedro Alves <palves@redhat.com>
354 * inf-child.c (inf_child_mourn_inferior): New function.
355 * inf-child.h (inf_child_mourn_inferior): New declaration.
356 * darwin-nat.c (darwin_mourn_inferior): Use
357 inf_child_mourn_inferior.
358 * gnu-nat.c (gnu_mourn_inferior): Likewise.
359 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
360 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
361 * nto-procfs.c (procfs_mourn_inferior): Likewise.
362 * windows-nat.c (windows_mourn_inferior): Likewise.
364 2014-05-21 Doug Evans <xdje42@gmail.com>
366 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
368 2014-05-21 Doug Evans <xdje42@gmail.com>
370 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
371 (gdbscm_out_of_range_error): Ditto.
372 (gdbscm_memory_error): Ditto.
373 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
374 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
375 (gdbscm_out_of_range_error): Update.
376 (gdbscm_memory_error): Update.
377 (gdbscm_scm_to_target_string_unsafe): Delete.
379 2014-05-21 Pedro Alves <palves@redhat.com>
381 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
383 (inf_child_open_target): New function.
384 (inf_child_open): Use inf_child_open_target to push the target
385 instead of erroring out.
386 (inf_child_disconnect, inf_child_close)
387 (inf_child_maybe_unpush_target): New functions.
388 (inf_child_target): Install inf_child_disconnect and
389 inf_child_close. Store a pointer to the returned object.
390 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
392 * target.c (auto_connect_native_target): New global.
393 (show_default_run_target): New function.
394 (find_default_run_target): Return NULL if automatically connecting
395 to the native target is disabled.
396 (_initialize_target): Install set/show auto-connect-native-target.
397 * NEWS: Mention "set auto-connect-native-target", and "target
399 * linux-nat.c (super_close): New global.
400 (linux_nat_close): Call super_close.
401 (linux_nat_add_target): Store a pointer to the base class's
403 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
404 inf_child_maybe_unpush.
405 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
407 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
408 the inferior. Use inf_child_maybe_unpush_target.
409 (inf_ttrace_attach): Don't push the target if it is already
411 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
412 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
413 after mourning the inferior. Use inf_child_maybe_unpush_target.
414 (darwin_attach_pid): Don't push the target if it is already
416 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
417 mourning the inferior. Use inf_child_maybe_unpush_target.
418 (gnu_detach): Use inf_child_maybe_unpush_target.
419 * go32-nat.c (go32_create_inferior): Don't push the target if it
421 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
422 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
423 (procfs_open): Rename to ...
424 (procfs_open_1): ... this. Add target_ops parameter. Adjust
425 comments. Can target_preopen before changing node. Call
426 inf_child_open_target to push the target explicitly.
427 (procfs_attach): Don't push the target if it is already pushed.
428 (procfs_detach): Use inf_child_maybe_unpush_target.
429 (procfs_create_inferior): Don't push the target if it is already
431 (nto_native_ops): New global.
432 (procfs_open): Reimplement.
433 (procfs_native_open): New function.
434 (init_procfs_targets): Install procfs_native_open as to_open of
435 "target native". Store a pointer to the "native" target in
437 * procfs.c (procfs_attach): Don't push the target if it is already
439 (procfs_detach): Use inf_child_maybe_unpush_target.
440 (procfs_mourn_inferior): Only unpush the target after mourning the
441 inferior. Use inf_child_maybe_unpush_target.
442 (procfs_init_inferior): Don't push the target if it is already
444 * windows-nat.c (do_initial_windows_stuff): Don't push the target
445 if it is already pushed.
447 2014-05-21 Pedro Alves <palves@redhat.com>
449 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
450 and "procfs" targets are now called "native" instead.
452 2014-05-21 Pedro Alves <palves@redhat.com>
454 * go32-nat.c (go32_open): Delete.
455 (go32_target): Don't override the to_open method.
457 2014-05-21 Pedro Alves <palves@redhat.com>
459 * nto-procfs.c (procfs_can_run): New function.
460 (nto_procfs_ops): New global.
461 (init_procfs_targets): New, based on procfs_target. Install
462 "target native" in addition to "target procfs".
463 (_initialize_procfs): Call init_procfs_targets instead of adding
466 2014-05-21 Pedro Alves <palves@redhat.com>
468 * windows-nat.c (windows_target): Don't override to_shortname,
469 to_longname or to_doc.
471 2014-05-21 Pedro Alves <palves@redhat.com>
473 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
476 2014-05-21 Pedro Alves <palves@redhat.com>
478 * darwin-nat.c (_initialize_darwin_inferior): Don't override
479 to_shortname, to_longname or to_doc.
481 2014-05-21 Pedro Alves <palves@redhat.com>
483 * go32-nat.c (go32_target): Don't override to_shortname,
484 to_longname or to_doc.
486 2014-05-21 Pedro Alves <palves@redhat.com>
488 * inf-child.c (inf_child_open): Remove mention of "child".
489 (inf_child_target): Rename target to "native" instead of "child".
491 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
493 * Makefile.in (SFILES): Delete "regset.c".
494 (COMMON_OBS): Delete "regset.o".
496 * regset.h (regset_alloc): Delete prototype.
498 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
500 * sparc-linux-tdep.c (sparc32_linux_gregset)
501 (sparc32_linux_fpregset): New static regset structures.
502 (sparc32_linux_init_abi): Drop dynamic regset allocations.
503 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
505 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
506 (sparc64_linux_fpregset): New static regset structures.
507 (sparc64_linux_init_abi): Drop dynamic regset allocations.
508 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
509 New static regset structures.
510 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
511 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
512 New static regset structures.
513 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
514 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
515 New static regset structures.
516 (sparc64obsd_init_abi): Drop dynamic regset allocations.
517 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
518 New static regset structures.
519 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
521 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
523 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
524 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
525 register maps ("regmaps") from "*regset" to "*regmap". Do this
526 for all regmap types and variables.
527 * sparc-linux-tdep.c (sparc32_linux_step_trap)
528 (sparc32_linux_supply_core_gregset)
529 (sparc32_linux_collect_core_gregset)
530 (sparc32_linux_supply_core_fpregset)
531 (sparc32_linux_collect_core_fpregset): Likewise.
532 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
533 (sparc_gregmap, sparc_fpregmap): ... these.
534 (sparc_supply_gregset, sparc_collect_gregset)
535 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
536 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
537 (_initialize_sparc_nat): Rename regmaps.
538 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
539 (sparc_gregmap, sparc_fpregmap): ... these.
540 (sparc_supply_gregset, sparc_collect_gregset)
541 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
542 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
544 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
545 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
547 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
549 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
550 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
551 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
553 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
554 (sparc32_bsd_fpregset): Rename to...
555 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
556 (sparc32_bsd_fpregmap): ... these.
557 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
558 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
559 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
560 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
561 (struct sparc_gregmap, struct sparc_fpregmap)
562 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
563 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
564 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
565 (sparc32_supply_regset, sparc32_collect_gregset)
566 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
568 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
569 (sparc64_linux_ptrace_gregmap): ... this.
570 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
571 (_initialize_sparc64_linux_nat): Rename regmaps.
572 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
573 (sparc64_linux_core_gregmap): ... this.
574 (sparc64_linux_supply_core_gregset)
575 (sparc64_linux_collect_core_gregset)
576 (sparc64_linux_supply_core_fpregset)
577 (sparc64_linux_collect_core_fpregset): Rename regmaps.
578 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
579 (sparc64_sol2_fpregset): Rename to...
580 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
581 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
582 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
584 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
585 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
586 (sparc64_bsd_fpregset): Rename to...
587 (struct sparc_gregmap, sparc64_sol2_gregmap)
588 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
589 (sparc64_bsd_fpregmap): ... these.
590 (sparc64_supply_gregset, sparc64_collect_gregset)
591 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
593 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
594 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
595 (sparc64fbsd_gregmap): ... this.
596 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
597 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
599 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
600 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
601 (sparc64nbsd_collect_fpregset): Likewise.
602 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
603 (sparc64nbsd_gregmap): ... this.
604 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
606 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
607 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
608 (sparc64obsd_gregmap): ... this.
609 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
611 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
612 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
613 (sparc32nbsd_gregmap): ... this.
614 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
617 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
619 * score-tdep.c (score7_linux_gregset): New static regset
621 (score7_linux_regset_from_core_section): Remove dynamic regset
623 (score_gdbarch_init): Drop allocation of tdep structure.
624 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
626 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
628 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
630 (am33_regset_from_core_section): Remove dynamic regset
633 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
635 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
636 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
638 (mips_linux_regset_from_core_section): Remove dynamic regset
640 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
641 'gregset64', 'fpregset', and 'fpregset64'.
642 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
645 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
647 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
649 (amd64_regset_from_core_section): Remove dynamic regset
651 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
653 (amd64obsd_regset_from_core_section): Remove dynamic regset
655 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
657 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
658 x86-common regset supply function.
659 * i386-tdep.c (i386_collect_gregset): Make static.
660 (i386_gregset): New global regset structure.
661 (i386_fpregset, i386_xstateregset): New static regset structures.
662 (i386_regset_from_core_section): Remove dynamic regset
664 (i386_gdbarch_init): Remove initialization of tdep fields
665 'gregset', 'fpregset', and 'xstateregset'.
666 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
667 'fpregset', and 'xstateregset'.
668 (i386_collect_gregset): Remove prototype.
669 (i386_gregset): New declaration.
670 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
672 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
675 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
677 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
678 (arm_linux_vfpregset): New static regset structures.
679 (arm_linux_regset_from_core_section): Remove dynamic allocation of
681 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
682 and 'vfpregset' fields.
684 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
686 * aarch64-linux-tdep.c (aarch64_linux_gregset)
687 (aarch64_linux_fpregset): New static regset structures.
688 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
689 of regset structures.
690 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
695 * regset.h (struct regset): Remove gdbarch field.
696 * regset.c (regset_alloc): Drop initialization of gdbarch field.
697 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
698 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
700 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
701 (ppc32_linux_fpregset, ppc32_linux_vrregset)
702 (ppc32_linux_vsxregset): Likewise.
703 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
704 via the regcache instead of the regset.
705 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
706 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
707 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
708 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
711 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
713 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
715 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
716 (alphanbsd_aout_gregset): Likewise.
717 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
718 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
720 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
721 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
723 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
724 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
725 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
726 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
727 * m88k-tdep.c (m88k_gregset): Likewise.
728 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
729 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
730 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
731 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
732 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
733 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
734 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
735 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
736 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
738 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
739 * sh-tdep.h (sh_corefile_gregset): Likewise.
740 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
741 * vax-tdep.c (vax_gregset): Likewise.
743 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
745 Fix TLS access for -static -pthread.
746 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
747 (try_thread_db_load_1): Initialize it.
748 (thread_db_get_thread_local_address): Call it if LM is zero.
749 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
750 * target.h (struct target_ops) (to_get_thread_local_address): Add
751 load_module_addr comment.
753 2014-05-21 Pedro Alves <palves@redhat.com>
755 * dcache.c (dcache_read_memory_partial): If reading the cache line
756 fails, fallback to reading just the memory the caller wanted.
758 2014-05-20 Doug Evans <dje@google.com>
760 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
761 instead of get_current_arch.
763 2014-05-20 Pedro Alves <palves@redhat.com>
765 * NEWS: Mention that compare-sections now works with all targets.
767 * remote.c (PACKET_qCRC): New enum value.
768 (remote_verify_memory): Don't send qCRC if the target has no
769 execution. Use packet_support/packet_ok. If the target doesn't
770 support the qCRC packet, fallback to a deep memory copy.
771 (compare_sections_command): Say "target image" instead of "remote
773 (_initialize_remote): Add PACKET_qCRC to the list of config
774 packets that have no associated command. Extend comment.
775 * target.c (simple_verify_memory, default_verify_memory): New
777 * target.h (struct target_ops) <to_verify_memory>: Default to
778 default_verify_memory.
779 (simple_verify_memory): New declaration.
780 * target-delegates.c: Regenerate.
782 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
784 * record-btrace.c (record_btrace_step_thread): Check for empty history.
786 2014-05-20 Hui Zhu <hui@codesourcery.com>
787 Yao Qi <yao@codesourcery.com>
790 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
791 and change address of sp and pc.
793 2014-05-19 Tom Tromey <tromey@redhat.com>
795 * gdbtypes.c (rank_function): Use XNEWVEC.
796 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
798 2014-05-19 Doug Evans <dje@google.com>
800 * dwarf2read.c (build_type_psymtabs_1): Renamed from
801 build_type_unit_groups and moved closer to only caller. Remove
802 arguments. All references updated. Remove outdated .gdb_index
804 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
805 build_type_psymtabs_1.
807 2014-05-19 Doug Evans <dje@google.com>
809 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
810 n_type_unit_groups, all_type_unit_groups. All uses removed.
811 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
812 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
813 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
814 (add_type_unit_group_to_table): Delete.
816 2014-05-19 Doug Evans <dje@google.com>
818 * eval.c (evaluate_subexp_standard): Add some comments.
820 2014-05-17 Doug Evans <xdje42@gmail.com>
822 * progspace.c (remove_program_space): Delete, unused.
823 * progspace.h (remove_program_space): Ditto.
825 2014-05-17 Doug Evans <xdje42@gmail.com>
827 * inferior.c (prune_inferiors): Fix comment.
828 (remove_inferior_command): Call prune_program_spaces.
830 2014-05-16 Doug Evans <dje@google.com>
832 New command line option -D.
834 * main.c (set_gdb_data_directory): New function.
835 (captured_main): Recognize -D. Flag error for --data-directory "".
836 Call set_gdb_data_directory.
837 (print_gdb_help): Print --data-directory, -D.
838 * main.h (set_gdb_data_directory): Declare.
839 * top.c (staged_gdb_datadir): New static global.
840 (set_gdb_datadir): Call set_gdb_data_directory
841 (show_gdb_datadir): New function.
842 (init_main): Update init of data-directory parameter.
844 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
846 Import the "dirfd" gnulib module.
847 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
848 * gnulib/aclocal.m4: Update.
849 * gnulib/config.in: Update.
850 * gnulib/configure: Update.
851 * gnulib/import/Makefile.am: Update.
852 * gnulib/import/Makefile.in: Update.
853 * gnulib/import/dirfd.c: New.
854 * gnulib/import/m4/dirfd.m4: New.
855 * gnulib/import/m4/gnulib-cache.m4: Update.
856 * gnulib/import/m4/gnulib-comp.m4: Update.
858 2014-05-16 Pierre Muller <muller@sourceware.org>
859 Yao Qi <yao@codesourcery.com>
861 * valprint.c (print_wchar): Move the code on checking whether
862 W is a printable wide char to the default branch of switch
863 statement below. Call wchar_printable instead of gdb_iswprint.
865 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
867 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
868 ldr.w and ldrd instructions.
870 2014-05-15 Doug Evans <dje@google.com>
872 * dwarf2read.c (read_structure_type): Delete outdated comments.
874 2014-05-14 Tom Tromey <tromey@redhat.com>
876 * macrocmd.c (print_macro_definition): Reindent.
878 2014-05-13 Doug Evans <xdje42@gmail.com>
880 * python/py-cmd.c (cmdpy_completer): Add comment.
881 (completers): Make const.
883 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
885 * infrun.c (resume): Remove should_resume (unused). Move up
886 declaration of resume_ptid.
888 2014-05-13 Tom Tromey <tromey@redhat.com>
890 * language.h (unop_type_check): Remove.
891 (binop_type_check): Don't declare.
893 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
895 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
896 call to regcache_raw_collect.
898 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
900 * mi/mi-console.c (mi_console_raw_packet): Use the value from
901 mi_console->quote as the quoting character.
903 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
905 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
907 2014-04-29 Tom Tromey <tromey@redhat.com>
909 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
912 2014-05-07 Kyle McMartin <kyle@redhat.com>
914 Pushed by Joel Brobecker <brobecker@adacore.com>.
915 * aarch64-tdep.c (aarch64_software_single_step): New function.
916 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
917 with aarch64_software_single_step.
919 2014-05-05 Joel Brobecker <brobecker@adacore.com>
923 2014-05-05 Keith Seitz <keiths@redhat.com>
925 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
926 variable or history value is successfully parsed.
928 2014-05-05 Yao Qi <yao@codesourcery.com>
929 Pedro Alves <palves@redhat.com>
931 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
932 address of blocks that intersects the requested range. Trim
933 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
935 * ctf.c (ctf_xfer_partial): Likewise.
937 2014-05-05 Yao Qi <yao@codesourcery.com>
939 * printcmd.c (display_command): Remove the check to
940 target_has_execution.
942 2014-05-03 Mark Kettenis <kettenis@gnu.org>
944 * ppcobsd-nat.c: Include "obsd-nat.h".
945 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
947 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
949 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
951 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
952 and 16-bit signed and unsigned arguments. Update comment.
953 (stap_parse_probe_arguments): Extend code to handle such
954 arguments. Use warning instead of complaint to notify about
955 unrecognized bitness.
957 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
960 * stap-probe.c (stap_parse_probe_arguments): Simplify
961 check for non-prefixed probes (i.e., probes whose
962 arguments do not start with "N@"). Always set the
963 argument type to a sane value.
965 2014-05-01 David Taylor <dtaylor@emc.com>
967 * remote.c (compare_sections_command): Add -r option to compare
968 all loadable read-only sections.
970 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
972 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
973 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
975 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
976 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
977 Remove unused CORE_ADDR argument. Update all callers.
979 2014-04-29 Pedro Alves <palves@redhat.com>
981 * remote.c (struct packet_config) <detect>: Extend comment.
982 (add_packet_config_cmd): Don't set the config's detect or support
984 (init_all_packet_configs): Also initialize the config's 'detect'
986 (reset_all_packet_configs_support): New function.
987 (remote_open_1): Call reset_all_packet_configs_support instead of
988 init_all_packet_configs.
989 (_initialize_remote): Initialize all packet configs. Assert that
990 all packets have an associated command, except a few known
993 2014-04-28 Joel Brobecker <brobecker@adacore.com>
995 * dwarf2read.c (read_subrange_type): Handle dynamic
996 DW_AT_lower_bound attributes.
998 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1000 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1001 dynamic bounds before computing its upper bound.
1002 (ada_discrete_type_low_bound): Same as above with the lower bound.
1004 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1006 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1007 range types. Adjust the array handling implementation to
1008 take advantage of this change.
1009 (resolve_dynamic_range): New function, mostly extracted from
1010 resolve_dynamic_bounds.
1011 (resolve_dynamic_array): New function, mostly extracted from
1012 resolve_dynamic_bounds.
1013 (resolve_dynamic_bounds): Delete.
1014 (resolve_dynamic_type): Reimplement. Add handling of
1015 TYPE_CODE_RANGE types.
1017 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1019 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1020 handling of parallel ___XA types.
1022 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1024 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1025 unnecessary second call to static_unwrap_type.
1027 2014-04-27 Hui Zhu <hui@codesourcery.com>
1029 * stack.c (print_frame_info): Call do_gdb_disassembly with
1030 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1032 2014-04-26 Doug Evans <xdje42@gmail.com>
1034 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1036 2014-04-25 Pedro Alves <palves@redhat.com>
1039 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1040 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1041 and newline from built string.
1042 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1043 (linux_ptrace_attach_fail_reason): ... this.
1044 * linux-nat.c (linux_nat_attach): Adjust to use
1045 linux_ptrace_attach_fail_reason.
1047 2014-04-25 Pedro Alves <palves@redhat.com>
1049 * remote.c (struct remote_state): Remove multi_process_aware,
1050 non_stop_aware, cond_tracepoints, cond_breakpoints,
1051 breakpoint_commands, fast_tracepoints, static_tracepoints,
1052 install_in_trace, disconnected_tracing,
1053 enable_disable_tracepoints, string_tracing, and
1054 augmented_libraries_svr4_read fields.
1055 (remote_multi_process_p): Move further below in the file.
1056 (struct packet_config): Add comments.
1057 (update_packet_config): Delete function.
1058 (show_packet_config_cmd): Use packet_config_support.
1059 (add_packet_config_cmd): Use NULL as set callback.
1060 (packet_ok): "set remote foo-packet"-style commands no longer
1061 change config->supported -- adjust.
1062 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1063 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1064 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1065 (PACKET_QNonStop, PACKET_multiprocess_feature)
1066 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1067 (PACKET_DisconnectedTracing_feature)
1068 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1069 (set_remote_protocol_packet_cmd): Delete function.
1070 (packet_config_support, packet_support): New functions.
1071 (set_remote_protocol_Z_packet_cmd): Don't call
1072 update_packet_config.
1073 (remote_query_attached, remote_pass_signals)
1074 (remote_program_signals, remote_threads_info)
1075 (remote_threads_extra_info, remote_start_remote): Use
1077 (remote_start_remote): Use packet_config_support and
1079 (init_all_packet_configs): Set all packets to unknown support,
1080 instead of calling update_packet_config.
1081 (remote_check_symbols): Use packet_support.
1082 (remote_supported_packet): Unconditionally set the packet config's
1084 (remote_multi_process_feature, remote_non_stop_feature)
1085 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1086 (remote_breakpoint_commands_feature)
1087 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1088 (remote_install_in_trace_feature)
1089 (remote_disconnected_tracing_feature)
1090 (remote_enable_disable_tracepoint_feature)
1091 (remote_string_tracing_feature)
1092 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1093 (remote_protocol_features): Adjust to use remote_supported_packet
1094 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1095 "ConditionalTracepoints", "ConditionalBreakpoints",
1096 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1097 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1098 "EnableDisableTracepoints", and "tracenz".
1099 (remote_query_supported): Use packet_support.
1100 (remote_open_1): Adjust.
1101 (extended_remote_attach_1): Use packet_support. Switch on the
1102 result of packet_ok instead of checking whether the packet ended
1104 (remote_vcont_resume): Use packet_support.
1105 (remote_resume, remote_stop_ns, fetch_register_using_p)
1106 (remote_prepare_to_store, store_register_using_P)
1107 (check_binary_download, remote_write_bytes): Use packet_support.
1108 (remote_vkill): Use packet_support. Switch on the result of
1109 packet_ok instead of checking whether the packet ended up
1111 (extended_remote_supports_disable_randomization): Use
1113 (extended_remote_run): Switch on the result of packet_ok instead
1114 of checking whether the packet ended up disabled.
1115 (remote_insert_breakpoint, remote_remove_breakpoint)
1116 (remote_insert_watchpoint, remote_remove_watchpoint)
1117 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1119 (remote_search_memory): Use packet_config_support.
1120 (remote_get_thread_local_address, remote_get_tib_address)
1121 (remote_hostio_send_command, remote_can_execute_reverse): Use
1123 (remote_supports_cond_tracepoints)
1124 (remote_supports_cond_breakpoints)
1125 (remote_supports_fast_tracepoints)
1126 (remote_supports_static_tracepoints)
1127 (remote_supports_install_in_trace)
1128 (remote_supports_enable_disable_tracepoint)
1129 (remote_supports_string_tracing)
1130 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1131 the packet config says the feature is enabled or disabled.
1132 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1133 (remote_get_trace_status): Use packet_support.
1134 (remote_set_disconnected_tracing): Adjust to check whether the
1135 feature is enabled with packet_support.
1136 (remote_set_trace_buffer_size, remote_use_agent)
1137 (remote_can_use_agent, remote_supports_btrace): Use
1139 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1140 Use packet_config_support.
1141 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1142 the packet config says the feature is enabled or disabled.
1143 (set_range_stepping): Use packet_support.
1145 2014-04-25 Tom Tromey <tromey@redhat.com>
1147 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1150 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1152 * NEWS: Mention support for C99 variable length arrays.
1154 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1156 * ada-lang.c (standard_exc): Expand introductory comment.
1158 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1159 Walfred Tedeschi <walfred.tedeschi@intel.com>
1161 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1163 (amd64_linux_read_description): Add code to handle AVX512 xstate
1164 mask and return respective tdesc.
1165 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1166 and features/i386/x32-avx512-linux.c.
1167 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1168 (amd64_linux_core_read_description): Add code to handle AVX512
1169 xstate mask and return respective tdesc.
1170 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1171 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1173 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1174 (tdesc_amd64_avx512_linux): New prototype.
1175 (tdesc_x32_avx512_linux): Likewise.
1176 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1177 features/i386/x32-avx512.c.
1178 (amd64_ymm_avx512_names): New register names for pseudo
1180 (amd64_ymmh_avx512_names): New register names for raw registers
1182 (amd64_k_names): New register names for K registers.
1183 (amd64_zmmh_names): New register names for ZMM raw registers.
1184 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1185 (amd64_xmm_avx512_names): New register names for XMM16-31
1187 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1189 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1190 if feature is present.
1191 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1192 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1193 (AMD64_NUM_REGS): Adjust to new number of registers.
1194 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1195 registers supplied via XSTATE by AVX512 registers.
1196 (i386_linux_read_description): Add case for AVX512.
1197 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1198 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1199 (i386_linux_core_read_description): Add case for AVX512.
1200 (i386_linux_init_abi): Install supported register note section
1202 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1204 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1205 registers to be number of zmm7h + 1.
1206 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1207 * i386-tdep.c: Include features/i386/i386-avx512.c.
1208 (i386_zmm_names): Add ZMM pseudo register names array.
1209 (i386_zmmh_names): Add ZMM raw register names array.
1210 (i386_k_names): Add K raw register names array.
1211 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1212 registers. AVX512 has 16 more ZMM registers than there are YMM
1214 (i386_zmmh_regnum_p): Add function to look up register number of
1216 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1217 (i386_k_regnum_p): Likewise for K raw registers.
1218 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1219 registers added by AVX512.
1220 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1221 registers added by AVX512.
1222 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1224 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1225 (i386_pseudo_register_name): Add ZMM pseudo registers.
1226 (i386_zmm_type): Construct and return vector registers type for ZMM
1228 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1229 ZMM0-31 pseudo registers and K registers.
1230 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1231 and YMM16-31 registers from register cache.
1232 (i386_pseudo_register_write): Add code to write K, ZMM and
1234 (i386_register_reggroup_p): Add code to include/exclude AVX512
1235 registers in/from respective register groups.
1236 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1237 registers if feature is present in xcr0.
1238 (i386_gdbarch_init): Add code to initialize AVX512 feature
1239 variables in tdep structure, wire in pseudo registers and call
1240 initialize_tdesc_i386_avx512.
1241 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1243 (i386_regnum): Add AVX512 registers.
1244 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1245 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1246 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1247 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1249 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1250 (i386_ymm_avx512_regnum_p): Likewise.
1251 (i386_k_regnum_p): Likewise.
1252 (i386_zmm_regnum_p): Likewise.
1253 (i386_zmmh_regnum_p): Likewise.
1254 * i387-tdep.c : Update year in copyright notice.
1255 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1257 (XSAVE_YMM_AVX512_ADDR): New macro.
1258 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1260 (XSAVE_XMM_AVX512_ADDR): New macro.
1261 (xsave_avx512_k_offset): New table for K register offsets in
1263 (XSAVE_AVX512_K_ADDR): New macro.
1264 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1266 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1267 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1269 (i387_collect_xsave): Add code to collect AVX512 registers from
1271 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1272 of XMM16-31 registers.
1273 (I387_NUM_K_REGS): New define for number of K registers.
1274 (I387_K0_REGNUM): New define for K0 register number.
1275 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1276 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1277 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1279 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1280 (I387_XMM16_REGNUM): New define for XMM16 register number.
1281 (I387_YMM0_REGNUM): New define for YMM0 register number.
1282 (I387_KEND_REGNUM): New define for last K register number.
1283 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1284 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1286 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1288 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1290 * features/Makefile: Add AVX512 related files.
1291 * features/i386/32bit-avx512.xml: New file.
1292 * features/i386/64bit-avx512.xml: Likewise.
1293 * features/i386/amd64-avx512-linux.c: Likewise.
1294 * features/i386/amd64-avx512-linux.xml: Likewise.
1295 * features/i386/amd64-avx512.c: Likewise.
1296 * features/i386/amd64-avx512.xml: Likewise.
1297 * features/i386/i386-avx512-linux.c: Likewise.
1298 * features/i386/i386-avx512-linux.xml: Likewise.
1299 * features/i386/i386-avx512.c: Likewise.
1300 * features/i386/i386-avx512.xml: Likewise.
1301 * features/i386/x32-avx512-linux.c: Likewise.
1302 * features/i386/x32-avx512-linux.xml: Likewise.
1303 * features/i386/x32-avx512.c: Likewise.
1304 * features/i386/x32-avx512.xml: Likewise.
1305 * regformats/i386/amd64-avx512-linux.dat: New file.
1306 * regformats/i386/amd64-avx512.dat: Likewise.
1307 * regformats/i386/i386-avx512-linux.dat: Likewise.
1308 * regformats/i386/i386-avx512.dat: Likewise.
1309 * regformats/i386/x32-avx512-linux.dat: Likewise.
1310 * regformats/i386/x32-avx512.dat: Likewise.
1311 * NEWS: Add note about new support for AVX512.
1314 2014-04-23 Pedro Alves <palves@redhat.com>
1316 * breakpoint.c (insert_bp_location): Tolerate errors if the
1317 breakpoint is set in a user-loaded objfile.
1318 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1319 location is marked shlib_disabled. If the breakpoint is set in a
1320 user-loaded objfile is a GDB-side memory breakpoint, validate it
1321 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1322 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1324 * mem-break.c (memory_validate_breakpoint): New function.
1325 * objfiles.c (userloaded_objfile_contains_address_p): New
1327 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1328 * target.h (memory_validate_breakpoint): New declaration.
1330 2014-04-23 Pedro Alves <palves@redhat.com>
1332 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1333 the breakpoint is set in a shared library, only suppress
1334 errors for software breakpoints, not hardware breakpoints.
1336 2014-04-22 Pedro Alves <palves@redhat.com>
1338 * infrun.c (schedlock_applies): New function, factored out from
1339 find_thread_needs_step_over.
1340 (find_thread_needs_step_over): Use it.
1341 (switch_back_to_stepped_thread): Always clear trap_expected if the
1342 step over is finished. Return early if scheduler locking applies.
1343 Look for the stepping thread and a potential step-over thread with
1345 (currently_stepping_or_nexting_callback): Delete.
1347 2014-04-22 Nick Clifton <nickc@redhat.com>
1349 * NEWS: Mention that ARM sim now supports tracing.
1351 2014-04-22 Yao Qi <yao@codesourcery.com>
1353 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1355 * tracefile.c (tracefile_fetch_registers): ... it. New
1357 * tracefile.h (tracefile_fetch_registers): Declare.
1358 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1359 tracefile_fetch_registers.
1361 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1364 * windows-nat.c (thread_rec): Don't display a warning when
1365 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1366 fails for any reason, set th->suspended to -1, so that we don't
1367 try to resume such a thread. Also, don't return NULL in these
1368 cases, to avoid completely ruin the session due to "PC register is
1369 not available" error.
1370 (do_windows_fetch_inferior_registers): Check errors in
1371 GetThreadContext call.
1372 (windows_continue): Accept an additional argument KILLED; if not
1373 zero, ignore errors in the SetThreadContext call, since the
1374 inferior was killed and is shutting down.
1375 (windows_resume, get_windows_debug_event)
1376 (windows_create_inferior, windows_mourn_inferior)
1377 (windows_kill_inferior): All callers of windows_continue changed
1378 to adjust to its new calling sequence.
1380 2014-04-19 Yao Qi <yao@codesourcery.com>
1382 * ctf.c (ctf_open): Call post_create_inferior.
1384 2014-04-19 Yao Qi <yao@codesourcery.com>
1386 * ctf.c (handle_id): New static variable.
1387 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1388 value. Get the declaration of event "register" and get length
1389 of field "contents".
1391 2014-04-19 Yao Qi <yao@codesourcery.com>
1393 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1395 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1397 * valops.c (oload_method_static): Remove unnecessary argument
1398 METHOD. Update all callers.
1400 2014-04-18 Pedro alves <palves@redhat.com>
1401 Tom Tromey <tromey@redhat.com>
1404 * frame.c (get_prev_frame_1): Rename to ...
1405 (get_prev_frame_always): ... this, and make extern. Adjust.
1406 (skip_artificial_frames): Use get_prev_frame_always.
1407 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1408 (get_frame_unwind_stop_reason): Adjust to rename.
1409 * frame.h (get_prev_frame_always): Declare.
1410 * inline-frame.c: Include frame.h.
1411 (inline_frame_this_id): Use get_prev_frame_always.
1413 2014-04-18 Tristan Gingold <gingold@adacore.com>
1415 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1416 code by using bfd_mach_o_get_base_address.
1418 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1420 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1421 (spu_ax_pseudo_register_collect): New function.
1422 (spu_ax_pseudo_register_push_stack): Likewise.
1423 (spu_dwarf_reg_to_regnum): Likewise.
1424 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1426 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1428 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1429 Replace FRAME argument with FRAME_ID.
1430 * gdbarch.c, gdbarch.h: Regenerate.
1431 * findvar.c (default_value_from_register): Add GDBARCH argument;
1432 replace FRAME by FRAME_ID. No longer call get_frame_id.
1433 (value_from_register): Update call to gdbarch_value_from_register.
1434 * value.h (default_value_from_register): Update prototype.
1435 * s390-linux-tdep.c (s390_value_from_register): Update interface
1436 and call to default_value_from_register.
1437 * spu-tdep.c (spu_value_from_register): Likewise.
1439 * findvar.c (address_from_register): Remove TYPE argument.
1440 Do not call value_from_register; use gdbarch_value_from_register
1441 with null_frame_id instead.
1442 * value.h (address_from_register): Update prototype.
1443 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1444 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1445 address_from_register interface change.
1447 2014-04-17 Yao Qi <yao@codesourcery.com>
1449 * gdbtypes.h: Update comments to link to types and macros'
1452 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1454 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1456 2014-04-16 Keith Seitz <keiths@redhat.com>
1459 * dwarf2read.c (skip_one_die): Check that all relative-offset
1460 sibling DIEs fall within range of the current reader's buffer.
1461 (read_partial_die): Likewise.
1463 2014-04-16 Keith Seitz <keiths@redhat.com>
1466 * cp-namespace.c (lookup_symbol_file): If the type name of
1467 `this' is NULL, return immediately.
1469 2014-04-14 Keith Seitz <keiths@redhat.com>
1472 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1473 from symbol_matches_domain in symtab.c. All local callers
1474 of symbol_matches_domain updated.
1475 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1476 search STRUCT_DOMAIN.
1477 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1478 independently. standard_lookup will do that automatically.
1479 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1480 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1481 (cp_lookup_symbol_in_namespace): Likewise.
1482 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1483 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1484 may return a STRUCT_DOMAIN match.
1485 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1486 * cp-support.c: Include language.h.
1487 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1489 * psymtab.c (match_partial_symbol): Compare the requested
1490 domain with the symbol's domain directly.
1491 (lookup_partial_symbol): Likewise.
1492 * symtab.c (lookup_symbol_in_language): Explain when/why
1493 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1494 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1495 appropriate languages.
1496 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1497 and moved to ada-lang.c
1498 (lookup_block_symbol): Explain that this function only returns
1499 symbol matching the requested DOMAIN.
1500 Compare the requested domain with the symbol's domain directly.
1501 (iterate_over_symbols): Compare the requested domain with the
1502 symbol's domain directly.
1503 * symtab.h (symbol_matches_domain): Remove.
1505 2014-04-14 Tom Tromey <tromey@redhat.com>
1508 * c-exp.y (type_aggregate_p): New function.
1509 (qualified_name, classify_inner_name): Use it.
1510 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1511 and TYPE_TARGET_TYPE of an enum type.
1512 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1514 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1515 handle TYPE_DECLARED_CLASS.
1516 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1518 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1519 * valops.c (enum_constant_from_type): New function.
1520 (value_aggregate_elt): Use it.
1521 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1524 2014-04-14 Tom Tromey <tromey@redhat.com>
1526 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1527 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1529 * value.h (value_aggregate_elt): Update.
1531 2014-04-14 Tom Tromey <tromey@redhat.com>
1533 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1535 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1537 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1538 (evaluate_subexp_standard): Pass noside argument.
1539 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1540 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1541 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1542 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1543 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1545 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1547 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1548 points to a constant blob.
1550 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1552 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1553 property and store it as the high bound and flag the range accordingly.
1554 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1555 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1556 * gdbtypes.h (enum range_flags): New enum.
1557 (struct range_bounds): Add flags member.
1559 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1561 * c-typeprint.c (c_type_print_varspec_suffix): Added
1562 check for not yet resolved high bound. If unresolved, print
1563 "variable length" string to the console instead of random
1566 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1568 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1570 (ada_template_to_fixed_record_type_1): Likewise.
1571 (ada_to_fixed_type_1): Likewise.
1572 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1573 (cp_print_value): Likewise.
1574 * d-valprint.c (dynamic_array_type): Likewise.
1575 * findvar.c (address_of_variable): Likewise.
1576 * jv-valprint.c (java_value_print): Likewise.
1577 * valops.c (value_ind): Likewise.
1578 * value.c (coerce_ref): Likewise.
1580 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1582 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1583 value and retrieve the dynamic type size.
1585 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1587 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1588 passed to sizeof is dynamic evaluate the argument to compute the length.
1590 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1591 Joel Brobecker <brobecker@adacore.com>
1593 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1594 (dwarf2_evaluate_property): New function.
1595 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1596 * dwarf2read.c (attr_to_dynamic_prop): New function.
1597 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1599 * gdbtypes.c: Include dwarf2loc.h.
1600 (is_dynamic_type): New function.
1601 (resolve_dynamic_type): New function.
1602 (resolve_dynamic_bounds): New function.
1603 (get_type_length): New function.
1604 (check_typedef): Use get_type_length to compute type length.
1605 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1606 (TYPE_LOW_BOUND_KIND): New macro.
1607 (is_dynamic_type): New function prototype.
1608 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1609 to resolve dynamic properties of the type. Update comment.
1610 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1612 2014-04-14 Richard Henderson <rth@redhat.com>
1614 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1616 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1617 Doug Evans <xdje42@gmail.com>
1619 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1620 dereference TYPE_CODE_REF values.
1622 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1624 Revert the following changes due to regressions:
1626 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1627 (dwarf2_evaluate_property): New function.
1628 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1629 * dwarf2read.c (attr_to_dynamic_prop): New function.
1630 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1632 * gdbtypes.c: Include dwarf2loc.h.
1633 (is_dynamic_type): New function.
1634 (resolve_dynamic_type): New function.
1635 (resolve_dynamic_bounds): New function.
1636 (get_type_length): New function.
1637 (check_typedef): Use get_type_length to compute type length.
1638 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1639 (TYPE_LOW_BOUND_KIND): New macro.
1640 (is_dynamic_type): New function prototype.
1641 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1642 to resolve dynamic properties of the type. Update comment.
1643 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1645 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1646 passed to sizeof is dynamic evaluate the argument to compute the length.
1648 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1649 value and retrieve the dynamic type size.
1651 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1652 (ada_template_to_fixed_record_type_1): Likewise.
1653 (ada_to_fixed_type_1): Likewise.
1654 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1655 (cp_print_value): Likewise.
1656 * d-valprint.c (dynamic_array_type): Likewise.
1657 * eval.c (evaluate_subexp_with_coercion): Likewise.
1658 * findvar.c (address_of_variable): Likewise.
1659 * jv-valprint.c (java_value_print): Likewise.
1660 * valops.c (value_ind): Likewise.
1661 * value.c (coerce_ref): Likewise.
1663 * c-typeprint.c (c_type_print_varspec_suffix): Added
1664 check for not yet resolved high bound. If unresolved, print
1665 "variable length" string to the console instead of random
1668 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1669 property and store it as the high bound and flag the range accordingly.
1670 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1671 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1672 * gdbtypes.h (enum range_flags): New enum.
1673 (struct range_bounds): Add flags member.
1675 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1676 points to a constant blob.
1678 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1679 (evaluate_subexp_standard): Pass noside argument.
1680 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1681 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1682 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1683 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1684 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1686 2014-04-11 Keith Seitz <keiths@redhat.com>
1689 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1690 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1693 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1695 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1696 (evaluate_subexp_standard): Pass noside argument.
1697 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1698 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1699 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1700 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1701 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1703 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1705 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1706 points to a constant blob.
1708 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1710 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1711 property and store it as the high bound and flag the range accordingly.
1712 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1713 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1714 * gdbtypes.h (enum range_flags): New enum.
1715 (struct range_bounds): Add flags member.
1717 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1719 * c-typeprint.c (c_type_print_varspec_suffix): Added
1720 check for not yet resolved high bound. If unresolved, print
1721 "variable length" string to the console instead of random
1724 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1726 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1727 (ada_template_to_fixed_record_type_1): Likewise.
1728 (ada_to_fixed_type_1): Likewise.
1729 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1730 (cp_print_value): Likewise.
1731 * d-valprint.c (dynamic_array_type): Likewise.
1732 * eval.c (evaluate_subexp_with_coercion): Likewise.
1733 * findvar.c (address_of_variable): Likewise.
1734 * jv-valprint.c (java_value_print): Likewise.
1735 * valops.c (value_ind): Likewise.
1736 * value.c (coerce_ref): Likewise.
1738 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1740 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1741 value and retrieve the dynamic type size.
1743 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1745 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1746 passed to sizeof is dynamic evaluate the argument to compute the length.
1748 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1750 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1751 (dwarf2_evaluate_property): New function.
1752 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1753 * dwarf2read.c (attr_to_dynamic_prop): New function.
1754 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1756 * gdbtypes.c: Include dwarf2loc.h.
1757 (is_dynamic_type): New function.
1758 (resolve_dynamic_type): New function.
1759 (resolve_dynamic_bounds): New function.
1760 (get_type_length): New function.
1761 (check_typedef): Use get_type_length to compute type length.
1762 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1763 (TYPE_LOW_BOUND_KIND): New macro.
1764 (is_dynamic_type): New function prototype.
1765 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1766 to resolve dynamic properties of the type. Update comment.
1767 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1769 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1771 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1772 declaring high/low bounds and change uses accordingly. Call
1773 create_range_type instead of create_static_range_type.
1774 * gdbtypes.c (create_range_type): New function.
1775 (create_range_type): Convert bounds into struct bound_prop and pass
1776 them to create_range_type.
1777 * gdbtypes.h (struct bound_prop): New struct.
1778 (create_range_type): New function prototype.
1779 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1780 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1781 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1783 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1785 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1787 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1788 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1789 * ada-lang.c: All uses of create_range_type updated.
1790 * coffread.c: All uses of create_range_type updated.
1791 * dwarf2read.c: All uses of create_range_type updated.
1792 * f-exp.y: All uses of create_range_type updated.
1793 * m2-valprint.c: All uses of create_range_type updated.
1794 * mdebugread.c: All uses of create_range_type updated.
1795 * stabsread.c: All uses of create_range_type updated.
1796 * valops.c: All uses of create_range_type updated.
1797 * valprint.c: All uses of create_range_type updated.
1799 2014-04-10 Pedro Alves <palves@redhat.com>
1801 * breakpoint.c (single_step_breakpoints)
1802 (single_step_gdbarch): Move up in the file.
1803 (one_breakpoint_xfer_memory): New function, factored out from ...
1804 (breakpoint_xfer_memory): ... here. Also process single-step
1807 2014-04-09 Tristan Gingold <gingold@adacore.com>
1809 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1811 (darwin_decode_exception_message): Free port only after use.
1813 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1815 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1816 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1817 when setting the size of call_length.
1819 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1821 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1822 dereference TYPE_CODE_REF values.
1824 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1826 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1827 end of warning message.
1829 2014-04-03 Doug Evans <dje@google.com>
1831 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1832 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1834 2014-04-02 Alan Modra <amodra@gmail.com>
1836 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1837 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1838 (struct symbol_file_add_from_memory_args): Add size field.
1839 (find_vdso_size): New function.
1840 (add_vsyscall_page): Attempt to find vdso size.
1842 2014-04-01 Doug Evans <dje@google.com>
1844 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1846 2014-04-01 Tristan Gingold <gingold@adacore.com>
1848 * darwin-nat.c (darwin_encode_reply): Add prototype.
1849 (darwin_decode_exception_message): Reply to unknown inferiors.
1850 (darwin_decode_message): Handle message by id. Ignore message
1851 to unknown inferior.
1852 (darwin_wait): Discard unknown messages, add debug trace.
1854 2014-03-31 Doug Evans <dje@google.com>
1856 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1859 2014-03-31 Doug Evans <dje@google.com>
1861 New option "set print symbol-loading".
1863 * solib.c (solib_read_symbols): Only print symbol loading messages
1865 (solib_add): If symbol loading is in "brief" mode, notify user
1866 symbols are being loaded.
1867 (reload_shared_libraries_1): Ditto.
1868 * symfile.c (print_symbol_loading_off): New static global.
1869 (print_symbol_loading_brief): New static global.
1870 (print_symbol_loading_full): New static global.
1871 (print_symbol_loading_enums): New static global.
1872 (print_symbol_loading): New static global.
1873 (print_symbol_loading_p): New function.
1874 (symbol_file_add_with_addrs): Only print symbol loading messages
1876 (_initialize_symfile): Register "print symbol-loading" set/show
1878 * symfile.h (print_symbol_loading_p): Declare.
1880 2014-03-30 Doug Evans <xdje42@gmail.com>
1882 * infrun.c (set_last_target_status): New function.
1883 (handle_inferior_event): Call it.
1885 2014-03-30 Doug Evans <xdje42@gmail.com>
1887 * inferior.h (enum stop_kind): Improve comment.
1889 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1891 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1892 a reference, strip the reference layer before calling
1893 the lang_ops value_has_mutated callback.
1895 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1897 Remove some globals from our parser.
1898 * language.c (unk_lang_parser): Add "struct parser_state"
1900 * language.h (struct language_defn) <la_parser>: Likewise.
1901 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1902 (initialize_expout): Add "struct parser_state" argument.
1903 Rewrite function to use the parser state.
1904 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1905 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1906 write_exp_elt_longcst, write_exp_elt_dblcst,
1907 write_exp_elt_decfloatcst, write_exp_elt_type,
1908 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1909 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1910 write_dollar_variable): Likewise.
1911 (parse_exp_in_context_1): Use parser state.
1912 (insert_type_address_space): Add "struct parser_state" argument.
1914 (increase_expout_size): New function.
1915 * parser-defs.h: Forward declare "struct language_defn" and
1916 "struct parser_state".
1917 (expout, expout_size, expout_ptr): Remove extern declarations.
1918 (parse_gdbarch, parse_language): Rewrite macro declarations to
1919 accept the parser state.
1920 (struct parser_state): New struct.
1921 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1922 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1923 write_exp_elt_decfloatcst, write_exp_elt_type,
1924 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1925 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1926 write_exp_msymbol, write_dollar_variable,
1927 mark_struct_expression, insert_type_address_space): Add "struct
1928 parser_state" argument.
1929 (increase_expout_size): New function.
1930 * utils.c (do_clear_parser_state): New function.
1931 (make_cleanup_clear_parser_state): Likewise.
1932 * utils.h (make_cleanup_clear_parser_state): New function
1934 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1935 Update calls to write_exp* in order to pass the parser state.
1936 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1937 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1938 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1939 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1940 * stap-probe.c (stap_parse_register_operand): Likewise.
1941 (stap_parse_single_operand): Likewise.
1942 (stap_parse_argument_1): Likewise.
1943 (stap_parse_argument): Use parser state.
1944 * stap-probe.h: Include "parser-defs.h".
1945 (struct stap_parse_info) <pstate>: New field.
1946 * c-exp.y (parse_type): Rewrite to use parser state.
1947 (yyparse): Redefine to c_parse_internal.
1948 (pstate): New global variable.
1949 (parse_number): Add "struct parser_state" argument.
1950 (write_destructor_name): Likewise.
1951 (type_exp): Update calls to write_exp* and similars in order to
1953 (exp1, exp, variable, qualified_name, space_identifier,
1954 typename, typebase): Likewise.
1955 (write_destructor_name, parse_number, lex_one_token,
1956 classify_name, classify_inner_name, c_parse): Add "struct
1957 parser_state" argument. Update function to use parser state.
1958 * c-lang.h: Forward declare "struct parser_state".
1959 (c_parse): Add "struct parser_state" argument.
1960 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1961 (yyparse): Redefine macro to ada_parse_internal.
1962 (pstate): New variable.
1963 (write_int, write_object_renaming, write_var_or_type,
1964 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1965 type_int, type_long, type_long_long, type_float, type_double,
1966 type_long_double, type_char, type_boolean, type_system_address):
1967 Add "struct parser_state" argument.
1968 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1969 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1970 var_or_type, aggregate, aggregate_component_list,
1971 positional_list, others, component_group,
1972 component_associations): Update calls to write_exp* and similar
1973 functions in order to use parser state.
1974 (ada_parse, write_var_from_sym, write_int,
1975 write_exp_op_with_string, write_object_renaming,
1976 find_primitive_type, write_selectors, write_ambiguous_var,
1977 write_var_or_type, write_name_assoc, type_int, type_long,
1978 type_long_long, type_float, type_double, type_long_double,
1979 type_char, type_boolean, type_system_address): Add "struct
1980 parser_state" argument. Adjust function to use parser state.
1981 * ada-lang.c (parse): Likewise.
1982 * ada-lang.h: Forward declare "struct parser_state".
1983 (ada_parse): Add "struct parser_state" argument.
1984 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1985 calls to both functions.
1986 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1988 (yyparse): Redefine macro to f_parse_internal.
1989 (pstate): New variable.
1990 (parse_number): Add "struct parser_state" argument.
1991 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1992 and similars in order to use parser state.
1993 (parse_number): Adjust code to use parser state.
1995 (f_parse): New function.
1996 * f-lang.h: Forward declare "struct parser_state".
1997 (f_parse): Add "struct parser_state" argument.
1998 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2000 (yyparse): Redefine macro for java_parse_internal.
2001 (pstate): New variable.
2002 (push_expression_name, push_expression_name, insert_exp): Add
2003 "struct parser_state" argument.
2004 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2005 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2006 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2007 PostIncrementExpression, PostDecrementExpression,
2008 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2009 UnaryExpressionNotPlusMinus, CastExpression,
2010 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2011 RelationalExpression, EqualityExpression, AndExpression,
2012 ExclusiveOrExpression, InclusiveOrExpression,
2013 ConditionalAndExpression, ConditionalOrExpression,
2014 ConditionalExpression, Assignment, LeftHandSide): Update
2015 calls to write_exp* and similars in order to use parser state.
2016 (parse_number): Ajust code to use parser state.
2018 (java_parse): New function.
2019 (push_variable): Add "struct parser_state" argument. Adjust
2020 code to user parser state.
2021 (push_fieldnames, push_qualified_expression_name,
2022 push_expression_name, insert_exp): Likewise.
2023 * jv-lang.h: Forward declare "struct parser_state".
2024 (java_parse): Add "struct parser_state" argument.
2025 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2027 (yyparse): Redefine macro to m2_parse_internal.
2028 (pstate): New variable.
2029 (type_exp, exp, fblock, variable, type): Update calls to
2030 write_exp* and similars to use parser state.
2032 (m2_parse): New function.
2033 * m2-lang.h: Forward declare "struct parser_state".
2034 (m2_parse): Add "struct parser_state" argument.
2035 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2036 * objc-lang.h: Forward declare "struct parser_state".
2037 (end_msglist): Add "struct parser_state" argument.
2038 * p-exp.y (parse_type): Rewrite macro to use parser state.
2039 (yyparse): Redefine macro to pascal_parse_internal.
2040 (pstate): New variable.
2041 (parse_number): Add "struct parser_state" argument.
2042 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2043 write_exp* and similars in order to use parser state.
2044 (parse_number, yylex): Adjust code to use parser state.
2045 (pascal_parse): New function.
2046 * p-lang.h: Forward declare "struct parser_state".
2047 (pascal_parse): Add "struct parser_state" argument.
2048 * go-exp.y (parse_type): Rewrite macro to use parser state.
2049 (yyparse): Redefine macro to go_parse_internal.
2050 (pstate): New variable.
2051 (parse_number): Add "struct parser_state" argument.
2052 (type_exp, exp1, exp, variable, type): Update calls to
2053 write_exp* and similars in order to use parser state.
2054 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2055 to use parser state.
2056 (go_parse): Likewise.
2057 * go-lang.h: Forward declare "struct parser_state".
2058 (go_parse): Add "struct parser_state" argument.
2060 2014-03-27 Doug Evans <dje@google.com>
2062 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2064 2014-03-27 Doug Evans <dje@google.com>
2066 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2067 Remove argument abbrev_section. All callers updated.
2069 2014-03-27 Doug Evans <dje@google.com>
2071 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2072 addr_base, ranges_base.
2074 2014-03-26 Keith Seitz <keiths@redhat.com>
2076 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2077 types, not VAR_DOMAIN.
2079 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2081 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2083 * features/nios2-linux.c: Regenerated.
2084 * features/nios2.c: Regenerated.
2086 2014-03-25 Pedro Alves <palves@redhat.com>
2088 * cli/cli-script.c (script_from_file): Force the interpreter to
2091 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2093 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2094 small stack allocation.
2096 2014-03-24 Tristan Gingold <gingold@adacore.com>
2098 * darwin-nat.c (exc_server): Remove unused prototype.
2099 (darwin_dump_message): Correctly display data on x86_64.
2100 (darwin_encode_reply): Fix style.
2101 Add comments and fix indentation.
2103 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2105 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2107 2014-03-22 Doug Evans <xdje42@gmail.com>
2109 * infcmd.c: Whitespace fixes.
2110 (interrupt_command): Merge two function comments into one.
2112 2014-03-22 Doug Evans <xdje42@gmail.com>
2114 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2117 2014-03-22 Yao Qi <yao@codesourcery.com>
2119 * remote.c (target_read_live_memory): Remove.
2120 (memory_xfer_live_readonly_partial): Rename it to
2121 remote_xfer_live_readonly_partial. Remove argument 'object'.
2122 All callers updated. Call remote_read_bytes_1
2123 instead of target_read_live_memory.
2124 * tracepoint.c (set_traceframe_number): Remove.
2125 (make_cleanup_restore_traceframe_number): Likewise .
2126 * tracepoint.h (set_traceframe_number): Remove declaration.
2127 (make_cleanup_restore_traceframe_number): Likewise.
2129 2014-03-22 Yao Qi <yao@codesourcery.com>
2131 * remote.c (remote_read_bytes): Move code on reading from the
2133 (remote_read_bytes_1): ... here. New function.
2135 2014-03-22 Yao Qi <yao@codesourcery.com>
2137 * ctf.c (ctf_xfer_partial): Check the return value of
2138 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2139 return TARGET_XFER_UNAVAILABLE.
2140 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2141 * target.c (target_read_live_memory): Move it to remote.c.
2142 (memory_xfer_live_readonly_partial): Likewise.
2143 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2144 * remote.c (target_read_live_memory): Moved from target.c.
2145 (memory_xfer_live_readonly_partial): Likewise.
2146 (remote_read_bytes): Factored out from
2147 memory_xfer_partial_1.
2149 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2151 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2154 2014-03-21 Pedro Alves <palves@redhat.com>
2156 * infrun.c (normal_stop): Extend comment.
2158 2014-03-21 Hui Zhu <hui@codesourcery.com>
2159 Pedro Alves <palves@redhat.com>
2161 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2163 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2164 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2165 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2167 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2169 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2170 `z' formatted output modifier.
2172 2014-03-20 Tom Tromey <tromey@redhat.com>
2173 Sergio Durigan Junior <sergiodj@redhat.com>
2175 * probe.c (parse_probes): Turn assert into an ordinary error.
2176 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2177 exceptions when parsing probes. Rearrange the code for clarity.
2179 2014-03-20 Tom Tromey <tromey@redhat.com>
2182 * top.c (execute_command): Only dispatch events if the command
2185 2014-03-20 Tom Tromey <tromey@redhat.com>
2188 * infcall.c: Include event-top.h.
2189 (run_inferior_call): Call async_disable_stdin if needed.
2191 2014-03-20 Pedro Alves <palves@redhat.com>
2193 * infrun.c (prepare_to_proceed): Delete.
2194 (thread_still_needs_step_over): New function.
2195 (find_thread_needs_step_over): New function.
2196 (proceed): If the current thread needs a step-over, set its
2197 steping_over_breakpoint flag. Adjust to use
2198 find_thread_needs_step_over instead of prepare_to_proceed.
2199 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2200 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2202 (switch_back_to_stepped_thread): Step over breakpoints of all
2203 threads not the stepping thread, before switching back to the
2206 2014-03-20 Pedro Alves <palves@redhat.com>
2208 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2210 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2211 * infrun.c (saved_singlestep_ptid)
2212 (stepping_past_singlestep_breakpoint): Delete.
2213 (resume): Remove stepping_past_singlestep_breakpoint handling.
2214 (proceed): Store the prev_pc of the stepping thread too.
2215 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2217 (enum infwait_states): Delete infwait_thread_hop_state.
2218 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2220 (handle_inferior_event): Adjust.
2221 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2222 handling and the thread-hop code. Before removing single-step
2223 breakpoints, check whether the thread hit a single-step breakpoint
2224 of another thread. If it did, the trap is not a random signal.
2225 (switch_back_to_stepped_thread): If the event thread hit a
2226 single-step breakpoint, unblock it before switching to the
2227 stepping thread. Handle the case of the stepped thread having
2229 (keep_going): Handle the case of the current thread moving past a
2230 single-step breakpoint.
2232 2014-03-20 Pedro Alves <palves@redhat.com>
2235 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2236 are being stepped over.
2237 (breakpoint_address_match): Make extern.
2238 * breakpoint.h (breakpoint_address_match): New declaration.
2239 * inferior.h (stepping_past_instruction_at): New declaration.
2240 * infrun.c (struct step_over_info): New type.
2241 (step_over_info): New global.
2242 (set_step_over_info, clear_step_over_info)
2243 (stepping_past_instruction_at): New functions.
2244 (handle_inferior_event): Clear the step-over info when
2245 trap_expected is cleared.
2246 (resume): Remove now stale comment.
2247 (clear_proceed_status): Clear step-over info.
2248 (proceed): Adjust step-over handling to set or clear the step-over
2249 info instead of removing all breakpoints.
2250 (handle_signal_stop): When setting up a thread-hop, don't remove
2252 (stop_stepping): Clear step-over info.
2253 (keep_going): Adjust step-over handling to set or clear step-over
2254 info and then always inserting breakpoints, instead of removing
2255 all breakpoints when stepping over one.
2257 2014-03-20 Pedro Alves <palves@redhat.com>
2259 * infrun.c (previous_inferior_ptid): Adjust comment.
2260 (deferred_step_ptid): Delete.
2261 (infrun_thread_ptid_changed, prepare_to_proceed)
2262 (init_wait_for_inferior): Adjust.
2263 (handle_signal_stop): Delete deferred_step_ptid handling.
2265 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 * defs.h (sync_quit_force_run): New declaration.
2269 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2270 * event-top.c (async_sigterm_handler): New declaration.
2271 (async_sigterm_token): New variable.
2272 (async_init_signals): Create also async_sigterm_token.
2273 (async_sigterm_handler): New function.
2274 (sync_quit_force_run): New variable.
2275 (handle_sigterm): Replace quit_force call by other calls.
2276 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2278 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2280 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2281 offset into SPE pseudo registers.
2283 2014-03-18 Pedro Alves <palves@redhat.com>
2286 * inferior.h (print_stop_event): Declare.
2287 * infrun.c (print_stop_event): New, factored out from ...
2288 (normal_stop): ... this.
2289 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2290 of bpstat_print/print_stack_frame.
2292 2014-03-17 Tom Tromey <tromey@redhat.com>
2294 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2296 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2298 * ada-lang.c (decode_constrained_packed_array): Perform a
2299 minimal coercion for reference with coerce_ref instead of
2302 2014-03-17 Tristan Gingold <gingold@adacore.com>
2304 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2305 (darwin_solib_create_inferior_hook): Emit a warning if version
2308 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2310 * python/py-value.c (get_field_flag): Cast flag_name argument to
2311 PyObject_GetAttrString to support Python 2.4.
2313 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2315 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2316 (Global Maintainers): Remove Jan Kratochvil.
2318 2014-03-14 Pedro Alves <palves@redhat.com>
2320 * inferior.h (terminal_ours_for_output): Rename to ...
2321 (child_terminal_ours_for_output): ... this.
2322 (terminal_save_ours): Rename to ...
2323 (child_terminal_save_ours): ... this.
2324 (terminal_ours): Rename to ...
2325 (child_terminal_ours): ... this.
2326 (terminal_inferior): Rename to ...
2327 (child_terminal_inferior): ... this.
2328 (terminal_init_inferior): Rename to ...
2329 (child_terminal_init_inferior): ... this.
2330 (terminal_init_inferior_with_pgrp): Rename to ...
2331 (child_terminal_init_inferior_with_pgrp): ... this.
2332 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2333 (child_terminal_init_with_pgrp): ... this.
2334 (terminal_save_ours): Rename to ...
2335 (child_terminal_save_ours): ... this.
2336 (terminal_init_inferior): Rename to ...
2337 (child_terminal_init): ... this. Adjust.
2338 (terminal_inferior): Rename to ...
2339 (child_terminal_inferior): ... this.
2340 (terminal_ours_for_output): Rename to ...
2341 (child_terminal_ours_for_output): ... this. Adjust.
2342 (terminal_ours): Rename to ...
2343 (child_terminal_ours): ... this.
2344 (terminal_ours_1): Rename to ...
2345 (child_terminal_ours_1): ... this. Adjust.
2346 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2347 * windows-nat.c (do_initial_windows_stuff): Adjust.
2348 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2349 (gnu_terminal_init): ... this. Adjust.
2350 (gnu_target): Adjust.
2351 * inf-child.c (inf_child_target): Adjust.
2353 2014-03-13 Doug Evans <xdje42@gmail.com>
2356 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2359 2014-03-13 Doug Evans <xdje42@gmail.com>
2361 * value.c (record_latest_value): Call release_value_or_incref
2362 instead of release_value.
2364 2014-03-13 Pedro Alves <palves@redhat.com>
2366 * procfs.c (procfs_target): Don't override to_shortname,
2367 to_longname or to_doc.
2369 2014-03-13 Pedro Alves <palves@redhat.com>
2371 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2372 Unix in user visible strings.
2374 2014-03-12 Stan Shebs <stan@codesourcery.com>
2376 * gdbtypes.h: Annotate comments for Doxygen, add a page
2377 block comment with some general info.
2379 2014-03-12 Pedro Alves <palves@redhat.com>
2381 * infcmd.c (prepare_execution_command): New function, factored out
2382 from several execution commands.
2383 (run_command_1, continue_command, step_1, jump_command)
2384 (signal_command, until_command, advance_command, finish_command)
2385 (attach_command): Use prepare_execution_command.
2387 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2389 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2392 (struct arm_linux_thread_points): Removed.
2393 (struct arm_linux_process_info): New.
2394 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2395 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2396 (arm_linux_find_breakpoints_by_tid): Removed.
2397 (struct arch_lwp_info): New.
2398 (arm_linux_find_process_pid): New functions.
2399 (arm_linux_add_process): New functions.
2400 (arm_linux_process_info_get): New functions.
2401 (arm_linux_forget_process): New function.
2402 (arm_linux_get_debug_reg_state): New function.
2403 (struct update_registers_data): New.
2404 (update_registers_callback): New function.
2405 (arm_linux_insert_hw_breakpoint1): Updated.
2406 (arm_linux_remove_hw_breakpoint1): Updated.
2407 (arm_linux_insert_hw_breakpoint): Updated.
2408 (arm_linux_remove_hw_breakpoint): Updated.
2409 (arm_linux_insert_watchpoint): Updated.
2410 (arm_linux_remove_watchpoint): Updated.
2411 (arm_linux_new_thread): Updated.
2412 (arm_linux_prepare_to_resume): New function.
2413 (arm_linux_new_fork): New function.
2414 (_initialize_arm_linux_nat): Updated.
2416 2014-03-12 Pedro Alves <palves@redhat.com>
2418 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2420 2014-03-12 Tom Tromey <tromey@redhat.com>
2422 * inf-child.c (return_zero): New function.
2423 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2424 * aix-thread.c (aix_thread_inferior_created): New function.
2425 (aix_thread_attach): Remove.
2426 (init_aix_thread_ops): Don't set to_attach.
2427 (_initialize_aix_thread): Register inferior_created observer.
2428 * corelow.c (init_core_ops): Don't set to_attach or
2430 * exec.c (init_exec_ops): Don't set to_attach or
2432 * infcmd.c (run_command_1): Use find_run_target. Make direct
2434 (attach_command): Use find_attach_target. Make direct target
2436 * record-btrace.c (init_record_btrace_ops): Don't set
2438 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2440 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2441 set to_create_inferior.
2442 * target.c (complete_target_initialization): Add assertion.
2443 (target_create_inferior): Remove.
2444 (find_default_attach, find_default_create_inferior): Remove.
2445 (find_attach_target, find_run_target): New functions.
2446 (find_default_is_async_p, find_default_can_async_p)
2447 (target_supports_non_stop, target_attach): Remove.
2448 (init_dummy_target): Don't set to_create_inferior or
2449 to_supports_non_stop.
2450 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2451 TARGET_DEFAULT_FUNC.
2452 <to_create_inferior>: Add comment.
2453 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2454 TARGET_DEFAULT_RETURN.
2455 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2456 (find_attach_target, find_run_target): Declare.
2457 (target_create_inferior): Remove.
2458 (target_has_execution_1): Update comment.
2459 (target_supports_non_stop): Remove.
2460 * target-delegates.c: Rebuild.
2462 2014-03-12 Pedro Alves <palves@redhat.com>
2464 * inf-child.h: Update comment to not mention Unix.
2466 2014-03-12 Pedro Alves <palves@redhat.com>
2468 * inf-child.c: Update top comment to not mention Unix. Add
2469 generic comment describing how this target is meant to be used.
2470 (inf_child_post_attach, inf_child_post_startup_inferior)
2471 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2474 2014-03-12 Pedro Alves <palves@redhat.com>
2476 * nto-procfs.c: Include inf-child.h.
2477 (procfs_ops): Delete global.
2478 (procfs_can_run): Delete method.
2479 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2480 target pointer instead of referencing procfs_ops.
2481 (procfs_prepare_to_store): Delete.
2482 (init_procfs_ops): Delete function.
2483 (procfs_target): New function, based on init_procfs_ops, but
2484 inherit inf_child_target.
2485 (_initialize_procfs): Use procfs_target.
2487 2014-03-12 Pedro Alves <palves@redhat.com>
2489 * windows-nat.c: Include inf-child.h.
2490 (windows_ops): Delete global.
2491 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2493 (init_windows_ops): Delete function.
2494 (windows_target): New function, based on init_windows_ops, but
2495 inherit inf_child_target.
2496 (_initialize_windows_nat): Use windows_target. Install x86
2497 specific target methods here.
2499 2014-03-10 Doug Evans <xdje42@gmail.com>
2501 * guile/guile.c (call_initialize_gdb_module): New function.
2502 (initialize_guile): Replace call to scm_init_guile with call to
2505 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2507 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2508 in call to TYPE_CODE macro.
2510 2014-03-10 Jerome Guitton <guitton@adacore.com>
2512 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2513 Resolve tagged types to full view.
2515 2014-03-10 Hui Zhu <hui@codesourcery.com>
2517 * target.h (target_insert_breakpoint): Remove "hardware" from its
2520 2014-03-07 Doug Evans <dje@google.com>
2522 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2524 2014-03-07 Doug Evans <dje@google.com>
2526 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2527 Remove unused local comp_dir_attr. Assert exactly one of
2528 stub_comp_unit_die, stub_comp_dir is non-NULL.
2530 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2532 * target.h (complete_target_initialization, add_target):
2535 2014-03-07 Pedro Alves <palves@redhat.com>
2537 * go32-nat.c: Include inf-child.h.
2538 (go32_ops): Delete global.
2539 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2541 (go32_create_inferior): Push the passed in target pointer instead
2542 of referencing go32_ops.
2543 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2544 (go32_target): New function, based on init_go32_ops, but inherit
2546 (_initialize_go32_nat): Use go32_target. Move parts of
2549 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2551 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2552 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2553 SYMBOL_VALUE_ADDRESS.
2554 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2556 2014-03-06 Yao Qi <yao@codesourcery.com>
2558 * breakpoint.c (get_tracepoint_by_number): Remove argument
2559 optional_p. All callers updated. Adjust comments. Update
2561 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2563 2014-03-06 Yao Qi <yao@codesourcery.com>
2565 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2566 early if get_number returns zero. Use 'p' instead of 'args'.
2568 2014-03-06 Yao Qi <yao@codesourcery.com>
2570 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2573 2014-03-06 Yao Qi <yao@codesourcery.com>
2575 PR breakpoints/16508
2576 * tracepoint.c (check_trace_running): New function.
2577 (trace_find_command): Move code to check_trace_running and
2578 call check_trace_running.
2579 (trace_find_pc_command): Likewise.
2580 (trace_find_tracepoint_command): Likewise.
2581 (trace_find_line_command): Likewise.
2582 (trace_find_range_command): Likewise.
2583 * tracepoint.h (check_trace_running): Likewise.
2584 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2586 2014-03-06 Yao Qi <yao@codesourcery.com>
2588 * target.h (struct target_ops) <to_traceframe_info>: Use
2589 TARGET_DEFAULT_NORETURN (tcomplain ()).
2590 * target-delegates.c: Regenerated.
2592 2014-03-05 Pedro Alves <palves@redhat.com>
2595 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2596 void. Update comment.
2597 (dcache_xfer_memory): Delete.
2598 (dcache_read_memory_partial): New, based on the read bits of
2600 (dcache_update): Add status parameter. Use ULONGEST for len, and
2601 adjust. Discard cache lines if the reason for the update was
2603 * dcache.h (dcache_xfer_memory): Delete declaration.
2604 (dcache_read_memory_partial): New declaration.
2605 (dcache_update): Update prototype.
2606 * target.c (raw_memory_xfer_partial): Update the dcache here.
2607 (memory_xfer_partial_1): Don't handle dcache writes here.
2609 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2611 * remote-sim.c (gdbsim_load): Add const to prog.
2613 2014-03-03 Tom Tromey <tromey@redhat.com>
2615 * elfread.c (probe_key): Change to bfd_data.
2616 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2617 now per-BFD, not per-objfile.
2618 * stap-probe.c (stap_probe_destroy): Update comment.
2619 (handle_stap_probe): Allocate on the per-BFD obstack.
2621 2014-03-03 Tom Tromey <tromey@redhat.com>
2623 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2624 * breakpoint.c (create_longjmp_master_breakpoint): Use
2626 (add_location_to_breakpoint, bkpt_probe_insert_location)
2627 (bkpt_probe_remove_location): Update.
2628 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2629 * elfread.c (elf_symfile_relocate_probe): Remove.
2630 (elf_probe_fns): Update.
2631 (insert_exception_resume_breakpoint): Change type of "probe"
2632 parameter to bound_probe.
2633 (check_exception_resume): Update.
2634 * objfiles.c (objfile_relocate1): Don't relocate probes.
2635 * probe.c (bound_probe_s): New typedef.
2636 (parse_probes): Use get_probe_address. Set sal's objfile.
2637 (find_probe_by_pc): Return a bound_probe.
2638 (collect_probes): Return a VEC(bound_probe_s).
2639 (compare_probes): Update.
2640 (gen_ui_out_table_header_info): Change type of "probes"
2642 (info_probes_for_ops): Update.
2643 (get_probe_address): New function.
2644 (probe_safe_evaluate_at_pc): Update.
2645 * probe.h (struct probe_ops) <get_probe_address>: New field.
2646 <set_semaphore, clear_semaphore>: Add objfile parameter.
2647 (struct probe) <objfile>: Remove field.
2649 <address>: Update comment.
2650 (struct bound_probe): New.
2651 (find_probe_by_pc): Return a bound_probe.
2652 (get_probe_address): Declare.
2653 * solib-svr4.c (struct probe_and_action) <address>: New field.
2654 (hash_probe_and_action, equal_probe_and_action): Update.
2655 (register_solib_event_probe): Add address parameter.
2656 (solib_event_probe_at): Update.
2657 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2659 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2660 (stap_get_probe_address): New function.
2661 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2662 (compile_probe_arg): Update.
2663 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2665 (handle_stap_probe): Don't relocate the probe.
2666 (stap_relocate): Remove.
2667 (stap_gen_info_probes_table_values): Update.
2668 (stap_probe_ops): Remove stap_relocate.
2669 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2670 (debug_sym_probe_fns): Update.
2671 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2672 * symtab.c (init_sal): Use memset.
2673 * symtab.h (struct symtab_and_line) <objfile>: New field.
2674 * tracepoint.c (start_tracing, stop_tracing): Update.
2676 2014-03-03 Tom Tromey <tromey@redhat.com>
2678 * probe.h (parse_probes, find_probe_by_pc)
2679 (find_probes_in_objfile): Fix comments.
2681 2014-03-02 Doug Evans <xdje42@gmail.com>
2683 * infrun.c (handle_signal_stop): Replace test for
2684 TARGET_WAITKIND_STOPPED with an assert.
2686 2014-03-02 Doug Evans <xdje42@gmail.com>
2688 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2690 2014-03-02 Doug Evans <xdje42@gmail.com>
2692 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2694 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2696 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2698 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2700 * i386obsd-nat.c: Include "obsd-nat.h".
2701 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2703 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2705 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2707 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2709 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2711 * mips64obsd-nat.c: Include "obsd-nath".
2712 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2714 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2716 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2718 * amd64obsd-nat.c: Include "obsd-nat,h.
2719 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2721 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2723 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2725 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2726 (find_overload_match): Update call to find_oload_champ.
2727 (find_oload_champ_namespace_loop): Likewise
2729 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2731 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2733 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2734 * config/sparc/obsd64.mh: New file.
2735 * sparc64obsd-nat.c: New file.
2737 * obsd-nat.h: New file.
2738 * obsd-nat.c: New file.
2739 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2740 (ALLDEPFILES): Add obsd-nat.c.
2742 2014-02-28 Tom Tromey <tromey@redhat.com>
2744 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2745 * cli-out.h (cli_ui_out_impl): Now const.
2746 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2747 * ui-out.c (struct ui_out) <impl>: Now const.
2748 (default_ui_out_impl): Now const.
2749 (ui_out_new): Make 'impl' parameter const.
2750 * ui-out.h (ui_out_new): Update.
2752 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2754 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2756 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2758 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2760 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2762 Additional PR 8882 fix.
2763 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2765 2014-02-27 Pedro Alves <palves@redhat.com>
2767 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2770 2014-02-27 Pedro Alves <palves@redhat.com>
2773 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2774 * nat/linux-waitpid.c: Include string.h.
2775 (status_to_str): Moved here and made extern.
2776 * nat/linux-waitpid.h (status_to_str): New declaration.
2778 2014-02-27 Hui Zhu <hui@codesourcery.com>
2781 * infrun.c (ptid_match): Move ...
2782 * common/ptid.c (ptid_match): ... here.
2783 * inferior.h (ptid_match): Move ...
2784 * common/ptid.h (ptid_match): ... here.
2786 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2788 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2789 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2792 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2794 * obsd-tdep.c (obsd_auxv_parse): New function.
2795 (obsd_init_abi): Set auxv_parse.
2797 * gdbarch.sh (auxv_parse): New.
2798 * gdbarch.h: Regenerated.
2799 * gdbarch.c: Regenerated.
2800 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2802 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2804 * guile/scm-value.c (gdbscm_history_append_x): New function.
2805 (value_functions): Add it.
2807 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2809 * dwarf2read.c (attr_value_as_address): New function.
2810 (dwarf2_find_base_address, read_call_site_scope): Use
2811 attr_value_as_address in place of DW_ADDR.
2812 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2813 the low and high addresses. Slight rework of the handling
2814 of the high pc being a constant form, and limit it to
2815 DWARF verson 4 or higher.
2816 (dwarf2_record_block_ranges): Likewise.
2817 (read_partial_die): Likewise.
2818 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2820 2014-02-26 Tom Tromey <tromey@redhat.com>
2822 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2824 2014-02-26 Tom Tromey <tromey@redhat.com>
2826 * elfread.c (elf_read_minimal_symbols): Return early if
2827 minimal symbols have already been read. Add "ei" parameter.
2828 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2829 * minsyms.c (prim_record_minimal_symbol_full): Update.
2830 * objfiles.h (struct objstats) <n_minsyms>: Move...
2831 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2832 * symmisc.c (print_objfile_statistics): Update.
2834 2014-02-26 Tom Tromey <tromey@redhat.com>
2836 * elfread.c (elf_read_minimal_symbols): New function, from
2838 (elf_symfile_read): Call it.
2840 2014-02-26 Tom Tromey <tromey@redhat.com>
2842 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2843 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2844 (lookup_minimal_symbol_solib_trampoline)
2845 (lookup_minimal_symbol_by_pc_section_1)
2846 (lookup_minimal_symbol_and_objfile): Update.
2847 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2848 Don't allocate a minimal symbol if minsyms have already been read.
2849 (build_minimal_symbol_hash_tables): Update.
2850 (install_minimal_symbols): Do nothing if minsyms already read.
2851 Use the per-BFD obstack.
2852 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2853 * objfiles.c (allocate_objfile): Call
2854 terminate_minimal_symbol_table later.
2855 (have_minimal_symbols): Update.
2856 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2857 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2858 Move from struct objfile.
2859 <minsyms_read>: New field.
2860 (struct objfile) <msymbols, minimal_symbol_count,
2861 msymbol_hash, msymbol_demangled_hash>: Move.
2862 (ALL_OBJFILE_MSYMBOLS): Update.
2863 * symfile.c (read_symbols): Set minsyms_read.
2864 (reread_symbols): Update.
2865 * symmisc.c (dump_objfile, dump_msymbols): Update.
2867 2014-02-26 Tom Tromey <tromey@redhat.com>
2869 * minsyms.c (msymbols_sort): Remove.
2870 * minsyms.h (msymbols_sort): Remove.
2871 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2872 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2873 * elfread.c (elf_symtab_read): Don't add section offsets.
2874 * xcoffread.c (record_minimal_symbol): Don't add section offset
2875 to minimal symbol address.
2876 * somread.c (text_offset, data_offset): Remove.
2877 (som_symtab_read): Don't add section offsets to minimal symbol
2879 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2880 Don't add section offsets to minimal symbols.
2881 * coffread.c (coff_symtab_read): Don't add section offsets
2882 to minimal symbol addresses.
2883 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2884 to minimal symbol addresses.
2885 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2886 section offset to minimal symbol addresses.
2887 * mdebugread.c (parse_partial_symbols): Don't add section
2888 offset to minimal symbol addresses.
2889 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2890 offset to minimal symbol addresses.
2892 2014-02-26 Tom Tromey <tromey@redhat.com>
2894 * ada-lang.c (ada_main_name): Update.
2895 (ada_add_standard_exceptions): Update.
2896 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2897 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2898 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2899 * auxv.c (ld_so_xfer_auxv): Update.
2900 * avr-tdep.c (avr_scan_prologue): Update.
2901 * ax-gdb.c (gen_var_ref): Update.
2902 * blockframe.c (get_pc_function_start)
2903 (find_pc_partial_function_gnu_ifunc): Update.
2904 * breakpoint.c (create_overlay_event_breakpoint)
2905 (create_longjmp_master_breakpoint)
2906 (create_std_terminate_master_breakpoint)
2907 (create_exception_master_breakpoint): Update.
2908 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2909 * c-valprint.c (c_val_print): Update.
2910 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2911 * common/agent.c (agent_look_up_symbols): Update.
2912 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2913 * dwarf2loc.c (call_site_to_target_addr): Update.
2914 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2915 * elfread.c (elf_gnu_ifunc_record_cache)
2916 (elf_gnu_ifunc_resolve_by_got): Update.
2917 * findvar.c (default_read_var_value): Update.
2918 * frame.c (inside_main_func): Update.
2919 * frv-tdep.c (frv_frame_this_id): Update.
2920 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2921 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2923 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2924 (hppa_hpux_find_dummy_bpaddr): Update.
2925 * hppa-tdep.c (hppa_symbol_address): Update.
2926 * infcmd.c (until_next_command): Update.
2927 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2929 * linespec.c (minsym_found, add_minsym): Update.
2930 * linux-nat.c (get_signo): Update.
2931 * linux-thread-db.c (inferior_has_bug): Update.
2932 * m32c-tdep.c (m32c_return_value)
2933 (m32c_m16c_address_to_pointer): Update.
2934 * m32r-tdep.c (m32r_frame_this_id): Update.
2935 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2936 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2937 * maint.c (maintenance_translate_address): Update.
2938 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2939 (frob_address): New function.
2940 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2941 frob_address. Rename parameter to "pc_in".
2942 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2944 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2946 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2947 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2948 * objc-lang.c (find_objc_msgsend): Update.
2949 * objfiles.c (objfile_relocate1): Update.
2950 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2951 * p-valprint.c (pascal_val_print): Update.
2952 * parse.c (write_exp_msymbol): Update.
2953 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2954 (ppc_elfv2_skip_entrypoint): Update.
2955 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2956 * printcmd.c (build_address_symbolic, msym_info)
2957 (address_info): Update.
2958 * proc-service.c (ps_pglobal_lookup): Update.
2959 * psymtab.c (find_pc_sect_psymtab_closer)
2960 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2961 Change msymbol parameter to bound_minimal_symbol.
2962 * ravenscar-thread.c (get_running_thread_id): Update.
2963 * remote.c (remote_check_symbols): Update.
2964 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2966 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2967 * solib-dsbt.c (lm_base): Update.
2968 * solib-frv.c (lm_base, main_got): Update.
2969 * solib-irix.c (locate_base): Update.
2970 * solib-som.c (som_solib_create_inferior_hook)
2971 (link_map_start): Update.
2972 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2973 * solib-svr4.c (elf_locate_base, enable_break): Update.
2974 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2975 (flush_ea_cache): Update.
2976 * stabsread.c (define_symbol, scan_file_globals): Update.
2977 * stack.c (find_frame_funname): Update.
2978 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2979 (debug_qf_find_pc_sect_symtab): Update.
2980 * symfile.c (simple_read_overlay_table)
2981 (simple_overlay_update): Update.
2982 * symfile.h (struct quick_symbol_functions)
2983 <find_pc_sect_symtab>: Change type of msymbol to
2984 bound_minimal_symbol.
2985 * symmisc.c (dump_msymbols): Update.
2986 * symtab.c (find_pc_sect_symtab_via_partial)
2987 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2988 (search_symbols, print_msymbol_info): Update.
2989 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2990 (MSYMBOL_VALUE_ADDRESS): Redefine.
2991 (BMSYMBOL_VALUE_ADDRESS): New macro.
2992 * tracepoint.c (scope_info): Update.
2993 * tui/tui-disasm.c (tui_find_disassembly_address)
2994 (tui_get_begin_asm_address): Update.
2995 * valops.c (find_function_in_inferior): Update.
2996 * value.c (value_static_field, value_fn_field): Update.
2998 2014-02-26 Tom Tromey <tromey@redhat.com>
3000 * ada-lang.c (ada_update_initial_language): Update.
3001 (ada_main_name, ada_has_this_exception_support): Update.
3002 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3003 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3004 * arm-tdep.c (arm_skip_stub): Update.
3005 * auxv.c (ld_so_xfer_auxv): Update.
3006 * avr-tdep.c (avr_scan_prologue): Update.
3007 * ax-gdb.c (gen_var_ref): Update.
3008 * breakpoint.c (struct breakpoint_objfile_data)
3009 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3010 type to bound_minimal_symbol.
3011 (create_overlay_event_breakpoint)
3012 (create_longjmp_master_breakpoint)
3013 (create_std_terminate_master_breakpoint)
3014 (create_exception_master_breakpoint): Update.
3015 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3016 * c-exp.y (classify_name): Update.
3017 * coffread.c (coff_symfile_read): Update.
3018 * common/agent.c (agent_look_up_symbols): Update.
3019 * d-lang.c (d_main_name): Update.
3020 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3021 * dec-thread.c (enable_dec_thread): Update.
3022 * dwarf2loc.c (call_site_to_target_addr): Update.
3023 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3024 * eval.c (evaluate_subexp_standard): Update.
3025 * findvar.c (struct minsym_lookup_data) <result>: Change type
3026 to bound_minimal_symbol.
3028 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3029 * frame.c (inside_main_func): Update.
3030 * frv-tdep.c (frv_frame_this_id): Update.
3031 * gcore.c (call_target_sbrk): Update.
3032 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3033 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3035 * go-lang.c (go_main_name): Update.
3036 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3037 (hppa_hpux_find_import_stub_for_addr): Update.
3038 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3039 Update. Change return type.
3040 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3042 * jit.c (jit_breakpoint_re_set_internal): Update.
3043 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3045 * linux-nat.c (get_signo): Update.
3046 * linux-thread-db.c (inferior_has_bug): Update
3047 * m32c-tdep.c (m32c_return_value)
3048 (m32c_m16c_address_to_pointer): Update.
3049 * m32r-tdep.c (m32r_frame_this_id): Update.
3050 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3051 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3052 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3053 lookup_minimal_symbol. Change return type.
3054 (lookup_minimal_symbol): Remove.
3055 (lookup_bound_minimal_symbol): Update.
3056 (lookup_minimal_symbol_text): Change return type.
3057 (lookup_minimal_symbol_solib_trampoline): Change return type.
3058 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3059 (lookup_minimal_symbol_solib_trampoline): Change return type.
3060 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3061 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3062 (value_nsstring, find_imps): Update.
3063 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3064 * p-lang.c (pascal_main_name): Update.
3065 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3066 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3067 * proc-service.c (ps_pglobal_lookup): Update.
3068 * ravenscar-thread.c (get_running_thread_msymbol): Change
3070 (has_ravenscar_runtime, get_running_thread_id): Update.
3071 * remote.c (remote_check_symbols): Update.
3072 * sol-thread.c (ps_pglobal_lookup): Update.
3073 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3074 * solib-dsbt.c (lm_base): Update.
3075 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3077 * solib-irix.c (locate_base): Update.
3078 * solib-som.c (som_solib_create_inferior_hook)
3079 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3081 * solib-spu.c (spu_enable_break): Update.
3082 * solib-svr4.c (elf_locate_base, enable_break): Update.
3083 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3084 (flush_ea_cache): Update.
3085 * stabsread.c (define_symbol): Update.
3086 * symfile.c (simple_read_overlay_table): Update.
3087 * symtab.c (find_pc_sect_line): Update.
3088 * tracepoint.c (scope_info): Update.
3089 * tui-disasm.c (tui_get_begin_asm_address): Update.
3090 * value.c (value_static_field): Update.
3092 2014-02-26 Tom Tromey <tromey@redhat.com>
3094 * minsyms.c (prim_record_minimal_symbol_full): Use
3095 SET_MSYMBOL_VALUE_ADDRESS.
3096 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3097 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3098 SET_MSYMBOL_VALUE_ADDRESS.
3099 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3100 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3102 2014-02-26 Tom Tromey <tromey@redhat.com>
3104 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3105 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3106 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3107 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3108 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3109 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3110 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3111 * ada-lang.c (ada_main_name): Update.
3112 (ada_lookup_simple_minsym): Update.
3113 (ada_make_symbol_completion_list): Update.
3114 (ada_add_standard_exceptions): Update.
3115 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3116 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3117 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3118 * arm-tdep.c (skip_prologue_function): Update.
3119 (arm_skip_stack_protector, arm_skip_stub): Update.
3120 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3121 (arm_wince_skip_main_prologue): Update.
3122 * auxv.c (ld_so_xfer_auxv): Update.
3123 * avr-tdep.c (avr_scan_prologue): Update.
3124 * ax-gdb.c (gen_var_ref): Update.
3125 * block.c (call_site_for_pc): Update.
3126 * blockframe.c (get_pc_function_start): Update.
3127 (find_pc_partial_function_gnu_ifunc): Update.
3128 * breakpoint.c (create_overlay_event_breakpoint): Update.
3129 (create_longjmp_master_breakpoint): Update.
3130 (create_std_terminate_master_breakpoint): Update.
3131 (create_exception_master_breakpoint): Update.
3132 (resolve_sal_pc): Update.
3133 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3134 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3136 * c-valprint.c (c_val_print): Update.
3137 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3138 * coffread.c (coff_symfile_read): Update.
3139 * common/agent.c (agent_look_up_symbols): Update.
3140 * dbxread.c (find_stab_function_addr): Update.
3141 (end_psymtab): Update.
3142 * dwarf2loc.c (call_site_to_target_addr): Update.
3143 (func_verify_no_selftailcall): Update.
3144 (tailcall_dump): Update.
3145 (call_site_find_chain_1): Update.
3146 (dwarf_expr_reg_to_entry_parameter): Update.
3147 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3148 (elf_gnu_ifunc_resolve_by_got): Update.
3149 * f-valprint.c (info_common_command): Update.
3150 * findvar.c (read_var_value): Update.
3151 * frame.c (get_prev_frame_1): Update.
3152 (inside_main_func): Update.
3153 * frv-tdep.c (frv_skip_main_prologue): Update.
3154 (frv_frame_this_id): Update.
3155 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3156 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3157 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3158 (gnuv3_skip_trampoline): Update.
3159 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3160 (hppa64_hpux_in_solib_call_trampoline): Update.
3161 (hppa_hpux_skip_trampoline_code): Update.
3162 (hppa64_hpux_search_dummy_call_sequence): Update.
3163 (hppa_hpux_find_import_stub_for_addr): Update.
3164 (hppa_hpux_find_dummy_bpaddr): Update.
3165 * hppa-tdep.c (hppa_symbol_address)
3166 (hppa_lookup_stub_minimal_symbol): Update.
3167 * i386-tdep.c (i386_skip_main_prologue): Update.
3168 (i386_pe_skip_trampoline_code): Update.
3169 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3170 * infcall.c (get_function_name): Update.
3171 * infcmd.c (until_next_command): Update.
3172 * jit.c (jit_breakpoint_re_set_internal): Update.
3173 (jit_inferior_init): Update.
3174 * linespec.c (minsym_found): Update.
3175 (add_minsym): Update.
3176 * linux-fork.c (info_checkpoints_command): Update.
3177 * linux-nat.c (get_signo): Update.
3178 * linux-thread-db.c (inferior_has_bug): Update.
3179 * m32c-tdep.c (m32c_return_value): Update.
3180 (m32c_m16c_address_to_pointer): Update.
3181 (m32c_m16c_pointer_to_address): Update.
3182 * m32r-tdep.c (m32r_frame_this_id): Update.
3183 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3184 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3185 * maint.c (maintenance_translate_address): Update.
3186 * minsyms.c (add_minsym_to_hash_table): Update.
3187 (add_minsym_to_demangled_hash_table): Update.
3188 (msymbol_objfile): Update.
3189 (lookup_minimal_symbol): Update.
3190 (iterate_over_minimal_symbols): Update.
3191 (lookup_minimal_symbol_text): Update.
3192 (lookup_minimal_symbol_by_pc_name): Update.
3193 (lookup_minimal_symbol_solib_trampoline): Update.
3194 (lookup_minimal_symbol_by_pc_section_1): Update.
3195 (lookup_minimal_symbol_and_objfile): Update.
3196 (prim_record_minimal_symbol_full): Update.
3197 (compare_minimal_symbols): Update.
3198 (compact_minimal_symbols): Update.
3199 (build_minimal_symbol_hash_tables): Update.
3200 (install_minimal_symbols): Update.
3201 (terminate_minimal_symbol_table): Update.
3202 (find_solib_trampoline_target): Update.
3203 (minimal_symbol_upper_bound): Update.
3204 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3205 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3206 (mips_skip_pic_trampoline_code): Update.
3207 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3208 * objc-lang.c (selectors_info): Update.
3209 (classes_info): Update.
3210 (find_methods): Update.
3211 (find_imps): Update.
3212 (find_objc_msgsend): Update.
3213 * objfiles.c (objfile_relocate1): Update.
3214 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3215 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3216 * p-valprint.c (pascal_val_print): Update.
3217 * parse.c (write_exp_msymbol): Update.
3218 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3219 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3220 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3221 * printcmd.c (build_address_symbolic): Update.
3223 (address_info): Update.
3224 * proc-service.c (ps_pglobal_lookup): Update.
3225 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3226 (find_pc_sect_psymtab): Update.
3227 * python/py-framefilter.c (py_print_frame): Update.
3228 * ravenscar-thread.c (get_running_thread_id): Update.
3229 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3231 * remote.c (remote_check_symbols): Update.
3232 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3233 (rs6000_skip_trampoline_code): Update.
3234 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3235 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3236 * solib-dsbt.c (lm_base): Update.
3237 * solib-frv.c (lm_base): Update.
3239 * solib-irix.c (locate_base): Update.
3240 * solib-som.c (som_solib_create_inferior_hook): Update.
3241 (som_solib_desire_dynamic_linker_symbols): Update.
3242 (link_map_start): Update.
3243 * solib-spu.c (spu_enable_break): Update.
3244 (ocl_enable_break): Update.
3245 * solib-svr4.c (elf_locate_base): Update.
3246 (enable_break): Update.
3247 * spu-tdep.c (spu_get_overlay_table): Update.
3248 (spu_catch_start): Update.
3249 (flush_ea_cache): Update.
3250 * stabsread.c (define_symbol): Update.
3251 (scan_file_globals): Update.
3252 * stack.c (find_frame_funname): Update.
3253 (frame_info): Update.
3254 * symfile.c (simple_read_overlay_table): Update.
3255 (simple_overlay_update): Update.
3256 * symmisc.c (dump_msymbols): Update.
3257 * symtab.c (fixup_section): Update.
3258 (find_pc_sect_line): Update.
3259 (skip_prologue_sal): Update.
3260 (search_symbols): Update.
3261 (print_msymbol_info): Update.
3262 (rbreak_command): Update.
3263 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3264 (completion_list_objc_symbol): Update.
3265 (default_make_symbol_completion_list_break_on): Update.
3266 * tracepoint.c (scope_info): Update.
3267 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3268 (tui_get_begin_asm_address): Update.
3269 * valops.c (find_function_in_inferior): Update.
3270 * value.c (value_static_field): Update.
3271 (value_fn_field): Update.
3273 2014-02-26 Tom Tromey <tromey@redhat.com>
3275 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3276 bound minimal symbols. Move code that knows about minsym
3278 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3280 * minsyms.h (minimal_symbol_upper_bound): Declare.
3281 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3282 minimal_symbol_upper_bound.
3284 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3286 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3287 Use the type's name if its basic type does not have a tag.
3289 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3291 * dwarf2read.c (read_subrange_type): Add comment.
3293 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3295 * dwarf2read.c (update_enumeration_type_from_children): New
3296 function, mostly extracted from process_structure_scope.
3297 (read_enumeration_type): Call update_enumeration_type_from_children.
3298 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3299 and flag_flag_enum fields.
3301 2014-02-26 Pedro Alves <palves@redhat.com>
3303 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3304 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3305 to_xfer_partial method.
3307 2014-02-26 Pedro Alves <palves@redhat.com>
3309 * target.c (complete_target_initialization): Don't install
3310 default_xfer_partial as to_xfer_partial hook.
3312 (update_current_target): Don't INHERIT nor de_fault
3313 deprecated_xfer_memory. Delete de_fault macro.
3314 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3315 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3316 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3319 2014-02-26 Pedro Alves <palves@redhat.com>
3321 * go32-nat.c (my_write_child): New function.
3322 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3323 (go32_xfer_partial): New function.
3324 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3325 Instead install a to_xfer_partial hook.
3327 2014-02-26 Pedro Alves <palves@redhat.com>
3329 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3330 to_xfer_partial helper. Rewrite.
3331 (procfs_xfer_partial): New function.
3332 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3333 Install a to_xfer_partial hook.
3335 2014-02-26 Pedro Alves <palves@redhat.com>
3337 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3338 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3339 (m32r_xfer_partial): New function.
3340 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3341 Install a to_xfer_partial hook.
3343 2014-02-26 Pedro Alves <palves@redhat.com>
3345 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3347 (mips_xfer_partial): New function.
3348 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3349 hook. Install a to_xfer_partial hook.
3351 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3353 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3354 * gdbtypes.c (create_array_type_with_stride): New function,
3355 renaming create_array_type, but with an added parameter
3356 called "bit_stride".
3357 (create_array_type): Re-implement using
3358 create_array_type_with_stride.
3359 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3360 and DW_AT_bit_stride attributes.
3362 2014-02-26 Pedro Alves <palves@redhat.com>
3364 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3365 task-specific breakpoints.
3367 2014-02-25 Pedro Alves <palves@redhat.com>
3369 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3370 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3372 2014-02-25 Stan Shebs <stan@codesourcery.com>
3374 * defs.h: Annotate comments for Doxygen.
3376 2014-02-25 Tom Tromey <tromey@redhat.com>
3378 * target.h (target_ignore): Don't declare.
3379 * target.c (target_ignore): Remove.
3381 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3384 * auto-load.c (auto_load_objfile_script_1): Change filename to
3387 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3389 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3390 documentation. Adjust prototype to match the target_ops
3391 to_xfer_partial method. Adjust implementation accordingly.
3393 2014-02-25 Hui Zhu <hui@codesourcery.com>
3395 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3398 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3400 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3401 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3402 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3403 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3404 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3405 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3406 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3407 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3409 (rl78_register_type): Use a data pointer type for SP and
3410 new pseudo registers mentioned above. Use a 16 bit integer
3411 type for all other register pairs.
3412 (rl78_register_name, rl78_g10_register_name): Update for
3413 new pseudo registers.
3414 (rl78_pseudo_register_read): Likewise.
3415 (rl78_pseudo_register_write): Likewise.
3416 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3417 to the newly added pseudo registers.
3419 2014-02-24 Doug Evans <dje@google.com>
3421 * value.c (record_latest_value): Fix comment.
3422 * printcmd.c (print_command_1): Remove code to handle -1 return from
3423 record_latest_value.
3425 2014-02-24 Pedro Alves <palves@redhat.com>
3427 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3428 deprecated_xfer_memory hook.
3429 (procfs_xfer_partial): Call procfs_xfer_memory instead
3430 of the deprecated_xfer_memory target hook.
3431 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3434 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3436 * windows-nat.c (windows_xfer_shared_libraries): Return
3437 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3438 requested object is TARGET_OBJECT_LIBRARIES.
3440 2014-02-24 Yao Qi <yao@codesourcery.com>
3442 * target.h (enum target_xfer_status)
3443 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3444 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3446 * corefile.c (memory_error_message): User updated.
3447 * exec.c (section_table_read_available_memory): Likewise.
3448 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3449 * target.c (target_xfer_status_to_string): Likewise.
3450 (raw_memory_xfer_partial): Likewise.
3451 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3452 * valops.c (read_value_memory): Likewise.
3453 * exec.h: Update comments.
3455 2014-02-24 Yao Qi <yao@codesourcery.com>
3457 * target.c (target_xfer_status_to_string): Rename argument err
3459 * target.h (target_xfer_status_to_string): Update declaration.
3460 Replace target_xfer_error_to_string with
3461 target_xfer_status_to_string in comment.
3463 2014-02-24 Yao Qi <yao@codesourcery.com>
3465 * mips-linux-nat.c (super_close): Update its type.
3466 (mips_linux_close): Pass 'self' to super_close.
3468 2014-02-24 Yao Qi <yao@codesourcery.com>
3470 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3471 * corefile.c (read_memory): Adjusted.
3472 * target.c (target_write_with_progress): Adjusted.
3474 2014-02-23 Yao Qi <yao@codesourcery.com>
3478 2013-10-25 Yao Qi <yao@codesourcery.com>
3480 * remote.c (remote_traceframe_info): Return early if
3481 traceframe is not selected.
3483 2013-07-19 Yao Qi <yao@codesourcery.com>
3485 * target.c (update_current_target): Change the default action
3486 of 'to_traceframe_info' from tcomplain to return_zero.
3487 * target.h (struct target_ops) <to_traceframe_info>: Add more
3490 2014-02-23 Yao Qi <yao@codesourcery.com>
3492 * valops.c (read_value_memory): Rewrite it. Call
3493 target_xfer_partial in a loop.
3494 * exec.h (section_table_available_memory): Remove declaration.
3495 Move comments to ...
3496 * exec.c (section_table_available_memory): ... here. Make it
3499 2014-02-23 Yao Qi <yao@codesourcery.com>
3501 * exec.c (section_table_read_available_memory): New function.
3502 * exec.h (section_table_read_available_memory): Declare.
3503 * ctf.c (ctf_xfer_partial): Call
3504 section_table_read_available_memory.
3505 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3507 2014-02-23 Yao Qi <yao@codesourcery.com>
3509 * ctf.c (ctf_xfer_partial): Move code to ...
3510 * exec.c (exec_read_partial_read_only): ... it. New function.
3511 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3512 * tracefile.c: Include "exec.h".
3513 * exec.h (exec_read_partial_read_only): Declare.
3515 2014-02-23 Yao Qi <yao@codesourcery.com>
3517 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3518 (tfile_has_memory): Remove.
3519 (init_tfile_ops): Don't set fields to_has_all_memory and
3520 to_has_memory of tfile_ops.
3521 * tracefile.c (tracefile_has_all_memory): New function.
3522 (tracefile_has_memory): New function.
3523 (init_tracefile_ops): Initialize fields to_has_all_memory and
3524 to_has_memory of 'ops'.
3526 2014-02-23 Yao Qi <yao@codesourcery.com>
3528 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3529 (ctf_thread_alive, ctf_get_trace_status): Remove.
3530 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3532 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3533 (tfile_has_stack, tfile_has_registers): Remove.
3534 (tfile_thread_alive): Remove.
3535 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3537 * tracefile.c (tracefile_has_stack): New function.
3538 (tracefile_has_registers): New function.
3539 (tracefile_thread_alive): New function.
3540 (tracefile_get_trace_status): New function.
3541 (init_tracefile_ops): New function.
3542 * tracefile.h (init_tracefile_ops): Declare.
3544 2014-02-23 Yao Qi <yao@codesourcery.com>
3546 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3547 (O_LARGEFILE): Likewise.
3548 (tfile_ops): Likewise.
3549 (TRACE_HEADER_SIZE): Likewise.
3550 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3551 (cur_data_size): Likewise.
3552 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3553 (tfile_close, tfile_files_info): Likewise.
3554 (tfile_get_trace_status): Likewise.
3555 (tfile_get_tracepoint_status): Likewise.
3556 (tfile_get_traceframe_address): Likewise.
3557 (tfile_trace_find, match_blocktype): Likewise.
3558 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3559 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3560 (tfile_get_trace_state_variable_value): Likewise.
3561 (tfile_has_all_memory, tfile_has_memory): Likewise.
3562 (tfile_has_stack, tfile_has_registers): Likewise.
3563 (tfile_thread_alive, build_traceframe_info): Likewise.
3564 (tfile_traceframe_info, init_tfile_ops): Likewise.
3565 (_initialize_tracepoint): Don't call init_tfile_ops
3566 and add_target_with_completer.
3567 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3568 exec.h, completer.h and filenames.h.
3569 (_initialize_tracefile_tfile): New function.
3571 2014-02-23 Yao Qi <yao@codesourcery.com>
3573 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3575 (HFILES_NO_SRCDIR): Add tracefile.h.
3576 * ctf.c: Include "tracefile.h".
3577 * tracefile.h: New file.
3578 * tracefile.c: New file
3579 * tracefile-tfile.c: New file.
3580 * tracepoint.c: Include "tracefile.h".
3581 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3582 (stop_reason_names): Add const.
3583 (trace_file_writer_xfree): Move it to tracefile.c.
3584 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3585 (trace_save_ctf): Likewise.
3586 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3587 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3588 (tfile_write_header, tfile_write_regblock_type): Likewise.
3589 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3590 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3591 (tfile_write_raw_data, tfile_end): Likewise.
3592 (tfile_trace_file_writer_new): Likewise.
3593 (free_uploaded_tp): Make it extern.
3594 (free_uploaded_tsv): Make it extern.
3595 (_initialize_tracepoint): Move code to register command 'tsave'
3597 * tracepoint.h (stop_reason_names): Declare.
3598 (struct trace_frame_write_ops): Move it to tracefile.h.
3599 (struct trace_file_write_ops): Likewise.
3600 (struct trace_file_writer): Likewise.
3601 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3603 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3606 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3608 (get_cores_used_by_process): New parameter num_cores, use it.
3609 (linux_xfer_osdata_processes): Pass num_cores to it.
3610 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3613 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3615 * target.c (memory_xfer_partial): Fix length arg in call to
3616 breakpoint_xfer_memory.
3618 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3621 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3622 number comes after the + or - signs. Adjust length of register
3623 name to be extracted.
3625 2014-02-20 Tom Tromey <tromey@redhat.com>
3627 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3628 (ada_varobj_ops): Mark "extern".
3630 2014-02-20 Tom Tromey <tromey@redhat.com>
3632 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3634 2014-02-20 Doug Evans <xdje42@gmail.com>
3636 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3637 All callers updated.
3638 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3639 All callers updated.
3640 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3641 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3643 2014-02-20 lin zuojian <manjian2006@gmail.com>
3644 Joel Brobecker <brobecker@adacore.com>
3645 Doug Evans <xdje42@gmail.com>
3648 * dwarf2read.c (struct die_info): New member in_process.
3649 (reset_die_in_process): New function.
3650 (process_die): Set it at the start, reset when returning.
3651 (inherit_abstract_dies): Only call process_die if origin_child_die
3652 not already being processed.
3654 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3656 * windows-nat.c (handle_unload_dll): Add function documentation.
3657 (do_initial_windows_stuff): Add comment explaining why we wait
3658 until after inferior initialization has finished before
3659 processing all DLLs.
3661 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3663 * windows-nat.c (get_module_name): Delete.
3664 (windows_get_exec_module_filename): New function, mostly
3665 inspired from get_module_name.
3666 (windows_pid_to_exec_file): Replace call to get_module_name
3667 by call to windows_get_exec_module_filename.
3669 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3671 * windows-nat.c (handle_load_dll): Rewrite this function's
3672 introductory comment. Remove code using get_module_name
3673 to get the DLL's name.
3675 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3677 * windows-nat.c (get_windows_debug_event): Ignore
3678 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3679 if windows_initialization_done == 0.
3680 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3681 Adjust implementation to always load all DLLs.
3682 (do_initial_windows_stuff): Replace call to
3683 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3685 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3687 * windows-nat.c (_initialize_windows_nat): Deprecate the
3688 "dll-symbols" command. Turn the "add-shared-symbol-files"
3689 and "assf" aliases into commands, and deprecate them as well.
3690 * NEWS: Add entry explaining that "dll-symbols" and its two
3691 aliases are now deprecated.
3693 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3695 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3696 new-line in debug string. Remove trailing spaces.
3698 2014-02-19 Stan Shebs <stan@codesourcery.com>
3700 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3702 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3704 * NEWS: Add entry for the new feature
3705 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3708 2014-02-19 Stan Shebs <stan@codesourcery.com>
3710 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3712 2014-02-19 Pedro Alves <palves@redhat.com>
3714 * common/ptid.h (struct ptid): Mention that process_stratum
3715 targets should prefer ptid.lwp.
3717 2014-02-19 Pedro Alves <palves@redhat.com>
3719 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3720 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3721 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3722 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3723 store remote thread ids rather than ptid.tid.
3724 (_initialize_remote): Adjust.
3726 2014-02-19 Tom Tromey <tromey@redhat.com>
3728 * target.c (target_get_unwinder): Rewrite.
3729 (target_get_tailcall_unwinder): Rewrite.
3730 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3731 (record_btrace_to_get_tailcall_unwinder): New function.
3732 (init_record_btrace_ops): Update.
3733 * target.h (struct target_ops) <to_get_unwinder,
3734 to_get_tailcall_unwinder>: Now function pointers. Use
3735 TARGET_DEFAULT_RETURN.
3737 2014-02-19 Tom Tromey <tromey@redhat.com>
3739 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3741 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3743 2014-02-19 Tom Tromey <tromey@redhat.com>
3745 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3747 * target-delegates.c: Rebuild.
3748 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3749 TARGET_DEFAULT_FUNC.
3750 * target.c (default_target_decr_pc_after_break): Rename from
3751 forward_target_decr_pc_after_break. Simplify.
3752 (target_decr_pc_after_break): Rely on delegation.
3754 2014-02-19 Tom Tromey <tromey@redhat.com>
3756 * target.c (update_current_target): Do not INHERIT to_doc or
3757 to_magic. Do not de_fault to_open or to_close.
3759 2014-02-19 Tom Tromey <tromey@redhat.com>
3761 * gcore.h (objfile_find_memory_regions): Declare.
3762 * gcore.c (objfile_find_memory_regions): No longer static. Add
3764 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3765 * exec.c: Include gcore.h.
3766 (exec_set_find_memory_regions): Remove.
3767 (exec_find_memory_regions): Remove.
3768 (exec_do_find_memory_regions): Remove.
3769 (init_exec_ops): Update.
3770 * defs.h (exec_set_find_memory_regions): Remove.
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target-delegates.c: Rebuild.
3775 * target.h (struct target_ops) <to_extra_thread_info,
3776 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3777 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3778 not 0, in TARGET_DEFAULT_RETURN.
3780 2014-02-19 Tom Tromey <tromey@redhat.com>
3782 * target.c (complete_target_initialization): Remove casts. Use
3783 return_zero_has_execution.
3784 (return_zero): Add "ignore" argument.
3785 (return_zero_has_execution): New function.
3786 (init_dummy_target): Remove casts. Use
3787 return_zero_has_execution.
3789 2014-02-19 Tom Tromey <tromey@redhat.com>
3791 * target.c (update_current_target): Update comments. Do not
3794 2014-02-19 Tom Tromey <tromey@redhat.com>
3796 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3798 * corelow.c (core_read_description): Delegate when needed.
3799 * remote.c (remote_read_description): Delegate when needed.
3800 * target-delegates.c: Rebuild.
3801 * target.c (target_read_description): Rewrite.
3802 * target.h (struct target_ops) <to_read_description>: Update
3803 comment. Use TARGET_DEFAULT_RETURN.
3805 2014-02-19 Tom Tromey <tromey@redhat.com>
3807 * target-delegates.c: Rebuild.
3808 * target.c (update_current_target): Don't inherit or default
3810 (find_default_run_target): Check against delegate_can_run.
3811 * target.h (struct target_ops) <to_can_run>: Use
3812 TARGET_DEFAULT_RETURN.
3814 2014-02-19 Tom Tromey <tromey@redhat.com>
3816 * target-delegates.c: Rebuild.
3817 * target.c (target_disconnect): Unconditionally delegate.
3818 * target.h (struct target_ops) <to_disconnect>: Use
3819 TARGET_DEFAULT_NORETURN.
3821 2014-02-19 Tom Tromey <tromey@redhat.com>
3823 * record.c (record_stop): Unconditionally delegate.
3824 * target-delegates.c: Rebuild.
3825 * target.c (target_stop_recording): Unconditionally delegate.
3826 * target.h (struct target_ops) <to_stop_recording>: Use
3827 TARGET_DEFAULT_IGNORE.
3829 2014-02-19 Tom Tromey <tromey@redhat.com>
3831 * target-delegates.c: Rebuild.
3832 * target.c (target_enable_btrace): Unconditionally delegate.
3833 * target.h (struct target_ops) <to_enable_btrace>: Use
3834 TARGET_DEFAULT_NORETURN.
3836 2014-02-19 Tom Tromey <tromey@redhat.com>
3838 * target-delegates.c: Rebuild.
3839 * target.c (target_read_btrace): Unconditionally delegate.
3840 * target.h (struct target_ops) <to_read_btrace>: Use
3841 TARGET_DEFAULT_NORETURN.
3843 2014-02-19 Tom Tromey <tromey@redhat.com>
3845 * target-delegates.c: Rebuild.
3846 * target.c (target_teardown_btrace): Unconditionally delegate.
3847 * target.h (struct target_ops) <to_teardown_btrace>: Use
3848 TARGET_DEFAULT_NORETURN.
3850 2014-02-19 Tom Tromey <tromey@redhat.com>
3852 * target-delegates.c: Rebuild.
3853 * target.c (target_disable_btrace): Unconditionally delegate.
3854 * target.h (struct target_ops) <to_disable_btrace>: Use
3855 TARGET_DEFAULT_NORETURN.
3857 2014-02-19 Tom Tromey <tromey@redhat.com>
3859 * target-delegates.c: Rebuild.
3860 * target.c (default_search_memory): New function.
3861 (simple_search_memory): Update comment.
3862 (target_search_memory): Unconditionally delegate.
3863 * target.h (struct target_ops) <to_search_memory>: Use
3864 TARGET_DEFAULT_FUNC.
3866 2014-02-19 Tom Tromey <tromey@redhat.com>
3868 * auxv.c (default_auxv_parse): No longer static.
3869 (target_auxv_parse): Unconditionally delegate.
3870 * auxv.h (default_auxv_parse): Declare.
3871 * target-delegates.c: Rebuild.
3872 * target.c: Include auxv.h.
3873 * target.h (struct target_ops) <to_auxv_parse>: Use
3874 TARGET_DEFAULT_FUNC.
3876 2014-02-19 Tom Tromey <tromey@redhat.com>
3878 * target-delegates.c: Rebuild.
3879 * target.c (target_memory_map): Unconditionally delegate.
3880 * target.h (struct target_ops) <to_memory_map>: Use
3881 TARGET_DEFAULT_RETURN.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target-delegates.c: Rebuild.
3886 * target.c (target_thread_alive): Unconditionally delegate.
3887 * target.h (struct target_ops) <to_thread_alive>: Use
3888 TARGET_DEFAULT_RETURN.
3890 2014-02-19 Tom Tromey <tromey@redhat.com>
3892 * target-delegates.c: Rebuild.
3893 * target.c (target_save_record): Unconditionally delegate.
3894 * target.h (struct target_ops) <to_save_record>: Use
3895 TARGET_DEFAULT_NORETURN.
3897 2014-02-19 Tom Tromey <tromey@redhat.com>
3899 * target-delegates.c: Rebuild.
3900 * target.c (target_delete_record): Unconditionally delegate.
3901 * target.h (struct target_ops) <to_delete_record>: Use
3902 TARGET_DEFAULT_NORETURN.
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target-delegates.c: Rebuild.
3907 * target.c (target_record_is_replaying): Unconditionally
3909 * target.h (struct target_ops) <to_record_is_replaying>: Use
3910 TARGET_DEFAULT_RETURN.
3912 2014-02-19 Tom Tromey <tromey@redhat.com>
3914 * target-delegates.c: Rebuild.
3915 * target.c (target_goto_record_begin): Unconditionally delegate.
3916 * target.h (struct target_ops) <to_goto_record_begin>: Use
3917 TARGET_DEFAULT_NORETURN.
3919 2014-02-19 Tom Tromey <tromey@redhat.com>
3921 * target-delegates.c: Rebuild.
3922 * target.c (target_goto_record_end): Unconditionally delegate.
3923 * target.h (struct target_ops) <to_goto_record_end>: Use
3924 TARGET_DEFAULT_NORETURN.
3926 2014-02-19 Tom Tromey <tromey@redhat.com>
3928 * target-delegates.c: Rebuild.
3929 * target.c (target_goto_record): Unconditionally delegate.
3930 * target.h (struct target_ops) <to_goto_record>: Use
3931 TARGET_DEFAULT_NORETURN.
3933 2014-02-19 Tom Tromey <tromey@redhat.com>
3935 * target-delegates.c: Rebuild.
3936 * target.c (target_insn_history): Unconditionally delegate.
3937 * target.h (struct target_ops) <to_insn_history>: Use
3938 TARGET_DEFAULT_NORETURN.
3940 2014-02-19 Tom Tromey <tromey@redhat.com>
3942 * target-delegates.c: Rebuild.
3943 * target.c (target_insn_history_from): Unconditionally delegate.
3944 * target.h (struct target_ops) <to_insn_history_from>: Use
3945 TARGET_DEFAULT_NORETURN.
3947 2014-02-19 Tom Tromey <tromey@redhat.com>
3949 * target-delegates.c: Rebuild.
3950 * target.c (target_insn_history_range): Unconditionally delegate.
3951 * target.h (struct target_ops) <to_insn_history_range>: Use
3952 TARGET_DEFAULT_NORETURN.
3954 2014-02-19 Tom Tromey <tromey@redhat.com>
3956 * target-delegates.c: Rebuild.
3957 * target.c (target_call_history): Unconditionally delegate.
3958 * target.h (struct target_ops) <to_call_history>: Use
3959 TARGET_DEFAULT_NORETURN.
3961 2014-02-19 Tom Tromey <tromey@redhat.com>
3963 * target-delegates.c: Rebuild.
3964 * target.c (target_call_history_from): Unconditionally delegate.
3965 * target.h (struct target_ops) <to_call_history_from>: Use
3966 TARGET_DEFAULT_NORETURN.
3968 2014-02-19 Tom Tromey <tromey@redhat.com>
3970 * target-delegates.c: Rebuild.
3971 * target.c (target_call_history_range): Unconditionally delegate.
3972 * target.h (struct target_ops) <to_call_history_range>: Use
3973 TARGET_DEFAULT_NORETURN.
3975 2014-02-19 Tom Tromey <tromey@redhat.com>
3977 * target-delegates.c: Rebuild.
3978 * target.c (target_verify_memory): Unconditionally delegate.
3979 * target.h (struct target_ops) <to_verify_memory>: Use
3980 TARGET_DEFAULT_NORETURN.
3982 2014-02-19 Tom Tromey <tromey@redhat.com>
3984 * target-delegates.c: Rebuild.
3985 * target.c (target_core_of_thread): Unconditionally delegate.
3986 * target.h (struct target_ops) <to_core_of_thread>: Use
3987 TARGET_DEFAULT_RETURN.
3989 2014-02-19 Tom Tromey <tromey@redhat.com>
3991 * target-delegates.c: Rebuild.
3992 * target.c (target_flash_done): Unconditionally delegate.
3993 * target.h (struct target_ops) <to_flash_done>: Use
3994 TARGET_DEFAULT_NORETURN.
3996 2014-02-19 Tom Tromey <tromey@redhat.com>
3998 * target-delegates.c: Rebuild.
3999 * target.c (target_flash_erase): Unconditionally delegate.
4000 * target.h (struct target_ops) <to_flash_erase>: Use
4001 TARGET_DEFAULT_NORETURN.
4003 2014-02-19 Tom Tromey <tromey@redhat.com>
4005 * target-delegates.c: Rebuild.
4006 * target.c (target_get_section_table): Unconditionally delegate.
4007 * target.h (struct target_ops) <to_get_section_table>: Use
4008 TARGET_DEFAULT_RETURN.
4010 2014-02-19 Tom Tromey <tromey@redhat.com>
4012 * target-delegates.c: Rebuild.
4013 * target.c (target_pid_to_str): Unconditionally delegate.
4014 (init_dummy_target): Don't initialize to_pid_to_str.
4015 (default_pid_to_str): Rename from dummy_pid_to_str.
4016 * target.h (struct target_ops) <to_pid_to_str>: Use
4017 TARGET_DEFAULT_FUNC.
4019 2014-02-19 Tom Tromey <tromey@redhat.com>
4021 * target-delegates.c: Rebuild.
4022 * target.c (target_find_new_threads): Unconditionally delegate.
4023 * target.h (struct target_ops) <to_find_new_threads>: Use
4024 TARGET_DEFAULT_RETURN.
4026 2014-02-19 Tom Tromey <tromey@redhat.com>
4028 * target-delegates.c: Rebuild.
4029 * target.c (target_program_signals): Unconditionally delegate.
4030 * target.h (struct target_ops) <to_program_signals>: Use
4031 TARGET_DEFAULT_IGNORE.
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target-delegates.c: Rebuild.
4036 * target.c (target_pass_signals): Unconditionally delegate.
4037 * target.h (struct target_ops) <to_pass_signals>: Use
4038 TARGET_DEFAULT_IGNORE.
4040 2014-02-19 Tom Tromey <tromey@redhat.com>
4042 * target-delegates.c: Rebuild.
4043 * target.c (default_mourn_inferior): New function.
4044 (target_mourn_inferior): Unconditionally delegate.
4045 * target.h (struct target_ops) <to_mourn_inferior>: Use
4046 TARGET_DEFAULT_FUNC.
4048 2014-02-19 Tom Tromey <tromey@redhat.com>
4050 * target-delegates.c: Rebuild.
4051 * target.c (default_follow_fork): New function.
4052 (target_follow_fork): Unconditionally delegate.
4053 * target.h (struct target_ops) <to_follow_fork>: Use
4054 TARGET_DEFAULT_FUNC.
4056 2014-02-19 Tom Tromey <tromey@redhat.com>
4058 * target-delegates.c: Rebuild.
4059 * target.c (target_kill): Unconditionally delegate.
4060 * target.h (struct target_ops) <to_kill>: Use
4061 TARGET_DEFAULT_NORETURN.
4063 2014-02-19 Tom Tromey <tromey@redhat.com>
4065 * target-delegates.c: Rebuild.
4066 * target.c (target_masked_watch_num_registers): Unconditionally
4068 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4069 Use TARGET_DEFAULT_RETURN.
4071 2014-02-19 Tom Tromey <tromey@redhat.com>
4073 * target-delegates.c: Rebuild.
4074 * target.c (target_remove_mask_watchpoint): Unconditionally
4076 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4077 TARGET_DEFAULT_RETURN.
4079 2014-02-19 Tom Tromey <tromey@redhat.com>
4081 * target-delegates.c: Rebuild.
4082 * target.c (target_insert_mask_watchpoint): Unconditionally
4084 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4085 TARGET_DEFAULT_RETURN.
4087 2014-02-19 Tom Tromey <tromey@redhat.com>
4089 * target-delegates.c: Rebuild.
4090 * target.c (target_ranged_break_num_registers): Unconditionally
4092 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4093 Use TARGET_DEFAULT_RETURN.
4095 2014-02-19 Tom Tromey <tromey@redhat.com>
4097 * target-delegates.c: Rebuild.
4098 * target.c (target_fetch_registers): Unconditionally delegate.
4099 * target.h (struct target_ops) <to_fetch_registers>: Use
4100 TARGET_DEFAULT_NORETURN.
4102 2014-02-19 Tom Tromey <tromey@redhat.com>
4104 * target-delegates.c: Rebuild.
4105 * target.c (update_current_target): Don't inherit or default
4107 * target.h (struct target_ops) <to_stop>: Use
4108 TARGET_DEFAULT_IGNORE.
4110 2014-02-19 Tom Tromey <tromey@redhat.com>
4112 * target-delegates.c: Rebuild.
4113 * target.c (update_current_target): Don't inherit or default
4114 to_can_run_breakpoint_commands.
4115 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4116 Use TARGET_DEFAULT_RETURN.
4118 2014-02-19 Tom Tromey <tromey@redhat.com>
4120 * target-delegates.c: Rebuild.
4121 * target.c (update_current_target): Don't inherit or default
4122 to_supports_evaluation_of_breakpoint_conditions.
4123 * target.h (struct target_ops)
4124 <to_supports_evaluation_of_breakpoint_conditions>: Use
4125 TARGET_DEFAULT_RETURN.
4127 2014-02-19 Tom Tromey <tromey@redhat.com>
4129 * target-delegates.c: Rebuild.
4130 * target.c (update_current_target): Don't inherit or default
4131 to_augmented_libraries_svr4_read.
4132 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4133 Use TARGET_DEFAULT_RETURN.
4135 2014-02-19 Tom Tromey <tromey@redhat.com>
4137 * target-delegates.c: Rebuild.
4138 * target.c (update_current_target): Don't inherit or default
4140 * target.h (struct target_ops) <to_can_use_agent>: Use
4141 TARGET_DEFAULT_RETURN.
4143 2014-02-19 Tom Tromey <tromey@redhat.com>
4145 * target-delegates.c: Rebuild.
4146 * target.c (update_current_target): Don't inherit or default
4148 * target.h (struct target_ops) <to_use_agent>: Use
4149 TARGET_DEFAULT_NORETURN.
4151 2014-02-19 Tom Tromey <tromey@redhat.com>
4153 * target-delegates.c: Rebuild.
4154 * target.c (update_current_target): Don't inherit or default
4156 (return_null): Remove.
4157 * target.h (struct target_ops) <to_traceframe_info>: Use
4158 TARGET_DEFAULT_RETURN.
4160 2014-02-19 Tom Tromey <tromey@redhat.com>
4162 * target-delegates.c: Rebuild.
4163 * target.c (update_current_target): Don't inherit or default
4164 to_static_tracepoint_markers_by_strid.
4165 * target.h (struct target_ops)
4166 <to_static_tracepoint_markers_by_strid>: Use
4167 TARGET_DEFAULT_NORETURN.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target-delegates.c: Rebuild.
4172 * target.c (update_current_target): Don't inherit or default
4173 to_static_tracepoint_marker_at.
4174 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4175 Use TARGET_DEFAULT_RETURN.
4177 2014-02-19 Tom Tromey <tromey@redhat.com>
4179 * target-delegates.c: Rebuild.
4180 * target.c (update_current_target): Don't inherit or default
4182 * target.h (struct target_ops) <to_set_permissions>: Use
4183 TARGET_DEFAULT_IGNORE.
4185 2014-02-19 Tom Tromey <tromey@redhat.com>
4187 * target-delegates.c: Rebuild.
4188 * target.c (update_current_target): Don't inherit or default
4190 * target.h (struct target_ops) <to_get_tib_address>: Use
4191 TARGET_DEFAULT_NORETURN.
4193 2014-02-19 Tom Tromey <tromey@redhat.com>
4195 * target-delegates.c: Rebuild.
4196 * target.c (update_current_target): Don't inherit or default
4198 * target.h (struct target_ops) <to_set_trace_notes>: Use
4199 TARGET_DEFAULT_RETURN.
4201 2014-02-19 Tom Tromey <tromey@redhat.com>
4203 * target-delegates.c: Rebuild.
4204 * target.c (update_current_target): Don't initialize
4205 to_set_trace_buffer_size.
4206 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4207 TARGET_DEFAULT_IGNORE.
4209 2014-02-19 Tom Tromey <tromey@redhat.com>
4211 * target-delegates.c: Rebuild.
4212 * target.c (update_current_target): Don't inherit or default
4213 to_set_circular_trace_buffer.
4214 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4215 TARGET_DEFAULT_IGNORE.
4217 2014-02-19 Tom Tromey <tromey@redhat.com>
4219 * target-delegates.c: Rebuild.
4220 * target.c (update_current_target): Don't inherit or default
4221 to_set_disconnected_tracing.
4222 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4223 TARGET_DEFAULT_IGNORE.
4225 2014-02-19 Tom Tromey <tromey@redhat.com>
4227 * target-delegates.c: Rebuild.
4228 * target.c (update_current_target): Don't inherit or default
4229 to_get_min_fast_tracepoint_insn_len.
4230 (return_minus_one): Remove.
4231 * target.h (struct target_ops)
4232 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4234 2014-02-19 Tom Tromey <tromey@redhat.com>
4236 * target-delegates.c: Rebuild.
4237 * target.c (update_current_target): Don't inherit or default
4238 to_get_raw_trace_data.
4239 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4240 TARGET_DEFAULT_NORETURN.
4242 2014-02-19 Tom Tromey <tromey@redhat.com>
4244 * target-delegates.c: Rebuild.
4245 * target.c (update_current_target): Don't inherit or default
4246 to_upload_trace_state_variables.
4247 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4248 Use TARGET_DEFAULT_RETURN.
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * target-delegates.c: Rebuild.
4253 * target.c (update_current_target): Don't inherit or default
4254 to_upload_tracepoints.
4255 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4256 TARGET_DEFAULT_RETURN.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target-delegates.c: Rebuild.
4261 * target.c (update_current_target): Don't inherit or default
4263 * target.h (struct target_ops) <to_save_trace_data>: Use
4264 TARGET_DEFAULT_NORETURN.
4266 2014-02-19 Tom Tromey <tromey@redhat.com>
4268 * target-delegates.c: Rebuild.
4269 * target.c (update_current_target): Don't inherit or default
4270 to_get_trace_state_variable_value.
4271 * target.h (struct target_ops)
4272 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4274 2014-02-19 Tom Tromey <tromey@redhat.com>
4276 * target-delegates.c: Rebuild.
4277 * target.c (update_current_target): Don't inherit or default
4279 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4281 2014-02-19 Tom Tromey <tromey@redhat.com>
4283 * target-delegates.c: Rebuild.
4284 * target.c (update_current_target): Don't inherit or default
4286 * target.h (struct target_ops) <to_trace_stop>: Use
4287 TARGET_DEFAULT_NORETURN.
4289 2014-02-19 Tom Tromey <tromey@redhat.com>
4291 * target-delegates.c: Rebuild.
4292 * target.c (update_current_target): Don't inherit or default
4293 to_get_tracepoint_status.
4294 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4295 TARGET_DEFAULT_NORETURN.
4297 2014-02-19 Tom Tromey <tromey@redhat.com>
4299 * target-delegates.c: Rebuild.
4300 * target.c (update_current_target): Don't inherit or default
4301 to_get_trace_status.
4302 * target.h (struct target_ops) <to_get_trace_status>: Use
4303 TARGET_DEFAULT_RETURN.
4305 2014-02-19 Tom Tromey <tromey@redhat.com>
4307 * target-delegates.c: Rebuild.
4308 * target.c (update_current_target): Don't inherit or default
4310 * target.h (struct target_ops) <to_trace_start>: Use
4311 TARGET_DEFAULT_NORETURN.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * target-delegates.c: Rebuild.
4316 * target.c (update_current_target): Don't inherit or default
4317 to_trace_set_readonly_regions.
4318 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4319 Use TARGET_DEFAULT_NORETURN.
4321 2014-02-19 Tom Tromey <tromey@redhat.com>
4323 * target-delegates.c: Rebuild.
4324 * target.c (update_current_target): Don't inherit or default
4325 to_disable_tracepoint.
4326 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4327 TARGET_DEFAULT_NORETURN.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target-delegates.c: Rebuild.
4332 * target.c (update_current_target): Don't inherit or default
4333 to_enable_tracepoint.
4334 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4335 TARGET_DEFAULT_NORETURN.
4337 2014-02-19 Tom Tromey <tromey@redhat.com>
4339 * target-delegates.c: Rebuild.
4340 * target.c (update_current_target): Don't inherit or default
4341 to_download_trace_state_variable.
4342 * target.h (struct target_ops) <to_download_trace_state_variable>:
4343 Use TARGET_DEFAULT_NORETURN.
4345 2014-02-19 Tom Tromey <tromey@redhat.com>
4347 * target-delegates.c: Rebuild.
4348 * target.c (update_current_target): Don't inherit or default
4349 to_can_download_tracepoint.
4350 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4351 TARGET_DEFAULT_RETURN.
4353 2014-02-19 Tom Tromey <tromey@redhat.com>
4355 * target-delegates.c: Rebuild.
4356 * target.c (update_current_target): Don't inherit or default
4357 to_download_tracepoint.
4358 * target.h (struct target_ops) <to_download_tracepoint>: Use
4359 TARGET_DEFAULT_NORETURN.
4361 2014-02-19 Tom Tromey <tromey@redhat.com>
4363 * target-delegates.c: Rebuild.
4364 * target.c (update_current_target): Don't inherit or default
4366 * target.h (struct target_ops) <to_trace_init>: Use
4367 TARGET_DEFAULT_RETURN.
4369 2014-02-19 Tom Tromey <tromey@redhat.com>
4371 * target-delegates.c: Rebuild.
4372 * target.c (update_current_target): Don't inherit or default
4373 to_supports_string_tracing.
4374 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4375 TARGET_DEFAULT_RETURN.
4377 2014-02-19 Tom Tromey <tromey@redhat.com>
4379 * target-delegates.c: Rebuild.
4380 * target.c (update_current_target): Don't inherit or default
4381 to_supports_enable_disable_tracepoint.
4382 * target.h (struct target_ops)
4383 <to_supports_enable_disable_tracepoint>: Use
4384 TARGET_DEFAULT_RETURN.
4386 2014-02-19 Tom Tromey <tromey@redhat.com>
4388 * target-delegates.c: Rebuild.
4389 * target.c (update_current_target): Don't inherit or default
4390 to_supports_multi_process.
4391 * target.h (struct target_ops) <to_supports_multi_process>: Use
4392 TARGET_DEFAULT_RETURN.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target-delegates.c: Rebuild.
4397 * target.c (update_current_target): Don't inherit or default
4398 to_get_ada_task_ptid.
4399 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4400 TARGET_DEFAULT_FUNC.
4402 2014-02-19 Tom Tromey <tromey@redhat.com>
4404 * target-delegates.c: Rebuild.
4405 * target.c (update_current_target): Don't inherit or default
4406 to_thread_architecture.
4407 * target.h (struct target_ops) <to_thread_architecture>: Use
4408 TARGET_DEFAULT_FUNC.
4410 2014-02-19 Tom Tromey <tromey@redhat.com>
4412 * target-delegates.c: Rebuild.
4413 * target.c (update_current_target): Don't inherit or default
4414 to_execution_direction.
4415 * target.h (struct target_ops) <to_execution_direction>: Use
4416 TARGET_DEFAULT_FUNC.
4418 2014-02-19 Tom Tromey <tromey@redhat.com>
4420 * target-delegates.c: Rebuild.
4421 * target.c (update_current_target): Don't inherit or default
4422 to_can_execute_reverse.
4423 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4424 TARGET_DEFAULT_RETURN.
4425 (target_can_execute_reverse): Unconditionally delegate.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * target-delegates.c: Rebuild.
4430 * target.c (update_current_target): Don't inherit or default
4432 (dummy_goto_bookmark): Remove.
4433 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4434 * target.h (struct target_ops) <to_goto_bookmark>: Use
4435 TARGET_DEFAULT_NORETURN.
4437 2014-02-19 Tom Tromey <tromey@redhat.com>
4439 * target-delegates.c: Rebuild.
4440 * target.c (update_current_target): Don't inherit or default
4442 (dummy_get_bookmark): Remove.
4443 (init_dummy_target): Don't inherit or default to_get_bookmark.
4444 * target.h (struct target_ops) <to_get_bookmark>: Use
4445 TARGET_DEFAULT_NORETURN
4447 2014-02-19 Tom Tromey <tromey@redhat.com>
4449 * target-delegates.c: Rebuild.
4450 * target.c (update_current_target): Don't inherit or default
4451 to_make_corefile_notes.
4452 (init_dummy_target): Don't initialize to_make_corefile_notes.
4453 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4454 TARGET_DEFAULT_FUNC.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target-delegates.c: Rebuild.
4459 * target.c (update_current_target): Don't inherit or default
4460 to_find_memory_regions.
4461 (init_dummy_target): Don't initialize to_find_memory_regions.
4462 * target.h (struct target_ops) <to_find_memory_regions>: Use
4463 TARGET_DEFAULT_FUNC.
4465 2014-02-19 Tom Tromey <tromey@redhat.com>
4467 * target-delegates.c: Rebuild.
4468 * target.c (update_current_target): Don't inherit or default
4470 * target.h (struct target_ops) <to_log_command>: Use
4471 TARGET_DEFAULT_IGNORE.
4472 (target_log_command): Unconditionally delegate.
4474 2014-02-19 Tom Tromey <tromey@redhat.com>
4476 * target-delegates.c: Rebuild.
4477 * target.c (update_current_target): Don't inherit or default
4478 to_pid_to_exec_file.
4479 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4480 TARGET_DEFAULT_RETURN.
4482 2014-02-19 Tom Tromey <tromey@redhat.com>
4484 * target-delegates.c: Rebuild.
4485 * target.c (update_current_target): Don't inherit or default
4487 (target_thread_name): Unconditionally delegate.
4488 * target.h (struct target_ops) <to_thread_name>: Use
4489 TARGET_DEFAULT_RETURN.
4491 2014-02-19 Tom Tromey <tromey@redhat.com>
4493 * target-delegates.c: Rebuild.
4494 * target.c (update_current_target): Don't inherit or default
4495 to_extra_thread_info.
4496 * target.h (struct target_ops) <to_extra_thread_info>: Use
4497 TARGET_DEFAULT_RETURN.
4499 2014-02-19 Tom Tromey <tromey@redhat.com>
4501 * target-delegates.c: Rebuild.
4502 * target.c (update_current_target): Don't inherit or default
4504 * target.h (struct target_ops) <to_has_exited>: Use
4505 TARGET_DEFAULT_RETURN..
4507 2014-02-19 Tom Tromey <tromey@redhat.com>
4509 * target-delegates.c: Rebuild.
4510 * target.c (update_current_target): Don't inherit or default
4511 to_set_syscall_catchpoint.
4512 (return_one): Remove.
4513 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4514 TARGET_DEFAULT_RETURN.
4516 2014-02-19 Tom Tromey <tromey@redhat.com>
4518 * target-delegates.c: Rebuild.
4519 * target.c (update_current_target): Don't inherit or default
4520 to_insert_exec_catchpoint.
4521 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4522 TARGET_DEFAULT_RETURN.
4524 2014-01-08 Tom Tromey <tromey@redhat.com>
4526 * target-delegates.c: Rebuild.
4527 * target.c (update_current_target): Don't inherit or default
4528 to_insert_exec_catchpoint.
4529 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4530 TARGET_DEFAULT_RETURN.
4532 2014-02-19 Tom Tromey <tromey@redhat.com>
4534 * target-delegates.c: Rebuild.
4535 * target.c (update_current_target): Don't inherit or default
4536 to_remove_vfork_catchpoint.
4537 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4538 TARGET_DEFAULT_RETURN.
4540 2014-02-19 Tom Tromey <tromey@redhat.com>
4542 * target-delegates.c: Rebuild.
4543 * target.c (update_current_target): Don't inherit or default
4544 to_insert_vfork_catchpoint.
4545 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4546 TARGET_DEFAULT_RETURN.
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target-delegates.c: Rebuild.
4551 * target.c (update_current_target): Don't inherit or default
4552 to_remove_fork_catchpoint.
4553 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4554 TARGET_DEFAULT_RETURN.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target-delegates.c: Rebuild.
4559 * target.c (update_current_target): Don't inherit or default
4560 to_insert_fork_catchpoint.
4561 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4562 TARGET_DEFAULT_RETURN.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target-delegates.c: Rebuild.
4567 * target.c (update_current_target): Don't inherit or default
4568 to_post_startup_inferior.
4569 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4570 TARGET_DEFAULT_IGNORE.
4572 2014-02-19 Tom Tromey <tromey@redhat.com>
4574 * target-delegates.c: Rebuild.
4575 * target.c (update_current_target): Don't inherit or default
4577 * target.h (struct target_ops) <to_load>: Use
4578 TARGET_DEFAULT_NORETURN.
4580 2014-02-19 Tom Tromey <tromey@redhat.com>
4582 * target-delegates.c: Rebuild.
4583 * target.c (update_current_target): Don't inherit or default
4585 * target.h (struct target_ops) <to_terminal_info>: Use
4586 TARGET_DEFAULT_FUNC.
4588 2014-02-19 Tom Tromey <tromey@redhat.com>
4590 * target-delegates.c: Rebuild.
4591 * target.c (update_current_target): Don't inherit or default
4592 to_terminal_save_ours.
4593 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4594 TARGET_DEFAULT_IGNORE.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target-delegates.c: Rebuild.
4599 * target.c (update_current_target): Don't inherit or default
4601 * target.h (struct target_ops) <to_terminal_ours>: Use
4602 TARGET_DEFAULT_IGNORE.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target-delegates.c: Rebuild.
4607 * target.c (update_current_target): Don't inherit or default
4608 to_terminal_ours_for_output.
4609 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4610 TARGET_DEFAULT_IGNORE.
4612 2014-02-19 Tom Tromey <tromey@redhat.com>
4614 * target-delegates.c: Rebuild.
4615 * target.c (update_current_target): Don't inherit or default
4616 to_terminal_inferior.
4617 * target.h (struct target_ops) <to_terminal_inferior>: Use
4618 TARGET_DEFAULT_IGNORE.
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target-delegates.c: Rebuild.
4623 * target.c (update_current_target): Don't inherit or default
4625 * target.h (struct target_ops) <to_terminal_init>: Use
4626 TARGET_DEFAULT_IGNORE.
4628 2014-02-19 Tom Tromey <tromey@redhat.com>
4630 * target-delegates.c: Rebuild.
4631 * target.c (update_current_target): Don't inherit or default
4632 to_can_accel_watchpoint_condition.
4633 * target.h (struct target_ops)
4634 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4636 2014-02-19 Tom Tromey <tromey@redhat.com>
4638 * target-delegates.c: Rebuild.
4639 * target.c (update_current_target): Don't inherit or default
4640 to_region_ok_for_hw_watchpoint.
4641 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4642 Use TARGET_DEFAULT_FUNC.
4644 2014-02-19 Tom Tromey <tromey@redhat.com>
4646 * target-delegates.c: Rebuild.
4647 * target.c (update_current_target): Don't inherit or default
4648 to_watchpoint_addr_within_range.
4649 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4650 Use TARGET_DEFAULT_FUNC.
4652 2014-02-19 Tom Tromey <tromey@redhat.com>
4654 * target-delegates.c: Rebuild.
4655 * target.c (update_current_target): Don't inherit or default
4656 to_remove_watchpoint.
4657 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4658 TARGET_DEFAULT_NORETURN.
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target-delegates.c: Rebuild.
4663 * target.c (update_current_target): Don't inherit or default
4664 to_insert_watchpoint.
4665 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4666 TARGET_DEFAULT_RETURN.
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * target-delegates.c: Rebuild.
4671 * target.c (update_current_target): Don't inherit or default
4672 to_remove_hw_breakpoint.
4673 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4674 TARGET_DEFAULT_RETURN.
4676 2014-02-19 Tom Tromey <tromey@redhat.com>
4678 * target-delegates.c: Rebuild.
4679 * target.c (update_current_target): Don't inherit or default
4680 to_insert_hw_breakpoint.
4681 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4682 TARGET_DEFAULT_RETURN.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target-delegates.c: Rebuild.
4687 * target.c (update_current_target): Don't inherit or default
4688 to_can_use_hw_breakpoint.
4689 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4690 TARGET_DEFAULT_RETURN.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target-delegates.c: Rebuild.
4695 * target.c (update_current_target): Don't inherit or default
4697 * target.h (struct target_ops) <to_files_info>: Use
4698 TARGET_DEFAULT_IGNORE.
4700 2014-02-19 Tom Tromey <tromey@redhat.com>
4702 * target-delegates.c: Rebuild.
4703 * target.c (update_current_target): Don't inherit or default
4705 * target.h (struct target_ops) <to_store>: Use
4706 TARGET_DEFAULT_NORETURN.
4708 2014-02-19 Tom Tromey <tromey@redhat.com>
4710 * target-delegates.c: Rebuild.
4711 * target.c (update_current_target): Don't inherit or default
4713 * target.h (struct target_ops) <to_post_attach>: Use
4714 TARGET_DEFAULT_IGNORE.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target-delegates.c: Rebuild.
4719 * target.c (update_current_target): Don't inherit or default
4721 (default_rcmd): New function.
4722 (do_monitor_command): Unconditionally delegate.
4723 * target.h (struct target_ops) <to_rmcd>: Use
4724 TARGET_DEFAULT_FUNC.
4726 2014-02-19 Tom Tromey <tromey@redhat.com>
4728 * target-delegates.c: Rebuild.
4729 * target.c (init_dummy_target): Don't initialize to_attach.
4730 (target_attach): Unconditionally delegate.
4731 * target.h (struct target_ops) <to_attach>: Use
4732 TARGET_DEFAULT_FUNC.
4734 2014-02-19 Tom Tromey <tromey@redhat.com>
4736 * target-delegates.c: Rebuild.
4737 * target.c (target_detach): Unconditionally delegate.
4738 (init_dummy_target): Don't initialize to_detach.
4739 * target.h (struct target_ops) <to_detach>: Use
4740 TARGET_DEFAULT_IGNORE.
4742 2014-02-19 Tom Tromey <tromey@redhat.com>
4744 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4746 (target_augmented_libraries_svr4_read): Add argument.
4747 * target.c (update_current_target): Update.
4748 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4751 2014-02-19 Tom Tromey <tromey@redhat.com>
4753 * target.h (struct target_ops) <to_call_history_range>: Add
4755 * target.c (target_call_history_range): Add argument.
4756 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4758 (record_btrace_call_history_from): Update.
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * target.h (struct target_ops) <to_call_history_from>: Add
4764 * target.c (target_call_history_from): Add argument.
4765 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4768 2014-02-19 Tom Tromey <tromey@redhat.com>
4770 * target.h (struct target_ops) <to_call_history>: Add argument.
4771 * target.c (target_call_history): Add argument.
4772 * record-btrace.c (record_btrace_call_history): Add 'self'
4775 2014-02-19 Tom Tromey <tromey@redhat.com>
4777 * target.h (struct target_ops) <to_insn_history_range>: Add
4779 * target.c (target_insn_history_range): Add argument.
4780 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4782 (record_btrace_insn_history_from): Update.
4784 2014-02-19 Tom Tromey <tromey@redhat.com>
4786 * target.h (struct target_ops) <to_insn_history_from>: Add
4788 * target.c (target_insn_history_from): Add argument.
4789 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * target.h (struct target_ops) <to_insn_history>: Add argument.
4795 * target.c (target_insn_history): Add argument.
4796 * record-btrace.c (record_btrace_insn_history): Add 'self'
4799 2014-02-19 Tom Tromey <tromey@redhat.com>
4801 * target.h (struct target_ops) <to_goto_record>: Add argument.
4802 * target.c (target_goto_record): Add argument.
4803 * record-full.c (record_full_goto): Add 'self' argument.
4804 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4806 2014-02-19 Tom Tromey <tromey@redhat.com>
4808 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4809 * target.c (target_goto_record_end): Add argument.
4810 * record-full.c (record_full_goto_end): Add 'self' argument.
4811 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4813 2014-02-19 Tom Tromey <tromey@redhat.com>
4815 * target.h (struct target_ops) <to_goto_record_begin>: Add
4817 * target.c (target_goto_record_begin): Add argument.
4818 * record-full.c (record_full_goto_begin): Add 'self' argument.
4819 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4822 2014-02-19 Tom Tromey <tromey@redhat.com>
4824 * target.h (struct target_ops) <to_record_is_replaying>: Add
4826 * target.c (target_record_is_replaying): Add argument.
4827 * record-full.c (record_full_is_replaying): Add 'self' argument.
4828 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4830 (record_btrace_xfer_partial, record_btrace_store_registers)
4831 (record_btrace_prepare_to_store, record_btrace_resume)
4832 (record_btrace_wait, record_btrace_decr_pc_after_break)
4833 (record_btrace_find_new_threads, record_btrace_thread_alive):
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * target.h (struct target_ops) <to_delete_record>: Add argument.
4839 * target.c (target_delete_record): Add argument.
4840 * record-full.c (record_full_delete): Add 'self' argument.
4842 2014-02-19 Tom Tromey <tromey@redhat.com>
4844 * target.h (struct target_ops) <to_save_record>: Add argument.
4845 * target.c (target_save_record): Add argument.
4846 * record-full.c (record_full_save): Add 'self' argument.
4847 (record_full_save): Add 'self' argument.
4849 2014-02-19 Tom Tromey <tromey@redhat.com>
4851 * target.h (struct target_ops) <to_info_record>: Add argument.
4852 * target.c (target_info_record): Add argument.
4853 * record.c (info_record_command): Add argument.
4854 * record-full.c (record_full_info): Add 'self' argument.
4855 * record-btrace.c (record_btrace_info): Add 'self' argument.
4857 2014-02-19 Tom Tromey <tromey@redhat.com>
4859 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4860 * target.c (target_stop_recording): Add argument.
4861 * record.c (record_stop): Add argument.
4862 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4865 2014-02-19 Tom Tromey <tromey@redhat.com>
4867 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4868 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4869 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4871 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4872 (_initialize_amd64_linux_nat): Use it.
4873 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4874 (_initialize_i386_linux_nat): Use it.
4876 2014-02-19 Tom Tromey <tromey@redhat.com>
4878 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4879 * target.c (target_teardown_btrace): Add argument.
4880 * remote.c (remote_teardown_btrace): Add 'self' argument.
4881 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4883 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4889 * target.c (target_disable_btrace): Add argument.
4890 * remote.c (remote_disable_btrace): Add 'self' argument.
4891 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4893 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4896 2014-02-19 Tom Tromey <tromey@redhat.com>
4898 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4899 * target.c (target_enable_btrace): Add argument.
4900 * remote.c (remote_enable_btrace): Add 'self' argument.
4901 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4903 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4906 2014-02-19 Tom Tromey <tromey@redhat.com>
4908 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4909 (target_can_use_agent): Add argument.
4910 * target.c (update_current_target): Update.
4911 * remote.c (remote_can_use_agent): Add 'self' argument.
4912 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4914 2014-02-19 Tom Tromey <tromey@redhat.com>
4916 * target.h (struct target_ops) <to_use_agent>: Add argument.
4917 (target_use_agent): Add argument.
4918 * target.c (update_current_target): Update.
4919 * remote.c (remote_use_agent): Add 'self' argument.
4920 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4922 2014-02-19 Tom Tromey <tromey@redhat.com>
4924 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4925 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4926 (target_traceframe_info): Add argument.
4927 * target.c (update_current_target): Update.
4928 * remote.c (remote_traceframe_info): Add 'self' argument.
4929 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4931 2014-02-19 Tom Tromey <tromey@redhat.com>
4933 * target.h (target_static_tracepoint_markers_by_strid): Add
4935 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4937 * target.c (update_current_target): Update.
4938 * remote.c (struct target_ops)
4939 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4940 * linux-nat.c (struct target_ops)
4941 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4947 (target_static_tracepoint_marker_at): Add argument.
4948 * target.c (update_current_target): Update.
4949 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4952 2014-02-19 Tom Tromey <tromey@redhat.com>
4954 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4955 (target_set_permissions): Add argument.
4956 * target.c (update_current_target): Update.
4957 * remote.c (remote_set_permissions): Add 'self' argument.
4958 (remote_start_remote): Update.
4960 2014-02-19 Tom Tromey <tromey@redhat.com>
4962 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4963 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4964 (target_get_tib_address): Add argument.
4965 * target.c (update_current_target): Update.
4966 * remote.c (remote_get_tib_address): Add 'self' argument.
4968 2014-02-19 Tom Tromey <tromey@redhat.com>
4970 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4971 (target_set_trace_notes): Add argument.
4972 * target.c (update_current_target): Update.
4973 * remote.c (remote_set_trace_notes): Add 'self' argument.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4979 (target_set_trace_buffer_size): Add argument.
4980 * target.c (update_current_target): Update.
4981 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4987 (target_set_circular_trace_buffer): Add argument.
4988 * target.c (update_current_target): Update.
4989 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4992 2014-02-19 Tom Tromey <tromey@redhat.com>
4994 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4996 (target_set_disconnected_tracing): Add argument.
4997 * target.c (update_current_target): Update.
4998 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5002 * target.h (struct target_ops)
5003 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5004 (target_get_min_fast_tracepoint_insn_len): Add argument.
5005 * target.c (update_current_target): Update.
5006 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5013 (target_get_raw_trace_data): Add argument.
5014 * target.c (update_current_target): Update.
5015 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5017 2014-02-19 Tom Tromey <tromey@redhat.com>
5019 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5021 (target_upload_trace_state_variables): Add argument.
5022 * target.c (update_current_target): Update.
5023 * remote.c (remote_upload_trace_state_variables): Add 'self'
5025 (remote_start_remote): Update.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5031 (target_upload_tracepoints): Add argument.
5032 * target.c (update_current_target): Update.
5033 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5034 (remote_start_remote): Update.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5039 (target_save_trace_data): Add argument.
5040 * target.c (update_current_target): Update.
5041 * remote.c (remote_save_trace_data): Add 'self' argument.
5043 2014-02-19 Tom Tromey <tromey@redhat.com>
5045 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5047 * target.h (struct target_ops)
5048 <to_get_trace_state_variable_value>: Add argument.
5049 (target_get_trace_state_variable_value): Add argument.
5050 * target.c (update_current_target): Update.
5051 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5053 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5058 * target.h (struct target_ops) <to_trace_find>: Add argument.
5059 (target_trace_find): Add argument.
5060 * target.c (update_current_target): Update.
5061 * remote.c (remote_trace_find): Add 'self' argument.
5062 * ctf.c (ctf_trace_find): Add 'self' argument.
5064 2014-02-19 Tom Tromey <tromey@redhat.com>
5066 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5067 (target_trace_stop): Add argument.
5068 * target.c (update_current_target): Update.
5069 * remote.c (remote_trace_stop): Add 'self' argument.
5071 2014-02-19 Tom Tromey <tromey@redhat.com>
5073 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5074 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5076 (target_get_tracepoint_status): Add argument.
5077 * target.c (update_current_target): Update.
5078 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5080 2014-02-19 Tom Tromey <tromey@redhat.com>
5082 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5083 * target.h (struct target_ops) <to_get_trace_status>: Add
5085 (target_get_trace_status): Add argument.
5086 * target.c (update_current_target): Update.
5087 * remote.c (remote_get_trace_status): Add 'self' argument.
5088 (remote_start_remote, remote_can_download_tracepoint): Update.
5089 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5091 2014-02-19 Tom Tromey <tromey@redhat.com>
5093 * target.h (struct target_ops) <to_trace_start>: Add argument.
5094 (target_trace_start): Add argument.
5095 * target.c (update_current_target): Update.
5096 * remote.c (remote_trace_start): Add 'self' argument.
5098 2014-02-19 Tom Tromey <tromey@redhat.com>
5100 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5102 (target_trace_set_readonly_regions): Add argument.
5103 * target.c (update_current_target): Update.
5104 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5107 2014-02-19 Tom Tromey <tromey@redhat.com>
5109 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5111 (target_disable_tracepoint): Add argument.
5112 * target.c (update_current_target): Update.
5113 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5119 (target_enable_tracepoint): Add argument.
5120 * target.c (update_current_target): Update.
5121 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * target.h (struct target_ops) <to_download_trace_state_variable>:
5127 (target_download_trace_state_variable): Add argument.
5128 * target.c (update_current_target): Update.
5129 * remote.c (remote_download_trace_state_variable): Add 'self'
5132 2014-02-19 Tom Tromey <tromey@redhat.com>
5134 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5136 (target_can_download_tracepoint): Add argument.
5137 * target.c (update_current_target): Update.
5138 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5140 2014-02-19 Tom Tromey <tromey@redhat.com>
5142 * target.h (struct target_ops) <to_download_tracepoint>: Add
5144 (target_download_tracepoint): Add argument.
5145 * target.c (update_current_target): Update.
5146 * remote.c (remote_download_tracepoint): Add 'self' argument.
5148 2014-02-19 Tom Tromey <tromey@redhat.com>
5150 * target.h (struct target_ops) <to_trace_init>: Add argument.
5151 (target_trace_init): Add argument.
5152 * target.c (update_current_target): Update.
5153 * remote.c (remote_trace_init): Add 'self' argument.
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5158 * target.c (target_fileio_readlink): Add argument.
5159 * remote.c (remote_hostio_readlink): Add 'self' argument.
5160 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5165 * target.c (target_fileio_unlink): Add argument.
5166 * remote.c (remote_hostio_unlink): Add 'self' argument.
5167 (remote_file_delete): Update.
5168 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5173 * target.c (target_fileio_close): Add argument.
5174 * remote.c (remote_hostio_close): Add 'self' argument.
5175 (remote_hostio_close_cleanup): Update.
5176 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5178 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5180 2014-02-19 Tom Tromey <tromey@redhat.com>
5182 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5183 * target.c (target_fileio_pread): Add argument.
5184 * remote.c (remote_hostio_pread): Add 'self' argument.
5185 (remote_bfd_iovec_pread, remote_file_get): Update.
5186 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5188 2014-02-19 Tom Tromey <tromey@redhat.com>
5190 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5191 * target.c (target_fileio_pwrite): Add argument.
5192 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5193 (remote_file_put): Update.
5194 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5199 * target.c (target_fileio_open): Add argument.
5200 * remote.c (remote_hostio_open): Add 'self' argument.
5201 (remote_bfd_iovec_open): Add 'self' argument.
5202 (remote_file_put): Add 'self' argument.
5203 (remote_file_get): Add 'self' argument.
5204 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5210 (target_can_run_breakpoint_commands): Add argument.
5211 * target.c (update_current_target): Update.
5212 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5214 (remote_insert_breakpoint): Add 'self' argument.
5215 (remote_insert_hw_breakpoint): Add 'self' argument.
5216 (remote_can_run_breakpoint_commands): Add 'self' argument.
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target.h (struct target_ops)
5221 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5222 (target_supports_evaluation_of_breakpoint_conditions): Add
5224 * target.c (update_current_target): Update.
5225 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5227 (remote_insert_breakpoint): Add 'self' argument.
5228 (remote_insert_hw_breakpoint): Add 'self' argument.
5229 (remote_supports_cond_breakpoints): Add 'self' argument.
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5235 (target_supports_string_tracing): Add argument.
5236 * target.c (update_current_target): Update.
5237 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target.h (struct target_ops)
5242 <to_supports_disable_randomization>: Add argument.
5243 * target.c (find_default_supports_disable_randomization): Add
5245 (target_supports_disable_randomization): Add argument.
5246 (find_default_supports_disable_randomization): Add 'self'
5248 * remote.c (extended_remote_supports_disable_randomization): Add
5250 (remote_supports_disable_randomization): Add 'self' argument.
5251 (extended_remote_create_inferior): Update.
5252 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target.h (struct target_ops)
5258 <to_supports_enable_disable_tracepoint>: Add argument.
5259 (target_supports_enable_disable_tracepoint): Add argument.
5260 * target.c (update_current_target): Update.
5261 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target.h (struct target_ops) <to_supports_multi_process>: Add
5268 (target_supports_multi_process): Add argument.
5269 * target.c (update_current_target): Update.
5270 * remote.c (remote_supports_multi_process): Add 'self' argument.
5271 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5273 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target.h (struct target_ops) <to_execution_direction>: Add
5280 (target_execution_direction): Add argument.
5281 * target.c (default_execution_direction): Add 'self' argument.
5282 * record-full.c (record_full_execution_direction): Add 'self'
5285 2014-02-19 Tom Tromey <tromey@redhat.com>
5287 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5289 (target_can_execute_reverse): Add argument.
5290 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5291 * record-full.c (record_full_can_execute_reverse): Add 'self'
5293 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5296 2014-02-19 Tom Tromey <tromey@redhat.com>
5298 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5299 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5301 (target_get_ada_task_ptid): Add argument.
5302 * target.c (update_current_target): Update.
5303 (default_get_ada_task_ptid): Add 'self' argument.
5304 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5305 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5306 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5308 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5310 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5312 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5314 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5315 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5321 (target_goto_bookmark): Add argument.
5322 * target.c (dummy_goto_bookmark): Add 'self' argument.
5323 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5325 2014-02-19 Tom Tromey <tromey@redhat.com>
5327 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5328 (target_get_bookmark): Add argument.
5329 * target.c (dummy_get_bookmark): Add 'self' argument.
5330 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5336 (target_make_corefile_notes): Add argument.
5337 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5338 * procfs.c (procfs_make_note_section): Add 'self' argument.
5339 (procfs_make_note_section): Add 'self' argument.
5340 (procfs_make_note_section): Add 'self' argument.
5341 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5343 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5344 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5345 * exec.c (exec_make_note_section): Add 'self' argument.
5346 (exec_make_note_section): Add 'self' argument.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * target.h (struct target_ops) <to_find_memory_regions>: Add
5352 (target_find_memory_regions): Add argument.
5353 * target.c (dummy_find_memory_regions): Add 'self' argument.
5354 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5355 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5356 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5357 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5358 * exec. (exec_do_find_memory_regions): New global.
5359 (exec_set_find_memory_regions): Rewrite.
5360 (exec_find_memory_regions): New function.
5361 (init_exec_ops): Use exec_find_memory_regions.
5363 2014-02-19 Tom Tromey <tromey@redhat.com>
5365 * target.h (struct target_ops) <to_supports_non_stop>: Add
5367 * target.c (find_default_supports_non_stop): Add argument.
5368 (target_supports_non_stop): Add argument.
5369 (find_default_supports_non_stop): Add 'self' argument.
5370 * remote.c (remote_supports_non_stop): Add 'self' argument.
5371 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5373 2014-02-19 Tom Tromey <tromey@redhat.com>
5375 * target.h (struct target_ops) <to_log_command>: Add argument.
5376 (target_log_command): Add argument.
5377 * serial.h (serial_log_command): Add 'self' argument.
5378 * serial.c (serial_log_command): Add 'self' argument.
5380 2014-02-19 Tom Tromey <tromey@redhat.com>
5382 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5383 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5385 (target_pid_to_exec_file): Add argument.
5386 * target.c (debug_to_pid_to_exec_file): Add argument.
5387 (update_current_target): Update.
5388 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5389 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5390 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5391 (linux_handle_extended_wait): Update.
5392 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5393 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5394 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5395 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target.h (struct target_ops) <to_rcmd>: Add argument.
5400 (target_rcmd): Add argument.
5401 * target.c (debug_to_rcmd): Add argument.
5402 (update_current_target, do_monitor_command): Update.
5403 * remote.c (remote_rcmd): Add 'self' argument.
5404 * monitor.c (monitor_rcmd): Add 'self' argument.
5406 2014-02-19 Tom Tromey <tromey@redhat.com>
5408 * windows-nat.c (windows_stop): Add 'self' argument.
5409 * target.h (struct target_ops) <to_stop>: Add argument.
5410 * target.c (target_stop): Add argument.
5411 (debug_to_stop): Add argument.
5412 (update_current_target): Update.
5413 * remote.c (remote_stop): Add 'self' argument.
5414 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5415 (gdbsim_cntrl_c): Update.
5416 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5417 * procfs.c (procfs_stop): Add 'self' argument.
5418 * nto-procfs.c (procfs_stop): Add 'self' argument.
5419 * monitor.c (monitor_stop): Add 'self' argument.
5420 (monitor_open): Update.
5421 * linux-nat.c (linux_nat_stop): Add argument.
5422 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5423 * gnu-nat.c (gnu_stop): Add 'self' argument.
5424 * darwin-nat.c (darwin_stop): Add 'self' argument.
5426 2014-02-19 Tom Tromey <tromey@redhat.com>
5428 * target.h (struct target_ops) <to_thread_name>: Add argument.
5429 * target.c (target_thread_name): Add argument.
5430 (update_current_target): Update.
5431 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5433 2014-02-19 Tom Tromey <tromey@redhat.com>
5435 * target.h (struct target_ops) <to_extra_thread_info>: Add
5437 (target_extra_thread_info): Add argument.
5438 * target.c (update_current_target): Update.
5439 * remote.c (remote_threads_extra_info): Add 'self' argument.
5440 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5442 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5443 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5444 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5446 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5448 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5450 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target.h (struct target_ops) <to_program_signals>: Add argument.
5456 * target.c (target_program_signals): Add argument.
5457 * remote.c (remote_program_signals): Add 'self' argument.
5459 2014-02-19 Tom Tromey <tromey@redhat.com>
5461 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5462 * target.c (target_pass_signals): Add argument.
5463 * remote.c (remote_pass_signals): Add 'self' argument.
5464 (remote_start_remote): Update.
5465 * procfs.c (procfs_pass_signals): Add 'self' argument.
5466 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5467 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5468 (linux_nat_create_inferior, linux_nat_attach): Update.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * windows-nat.c (windows_can_run): Add 'self' argument.
5473 * target.h (struct target_ops) <to_can_run>: Add argument.
5474 (target_can_run): Add argument.
5475 * target.c (debug_to_can_run): Add argument.
5476 (update_current_target): Update.
5477 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5478 * inf-child.c (inf_child_can_run): Add 'self' argument.
5479 * go32-nat.c (go32_can_run): Add 'self' argument.
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops) <to_has_exited>: Add argument.
5484 (target_has_exited): Add argument.
5485 * target.c (debug_to_has_exited): Add argument.
5486 (update_current_target): Update.
5488 2014-02-19 Tom Tromey <tromey@redhat.com>
5490 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5492 (target_set_syscall_catchpoint): Add argument.
5493 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5495 * target.c (update_current_target): Update.
5497 2014-02-19 Tom Tromey <tromey@redhat.com>
5499 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5501 (target_remove_exec_catchpoint): Add argument.
5502 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5503 (update_current_target): Update.
5504 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5507 2014-02-19 Tom Tromey <tromey@redhat.com>
5509 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5511 (target_insert_exec_catchpoint): Add argument.
5512 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5513 (update_current_target): Update.
5514 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5521 (target_remove_vfork_catchpoint): Add argument.
5522 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5523 (update_current_target): Update.
5524 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5527 2014-02-19 Tom Tromey <tromey@redhat.com>
5529 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5531 (target_insert_vfork_catchpoint): Add argument.
5532 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5533 (update_current_target): Update.
5534 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5537 2014-02-19 Tom Tromey <tromey@redhat.com>
5539 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5541 (target_remove_fork_catchpoint): Add argument.
5542 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5543 (update_current_target): Update.
5544 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5547 2014-02-19 Tom Tromey <tromey@redhat.com>
5549 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5551 (target_insert_fork_catchpoint): Add argument.
5552 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5553 (update_current_target): Update.
5554 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5557 2014-02-19 Tom Tromey <tromey@redhat.com>
5559 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5561 (target_post_startup_inferior): Add argument.
5562 * target.c (debug_to_post_startup_inferior): Add argument.
5563 (update_current_target): Update.
5564 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5566 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5568 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5570 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5572 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5574 (super_post_startup_inferior): Likewise.
5575 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5577 (super_post_startup_inferior): Likewise.
5578 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5579 Add 'self' argument.
5580 (super_post_startup_inferior): Likewise.
5582 2014-02-19 Tom Tromey <tromey@redhat.com>
5584 * target.h (struct target_ops) <to_load>: Add argument.
5585 * target.c (target_load): Add argument.
5586 (debug_to_load): Add argument.
5587 (update_current_target): Update.
5588 * remote.c (remote_load): Add 'self' argument.
5589 * remote-sim.c (gdbsim_load): Add 'self' argument.
5590 * remote-mips.c (mips_load): Add 'self' argument.
5591 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5592 * monitor.c (monitor_load): Add 'self' argument.
5593 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5595 2014-02-19 Tom Tromey <tromey@redhat.com>
5597 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5598 (target_terminal_info): Add argument.
5599 * target.c (debug_to_terminal_info): Add argument.
5600 (default_terminal_info): Likewise.
5601 * inflow.c (child_terminal_info): Add 'self' argument.
5602 * inferior.h (child_terminal_info): Add 'self' argument.
5603 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5605 2014-02-19 Tom Tromey <tromey@redhat.com>
5607 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5609 (target_terminal_save_ours): Add argument.
5610 * target.c (debug_to_terminal_save_ours): Add argument.
5611 (update_current_target): Update.
5612 * inflow.c (terminal_save_ours): Add 'self' argument.
5613 * inferior.h (terminal_save_ours): Add 'self' argument.
5615 2014-02-19 Tom Tromey <tromey@redhat.com>
5617 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5618 (target_terminal_ours): Add argument.
5619 * target.c (debug_to_terminal_ours): Add argument.
5620 (update_current_target): Update.
5621 * remote.c (remote_terminal_ours): Add 'self' argument.
5622 (remote_close): Update.
5623 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5624 * inflow.c (terminal_ours): Add 'self' argument.
5625 * inferior.h (terminal_ours): Add 'self' argument.
5626 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5628 2014-02-19 Pedro Alves <palves@redhat.com>
5629 Tom Tromey <tromey@redhat.com>
5631 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5633 (target_terminal_ours_for_output): Add argument.
5634 * target.c (debug_to_terminal_ours_for_output): Add argument.
5635 (update_current_target): Update.
5636 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5637 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5638 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target.h (struct target_ops) <to_terminal_inferior>: Add
5644 * target.c (target_terminal_inferior): Add argument.
5645 (update_current_target): Update.
5646 * remote.c (remote_terminal_inferior): Add 'self' argument.
5647 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5648 * inflow.c (terminal_inferior): Add 'self' argument.
5649 * inferior.h (terminal_inferior): Add 'self' argument.
5650 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5651 (go32_terminal_inferior): Add 'self' argument.
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5656 (target_terminal_init): Add argument.
5657 * target.c (debug_to_terminal_init): Add argument.
5658 (update_current_target): Update.
5659 * inflow.c (terminal_init_inferior): Add 'self' argument.
5660 * inferior.h (terminal_init_inferior): Add 'self' argument.
5661 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5662 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5664 2014-02-19 Tom Tromey <tromey@redhat.com>
5666 * target.h (struct target_ops)
5667 <to_can_accel_watchpoint_condition>: Add argument.
5668 (target_can_accel_watchpoint_condition): Add argument.
5669 * target.c (debug_to_can_accel_watchpoint_condition): Add
5671 (update_current_target): Update.
5672 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5675 2014-02-19 Tom Tromey <tromey@redhat.com>
5677 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5679 (target_region_ok_for_hw_watchpoint): Add argument.
5680 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5681 (default_region_ok_for_hw_watchpoint): Add argument.
5682 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5683 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5685 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5687 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5689 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5691 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5693 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5695 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5696 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5698 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5699 Add 'self' argument.
5701 2014-02-19 Tom Tromey <tromey@redhat.com>
5703 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5705 (target_insert_watchpoint): Add argument.
5706 * target.c (debug_to_insert_watchpoint): Add argument.
5707 (update_current_target): Update.
5708 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5709 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5710 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5711 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5712 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5713 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5715 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5716 (procfs_insert_hw_watchpoint): Add 'self' argument.
5717 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5719 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5721 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5723 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5724 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5726 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5733 (target_remove_watchpoint): Add argument.
5734 * target.c (debug_to_remove_watchpoint): Add argument.
5735 (update_current_target): Update.
5736 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5737 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5738 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5739 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5740 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5741 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5743 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5744 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5746 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5748 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5750 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5751 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5753 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5756 2014-02-19 Tom Tromey <tromey@redhat.com>
5758 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5760 (target_remove_hw_breakpoint): Add argument.
5761 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5762 (update_current_target): Update.
5763 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5764 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5766 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5767 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5769 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5772 2014-02-19 Tom Tromey <tromey@redhat.com>
5774 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5776 (target_insert_hw_breakpoint): Add argument.
5777 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5778 (update_current_target): Update.
5779 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5780 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5782 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5783 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5784 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5786 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5789 2014-02-19 Tom Tromey <tromey@redhat.com>
5791 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5793 (target_can_use_hardware_watchpoint): Add argument.
5794 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5795 (update_current_target): Update.
5796 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5798 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5800 * remote.c (remote_check_watch_resources): Add 'self' argument.
5801 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5802 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5804 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5805 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5807 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5809 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5811 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5813 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5815 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5817 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5818 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5820 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target.h (struct target_ops) <to_post_attach>: Add argument.
5826 (target_post_attach): Add argument.
5827 * target.c (debug_to_post_attach): Add argument.
5828 (update_current_target): Update.
5829 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5830 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5831 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5832 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5833 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5835 2014-02-19 Tom Tromey <tromey@redhat.com>
5837 * windows-nat.c (windows_close): Add 'self' argument.
5838 * tracepoint.c (tfile_close): Add 'self' argument.
5839 * target.h (struct target_ops) <to_close>: Add argument.
5840 * target.c (target_close): Add argument.
5841 (update_current_target): Update.
5842 * remote.c (remote_close): Add 'self' argument.
5843 * remote-sim.c (gdbsim_close): Add 'self' argument.
5844 * remote-mips.c (mips_close): Add 'self' argument.
5845 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5846 * record-full.c (record_full_close): Add 'self' argument.
5847 * record-btrace.c (record_btrace_close): Add 'self' argument.
5848 * monitor.h (monitor_close): Add 'self' argument.
5849 * monitor.c (monitor_close): Add 'self' argument.
5850 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5851 * linux-nat.c (linux_nat_close): Add argument.
5852 * go32-nat.c (go32_close): Add 'self' argument.
5853 * exec.c (exec_close_1): Add 'self' argument.
5854 * ctf.c (ctf_close): Add 'self' argument.
5855 * corelow.c (core_close): Add 'self' argument.
5856 (core_close_cleanup): Update.
5857 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5858 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5860 2014-02-19 Tom Tromey <tromey@redhat.com>
5862 * remote.c (remote_load): New function.
5863 (init_remote_ops): Use it.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5869 * common/linux-btrace.h (linux_supports_btrace): Update.
5870 * remote.c (remote_supports_btrace): Add "self" argument.
5871 * target-delegates.c: Rebuild.
5872 * target.c (target_supports_btrace): Remove.
5873 * target.h (struct target_ops) <to_supports_btrace>: Add
5874 target_ops argument.
5875 (target_supports_btrace): New define.
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5879 * record-full.c (record_full_beneath_to_resume_ops)
5880 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5881 (record_full_beneath_to_wait)
5882 (record_full_beneath_to_store_registers_ops)
5883 (record_full_beneath_to_store_registers)
5884 (record_full_beneath_to_xfer_partial_ops)
5885 (record_full_beneath_to_xfer_partial)
5886 (record_full_beneath_to_insert_breakpoint_ops)
5887 (record_full_beneath_to_insert_breakpoint)
5888 (record_full_beneath_to_remove_breakpoint_ops)
5889 (record_full_beneath_to_remove_breakpoint)
5890 (record_full_beneath_to_stopped_by_watchpoint)
5891 (record_full_beneath_to_stopped_data_address)
5892 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5893 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5894 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5895 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5896 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5897 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5898 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5899 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5900 (record_full_resume, record_full_wait_1)
5901 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5902 (record_full_store_registers, record_full_xfer_partial)
5903 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5904 (record_full_async, record_full_core_xfer_partial): Use target
5906 * target-delegates.c: Rebuild.
5907 * target.c (current_xfer_partial): Remove.
5908 (update_current_target): Do not INHERIT or de_fault
5909 to_insert_breakpoint, to_remove_breakpoint,
5910 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5911 to_is_async_p, to_async. Do not set to_xfer_partial field.
5912 (default_xfer_partial): Simplify.
5913 (current_xfer_partial): Remove.
5914 (target_wait, target_resume): Simplify.
5915 (find_default_can_async_p, find_default_is_async_p): Update.
5916 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5917 to_xfer_partial, to_stopped_by_watchpoint,
5918 to_stopped_data_address.
5919 (target_store_registers): Simplify.
5920 (forward_target_remove_breakpoint)
5921 (forward_target_insert_breakpoint): Remove.
5922 (target_remove_breakpoint, target_insert_breakpoint)
5923 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5924 * target.h (struct target_ops) <to_resume, to_wait,
5925 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5926 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5927 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5929 (forward_target_remove_breakpoint)
5930 (forward_target_insert_breakpoint): Remove.
5931 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5933 (record_btrace_insert_breakpoint): Delegate directly.
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5938 * target-delegates.c: New file.
5939 * target.c: Include target-delegates.c.
5940 (init_dummy_target): Call install_dummy_methods.
5941 (complete_target_initialization): Call install_delegators.
5942 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5943 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5944 * make-target-delegates: New file.
5946 2014-02-19 Tom Tromey <tromey@redhat.com>
5948 * record.c (find_record_target): Use find_target_at.
5949 * target.c (find_target_at): New function.
5950 * target.h (find_target_at): Declare.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5956 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5958 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5959 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5961 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5963 * linux-nat.c (save_sigtrap): Update.
5964 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5965 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5966 (linux_nat_close): Update.
5967 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5969 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5971 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5972 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5973 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5974 (tmp_to_async): Add 'ops' argument.
5975 (record_full_stopped_by_watchpoint, record_full_async)
5976 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5978 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5979 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5980 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5981 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5982 (remote_is_async_p, remote_async): Add 'ops' argument.
5983 (remote_stopped_data_address): Update.
5984 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5985 * target.c (update_current_target)
5986 (find_default_can_async_p, find_default_is_async_p): Update.
5987 (init_dummy_target): Update.
5988 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5989 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5990 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5991 (target_can_async_p, target_is_async_p, target_async)
5992 (target_stopped_by_watchpoint): Update.
5994 2014-02-19 Yao Qi <yao@codesourcery.com>
5997 * gdbarch.sh: Remove startup_gdbarch.
5998 * gdbarch.c: Regenerated.
5999 * gdbarch.h: Likewise.
6001 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6003 * rl78-tdep.c (rl78_g10_register_name): New function.
6004 (rl78_return_value): Add g10 support.
6005 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6008 2014-02-17 Doug Evans <xdje42@gmail.com>
6010 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6011 (SUBDIR_GUILE_SRCS): Ditto.
6012 (scm-gsmob.o): Ditto.
6014 2014-02-17 Yao Qi <yao@codesourcery.com>
6016 * gnu-nat.c (ILL_RPC): Declare defined function.
6018 2014-02-17 Yao Qi <yao@codesourcery.com>
6020 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6021 mach_msg_type_number_t.
6022 (gnu_write_inferior): Likewise.
6024 2014-02-17 Yao Qi <yao@codesourcery.com>
6026 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6028 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6029 (inf_validate_procs, inf_signal): Likewise.
6030 (S_exception_raise_request): Likewise.
6031 (do_mach_notify_dead_name): Likewise.
6032 (steal_exc_port): Likewise.
6033 (gnu_read_inferior): Change 'copy_count''s type to
6034 mach_msg_type_number_t.
6035 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6038 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6040 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6041 flag. Adjust all users; in particular...
6042 (gnu_wait): ..., don't decrement its value in here...
6043 (gnu_create_inferior): ..., and instead set the flag in here,
6044 around the startup_inferior call, and call that one with
6045 START_INFERIOR_TRAPS_EXPECTED.
6047 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6048 (ILL_RPC): ... new macro.
6049 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6050 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6051 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6052 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6053 functions with ILL_RPC macro.
6054 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6055 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6056 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6057 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6058 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6059 (S_proc_getlogin_reply, S_proc_getsid_reply)
6060 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6061 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6062 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6063 (S_proc_getnports_reply, S_proc_is_important_reply)
6064 (S_proc_get_code_reply): New stub functions, generated with
6067 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6068 collected the type check structures.
6070 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6072 2014-02-14 Doug Evans <dje@google.com>
6074 * target.c (target_write_partial): Fix result type.
6076 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6078 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6079 the proper offsets to access fpregset_t.
6081 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6083 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6084 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6085 * h8300-tdep.c (setmachinelist): Remove global.
6086 * hppa-tdep.c (hppa_sigtramp): Remove global.
6087 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6088 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6089 * ravenscar-thread.c (update_target_observer): Remove global.
6090 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6092 2014-02-12 Tom Tromey <tromey@redhat.com>
6094 * common/rsp-low.c: Update comments.
6095 * common/rsp-low.h: Update comments.
6097 2014-02-12 Tom Tromey <tromey@redhat.com>
6099 * common/rsp-low.c (convert_ascii_to_int): Remove.
6100 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6102 2014-02-12 Tom Tromey <tromey@redhat.com>
6104 * common/rsp-low.h (unhexify): Don't declare.
6105 * common/rsp-low.c (unhexify): Remove.
6107 2014-02-12 Tom Tromey <tromey@redhat.com>
6109 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6110 * common/rsp-low.c (convert_int_to_ascii): Remove.
6112 2014-02-12 Tom Tromey <tromey@redhat.com>
6114 * common/rsp-low.h (hexify): Don't declare.
6115 * common/rsp-low.c (hexify): Remove.
6117 2014-02-12 Tom Tromey <tromey@redhat.com>
6119 * common/rsp-low.c (hexify): Never take strlen of argument.
6121 2014-02-12 Tom Tromey <tromey@redhat.com>
6123 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6124 * remote.c (extended_remote_run, remote_rcmd)
6125 (remote_download_trace_state_variable, remote_save_trace_data)
6126 (remote_set_trace_notes): Update.
6127 * tracepoint.c (encode_source_string, tfile_write_status)
6128 (tfile_write_uploaded_tsv): Update.
6130 2014-02-12 Tom Tromey <tromey@redhat.com>
6132 * tracepoint.c: Include rsp-low.h.
6133 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6134 * remote.c: Include rsp-low.h.
6135 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6136 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6137 (remote_unescape_input): Move to common/rsp-low.c.
6138 * common/rsp-low.h: New file.
6139 * common/rsp-low.c: New file.
6140 * Makefile.in (SFILES): Add common/rsp-low.c.
6141 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6142 (COMMON_OBS): Add rsp-low.o.
6143 (rsp-low.o): New target.
6145 2014-02-12 Tom Tromey <tromey@redhat.com>
6147 * utils.h: Include print-utils.h.
6148 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6149 (int_string, core_addr_to_string, core_addr_to_string_nz)
6150 (hex_string, hex_string_custom): Don't declare.
6151 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6152 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6153 (hex_string_custom, int_string, core_addr_to_string)
6154 (core_addr_to_string_nz, host_address_to_string): Move to
6155 common/print-utils.c.
6156 * common/print-utils.h: New file.
6157 * common/print-utils.c: New file
6158 * Makefile.in (SFILES): Add common/print-utils.c.
6159 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6160 (COMMON_OBS): Add print-utils.o.
6161 (print-utils.o): New target.
6163 2014-02-12 Tom Tromey <tromey@redhat.com>
6165 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6167 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6169 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6171 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6173 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6174 if a PT_IO ptrace request returns sucessfully but indicates that 0
6175 bytes were transferred.
6177 2014-02-12 Pedro Alves <palves@redhat.com>
6178 Kevin Buettner <kevinb@redhat.com>
6180 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6181 TYPE_INSTANCE_FLAG_CODE_SPACE.
6183 2014-02-12 Pedro Alves <palves@redhat.com>
6185 * h8300-tdep.c (pseudo_from_raw_register)
6186 (raw_from_pseudo_register): New functions.
6187 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6190 2014-02-12 Pedro Alves <palves@redhat.com>
6192 * h8300-tdep.c (h8300_register_sim_regno): New function.
6193 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6194 gdbarch_register_sim_regno hook.
6196 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6198 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6200 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6202 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6204 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6206 * obsd-tdep.h (obsd_init_abi): New prototype.
6207 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6208 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6209 (obsd_init_abi): New functions.
6210 * i386obsd-tdep.c: Include "obsd-tdep.h".
6211 (i386obsd_init_abi): Call obsd_init_abi.
6212 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6213 (amd64obsd_init_abi): Call obsd_init_abi.
6214 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6215 obsd-tdep.c to gdb_target_obs.
6217 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6219 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6220 double float arguments to 16-byte in the argument slots.
6222 2014-02-11 Doug Evans <xdje42@gmail.com>
6224 * configure.ac: Don't crash if pkg-config is not found and guile
6225 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6227 * configure: Regenerate.
6229 2014-02-11 Yao Qi <yao@codesourcery.com>
6231 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6232 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6233 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6234 * gnu-nat.c (gnu_xfer_memory): Likewise.
6235 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6236 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6237 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6238 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6240 2014-02-11 Yao Qi <yao@codesourcery.com>
6242 * target.h (enum target_xfer_error): Rename to ...
6243 (enum target_xfer_status): ... it. New. All users updated.
6244 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6246 (TARGET_XFER_STATUS_ERROR_P): New macro.
6247 (target_xfer_error_to_string): Remove declaration.
6248 (target_xfer_status_to_string): Declare.
6249 (target_xfer_partial_ftype): Adjust it.
6250 (struct target_ops) <to_xfer_partial>: Return
6251 target_xfer_status. Add argument xfered_len. Update
6253 * target.c (target_xfer_error_to_string): Rename to ...
6254 (target_xfer_status_to_string): ... it. New. All callers
6256 (target_read_live_memory): Likewise. Call target_xfer_partial
6257 instead of target_read.
6258 (memory_xfer_live_readonly_partial): Return
6259 target_xfer_status. Add argument xfered_len.
6260 (raw_memory_xfer_partial): Likewise.
6261 (memory_xfer_partial_1): Likewise.
6262 (memory_xfer_partial): Likewise.
6263 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6264 properly. Update debug message.
6265 (default_xfer_partial, current_xfer_partial): Likewise.
6266 (target_write_partial): Likewise.
6267 (target_read_partial): Likewise. All callers updated.
6268 (read_whatever_is_readable): Likewise.
6269 (target_write_with_progress): Likewise.
6270 (target_read_alloc_1): Likewise.
6272 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6273 * auxv.c (procfs_xfer_auxv): Likewise.
6274 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6275 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6276 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6277 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6278 * corefile.c (read_memory): Adjust.
6279 * corelow.c (core_xfer_partial): Likewise.
6280 * ctf.c (ctf_xfer_partial): Likewise.
6281 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6283 (darwin_xfer_partial): Likewise.
6284 * exec.c (section_table_xfer_memory_partial): Likewise. All
6286 (exec_xfer_partial): Likewise.
6287 * exec.h (section_table_xfer_memory_partial): Update
6289 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6291 (gnu_xfer_partial): Likewise.
6292 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6293 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6294 (ia64_hpux_xfer_solib_got): Likewise.
6295 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6296 type of 'partial_len' to ULONGEST.
6297 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6298 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6299 (linux_nat_xfer_partial): Likewise.
6300 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6301 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6302 * monitor.c (monitor_xfer_memory): Likewise.
6303 (monitor_xfer_partial): Likewise.
6304 * procfs.c (procfs_xfer_partial): Likewise.
6305 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6306 * record-full.c (record_full_xfer_partial): Likewise.
6307 (record_full_core_xfer_partial): Likewise.
6308 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6309 (gdbsim_xfer_partial): Likewise.
6310 * remote.c (remote_write_bytes_aux): Likewise. All callers
6312 (remote_write_bytes, remote_read_bytes): Likewise. All
6314 (remote_flash_erase): Likewise. All callers updated.
6315 (remote_write_qxfer): Likewise. All callers updated.
6316 (remote_read_qxfer): Likewise. All callers updated.
6317 (remote_xfer_partial): Likewise.
6318 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6319 (rs6000_xfer_shared_libraries): Likewise.
6320 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6321 (sol_thread_xfer_partial): Likewise.
6322 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6323 (sparc_xfer_partial): Likewise.
6324 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6326 (spu_xfer_partial): Likewise.
6327 * spu-multiarch.c (spu_xfer_partial): Likewise.
6328 * tracepoint.c (tfile_xfer_partial): Likewise.
6329 * windows-nat.c (windows_xfer_memory): Likewise.
6330 (windows_xfer_shared_libraries): Likewise.
6331 (windows_xfer_partial): Likewise.
6332 * valprint.c: Replace 'target_xfer_error' with
6333 'target_xfer_status' in comments.
6335 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6337 Checked in by Joel Brobecker <brobecker@adacore.com>.
6338 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6340 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6342 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6343 function parameters.
6345 2014-02-10 Will Newton <will.newton@linaro.org>
6347 * elfread.c (elf_rel_plt_read): Look for a .got section if
6348 looking up .got.plt fails.
6349 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6350 on address passed to elf_gnu_ifunc_record_cache.
6351 (elf_gnu_ifunc_resolve_addr): Likewise.
6352 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6354 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6356 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6357 (X_RETTURN): New macro.
6358 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6360 * sparc64-tdep.c (sparc64_init_abi): Hook
6361 sparc_in_function_epilogue_p.
6363 2014-02-10 Gary Benson <gbenson@redhat.com>
6365 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6366 Rename name_matcher to symbol_matcher.
6368 2014-02-10 Gary Benson <gbenson@redhat.com>
6370 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6371 Use expand_symtabs_file_matcher_ftype and
6372 expand_symtabs_symbol_matcher_ftype.
6374 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6376 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6377 (struct ada_symbol_cache): New.
6378 (ada_free_symbol_cache): Forward declare.
6379 (struct ada_pspace_data): New.
6380 (ada_pspace_data_handle): New static global.
6381 (get_ada_pspace_data, ada_pspace_data_cleanup)
6382 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6383 (cache_space, cache): Delete, now folded inside struct
6385 (ada_get_symbol_cache): New function.
6386 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6388 (_initialize_ada_language): Remove initialization of cache_space.
6389 Move call to observer_attach_inferior_exit up, grouping it
6390 with the other observer registrations inside this function.
6391 Rename command to be more general. Add call to
6392 register_program_space_data_with_cleanup.
6394 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6396 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6397 ada_new_objfile_observer.
6398 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6399 (_initialize_tasks): Update uses of ada_new_objfile_observer
6400 and ada_tasks_normal_stop_observer.
6402 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6404 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6405 returned by the 'Length attribute to integer.
6407 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6409 * ada-lang.c (_initialize_ada_language): Initialize
6410 cache_space obstack.
6412 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6414 * ada-lang.c (HASH_SIZE): New macro.
6415 (struct cache_entry): New type.
6416 (cache_space, cache): New static globals.
6417 (ada_clear_symbol_cache, find_entry): New functions.
6418 (lookup_cached_symbol, cache_symbol): Implement.
6419 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6420 (_initialize_ada_language): Attach ada_new_objfile_observer
6421 and ada_free_objfile_observer.
6423 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6425 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6426 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6427 struct block * parameter.
6428 (ada_lookup_symbol_list_worker): Constify local variable "block".
6429 Remove cast which is no longer necessary.
6431 2014-02-10 Doug Evans <xdje42@gmail.com>
6433 Add Guile as an extension language.
6434 * NEWS: Mention Guile scripting.
6435 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6436 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6437 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6438 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6439 (CLIBS): Add GUILE_LIBS.
6440 (install-guile): New rule.
6441 (guile.o): New rule.
6442 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6443 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6444 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6445 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6446 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6447 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6448 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6449 * configure.ac: New option --with-guile.
6450 * configure: Regenerate.
6451 * config.in: Regenerate.
6452 * auto-load.c: Remove #include "python/python.h". Add #include
6453 "gdb/section-scripts.h".
6454 (source_section_scripts): Handle Guile scripts.
6455 (_initialize_auto_load): Add name of Guile objfile script to
6456 scripts-directory help text.
6457 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6458 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6459 (struct breakpoint): New member scm_bp_object.
6460 * defs.h (enum command_control_type): New value guile_control.
6461 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6463 (show_user): Update comment.
6464 (_initialize_cli_cmds): Update help text for "show user". Update help
6465 text for max-user-call-depth.
6466 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6468 (multi_line_command_p): Add guile_control.
6469 (print_command_lines): Handle guile_control.
6470 (execute_control_command, recurse_read_control_structure): Ditto.
6471 (process_next_line): Recognize "guile" commands.
6472 * disasm.c (gdb_disassemble_info): Make non-static.
6473 * disasm.h: #include "dis-asm.h".
6474 (struct gdbarch): Add forward decl.
6475 (gdb_disassemble_info): Declare.
6476 * extension.c: #include "guile/guile.h".
6477 (extension_languages): Add guile.
6478 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6479 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6480 * gdbtypes.c (get_unsigned_type_max): New function.
6481 (get_signed_type_minmax): New function.
6482 * gdbtypes.h (get_unsigned_type_max): Declare.
6483 (get_signed_type_minmax): Declare.
6484 * guile/README: New file.
6485 * guile/guile-internal.h: New file.
6486 * guile/guile.c: New file.
6487 * guile/guile.h: New file.
6488 * guile/scm-arch.c: New file.
6489 * guile/scm-auto-load.c: New file.
6490 * guile/scm-block.c: New file.
6491 * guile/scm-breakpoint.c: New file.
6492 * guile/scm-disasm.c: New file.
6493 * guile/scm-exception.c: New file.
6494 * guile/scm-frame.c: New file.
6495 * guile/scm-gsmob.c: New file.
6496 * guile/scm-iterator.c: New file.
6497 * guile/scm-lazy-string.c: New file.
6498 * guile/scm-math.c: New file.
6499 * guile/scm-objfile.c: New file.
6500 * guile/scm-ports.c: New file.
6501 * guile/scm-pretty-print.c: New file.
6502 * guile/scm-safe-call.c: New file.
6503 * guile/scm-string.c: New file.
6504 * guile/scm-symbol.c: New file.
6505 * guile/scm-symtab.c: New file.
6506 * guile/scm-type.c: New file.
6507 * guile/scm-utils.c: New file.
6508 * guile/scm-value.c: New file.
6509 * guile/lib/gdb.scm: New file.
6510 * guile/lib/gdb/boot.scm: New file.
6511 * guile/lib/gdb/experimental.scm: New file.
6512 * guile/lib/gdb/init.scm: New file.
6513 * guile/lib/gdb/iterator.scm: New file.
6514 * guile/lib/gdb/printing.scm: New file.
6515 * guile/lib/gdb/types.scm: New file.
6516 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6517 (VPATH): Add $(GUILE_SRCDIR).
6518 (GUILE_DIR): New variable.
6519 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6520 (all): Add stamp-guile dependency.
6521 (stamp-guile): New rule.
6522 (clean-guile, install-guile, uninstall-guile): New rules.
6523 (install-only): Add install-guile dependency.
6524 (uninstall): Add uninstall-guile dependency.
6525 (clean): Add clean-guile dependency.
6527 2014-02-09 Doug Evans <xdje42@gmail.com>
6529 Revert this patch (which I approved, mea culpa).
6531 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6533 * Makefile.in (all-lib): Remove.
6534 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6536 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6538 Fix Python stack corruption.
6539 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6542 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6544 * Makefile.in (all-lib): Remove.
6545 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6547 2014-02-07 Doug Evans <dje@google.com>
6549 * extension-priv.h (extension_language_script_ops): Add comment.
6550 (extension_language_ops): Add comment.
6551 (active_ext_lang_state): Fix typo in comment.
6553 2014-02-07 Pedro Alves <palves@redhat.com>
6555 PR breakpoints/16292
6556 * infrun.c (handle_signal_stop) <signal arrives while stepping
6557 over a breakpoint>: Switch back to the stepping thread.
6559 2014-02-07 Yao Qi <yao@codesourcery.com>
6561 * target.c (target_xfer_partial): Return zero if LEN is zero.
6563 2014-02-07 Yao Qi <yao@codesourcery.com>
6565 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6566 (ld_so_xfer_auxv): Likewise.
6567 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6568 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6569 * corelow.c (core_xfer_partial): Likewise.
6570 * ctf.c (ctf_xfer_partial): Likewise.
6571 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6572 (darwin_xfer_partial): Likewise.
6573 * exec.c (exec_xfer_partial): Likewise.
6574 * gnu-nat.c (gnu_xfer_partial): Likewise.
6575 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6576 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6577 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6578 * linux-nat.c (linux_xfer_siginfo): Likewise.
6579 (linux_proc_xfer_spu): Likewise.
6580 * procfs.c (procfs_xfer_partial): Likewise.
6581 * record-full.c (record_full_xfer_partial): Likewise.
6582 (record_full_core_xfer_partial): Likewise.
6583 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6584 * remote.c (remote_write_qxfer): Likewise.
6585 (remote_write_qxfer, remote_read_qxfer): Likewise.
6586 (remote_xfer_partial): Likewise.
6587 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6588 (rs6000_xfer_shared_libraries): Likewise.
6589 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6590 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6591 (spu_xfer_partial): Likewise.
6592 * target.c (memory_xfer_partial_1): Likewise.
6593 * tracepoint.c (tfile_xfer_partial): Likewise.
6594 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6595 (windows_xfer_partial): Likewise.
6597 2014-02-07 Yao Qi <yao@codesourcery.com>
6599 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6601 (core_xfer_shared_libraries_aix): Likewise.
6602 * gdbarch.c, gdbarch.h: Regenerated.
6603 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6604 ULONGEST. Change 'len_avail' type to ULONGEST.
6605 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6606 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6608 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6610 2014-02-07 Yao Qi <yao@codesourcery.com>
6612 * corefile.c (memory_error): Get 'exception' from ERR and pass
6613 'exception' to throw_error.
6615 2014-02-06 Doug Evans <xdje42@gmail.com>
6617 * configure.ac (libpython checking): Remove all but python.o from
6618 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6619 * configure: Regenerate.
6621 * Makefile.in (SFILES): Add extension.c.
6622 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6623 (COMMON_OBS): Add extension.o.
6624 * extension.h: New file.
6625 * extension-priv.h: New file.
6626 * extension.c: New file.
6628 * python/python-internal.h: #include "extension.h".
6629 (gdbpy_auto_load_enabled): Declare.
6630 (gdbpy_apply_val_pretty_printer): Declare.
6631 (gdbpy_apply_frame_filter): Declare.
6632 (gdbpy_preserve_values): Declare.
6633 (gdbpy_breakpoint_cond_says_stop): Declare.
6634 (gdbpy_breakpoint_has_cond): Declare.
6635 (void source_python_script_for_objfile): Delete.
6636 * python/python.c: #include "extension-priv.h".
6637 Delete inclusion of "observer.h".
6638 (extension_language_python): Moved here and renamed from
6639 script_language_python in py-auto-load.c.
6640 Redefined to be of type extension_language_defn.
6641 (python_extension_script_ops): New global.
6642 (python_extension_ops): New global.
6643 (struct python_env): New member previous_active.
6644 (restore_python_env): Call restore_active_ext_lang.
6645 (ensure_python_env): Call set_active_ext_lang.
6646 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6648 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6650 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6652 (gdbpy_eval_from_control_command): Renamed from
6653 eval_python_from_control_command, made static. New arg extlang.
6654 (gdbpy_source_script) Renamed from source_python_script, made static.
6656 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6657 result to int. New arg extlang.
6658 (gdbpy_source_objfile_script): Renamed from
6659 source_python_script_for_objfile, made static. New arg extlang.
6660 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6661 static. New args extlang, extlang_printers. Change result type to
6663 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6664 static. New arg extlang. Rename arg printers to extlang_printers
6665 and change type to ext_lang_type_printers *.
6666 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6667 static. Replace argument arg with extlang, extlang_printers.
6668 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6669 (!HAVE_PYTHON, source_python_script): Delete.
6670 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6671 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6672 (!HAVE_PYTHON, start_type_printers): Delete.
6673 (!HAVE_PYTHON, apply_type_printers): Delete.
6674 (!HAVE_PYTHON, free_type_printers): Delete.
6675 (_initialize_python): Delete call to observer_attach_before_prompt.
6676 (finalize_python): Set/restore active extension language.
6677 (gdbpy_finish_initialization) Renamed from
6678 finish_python_initialization, made static. New arg extlang.
6679 (gdbpy_initialized): New function.
6680 * python/python.h: #include "extension.h". Delete #include
6681 "value.h", "mi/mi-cmds.h".
6682 (extension_language_python): Declare.
6683 (GDBPY_AUTO_FILE_NAME): Delete.
6684 (enum py_bt_status): Moved to extension.h and renamed to
6686 (enum frame_filter_flags): Moved to extension.h.
6687 (enum py_frame_args): Moved to extension.h and renamed to
6688 ext_lang_frame_args.
6689 (finish_python_initialization): Delete.
6690 (eval_python_from_control_command): Delete.
6691 (source_python_script): Delete.
6692 (apply_val_pretty_printer): Delete.
6693 (apply_frame_filter): Delete.
6694 (preserve_python_values): Delete.
6695 (gdbpy_script_language_defn): Delete.
6696 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6697 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6699 * auto-load.c: #include "extension.h".
6700 (GDB_AUTO_FILE_NAME): Delete.
6701 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6702 (script_language_gdb): Delete, moved to extension.c and renamed to
6703 extension_language_gdb.
6704 (source_gdb_script_for_objfile): Delete.
6705 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6706 (loaded_script): Change type of language member to
6707 struct extension_language_defn *.
6708 (init_loaded_scripts_info): Initialize
6709 unsupported_script_warning_printed.
6710 (maybe_add_script): Make static. Change type of language arg to
6711 struct extension_language_defn *.
6712 (clear_section_scripts): Reset unsupported_script_warning_printed.
6713 (auto_load_objfile_script_1): Rewrite to use extension language API.
6714 (auto_load_objfile_script): Make public. Remove support-compiled-in
6715 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6716 (source_section_scripts): Rewrite to use extension language API.
6717 (load_auto_scripts_for_objfile): Rewrite to use
6718 auto_load_scripts_for_objfile.
6719 (collect_matching_scripts_data): Change type of language member to
6720 struct extension_language_defn *.
6721 (auto_load_info_scripts): Change type of language arg to
6722 struct extension_language_defn *.
6723 (unsupported_script_warning_print): New function.
6724 (script_not_found_warning_print): Make static.
6725 (_initialize_auto_load): Rewrite construction of scripts-directory
6727 * auto-load.h (struct objfile): Add forward decl.
6728 (struct script_language): Delete.
6729 (struct auto_load_pspace_info): Add forward decl.
6730 (struct extension_language_defn): Add forward decl.
6731 (maybe_add_script): Delete.
6732 (auto_load_objfile_script): Declare.
6733 (script_not_found_warning_print): Delete.
6734 (auto_load_info_scripts): Update prototype.
6735 (auto_load_gdb_scripts_enabled): Declare.
6736 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6737 auto_load_python_scripts_enabled and made public.
6738 (script_language_python): Delete, moved to python.c.
6739 (gdbpy_script_language_defn): Delete.
6740 (info_auto_load_python_scripts): Update to use
6741 extension_language_python.
6743 * breakpoint.c (condition_command): Replace call to
6744 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6745 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6746 with call to breakpoint_ext_lang_cond_says_stop.
6747 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6748 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6749 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6750 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6752 (local_setattro): Print name of extension language with existing
6755 * valprint.c (val_print, value_print): Update to call
6756 apply_ext_lang_val_pretty_printer.
6757 * cp-valprint.c (cp_print_value): Update call to
6758 apply_ext_lang_val_pretty_printer.
6759 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6760 (gdbpy_apply_val_pretty_printer): Renamed from
6761 apply_val_pretty_printer. New arg extlang.
6762 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6764 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6765 extension language API.
6766 * cli/cli-script.c (execute_control_command): Update to call
6767 eval_ext_lang_from_control_command.
6769 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6770 enum ext_lang_bt_status values. Update call to
6771 apply_ext_lang_frame_filter.
6772 (mi_cmd_stack_list_locals): Ditto.
6773 (mi_cmd_stack_list_args): Ditto.
6774 (mi_cmd_stack_list_variables): Ditto.
6775 * mi/mi-main.c: Delete #include "python/python-internal.h".
6776 Add #include "extension.h".
6777 (mi_cmd_list_features): Replace reference to python internal variable
6778 gdb_python_initialized with call to ext_lang_initialized_p.
6780 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6781 Update to use enum ext_lang_frame_args. Update to call
6782 apply_ext_lang_frame_filter.
6783 * python/py-framefilter.c (extract_sym): Update to use enum
6785 (extract_value, py_print_type, py_print_value): Ditto.
6786 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6787 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6788 (py_print_frame): Ditto.
6789 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6790 New arg extlang. Update to use enum ext_lang_bt_status.
6792 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6793 finish_python_initialization. Replace with call to
6794 finish_ext_lang_initialization.
6796 * typeprint.c (do_free_global_table): Update to call
6797 free_ext_lang_type_printers.
6798 (create_global_typedef_table): Update to call
6799 start_ext_lang_type_printers.
6800 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6801 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6802 (type_print_options): Change type of global_printers from "void *"
6803 to "struct ext_lang_type_printers *".
6805 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6806 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6807 (gdbpy_preserve_values): Renamed from preserve_python_values.
6809 (!HAVE_PYTHON, preserve_python_values): Delete.
6811 * utils.c (quit_flag): Delete, moved to extension.c.
6812 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6815 * eval.c: Delete #include "python/python.h".
6816 * main.c: Delete #include "python/python.h".
6818 * defs.h: Update comment.
6820 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6824 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6826 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6829 2014-02-05 Yao Qi <yao@codesourcery.com>
6831 * remote.c (remote_pass_signals): Remove local 'buf' and use
6833 (remote_program_signals): Likewise.
6835 2014-02-05 Yao Qi <yao@codesourcery.com>
6837 * ctf.c: Include "inferior.h" and "gdbthread.h".
6838 (CTF_PID): A new macro.
6839 (ctf_open): Call inferior_appeared and add_thread_silent.
6840 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6841 (ctf_thread_alive): New function.
6842 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6844 2014-02-05 Yao Qi <yao@codesourcery.com>
6848 2013-05-24 Yao Qi <yao@codesourcery.com>
6850 * tracepoint.c (TFILE_PID): Remove.
6851 (tfile_open): Don't add thread and inferior.
6852 (tfile_close): Don't set 'inferior_ptid'. Don't call
6853 exit_inferior_silent.
6854 (tfile_thread_alive): Remove.
6855 (init_tfile_ops): Don't set field 'to_thread_alive' of
6858 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6860 * remote.c (remote_start_remote): Call remote_check_symbols even
6861 if only symbol-file (not file) has been given.
6863 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6865 * gdbarch.sh (skip_entrypoint): New callback.
6866 * gdbarch.c, gdbarch.h: Regenerate.
6867 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6868 * infrun.c (fill_in_stop_func): Likewise.
6869 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6870 (ppc_elfv2_elf_make_msymbol_special): New function.
6871 (ppc_elfv2_skip_entrypoint): Likewise.
6872 (ppc_linux_init_abi): Install them for ELFv2.
6874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6876 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6877 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6878 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6879 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6880 structures returned in GPRs.
6882 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6884 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6885 offset to the stack parameter list for the ELFv2 ABI.
6887 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6889 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6890 set_gdbarch_convert_from_func_ptr_addr and
6891 set_gdbarch_elf_make_msymbol_special for ELFv1.
6892 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6893 function descriptors on ELFv1.
6894 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6895 set up r12 at function entry.
6897 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6899 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6900 (struct gdbarch_tdep): New member elf_abi.
6902 * rs6000-tdep.c: Include "elf/ppc64.h".
6903 (rs6000_gdbarch_init): Detect ELF ABI version.
6905 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6907 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6908 within a register pair holding a DFP 128-bit value on little-endian.
6909 (ppc64_sysv_abi_return_value_base): Likewise.
6910 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6911 (dfp_pseudo_register_write): Likewise.
6913 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6915 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6916 offset on little-endian when passing _Decimal32.
6917 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6919 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6921 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6922 of the overlapped FP register within the VSX register on little-
6924 (efpr_pseudo_register_write): Likewise.
6926 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6929 offset on little-endian when passing small structures.
6931 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6933 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6934 (struct ppc64_sysv_argpos): New data structure.
6935 (ppc64_sysv_abi_push_float): Remove.
6936 (ppc64_sysv_abi_push_val): New function.
6937 (ppc64_sysv_abi_push_integer): Likewise.
6938 (ppc64_sysv_abi_push_freg): Likewise.
6939 (ppc64_sysv_abi_push_vreg): Likewise.
6940 (ppc64_sysv_abi_push_param): Likewise.
6941 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6942 (ppc64_sysv_abi_return_value_base): New function.
6943 (ppc64_sysv_abi_return_value): Refactor to use it.
6945 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6947 * NEWS: Document new target powerpc64le-*-linux*.
6949 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6951 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6952 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6954 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6955 register set used in ELF core dumps. Add floating-point register set.
6957 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6959 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6960 dwarf2_to_gdb[] table using symbolic constants. Adjust
6961 penultimate entry from number representing the PC register
6962 to symbolic constant representing the MDR register. Add
6963 constant for the PC register to the end of the table.
6965 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6967 * bsd-kvm.c: Include <sys/param.h>
6969 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6971 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6973 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6975 * ada-lang.h (clear_ada_sym_cache): Delete.
6977 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6979 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6981 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6983 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6984 the sigreturn register save area only if the syscall is
6987 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6989 * valops.c (value_slice): Minor reformatting.
6991 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6993 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6995 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6997 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6999 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7000 (ada_ignore_descriptive_types_p): New static global.
7001 (find_parallel_type_by_descriptive_type): Return immediately
7002 if ada_ignore_descriptive_types_p is set.
7003 (_initialize_ada_language): Register new commands "maintenance
7004 set ada", "maintenance show ada", "maintenance set ada
7005 ignore-descriptive-types" and "maintenance show ada
7006 ignore-descriptive-types".
7007 * NEWS: Add entry for new "maint ada set/show
7008 ignore-descriptive-types" commands.
7010 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7012 * record-btrace.c (record_btrace_close): Call btrace_teardown
7015 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7017 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7020 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7022 * ada-typeprint (type_is_full_subrange_of_target_type):
7024 (print_range): Add parameter bounds_prefered_p. If not set,
7025 try printing range types using the name of their base type.
7026 (print_range_type): Add parameter bounds_prefered_p.
7027 Use it in call to print_range.
7028 (print_array_type, ada_print_type): Update calls to print_range
7029 and print_range_type.
7031 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7033 * ada-typeprint.c (print_array_type, print_choices, print_range)
7034 (print_range_bound, print_dynamic_range_bound, print_range_type):
7037 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7039 * ada-typeprint.c (print_range): Add missing empty line
7040 after local declaration.
7042 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7044 * ada-valprint.c (print_optional_low_bound): Get index_type's
7045 target type for as long as it is a TYPE_CODE_RANGE.
7047 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7049 * procfs.c (procfs_make_note_section): Remove assertion and
7052 2014-01-24 Yao Qi <yao@codesourcery.com>
7054 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7055 * corelow.c (get_core_siginfo): Likewise.
7057 2014-01-24 Yao Qi <yao@codesourcery.com>
7059 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7060 ULONGEST. Don't check 'len' is negative.
7061 (remote_write_bytes): Change type of 'len' to ULONGEST.
7063 2014-01-23 Tom Tromey <tromey@redhat.com>
7066 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7067 Handle exception from frame.block.
7068 (FrameVars.fetch_frame_locals): Likewise.
7070 2014-01-23 Tom Tromey <tromey@redhat.com>
7073 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7074 on a NULL pointer. Move "goto error" to correct place.
7076 2014-01-23 Tom Tromey <tromey@redhat.com>
7079 * python/py-framefilter.c (apply_frame_filter): Call
7080 ensure_python_env after computing gdbarch.
7082 2014-01-23 Yao Qi <yao@codesourcery.com>
7084 * target.c (raw_memory_xfer_partial): Change argument type
7085 from void * to gdb_byte *.
7086 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7088 2014-01-22 Doug Evans <dje@google.com>
7090 New gdbserver option --debug-format=timestamp.
7093 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7095 * syscalls/s390x-linux.xml: New file.
7096 * syscalls/s390-linux.xml: New file.
7097 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7098 (XML_SYSCALL_FILENAME_S390X): Likewise.
7099 (op_svc): New enum value for SVC opcode.
7100 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7101 (s390_linux_get_syscall_number): New function.
7102 (s390_gdbarch_init): Register '*get_syscall_number' and the
7103 syscall xml file name.
7104 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7105 "s390-linux.xml" and "s390x-linux.xml".
7106 * NEWS: Announce new feature.
7108 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7110 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7112 2014-01-22 Pedro Alves <palves@redhat.com>
7114 * xtensa-config.c: Include defs.h.
7116 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7118 * common/common-utils.h: Add "ARI:" comment beside __func__
7121 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7123 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7124 documentation a bit.
7126 2014-01-21 Roland McGrath <mcgrathr@google.com>
7128 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7129 * configure: Regenerate.
7130 * aclocal.m4: Regenerate.
7131 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7132 New substituted variables.
7133 (install-strip): New target.
7134 (INSTALL_SCRIPT): New substituted variable.
7135 (FLAGS_TO_PASS): Add it.
7136 (install-only): Use $(INSTALL_SCRIPT) rather than
7137 $(INSTALL_PROGRAM) for gcore.
7139 2014-01-20 Tom Tromey <tromey@redhat.com>
7141 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7144 2014-01-20 Tom Tromey <tromey@redhat.com>
7146 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7147 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7148 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7149 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7150 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7151 (struct cmd_list_element) <flags>: Remove.
7152 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7153 doc_allocated>: New fields.
7154 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7156 * maint.c (maintenance_do_deprecate): Update.
7157 * top.c (execute_command): Update.
7159 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7161 * xtensa-linux-nat.c: Include asm/ptrace.h.
7163 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7165 * Makefile.in (SFILES): Add d-support.c.
7166 (COMMON_OBS): Add d-support.o.
7167 * d-lang.h (d_parse_symbol): Add comment, now defined in
7169 * d-lang.c (parse_call_convention)
7170 (parse_attributes, parse_function_types)
7171 (parse_function_args, parse_type, parse_identifier)
7172 (call_convention_p, d_parse_symbol): Move functions to ...
7173 * d-support.c: ... New file.
7175 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7177 * d-lang.h (d_parse_symbol): Add declaration.
7178 * d-lang.c (extract_identifiers)
7179 (extract_type_info): Remove functions.
7180 (parse_call_convention, parse_attributes)
7181 (parse_function_types, parse_function_args)
7182 (parse_type, parse_identifier, call_convention_p)
7183 (d_parse_symbol): New functions.
7184 (d_demangle): Use d_parse_symbol to demangle D symbols.
7186 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7188 * d-lang.h (struct builtin_d_type): New data type.
7189 (builtin_d_type): Add declaration.
7190 * d-lang.c (d_language_arch_info, build_d_types)
7191 (builtin_d_type): New functions.
7192 (enum d_primitive_types): New data type.
7193 (d_language_defn): Change c_language_arch_info to
7194 d_language_arch_info.
7195 (d_type_data): New static variable.
7196 (_initialize_d_language): Initialize d_type_data.
7198 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7200 * d-lang.h (d_main_name): Add declaration.
7201 * d-lang.c (d_main_name): New function.
7202 * symtab.c (find_main_name): Add call to d_main_name.
7204 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7206 * d-lang.c (d_language_defn): Change macro_expansion_c to
7209 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7211 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7213 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7215 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7216 gdb_exception" declaration.
7217 * remote.c (getpkt_or_notif_sane): Likewise.
7219 2014-01-17 Doug Evans <dje@google.com>
7221 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7222 function, contents of dirnames_to_char_ptr_vec_append moved here.
7223 (delim_string_to_char_ptr_vec): New function.
7224 (dirnames_to_char_ptr_vec_append): Rewrite.
7225 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7227 2014-01-17 Doug Evans <dje@google.com>
7229 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7231 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7232 #include "common-utils.h".
7233 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7234 * common/vec.h (VEC_ASSERT_PASS): Update.
7235 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7236 (MACH_CHECK_ERROR): Update.
7238 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7240 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7242 * gdbarch.h: Regenerate.
7244 2014-01-16 Tom Tromey <tromey@redhat.com>
7246 * value.c (struct value) <regnum>: Move earlier.
7248 2014-01-16 Tom Tromey <tromey@redhat.com>
7250 * remote.c (extended_remote_create_inferior): Rename from
7251 extended_remote_create_inferior_1. Add "ops" argument. Remove
7254 2014-01-16 Pedro Alves <palves@redhat.com>
7256 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7257 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7260 2014-01-16 Doug Evans <dje@google.com>
7262 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7264 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7266 * btrace.h (btrace_thread_flag): New.
7267 (struct btrace_thread_info) <flags>: New.
7268 * record-btrace.c (record_btrace_resume_thread)
7269 (record_btrace_find_thread_to_move, btrace_step_no_history)
7270 (btrace_step_stopped, record_btrace_start_replaying)
7271 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7272 (record_btrace_find_resume_thread): New.
7273 (record_btrace_resume, record_btrace_wait): Extend.
7274 (record_btrace_can_execute_reverse): New.
7275 (record_btrace_open): Fail in non-stop mode.
7276 (record_btrace_set_replay): Split into this, ...
7277 (record_btrace_stop_replaying): ... this, ...
7278 (record_btrace_clear_histories): ... and this.
7279 (init_record_btrace_ops): Init to_can_execute_reverse.
7280 * NEWS: Announce it.
7282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7284 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7285 (forward_target_decr_pc_after_break)
7286 (target_decr_pc_after_break): New.
7287 * target.c (forward_target_decr_pc_after_break)
7288 (target_decr_pc_after_break): New.
7289 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7290 instead of gdbarch_decr_pc_after_break.
7291 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7292 instead of gdbarch_decr_pc_after_break.
7293 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7294 instead of gdbarch_decr_pc_after_break.
7295 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7296 instead of gdbarch_decr_pc_after_break.
7297 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7298 instead of gdbarch_decr_pc_after_break.
7299 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7300 instead of gdbarch_decr_pc_after_break.
7302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7304 * btrace.c: Include regcache.h.
7305 (btrace_add_pc): New.
7306 (btrace_enable): Call btrace_add_pc.
7307 (btrace_is_empty): New.
7308 * btrace.h (btrace_is_empty): New.
7309 * record-btrace.c (require_btrace, record_btrace_info): Call
7312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7314 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7315 Support delta reads.
7316 (linux_disable_btrace): Change return type.
7317 * common/linux-btrace.h (linux_read_btrace): Change parameters
7318 and return type to allow error reporting. Update users.
7319 (linux_disable_btrace): Change return type. Update users.
7320 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7322 (btrace_error): New.
7323 (btrace_block) <begin>: Comment on BEGIN == 0.
7324 * btrace.c (btrace_compute_ftrace): Start from the end of
7326 (btrace_stitch_trace, btrace_clear_history): New.
7327 (btrace_fetch): Read delta trace, return if replaying.
7328 (btrace_clear): Move clear history code to btrace_clear_history.
7329 (parse_xml_btrace): Throw an error if parsing failed.
7330 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7331 and return type to allow error reporting.
7332 (target_read_btrace): Change parameters and return type to allow
7334 * target.c (target_read_btrace): Update.
7335 * remote.c (remote_read_btrace): Support delta reads. Pass
7337 * NEWS: Announce it.
7339 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7341 * record.h (record_btrace_frame_unwind)
7342 (record_btrace_tailcall_frame_unwind): New declarations.
7343 * dwarf2-frame: Include record.h
7344 (dwarf2_frame_cfa): Throw an error for btrace frames.
7345 * record-btrace.c: Include hashtab.h.
7346 (btrace_get_bfun_name): New.
7347 (btrace_call_history): Call btrace_get_bfun_name.
7348 (struct btrace_frame_cache): New.
7350 (bfcache_hash, bfcache_eq, bfcache_new): New.
7351 (btrace_get_frame_function): New.
7352 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7353 (record_btrace_frame_this_id): Compute own id.
7354 (record_btrace_frame_prev_register): Provide PC, throw_error
7355 for all other registers.
7356 (record_btrace_frame_sniffer): Detect btrace frames.
7357 (record_btrace_tailcall_frame_sniffer): New.
7358 (record_btrace_frame_dealloc_cache): New.
7359 (record_btrace_frame_unwind): Add new functions.
7360 (record_btrace_tailcall_frame_unwind): New.
7361 (_initialize_record_btrace): Allocate cache.
7362 * btrace.c (btrace_clear): Call reinit_frame_cache.
7363 * NEWS: Announce it.
7365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7367 * record-btrace.c (record_btrace_set_replay)
7368 (record_btrace_goto_begin, record_btrace_goto_end)
7369 (record_btrace_goto): New.
7370 (init_record_btrace_ops): Initialize them.
7371 * NEWS: Announce it.
7373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7375 * record-btrace.c (record_btrace_find_new_threads)
7376 (record_btrace_thread_alive): New.
7377 (init_record_btrace_ops): Initialize to_find_new_threads and
7380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7382 * record-btrace.c (record_btrace_resume): New.
7383 (record_btrace_wait): New.
7384 (init_record_btrace_ops): Initialize to_wait and to_resume.
7386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7388 * record-btrace.c (record_btrace_xfer_partial)
7389 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7390 (record_btrace_allow_memory_access): New.
7391 (init_record_btrace_ops): Initialize new methods.
7392 * target.c (raw_memory_xfer_partial): Bail out if target reports
7393 that this memory is not available.
7395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7397 * target.h (target_ops) <to_insert_breakpoint>
7398 <to_remove_breakpoint>: Add target_ops parameter.
7399 (forward_target_insert_breakpoint): New.
7400 (forward_target_remove_breakpoint): New.
7401 (memory_remove_breakpoint, memory_insert_breakpoint):
7402 Add target_ops parameter.
7403 * target.c (target_insert_breakpoint): Split into this and ...
7404 (forward_target_insert_breakpoint): ... this.
7405 (target_remove_breakpoint): Split into this and ...
7406 (forward_target_remove_breakpoint): ... this.
7407 (debug_to_insert_breakpoint): Add target_ops parameter.
7408 Call forward_target_insert_breakpoint.
7409 (debug_to_remove_breakpoint): Add target_ops parameter.
7410 Call forward_target_remove_breakpoint.
7411 (update_current_target): Do not inherit or default to_insert_breakpoint
7412 and to_remove_breakpoint.
7413 * corelow.c (ignore): Add target_ops parameter.
7414 * exec.c (ignore): Add target_ops parameter.
7415 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7416 Add target_ops parameter.
7417 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7418 Add target_ops parameter.
7419 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7420 Add target_ops parameter.
7421 * record-full.c (record_full_beneath_to_insert_breakpoint)
7422 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7423 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7424 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7425 (record_full_core_remove_breakpoint): Add target_ops parameter.
7427 (record_full_beneath_to_insert_breakpoint_ops)
7428 (record_full_beneath_to_remove_breakpoint_ops)
7429 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7430 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7431 tmp_to_remove_breakpoint_ops,
7432 record_full_beneath_to_insert_breakpoint_ops, and
7433 record_full_beneath_to_remove_breakpoint_ops.
7434 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7435 (m32r_remove_breakpoint): Add target_ops parameter.
7436 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7437 Add target_ops parameter.
7438 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7439 Add target_ops parameter.
7441 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7442 Markus Metzger <markus.t.metzger@intel.com>
7444 * record-btrace.c: Include frame-unwind.h.
7445 (record_btrace_frame_unwind_stop_reason)
7446 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7447 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7449 (init_record_btrace_ops): Install it.
7451 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7453 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7456 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7458 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7461 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 * frame-unwind.c: Include target.h.
7464 (frame_unwind_try_unwinder): New function with code from ...
7465 (frame_unwind_find_by_frame): ... here. New variable
7466 unwinder_from_target, call also target_get_unwinder)
7467 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7468 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7469 * target.h (struct target_ops): New fields to_get_unwinder and
7470 to_get_tailcall_unwinder.
7471 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7475 * record-btrace.c (record_btrace_fetch_registers)
7476 (record_btrace_store_registers)
7477 (record_btrace_to_prepare_to_store): New.
7478 (init_record_btrace_ops): Add the above.
7480 2014-01-16 Tom Tromey <tromey@redhat.com>
7482 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7483 * target.h (struct target_ops) <to_prepare_to_store>: Add
7485 (target_prepare_to_store): Add argument.
7486 * target.c (debug_to_prepare_to_store): Add argument.
7487 (update_current_target): Update.
7488 * remote.c (remote_prepare_to_store): Add 'self' argument.
7489 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7490 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7491 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7492 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7494 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7495 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7496 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7497 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7498 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7502 * btrace.h (replay) <replay>: New.
7503 (btrace_is_replaying): New.
7504 * btrace.c (btrace_clear): Free replay iterator.
7505 (btrace_is_replaying): New.
7506 * record-btrace.c (record_btrace_is_replaying): New.
7507 (record_btrace_info): Print insn number if replaying.
7508 (record_btrace_insn_history): Start at replay position.
7509 (record_btrace_call_history): Start at replay position.
7510 (init_record_btrace_ops): Init to_record_is_replaying.
7512 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7514 * record-btrace.c (record_btrace_insn_history_range): Include
7516 (record_btrace_insn_history_from): Adjust range.
7517 (record_btrace_call_history_range): Include
7519 (record_btrace_call_history_from): Adjust range.
7520 * NEWS: Announce changes.
7522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7524 * record.h (enum record_print_flag)
7525 <record_print_indent_calls>: New.
7526 * record.c (get_call_history_modifiers): Recognize /c modifier.
7527 (_initialize_record): Document /c modifier.
7528 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7529 Reorder fields. Optionally indent the function name. Update
7531 * NEWS: Announce changes.
7533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7535 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7539 * btrace.c (ftrace_new_function): Start counting at one.
7540 * record-btrace.c (record_btrace_info): Adjust number of calls
7542 * NEWS: Announce it.
7544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7546 * record-btrace.c (btrace_call_history_insn_range): Print
7547 insn range as [begin, end].
7549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7551 * btrace.h (struct btrace_func_link): New.
7552 (enum btrace_function_flag): New.
7553 (struct btrace_inst): Rename to ...
7554 (struct btrace_insn): ...this. Update all users.
7555 (struct btrace_func) <ibegin, iend>: Remove.
7556 (struct btrace_func_link): New.
7557 (struct btrace_func): Rename to ...
7558 (struct btrace_function): ...this. Update all users.
7559 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7560 (number, level, flags>: New.
7561 (struct btrace_insn_iterator): Rename to ...
7562 (struct btrace_insn_history): ...this.
7564 (struct btrace_insn_iterator, btrace_call_iterator): New.
7565 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7566 (struct btrace_target_info) <begin, end, level>
7567 <insn_history, call_history>: New.
7568 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7569 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7570 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7571 (btrace_call_number, btrace_call_begin, btrace_call_end)
7572 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7573 (btrace_find_function_by_number, btrace_set_insn_history)
7574 (btrace_set_call_history): New.
7575 * btrace.c (btrace_init_insn_iterator)
7576 (btrace_init_func_iterator, compute_itrace): Remove.
7577 (ftrace_print_function_name, ftrace_print_filename)
7578 (ftrace_skip_file): Change
7580 (ftrace_init_func): Remove.
7581 (ftrace_debug): Use new btrace_function fields.
7582 (ftrace_function_switched): Also consider gaining and
7583 losing symbol information).
7584 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7585 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7586 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7588 (ftrace_new_function): Move. Remove debug print.
7589 (ftrace_update_lines, ftrace_update_insns): New.
7590 (ftrace_update_function): Check for call, ret, and jump.
7591 (compute_ftrace): Renamed to ...
7592 (btrace_compute_ftrace): ...this. Rewritten to compute call
7594 (btrace_fetch, btrace_clear): Updated.
7595 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7596 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7597 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7598 (btrace_call_number, btrace_call_begin, btrace_call_end)
7599 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7600 (btrace_find_function_by_number, btrace_set_insn_history)
7601 (btrace_set_call_history): New.
7602 * record-btrace.c (require_btrace): Use new btrace thread
7604 (record_btrace_info, btrace_insn_history)
7605 (record_btrace_insn_history, record_btrace_insn_history_range):
7606 Use new btrace thread info fields and new iterator.
7607 (btrace_func_history_src_line): Rename to ...
7608 (btrace_call_history_src_line): ...this. Use new btrace
7610 (btrace_func_history): Rename to ...
7611 (btrace_call_history): ...this. Use new btrace thread info
7612 fields and new iterator.
7613 (record_btrace_call_history, record_btrace_call_history_range):
7614 Use new btrace thread info fields and new iterator.
7616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7618 * frame.h (frame_id_build_unavailable_stack_special): New.
7619 * frame.c (frame_id_build_unavailable_stack_special): New.
7621 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7623 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7624 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7625 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7627 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7628 (i386_insn_is_jump, i386_jmp_p): New.
7629 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7630 insn_is_jump to gdbarch.
7631 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7632 * gdbarch.h: Regenerated.
7633 * gdbarch.c: Regenerated.
7634 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7635 (default_insn_is_jump): New.
7636 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7637 (default_insn_is_jump): New.
7639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7641 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7643 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7644 (btrace_read_type) <btrace_read_new>: Change to ...
7645 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7649 * common/linux-btrace.c (linux_read_btrace): Free trace from
7652 2014-01-15 Doug Evans <dje@google.com>
7654 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7657 2014-01-15 Tom Tromey <tromey@redhat.com>
7659 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7660 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7661 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7662 (set_objfile_main_name): New function.
7663 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7664 language_of_main>: New fields.
7665 (set_objfile_main_name): Declare.
7666 * symtab.c (find_main_name): Loop over objfiles to find the main
7668 (set_main_name): Now static.
7669 (get_main_info): Add comment.
7670 * symtab.h (set_main_name): Don't declare.
7672 2014-01-15 Tom Tromey <tromey@redhat.com>
7674 * symtab.c (main_progspace_key): New global.
7675 (struct main_info): New.
7676 (name_of_main, language_of_main): Remove.
7677 (get_main_info, main_info_cleanup): New function.
7678 (set_main_name, main_name, main_language): Use get_main_info.
7679 (_initialize_symtab): Initialize main_progspace_key.
7681 2014-01-15 Tom Tromey <tromey@redhat.com>
7683 * dbxread.c (process_one_symbol): Update.
7684 * dwarf2read.c (read_partial_die): Update.
7685 * symfile.c (set_initial_language): Call main_language.
7686 * symtab.c (language_of_main): Now static.
7687 (set_main_name): Add 'lang' parameter.
7688 (find_main_name): Update.
7689 (main_language): New function.
7690 (symtab_observer_executable_changed): Update.
7691 * symtab.h (set_main_name): Update.
7692 (language_of_main): Remove.
7693 (main_language): Declare.
7695 2014-01-15 Tom Tromey <tromey@redhat.com>
7697 * symfile.c (init_entry_point_info): Use new "initialized" field.
7699 * objfiles.h (struct entry_point) <initialized>: New field.
7700 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7701 (struct objfile) <ei>: ...here. Remove.
7702 * objfiles.c (entry_point_address_query): Update.
7704 2014-01-15 Tom Tromey <tromey@redhat.com>
7706 * objfiles.c (entry_point_address_query): Relocate entry point
7708 (objfile_relocate1): Do not relocate entry point address.
7709 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7710 <the_bfd_section_index>: New field.
7711 * symfile.c (init_entry_point_info): Find the entry point's
7714 2014-01-15 Tom Tromey <tromey@redhat.com>
7716 * solib-frv.c (enable_break): Use entry_point_address_query.
7718 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7720 * NEWS: Add note on improved process record-replay on
7721 arm*-linux* targets.
7723 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7725 * arm-tdep.c (enum arm_record_result): New enum.
7726 (arm_record_unsupported_insn): New function.
7727 (arm_record_coproc_data_proc): Removed.
7728 (thumb2_record_ld_st_multiple): New function.
7729 (thumb2_record_ld_st_dual_ex_tbb): New function.
7730 (thumb2_record_data_proc_sreg_mimm): New function.
7731 (thumb2_record_ps_dest_generic): New function.
7732 (thumb2_record_branch_misc_cntrl): New function.
7733 (thumb2_record_str_single_data): New function.
7734 (thumb2_record_ld_mem_hints): New function.
7735 (thumb2_record_ld_word): New function.
7736 (thumb2_record_lmul_lmla_div): New function.
7737 (thumb2_record_decode_insn_handler): New function.
7738 (decode_insn): Add thumb32 instruction handlers.
7740 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7742 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7743 (struct arm_linux_record_tdep): Declare.
7744 (arm_canonicalize_syscall): New function.
7745 (arm_all_but_pc_registers_record): New function.
7746 (arm_linux_syscall_record): New function.
7747 (arm_linux_init_abi): Add syscall recording constructs.
7748 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7749 decoding. (arm_record_coproc_data_proc): Update arm syscall
7751 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7752 <arm_syscall_record>: New field.
7753 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7756 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7758 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7759 register for push instruction recording.
7761 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7763 * arm-tdep.c (thumb_record_misc): Update to correct logical
7764 error while recording ldm, ldmia and pop instructions.
7766 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7768 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7770 2014-01-15 Pedro Alves <palves@redhat.com>
7772 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7773 (go32_resume, go32_fetch_registers, store_register)
7774 (go32_store_registers, go32_prepare_to_store)
7775 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7776 (go32_create_inferior, go32_can_run, go32_terminal_init)
7777 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7780 2014-01-15 Tom Tromey <tromey@redhat.com>
7782 * target.h (async_callback_ftype): New typedef.
7783 (struct target_ops) <to_async>: Use it.
7785 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7787 * python/py-value.c (get_field_type): Remove unnecessary curly
7788 braces for single-statement if block.
7790 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7792 * python/py-type.c (convert_field): Add missing empty line
7795 2014-01-14 Doug Evans <dje@google.com>
7797 * symfile.h (expand_symtabs_matching): Renamed from
7798 expand_partial_symbol_names. Update prototype.
7799 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7800 * symfile.c (expand_symtabs_matching): Renamed from
7801 expand_partial_symbol_names. New args file_matcher, kind.
7802 Rename arg fun to symbol_matcher.
7803 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7804 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7805 ada_expand_partial_symbol_name.
7806 (ada_make_symbol_completion_list): Update to call
7807 expand_symtabs_matching.
7808 (ada_add_global_exceptions): Call expand_symtabs_matching.
7809 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7810 call map_symbol_filenames.
7811 * symtab.c (sources_info): Update to call map_symbol_filenames.
7812 (search_symbols): Call expand_symtabs_matching.
7813 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7814 (default_make_symbol_completion_list_break_on): Update to call
7815 expand_symtabs_matching.
7816 (make_source_files_completion_list): Update to call
7817 map_symbol_filenames.
7819 2014-01-14 Doug Evans <dje@google.com>
7821 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7822 (expand_symtabs_symbol_matcher_ftype): New typedef.
7823 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7824 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7825 * symfile.c (expand_partial_symbol_names): Update to use
7826 expand_symtabs_symbol_matcher_ftype.
7827 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7828 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7829 Arg name_matcher renamed to symbol_matcher.
7830 * psymtab.c (recursively_search_psymtabs): Update to use
7831 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7833 (expand_symtabs_matching_via_partial): Update to use
7834 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7835 Arg name_matcher renamed to symbol_matcher.
7837 2014-01-14 Doug Evans <dje@google.com>
7839 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7840 (map_partial_symbol_filenames): Ditto.
7841 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7842 (map_partial_symbol_filenames): Ditto.
7843 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7844 (map_partial_symbol_filenames): Ditto.
7845 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7846 (map_partial_symbol_filenames): Ditto.
7847 * symtab.c: Delete #include "psymtab.h".
7849 2014-01-14 Pedro Alves <palves@redhat.com>
7850 Tom Tromey <tromey@redhat.com>
7852 * infrun.c (use_displaced_stepping): Use find_record_target
7853 instead of RECORD_IS_USED.
7854 (adjust_pc_after_break): Use record_full_is_used instead of
7856 * record-btrace.c (record_btrace_open): Call record_preopen
7857 instead of checking RECORD_IS_USED.
7858 * record-full.c (record_full_shortname)
7859 (record_full_core_shortname): New globals.
7860 (record_full_is_used): New function.
7861 (find_full_open): Call record_preopen instead of checking
7863 (init_record_full_ops): Set the target's shortname to
7864 record_full_shortname.
7865 (init_record_full_core_ops): Set the target's shortname to
7866 record_full_core_shortname.
7867 * record-full.h (record_full_is_used): Declare.
7868 * record.c (find_record_target): Make extern.
7869 (record_preopen): New function.
7870 * record.h (RECORD_IS_USED): Delete macro.
7871 (find_record_target, record_preopen): Declare functions.
7873 2014-01-14 Yao Qi <yao@codesourcery.com>
7875 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7876 'len''s type to ULONGEST.
7877 (core_xfer_shared_libraries_aix): Likewise.
7878 * gdbarch.c, gdbarch.h: Regenerated.
7879 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7880 Change type of 'len' to ULONGEST.
7881 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7882 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7884 2014-01-14 Yao Qi <yao@codesourcery.com>
7886 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7887 type of 'len' to ULONGEST.
7888 (linux_xfer_osdata_processgroups): Likewise.
7889 (linux_xfer_osdata_threads): Likewise.
7890 (linux_xfer_osdata_fds): Likewise.
7891 (linux_xfer_osdata_isockets): Likewise.
7892 (linux_xfer_osdata_shm): Likewise.
7893 (linux_xfer_osdata_sem): Likewise.
7894 (linux_xfer_osdata_msg): Likewise.
7895 (linux_common_xfer_osdata): Likewise.
7896 (struct osdata_type) <getter>: Likewise.
7897 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7900 2014-01-14 Yao Qi <yao@codesourcery.com>
7902 * target.h (target_xfer_partial_ftype): Update.
7903 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7905 * aix-thread.c (aix_thread_xfer_partial): Change type of
7906 argument 'len' to ULONGEST.
7907 * auxv.c (procfs_xfer_auxv): Likewise.
7908 (ld_so_xfer_auxv): Likewise.
7909 (memory_xfer_auxv): Likewise.
7910 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7911 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7912 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7913 * corelow.c (core_xfer_partial): Likewise.
7914 * ctf.c (ctf_xfer_partial): Likewise.
7915 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7917 (darwin_read_dyld_info): Likewise.
7918 (darwin_xfer_partial): Likewise.
7919 * exec.c (section_table_xfer_memory_partial): Likewise.
7920 (exec_xfer_partial): Likewise.
7921 * exec.h (section_table_xfer_memory_partial): Update
7923 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7924 instead of plongest.
7925 (gnu_xfer_partial): Likewise.
7926 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7927 (ia64_hpux_xfer_solib_got): Likewise.
7928 (ia64_hpux_xfer_partial): Likewise.
7929 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7930 * inf-ptrace.c (inf_ptrace_xfer_partial):
7931 * inf-ttrace.c (inf_ttrace_xfer_partial):
7932 * linux-nat.c (linux_xfer_siginfo): Likewise.
7933 (linux_nat_xfer_partial): Likewise.
7934 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7935 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7936 * monitor.c (monitor_xfer_memory): Likewise.
7937 (monitor_xfer_partial): Likewise.
7938 * procfs.c (procfs_xfer_partial): Likewise.
7939 * record-full.c (record_full_xfer_partial): Likewise.
7940 (record_full_core_xfer_partial): Likewise.
7941 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7942 instead of plongest.
7943 (gdbsim_xfer_partial): Likewise.
7944 * remote.c (remote_xfer_partial): Likewise.
7945 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7946 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7948 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7949 (rs6000_xfer_shared_libraries): Likewise.
7950 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7951 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7952 (sparc_xfer_partial): Likewise.
7953 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7954 (spu_xfer_partial): Likewise.
7955 * spu-multiarch.c (spu_xfer_partial): Likewise.
7956 * target.c (target_read_live_memory): Likewise.
7957 (memory_xfer_live_readonly_partial): Likewise.
7958 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7959 (target_xfer_partial, default_xfer_partial): Likewise.
7960 (current_xfer_partial): Likewise.
7961 * tracepoint.c (tfile_xfer_partial): Likewise.
7962 * windows-nat.c (windows_xfer_memory): Likewise. Call
7963 pulongest instead of plongest.
7964 (windows_xfer_partial): Likewise.
7965 (windows_xfer_shared_libraries): Likewise.
7967 2014-01-14 Yao Qi <yao@codesourcery.com>
7969 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7970 target_xfer_partial_ftype.
7972 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7976 * valops.c (value_struct_elt_bitpos): New function
7977 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7978 object to 'None' if the field name is an empty string ("").
7979 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7980 attribute to look for a field when 'name' is 'None'.
7981 (get_field_type): New function
7983 2014-01-13 Doug Evans <dje@google.com>
7986 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7987 (try_open_dwop_file): Ditto.
7988 * gdb_bfd.c: #include "vec.h".
7989 (bfdp): New typedef.
7990 (struct gdb_bfd_data): New member included_bfds.
7991 (gdb_bfd_unref): Unref all included bfds.
7992 (gdb_bfd_record_inclusion): New function.
7993 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7995 2014-01-13 Tom Tromey <tromey@redhat.com>
7997 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7999 2014-01-13 Tom Tromey <tromey@redhat.com>
8001 * defs.h (use_windows): Remove.
8002 * gdb.c (main): Update.
8003 * main.c (captured_main, gdb_main): Update.
8004 * main.h (struct captured_main_args) <use_windows>: Remove.
8005 * top.c (use_windows): Remove.
8007 2014-01-13 Tom Tromey <tromey@redhat.com>
8009 * defs.h (deprecated_flush_hook): Remove.
8011 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8014 * linux-thread-db.c (try_thread_db_load): Add parameter
8015 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8016 (try_thread_db_load_from_pdir_1): Move it there from here.
8017 (try_thread_db_load_from_sdir): Update caller.
8018 (try_thread_db_load_from_dir): Move it there from here.
8020 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8022 * regformats/regdat.sh: Always rewrite the register file.
8024 2014-01-13 Pedro Alves <palves@redhat.com>
8026 * Makefile.in (CHECK_HEADERS): New variable.
8027 (check-headers:): New rule.
8029 2014-01-13 Tom Tromey <tromey@redhat.com>
8031 * cli/cli-setshow.c (do_set_command): Update.
8032 * defs.h (deprecated_set_hook): Remove.
8033 * top.c (deprecated_set_hook): Remove.
8035 2014-01-13 Pedro Alves <palves@redhat.com>
8037 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8038 the tracepoint if the PC is a pseudo-register.
8040 2014-01-13 Tom Tromey <tromey@redhat.com>
8042 * defs.h (XCALLOC): Remove.
8043 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8044 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8045 * dwarf2loc.c (allocate_piece_closure): Likewise.
8046 * elfread.c (elf_symfile_segments): Likewise.
8047 (elf_symfile_segments): Likewise.
8048 * gdbtypes.c (copy_type_recursive): Likewise.
8049 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8050 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8051 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8053 * mt-tdep.c (mt_gdbarch_init): Likewise.
8054 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8056 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8057 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8058 * registry.c (registry_alloc_data): Likewise.
8059 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8060 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8061 * serial.c (serial_fdopen_ops): Likewise.
8062 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8064 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8065 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8068 2014-01-13 Tom Tromey <tromey@redhat.com>
8070 * defs.h (XMALLOC): Remove.
8071 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8072 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8073 * cli-out.c (struct ui_out *): Likewise.
8074 * cli/cli-dump.c (add_dump_command): Likewise.
8075 (add_dump_command): Likewise.
8076 * complaints.c (get_complaints): Likewise.
8077 (find_complaint): Likewise.
8078 * dwarf2-frame.c (execute_cfa_program): Likewise.
8079 * dwarf2read.c (abbrev_table_read_table): Likewise.
8080 * gdbarch.sh: Likewise.
8081 * gdbarch.c: Rebuild.
8082 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8083 * interps.c (interp_new): Likewise.
8084 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8085 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8086 * mi/mi-console.c (mi_console_file_new): Likewise.
8087 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8088 * mi/mi-out.c (mi_out_new): Likewise.
8089 * mi/mi-parse.c (mi_parse): Likewise.
8090 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8091 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8092 * observer.c (xalloc_observer_list_node): Likewise.
8093 * regcache.c (regcache_xmalloc_1): Likewise.
8094 * reggroups.c (reggroup_new): Likewise.
8095 (_initialize_reggroup): Likewise.
8096 * registry.c (register_data_with_cleanup): Likewise.
8097 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8098 * ser-base.c (serial_ttystate): Likewise.
8099 * ser-mingw.c (make_pipe_state): Likewise.
8100 * ser-pipe.c (pipe_open): Likewise.
8101 * serial.c (serial_open): Likewise.
8102 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8103 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8104 (tui_alloc_win_info): Likewise.
8105 (tui_add_content_elements): Likewise.
8106 * tui/tui-file.c (tui_file_new): Likewise.
8107 * tui/tui-out.c (tui_out_new): Likewise.
8108 * ui-file.c (mem_file_new): Likewise.
8109 * ui-out.c (push_level): Likewise.
8110 (make_cleanup_ui_out_end): Likewise.
8111 (append_header_to_list): Likewise.
8112 (ui_out_new): Likewise.
8113 * user-regs.c (user_reg_add_builtin): Likewise.
8115 2014-01-13 Tom Tromey <tromey@redhat.com>
8117 * defs.h (XZALLOC): Remove.
8118 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8119 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8120 (get_ada_tasks_inferior_data): Likewise.
8121 * auto-load.c (get_auto_load_pspace_data): Likewise.
8122 * auxv.c (get_auxv_inferior_data): Likewise.
8123 * bfd-target.c (target_bfd_reopen): Likewise.
8124 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8125 (deprecated_insert_raw_breakpoint): Likewise.
8126 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8127 * corelow.c (core_open): Likewise.
8128 * darwin-nat.c (darwin_check_new_threads): Likewise.
8129 (darwin_attach_pid): Likewise.
8130 * dummy-frame.c (dummy_frame_push): Likewise.
8131 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8132 * dwarf2loc.c (allocate_piece_closure): Likewise.
8133 * elfread.c (elf_symfile_segments): Likewise.
8134 * eval.c (ptrmath_type_p): Likewise.
8135 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8136 * gdbtypes.c (alloc_type_arch): Likewise.
8137 (alloc_type_instance): Likewise.
8138 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8139 * inf-child.c (inf_child_can_use_agent): Likewise.
8140 * inflow.c (get_inflow_inferior_data): Likewise.
8141 * infrun.c (save_infcall_suspend_state): Likewise.
8142 * jit.c (jit_reader_load): Likewise.
8143 (get_jit_objfile_data): Likewise.
8144 (get_jit_program_space_data): Likewise.
8145 (jit_object_open_impl): Likewise.
8146 (jit_symtab_open_impl): Likewise.
8147 (jit_block_open_impl): Likewise.
8148 (jit_frame_sniffer): Likewise.
8149 * linux-fork.c (add_fork): Likewise.
8150 * maint.c (make_command_stats_cleanup): Likewise.
8151 * objfiles.c (get_objfile_pspace_data): Likewise.
8152 * opencl-lang.c (struct lval_closure): Likewise.
8153 * osdata.c (osdata_start_osdata): Likewise.
8154 * progspace.c (new_address_space): Likewise.
8155 (add_program_space): Likewise.
8156 * remote-sim.c (get_sim_inferior_data): Likewise.
8157 * sh-tdep.c (sh_gdbarch_init): Likewise.
8158 * skip.c (Ignore): Likewise.
8159 (skip_delete_command): Likewise.
8160 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8161 (library_list_start_library): Likewise.
8162 (solib_aix_current_sos): Likewise.
8163 * solib-darwin.c (get_darwin_info): Likewise.
8164 (darwin_current_sos): Likewise.
8165 * solib-dsbt.c (get_dsbt_info): Likewise.
8166 * solib-ia64-hpux.c (new_so_list): Likewise.
8167 (ia64_hpux_get_solib_linkage_addr): Likewise.
8168 * solib-spu.c (append_ocl_sos): Likewise.
8169 (spu_current_sos): Likewise.
8170 * solib-svr4.c (get_svr4_info): Likewise.
8171 (svr4_keep_data_in_core): Likewise.
8172 (library_list_start_library): Likewise.
8173 (svr4_default_sos): Likewise.
8174 (svr4_read_so_list): Likewise.
8175 * solib-target.c (library_list_start_library): Likewise.
8176 (solib_target_current_sos): Likewise.
8177 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8178 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8179 * symfile.c (default_symfile_segments): Likewise.
8180 * target-descriptions.c (tdesc_data_init): Likewise.
8181 (tdesc_create_reg): Likewise.
8182 (struct tdesc_type *): Likewise.
8183 (tdesc_create_vector): Likewise.
8184 (tdesc_set_struct_size): Likewise.
8185 (struct tdesc_type *): Likewise.
8186 (tdesc_free_feature): Likewise.
8187 (tdesc_create_feature): Likewise.
8188 * windows-nat.c (windows_add_thread): Likewise.
8189 (windows_make_so): Likewise.
8190 * xml-support.c (gdb_xml_body_text): Likewise.
8191 (gdb_xml_create_parser_and_cleanup): Likewise.
8192 (xml_process_xincludes): Likewise.
8193 * xml-syscall.c (allocate_syscalls_info): Likewise.
8194 (syscall_create_syscall_desc): Likewise.
8196 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8198 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8199 function, with code from i386_stap_parse_special_token.
8200 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8201 (i386_stap_parse_special_token): Move code to the two functions
8204 2014-01-09 Pedro Alves <palves@redhat.com>
8205 Hui Zhu <hui@codesourcery.com>
8208 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8209 bp_err_string. Don't mark the location shlib_disabled if the
8210 error thrown wasn't a generic or memory error. Catch errors
8211 thrown while inserting breakpoints in overlayed code. Output
8212 error message of software breakpoints.
8213 * remote.c (remote_insert_breakpoint): If this breakpoint has
8214 target-side commands but this stub doesn't support Z0 packets,
8215 throw NOT_SUPPORTED_ERROR error.
8216 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8217 * target.h (target_insert_breakpoint): Extend comment.
8218 (target_insert_hw_breakpoint): Add comment.
8220 2014-01-08 Pedro Alves <palves@redhat.com>
8222 * remote.c (remote_add_thread): Add threads silently if starting
8224 (remote_notice_new_inferior): If in all-stop, and starting up,
8225 don't call notice_new_inferior.
8226 (get_current_thread): New function, factored out from ...
8227 (add_current_inferior_and_thread): ... this. Adjust.
8228 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8229 found any thread, then select the remote's current thread as GDB's
8232 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8234 * NEWS: Create a new section for the next release branch.
8235 Rename the section of the current branch, now that it has
8238 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8240 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8241 * version.in: Bump version to 7.7.50.DATE-cvs.
8243 2014-01-08 Yao Qi <yao@codesourcery.com>
8245 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8246 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8247 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8249 2014-01-08 Yao Qi <yao@codesourcery.com>
8251 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8252 return value of bfd_get_filename to symbol_file_add_from_bfd.
8254 2014-01-08 Pierre Muller <muller@sourceware.org>
8257 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8258 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8259 to prim_record_mininal_symbol_and_info.
8260 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8261 in call to prim_record_minimal_symbol_and_info.
8262 (read_pe_exported_syms): Set index field of section_data.
8264 2014-01-07 Andrew Pinski <apinski@cavium.com>
8266 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8267 * features/aarch64.c: Regenerate.
8269 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8271 * target.c (return_null): Define.
8272 (update_current_target): Use it instead of return_zero for
8273 functions that return a pointer.
8275 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8277 * source.c (add_path): Fix check for duplicated paths in the previously
8280 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8282 * ada-lang.c: Remove duplicated include statements.
8283 * alphabsd-nat.c: Ditto.
8284 * amd64-darwin-tdep.c: Ditto.
8285 * amd64fbsd-nat.c: Ditto.
8286 * auto-load.c: Ditto.
8288 * breakpoint.c: Ditto.
8290 * fork-child.c: Ditto.
8291 * gdb_usleep.c: Ditto.
8292 * i386-darwin-tdep.c: Ditto.
8293 * i386fbsd-nat.c: Ditto.
8295 * inferior.c: Ditto.
8297 * linux-nat.c: Ditto.
8298 * linux-tdep.c: Ditto.
8299 * m68kbsd-nat.c: Ditto.
8300 * m68klinux-nat.c: Ditto.
8301 * microblaze-tdep.c: Ditto.
8302 * mips-linux-tdep.c: Ditto.
8303 * mn10300-tdep.c: Ditto.
8304 * nto-tdep.c: Ditto.
8305 * opencl-lang.c: Ditto.
8307 * printcmd.c: Ditto.
8308 * regcache.c: Ditto.
8309 * remote-m32r-sdi.c: Ditto.
8313 * tilegx-linux-nat.c: Ditto.
8314 * tilegx-tdep.c: Ditto.
8315 * tracepoint.c: Ditto.
8317 * vaxbsd-nat.c: Ditto.
8318 * windows-nat.c: Ditto.
8319 * xtensa-tdep.c: Ditto.
8321 2014-01-07 Yao Qi <yao@codesourcery.com>
8323 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8325 2014-01-07 Yao Qi <yao@codesourcery.com>
8326 Joel Brobecker <brobecker@adacore.com>
8328 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8329 (pdc_write_regs): Likewise.
8330 (fetch_regs_kernel_thread): Likewise.
8331 (store_regs_kernel_thread): Likewise.
8333 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8335 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8336 tagged type objects to their actual type.
8338 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8340 * ada-valprint.c (print_field_values): Add "language" parameter.
8341 Update calls to print_field_values and print_variant_part.
8342 Pass new parameter "language" in call to val_print instead
8343 of "current_language". Replace call to ada_val_print by call
8345 (print_variant_part): Add "language" parameter.
8346 (ada_val_print_struct_union): Update call to print_field_values.
8348 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8350 * ada-valprint.c (ui_memcpy): Delete.
8351 (ada_print_floating): Update documentation. Add empty line
8352 between between function documentation and implementation.
8353 Delete variable "buffer". Use ui_file_xstrdup in place of
8354 ui_file_put. Minor adjustments following this change.
8356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8358 * ada-valprint.c (ada_val_print_string): New function,
8359 extracted from ada_val_print_array.
8360 (ada_val_print_array): Replace extracted code by call
8361 to ada_val_print_string followed by a return. Move
8362 "else" branch to the function's top block.
8364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8366 * ada-valprint.c (ada_val_print_array): Move implementation
8367 down. Rename parameter "offset" and "val" into "offset_aligned"
8368 and "original_value" respectively. Add parameter "offset".
8370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8372 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8373 re-organizing the code. Change the "???" message printed
8374 when target type is a TYPE_CODE_UNDEF into
8375 "<ref to undefined type>".
8377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8379 * ada-valprint.c (print_record): Delete, implementation inlined...
8380 (ada_val_print_struct_union): ... here. Remove call to
8381 ada_check_typedef in inlined implementation.
8383 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8385 * ada-valprint.c (ada_val_print_gnat_array): New function,
8386 extracted from ada_val_print_1;
8387 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8388 (ada_val_print_flt, ada_val_print_struct_union)
8389 (ada_val_print_ref): Likewise.
8390 (ada_val_print_1): Delete variables i and elttype.
8391 Replace extracted-out code by call to corresponding
8394 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8396 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8400 * ada-valprint.c (ada_val_print_1): Replace calls to
8401 ada_val_print_1 by calls to val_print.
8403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8405 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8406 Update calls to self accordingly. Replace calls to c_val_print
8407 by calls to val_print.
8409 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8411 * ada-valprint.c (print_record): Delete declaration.
8412 (adjust_type_signedness, ada_val_print_1): Likewise.
8413 (ada_val_print): Move function implementation down.
8414 (print_variant_part, print_field_values, print_record):
8415 Move function implementation up.
8417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8419 * python/py-type.c (typy_get_name): New function.
8420 (type_object_getset): Add entry for attribute "name".
8421 * NEWS: Add entry mentioning this new attribute.
8423 2014-01-07 Yao Qi <yao@codesourcery.com>
8425 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8428 2014-01-07 Yao Qi <yao@codesourcery.com>
8430 * gnu-nat.c (info_port_rights): Add qualifier const to
8433 2014-01-07 Yao Qi <yao@codesourcery.com>
8435 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8437 2014-01-07 Yao Qi <yao@codesourcery.com>
8439 * gnu-nat.c (make_inf) Update declaration.
8440 (make_inf): Make it static.
8441 (inf_set_traced): Likewise.
8442 (inf_port_to_thread, inf_task_died_status): Likewise.
8444 2014-01-07 Yao Qi <yao@codesourcery.com>
8446 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8448 2014-01-07 Yao Qi <yao@codesourcery.com>
8450 * gnu-nat.c (_initialize_gnu_nat): Declare.
8452 2014-01-07 Yao Qi <yao@codesourcery.com>
8454 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8456 (struct gdbarch_info) <byte_order>: Change type to
8458 <byte_order_for_code>: Likewise.
8459 * gdbarch.c, gdbarch.h: Regenerated.
8461 2014-01-06 Sasha Smundak <asmundak@google.com>
8463 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8465 2014-01-06 Tom Tromey <tromey@redhat.com>
8467 * doublest.c (convert_doublest_to_floatformat): Use const, not
8469 * somread.c (som_symtab_read): Likewise.
8471 2014-01-07 Hui Zhu <hui@codesourcery.com>
8473 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8474 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8475 (gdb_bfd_fopen): Ditto.
8476 (gdb_bfd_openr): Ditto.
8477 (gdb_bfd_openw): Ditto.
8478 (gdb_bfd_openr_iovec): Ditto.
8479 (gdb_bfd_fdopenr): Ditto.
8480 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8481 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8483 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8485 * symfile-mem.c (symbol_file_add_from_memory): Removed
8486 gdb_bfd_stash_filename.
8488 2014-01-03 Doug Evans <dje@google.com>
8490 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8493 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8495 Update year range in copyright notice of all files.
8497 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8499 * top.c (print_gdb_version): Set copyright year to 2014.
8501 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8503 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8505 For older changes see ChangeLog-2013.
8511 version-control: never