1 2014-06-02 Doug Evans <xdje42@gmail.com>
3 Add command support for Guile.
4 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
8 (gdbscm_user_error_p): Declare.
9 (gdbscm_parse_command_name): Declare.
10 (gdbscm_valid_command_class_p): Declare.
11 (gdbscm_initialize_commands): Declare.
12 * guile/guile.c (initialize_gdb_module): Call
13 gdbscm_initialize_commands.
14 * guile/lib/gdb.scm: Export command symbols.
15 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
16 (throw-user-error): New function.
17 * guile/scm-cmd.c: New file.
18 * guile/scm-exception.c (user_error_symbol): New static global.
19 (gdbscm_user_error_p): New function.
20 (gdbscm_initialize_exceptions): Set user_error_symbol.
21 * scm-utils.c (gdbscm_gc_xstrdup): New function.
23 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
25 * top.c (command_loop): Handle comments here...
26 (command_line_input): ... not here.
28 2014-06-02 Doug Evans <xdje42@gmail.com>
30 Add progspace support for Guile.
31 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
32 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
33 (scm-progspace.o): New rule.
34 * guile/guile-internal.h (pspace_smob): New typedef.
35 (psscm_pspace_smob_pretty_printers): Declare.
36 (psscm_pspace_smob_from_pspace): Declare.
37 (psscm_scm_from_pspace): Declare.
38 * guile/guile.c (initialize_gdb_module): Call
39 gdbscm_initialize_pspaces.
40 * guile/lib/gdb.scm: Export progspace symbols.
41 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
43 (append-pretty-printer!): Ditto.
44 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
46 * guile/scm-progspace.c: New file.
48 2014-06-03 Alan Modra <amodra@gmail.com>
50 * ppc64-tdep.c (ppc64_standard_linkage8): New.
51 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
53 2014-06-02 Doug Evans <dje@google.com>
55 Add support for skeletonless type units.
56 * dwarf2read.c (struct dwarf2_per_objfile): New member
57 n_allocated_type_units.
58 (struct dwarf2_per_objfile) <tu_stats>: New member
59 nr_all_type_units_reallocs.
60 (create_signatured_type_table_from_index): Initialize
61 n_allocated_type_units
62 (create_all_type_units): Ditto.
63 (add_type_unit): Move up in file. New arg slot.
64 All callers updated. Increase space for all_type_units more
66 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
67 (lookup_dwo_signatured_type): Handle skeletonless TUs.
68 (lookup_dwp_signatured_type): Ditto.
69 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
71 (build_type_psymtabs_1): Leave type_unit_groups as
72 NULL if no TUs present.
73 (print_tu_stats): New function.
74 (process_skeletonless_type_unit): New function.
75 (process_dwo_file_for_skeletonless_type_units): New
77 (process_skeletonless_type_units): New function.
78 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
79 Call print tu_stats if debugging enabled.
81 2014-06-02 Pedro Alves <palves@redhat.com>
83 * breakpoint.c (build_target_command_list): Don't build a command
84 list if we have any duplicate location that isn't a dprintf.
86 2014-06-02 Pedro Alves <palves@redhat.com>
88 * breakpoint.c (dprintf_breakpoint_hit): New function.
89 (initialize_breakpoint_ops): Install it as dprintf's
90 breakpoint_hit method.
92 2014-06-02 Joel Brobecker <brobecker@adacore.com>
94 * source.c (substitute_path_rule_matches): Simplify using
95 filename_ncmp instead of FILENAME_CMP.
97 2014-06-02 Joel Brobecker <brobecker@adacore.com>
99 * source.c (substitute_path_rule_matches): Remove trailing spaces.
101 2014-06-01 Ludovic Courtès <ludo@gnu.org>
103 * configure.ac: When Guile is available, check for the
104 availability of 'scm_new_smob'.
105 * configure, config.h.in: Regenerate.
106 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
109 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
111 * frame.c (struct frame_info): Add stop_string field.
112 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
113 (get_prev_frame_always): Old content moved into
114 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
115 TRY_CATCH, handle MEMORY_ERROR exceptions.
116 (frame_stop_reason_string): New function definition.
117 * frame.h (unwind_stop_reason_to_string): Extend comment to
118 mention frame_stop_reason_string.
119 (frame_stop_reason_string): New function declaration.
120 * stack.c (frame_info): Switch to frame_stop_reason_string.
121 (backtrace_command_1): Switch to frame_stop_reason_string.
122 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
123 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
124 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
126 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
128 * frame.c (frame_stop_reason_string): Rename to ...
129 (unwind_stop_reason_to_string): this.
130 * frame.h (frame_stop_reason_string): Rename to ...
131 (unwind_stop_reason_to_string): this.
132 * stack.c (frame_info): Update call to frame_stop_reason_string.
133 (backtrace_command_1): Likewise.
134 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
135 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
137 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
139 * frame.c (remove_prev_frame): New function.
140 (get_prev_frame_if_no_cycle): Create / discard cleanup using
143 2014-05-29 Pedro Alves <palves@redhat.com>
145 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
146 and make it const. When a single-step decays to a continue,
147 clear 'step', not 'hw_step'. Pass whether the caller wanted
148 to step to user_visible_resume_ptid, not what we ask the
151 2014-05-29 Pedro Alves <palves@redhat.com>
153 * infrun.c (process_event_stop_test, handle_step_into_function)
154 (handle_step_into_function_backward): Adjust.
155 Don't set the even thread's stop_step and call stop_waiting before
156 calling end_stepping_range. Instead do that ...
157 (end_stepping_range): ... here. Take an ecs pointer parameter.
159 2014-05-29 Pedro Alves <palves@redhat.com>
161 * infrun.c (stop_stepping): Rename to ...
162 (stop_waiting): ... this.
163 (proceed): Update comment.
164 (process_event_stop_test, handle_inferior_event)
165 (handle_signal_stop, handle_step_into_function)
166 (handle_step_into_function_backward): Update.
168 2014-05-29 Pedro Alves <palves@redhat.com>
170 * infcall.c (run_inferior_call): Don't check whether the current
171 thread is running after the proceed call.
173 2014-05-29 Pedro Alves <palves@redhat.com>
174 Tom Tromey <tromey@redhat.com>
176 * NEWS: Mention "maint set target-async", "set mi-async", and that
177 background execution commands are now always available.
178 * target.h (target_async_permitted): Update comment.
179 * target.c (target_async_permitted, target_async_permitted_1):
181 (set_target_async_command): Rename to ...
182 (maint_set_target_async_command): ... this.
183 (show_target_async_command): Rename to ...
184 (maint_show_target_async_command): ... this.
185 (_initialize_target): Adjust.
186 * infcmd.c (prepare_execution_command): Make extern.
187 * inferior.h (prepare_execution_command): Declare.
188 * infrun.c (set_observer_mode): Leave target async alone.
189 * mi/mi-interp.c (mi_interpreter_init): Install
190 mi_on_sync_execution_done as sync_execution_done observer.
191 (mi_on_sync_execution_done): New function.
192 (mi_execute_command_input_handler): Don't print the prompt if we
193 just started a synchronous command with an async target.
194 (mi_on_resume): Check sync_execution before printing prompt.
195 * mi/mi-main.h (mi_async_p): Declare.
196 * mi/mi-main.c: Include gdbcmd.h.
197 (mi_async_p): New function.
198 (mi_async, mi_async_1): New globals.
199 (set_mi_async_command, show_mi_async_command, mi_async): New
201 (exec_continue): Call prepare_execution_command.
202 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
203 (mi_execute_async_cli_command): Use mi_async_p.
204 (_initialize_mi_main): Install "set mi-async". Make
205 "target-async" a deprecated alias.
207 2014-05-29 Pedro Alves <palves@redhat.com>
209 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
210 (_initialize_cli_interp): Adjust.
211 * event-loop.c: Include "observer.h".
212 (start_event_loop): Notify 'command_error' observers instead of
213 calling display_gdb_prompt. Remove FIXME comment.
214 * event-top.c (display_gdb_prompt): Remove call into the
216 * inf-loop.c: Include "observer.h".
217 (inferior_event_handler): Notify 'command_error' observers instead
218 of calling display_gdb_prompt.
219 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
220 observers instead of calling display_gdb_prompt.
221 * interps.c (interp_set): Don't call display_gdb_prompt.
222 (current_interp_display_prompt_p): Delete.
223 * interps.h (interp_prompt_p): Delete declaration.
224 (interp_prompt_p_ftype): Delete.
225 (struct interp_procs) <prompt_proc_p>: Delete field.
226 (current_interp_display_prompt_p): Delete declaration.
227 * mi-interp.c (mi_interpreter_prompt_p): Delete.
228 (_initialize_mi_interp): Adjust.
229 * tui-interp.c (tui_init): Install 'sync_execution_done' and
230 'command_error' observers.
231 (tui_on_sync_execution_done, tui_on_command_error): New
233 (tui_display_prompt_p): Delete.
234 (_initialize_tui_interp): Adjust.
236 2014-05-29 Pedro Alves <palves@redhat.com>
239 * cli/cli-interp.c: Include infrun.h and observer.h.
240 (cli_uiout, cli_interp): New globals.
241 (cli_on_signal_received, cli_on_end_stepping_range)
242 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
244 (cli_interpreter_init): Install them as 'end_stepping_range',
245 'signal_received' 'signal_exited', 'exited' and 'no_history'
247 (_initialize_cli_interp): Remove cli_interp local.
248 * infrun.c (handle_inferior_event): Call the several stop reason
249 observers instead of printing the stop reason directly.
250 (end_stepping_range): New function.
251 (print_end_stepping_range_reason, print_signal_exited_reason)
252 (print_exited_reason, print_signal_received_reason)
253 (print_no_history_reason): Make static, and add an uiout
254 parameter. Print to that instead of to CURRENT_UIOUT.
255 * infrun.h (print_end_stepping_range_reason)
256 (print_signal_exited_reason, print_exited_reason)
257 (print_signal_received_reason print_no_history_reason): New
259 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
261 <cli_uiout>: New field.
262 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
263 uiout for CLI output. Install 'signal_received',
264 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
266 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
267 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
268 (mi_on_no_history): New functions.
269 (ui_out_free_cleanup): Delete function.
270 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
271 instead use the one already stored in the MI interpreter data.
273 * tui/tui-interp.c: Include infrun.h and observer.h.
274 (tui_interp): New global.
275 (tui_on_signal_received, tui_on_end_stepping_range)
276 (tui_on_signal_exited, tui_on_exited)
277 (tui_on_no_history): New functions.
278 (tui_init): Install them as 'end_stepping_range',
279 'signal_received' 'signal_exited', 'exited' and 'no_history'
281 (_initialize_tui_interp): Delete tui_interp local.
283 2014-05-29 Pedro Alves <palves@redhat.com>
286 * linux-nat.c (linux_nat_resume_callback): Rename the second
287 parameter to 'except'. Skip LP if it points to EXCEPT.
288 (linux_nat_resume): Don't mark the event lwp as not stopped
289 before resuming sibling lwps. Instead ask
290 linux_nat_resume_callback to skip the event lwp. Mark it as not
291 stopped after actually resuming it.
292 (linux_handle_syscall_trap): Mark the lwp as not stopped after
294 (wait_lwp): Mark the lwp as stopped here.
295 (stop_wait_callback): Mark the lwp as not stopped right after
296 resuming it. Don't mark lwps as stopped here.
297 (linux_nat_filter_event): Mark the lwp as stopped earlier.
298 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
300 2014-05-29 Pedro Alves <palves@redhat.com>
303 * infrun.c (resume): Determine how much to resume depending on
304 whether the caller wanted a step, not whether we can hardware step
305 the target. Mark all threads that we intend to run as running,
306 unless we're calling an inferior function.
307 (normal_stop): If the thread is running an infcall, don't finish
309 * target.c (target_resume): Don't mark threads as running here.
311 2014-05-28 Joel Brobecker <brobecker@adacore.com>
313 * serial.c (_initialize_serial): Remove support for
314 the "set remotebaud" and "show remotebaud" commands.
315 * NEWS: Add entry documenting the removal of that command.
317 2014-05-28 Yao Qi <yao@codesourcery.com>
319 * charset.c: Fix typo in comments.
321 2014-05-27 Gary Benson <gbenson@redhat.com>
323 * utils.c (internal_vproblem): Prompt for a bug report.
325 2014-05-26 Andy Wingo <wingo@igalia.com>
327 * guile/scm-arch.c (arscm_mark_arch_smob):
328 * guile/scm-block.c (bkscm_mark_block_smob)
329 (bkscm_mark_block_syms_progress_smob):
330 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
331 * guile/scm-exception.c (exscm_mark_exception_smob):
332 * guile/scm-frame.c (frscm_mark_frame_smob):
333 * guile/scm-iterator.c (itscm_mark_iterator_smob):
334 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
335 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
336 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
337 (ppscm_mark_pretty_printer_worker_smob):
338 * guile/scm-symbol.c (syscm_mark_symbol_smob):
339 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
340 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
341 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
343 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
346 2014-05-26 Andy Wingo <wingo@igalia.com>
347 Doug Evans <xdje42@gmail.com>
349 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
350 empty_base_class. All uses updated.
351 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
352 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
354 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
355 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
356 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
357 (gdbscm_gsmob_has_property_p, add_property_name)
358 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
359 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
360 (gdb-object-has-property?, gdb-object-properties): Remove.
361 (gdb-object-kind): Renamed from gsmob-kind.
363 2014-05-26 Andy Wingo <wingo@igalia.com>
365 * configure.ac (try_guile_versions): Allow building with guile 2.2.
366 * configure: Regenerate.
368 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
370 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
372 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
374 * record-btrace.c (record_btrace_allow_memory_access): Remove.
375 (replay_memory_access_read_only, replay_memory_access_read_write)
376 (replay_memory_access_types, replay_memory_access)
377 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
378 (cmd_set_record_btrace, cmd_show_record_btrace)
379 (cmd_show_replay_memory_access): New.
380 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
381 (record_btrace_remove_breakpoint): Replace
382 record_btrace_allow_memory_access with replay_memory_access.
383 (_initialize_record_btrace): Add commands.
386 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
388 * aarch64-linux-nat.c (asm/ptrace.h): Include.
390 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
392 * MAINTAINERS (Write After Approval): Move self back from
395 2014-05-22 Pedro Alves <palves@redhat.com>
397 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
398 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
399 (disable_randomization, enum exec_direction_kind)
400 (execution_direction, stop_registers, start_remote)
401 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
402 (wait_for_inferior, normal_stop, get_last_target_status)
403 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
404 (insert_step_resume_breakpoint_at_sal)
405 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
406 (set_step_info, print_stop_event, signal_stop_state)
407 (signal_print_state, signal_pass_state, signal_stop_update)
408 (signal_print_update, signal_pass_update)
409 (update_signals_program_target, clear_exit_convenience_vars)
410 (displaced_step_dump_bytes, update_observer_mode)
411 (signal_catch_update, gdb_signal_from_command): Move
413 * infrun.h: ... to this new file.
414 * amd64-tdep.c: Include infrun.h.
415 * annotate.c: Include infrun.h.
416 * arch-utils.c: Include infrun.h.
417 * arm-linux-tdep.c: Include infrun.h.
418 * arm-tdep.c: Include infrun.h.
419 * break-catch-sig.c: Include infrun.h.
420 * breakpoint.c: Include infrun.h.
421 * common/agent.c: Include infrun.h instead of inferior.h.
422 * corelow.c: Include infrun.h.
423 * event-top.c: Include infrun.h.
424 * go32-nat.c: Include infrun.h.
425 * i386-tdep.c: Include infrun.h.
426 * inf-loop.c: Include infrun.h.
427 * infcall.c: Include infrun.h.
428 * infcmd.c: Include infrun.h.
429 * infrun.c: Include infrun.h.
430 * linux-fork.c: Include infrun.h.
431 * linux-nat.c: Include infrun.h.
432 * linux-thread-db.c: Include infrun.h.
433 * monitor.c: Include infrun.h.
434 * nto-tdep.c: Include infrun.h.
435 * procfs.c: Include infrun.h.
436 * record-btrace.c: Include infrun.h.
437 * record-full.c: Include infrun.h.
438 * remote-m32r-sdi.c: Include infrun.h.
439 * remote-mips.c: Include infrun.h.
440 * remote-notif.c: Include infrun.h.
441 * remote-sim.c: Include infrun.h.
442 * remote.c: Include infrun.h.
443 * reverse.c: Include infrun.h.
444 * rs6000-tdep.c: Include infrun.h.
445 * s390-linux-tdep.c: Include infrun.h.
446 * solib-irix.c: Include infrun.h.
447 * solib-osf.c: Include infrun.h.
448 * solib-svr4.c: Include infrun.h.
449 * target.c: Include infrun.h.
450 * top.c: Include infrun.h.
451 * windows-nat.c: Include infrun.h.
452 * mi/mi-interp.c: Include infrun.h.
453 * mi/mi-main.c: Include infrun.h.
454 * python/py-threadevent.c: Include infrun.h.
456 2014-05-22 Pedro Alves <palves@redhat.com>
458 * infrun.c (handle_inferior_event): Store the exit code for
459 --return-child-result here, instead of ...
460 (print_exited_reason): ... here.
462 2014-05-21 Pedro Alves <palves@redhat.com>
465 * gdbthread.h (struct thread_control_state): New field
467 * infrun.c (follow_fork): Copy the new thread control field to the
469 (clear_proceed_status_thread): Clear the new thread control field.
470 (proceed): Set the new thread control field.
471 * interps.h (command_interp): Declare.
472 * interps.c (command_interpreter): New global.
473 (command_interp): New function.
474 (interp_exec): Set `command_interpreter' while here.
475 * cli-out.c (cli_uiout_dtor): New function.
476 (cli_ui_out_impl): Install it.
477 * mi/mi-interp.c: Include cli-out.h.
478 (mi_cmd_interpreter_exec): Add comment.
479 (restore_current_uiout_cleanup): New function.
480 (ui_out_free_cleanup): New function.
481 (mi_on_normal_stop): If finishing an execution command started by
482 a CLI command, or any kind of breakpoint-like event triggered,
483 print the stop event to the output (CLI) stream.
484 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
486 2014-05-21 Pedro Alves <palves@redhat.com>
488 * cli/cli-cmds.c (list_command): Handle the first "list" after the
489 current source line having changed.
490 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
491 * infrun.c (normal_stop): Adjust call to
492 set_current_sal_from_frame.
493 * source.c (clear_lines_listed_range): New function.
494 (set_current_source_symtab_and_line, identify_source_line): Clear
495 the lines listed range.
496 (line_info): Handle the first "info line" after the current source
498 * stack.c (print_stack_frame): Remove center handling.
499 (set_current_sal_from_frame): Remove 'center' parameter. Don't
502 2014-05-21 Pedro Alves <palves@redhat.com>
504 * inf-child.c (inf_child_mourn_inferior): New function.
505 * inf-child.h (inf_child_mourn_inferior): New declaration.
506 * darwin-nat.c (darwin_mourn_inferior): Use
507 inf_child_mourn_inferior.
508 * gnu-nat.c (gnu_mourn_inferior): Likewise.
509 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
510 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
511 * nto-procfs.c (procfs_mourn_inferior): Likewise.
512 * windows-nat.c (windows_mourn_inferior): Likewise.
514 2014-05-21 Doug Evans <xdje42@gmail.com>
516 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
518 2014-05-21 Doug Evans <xdje42@gmail.com>
520 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
521 (gdbscm_out_of_range_error): Ditto.
522 (gdbscm_memory_error): Ditto.
523 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
524 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
525 (gdbscm_out_of_range_error): Update.
526 (gdbscm_memory_error): Update.
527 (gdbscm_scm_to_target_string_unsafe): Delete.
529 2014-05-21 Pedro Alves <palves@redhat.com>
531 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
533 (inf_child_open_target): New function.
534 (inf_child_open): Use inf_child_open_target to push the target
535 instead of erroring out.
536 (inf_child_disconnect, inf_child_close)
537 (inf_child_maybe_unpush_target): New functions.
538 (inf_child_target): Install inf_child_disconnect and
539 inf_child_close. Store a pointer to the returned object.
540 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
542 * target.c (auto_connect_native_target): New global.
543 (show_default_run_target): New function.
544 (find_default_run_target): Return NULL if automatically connecting
545 to the native target is disabled.
546 (_initialize_target): Install set/show auto-connect-native-target.
547 * NEWS: Mention "set auto-connect-native-target", and "target
549 * linux-nat.c (super_close): New global.
550 (linux_nat_close): Call super_close.
551 (linux_nat_add_target): Store a pointer to the base class's
553 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
554 inf_child_maybe_unpush.
555 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
557 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
558 the inferior. Use inf_child_maybe_unpush_target.
559 (inf_ttrace_attach): Don't push the target if it is already
561 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
562 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
563 after mourning the inferior. Use inf_child_maybe_unpush_target.
564 (darwin_attach_pid): Don't push the target if it is already
566 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
567 mourning the inferior. Use inf_child_maybe_unpush_target.
568 (gnu_detach): Use inf_child_maybe_unpush_target.
569 * go32-nat.c (go32_create_inferior): Don't push the target if it
571 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
572 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
573 (procfs_open): Rename to ...
574 (procfs_open_1): ... this. Add target_ops parameter. Adjust
575 comments. Can target_preopen before changing node. Call
576 inf_child_open_target to push the target explicitly.
577 (procfs_attach): Don't push the target if it is already pushed.
578 (procfs_detach): Use inf_child_maybe_unpush_target.
579 (procfs_create_inferior): Don't push the target if it is already
581 (nto_native_ops): New global.
582 (procfs_open): Reimplement.
583 (procfs_native_open): New function.
584 (init_procfs_targets): Install procfs_native_open as to_open of
585 "target native". Store a pointer to the "native" target in
587 * procfs.c (procfs_attach): Don't push the target if it is already
589 (procfs_detach): Use inf_child_maybe_unpush_target.
590 (procfs_mourn_inferior): Only unpush the target after mourning the
591 inferior. Use inf_child_maybe_unpush_target.
592 (procfs_init_inferior): Don't push the target if it is already
594 * windows-nat.c (do_initial_windows_stuff): Don't push the target
595 if it is already pushed.
597 2014-05-21 Pedro Alves <palves@redhat.com>
599 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
600 and "procfs" targets are now called "native" instead.
602 2014-05-21 Pedro Alves <palves@redhat.com>
604 * go32-nat.c (go32_open): Delete.
605 (go32_target): Don't override the to_open method.
607 2014-05-21 Pedro Alves <palves@redhat.com>
609 * nto-procfs.c (procfs_can_run): New function.
610 (nto_procfs_ops): New global.
611 (init_procfs_targets): New, based on procfs_target. Install
612 "target native" in addition to "target procfs".
613 (_initialize_procfs): Call init_procfs_targets instead of adding
616 2014-05-21 Pedro Alves <palves@redhat.com>
618 * windows-nat.c (windows_target): Don't override to_shortname,
619 to_longname or to_doc.
621 2014-05-21 Pedro Alves <palves@redhat.com>
623 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
626 2014-05-21 Pedro Alves <palves@redhat.com>
628 * darwin-nat.c (_initialize_darwin_inferior): Don't override
629 to_shortname, to_longname or to_doc.
631 2014-05-21 Pedro Alves <palves@redhat.com>
633 * go32-nat.c (go32_target): Don't override to_shortname,
634 to_longname or to_doc.
636 2014-05-21 Pedro Alves <palves@redhat.com>
638 * inf-child.c (inf_child_open): Remove mention of "child".
639 (inf_child_target): Rename target to "native" instead of "child".
641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
643 * Makefile.in (SFILES): Delete "regset.c".
644 (COMMON_OBS): Delete "regset.o".
646 * regset.h (regset_alloc): Delete prototype.
648 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
650 * sparc-linux-tdep.c (sparc32_linux_gregset)
651 (sparc32_linux_fpregset): New static regset structures.
652 (sparc32_linux_init_abi): Drop dynamic regset allocations.
653 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
655 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
656 (sparc64_linux_fpregset): New static regset structures.
657 (sparc64_linux_init_abi): Drop dynamic regset allocations.
658 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
659 New static regset structures.
660 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
661 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
662 New static regset structures.
663 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
664 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
665 New static regset structures.
666 (sparc64obsd_init_abi): Drop dynamic regset allocations.
667 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
668 New static regset structures.
669 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
671 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
673 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
674 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
675 register maps ("regmaps") from "*regset" to "*regmap". Do this
676 for all regmap types and variables.
677 * sparc-linux-tdep.c (sparc32_linux_step_trap)
678 (sparc32_linux_supply_core_gregset)
679 (sparc32_linux_collect_core_gregset)
680 (sparc32_linux_supply_core_fpregset)
681 (sparc32_linux_collect_core_fpregset): Likewise.
682 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
683 (sparc_gregmap, sparc_fpregmap): ... these.
684 (sparc_supply_gregset, sparc_collect_gregset)
685 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
686 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
687 (_initialize_sparc_nat): Rename regmaps.
688 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
689 (sparc_gregmap, sparc_fpregmap): ... these.
690 (sparc_supply_gregset, sparc_collect_gregset)
691 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
692 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
694 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
695 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
697 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
699 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
700 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
701 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
703 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
704 (sparc32_bsd_fpregset): Rename to...
705 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
706 (sparc32_bsd_fpregmap): ... these.
707 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
708 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
709 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
710 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
711 (struct sparc_gregmap, struct sparc_fpregmap)
712 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
713 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
714 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
715 (sparc32_supply_regset, sparc32_collect_gregset)
716 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
718 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
719 (sparc64_linux_ptrace_gregmap): ... this.
720 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
721 (_initialize_sparc64_linux_nat): Rename regmaps.
722 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
723 (sparc64_linux_core_gregmap): ... this.
724 (sparc64_linux_supply_core_gregset)
725 (sparc64_linux_collect_core_gregset)
726 (sparc64_linux_supply_core_fpregset)
727 (sparc64_linux_collect_core_fpregset): Rename regmaps.
728 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
729 (sparc64_sol2_fpregset): Rename to...
730 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
731 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
732 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
734 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
735 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
736 (sparc64_bsd_fpregset): Rename to...
737 (struct sparc_gregmap, sparc64_sol2_gregmap)
738 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
739 (sparc64_bsd_fpregmap): ... these.
740 (sparc64_supply_gregset, sparc64_collect_gregset)
741 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
743 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
744 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
745 (sparc64fbsd_gregmap): ... this.
746 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
747 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
749 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
750 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
751 (sparc64nbsd_collect_fpregset): Likewise.
752 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
753 (sparc64nbsd_gregmap): ... this.
754 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
756 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
757 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
758 (sparc64obsd_gregmap): ... this.
759 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
761 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
762 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
763 (sparc32nbsd_gregmap): ... this.
764 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
767 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
769 * score-tdep.c (score7_linux_gregset): New static regset
771 (score7_linux_regset_from_core_section): Remove dynamic regset
773 (score_gdbarch_init): Drop allocation of tdep structure.
774 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
776 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
778 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
780 (am33_regset_from_core_section): Remove dynamic regset
783 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
785 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
786 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
788 (mips_linux_regset_from_core_section): Remove dynamic regset
790 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
791 'gregset64', 'fpregset', and 'fpregset64'.
792 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
795 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
797 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
799 (amd64_regset_from_core_section): Remove dynamic regset
801 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
803 (amd64obsd_regset_from_core_section): Remove dynamic regset
805 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
807 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
808 x86-common regset supply function.
809 * i386-tdep.c (i386_collect_gregset): Make static.
810 (i386_gregset): New global regset structure.
811 (i386_fpregset, i386_xstateregset): New static regset structures.
812 (i386_regset_from_core_section): Remove dynamic regset
814 (i386_gdbarch_init): Remove initialization of tdep fields
815 'gregset', 'fpregset', and 'xstateregset'.
816 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
817 'fpregset', and 'xstateregset'.
818 (i386_collect_gregset): Remove prototype.
819 (i386_gregset): New declaration.
820 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
822 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
827 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
828 (arm_linux_vfpregset): New static regset structures.
829 (arm_linux_regset_from_core_section): Remove dynamic allocation of
831 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
832 and 'vfpregset' fields.
834 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
836 * aarch64-linux-tdep.c (aarch64_linux_gregset)
837 (aarch64_linux_fpregset): New static regset structures.
838 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
839 of regset structures.
840 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
845 * regset.h (struct regset): Remove gdbarch field.
846 * regset.c (regset_alloc): Drop initialization of gdbarch field.
847 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
848 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
850 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
851 (ppc32_linux_fpregset, ppc32_linux_vrregset)
852 (ppc32_linux_vsxregset): Likewise.
853 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
854 via the regcache instead of the regset.
855 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
856 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
857 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
858 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
863 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
865 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
866 (alphanbsd_aout_gregset): Likewise.
867 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
868 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
870 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
871 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
873 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
874 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
875 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
876 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
877 * m88k-tdep.c (m88k_gregset): Likewise.
878 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
879 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
880 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
881 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
882 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
883 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
884 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
885 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
886 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
888 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
889 * sh-tdep.h (sh_corefile_gregset): Likewise.
890 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
891 * vax-tdep.c (vax_gregset): Likewise.
893 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
895 Fix TLS access for -static -pthread.
896 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
897 (try_thread_db_load_1): Initialize it.
898 (thread_db_get_thread_local_address): Call it if LM is zero.
899 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
900 * target.h (struct target_ops) (to_get_thread_local_address): Add
901 load_module_addr comment.
903 2014-05-21 Pedro Alves <palves@redhat.com>
905 * dcache.c (dcache_read_memory_partial): If reading the cache line
906 fails, fallback to reading just the memory the caller wanted.
908 2014-05-20 Doug Evans <dje@google.com>
910 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
911 instead of get_current_arch.
913 2014-05-20 Pedro Alves <palves@redhat.com>
915 * NEWS: Mention that compare-sections now works with all targets.
917 * remote.c (PACKET_qCRC): New enum value.
918 (remote_verify_memory): Don't send qCRC if the target has no
919 execution. Use packet_support/packet_ok. If the target doesn't
920 support the qCRC packet, fallback to a deep memory copy.
921 (compare_sections_command): Say "target image" instead of "remote
923 (_initialize_remote): Add PACKET_qCRC to the list of config
924 packets that have no associated command. Extend comment.
925 * target.c (simple_verify_memory, default_verify_memory): New
927 * target.h (struct target_ops) <to_verify_memory>: Default to
928 default_verify_memory.
929 (simple_verify_memory): New declaration.
930 * target-delegates.c: Regenerate.
932 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
934 * record-btrace.c (record_btrace_step_thread): Check for empty history.
936 2014-05-20 Hui Zhu <hui@codesourcery.com>
937 Yao Qi <yao@codesourcery.com>
940 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
941 and change address of sp and pc.
943 2014-05-19 Tom Tromey <tromey@redhat.com>
945 * gdbtypes.c (rank_function): Use XNEWVEC.
946 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
948 2014-05-19 Doug Evans <dje@google.com>
950 * dwarf2read.c (build_type_psymtabs_1): Renamed from
951 build_type_unit_groups and moved closer to only caller. Remove
952 arguments. All references updated. Remove outdated .gdb_index
954 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
955 build_type_psymtabs_1.
957 2014-05-19 Doug Evans <dje@google.com>
959 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
960 n_type_unit_groups, all_type_unit_groups. All uses removed.
961 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
962 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
963 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
964 (add_type_unit_group_to_table): Delete.
966 2014-05-19 Doug Evans <dje@google.com>
968 * eval.c (evaluate_subexp_standard): Add some comments.
970 2014-05-17 Doug Evans <xdje42@gmail.com>
972 * progspace.c (remove_program_space): Delete, unused.
973 * progspace.h (remove_program_space): Ditto.
975 2014-05-17 Doug Evans <xdje42@gmail.com>
977 * inferior.c (prune_inferiors): Fix comment.
978 (remove_inferior_command): Call prune_program_spaces.
980 2014-05-16 Doug Evans <dje@google.com>
982 New command line option -D.
984 * main.c (set_gdb_data_directory): New function.
985 (captured_main): Recognize -D. Flag error for --data-directory "".
986 Call set_gdb_data_directory.
987 (print_gdb_help): Print --data-directory, -D.
988 * main.h (set_gdb_data_directory): Declare.
989 * top.c (staged_gdb_datadir): New static global.
990 (set_gdb_datadir): Call set_gdb_data_directory
991 (show_gdb_datadir): New function.
992 (init_main): Update init of data-directory parameter.
994 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
996 Import the "dirfd" gnulib module.
997 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
998 * gnulib/aclocal.m4: Update.
999 * gnulib/config.in: Update.
1000 * gnulib/configure: Update.
1001 * gnulib/import/Makefile.am: Update.
1002 * gnulib/import/Makefile.in: Update.
1003 * gnulib/import/dirfd.c: New.
1004 * gnulib/import/m4/dirfd.m4: New.
1005 * gnulib/import/m4/gnulib-cache.m4: Update.
1006 * gnulib/import/m4/gnulib-comp.m4: Update.
1008 2014-05-16 Pierre Muller <muller@sourceware.org>
1009 Yao Qi <yao@codesourcery.com>
1011 * valprint.c (print_wchar): Move the code on checking whether
1012 W is a printable wide char to the default branch of switch
1013 statement below. Call wchar_printable instead of gdb_iswprint.
1015 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1017 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1018 ldr.w and ldrd instructions.
1020 2014-05-15 Doug Evans <dje@google.com>
1022 * dwarf2read.c (read_structure_type): Delete outdated comments.
1024 2014-05-14 Tom Tromey <tromey@redhat.com>
1026 * macrocmd.c (print_macro_definition): Reindent.
1028 2014-05-13 Doug Evans <xdje42@gmail.com>
1030 * python/py-cmd.c (cmdpy_completer): Add comment.
1031 (completers): Make const.
1033 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1035 * infrun.c (resume): Remove should_resume (unused). Move up
1036 declaration of resume_ptid.
1038 2014-05-13 Tom Tromey <tromey@redhat.com>
1040 * language.h (unop_type_check): Remove.
1041 (binop_type_check): Don't declare.
1043 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1045 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1046 call to regcache_raw_collect.
1048 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1050 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1051 mi_console->quote as the quoting character.
1053 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1055 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1057 2014-04-29 Tom Tromey <tromey@redhat.com>
1059 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1060 "show debug varobj".
1062 2014-05-07 Kyle McMartin <kyle@redhat.com>
1064 Pushed by Joel Brobecker <brobecker@adacore.com>.
1065 * aarch64-tdep.c (aarch64_software_single_step): New function.
1066 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1067 with aarch64_software_single_step.
1069 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1073 2014-05-05 Keith Seitz <keiths@redhat.com>
1075 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1076 variable or history value is successfully parsed.
1078 2014-05-05 Yao Qi <yao@codesourcery.com>
1079 Pedro Alves <palves@redhat.com>
1081 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1082 address of blocks that intersects the requested range. Trim
1083 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1085 * ctf.c (ctf_xfer_partial): Likewise.
1087 2014-05-05 Yao Qi <yao@codesourcery.com>
1089 * printcmd.c (display_command): Remove the check to
1090 target_has_execution.
1092 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1094 * ppcobsd-nat.c: Include "obsd-nat.h".
1095 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1097 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1099 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1101 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1102 and 16-bit signed and unsigned arguments. Update comment.
1103 (stap_parse_probe_arguments): Extend code to handle such
1104 arguments. Use warning instead of complaint to notify about
1105 unrecognized bitness.
1107 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1109 PR breakpoints/16889
1110 * stap-probe.c (stap_parse_probe_arguments): Simplify
1111 check for non-prefixed probes (i.e., probes whose
1112 arguments do not start with "N@"). Always set the
1113 argument type to a sane value.
1115 2014-05-01 David Taylor <dtaylor@emc.com>
1117 * remote.c (compare_sections_command): Add -r option to compare
1118 all loadable read-only sections.
1120 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1122 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1123 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1125 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1126 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1127 Remove unused CORE_ADDR argument. Update all callers.
1129 2014-04-29 Pedro Alves <palves@redhat.com>
1131 * remote.c (struct packet_config) <detect>: Extend comment.
1132 (add_packet_config_cmd): Don't set the config's detect or support
1134 (init_all_packet_configs): Also initialize the config's 'detect'
1136 (reset_all_packet_configs_support): New function.
1137 (remote_open_1): Call reset_all_packet_configs_support instead of
1138 init_all_packet_configs.
1139 (_initialize_remote): Initialize all packet configs. Assert that
1140 all packets have an associated command, except a few known
1143 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1145 * dwarf2read.c (read_subrange_type): Handle dynamic
1146 DW_AT_lower_bound attributes.
1148 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1150 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1151 dynamic bounds before computing its upper bound.
1152 (ada_discrete_type_low_bound): Same as above with the lower bound.
1154 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1156 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1157 range types. Adjust the array handling implementation to
1158 take advantage of this change.
1159 (resolve_dynamic_range): New function, mostly extracted from
1160 resolve_dynamic_bounds.
1161 (resolve_dynamic_array): New function, mostly extracted from
1162 resolve_dynamic_bounds.
1163 (resolve_dynamic_bounds): Delete.
1164 (resolve_dynamic_type): Reimplement. Add handling of
1165 TYPE_CODE_RANGE types.
1167 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1169 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1170 handling of parallel ___XA types.
1172 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1174 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1175 unnecessary second call to static_unwrap_type.
1177 2014-04-27 Hui Zhu <hui@codesourcery.com>
1179 * stack.c (print_frame_info): Call do_gdb_disassembly with
1180 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1182 2014-04-26 Doug Evans <xdje42@gmail.com>
1184 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1186 2014-04-25 Pedro Alves <palves@redhat.com>
1189 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1190 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1191 and newline from built string.
1192 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1193 (linux_ptrace_attach_fail_reason): ... this.
1194 * linux-nat.c (linux_nat_attach): Adjust to use
1195 linux_ptrace_attach_fail_reason.
1197 2014-04-25 Pedro Alves <palves@redhat.com>
1199 * remote.c (struct remote_state): Remove multi_process_aware,
1200 non_stop_aware, cond_tracepoints, cond_breakpoints,
1201 breakpoint_commands, fast_tracepoints, static_tracepoints,
1202 install_in_trace, disconnected_tracing,
1203 enable_disable_tracepoints, string_tracing, and
1204 augmented_libraries_svr4_read fields.
1205 (remote_multi_process_p): Move further below in the file.
1206 (struct packet_config): Add comments.
1207 (update_packet_config): Delete function.
1208 (show_packet_config_cmd): Use packet_config_support.
1209 (add_packet_config_cmd): Use NULL as set callback.
1210 (packet_ok): "set remote foo-packet"-style commands no longer
1211 change config->supported -- adjust.
1212 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1213 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1214 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1215 (PACKET_QNonStop, PACKET_multiprocess_feature)
1216 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1217 (PACKET_DisconnectedTracing_feature)
1218 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1219 (set_remote_protocol_packet_cmd): Delete function.
1220 (packet_config_support, packet_support): New functions.
1221 (set_remote_protocol_Z_packet_cmd): Don't call
1222 update_packet_config.
1223 (remote_query_attached, remote_pass_signals)
1224 (remote_program_signals, remote_threads_info)
1225 (remote_threads_extra_info, remote_start_remote): Use
1227 (remote_start_remote): Use packet_config_support and
1229 (init_all_packet_configs): Set all packets to unknown support,
1230 instead of calling update_packet_config.
1231 (remote_check_symbols): Use packet_support.
1232 (remote_supported_packet): Unconditionally set the packet config's
1234 (remote_multi_process_feature, remote_non_stop_feature)
1235 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1236 (remote_breakpoint_commands_feature)
1237 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1238 (remote_install_in_trace_feature)
1239 (remote_disconnected_tracing_feature)
1240 (remote_enable_disable_tracepoint_feature)
1241 (remote_string_tracing_feature)
1242 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1243 (remote_protocol_features): Adjust to use remote_supported_packet
1244 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1245 "ConditionalTracepoints", "ConditionalBreakpoints",
1246 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1247 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1248 "EnableDisableTracepoints", and "tracenz".
1249 (remote_query_supported): Use packet_support.
1250 (remote_open_1): Adjust.
1251 (extended_remote_attach_1): Use packet_support. Switch on the
1252 result of packet_ok instead of checking whether the packet ended
1254 (remote_vcont_resume): Use packet_support.
1255 (remote_resume, remote_stop_ns, fetch_register_using_p)
1256 (remote_prepare_to_store, store_register_using_P)
1257 (check_binary_download, remote_write_bytes): Use packet_support.
1258 (remote_vkill): Use packet_support. Switch on the result of
1259 packet_ok instead of checking whether the packet ended up
1261 (extended_remote_supports_disable_randomization): Use
1263 (extended_remote_run): Switch on the result of packet_ok instead
1264 of checking whether the packet ended up disabled.
1265 (remote_insert_breakpoint, remote_remove_breakpoint)
1266 (remote_insert_watchpoint, remote_remove_watchpoint)
1267 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1269 (remote_search_memory): Use packet_config_support.
1270 (remote_get_thread_local_address, remote_get_tib_address)
1271 (remote_hostio_send_command, remote_can_execute_reverse): Use
1273 (remote_supports_cond_tracepoints)
1274 (remote_supports_cond_breakpoints)
1275 (remote_supports_fast_tracepoints)
1276 (remote_supports_static_tracepoints)
1277 (remote_supports_install_in_trace)
1278 (remote_supports_enable_disable_tracepoint)
1279 (remote_supports_string_tracing)
1280 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1281 the packet config says the feature is enabled or disabled.
1282 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1283 (remote_get_trace_status): Use packet_support.
1284 (remote_set_disconnected_tracing): Adjust to check whether the
1285 feature is enabled with packet_support.
1286 (remote_set_trace_buffer_size, remote_use_agent)
1287 (remote_can_use_agent, remote_supports_btrace): Use
1289 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1290 Use packet_config_support.
1291 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1292 the packet config says the feature is enabled or disabled.
1293 (set_range_stepping): Use packet_support.
1295 2014-04-25 Tom Tromey <tromey@redhat.com>
1297 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1300 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1302 * NEWS: Mention support for C99 variable length arrays.
1304 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1306 * ada-lang.c (standard_exc): Expand introductory comment.
1308 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1309 Walfred Tedeschi <walfred.tedeschi@intel.com>
1311 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1313 (amd64_linux_read_description): Add code to handle AVX512 xstate
1314 mask and return respective tdesc.
1315 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1316 and features/i386/x32-avx512-linux.c.
1317 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1318 (amd64_linux_core_read_description): Add code to handle AVX512
1319 xstate mask and return respective tdesc.
1320 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1321 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1323 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1324 (tdesc_amd64_avx512_linux): New prototype.
1325 (tdesc_x32_avx512_linux): Likewise.
1326 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1327 features/i386/x32-avx512.c.
1328 (amd64_ymm_avx512_names): New register names for pseudo
1330 (amd64_ymmh_avx512_names): New register names for raw registers
1332 (amd64_k_names): New register names for K registers.
1333 (amd64_zmmh_names): New register names for ZMM raw registers.
1334 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1335 (amd64_xmm_avx512_names): New register names for XMM16-31
1337 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1339 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1340 if feature is present.
1341 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1342 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1343 (AMD64_NUM_REGS): Adjust to new number of registers.
1344 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1345 registers supplied via XSTATE by AVX512 registers.
1346 (i386_linux_read_description): Add case for AVX512.
1347 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1348 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1349 (i386_linux_core_read_description): Add case for AVX512.
1350 (i386_linux_init_abi): Install supported register note section
1352 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1354 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1355 registers to be number of zmm7h + 1.
1356 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1357 * i386-tdep.c: Include features/i386/i386-avx512.c.
1358 (i386_zmm_names): Add ZMM pseudo register names array.
1359 (i386_zmmh_names): Add ZMM raw register names array.
1360 (i386_k_names): Add K raw register names array.
1361 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1362 registers. AVX512 has 16 more ZMM registers than there are YMM
1364 (i386_zmmh_regnum_p): Add function to look up register number of
1366 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1367 (i386_k_regnum_p): Likewise for K raw registers.
1368 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1369 registers added by AVX512.
1370 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1371 registers added by AVX512.
1372 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1374 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1375 (i386_pseudo_register_name): Add ZMM pseudo registers.
1376 (i386_zmm_type): Construct and return vector registers type for ZMM
1378 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1379 ZMM0-31 pseudo registers and K registers.
1380 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1381 and YMM16-31 registers from register cache.
1382 (i386_pseudo_register_write): Add code to write K, ZMM and
1384 (i386_register_reggroup_p): Add code to include/exclude AVX512
1385 registers in/from respective register groups.
1386 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1387 registers if feature is present in xcr0.
1388 (i386_gdbarch_init): Add code to initialize AVX512 feature
1389 variables in tdep structure, wire in pseudo registers and call
1390 initialize_tdesc_i386_avx512.
1391 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1393 (i386_regnum): Add AVX512 registers.
1394 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1395 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1396 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1397 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1399 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1400 (i386_ymm_avx512_regnum_p): Likewise.
1401 (i386_k_regnum_p): Likewise.
1402 (i386_zmm_regnum_p): Likewise.
1403 (i386_zmmh_regnum_p): Likewise.
1404 * i387-tdep.c : Update year in copyright notice.
1405 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1407 (XSAVE_YMM_AVX512_ADDR): New macro.
1408 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1410 (XSAVE_XMM_AVX512_ADDR): New macro.
1411 (xsave_avx512_k_offset): New table for K register offsets in
1413 (XSAVE_AVX512_K_ADDR): New macro.
1414 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1416 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1417 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1419 (i387_collect_xsave): Add code to collect AVX512 registers from
1421 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1422 of XMM16-31 registers.
1423 (I387_NUM_K_REGS): New define for number of K registers.
1424 (I387_K0_REGNUM): New define for K0 register number.
1425 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1426 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1427 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1429 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1430 (I387_XMM16_REGNUM): New define for XMM16 register number.
1431 (I387_YMM0_REGNUM): New define for YMM0 register number.
1432 (I387_KEND_REGNUM): New define for last K register number.
1433 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1434 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1436 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1438 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1440 * features/Makefile: Add AVX512 related files.
1441 * features/i386/32bit-avx512.xml: New file.
1442 * features/i386/64bit-avx512.xml: Likewise.
1443 * features/i386/amd64-avx512-linux.c: Likewise.
1444 * features/i386/amd64-avx512-linux.xml: Likewise.
1445 * features/i386/amd64-avx512.c: Likewise.
1446 * features/i386/amd64-avx512.xml: Likewise.
1447 * features/i386/i386-avx512-linux.c: Likewise.
1448 * features/i386/i386-avx512-linux.xml: Likewise.
1449 * features/i386/i386-avx512.c: Likewise.
1450 * features/i386/i386-avx512.xml: Likewise.
1451 * features/i386/x32-avx512-linux.c: Likewise.
1452 * features/i386/x32-avx512-linux.xml: Likewise.
1453 * features/i386/x32-avx512.c: Likewise.
1454 * features/i386/x32-avx512.xml: Likewise.
1455 * regformats/i386/amd64-avx512-linux.dat: New file.
1456 * regformats/i386/amd64-avx512.dat: Likewise.
1457 * regformats/i386/i386-avx512-linux.dat: Likewise.
1458 * regformats/i386/i386-avx512.dat: Likewise.
1459 * regformats/i386/x32-avx512-linux.dat: Likewise.
1460 * regformats/i386/x32-avx512.dat: Likewise.
1461 * NEWS: Add note about new support for AVX512.
1464 2014-04-23 Pedro Alves <palves@redhat.com>
1466 * breakpoint.c (insert_bp_location): Tolerate errors if the
1467 breakpoint is set in a user-loaded objfile.
1468 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1469 location is marked shlib_disabled. If the breakpoint is set in a
1470 user-loaded objfile is a GDB-side memory breakpoint, validate it
1471 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1472 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1474 * mem-break.c (memory_validate_breakpoint): New function.
1475 * objfiles.c (userloaded_objfile_contains_address_p): New
1477 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1478 * target.h (memory_validate_breakpoint): New declaration.
1480 2014-04-23 Pedro Alves <palves@redhat.com>
1482 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1483 the breakpoint is set in a shared library, only suppress
1484 errors for software breakpoints, not hardware breakpoints.
1486 2014-04-22 Pedro Alves <palves@redhat.com>
1488 * infrun.c (schedlock_applies): New function, factored out from
1489 find_thread_needs_step_over.
1490 (find_thread_needs_step_over): Use it.
1491 (switch_back_to_stepped_thread): Always clear trap_expected if the
1492 step over is finished. Return early if scheduler locking applies.
1493 Look for the stepping thread and a potential step-over thread with
1495 (currently_stepping_or_nexting_callback): Delete.
1497 2014-04-22 Nick Clifton <nickc@redhat.com>
1499 * NEWS: Mention that ARM sim now supports tracing.
1501 2014-04-22 Yao Qi <yao@codesourcery.com>
1503 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1505 * tracefile.c (tracefile_fetch_registers): ... it. New
1507 * tracefile.h (tracefile_fetch_registers): Declare.
1508 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1509 tracefile_fetch_registers.
1511 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1514 * windows-nat.c (thread_rec): Don't display a warning when
1515 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1516 fails for any reason, set th->suspended to -1, so that we don't
1517 try to resume such a thread. Also, don't return NULL in these
1518 cases, to avoid completely ruin the session due to "PC register is
1519 not available" error.
1520 (do_windows_fetch_inferior_registers): Check errors in
1521 GetThreadContext call.
1522 (windows_continue): Accept an additional argument KILLED; if not
1523 zero, ignore errors in the SetThreadContext call, since the
1524 inferior was killed and is shutting down.
1525 (windows_resume, get_windows_debug_event)
1526 (windows_create_inferior, windows_mourn_inferior)
1527 (windows_kill_inferior): All callers of windows_continue changed
1528 to adjust to its new calling sequence.
1530 2014-04-19 Yao Qi <yao@codesourcery.com>
1532 * ctf.c (ctf_open): Call post_create_inferior.
1534 2014-04-19 Yao Qi <yao@codesourcery.com>
1536 * ctf.c (handle_id): New static variable.
1537 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1538 value. Get the declaration of event "register" and get length
1539 of field "contents".
1541 2014-04-19 Yao Qi <yao@codesourcery.com>
1543 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1545 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1547 * valops.c (oload_method_static): Remove unnecessary argument
1548 METHOD. Update all callers.
1550 2014-04-18 Pedro alves <palves@redhat.com>
1551 Tom Tromey <tromey@redhat.com>
1554 * frame.c (get_prev_frame_1): Rename to ...
1555 (get_prev_frame_always): ... this, and make extern. Adjust.
1556 (skip_artificial_frames): Use get_prev_frame_always.
1557 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1558 (get_frame_unwind_stop_reason): Adjust to rename.
1559 * frame.h (get_prev_frame_always): Declare.
1560 * inline-frame.c: Include frame.h.
1561 (inline_frame_this_id): Use get_prev_frame_always.
1563 2014-04-18 Tristan Gingold <gingold@adacore.com>
1565 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1566 code by using bfd_mach_o_get_base_address.
1568 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1570 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1571 (spu_ax_pseudo_register_collect): New function.
1572 (spu_ax_pseudo_register_push_stack): Likewise.
1573 (spu_dwarf_reg_to_regnum): Likewise.
1574 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1576 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1578 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1579 Replace FRAME argument with FRAME_ID.
1580 * gdbarch.c, gdbarch.h: Regenerate.
1581 * findvar.c (default_value_from_register): Add GDBARCH argument;
1582 replace FRAME by FRAME_ID. No longer call get_frame_id.
1583 (value_from_register): Update call to gdbarch_value_from_register.
1584 * value.h (default_value_from_register): Update prototype.
1585 * s390-linux-tdep.c (s390_value_from_register): Update interface
1586 and call to default_value_from_register.
1587 * spu-tdep.c (spu_value_from_register): Likewise.
1589 * findvar.c (address_from_register): Remove TYPE argument.
1590 Do not call value_from_register; use gdbarch_value_from_register
1591 with null_frame_id instead.
1592 * value.h (address_from_register): Update prototype.
1593 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1594 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1595 address_from_register interface change.
1597 2014-04-17 Yao Qi <yao@codesourcery.com>
1599 * gdbtypes.h: Update comments to link to types and macros'
1602 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1604 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1606 2014-04-16 Keith Seitz <keiths@redhat.com>
1609 * dwarf2read.c (skip_one_die): Check that all relative-offset
1610 sibling DIEs fall within range of the current reader's buffer.
1611 (read_partial_die): Likewise.
1613 2014-04-16 Keith Seitz <keiths@redhat.com>
1616 * cp-namespace.c (lookup_symbol_file): If the type name of
1617 `this' is NULL, return immediately.
1619 2014-04-14 Keith Seitz <keiths@redhat.com>
1622 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1623 from symbol_matches_domain in symtab.c. All local callers
1624 of symbol_matches_domain updated.
1625 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1626 search STRUCT_DOMAIN.
1627 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1628 independently. standard_lookup will do that automatically.
1629 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1630 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1631 (cp_lookup_symbol_in_namespace): Likewise.
1632 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1633 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1634 may return a STRUCT_DOMAIN match.
1635 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1636 * cp-support.c: Include language.h.
1637 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1639 * psymtab.c (match_partial_symbol): Compare the requested
1640 domain with the symbol's domain directly.
1641 (lookup_partial_symbol): Likewise.
1642 * symtab.c (lookup_symbol_in_language): Explain when/why
1643 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1644 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1645 appropriate languages.
1646 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1647 and moved to ada-lang.c
1648 (lookup_block_symbol): Explain that this function only returns
1649 symbol matching the requested DOMAIN.
1650 Compare the requested domain with the symbol's domain directly.
1651 (iterate_over_symbols): Compare the requested domain with the
1652 symbol's domain directly.
1653 * symtab.h (symbol_matches_domain): Remove.
1655 2014-04-14 Tom Tromey <tromey@redhat.com>
1658 * c-exp.y (type_aggregate_p): New function.
1659 (qualified_name, classify_inner_name): Use it.
1660 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1661 and TYPE_TARGET_TYPE of an enum type.
1662 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1664 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1665 handle TYPE_DECLARED_CLASS.
1666 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1668 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1669 * valops.c (enum_constant_from_type): New function.
1670 (value_aggregate_elt): Use it.
1671 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1674 2014-04-14 Tom Tromey <tromey@redhat.com>
1676 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1677 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1679 * value.h (value_aggregate_elt): Update.
1681 2014-04-14 Tom Tromey <tromey@redhat.com>
1683 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1685 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1687 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1688 (evaluate_subexp_standard): Pass noside argument.
1689 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1690 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1691 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1692 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1693 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1695 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1697 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1698 points to a constant blob.
1700 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1702 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1703 property and store it as the high bound and flag the range accordingly.
1704 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1705 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1706 * gdbtypes.h (enum range_flags): New enum.
1707 (struct range_bounds): Add flags member.
1709 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1711 * c-typeprint.c (c_type_print_varspec_suffix): Added
1712 check for not yet resolved high bound. If unresolved, print
1713 "variable length" string to the console instead of random
1716 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1718 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1720 (ada_template_to_fixed_record_type_1): Likewise.
1721 (ada_to_fixed_type_1): Likewise.
1722 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1723 (cp_print_value): Likewise.
1724 * d-valprint.c (dynamic_array_type): Likewise.
1725 * findvar.c (address_of_variable): Likewise.
1726 * jv-valprint.c (java_value_print): Likewise.
1727 * valops.c (value_ind): Likewise.
1728 * value.c (coerce_ref): Likewise.
1730 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1732 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1733 value and retrieve the dynamic type size.
1735 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1737 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1738 passed to sizeof is dynamic evaluate the argument to compute the length.
1740 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1741 Joel Brobecker <brobecker@adacore.com>
1743 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1744 (dwarf2_evaluate_property): New function.
1745 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1746 * dwarf2read.c (attr_to_dynamic_prop): New function.
1747 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1749 * gdbtypes.c: Include dwarf2loc.h.
1750 (is_dynamic_type): New function.
1751 (resolve_dynamic_type): New function.
1752 (resolve_dynamic_bounds): New function.
1753 (get_type_length): New function.
1754 (check_typedef): Use get_type_length to compute type length.
1755 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1756 (TYPE_LOW_BOUND_KIND): New macro.
1757 (is_dynamic_type): New function prototype.
1758 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1759 to resolve dynamic properties of the type. Update comment.
1760 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1762 2014-04-14 Richard Henderson <rth@redhat.com>
1764 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1766 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1767 Doug Evans <xdje42@gmail.com>
1769 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1770 dereference TYPE_CODE_REF values.
1772 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1774 Revert the following changes due to regressions:
1776 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1777 (dwarf2_evaluate_property): New function.
1778 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1779 * dwarf2read.c (attr_to_dynamic_prop): New function.
1780 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1782 * gdbtypes.c: Include dwarf2loc.h.
1783 (is_dynamic_type): New function.
1784 (resolve_dynamic_type): New function.
1785 (resolve_dynamic_bounds): New function.
1786 (get_type_length): New function.
1787 (check_typedef): Use get_type_length to compute type length.
1788 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1789 (TYPE_LOW_BOUND_KIND): New macro.
1790 (is_dynamic_type): New function prototype.
1791 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1792 to resolve dynamic properties of the type. Update comment.
1793 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1795 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1796 passed to sizeof is dynamic evaluate the argument to compute the length.
1798 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1799 value and retrieve the dynamic type size.
1801 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1802 (ada_template_to_fixed_record_type_1): Likewise.
1803 (ada_to_fixed_type_1): Likewise.
1804 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1805 (cp_print_value): Likewise.
1806 * d-valprint.c (dynamic_array_type): Likewise.
1807 * eval.c (evaluate_subexp_with_coercion): Likewise.
1808 * findvar.c (address_of_variable): Likewise.
1809 * jv-valprint.c (java_value_print): Likewise.
1810 * valops.c (value_ind): Likewise.
1811 * value.c (coerce_ref): Likewise.
1813 * c-typeprint.c (c_type_print_varspec_suffix): Added
1814 check for not yet resolved high bound. If unresolved, print
1815 "variable length" string to the console instead of random
1818 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1819 property and store it as the high bound and flag the range accordingly.
1820 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1821 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1822 * gdbtypes.h (enum range_flags): New enum.
1823 (struct range_bounds): Add flags member.
1825 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1826 points to a constant blob.
1828 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1829 (evaluate_subexp_standard): Pass noside argument.
1830 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1831 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1832 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1833 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1834 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1836 2014-04-11 Keith Seitz <keiths@redhat.com>
1839 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1840 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1843 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1845 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1846 (evaluate_subexp_standard): Pass noside argument.
1847 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1848 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1849 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1850 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1851 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1853 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1855 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1856 points to a constant blob.
1858 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1860 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1861 property and store it as the high bound and flag the range accordingly.
1862 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1863 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1864 * gdbtypes.h (enum range_flags): New enum.
1865 (struct range_bounds): Add flags member.
1867 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1869 * c-typeprint.c (c_type_print_varspec_suffix): Added
1870 check for not yet resolved high bound. If unresolved, print
1871 "variable length" string to the console instead of random
1874 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1876 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1877 (ada_template_to_fixed_record_type_1): Likewise.
1878 (ada_to_fixed_type_1): Likewise.
1879 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1880 (cp_print_value): Likewise.
1881 * d-valprint.c (dynamic_array_type): Likewise.
1882 * eval.c (evaluate_subexp_with_coercion): Likewise.
1883 * findvar.c (address_of_variable): Likewise.
1884 * jv-valprint.c (java_value_print): Likewise.
1885 * valops.c (value_ind): Likewise.
1886 * value.c (coerce_ref): Likewise.
1888 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1890 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1891 value and retrieve the dynamic type size.
1893 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1895 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1896 passed to sizeof is dynamic evaluate the argument to compute the length.
1898 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1900 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1901 (dwarf2_evaluate_property): New function.
1902 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1903 * dwarf2read.c (attr_to_dynamic_prop): New function.
1904 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1906 * gdbtypes.c: Include dwarf2loc.h.
1907 (is_dynamic_type): New function.
1908 (resolve_dynamic_type): New function.
1909 (resolve_dynamic_bounds): New function.
1910 (get_type_length): New function.
1911 (check_typedef): Use get_type_length to compute type length.
1912 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1913 (TYPE_LOW_BOUND_KIND): New macro.
1914 (is_dynamic_type): New function prototype.
1915 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1916 to resolve dynamic properties of the type. Update comment.
1917 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1921 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1922 declaring high/low bounds and change uses accordingly. Call
1923 create_range_type instead of create_static_range_type.
1924 * gdbtypes.c (create_range_type): New function.
1925 (create_range_type): Convert bounds into struct bound_prop and pass
1926 them to create_range_type.
1927 * gdbtypes.h (struct bound_prop): New struct.
1928 (create_range_type): New function prototype.
1929 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1930 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1931 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1933 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1935 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1937 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1938 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1939 * ada-lang.c: All uses of create_range_type updated.
1940 * coffread.c: All uses of create_range_type updated.
1941 * dwarf2read.c: All uses of create_range_type updated.
1942 * f-exp.y: All uses of create_range_type updated.
1943 * m2-valprint.c: All uses of create_range_type updated.
1944 * mdebugread.c: All uses of create_range_type updated.
1945 * stabsread.c: All uses of create_range_type updated.
1946 * valops.c: All uses of create_range_type updated.
1947 * valprint.c: All uses of create_range_type updated.
1949 2014-04-10 Pedro Alves <palves@redhat.com>
1951 * breakpoint.c (single_step_breakpoints)
1952 (single_step_gdbarch): Move up in the file.
1953 (one_breakpoint_xfer_memory): New function, factored out from ...
1954 (breakpoint_xfer_memory): ... here. Also process single-step
1957 2014-04-09 Tristan Gingold <gingold@adacore.com>
1959 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1961 (darwin_decode_exception_message): Free port only after use.
1963 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1965 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1966 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1967 when setting the size of call_length.
1969 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1971 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1972 dereference TYPE_CODE_REF values.
1974 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1976 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1977 end of warning message.
1979 2014-04-03 Doug Evans <dje@google.com>
1981 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1982 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1984 2014-04-02 Alan Modra <amodra@gmail.com>
1986 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1987 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1988 (struct symbol_file_add_from_memory_args): Add size field.
1989 (find_vdso_size): New function.
1990 (add_vsyscall_page): Attempt to find vdso size.
1992 2014-04-01 Doug Evans <dje@google.com>
1994 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1996 2014-04-01 Tristan Gingold <gingold@adacore.com>
1998 * darwin-nat.c (darwin_encode_reply): Add prototype.
1999 (darwin_decode_exception_message): Reply to unknown inferiors.
2000 (darwin_decode_message): Handle message by id. Ignore message
2001 to unknown inferior.
2002 (darwin_wait): Discard unknown messages, add debug trace.
2004 2014-03-31 Doug Evans <dje@google.com>
2006 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2009 2014-03-31 Doug Evans <dje@google.com>
2011 New option "set print symbol-loading".
2013 * solib.c (solib_read_symbols): Only print symbol loading messages
2015 (solib_add): If symbol loading is in "brief" mode, notify user
2016 symbols are being loaded.
2017 (reload_shared_libraries_1): Ditto.
2018 * symfile.c (print_symbol_loading_off): New static global.
2019 (print_symbol_loading_brief): New static global.
2020 (print_symbol_loading_full): New static global.
2021 (print_symbol_loading_enums): New static global.
2022 (print_symbol_loading): New static global.
2023 (print_symbol_loading_p): New function.
2024 (symbol_file_add_with_addrs): Only print symbol loading messages
2026 (_initialize_symfile): Register "print symbol-loading" set/show
2028 * symfile.h (print_symbol_loading_p): Declare.
2030 2014-03-30 Doug Evans <xdje42@gmail.com>
2032 * infrun.c (set_last_target_status): New function.
2033 (handle_inferior_event): Call it.
2035 2014-03-30 Doug Evans <xdje42@gmail.com>
2037 * inferior.h (enum stop_kind): Improve comment.
2039 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2041 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2042 a reference, strip the reference layer before calling
2043 the lang_ops value_has_mutated callback.
2045 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2047 Remove some globals from our parser.
2048 * language.c (unk_lang_parser): Add "struct parser_state"
2050 * language.h (struct language_defn) <la_parser>: Likewise.
2051 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2052 (initialize_expout): Add "struct parser_state" argument.
2053 Rewrite function to use the parser state.
2054 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2055 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2056 write_exp_elt_longcst, write_exp_elt_dblcst,
2057 write_exp_elt_decfloatcst, write_exp_elt_type,
2058 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2059 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2060 write_dollar_variable): Likewise.
2061 (parse_exp_in_context_1): Use parser state.
2062 (insert_type_address_space): Add "struct parser_state" argument.
2064 (increase_expout_size): New function.
2065 * parser-defs.h: Forward declare "struct language_defn" and
2066 "struct parser_state".
2067 (expout, expout_size, expout_ptr): Remove extern declarations.
2068 (parse_gdbarch, parse_language): Rewrite macro declarations to
2069 accept the parser state.
2070 (struct parser_state): New struct.
2071 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2072 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2073 write_exp_elt_decfloatcst, write_exp_elt_type,
2074 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2075 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2076 write_exp_msymbol, write_dollar_variable,
2077 mark_struct_expression, insert_type_address_space): Add "struct
2078 parser_state" argument.
2079 (increase_expout_size): New function.
2080 * utils.c (do_clear_parser_state): New function.
2081 (make_cleanup_clear_parser_state): Likewise.
2082 * utils.h (make_cleanup_clear_parser_state): New function
2084 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2085 Update calls to write_exp* in order to pass the parser state.
2086 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2087 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2088 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2089 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2090 * stap-probe.c (stap_parse_register_operand): Likewise.
2091 (stap_parse_single_operand): Likewise.
2092 (stap_parse_argument_1): Likewise.
2093 (stap_parse_argument): Use parser state.
2094 * stap-probe.h: Include "parser-defs.h".
2095 (struct stap_parse_info) <pstate>: New field.
2096 * c-exp.y (parse_type): Rewrite to use parser state.
2097 (yyparse): Redefine to c_parse_internal.
2098 (pstate): New global variable.
2099 (parse_number): Add "struct parser_state" argument.
2100 (write_destructor_name): Likewise.
2101 (type_exp): Update calls to write_exp* and similars in order to
2103 (exp1, exp, variable, qualified_name, space_identifier,
2104 typename, typebase): Likewise.
2105 (write_destructor_name, parse_number, lex_one_token,
2106 classify_name, classify_inner_name, c_parse): Add "struct
2107 parser_state" argument. Update function to use parser state.
2108 * c-lang.h: Forward declare "struct parser_state".
2109 (c_parse): Add "struct parser_state" argument.
2110 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2111 (yyparse): Redefine macro to ada_parse_internal.
2112 (pstate): New variable.
2113 (write_int, write_object_renaming, write_var_or_type,
2114 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2115 type_int, type_long, type_long_long, type_float, type_double,
2116 type_long_double, type_char, type_boolean, type_system_address):
2117 Add "struct parser_state" argument.
2118 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2119 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2120 var_or_type, aggregate, aggregate_component_list,
2121 positional_list, others, component_group,
2122 component_associations): Update calls to write_exp* and similar
2123 functions in order to use parser state.
2124 (ada_parse, write_var_from_sym, write_int,
2125 write_exp_op_with_string, write_object_renaming,
2126 find_primitive_type, write_selectors, write_ambiguous_var,
2127 write_var_or_type, write_name_assoc, type_int, type_long,
2128 type_long_long, type_float, type_double, type_long_double,
2129 type_char, type_boolean, type_system_address): Add "struct
2130 parser_state" argument. Adjust function to use parser state.
2131 * ada-lang.c (parse): Likewise.
2132 * ada-lang.h: Forward declare "struct parser_state".
2133 (ada_parse): Add "struct parser_state" argument.
2134 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2135 calls to both functions.
2136 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2138 (yyparse): Redefine macro to f_parse_internal.
2139 (pstate): New variable.
2140 (parse_number): Add "struct parser_state" argument.
2141 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2142 and similars in order to use parser state.
2143 (parse_number): Adjust code to use parser state.
2145 (f_parse): New function.
2146 * f-lang.h: Forward declare "struct parser_state".
2147 (f_parse): Add "struct parser_state" argument.
2148 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2150 (yyparse): Redefine macro for java_parse_internal.
2151 (pstate): New variable.
2152 (push_expression_name, push_expression_name, insert_exp): Add
2153 "struct parser_state" argument.
2154 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2155 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2156 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2157 PostIncrementExpression, PostDecrementExpression,
2158 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2159 UnaryExpressionNotPlusMinus, CastExpression,
2160 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2161 RelationalExpression, EqualityExpression, AndExpression,
2162 ExclusiveOrExpression, InclusiveOrExpression,
2163 ConditionalAndExpression, ConditionalOrExpression,
2164 ConditionalExpression, Assignment, LeftHandSide): Update
2165 calls to write_exp* and similars in order to use parser state.
2166 (parse_number): Ajust code to use parser state.
2168 (java_parse): New function.
2169 (push_variable): Add "struct parser_state" argument. Adjust
2170 code to user parser state.
2171 (push_fieldnames, push_qualified_expression_name,
2172 push_expression_name, insert_exp): Likewise.
2173 * jv-lang.h: Forward declare "struct parser_state".
2174 (java_parse): Add "struct parser_state" argument.
2175 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2177 (yyparse): Redefine macro to m2_parse_internal.
2178 (pstate): New variable.
2179 (type_exp, exp, fblock, variable, type): Update calls to
2180 write_exp* and similars to use parser state.
2182 (m2_parse): New function.
2183 * m2-lang.h: Forward declare "struct parser_state".
2184 (m2_parse): Add "struct parser_state" argument.
2185 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2186 * objc-lang.h: Forward declare "struct parser_state".
2187 (end_msglist): Add "struct parser_state" argument.
2188 * p-exp.y (parse_type): Rewrite macro to use parser state.
2189 (yyparse): Redefine macro to pascal_parse_internal.
2190 (pstate): New variable.
2191 (parse_number): Add "struct parser_state" argument.
2192 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2193 write_exp* and similars in order to use parser state.
2194 (parse_number, yylex): Adjust code to use parser state.
2195 (pascal_parse): New function.
2196 * p-lang.h: Forward declare "struct parser_state".
2197 (pascal_parse): Add "struct parser_state" argument.
2198 * go-exp.y (parse_type): Rewrite macro to use parser state.
2199 (yyparse): Redefine macro to go_parse_internal.
2200 (pstate): New variable.
2201 (parse_number): Add "struct parser_state" argument.
2202 (type_exp, exp1, exp, variable, type): Update calls to
2203 write_exp* and similars in order to use parser state.
2204 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2205 to use parser state.
2206 (go_parse): Likewise.
2207 * go-lang.h: Forward declare "struct parser_state".
2208 (go_parse): Add "struct parser_state" argument.
2210 2014-03-27 Doug Evans <dje@google.com>
2212 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2214 2014-03-27 Doug Evans <dje@google.com>
2216 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2217 Remove argument abbrev_section. All callers updated.
2219 2014-03-27 Doug Evans <dje@google.com>
2221 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2222 addr_base, ranges_base.
2224 2014-03-26 Keith Seitz <keiths@redhat.com>
2226 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2227 types, not VAR_DOMAIN.
2229 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2231 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2233 * features/nios2-linux.c: Regenerated.
2234 * features/nios2.c: Regenerated.
2236 2014-03-25 Pedro Alves <palves@redhat.com>
2238 * cli/cli-script.c (script_from_file): Force the interpreter to
2241 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2243 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2244 small stack allocation.
2246 2014-03-24 Tristan Gingold <gingold@adacore.com>
2248 * darwin-nat.c (exc_server): Remove unused prototype.
2249 (darwin_dump_message): Correctly display data on x86_64.
2250 (darwin_encode_reply): Fix style.
2251 Add comments and fix indentation.
2253 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2255 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2257 2014-03-22 Doug Evans <xdje42@gmail.com>
2259 * infcmd.c: Whitespace fixes.
2260 (interrupt_command): Merge two function comments into one.
2262 2014-03-22 Doug Evans <xdje42@gmail.com>
2264 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2267 2014-03-22 Yao Qi <yao@codesourcery.com>
2269 * remote.c (target_read_live_memory): Remove.
2270 (memory_xfer_live_readonly_partial): Rename it to
2271 remote_xfer_live_readonly_partial. Remove argument 'object'.
2272 All callers updated. Call remote_read_bytes_1
2273 instead of target_read_live_memory.
2274 * tracepoint.c (set_traceframe_number): Remove.
2275 (make_cleanup_restore_traceframe_number): Likewise .
2276 * tracepoint.h (set_traceframe_number): Remove declaration.
2277 (make_cleanup_restore_traceframe_number): Likewise.
2279 2014-03-22 Yao Qi <yao@codesourcery.com>
2281 * remote.c (remote_read_bytes): Move code on reading from the
2283 (remote_read_bytes_1): ... here. New function.
2285 2014-03-22 Yao Qi <yao@codesourcery.com>
2287 * ctf.c (ctf_xfer_partial): Check the return value of
2288 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2289 return TARGET_XFER_UNAVAILABLE.
2290 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2291 * target.c (target_read_live_memory): Move it to remote.c.
2292 (memory_xfer_live_readonly_partial): Likewise.
2293 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2294 * remote.c (target_read_live_memory): Moved from target.c.
2295 (memory_xfer_live_readonly_partial): Likewise.
2296 (remote_read_bytes): Factored out from
2297 memory_xfer_partial_1.
2299 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2301 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2304 2014-03-21 Pedro Alves <palves@redhat.com>
2306 * infrun.c (normal_stop): Extend comment.
2308 2014-03-21 Hui Zhu <hui@codesourcery.com>
2309 Pedro Alves <palves@redhat.com>
2311 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2313 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2314 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2315 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2317 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2319 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2320 `z' formatted output modifier.
2322 2014-03-20 Tom Tromey <tromey@redhat.com>
2323 Sergio Durigan Junior <sergiodj@redhat.com>
2325 * probe.c (parse_probes): Turn assert into an ordinary error.
2326 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2327 exceptions when parsing probes. Rearrange the code for clarity.
2329 2014-03-20 Tom Tromey <tromey@redhat.com>
2332 * top.c (execute_command): Only dispatch events if the command
2335 2014-03-20 Tom Tromey <tromey@redhat.com>
2338 * infcall.c: Include event-top.h.
2339 (run_inferior_call): Call async_disable_stdin if needed.
2341 2014-03-20 Pedro Alves <palves@redhat.com>
2343 * infrun.c (prepare_to_proceed): Delete.
2344 (thread_still_needs_step_over): New function.
2345 (find_thread_needs_step_over): New function.
2346 (proceed): If the current thread needs a step-over, set its
2347 steping_over_breakpoint flag. Adjust to use
2348 find_thread_needs_step_over instead of prepare_to_proceed.
2349 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2350 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2352 (switch_back_to_stepped_thread): Step over breakpoints of all
2353 threads not the stepping thread, before switching back to the
2356 2014-03-20 Pedro Alves <palves@redhat.com>
2358 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2360 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2361 * infrun.c (saved_singlestep_ptid)
2362 (stepping_past_singlestep_breakpoint): Delete.
2363 (resume): Remove stepping_past_singlestep_breakpoint handling.
2364 (proceed): Store the prev_pc of the stepping thread too.
2365 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2367 (enum infwait_states): Delete infwait_thread_hop_state.
2368 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2370 (handle_inferior_event): Adjust.
2371 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2372 handling and the thread-hop code. Before removing single-step
2373 breakpoints, check whether the thread hit a single-step breakpoint
2374 of another thread. If it did, the trap is not a random signal.
2375 (switch_back_to_stepped_thread): If the event thread hit a
2376 single-step breakpoint, unblock it before switching to the
2377 stepping thread. Handle the case of the stepped thread having
2379 (keep_going): Handle the case of the current thread moving past a
2380 single-step breakpoint.
2382 2014-03-20 Pedro Alves <palves@redhat.com>
2385 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2386 are being stepped over.
2387 (breakpoint_address_match): Make extern.
2388 * breakpoint.h (breakpoint_address_match): New declaration.
2389 * inferior.h (stepping_past_instruction_at): New declaration.
2390 * infrun.c (struct step_over_info): New type.
2391 (step_over_info): New global.
2392 (set_step_over_info, clear_step_over_info)
2393 (stepping_past_instruction_at): New functions.
2394 (handle_inferior_event): Clear the step-over info when
2395 trap_expected is cleared.
2396 (resume): Remove now stale comment.
2397 (clear_proceed_status): Clear step-over info.
2398 (proceed): Adjust step-over handling to set or clear the step-over
2399 info instead of removing all breakpoints.
2400 (handle_signal_stop): When setting up a thread-hop, don't remove
2402 (stop_stepping): Clear step-over info.
2403 (keep_going): Adjust step-over handling to set or clear step-over
2404 info and then always inserting breakpoints, instead of removing
2405 all breakpoints when stepping over one.
2407 2014-03-20 Pedro Alves <palves@redhat.com>
2409 * infrun.c (previous_inferior_ptid): Adjust comment.
2410 (deferred_step_ptid): Delete.
2411 (infrun_thread_ptid_changed, prepare_to_proceed)
2412 (init_wait_for_inferior): Adjust.
2413 (handle_signal_stop): Delete deferred_step_ptid handling.
2415 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2418 * defs.h (sync_quit_force_run): New declaration.
2419 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2420 * event-top.c (async_sigterm_handler): New declaration.
2421 (async_sigterm_token): New variable.
2422 (async_init_signals): Create also async_sigterm_token.
2423 (async_sigterm_handler): New function.
2424 (sync_quit_force_run): New variable.
2425 (handle_sigterm): Replace quit_force call by other calls.
2426 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2428 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2430 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2431 offset into SPE pseudo registers.
2433 2014-03-18 Pedro Alves <palves@redhat.com>
2436 * inferior.h (print_stop_event): Declare.
2437 * infrun.c (print_stop_event): New, factored out from ...
2438 (normal_stop): ... this.
2439 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2440 of bpstat_print/print_stack_frame.
2442 2014-03-17 Tom Tromey <tromey@redhat.com>
2444 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2446 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2448 * ada-lang.c (decode_constrained_packed_array): Perform a
2449 minimal coercion for reference with coerce_ref instead of
2452 2014-03-17 Tristan Gingold <gingold@adacore.com>
2454 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2455 (darwin_solib_create_inferior_hook): Emit a warning if version
2458 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2460 * python/py-value.c (get_field_flag): Cast flag_name argument to
2461 PyObject_GetAttrString to support Python 2.4.
2463 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2465 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2466 (Global Maintainers): Remove Jan Kratochvil.
2468 2014-03-14 Pedro Alves <palves@redhat.com>
2470 * inferior.h (terminal_ours_for_output): Rename to ...
2471 (child_terminal_ours_for_output): ... this.
2472 (terminal_save_ours): Rename to ...
2473 (child_terminal_save_ours): ... this.
2474 (terminal_ours): Rename to ...
2475 (child_terminal_ours): ... this.
2476 (terminal_inferior): Rename to ...
2477 (child_terminal_inferior): ... this.
2478 (terminal_init_inferior): Rename to ...
2479 (child_terminal_init_inferior): ... this.
2480 (terminal_init_inferior_with_pgrp): Rename to ...
2481 (child_terminal_init_inferior_with_pgrp): ... this.
2482 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2483 (child_terminal_init_with_pgrp): ... this.
2484 (terminal_save_ours): Rename to ...
2485 (child_terminal_save_ours): ... this.
2486 (terminal_init_inferior): Rename to ...
2487 (child_terminal_init): ... this. Adjust.
2488 (terminal_inferior): Rename to ...
2489 (child_terminal_inferior): ... this.
2490 (terminal_ours_for_output): Rename to ...
2491 (child_terminal_ours_for_output): ... this. Adjust.
2492 (terminal_ours): Rename to ...
2493 (child_terminal_ours): ... this.
2494 (terminal_ours_1): Rename to ...
2495 (child_terminal_ours_1): ... this. Adjust.
2496 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2497 * windows-nat.c (do_initial_windows_stuff): Adjust.
2498 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2499 (gnu_terminal_init): ... this. Adjust.
2500 (gnu_target): Adjust.
2501 * inf-child.c (inf_child_target): Adjust.
2503 2014-03-13 Doug Evans <xdje42@gmail.com>
2506 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2509 2014-03-13 Doug Evans <xdje42@gmail.com>
2511 * value.c (record_latest_value): Call release_value_or_incref
2512 instead of release_value.
2514 2014-03-13 Pedro Alves <palves@redhat.com>
2516 * procfs.c (procfs_target): Don't override to_shortname,
2517 to_longname or to_doc.
2519 2014-03-13 Pedro Alves <palves@redhat.com>
2521 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2522 Unix in user visible strings.
2524 2014-03-12 Stan Shebs <stan@codesourcery.com>
2526 * gdbtypes.h: Annotate comments for Doxygen, add a page
2527 block comment with some general info.
2529 2014-03-12 Pedro Alves <palves@redhat.com>
2531 * infcmd.c (prepare_execution_command): New function, factored out
2532 from several execution commands.
2533 (run_command_1, continue_command, step_1, jump_command)
2534 (signal_command, until_command, advance_command, finish_command)
2535 (attach_command): Use prepare_execution_command.
2537 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2539 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2542 (struct arm_linux_thread_points): Removed.
2543 (struct arm_linux_process_info): New.
2544 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2545 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2546 (arm_linux_find_breakpoints_by_tid): Removed.
2547 (struct arch_lwp_info): New.
2548 (arm_linux_find_process_pid): New functions.
2549 (arm_linux_add_process): New functions.
2550 (arm_linux_process_info_get): New functions.
2551 (arm_linux_forget_process): New function.
2552 (arm_linux_get_debug_reg_state): New function.
2553 (struct update_registers_data): New.
2554 (update_registers_callback): New function.
2555 (arm_linux_insert_hw_breakpoint1): Updated.
2556 (arm_linux_remove_hw_breakpoint1): Updated.
2557 (arm_linux_insert_hw_breakpoint): Updated.
2558 (arm_linux_remove_hw_breakpoint): Updated.
2559 (arm_linux_insert_watchpoint): Updated.
2560 (arm_linux_remove_watchpoint): Updated.
2561 (arm_linux_new_thread): Updated.
2562 (arm_linux_prepare_to_resume): New function.
2563 (arm_linux_new_fork): New function.
2564 (_initialize_arm_linux_nat): Updated.
2566 2014-03-12 Pedro Alves <palves@redhat.com>
2568 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2570 2014-03-12 Tom Tromey <tromey@redhat.com>
2572 * inf-child.c (return_zero): New function.
2573 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2574 * aix-thread.c (aix_thread_inferior_created): New function.
2575 (aix_thread_attach): Remove.
2576 (init_aix_thread_ops): Don't set to_attach.
2577 (_initialize_aix_thread): Register inferior_created observer.
2578 * corelow.c (init_core_ops): Don't set to_attach or
2580 * exec.c (init_exec_ops): Don't set to_attach or
2582 * infcmd.c (run_command_1): Use find_run_target. Make direct
2584 (attach_command): Use find_attach_target. Make direct target
2586 * record-btrace.c (init_record_btrace_ops): Don't set
2588 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2590 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2591 set to_create_inferior.
2592 * target.c (complete_target_initialization): Add assertion.
2593 (target_create_inferior): Remove.
2594 (find_default_attach, find_default_create_inferior): Remove.
2595 (find_attach_target, find_run_target): New functions.
2596 (find_default_is_async_p, find_default_can_async_p)
2597 (target_supports_non_stop, target_attach): Remove.
2598 (init_dummy_target): Don't set to_create_inferior or
2599 to_supports_non_stop.
2600 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2601 TARGET_DEFAULT_FUNC.
2602 <to_create_inferior>: Add comment.
2603 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2604 TARGET_DEFAULT_RETURN.
2605 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2606 (find_attach_target, find_run_target): Declare.
2607 (target_create_inferior): Remove.
2608 (target_has_execution_1): Update comment.
2609 (target_supports_non_stop): Remove.
2610 * target-delegates.c: Rebuild.
2612 2014-03-12 Pedro Alves <palves@redhat.com>
2614 * inf-child.h: Update comment to not mention Unix.
2616 2014-03-12 Pedro Alves <palves@redhat.com>
2618 * inf-child.c: Update top comment to not mention Unix. Add
2619 generic comment describing how this target is meant to be used.
2620 (inf_child_post_attach, inf_child_post_startup_inferior)
2621 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2624 2014-03-12 Pedro Alves <palves@redhat.com>
2626 * nto-procfs.c: Include inf-child.h.
2627 (procfs_ops): Delete global.
2628 (procfs_can_run): Delete method.
2629 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2630 target pointer instead of referencing procfs_ops.
2631 (procfs_prepare_to_store): Delete.
2632 (init_procfs_ops): Delete function.
2633 (procfs_target): New function, based on init_procfs_ops, but
2634 inherit inf_child_target.
2635 (_initialize_procfs): Use procfs_target.
2637 2014-03-12 Pedro Alves <palves@redhat.com>
2639 * windows-nat.c: Include inf-child.h.
2640 (windows_ops): Delete global.
2641 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2643 (init_windows_ops): Delete function.
2644 (windows_target): New function, based on init_windows_ops, but
2645 inherit inf_child_target.
2646 (_initialize_windows_nat): Use windows_target. Install x86
2647 specific target methods here.
2649 2014-03-10 Doug Evans <xdje42@gmail.com>
2651 * guile/guile.c (call_initialize_gdb_module): New function.
2652 (initialize_guile): Replace call to scm_init_guile with call to
2655 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2657 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2658 in call to TYPE_CODE macro.
2660 2014-03-10 Jerome Guitton <guitton@adacore.com>
2662 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2663 Resolve tagged types to full view.
2665 2014-03-10 Hui Zhu <hui@codesourcery.com>
2667 * target.h (target_insert_breakpoint): Remove "hardware" from its
2670 2014-03-07 Doug Evans <dje@google.com>
2672 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2674 2014-03-07 Doug Evans <dje@google.com>
2676 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2677 Remove unused local comp_dir_attr. Assert exactly one of
2678 stub_comp_unit_die, stub_comp_dir is non-NULL.
2680 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2682 * target.h (complete_target_initialization, add_target):
2685 2014-03-07 Pedro Alves <palves@redhat.com>
2687 * go32-nat.c: Include inf-child.h.
2688 (go32_ops): Delete global.
2689 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2691 (go32_create_inferior): Push the passed in target pointer instead
2692 of referencing go32_ops.
2693 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2694 (go32_target): New function, based on init_go32_ops, but inherit
2696 (_initialize_go32_nat): Use go32_target. Move parts of
2699 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2701 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2702 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2703 SYMBOL_VALUE_ADDRESS.
2704 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2706 2014-03-06 Yao Qi <yao@codesourcery.com>
2708 * breakpoint.c (get_tracepoint_by_number): Remove argument
2709 optional_p. All callers updated. Adjust comments. Update
2711 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2713 2014-03-06 Yao Qi <yao@codesourcery.com>
2715 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2716 early if get_number returns zero. Use 'p' instead of 'args'.
2718 2014-03-06 Yao Qi <yao@codesourcery.com>
2720 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2723 2014-03-06 Yao Qi <yao@codesourcery.com>
2725 PR breakpoints/16508
2726 * tracepoint.c (check_trace_running): New function.
2727 (trace_find_command): Move code to check_trace_running and
2728 call check_trace_running.
2729 (trace_find_pc_command): Likewise.
2730 (trace_find_tracepoint_command): Likewise.
2731 (trace_find_line_command): Likewise.
2732 (trace_find_range_command): Likewise.
2733 * tracepoint.h (check_trace_running): Likewise.
2734 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2736 2014-03-06 Yao Qi <yao@codesourcery.com>
2738 * target.h (struct target_ops) <to_traceframe_info>: Use
2739 TARGET_DEFAULT_NORETURN (tcomplain ()).
2740 * target-delegates.c: Regenerated.
2742 2014-03-05 Pedro Alves <palves@redhat.com>
2745 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2746 void. Update comment.
2747 (dcache_xfer_memory): Delete.
2748 (dcache_read_memory_partial): New, based on the read bits of
2750 (dcache_update): Add status parameter. Use ULONGEST for len, and
2751 adjust. Discard cache lines if the reason for the update was
2753 * dcache.h (dcache_xfer_memory): Delete declaration.
2754 (dcache_read_memory_partial): New declaration.
2755 (dcache_update): Update prototype.
2756 * target.c (raw_memory_xfer_partial): Update the dcache here.
2757 (memory_xfer_partial_1): Don't handle dcache writes here.
2759 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2761 * remote-sim.c (gdbsim_load): Add const to prog.
2763 2014-03-03 Tom Tromey <tromey@redhat.com>
2765 * elfread.c (probe_key): Change to bfd_data.
2766 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2767 now per-BFD, not per-objfile.
2768 * stap-probe.c (stap_probe_destroy): Update comment.
2769 (handle_stap_probe): Allocate on the per-BFD obstack.
2771 2014-03-03 Tom Tromey <tromey@redhat.com>
2773 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2774 * breakpoint.c (create_longjmp_master_breakpoint): Use
2776 (add_location_to_breakpoint, bkpt_probe_insert_location)
2777 (bkpt_probe_remove_location): Update.
2778 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2779 * elfread.c (elf_symfile_relocate_probe): Remove.
2780 (elf_probe_fns): Update.
2781 (insert_exception_resume_breakpoint): Change type of "probe"
2782 parameter to bound_probe.
2783 (check_exception_resume): Update.
2784 * objfiles.c (objfile_relocate1): Don't relocate probes.
2785 * probe.c (bound_probe_s): New typedef.
2786 (parse_probes): Use get_probe_address. Set sal's objfile.
2787 (find_probe_by_pc): Return a bound_probe.
2788 (collect_probes): Return a VEC(bound_probe_s).
2789 (compare_probes): Update.
2790 (gen_ui_out_table_header_info): Change type of "probes"
2792 (info_probes_for_ops): Update.
2793 (get_probe_address): New function.
2794 (probe_safe_evaluate_at_pc): Update.
2795 * probe.h (struct probe_ops) <get_probe_address>: New field.
2796 <set_semaphore, clear_semaphore>: Add objfile parameter.
2797 (struct probe) <objfile>: Remove field.
2799 <address>: Update comment.
2800 (struct bound_probe): New.
2801 (find_probe_by_pc): Return a bound_probe.
2802 (get_probe_address): Declare.
2803 * solib-svr4.c (struct probe_and_action) <address>: New field.
2804 (hash_probe_and_action, equal_probe_and_action): Update.
2805 (register_solib_event_probe): Add address parameter.
2806 (solib_event_probe_at): Update.
2807 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2809 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2810 (stap_get_probe_address): New function.
2811 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2812 (compile_probe_arg): Update.
2813 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2815 (handle_stap_probe): Don't relocate the probe.
2816 (stap_relocate): Remove.
2817 (stap_gen_info_probes_table_values): Update.
2818 (stap_probe_ops): Remove stap_relocate.
2819 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2820 (debug_sym_probe_fns): Update.
2821 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2822 * symtab.c (init_sal): Use memset.
2823 * symtab.h (struct symtab_and_line) <objfile>: New field.
2824 * tracepoint.c (start_tracing, stop_tracing): Update.
2826 2014-03-03 Tom Tromey <tromey@redhat.com>
2828 * probe.h (parse_probes, find_probe_by_pc)
2829 (find_probes_in_objfile): Fix comments.
2831 2014-03-02 Doug Evans <xdje42@gmail.com>
2833 * infrun.c (handle_signal_stop): Replace test for
2834 TARGET_WAITKIND_STOPPED with an assert.
2836 2014-03-02 Doug Evans <xdje42@gmail.com>
2838 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2840 2014-03-02 Doug Evans <xdje42@gmail.com>
2842 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2844 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2846 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2848 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2850 * i386obsd-nat.c: Include "obsd-nat.h".
2851 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2853 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2855 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2857 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2859 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2861 * mips64obsd-nat.c: Include "obsd-nath".
2862 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2864 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2866 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2868 * amd64obsd-nat.c: Include "obsd-nat,h.
2869 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2871 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2873 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2875 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2876 (find_overload_match): Update call to find_oload_champ.
2877 (find_oload_champ_namespace_loop): Likewise
2879 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2881 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2883 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2884 * config/sparc/obsd64.mh: New file.
2885 * sparc64obsd-nat.c: New file.
2887 * obsd-nat.h: New file.
2888 * obsd-nat.c: New file.
2889 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2890 (ALLDEPFILES): Add obsd-nat.c.
2892 2014-02-28 Tom Tromey <tromey@redhat.com>
2894 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2895 * cli-out.h (cli_ui_out_impl): Now const.
2896 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2897 * ui-out.c (struct ui_out) <impl>: Now const.
2898 (default_ui_out_impl): Now const.
2899 (ui_out_new): Make 'impl' parameter const.
2900 * ui-out.h (ui_out_new): Update.
2902 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2904 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2906 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2908 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2910 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2912 Additional PR 8882 fix.
2913 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2915 2014-02-27 Pedro Alves <palves@redhat.com>
2917 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2920 2014-02-27 Pedro Alves <palves@redhat.com>
2923 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2924 * nat/linux-waitpid.c: Include string.h.
2925 (status_to_str): Moved here and made extern.
2926 * nat/linux-waitpid.h (status_to_str): New declaration.
2928 2014-02-27 Hui Zhu <hui@codesourcery.com>
2931 * infrun.c (ptid_match): Move ...
2932 * common/ptid.c (ptid_match): ... here.
2933 * inferior.h (ptid_match): Move ...
2934 * common/ptid.h (ptid_match): ... here.
2936 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2938 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2939 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2942 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2944 * obsd-tdep.c (obsd_auxv_parse): New function.
2945 (obsd_init_abi): Set auxv_parse.
2947 * gdbarch.sh (auxv_parse): New.
2948 * gdbarch.h: Regenerated.
2949 * gdbarch.c: Regenerated.
2950 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2952 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2954 * guile/scm-value.c (gdbscm_history_append_x): New function.
2955 (value_functions): Add it.
2957 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2959 * dwarf2read.c (attr_value_as_address): New function.
2960 (dwarf2_find_base_address, read_call_site_scope): Use
2961 attr_value_as_address in place of DW_ADDR.
2962 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2963 the low and high addresses. Slight rework of the handling
2964 of the high pc being a constant form, and limit it to
2965 DWARF verson 4 or higher.
2966 (dwarf2_record_block_ranges): Likewise.
2967 (read_partial_die): Likewise.
2968 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2970 2014-02-26 Tom Tromey <tromey@redhat.com>
2972 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2974 2014-02-26 Tom Tromey <tromey@redhat.com>
2976 * elfread.c (elf_read_minimal_symbols): Return early if
2977 minimal symbols have already been read. Add "ei" parameter.
2978 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2979 * minsyms.c (prim_record_minimal_symbol_full): Update.
2980 * objfiles.h (struct objstats) <n_minsyms>: Move...
2981 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2982 * symmisc.c (print_objfile_statistics): Update.
2984 2014-02-26 Tom Tromey <tromey@redhat.com>
2986 * elfread.c (elf_read_minimal_symbols): New function, from
2988 (elf_symfile_read): Call it.
2990 2014-02-26 Tom Tromey <tromey@redhat.com>
2992 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2993 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2994 (lookup_minimal_symbol_solib_trampoline)
2995 (lookup_minimal_symbol_by_pc_section_1)
2996 (lookup_minimal_symbol_and_objfile): Update.
2997 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2998 Don't allocate a minimal symbol if minsyms have already been read.
2999 (build_minimal_symbol_hash_tables): Update.
3000 (install_minimal_symbols): Do nothing if minsyms already read.
3001 Use the per-BFD obstack.
3002 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3003 * objfiles.c (allocate_objfile): Call
3004 terminate_minimal_symbol_table later.
3005 (have_minimal_symbols): Update.
3006 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3007 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3008 Move from struct objfile.
3009 <minsyms_read>: New field.
3010 (struct objfile) <msymbols, minimal_symbol_count,
3011 msymbol_hash, msymbol_demangled_hash>: Move.
3012 (ALL_OBJFILE_MSYMBOLS): Update.
3013 * symfile.c (read_symbols): Set minsyms_read.
3014 (reread_symbols): Update.
3015 * symmisc.c (dump_objfile, dump_msymbols): Update.
3017 2014-02-26 Tom Tromey <tromey@redhat.com>
3019 * minsyms.c (msymbols_sort): Remove.
3020 * minsyms.h (msymbols_sort): Remove.
3021 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3022 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3023 * elfread.c (elf_symtab_read): Don't add section offsets.
3024 * xcoffread.c (record_minimal_symbol): Don't add section offset
3025 to minimal symbol address.
3026 * somread.c (text_offset, data_offset): Remove.
3027 (som_symtab_read): Don't add section offsets to minimal symbol
3029 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3030 Don't add section offsets to minimal symbols.
3031 * coffread.c (coff_symtab_read): Don't add section offsets
3032 to minimal symbol addresses.
3033 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3034 to minimal symbol addresses.
3035 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3036 section offset to minimal symbol addresses.
3037 * mdebugread.c (parse_partial_symbols): Don't add section
3038 offset to minimal symbol addresses.
3039 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3040 offset to minimal symbol addresses.
3042 2014-02-26 Tom Tromey <tromey@redhat.com>
3044 * ada-lang.c (ada_main_name): Update.
3045 (ada_add_standard_exceptions): Update.
3046 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3047 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3048 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3049 * auxv.c (ld_so_xfer_auxv): Update.
3050 * avr-tdep.c (avr_scan_prologue): Update.
3051 * ax-gdb.c (gen_var_ref): Update.
3052 * blockframe.c (get_pc_function_start)
3053 (find_pc_partial_function_gnu_ifunc): Update.
3054 * breakpoint.c (create_overlay_event_breakpoint)
3055 (create_longjmp_master_breakpoint)
3056 (create_std_terminate_master_breakpoint)
3057 (create_exception_master_breakpoint): Update.
3058 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3059 * c-valprint.c (c_val_print): Update.
3060 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3061 * common/agent.c (agent_look_up_symbols): Update.
3062 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3063 * dwarf2loc.c (call_site_to_target_addr): Update.
3064 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3065 * elfread.c (elf_gnu_ifunc_record_cache)
3066 (elf_gnu_ifunc_resolve_by_got): Update.
3067 * findvar.c (default_read_var_value): Update.
3068 * frame.c (inside_main_func): Update.
3069 * frv-tdep.c (frv_frame_this_id): Update.
3070 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3071 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3073 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3074 (hppa_hpux_find_dummy_bpaddr): Update.
3075 * hppa-tdep.c (hppa_symbol_address): Update.
3076 * infcmd.c (until_next_command): Update.
3077 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3079 * linespec.c (minsym_found, add_minsym): Update.
3080 * linux-nat.c (get_signo): Update.
3081 * linux-thread-db.c (inferior_has_bug): Update.
3082 * m32c-tdep.c (m32c_return_value)
3083 (m32c_m16c_address_to_pointer): Update.
3084 * m32r-tdep.c (m32r_frame_this_id): Update.
3085 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3086 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3087 * maint.c (maintenance_translate_address): Update.
3088 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3089 (frob_address): New function.
3090 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3091 frob_address. Rename parameter to "pc_in".
3092 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3094 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3096 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3097 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3098 * objc-lang.c (find_objc_msgsend): Update.
3099 * objfiles.c (objfile_relocate1): Update.
3100 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3101 * p-valprint.c (pascal_val_print): Update.
3102 * parse.c (write_exp_msymbol): Update.
3103 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3104 (ppc_elfv2_skip_entrypoint): Update.
3105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3106 * printcmd.c (build_address_symbolic, msym_info)
3107 (address_info): Update.
3108 * proc-service.c (ps_pglobal_lookup): Update.
3109 * psymtab.c (find_pc_sect_psymtab_closer)
3110 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3111 Change msymbol parameter to bound_minimal_symbol.
3112 * ravenscar-thread.c (get_running_thread_id): Update.
3113 * remote.c (remote_check_symbols): Update.
3114 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3116 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3117 * solib-dsbt.c (lm_base): Update.
3118 * solib-frv.c (lm_base, main_got): Update.
3119 * solib-irix.c (locate_base): Update.
3120 * solib-som.c (som_solib_create_inferior_hook)
3121 (link_map_start): Update.
3122 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3123 * solib-svr4.c (elf_locate_base, enable_break): Update.
3124 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3125 (flush_ea_cache): Update.
3126 * stabsread.c (define_symbol, scan_file_globals): Update.
3127 * stack.c (find_frame_funname): Update.
3128 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3129 (debug_qf_find_pc_sect_symtab): Update.
3130 * symfile.c (simple_read_overlay_table)
3131 (simple_overlay_update): Update.
3132 * symfile.h (struct quick_symbol_functions)
3133 <find_pc_sect_symtab>: Change type of msymbol to
3134 bound_minimal_symbol.
3135 * symmisc.c (dump_msymbols): Update.
3136 * symtab.c (find_pc_sect_symtab_via_partial)
3137 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3138 (search_symbols, print_msymbol_info): Update.
3139 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3140 (MSYMBOL_VALUE_ADDRESS): Redefine.
3141 (BMSYMBOL_VALUE_ADDRESS): New macro.
3142 * tracepoint.c (scope_info): Update.
3143 * tui/tui-disasm.c (tui_find_disassembly_address)
3144 (tui_get_begin_asm_address): Update.
3145 * valops.c (find_function_in_inferior): Update.
3146 * value.c (value_static_field, value_fn_field): Update.
3148 2014-02-26 Tom Tromey <tromey@redhat.com>
3150 * ada-lang.c (ada_update_initial_language): Update.
3151 (ada_main_name, ada_has_this_exception_support): Update.
3152 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3153 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3154 * arm-tdep.c (arm_skip_stub): Update.
3155 * auxv.c (ld_so_xfer_auxv): Update.
3156 * avr-tdep.c (avr_scan_prologue): Update.
3157 * ax-gdb.c (gen_var_ref): Update.
3158 * breakpoint.c (struct breakpoint_objfile_data)
3159 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3160 type to bound_minimal_symbol.
3161 (create_overlay_event_breakpoint)
3162 (create_longjmp_master_breakpoint)
3163 (create_std_terminate_master_breakpoint)
3164 (create_exception_master_breakpoint): Update.
3165 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3166 * c-exp.y (classify_name): Update.
3167 * coffread.c (coff_symfile_read): Update.
3168 * common/agent.c (agent_look_up_symbols): Update.
3169 * d-lang.c (d_main_name): Update.
3170 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3171 * dec-thread.c (enable_dec_thread): Update.
3172 * dwarf2loc.c (call_site_to_target_addr): Update.
3173 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3174 * eval.c (evaluate_subexp_standard): Update.
3175 * findvar.c (struct minsym_lookup_data) <result>: Change type
3176 to bound_minimal_symbol.
3178 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3179 * frame.c (inside_main_func): Update.
3180 * frv-tdep.c (frv_frame_this_id): Update.
3181 * gcore.c (call_target_sbrk): Update.
3182 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3183 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3185 * go-lang.c (go_main_name): Update.
3186 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3187 (hppa_hpux_find_import_stub_for_addr): Update.
3188 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3189 Update. Change return type.
3190 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3192 * jit.c (jit_breakpoint_re_set_internal): Update.
3193 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3195 * linux-nat.c (get_signo): Update.
3196 * linux-thread-db.c (inferior_has_bug): Update
3197 * m32c-tdep.c (m32c_return_value)
3198 (m32c_m16c_address_to_pointer): Update.
3199 * m32r-tdep.c (m32r_frame_this_id): Update.
3200 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3201 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3202 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3203 lookup_minimal_symbol. Change return type.
3204 (lookup_minimal_symbol): Remove.
3205 (lookup_bound_minimal_symbol): Update.
3206 (lookup_minimal_symbol_text): Change return type.
3207 (lookup_minimal_symbol_solib_trampoline): Change return type.
3208 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3209 (lookup_minimal_symbol_solib_trampoline): Change return type.
3210 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3211 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3212 (value_nsstring, find_imps): Update.
3213 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3214 * p-lang.c (pascal_main_name): Update.
3215 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3216 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3217 * proc-service.c (ps_pglobal_lookup): Update.
3218 * ravenscar-thread.c (get_running_thread_msymbol): Change
3220 (has_ravenscar_runtime, get_running_thread_id): Update.
3221 * remote.c (remote_check_symbols): Update.
3222 * sol-thread.c (ps_pglobal_lookup): Update.
3223 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3224 * solib-dsbt.c (lm_base): Update.
3225 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3227 * solib-irix.c (locate_base): Update.
3228 * solib-som.c (som_solib_create_inferior_hook)
3229 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3231 * solib-spu.c (spu_enable_break): Update.
3232 * solib-svr4.c (elf_locate_base, enable_break): Update.
3233 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3234 (flush_ea_cache): Update.
3235 * stabsread.c (define_symbol): Update.
3236 * symfile.c (simple_read_overlay_table): Update.
3237 * symtab.c (find_pc_sect_line): Update.
3238 * tracepoint.c (scope_info): Update.
3239 * tui-disasm.c (tui_get_begin_asm_address): Update.
3240 * value.c (value_static_field): Update.
3242 2014-02-26 Tom Tromey <tromey@redhat.com>
3244 * minsyms.c (prim_record_minimal_symbol_full): Use
3245 SET_MSYMBOL_VALUE_ADDRESS.
3246 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3247 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3248 SET_MSYMBOL_VALUE_ADDRESS.
3249 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3250 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3252 2014-02-26 Tom Tromey <tromey@redhat.com>
3254 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3255 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3256 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3257 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3258 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3259 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3260 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3261 * ada-lang.c (ada_main_name): Update.
3262 (ada_lookup_simple_minsym): Update.
3263 (ada_make_symbol_completion_list): Update.
3264 (ada_add_standard_exceptions): Update.
3265 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3266 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3267 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3268 * arm-tdep.c (skip_prologue_function): Update.
3269 (arm_skip_stack_protector, arm_skip_stub): Update.
3270 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3271 (arm_wince_skip_main_prologue): Update.
3272 * auxv.c (ld_so_xfer_auxv): Update.
3273 * avr-tdep.c (avr_scan_prologue): Update.
3274 * ax-gdb.c (gen_var_ref): Update.
3275 * block.c (call_site_for_pc): Update.
3276 * blockframe.c (get_pc_function_start): Update.
3277 (find_pc_partial_function_gnu_ifunc): Update.
3278 * breakpoint.c (create_overlay_event_breakpoint): Update.
3279 (create_longjmp_master_breakpoint): Update.
3280 (create_std_terminate_master_breakpoint): Update.
3281 (create_exception_master_breakpoint): Update.
3282 (resolve_sal_pc): Update.
3283 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3284 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3286 * c-valprint.c (c_val_print): Update.
3287 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3288 * coffread.c (coff_symfile_read): Update.
3289 * common/agent.c (agent_look_up_symbols): Update.
3290 * dbxread.c (find_stab_function_addr): Update.
3291 (end_psymtab): Update.
3292 * dwarf2loc.c (call_site_to_target_addr): Update.
3293 (func_verify_no_selftailcall): Update.
3294 (tailcall_dump): Update.
3295 (call_site_find_chain_1): Update.
3296 (dwarf_expr_reg_to_entry_parameter): Update.
3297 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3298 (elf_gnu_ifunc_resolve_by_got): Update.
3299 * f-valprint.c (info_common_command): Update.
3300 * findvar.c (read_var_value): Update.
3301 * frame.c (get_prev_frame_1): Update.
3302 (inside_main_func): Update.
3303 * frv-tdep.c (frv_skip_main_prologue): Update.
3304 (frv_frame_this_id): Update.
3305 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3306 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3307 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3308 (gnuv3_skip_trampoline): Update.
3309 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3310 (hppa64_hpux_in_solib_call_trampoline): Update.
3311 (hppa_hpux_skip_trampoline_code): Update.
3312 (hppa64_hpux_search_dummy_call_sequence): Update.
3313 (hppa_hpux_find_import_stub_for_addr): Update.
3314 (hppa_hpux_find_dummy_bpaddr): Update.
3315 * hppa-tdep.c (hppa_symbol_address)
3316 (hppa_lookup_stub_minimal_symbol): Update.
3317 * i386-tdep.c (i386_skip_main_prologue): Update.
3318 (i386_pe_skip_trampoline_code): Update.
3319 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3320 * infcall.c (get_function_name): Update.
3321 * infcmd.c (until_next_command): Update.
3322 * jit.c (jit_breakpoint_re_set_internal): Update.
3323 (jit_inferior_init): Update.
3324 * linespec.c (minsym_found): Update.
3325 (add_minsym): Update.
3326 * linux-fork.c (info_checkpoints_command): Update.
3327 * linux-nat.c (get_signo): Update.
3328 * linux-thread-db.c (inferior_has_bug): Update.
3329 * m32c-tdep.c (m32c_return_value): Update.
3330 (m32c_m16c_address_to_pointer): Update.
3331 (m32c_m16c_pointer_to_address): Update.
3332 * m32r-tdep.c (m32r_frame_this_id): Update.
3333 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3334 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3335 * maint.c (maintenance_translate_address): Update.
3336 * minsyms.c (add_minsym_to_hash_table): Update.
3337 (add_minsym_to_demangled_hash_table): Update.
3338 (msymbol_objfile): Update.
3339 (lookup_minimal_symbol): Update.
3340 (iterate_over_minimal_symbols): Update.
3341 (lookup_minimal_symbol_text): Update.
3342 (lookup_minimal_symbol_by_pc_name): Update.
3343 (lookup_minimal_symbol_solib_trampoline): Update.
3344 (lookup_minimal_symbol_by_pc_section_1): Update.
3345 (lookup_minimal_symbol_and_objfile): Update.
3346 (prim_record_minimal_symbol_full): Update.
3347 (compare_minimal_symbols): Update.
3348 (compact_minimal_symbols): Update.
3349 (build_minimal_symbol_hash_tables): Update.
3350 (install_minimal_symbols): Update.
3351 (terminate_minimal_symbol_table): Update.
3352 (find_solib_trampoline_target): Update.
3353 (minimal_symbol_upper_bound): Update.
3354 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3355 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3356 (mips_skip_pic_trampoline_code): Update.
3357 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3358 * objc-lang.c (selectors_info): Update.
3359 (classes_info): Update.
3360 (find_methods): Update.
3361 (find_imps): Update.
3362 (find_objc_msgsend): Update.
3363 * objfiles.c (objfile_relocate1): Update.
3364 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3365 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3366 * p-valprint.c (pascal_val_print): Update.
3367 * parse.c (write_exp_msymbol): Update.
3368 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3369 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3370 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3371 * printcmd.c (build_address_symbolic): Update.
3373 (address_info): Update.
3374 * proc-service.c (ps_pglobal_lookup): Update.
3375 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3376 (find_pc_sect_psymtab): Update.
3377 * python/py-framefilter.c (py_print_frame): Update.
3378 * ravenscar-thread.c (get_running_thread_id): Update.
3379 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3381 * remote.c (remote_check_symbols): Update.
3382 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3383 (rs6000_skip_trampoline_code): Update.
3384 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3385 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3386 * solib-dsbt.c (lm_base): Update.
3387 * solib-frv.c (lm_base): Update.
3389 * solib-irix.c (locate_base): Update.
3390 * solib-som.c (som_solib_create_inferior_hook): Update.
3391 (som_solib_desire_dynamic_linker_symbols): Update.
3392 (link_map_start): Update.
3393 * solib-spu.c (spu_enable_break): Update.
3394 (ocl_enable_break): Update.
3395 * solib-svr4.c (elf_locate_base): Update.
3396 (enable_break): Update.
3397 * spu-tdep.c (spu_get_overlay_table): Update.
3398 (spu_catch_start): Update.
3399 (flush_ea_cache): Update.
3400 * stabsread.c (define_symbol): Update.
3401 (scan_file_globals): Update.
3402 * stack.c (find_frame_funname): Update.
3403 (frame_info): Update.
3404 * symfile.c (simple_read_overlay_table): Update.
3405 (simple_overlay_update): Update.
3406 * symmisc.c (dump_msymbols): Update.
3407 * symtab.c (fixup_section): Update.
3408 (find_pc_sect_line): Update.
3409 (skip_prologue_sal): Update.
3410 (search_symbols): Update.
3411 (print_msymbol_info): Update.
3412 (rbreak_command): Update.
3413 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3414 (completion_list_objc_symbol): Update.
3415 (default_make_symbol_completion_list_break_on): Update.
3416 * tracepoint.c (scope_info): Update.
3417 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3418 (tui_get_begin_asm_address): Update.
3419 * valops.c (find_function_in_inferior): Update.
3420 * value.c (value_static_field): Update.
3421 (value_fn_field): Update.
3423 2014-02-26 Tom Tromey <tromey@redhat.com>
3425 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3426 bound minimal symbols. Move code that knows about minsym
3428 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3430 * minsyms.h (minimal_symbol_upper_bound): Declare.
3431 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3432 minimal_symbol_upper_bound.
3434 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3436 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3437 Use the type's name if its basic type does not have a tag.
3439 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3441 * dwarf2read.c (read_subrange_type): Add comment.
3443 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3445 * dwarf2read.c (update_enumeration_type_from_children): New
3446 function, mostly extracted from process_structure_scope.
3447 (read_enumeration_type): Call update_enumeration_type_from_children.
3448 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3449 and flag_flag_enum fields.
3451 2014-02-26 Pedro Alves <palves@redhat.com>
3453 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3454 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3455 to_xfer_partial method.
3457 2014-02-26 Pedro Alves <palves@redhat.com>
3459 * target.c (complete_target_initialization): Don't install
3460 default_xfer_partial as to_xfer_partial hook.
3462 (update_current_target): Don't INHERIT nor de_fault
3463 deprecated_xfer_memory. Delete de_fault macro.
3464 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3465 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3466 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3469 2014-02-26 Pedro Alves <palves@redhat.com>
3471 * go32-nat.c (my_write_child): New function.
3472 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3473 (go32_xfer_partial): New function.
3474 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3475 Instead install a to_xfer_partial hook.
3477 2014-02-26 Pedro Alves <palves@redhat.com>
3479 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3480 to_xfer_partial helper. Rewrite.
3481 (procfs_xfer_partial): New function.
3482 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3483 Install a to_xfer_partial hook.
3485 2014-02-26 Pedro Alves <palves@redhat.com>
3487 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3488 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3489 (m32r_xfer_partial): New function.
3490 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3491 Install a to_xfer_partial hook.
3493 2014-02-26 Pedro Alves <palves@redhat.com>
3495 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3497 (mips_xfer_partial): New function.
3498 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3499 hook. Install a to_xfer_partial hook.
3501 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3503 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3504 * gdbtypes.c (create_array_type_with_stride): New function,
3505 renaming create_array_type, but with an added parameter
3506 called "bit_stride".
3507 (create_array_type): Re-implement using
3508 create_array_type_with_stride.
3509 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3510 and DW_AT_bit_stride attributes.
3512 2014-02-26 Pedro Alves <palves@redhat.com>
3514 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3515 task-specific breakpoints.
3517 2014-02-25 Pedro Alves <palves@redhat.com>
3519 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3520 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3522 2014-02-25 Stan Shebs <stan@codesourcery.com>
3524 * defs.h: Annotate comments for Doxygen.
3526 2014-02-25 Tom Tromey <tromey@redhat.com>
3528 * target.h (target_ignore): Don't declare.
3529 * target.c (target_ignore): Remove.
3531 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3534 * auto-load.c (auto_load_objfile_script_1): Change filename to
3537 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3539 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3540 documentation. Adjust prototype to match the target_ops
3541 to_xfer_partial method. Adjust implementation accordingly.
3543 2014-02-25 Hui Zhu <hui@codesourcery.com>
3545 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3548 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3550 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3551 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3552 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3553 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3554 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3555 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3556 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3557 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3559 (rl78_register_type): Use a data pointer type for SP and
3560 new pseudo registers mentioned above. Use a 16 bit integer
3561 type for all other register pairs.
3562 (rl78_register_name, rl78_g10_register_name): Update for
3563 new pseudo registers.
3564 (rl78_pseudo_register_read): Likewise.
3565 (rl78_pseudo_register_write): Likewise.
3566 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3567 to the newly added pseudo registers.
3569 2014-02-24 Doug Evans <dje@google.com>
3571 * value.c (record_latest_value): Fix comment.
3572 * printcmd.c (print_command_1): Remove code to handle -1 return from
3573 record_latest_value.
3575 2014-02-24 Pedro Alves <palves@redhat.com>
3577 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3578 deprecated_xfer_memory hook.
3579 (procfs_xfer_partial): Call procfs_xfer_memory instead
3580 of the deprecated_xfer_memory target hook.
3581 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3584 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3586 * windows-nat.c (windows_xfer_shared_libraries): Return
3587 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3588 requested object is TARGET_OBJECT_LIBRARIES.
3590 2014-02-24 Yao Qi <yao@codesourcery.com>
3592 * target.h (enum target_xfer_status)
3593 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3594 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3596 * corefile.c (memory_error_message): User updated.
3597 * exec.c (section_table_read_available_memory): Likewise.
3598 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3599 * target.c (target_xfer_status_to_string): Likewise.
3600 (raw_memory_xfer_partial): Likewise.
3601 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3602 * valops.c (read_value_memory): Likewise.
3603 * exec.h: Update comments.
3605 2014-02-24 Yao Qi <yao@codesourcery.com>
3607 * target.c (target_xfer_status_to_string): Rename argument err
3609 * target.h (target_xfer_status_to_string): Update declaration.
3610 Replace target_xfer_error_to_string with
3611 target_xfer_status_to_string in comment.
3613 2014-02-24 Yao Qi <yao@codesourcery.com>
3615 * mips-linux-nat.c (super_close): Update its type.
3616 (mips_linux_close): Pass 'self' to super_close.
3618 2014-02-24 Yao Qi <yao@codesourcery.com>
3620 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3621 * corefile.c (read_memory): Adjusted.
3622 * target.c (target_write_with_progress): Adjusted.
3624 2014-02-23 Yao Qi <yao@codesourcery.com>
3628 2013-10-25 Yao Qi <yao@codesourcery.com>
3630 * remote.c (remote_traceframe_info): Return early if
3631 traceframe is not selected.
3633 2013-07-19 Yao Qi <yao@codesourcery.com>
3635 * target.c (update_current_target): Change the default action
3636 of 'to_traceframe_info' from tcomplain to return_zero.
3637 * target.h (struct target_ops) <to_traceframe_info>: Add more
3640 2014-02-23 Yao Qi <yao@codesourcery.com>
3642 * valops.c (read_value_memory): Rewrite it. Call
3643 target_xfer_partial in a loop.
3644 * exec.h (section_table_available_memory): Remove declaration.
3645 Move comments to ...
3646 * exec.c (section_table_available_memory): ... here. Make it
3649 2014-02-23 Yao Qi <yao@codesourcery.com>
3651 * exec.c (section_table_read_available_memory): New function.
3652 * exec.h (section_table_read_available_memory): Declare.
3653 * ctf.c (ctf_xfer_partial): Call
3654 section_table_read_available_memory.
3655 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3657 2014-02-23 Yao Qi <yao@codesourcery.com>
3659 * ctf.c (ctf_xfer_partial): Move code to ...
3660 * exec.c (exec_read_partial_read_only): ... it. New function.
3661 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3662 * tracefile.c: Include "exec.h".
3663 * exec.h (exec_read_partial_read_only): Declare.
3665 2014-02-23 Yao Qi <yao@codesourcery.com>
3667 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3668 (tfile_has_memory): Remove.
3669 (init_tfile_ops): Don't set fields to_has_all_memory and
3670 to_has_memory of tfile_ops.
3671 * tracefile.c (tracefile_has_all_memory): New function.
3672 (tracefile_has_memory): New function.
3673 (init_tracefile_ops): Initialize fields to_has_all_memory and
3674 to_has_memory of 'ops'.
3676 2014-02-23 Yao Qi <yao@codesourcery.com>
3678 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3679 (ctf_thread_alive, ctf_get_trace_status): Remove.
3680 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3682 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3683 (tfile_has_stack, tfile_has_registers): Remove.
3684 (tfile_thread_alive): Remove.
3685 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3687 * tracefile.c (tracefile_has_stack): New function.
3688 (tracefile_has_registers): New function.
3689 (tracefile_thread_alive): New function.
3690 (tracefile_get_trace_status): New function.
3691 (init_tracefile_ops): New function.
3692 * tracefile.h (init_tracefile_ops): Declare.
3694 2014-02-23 Yao Qi <yao@codesourcery.com>
3696 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3697 (O_LARGEFILE): Likewise.
3698 (tfile_ops): Likewise.
3699 (TRACE_HEADER_SIZE): Likewise.
3700 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3701 (cur_data_size): Likewise.
3702 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3703 (tfile_close, tfile_files_info): Likewise.
3704 (tfile_get_trace_status): Likewise.
3705 (tfile_get_tracepoint_status): Likewise.
3706 (tfile_get_traceframe_address): Likewise.
3707 (tfile_trace_find, match_blocktype): Likewise.
3708 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3709 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3710 (tfile_get_trace_state_variable_value): Likewise.
3711 (tfile_has_all_memory, tfile_has_memory): Likewise.
3712 (tfile_has_stack, tfile_has_registers): Likewise.
3713 (tfile_thread_alive, build_traceframe_info): Likewise.
3714 (tfile_traceframe_info, init_tfile_ops): Likewise.
3715 (_initialize_tracepoint): Don't call init_tfile_ops
3716 and add_target_with_completer.
3717 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3718 exec.h, completer.h and filenames.h.
3719 (_initialize_tracefile_tfile): New function.
3721 2014-02-23 Yao Qi <yao@codesourcery.com>
3723 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3725 (HFILES_NO_SRCDIR): Add tracefile.h.
3726 * ctf.c: Include "tracefile.h".
3727 * tracefile.h: New file.
3728 * tracefile.c: New file
3729 * tracefile-tfile.c: New file.
3730 * tracepoint.c: Include "tracefile.h".
3731 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3732 (stop_reason_names): Add const.
3733 (trace_file_writer_xfree): Move it to tracefile.c.
3734 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3735 (trace_save_ctf): Likewise.
3736 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3737 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3738 (tfile_write_header, tfile_write_regblock_type): Likewise.
3739 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3740 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3741 (tfile_write_raw_data, tfile_end): Likewise.
3742 (tfile_trace_file_writer_new): Likewise.
3743 (free_uploaded_tp): Make it extern.
3744 (free_uploaded_tsv): Make it extern.
3745 (_initialize_tracepoint): Move code to register command 'tsave'
3747 * tracepoint.h (stop_reason_names): Declare.
3748 (struct trace_frame_write_ops): Move it to tracefile.h.
3749 (struct trace_file_write_ops): Likewise.
3750 (struct trace_file_writer): Likewise.
3751 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3753 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3756 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3758 (get_cores_used_by_process): New parameter num_cores, use it.
3759 (linux_xfer_osdata_processes): Pass num_cores to it.
3760 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3763 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3765 * target.c (memory_xfer_partial): Fix length arg in call to
3766 breakpoint_xfer_memory.
3768 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3771 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3772 number comes after the + or - signs. Adjust length of register
3773 name to be extracted.
3775 2014-02-20 Tom Tromey <tromey@redhat.com>
3777 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3778 (ada_varobj_ops): Mark "extern".
3780 2014-02-20 Tom Tromey <tromey@redhat.com>
3782 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3784 2014-02-20 Doug Evans <xdje42@gmail.com>
3786 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3787 All callers updated.
3788 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3789 All callers updated.
3790 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3791 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3793 2014-02-20 lin zuojian <manjian2006@gmail.com>
3794 Joel Brobecker <brobecker@adacore.com>
3795 Doug Evans <xdje42@gmail.com>
3798 * dwarf2read.c (struct die_info): New member in_process.
3799 (reset_die_in_process): New function.
3800 (process_die): Set it at the start, reset when returning.
3801 (inherit_abstract_dies): Only call process_die if origin_child_die
3802 not already being processed.
3804 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3806 * windows-nat.c (handle_unload_dll): Add function documentation.
3807 (do_initial_windows_stuff): Add comment explaining why we wait
3808 until after inferior initialization has finished before
3809 processing all DLLs.
3811 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3813 * windows-nat.c (get_module_name): Delete.
3814 (windows_get_exec_module_filename): New function, mostly
3815 inspired from get_module_name.
3816 (windows_pid_to_exec_file): Replace call to get_module_name
3817 by call to windows_get_exec_module_filename.
3819 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3821 * windows-nat.c (handle_load_dll): Rewrite this function's
3822 introductory comment. Remove code using get_module_name
3823 to get the DLL's name.
3825 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3827 * windows-nat.c (get_windows_debug_event): Ignore
3828 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3829 if windows_initialization_done == 0.
3830 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3831 Adjust implementation to always load all DLLs.
3832 (do_initial_windows_stuff): Replace call to
3833 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3835 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3837 * windows-nat.c (_initialize_windows_nat): Deprecate the
3838 "dll-symbols" command. Turn the "add-shared-symbol-files"
3839 and "assf" aliases into commands, and deprecate them as well.
3840 * NEWS: Add entry explaining that "dll-symbols" and its two
3841 aliases are now deprecated.
3843 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3845 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3846 new-line in debug string. Remove trailing spaces.
3848 2014-02-19 Stan Shebs <stan@codesourcery.com>
3850 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3852 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3854 * NEWS: Add entry for the new feature
3855 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3858 2014-02-19 Stan Shebs <stan@codesourcery.com>
3860 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3862 2014-02-19 Pedro Alves <palves@redhat.com>
3864 * common/ptid.h (struct ptid): Mention that process_stratum
3865 targets should prefer ptid.lwp.
3867 2014-02-19 Pedro Alves <palves@redhat.com>
3869 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3870 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3871 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3872 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3873 store remote thread ids rather than ptid.tid.
3874 (_initialize_remote): Adjust.
3876 2014-02-19 Tom Tromey <tromey@redhat.com>
3878 * target.c (target_get_unwinder): Rewrite.
3879 (target_get_tailcall_unwinder): Rewrite.
3880 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3881 (record_btrace_to_get_tailcall_unwinder): New function.
3882 (init_record_btrace_ops): Update.
3883 * target.h (struct target_ops) <to_get_unwinder,
3884 to_get_tailcall_unwinder>: Now function pointers. Use
3885 TARGET_DEFAULT_RETURN.
3887 2014-02-19 Tom Tromey <tromey@redhat.com>
3889 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3891 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3893 2014-02-19 Tom Tromey <tromey@redhat.com>
3895 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3897 * target-delegates.c: Rebuild.
3898 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3899 TARGET_DEFAULT_FUNC.
3900 * target.c (default_target_decr_pc_after_break): Rename from
3901 forward_target_decr_pc_after_break. Simplify.
3902 (target_decr_pc_after_break): Rely on delegation.
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target.c (update_current_target): Do not INHERIT to_doc or
3907 to_magic. Do not de_fault to_open or to_close.
3909 2014-02-19 Tom Tromey <tromey@redhat.com>
3911 * gcore.h (objfile_find_memory_regions): Declare.
3912 * gcore.c (objfile_find_memory_regions): No longer static. Add
3914 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3915 * exec.c: Include gcore.h.
3916 (exec_set_find_memory_regions): Remove.
3917 (exec_find_memory_regions): Remove.
3918 (exec_do_find_memory_regions): Remove.
3919 (init_exec_ops): Update.
3920 * defs.h (exec_set_find_memory_regions): Remove.
3922 2014-02-19 Tom Tromey <tromey@redhat.com>
3924 * target-delegates.c: Rebuild.
3925 * target.h (struct target_ops) <to_extra_thread_info,
3926 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3927 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3928 not 0, in TARGET_DEFAULT_RETURN.
3930 2014-02-19 Tom Tromey <tromey@redhat.com>
3932 * target.c (complete_target_initialization): Remove casts. Use
3933 return_zero_has_execution.
3934 (return_zero): Add "ignore" argument.
3935 (return_zero_has_execution): New function.
3936 (init_dummy_target): Remove casts. Use
3937 return_zero_has_execution.
3939 2014-02-19 Tom Tromey <tromey@redhat.com>
3941 * target.c (update_current_target): Update comments. Do not
3944 2014-02-19 Tom Tromey <tromey@redhat.com>
3946 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3948 * corelow.c (core_read_description): Delegate when needed.
3949 * remote.c (remote_read_description): Delegate when needed.
3950 * target-delegates.c: Rebuild.
3951 * target.c (target_read_description): Rewrite.
3952 * target.h (struct target_ops) <to_read_description>: Update
3953 comment. Use TARGET_DEFAULT_RETURN.
3955 2014-02-19 Tom Tromey <tromey@redhat.com>
3957 * target-delegates.c: Rebuild.
3958 * target.c (update_current_target): Don't inherit or default
3960 (find_default_run_target): Check against delegate_can_run.
3961 * target.h (struct target_ops) <to_can_run>: Use
3962 TARGET_DEFAULT_RETURN.
3964 2014-02-19 Tom Tromey <tromey@redhat.com>
3966 * target-delegates.c: Rebuild.
3967 * target.c (target_disconnect): Unconditionally delegate.
3968 * target.h (struct target_ops) <to_disconnect>: Use
3969 TARGET_DEFAULT_NORETURN.
3971 2014-02-19 Tom Tromey <tromey@redhat.com>
3973 * record.c (record_stop): Unconditionally delegate.
3974 * target-delegates.c: Rebuild.
3975 * target.c (target_stop_recording): Unconditionally delegate.
3976 * target.h (struct target_ops) <to_stop_recording>: Use
3977 TARGET_DEFAULT_IGNORE.
3979 2014-02-19 Tom Tromey <tromey@redhat.com>
3981 * target-delegates.c: Rebuild.
3982 * target.c (target_enable_btrace): Unconditionally delegate.
3983 * target.h (struct target_ops) <to_enable_btrace>: Use
3984 TARGET_DEFAULT_NORETURN.
3986 2014-02-19 Tom Tromey <tromey@redhat.com>
3988 * target-delegates.c: Rebuild.
3989 * target.c (target_read_btrace): Unconditionally delegate.
3990 * target.h (struct target_ops) <to_read_btrace>: Use
3991 TARGET_DEFAULT_NORETURN.
3993 2014-02-19 Tom Tromey <tromey@redhat.com>
3995 * target-delegates.c: Rebuild.
3996 * target.c (target_teardown_btrace): Unconditionally delegate.
3997 * target.h (struct target_ops) <to_teardown_btrace>: Use
3998 TARGET_DEFAULT_NORETURN.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * target-delegates.c: Rebuild.
4003 * target.c (target_disable_btrace): Unconditionally delegate.
4004 * target.h (struct target_ops) <to_disable_btrace>: Use
4005 TARGET_DEFAULT_NORETURN.
4007 2014-02-19 Tom Tromey <tromey@redhat.com>
4009 * target-delegates.c: Rebuild.
4010 * target.c (default_search_memory): New function.
4011 (simple_search_memory): Update comment.
4012 (target_search_memory): Unconditionally delegate.
4013 * target.h (struct target_ops) <to_search_memory>: Use
4014 TARGET_DEFAULT_FUNC.
4016 2014-02-19 Tom Tromey <tromey@redhat.com>
4018 * auxv.c (default_auxv_parse): No longer static.
4019 (target_auxv_parse): Unconditionally delegate.
4020 * auxv.h (default_auxv_parse): Declare.
4021 * target-delegates.c: Rebuild.
4022 * target.c: Include auxv.h.
4023 * target.h (struct target_ops) <to_auxv_parse>: Use
4024 TARGET_DEFAULT_FUNC.
4026 2014-02-19 Tom Tromey <tromey@redhat.com>
4028 * target-delegates.c: Rebuild.
4029 * target.c (target_memory_map): Unconditionally delegate.
4030 * target.h (struct target_ops) <to_memory_map>: Use
4031 TARGET_DEFAULT_RETURN.
4033 2014-02-19 Tom Tromey <tromey@redhat.com>
4035 * target-delegates.c: Rebuild.
4036 * target.c (target_thread_alive): Unconditionally delegate.
4037 * target.h (struct target_ops) <to_thread_alive>: Use
4038 TARGET_DEFAULT_RETURN.
4040 2014-02-19 Tom Tromey <tromey@redhat.com>
4042 * target-delegates.c: Rebuild.
4043 * target.c (target_save_record): Unconditionally delegate.
4044 * target.h (struct target_ops) <to_save_record>: Use
4045 TARGET_DEFAULT_NORETURN.
4047 2014-02-19 Tom Tromey <tromey@redhat.com>
4049 * target-delegates.c: Rebuild.
4050 * target.c (target_delete_record): Unconditionally delegate.
4051 * target.h (struct target_ops) <to_delete_record>: Use
4052 TARGET_DEFAULT_NORETURN.
4054 2014-02-19 Tom Tromey <tromey@redhat.com>
4056 * target-delegates.c: Rebuild.
4057 * target.c (target_record_is_replaying): Unconditionally
4059 * target.h (struct target_ops) <to_record_is_replaying>: Use
4060 TARGET_DEFAULT_RETURN.
4062 2014-02-19 Tom Tromey <tromey@redhat.com>
4064 * target-delegates.c: Rebuild.
4065 * target.c (target_goto_record_begin): Unconditionally delegate.
4066 * target.h (struct target_ops) <to_goto_record_begin>: Use
4067 TARGET_DEFAULT_NORETURN.
4069 2014-02-19 Tom Tromey <tromey@redhat.com>
4071 * target-delegates.c: Rebuild.
4072 * target.c (target_goto_record_end): Unconditionally delegate.
4073 * target.h (struct target_ops) <to_goto_record_end>: Use
4074 TARGET_DEFAULT_NORETURN.
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4078 * target-delegates.c: Rebuild.
4079 * target.c (target_goto_record): Unconditionally delegate.
4080 * target.h (struct target_ops) <to_goto_record>: Use
4081 TARGET_DEFAULT_NORETURN.
4083 2014-02-19 Tom Tromey <tromey@redhat.com>
4085 * target-delegates.c: Rebuild.
4086 * target.c (target_insn_history): Unconditionally delegate.
4087 * target.h (struct target_ops) <to_insn_history>: Use
4088 TARGET_DEFAULT_NORETURN.
4090 2014-02-19 Tom Tromey <tromey@redhat.com>
4092 * target-delegates.c: Rebuild.
4093 * target.c (target_insn_history_from): Unconditionally delegate.
4094 * target.h (struct target_ops) <to_insn_history_from>: Use
4095 TARGET_DEFAULT_NORETURN.
4097 2014-02-19 Tom Tromey <tromey@redhat.com>
4099 * target-delegates.c: Rebuild.
4100 * target.c (target_insn_history_range): Unconditionally delegate.
4101 * target.h (struct target_ops) <to_insn_history_range>: Use
4102 TARGET_DEFAULT_NORETURN.
4104 2014-02-19 Tom Tromey <tromey@redhat.com>
4106 * target-delegates.c: Rebuild.
4107 * target.c (target_call_history): Unconditionally delegate.
4108 * target.h (struct target_ops) <to_call_history>: Use
4109 TARGET_DEFAULT_NORETURN.
4111 2014-02-19 Tom Tromey <tromey@redhat.com>
4113 * target-delegates.c: Rebuild.
4114 * target.c (target_call_history_from): Unconditionally delegate.
4115 * target.h (struct target_ops) <to_call_history_from>: Use
4116 TARGET_DEFAULT_NORETURN.
4118 2014-02-19 Tom Tromey <tromey@redhat.com>
4120 * target-delegates.c: Rebuild.
4121 * target.c (target_call_history_range): Unconditionally delegate.
4122 * target.h (struct target_ops) <to_call_history_range>: Use
4123 TARGET_DEFAULT_NORETURN.
4125 2014-02-19 Tom Tromey <tromey@redhat.com>
4127 * target-delegates.c: Rebuild.
4128 * target.c (target_verify_memory): Unconditionally delegate.
4129 * target.h (struct target_ops) <to_verify_memory>: Use
4130 TARGET_DEFAULT_NORETURN.
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * target-delegates.c: Rebuild.
4135 * target.c (target_core_of_thread): Unconditionally delegate.
4136 * target.h (struct target_ops) <to_core_of_thread>: Use
4137 TARGET_DEFAULT_RETURN.
4139 2014-02-19 Tom Tromey <tromey@redhat.com>
4141 * target-delegates.c: Rebuild.
4142 * target.c (target_flash_done): Unconditionally delegate.
4143 * target.h (struct target_ops) <to_flash_done>: Use
4144 TARGET_DEFAULT_NORETURN.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * target-delegates.c: Rebuild.
4149 * target.c (target_flash_erase): Unconditionally delegate.
4150 * target.h (struct target_ops) <to_flash_erase>: Use
4151 TARGET_DEFAULT_NORETURN.
4153 2014-02-19 Tom Tromey <tromey@redhat.com>
4155 * target-delegates.c: Rebuild.
4156 * target.c (target_get_section_table): Unconditionally delegate.
4157 * target.h (struct target_ops) <to_get_section_table>: Use
4158 TARGET_DEFAULT_RETURN.
4160 2014-02-19 Tom Tromey <tromey@redhat.com>
4162 * target-delegates.c: Rebuild.
4163 * target.c (target_pid_to_str): Unconditionally delegate.
4164 (init_dummy_target): Don't initialize to_pid_to_str.
4165 (default_pid_to_str): Rename from dummy_pid_to_str.
4166 * target.h (struct target_ops) <to_pid_to_str>: Use
4167 TARGET_DEFAULT_FUNC.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target-delegates.c: Rebuild.
4172 * target.c (target_find_new_threads): Unconditionally delegate.
4173 * target.h (struct target_ops) <to_find_new_threads>: Use
4174 TARGET_DEFAULT_RETURN.
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target-delegates.c: Rebuild.
4179 * target.c (target_program_signals): Unconditionally delegate.
4180 * target.h (struct target_ops) <to_program_signals>: Use
4181 TARGET_DEFAULT_IGNORE.
4183 2014-02-19 Tom Tromey <tromey@redhat.com>
4185 * target-delegates.c: Rebuild.
4186 * target.c (target_pass_signals): Unconditionally delegate.
4187 * target.h (struct target_ops) <to_pass_signals>: Use
4188 TARGET_DEFAULT_IGNORE.
4190 2014-02-19 Tom Tromey <tromey@redhat.com>
4192 * target-delegates.c: Rebuild.
4193 * target.c (default_mourn_inferior): New function.
4194 (target_mourn_inferior): Unconditionally delegate.
4195 * target.h (struct target_ops) <to_mourn_inferior>: Use
4196 TARGET_DEFAULT_FUNC.
4198 2014-02-19 Tom Tromey <tromey@redhat.com>
4200 * target-delegates.c: Rebuild.
4201 * target.c (default_follow_fork): New function.
4202 (target_follow_fork): Unconditionally delegate.
4203 * target.h (struct target_ops) <to_follow_fork>: Use
4204 TARGET_DEFAULT_FUNC.
4206 2014-02-19 Tom Tromey <tromey@redhat.com>
4208 * target-delegates.c: Rebuild.
4209 * target.c (target_kill): Unconditionally delegate.
4210 * target.h (struct target_ops) <to_kill>: Use
4211 TARGET_DEFAULT_NORETURN.
4213 2014-02-19 Tom Tromey <tromey@redhat.com>
4215 * target-delegates.c: Rebuild.
4216 * target.c (target_masked_watch_num_registers): Unconditionally
4218 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4219 Use TARGET_DEFAULT_RETURN.
4221 2014-02-19 Tom Tromey <tromey@redhat.com>
4223 * target-delegates.c: Rebuild.
4224 * target.c (target_remove_mask_watchpoint): Unconditionally
4226 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4227 TARGET_DEFAULT_RETURN.
4229 2014-02-19 Tom Tromey <tromey@redhat.com>
4231 * target-delegates.c: Rebuild.
4232 * target.c (target_insert_mask_watchpoint): Unconditionally
4234 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4235 TARGET_DEFAULT_RETURN.
4237 2014-02-19 Tom Tromey <tromey@redhat.com>
4239 * target-delegates.c: Rebuild.
4240 * target.c (target_ranged_break_num_registers): Unconditionally
4242 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4243 Use TARGET_DEFAULT_RETURN.
4245 2014-02-19 Tom Tromey <tromey@redhat.com>
4247 * target-delegates.c: Rebuild.
4248 * target.c (target_fetch_registers): Unconditionally delegate.
4249 * target.h (struct target_ops) <to_fetch_registers>: Use
4250 TARGET_DEFAULT_NORETURN.
4252 2014-02-19 Tom Tromey <tromey@redhat.com>
4254 * target-delegates.c: Rebuild.
4255 * target.c (update_current_target): Don't inherit or default
4257 * target.h (struct target_ops) <to_stop>: Use
4258 TARGET_DEFAULT_IGNORE.
4260 2014-02-19 Tom Tromey <tromey@redhat.com>
4262 * target-delegates.c: Rebuild.
4263 * target.c (update_current_target): Don't inherit or default
4264 to_can_run_breakpoint_commands.
4265 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4266 Use TARGET_DEFAULT_RETURN.
4268 2014-02-19 Tom Tromey <tromey@redhat.com>
4270 * target-delegates.c: Rebuild.
4271 * target.c (update_current_target): Don't inherit or default
4272 to_supports_evaluation_of_breakpoint_conditions.
4273 * target.h (struct target_ops)
4274 <to_supports_evaluation_of_breakpoint_conditions>: Use
4275 TARGET_DEFAULT_RETURN.
4277 2014-02-19 Tom Tromey <tromey@redhat.com>
4279 * target-delegates.c: Rebuild.
4280 * target.c (update_current_target): Don't inherit or default
4281 to_augmented_libraries_svr4_read.
4282 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4283 Use TARGET_DEFAULT_RETURN.
4285 2014-02-19 Tom Tromey <tromey@redhat.com>
4287 * target-delegates.c: Rebuild.
4288 * target.c (update_current_target): Don't inherit or default
4290 * target.h (struct target_ops) <to_can_use_agent>: Use
4291 TARGET_DEFAULT_RETURN.
4293 2014-02-19 Tom Tromey <tromey@redhat.com>
4295 * target-delegates.c: Rebuild.
4296 * target.c (update_current_target): Don't inherit or default
4298 * target.h (struct target_ops) <to_use_agent>: Use
4299 TARGET_DEFAULT_NORETURN.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * target-delegates.c: Rebuild.
4304 * target.c (update_current_target): Don't inherit or default
4306 (return_null): Remove.
4307 * target.h (struct target_ops) <to_traceframe_info>: Use
4308 TARGET_DEFAULT_RETURN.
4310 2014-02-19 Tom Tromey <tromey@redhat.com>
4312 * target-delegates.c: Rebuild.
4313 * target.c (update_current_target): Don't inherit or default
4314 to_static_tracepoint_markers_by_strid.
4315 * target.h (struct target_ops)
4316 <to_static_tracepoint_markers_by_strid>: Use
4317 TARGET_DEFAULT_NORETURN.
4319 2014-02-19 Tom Tromey <tromey@redhat.com>
4321 * target-delegates.c: Rebuild.
4322 * target.c (update_current_target): Don't inherit or default
4323 to_static_tracepoint_marker_at.
4324 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4325 Use TARGET_DEFAULT_RETURN.
4327 2014-02-19 Tom Tromey <tromey@redhat.com>
4329 * target-delegates.c: Rebuild.
4330 * target.c (update_current_target): Don't inherit or default
4332 * target.h (struct target_ops) <to_set_permissions>: Use
4333 TARGET_DEFAULT_IGNORE.
4335 2014-02-19 Tom Tromey <tromey@redhat.com>
4337 * target-delegates.c: Rebuild.
4338 * target.c (update_current_target): Don't inherit or default
4340 * target.h (struct target_ops) <to_get_tib_address>: Use
4341 TARGET_DEFAULT_NORETURN.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target-delegates.c: Rebuild.
4346 * target.c (update_current_target): Don't inherit or default
4348 * target.h (struct target_ops) <to_set_trace_notes>: Use
4349 TARGET_DEFAULT_RETURN.
4351 2014-02-19 Tom Tromey <tromey@redhat.com>
4353 * target-delegates.c: Rebuild.
4354 * target.c (update_current_target): Don't initialize
4355 to_set_trace_buffer_size.
4356 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4357 TARGET_DEFAULT_IGNORE.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4362 * target.c (update_current_target): Don't inherit or default
4363 to_set_circular_trace_buffer.
4364 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4365 TARGET_DEFAULT_IGNORE.
4367 2014-02-19 Tom Tromey <tromey@redhat.com>
4369 * target-delegates.c: Rebuild.
4370 * target.c (update_current_target): Don't inherit or default
4371 to_set_disconnected_tracing.
4372 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4373 TARGET_DEFAULT_IGNORE.
4375 2014-02-19 Tom Tromey <tromey@redhat.com>
4377 * target-delegates.c: Rebuild.
4378 * target.c (update_current_target): Don't inherit or default
4379 to_get_min_fast_tracepoint_insn_len.
4380 (return_minus_one): Remove.
4381 * target.h (struct target_ops)
4382 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4384 2014-02-19 Tom Tromey <tromey@redhat.com>
4386 * target-delegates.c: Rebuild.
4387 * target.c (update_current_target): Don't inherit or default
4388 to_get_raw_trace_data.
4389 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4390 TARGET_DEFAULT_NORETURN.
4392 2014-02-19 Tom Tromey <tromey@redhat.com>
4394 * target-delegates.c: Rebuild.
4395 * target.c (update_current_target): Don't inherit or default
4396 to_upload_trace_state_variables.
4397 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4398 Use TARGET_DEFAULT_RETURN.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target-delegates.c: Rebuild.
4403 * target.c (update_current_target): Don't inherit or default
4404 to_upload_tracepoints.
4405 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4406 TARGET_DEFAULT_RETURN.
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target-delegates.c: Rebuild.
4411 * target.c (update_current_target): Don't inherit or default
4413 * target.h (struct target_ops) <to_save_trace_data>: Use
4414 TARGET_DEFAULT_NORETURN.
4416 2014-02-19 Tom Tromey <tromey@redhat.com>
4418 * target-delegates.c: Rebuild.
4419 * target.c (update_current_target): Don't inherit or default
4420 to_get_trace_state_variable_value.
4421 * target.h (struct target_ops)
4422 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4424 2014-02-19 Tom Tromey <tromey@redhat.com>
4426 * target-delegates.c: Rebuild.
4427 * target.c (update_current_target): Don't inherit or default
4429 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4431 2014-02-19 Tom Tromey <tromey@redhat.com>
4433 * target-delegates.c: Rebuild.
4434 * target.c (update_current_target): Don't inherit or default
4436 * target.h (struct target_ops) <to_trace_stop>: Use
4437 TARGET_DEFAULT_NORETURN.
4439 2014-02-19 Tom Tromey <tromey@redhat.com>
4441 * target-delegates.c: Rebuild.
4442 * target.c (update_current_target): Don't inherit or default
4443 to_get_tracepoint_status.
4444 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
4452 * target.h (struct target_ops) <to_get_trace_status>: Use
4453 TARGET_DEFAULT_RETURN.
4455 2014-02-19 Tom Tromey <tromey@redhat.com>
4457 * target-delegates.c: Rebuild.
4458 * target.c (update_current_target): Don't inherit or default
4460 * target.h (struct target_ops) <to_trace_start>: Use
4461 TARGET_DEFAULT_NORETURN.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target-delegates.c: Rebuild.
4466 * target.c (update_current_target): Don't inherit or default
4467 to_trace_set_readonly_regions.
4468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4469 Use TARGET_DEFAULT_NORETURN.
4471 2014-02-19 Tom Tromey <tromey@redhat.com>
4473 * target-delegates.c: Rebuild.
4474 * target.c (update_current_target): Don't inherit or default
4475 to_disable_tracepoint.
4476 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4477 TARGET_DEFAULT_NORETURN.
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target-delegates.c: Rebuild.
4482 * target.c (update_current_target): Don't inherit or default
4483 to_enable_tracepoint.
4484 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4485 TARGET_DEFAULT_NORETURN.
4487 2014-02-19 Tom Tromey <tromey@redhat.com>
4489 * target-delegates.c: Rebuild.
4490 * target.c (update_current_target): Don't inherit or default
4491 to_download_trace_state_variable.
4492 * target.h (struct target_ops) <to_download_trace_state_variable>:
4493 Use TARGET_DEFAULT_NORETURN.
4495 2014-02-19 Tom Tromey <tromey@redhat.com>
4497 * target-delegates.c: Rebuild.
4498 * target.c (update_current_target): Don't inherit or default
4499 to_can_download_tracepoint.
4500 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4501 TARGET_DEFAULT_RETURN.
4503 2014-02-19 Tom Tromey <tromey@redhat.com>
4505 * target-delegates.c: Rebuild.
4506 * target.c (update_current_target): Don't inherit or default
4507 to_download_tracepoint.
4508 * target.h (struct target_ops) <to_download_tracepoint>: Use
4509 TARGET_DEFAULT_NORETURN.
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target-delegates.c: Rebuild.
4514 * target.c (update_current_target): Don't inherit or default
4516 * target.h (struct target_ops) <to_trace_init>: Use
4517 TARGET_DEFAULT_RETURN.
4519 2014-02-19 Tom Tromey <tromey@redhat.com>
4521 * target-delegates.c: Rebuild.
4522 * target.c (update_current_target): Don't inherit or default
4523 to_supports_string_tracing.
4524 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4525 TARGET_DEFAULT_RETURN.
4527 2014-02-19 Tom Tromey <tromey@redhat.com>
4529 * target-delegates.c: Rebuild.
4530 * target.c (update_current_target): Don't inherit or default
4531 to_supports_enable_disable_tracepoint.
4532 * target.h (struct target_ops)
4533 <to_supports_enable_disable_tracepoint>: Use
4534 TARGET_DEFAULT_RETURN.
4536 2014-02-19 Tom Tromey <tromey@redhat.com>
4538 * target-delegates.c: Rebuild.
4539 * target.c (update_current_target): Don't inherit or default
4540 to_supports_multi_process.
4541 * target.h (struct target_ops) <to_supports_multi_process>: Use
4542 TARGET_DEFAULT_RETURN.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target-delegates.c: Rebuild.
4547 * target.c (update_current_target): Don't inherit or default
4548 to_get_ada_task_ptid.
4549 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4550 TARGET_DEFAULT_FUNC.
4552 2014-02-19 Tom Tromey <tromey@redhat.com>
4554 * target-delegates.c: Rebuild.
4555 * target.c (update_current_target): Don't inherit or default
4556 to_thread_architecture.
4557 * target.h (struct target_ops) <to_thread_architecture>: Use
4558 TARGET_DEFAULT_FUNC.
4560 2014-02-19 Tom Tromey <tromey@redhat.com>
4562 * target-delegates.c: Rebuild.
4563 * target.c (update_current_target): Don't inherit or default
4564 to_execution_direction.
4565 * target.h (struct target_ops) <to_execution_direction>: Use
4566 TARGET_DEFAULT_FUNC.
4568 2014-02-19 Tom Tromey <tromey@redhat.com>
4570 * target-delegates.c: Rebuild.
4571 * target.c (update_current_target): Don't inherit or default
4572 to_can_execute_reverse.
4573 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4574 TARGET_DEFAULT_RETURN.
4575 (target_can_execute_reverse): Unconditionally delegate.
4577 2014-02-19 Tom Tromey <tromey@redhat.com>
4579 * target-delegates.c: Rebuild.
4580 * target.c (update_current_target): Don't inherit or default
4582 (dummy_goto_bookmark): Remove.
4583 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4584 * target.h (struct target_ops) <to_goto_bookmark>: Use
4585 TARGET_DEFAULT_NORETURN.
4587 2014-02-19 Tom Tromey <tromey@redhat.com>
4589 * target-delegates.c: Rebuild.
4590 * target.c (update_current_target): Don't inherit or default
4592 (dummy_get_bookmark): Remove.
4593 (init_dummy_target): Don't inherit or default to_get_bookmark.
4594 * target.h (struct target_ops) <to_get_bookmark>: Use
4595 TARGET_DEFAULT_NORETURN
4597 2014-02-19 Tom Tromey <tromey@redhat.com>
4599 * target-delegates.c: Rebuild.
4600 * target.c (update_current_target): Don't inherit or default
4601 to_make_corefile_notes.
4602 (init_dummy_target): Don't initialize to_make_corefile_notes.
4603 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4604 TARGET_DEFAULT_FUNC.
4606 2014-02-19 Tom Tromey <tromey@redhat.com>
4608 * target-delegates.c: Rebuild.
4609 * target.c (update_current_target): Don't inherit or default
4610 to_find_memory_regions.
4611 (init_dummy_target): Don't initialize to_find_memory_regions.
4612 * target.h (struct target_ops) <to_find_memory_regions>: Use
4613 TARGET_DEFAULT_FUNC.
4615 2014-02-19 Tom Tromey <tromey@redhat.com>
4617 * target-delegates.c: Rebuild.
4618 * target.c (update_current_target): Don't inherit or default
4620 * target.h (struct target_ops) <to_log_command>: Use
4621 TARGET_DEFAULT_IGNORE.
4622 (target_log_command): Unconditionally delegate.
4624 2014-02-19 Tom Tromey <tromey@redhat.com>
4626 * target-delegates.c: Rebuild.
4627 * target.c (update_current_target): Don't inherit or default
4628 to_pid_to_exec_file.
4629 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4630 TARGET_DEFAULT_RETURN.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target-delegates.c: Rebuild.
4635 * target.c (update_current_target): Don't inherit or default
4637 (target_thread_name): Unconditionally delegate.
4638 * target.h (struct target_ops) <to_thread_name>: Use
4639 TARGET_DEFAULT_RETURN.
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target-delegates.c: Rebuild.
4644 * target.c (update_current_target): Don't inherit or default
4645 to_extra_thread_info.
4646 * target.h (struct target_ops) <to_extra_thread_info>: Use
4647 TARGET_DEFAULT_RETURN.
4649 2014-02-19 Tom Tromey <tromey@redhat.com>
4651 * target-delegates.c: Rebuild.
4652 * target.c (update_current_target): Don't inherit or default
4654 * target.h (struct target_ops) <to_has_exited>: Use
4655 TARGET_DEFAULT_RETURN..
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target-delegates.c: Rebuild.
4660 * target.c (update_current_target): Don't inherit or default
4661 to_set_syscall_catchpoint.
4662 (return_one): Remove.
4663 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4664 TARGET_DEFAULT_RETURN.
4666 2014-02-19 Tom Tromey <tromey@redhat.com>
4668 * target-delegates.c: Rebuild.
4669 * target.c (update_current_target): Don't inherit or default
4670 to_insert_exec_catchpoint.
4671 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4672 TARGET_DEFAULT_RETURN.
4674 2014-01-08 Tom Tromey <tromey@redhat.com>
4676 * target-delegates.c: Rebuild.
4677 * target.c (update_current_target): Don't inherit or default
4678 to_insert_exec_catchpoint.
4679 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4680 TARGET_DEFAULT_RETURN.
4682 2014-02-19 Tom Tromey <tromey@redhat.com>
4684 * target-delegates.c: Rebuild.
4685 * target.c (update_current_target): Don't inherit or default
4686 to_remove_vfork_catchpoint.
4687 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4688 TARGET_DEFAULT_RETURN.
4690 2014-02-19 Tom Tromey <tromey@redhat.com>
4692 * target-delegates.c: Rebuild.
4693 * target.c (update_current_target): Don't inherit or default
4694 to_insert_vfork_catchpoint.
4695 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4696 TARGET_DEFAULT_RETURN.
4698 2014-02-19 Tom Tromey <tromey@redhat.com>
4700 * target-delegates.c: Rebuild.
4701 * target.c (update_current_target): Don't inherit or default
4702 to_remove_fork_catchpoint.
4703 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4704 TARGET_DEFAULT_RETURN.
4706 2014-02-19 Tom Tromey <tromey@redhat.com>
4708 * target-delegates.c: Rebuild.
4709 * target.c (update_current_target): Don't inherit or default
4710 to_insert_fork_catchpoint.
4711 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4712 TARGET_DEFAULT_RETURN.
4714 2014-02-19 Tom Tromey <tromey@redhat.com>
4716 * target-delegates.c: Rebuild.
4717 * target.c (update_current_target): Don't inherit or default
4718 to_post_startup_inferior.
4719 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4720 TARGET_DEFAULT_IGNORE.
4722 2014-02-19 Tom Tromey <tromey@redhat.com>
4724 * target-delegates.c: Rebuild.
4725 * target.c (update_current_target): Don't inherit or default
4727 * target.h (struct target_ops) <to_load>: Use
4728 TARGET_DEFAULT_NORETURN.
4730 2014-02-19 Tom Tromey <tromey@redhat.com>
4732 * target-delegates.c: Rebuild.
4733 * target.c (update_current_target): Don't inherit or default
4735 * target.h (struct target_ops) <to_terminal_info>: Use
4736 TARGET_DEFAULT_FUNC.
4738 2014-02-19 Tom Tromey <tromey@redhat.com>
4740 * target-delegates.c: Rebuild.
4741 * target.c (update_current_target): Don't inherit or default
4742 to_terminal_save_ours.
4743 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4744 TARGET_DEFAULT_IGNORE.
4746 2014-02-19 Tom Tromey <tromey@redhat.com>
4748 * target-delegates.c: Rebuild.
4749 * target.c (update_current_target): Don't inherit or default
4751 * target.h (struct target_ops) <to_terminal_ours>: Use
4752 TARGET_DEFAULT_IGNORE.
4754 2014-02-19 Tom Tromey <tromey@redhat.com>
4756 * target-delegates.c: Rebuild.
4757 * target.c (update_current_target): Don't inherit or default
4758 to_terminal_ours_for_output.
4759 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4760 TARGET_DEFAULT_IGNORE.
4762 2014-02-19 Tom Tromey <tromey@redhat.com>
4764 * target-delegates.c: Rebuild.
4765 * target.c (update_current_target): Don't inherit or default
4766 to_terminal_inferior.
4767 * target.h (struct target_ops) <to_terminal_inferior>: Use
4768 TARGET_DEFAULT_IGNORE.
4770 2014-02-19 Tom Tromey <tromey@redhat.com>
4772 * target-delegates.c: Rebuild.
4773 * target.c (update_current_target): Don't inherit or default
4775 * target.h (struct target_ops) <to_terminal_init>: Use
4776 TARGET_DEFAULT_IGNORE.
4778 2014-02-19 Tom Tromey <tromey@redhat.com>
4780 * target-delegates.c: Rebuild.
4781 * target.c (update_current_target): Don't inherit or default
4782 to_can_accel_watchpoint_condition.
4783 * target.h (struct target_ops)
4784 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4786 2014-02-19 Tom Tromey <tromey@redhat.com>
4788 * target-delegates.c: Rebuild.
4789 * target.c (update_current_target): Don't inherit or default
4790 to_region_ok_for_hw_watchpoint.
4791 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4792 Use TARGET_DEFAULT_FUNC.
4794 2014-02-19 Tom Tromey <tromey@redhat.com>
4796 * target-delegates.c: Rebuild.
4797 * target.c (update_current_target): Don't inherit or default
4798 to_watchpoint_addr_within_range.
4799 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4800 Use TARGET_DEFAULT_FUNC.
4802 2014-02-19 Tom Tromey <tromey@redhat.com>
4804 * target-delegates.c: Rebuild.
4805 * target.c (update_current_target): Don't inherit or default
4806 to_remove_watchpoint.
4807 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4808 TARGET_DEFAULT_NORETURN.
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target-delegates.c: Rebuild.
4813 * target.c (update_current_target): Don't inherit or default
4814 to_insert_watchpoint.
4815 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4816 TARGET_DEFAULT_RETURN.
4818 2014-02-19 Tom Tromey <tromey@redhat.com>
4820 * target-delegates.c: Rebuild.
4821 * target.c (update_current_target): Don't inherit or default
4822 to_remove_hw_breakpoint.
4823 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4824 TARGET_DEFAULT_RETURN.
4826 2014-02-19 Tom Tromey <tromey@redhat.com>
4828 * target-delegates.c: Rebuild.
4829 * target.c (update_current_target): Don't inherit or default
4830 to_insert_hw_breakpoint.
4831 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4832 TARGET_DEFAULT_RETURN.
4834 2014-02-19 Tom Tromey <tromey@redhat.com>
4836 * target-delegates.c: Rebuild.
4837 * target.c (update_current_target): Don't inherit or default
4838 to_can_use_hw_breakpoint.
4839 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4840 TARGET_DEFAULT_RETURN.
4842 2014-02-19 Tom Tromey <tromey@redhat.com>
4844 * target-delegates.c: Rebuild.
4845 * target.c (update_current_target): Don't inherit or default
4847 * target.h (struct target_ops) <to_files_info>: Use
4848 TARGET_DEFAULT_IGNORE.
4850 2014-02-19 Tom Tromey <tromey@redhat.com>
4852 * target-delegates.c: Rebuild.
4853 * target.c (update_current_target): Don't inherit or default
4855 * target.h (struct target_ops) <to_store>: Use
4856 TARGET_DEFAULT_NORETURN.
4858 2014-02-19 Tom Tromey <tromey@redhat.com>
4860 * target-delegates.c: Rebuild.
4861 * target.c (update_current_target): Don't inherit or default
4863 * target.h (struct target_ops) <to_post_attach>: Use
4864 TARGET_DEFAULT_IGNORE.
4866 2014-02-19 Tom Tromey <tromey@redhat.com>
4868 * target-delegates.c: Rebuild.
4869 * target.c (update_current_target): Don't inherit or default
4871 (default_rcmd): New function.
4872 (do_monitor_command): Unconditionally delegate.
4873 * target.h (struct target_ops) <to_rmcd>: Use
4874 TARGET_DEFAULT_FUNC.
4876 2014-02-19 Tom Tromey <tromey@redhat.com>
4878 * target-delegates.c: Rebuild.
4879 * target.c (init_dummy_target): Don't initialize to_attach.
4880 (target_attach): Unconditionally delegate.
4881 * target.h (struct target_ops) <to_attach>: Use
4882 TARGET_DEFAULT_FUNC.
4884 2014-02-19 Tom Tromey <tromey@redhat.com>
4886 * target-delegates.c: Rebuild.
4887 * target.c (target_detach): Unconditionally delegate.
4888 (init_dummy_target): Don't initialize to_detach.
4889 * target.h (struct target_ops) <to_detach>: Use
4890 TARGET_DEFAULT_IGNORE.
4892 2014-02-19 Tom Tromey <tromey@redhat.com>
4894 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4896 (target_augmented_libraries_svr4_read): Add argument.
4897 * target.c (update_current_target): Update.
4898 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4901 2014-02-19 Tom Tromey <tromey@redhat.com>
4903 * target.h (struct target_ops) <to_call_history_range>: Add
4905 * target.c (target_call_history_range): Add argument.
4906 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4908 (record_btrace_call_history_from): Update.
4910 2014-02-19 Tom Tromey <tromey@redhat.com>
4912 * target.h (struct target_ops) <to_call_history_from>: Add
4914 * target.c (target_call_history_from): Add argument.
4915 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4918 2014-02-19 Tom Tromey <tromey@redhat.com>
4920 * target.h (struct target_ops) <to_call_history>: Add argument.
4921 * target.c (target_call_history): Add argument.
4922 * record-btrace.c (record_btrace_call_history): Add 'self'
4925 2014-02-19 Tom Tromey <tromey@redhat.com>
4927 * target.h (struct target_ops) <to_insn_history_range>: Add
4929 * target.c (target_insn_history_range): Add argument.
4930 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4932 (record_btrace_insn_history_from): Update.
4934 2014-02-19 Tom Tromey <tromey@redhat.com>
4936 * target.h (struct target_ops) <to_insn_history_from>: Add
4938 * target.c (target_insn_history_from): Add argument.
4939 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4942 2014-02-19 Tom Tromey <tromey@redhat.com>
4944 * target.h (struct target_ops) <to_insn_history>: Add argument.
4945 * target.c (target_insn_history): Add argument.
4946 * record-btrace.c (record_btrace_insn_history): Add 'self'
4949 2014-02-19 Tom Tromey <tromey@redhat.com>
4951 * target.h (struct target_ops) <to_goto_record>: Add argument.
4952 * target.c (target_goto_record): Add argument.
4953 * record-full.c (record_full_goto): Add 'self' argument.
4954 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4956 2014-02-19 Tom Tromey <tromey@redhat.com>
4958 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4959 * target.c (target_goto_record_end): Add argument.
4960 * record-full.c (record_full_goto_end): Add 'self' argument.
4961 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4963 2014-02-19 Tom Tromey <tromey@redhat.com>
4965 * target.h (struct target_ops) <to_goto_record_begin>: Add
4967 * target.c (target_goto_record_begin): Add argument.
4968 * record-full.c (record_full_goto_begin): Add 'self' argument.
4969 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4972 2014-02-19 Tom Tromey <tromey@redhat.com>
4974 * target.h (struct target_ops) <to_record_is_replaying>: Add
4976 * target.c (target_record_is_replaying): Add argument.
4977 * record-full.c (record_full_is_replaying): Add 'self' argument.
4978 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4980 (record_btrace_xfer_partial, record_btrace_store_registers)
4981 (record_btrace_prepare_to_store, record_btrace_resume)
4982 (record_btrace_wait, record_btrace_decr_pc_after_break)
4983 (record_btrace_find_new_threads, record_btrace_thread_alive):
4986 2014-02-19 Tom Tromey <tromey@redhat.com>
4988 * target.h (struct target_ops) <to_delete_record>: Add argument.
4989 * target.c (target_delete_record): Add argument.
4990 * record-full.c (record_full_delete): Add 'self' argument.
4992 2014-02-19 Tom Tromey <tromey@redhat.com>
4994 * target.h (struct target_ops) <to_save_record>: Add argument.
4995 * target.c (target_save_record): Add argument.
4996 * record-full.c (record_full_save): Add 'self' argument.
4997 (record_full_save): Add 'self' argument.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target.h (struct target_ops) <to_info_record>: Add argument.
5002 * target.c (target_info_record): Add argument.
5003 * record.c (info_record_command): Add argument.
5004 * record-full.c (record_full_info): Add 'self' argument.
5005 * record-btrace.c (record_btrace_info): Add 'self' argument.
5007 2014-02-19 Tom Tromey <tromey@redhat.com>
5009 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5010 * target.c (target_stop_recording): Add argument.
5011 * record.c (record_stop): Add argument.
5012 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5015 2014-02-19 Tom Tromey <tromey@redhat.com>
5017 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5018 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5019 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5021 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5022 (_initialize_amd64_linux_nat): Use it.
5023 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5024 (_initialize_i386_linux_nat): Use it.
5026 2014-02-19 Tom Tromey <tromey@redhat.com>
5028 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5029 * target.c (target_teardown_btrace): Add argument.
5030 * remote.c (remote_teardown_btrace): Add 'self' argument.
5031 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5033 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5039 * target.c (target_disable_btrace): Add argument.
5040 * remote.c (remote_disable_btrace): Add 'self' argument.
5041 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5043 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5046 2014-02-19 Tom Tromey <tromey@redhat.com>
5048 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5049 * target.c (target_enable_btrace): Add argument.
5050 * remote.c (remote_enable_btrace): Add 'self' argument.
5051 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5053 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5056 2014-02-19 Tom Tromey <tromey@redhat.com>
5058 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5059 (target_can_use_agent): Add argument.
5060 * target.c (update_current_target): Update.
5061 * remote.c (remote_can_use_agent): Add 'self' argument.
5062 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5064 2014-02-19 Tom Tromey <tromey@redhat.com>
5066 * target.h (struct target_ops) <to_use_agent>: Add argument.
5067 (target_use_agent): Add argument.
5068 * target.c (update_current_target): Update.
5069 * remote.c (remote_use_agent): Add 'self' argument.
5070 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5072 2014-02-19 Tom Tromey <tromey@redhat.com>
5074 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5075 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5076 (target_traceframe_info): Add argument.
5077 * target.c (update_current_target): Update.
5078 * remote.c (remote_traceframe_info): Add 'self' argument.
5079 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target.h (target_static_tracepoint_markers_by_strid): Add
5085 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5087 * target.c (update_current_target): Update.
5088 * remote.c (struct target_ops)
5089 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5090 * linux-nat.c (struct target_ops)
5091 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5093 2014-02-19 Tom Tromey <tromey@redhat.com>
5095 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5097 (target_static_tracepoint_marker_at): Add argument.
5098 * target.c (update_current_target): Update.
5099 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5105 (target_set_permissions): Add argument.
5106 * target.c (update_current_target): Update.
5107 * remote.c (remote_set_permissions): Add 'self' argument.
5108 (remote_start_remote): Update.
5110 2014-02-19 Tom Tromey <tromey@redhat.com>
5112 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5113 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5114 (target_get_tib_address): Add argument.
5115 * target.c (update_current_target): Update.
5116 * remote.c (remote_get_tib_address): Add 'self' argument.
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5120 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5121 (target_set_trace_notes): Add argument.
5122 * target.c (update_current_target): Update.
5123 * remote.c (remote_set_trace_notes): Add 'self' argument.
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5129 (target_set_trace_buffer_size): Add argument.
5130 * target.c (update_current_target): Update.
5131 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5137 (target_set_circular_trace_buffer): Add argument.
5138 * target.c (update_current_target): Update.
5139 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5146 (target_set_disconnected_tracing): Add argument.
5147 * target.c (update_current_target): Update.
5148 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5152 * target.h (struct target_ops)
5153 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5154 (target_get_min_fast_tracepoint_insn_len): Add argument.
5155 * target.c (update_current_target): Update.
5156 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5159 2014-02-19 Tom Tromey <tromey@redhat.com>
5161 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5163 (target_get_raw_trace_data): Add argument.
5164 * target.c (update_current_target): Update.
5165 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5171 (target_upload_trace_state_variables): Add argument.
5172 * target.c (update_current_target): Update.
5173 * remote.c (remote_upload_trace_state_variables): Add 'self'
5175 (remote_start_remote): Update.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5181 (target_upload_tracepoints): Add argument.
5182 * target.c (update_current_target): Update.
5183 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5184 (remote_start_remote): Update.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5189 (target_save_trace_data): Add argument.
5190 * target.c (update_current_target): Update.
5191 * remote.c (remote_save_trace_data): Add 'self' argument.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5197 * target.h (struct target_ops)
5198 <to_get_trace_state_variable_value>: Add argument.
5199 (target_get_trace_state_variable_value): Add argument.
5200 * target.c (update_current_target): Update.
5201 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5203 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5205 2014-02-19 Tom Tromey <tromey@redhat.com>
5207 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5208 * target.h (struct target_ops) <to_trace_find>: Add argument.
5209 (target_trace_find): Add argument.
5210 * target.c (update_current_target): Update.
5211 * remote.c (remote_trace_find): Add 'self' argument.
5212 * ctf.c (ctf_trace_find): Add 'self' argument.
5214 2014-02-19 Tom Tromey <tromey@redhat.com>
5216 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5217 (target_trace_stop): Add argument.
5218 * target.c (update_current_target): Update.
5219 * remote.c (remote_trace_stop): Add 'self' argument.
5221 2014-02-19 Tom Tromey <tromey@redhat.com>
5223 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5224 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5226 (target_get_tracepoint_status): Add argument.
5227 * target.c (update_current_target): Update.
5228 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5230 2014-02-19 Tom Tromey <tromey@redhat.com>
5232 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5233 * target.h (struct target_ops) <to_get_trace_status>: Add
5235 (target_get_trace_status): Add argument.
5236 * target.c (update_current_target): Update.
5237 * remote.c (remote_get_trace_status): Add 'self' argument.
5238 (remote_start_remote, remote_can_download_tracepoint): Update.
5239 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5241 2014-02-19 Tom Tromey <tromey@redhat.com>
5243 * target.h (struct target_ops) <to_trace_start>: Add argument.
5244 (target_trace_start): Add argument.
5245 * target.c (update_current_target): Update.
5246 * remote.c (remote_trace_start): Add 'self' argument.
5248 2014-02-19 Tom Tromey <tromey@redhat.com>
5250 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5252 (target_trace_set_readonly_regions): Add argument.
5253 * target.c (update_current_target): Update.
5254 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5257 2014-02-19 Tom Tromey <tromey@redhat.com>
5259 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5261 (target_disable_tracepoint): Add argument.
5262 * target.c (update_current_target): Update.
5263 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5265 2014-02-19 Tom Tromey <tromey@redhat.com>
5267 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5269 (target_enable_tracepoint): Add argument.
5270 * target.c (update_current_target): Update.
5271 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5273 2014-02-19 Tom Tromey <tromey@redhat.com>
5275 * target.h (struct target_ops) <to_download_trace_state_variable>:
5277 (target_download_trace_state_variable): Add argument.
5278 * target.c (update_current_target): Update.
5279 * remote.c (remote_download_trace_state_variable): Add 'self'
5282 2014-02-19 Tom Tromey <tromey@redhat.com>
5284 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5286 (target_can_download_tracepoint): Add argument.
5287 * target.c (update_current_target): Update.
5288 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * target.h (struct target_ops) <to_download_tracepoint>: Add
5294 (target_download_tracepoint): Add argument.
5295 * target.c (update_current_target): Update.
5296 * remote.c (remote_download_tracepoint): Add 'self' argument.
5298 2014-02-19 Tom Tromey <tromey@redhat.com>
5300 * target.h (struct target_ops) <to_trace_init>: Add argument.
5301 (target_trace_init): Add argument.
5302 * target.c (update_current_target): Update.
5303 * remote.c (remote_trace_init): Add 'self' argument.
5305 2014-02-19 Tom Tromey <tromey@redhat.com>
5307 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5308 * target.c (target_fileio_readlink): Add argument.
5309 * remote.c (remote_hostio_readlink): Add 'self' argument.
5310 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5315 * target.c (target_fileio_unlink): Add argument.
5316 * remote.c (remote_hostio_unlink): Add 'self' argument.
5317 (remote_file_delete): Update.
5318 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5323 * target.c (target_fileio_close): Add argument.
5324 * remote.c (remote_hostio_close): Add 'self' argument.
5325 (remote_hostio_close_cleanup): Update.
5326 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5328 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5333 * target.c (target_fileio_pread): Add argument.
5334 * remote.c (remote_hostio_pread): Add 'self' argument.
5335 (remote_bfd_iovec_pread, remote_file_get): Update.
5336 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5341 * target.c (target_fileio_pwrite): Add argument.
5342 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5343 (remote_file_put): Update.
5344 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5349 * target.c (target_fileio_open): Add argument.
5350 * remote.c (remote_hostio_open): Add 'self' argument.
5351 (remote_bfd_iovec_open): Add 'self' argument.
5352 (remote_file_put): Add 'self' argument.
5353 (remote_file_get): Add 'self' argument.
5354 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5360 (target_can_run_breakpoint_commands): Add argument.
5361 * target.c (update_current_target): Update.
5362 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5364 (remote_insert_breakpoint): Add 'self' argument.
5365 (remote_insert_hw_breakpoint): Add 'self' argument.
5366 (remote_can_run_breakpoint_commands): Add 'self' argument.
5368 2014-02-19 Tom Tromey <tromey@redhat.com>
5370 * target.h (struct target_ops)
5371 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5372 (target_supports_evaluation_of_breakpoint_conditions): Add
5374 * target.c (update_current_target): Update.
5375 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5377 (remote_insert_breakpoint): Add 'self' argument.
5378 (remote_insert_hw_breakpoint): Add 'self' argument.
5379 (remote_supports_cond_breakpoints): Add 'self' argument.
5381 2014-02-19 Tom Tromey <tromey@redhat.com>
5383 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5385 (target_supports_string_tracing): Add argument.
5386 * target.c (update_current_target): Update.
5387 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5389 2014-02-19 Tom Tromey <tromey@redhat.com>
5391 * target.h (struct target_ops)
5392 <to_supports_disable_randomization>: Add argument.
5393 * target.c (find_default_supports_disable_randomization): Add
5395 (target_supports_disable_randomization): Add argument.
5396 (find_default_supports_disable_randomization): Add 'self'
5398 * remote.c (extended_remote_supports_disable_randomization): Add
5400 (remote_supports_disable_randomization): Add 'self' argument.
5401 (extended_remote_create_inferior): Update.
5402 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5405 2014-02-19 Tom Tromey <tromey@redhat.com>
5407 * target.h (struct target_ops)
5408 <to_supports_enable_disable_tracepoint>: Add argument.
5409 (target_supports_enable_disable_tracepoint): Add argument.
5410 * target.c (update_current_target): Update.
5411 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target.h (struct target_ops) <to_supports_multi_process>: Add
5418 (target_supports_multi_process): Add argument.
5419 * target.c (update_current_target): Update.
5420 * remote.c (remote_supports_multi_process): Add 'self' argument.
5421 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5423 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5426 2014-02-19 Tom Tromey <tromey@redhat.com>
5428 * target.h (struct target_ops) <to_execution_direction>: Add
5430 (target_execution_direction): Add argument.
5431 * target.c (default_execution_direction): Add 'self' argument.
5432 * record-full.c (record_full_execution_direction): Add 'self'
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5439 (target_can_execute_reverse): Add argument.
5440 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5441 * record-full.c (record_full_can_execute_reverse): Add 'self'
5443 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5446 2014-02-19 Tom Tromey <tromey@redhat.com>
5448 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5449 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5451 (target_get_ada_task_ptid): Add argument.
5452 * target.c (update_current_target): Update.
5453 (default_get_ada_task_ptid): Add 'self' argument.
5454 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5455 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5456 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5458 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5460 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5462 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5464 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5465 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5468 2014-02-19 Tom Tromey <tromey@redhat.com>
5470 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5471 (target_goto_bookmark): Add argument.
5472 * target.c (dummy_goto_bookmark): Add 'self' argument.
5473 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5475 2014-02-19 Tom Tromey <tromey@redhat.com>
5477 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5478 (target_get_bookmark): Add argument.
5479 * target.c (dummy_get_bookmark): Add 'self' argument.
5480 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5482 2014-02-19 Tom Tromey <tromey@redhat.com>
5484 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5486 (target_make_corefile_notes): Add argument.
5487 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5488 * procfs.c (procfs_make_note_section): Add 'self' argument.
5489 (procfs_make_note_section): Add 'self' argument.
5490 (procfs_make_note_section): Add 'self' argument.
5491 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5493 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5494 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5495 * exec.c (exec_make_note_section): Add 'self' argument.
5496 (exec_make_note_section): Add 'self' argument.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target.h (struct target_ops) <to_find_memory_regions>: Add
5502 (target_find_memory_regions): Add argument.
5503 * target.c (dummy_find_memory_regions): Add 'self' argument.
5504 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5505 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5506 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5507 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5508 * exec. (exec_do_find_memory_regions): New global.
5509 (exec_set_find_memory_regions): Rewrite.
5510 (exec_find_memory_regions): New function.
5511 (init_exec_ops): Use exec_find_memory_regions.
5513 2014-02-19 Tom Tromey <tromey@redhat.com>
5515 * target.h (struct target_ops) <to_supports_non_stop>: Add
5517 * target.c (find_default_supports_non_stop): Add argument.
5518 (target_supports_non_stop): Add argument.
5519 (find_default_supports_non_stop): Add 'self' argument.
5520 * remote.c (remote_supports_non_stop): Add 'self' argument.
5521 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5523 2014-02-19 Tom Tromey <tromey@redhat.com>
5525 * target.h (struct target_ops) <to_log_command>: Add argument.
5526 (target_log_command): Add argument.
5527 * serial.h (serial_log_command): Add 'self' argument.
5528 * serial.c (serial_log_command): Add 'self' argument.
5530 2014-02-19 Tom Tromey <tromey@redhat.com>
5532 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5533 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5535 (target_pid_to_exec_file): Add argument.
5536 * target.c (debug_to_pid_to_exec_file): Add argument.
5537 (update_current_target): Update.
5538 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5539 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5540 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5541 (linux_handle_extended_wait): Update.
5542 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5543 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5544 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5545 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5547 2014-02-19 Tom Tromey <tromey@redhat.com>
5549 * target.h (struct target_ops) <to_rcmd>: Add argument.
5550 (target_rcmd): Add argument.
5551 * target.c (debug_to_rcmd): Add argument.
5552 (update_current_target, do_monitor_command): Update.
5553 * remote.c (remote_rcmd): Add 'self' argument.
5554 * monitor.c (monitor_rcmd): Add 'self' argument.
5556 2014-02-19 Tom Tromey <tromey@redhat.com>
5558 * windows-nat.c (windows_stop): Add 'self' argument.
5559 * target.h (struct target_ops) <to_stop>: Add argument.
5560 * target.c (target_stop): Add argument.
5561 (debug_to_stop): Add argument.
5562 (update_current_target): Update.
5563 * remote.c (remote_stop): Add 'self' argument.
5564 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5565 (gdbsim_cntrl_c): Update.
5566 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5567 * procfs.c (procfs_stop): Add 'self' argument.
5568 * nto-procfs.c (procfs_stop): Add 'self' argument.
5569 * monitor.c (monitor_stop): Add 'self' argument.
5570 (monitor_open): Update.
5571 * linux-nat.c (linux_nat_stop): Add argument.
5572 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5573 * gnu-nat.c (gnu_stop): Add 'self' argument.
5574 * darwin-nat.c (darwin_stop): Add 'self' argument.
5576 2014-02-19 Tom Tromey <tromey@redhat.com>
5578 * target.h (struct target_ops) <to_thread_name>: Add argument.
5579 * target.c (target_thread_name): Add argument.
5580 (update_current_target): Update.
5581 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target.h (struct target_ops) <to_extra_thread_info>: Add
5587 (target_extra_thread_info): Add argument.
5588 * target.c (update_current_target): Update.
5589 * remote.c (remote_threads_extra_info): Add 'self' argument.
5590 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5592 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5593 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5594 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5596 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5598 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5600 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5603 2014-02-19 Tom Tromey <tromey@redhat.com>
5605 * target.h (struct target_ops) <to_program_signals>: Add argument.
5606 * target.c (target_program_signals): Add argument.
5607 * remote.c (remote_program_signals): Add 'self' argument.
5609 2014-02-19 Tom Tromey <tromey@redhat.com>
5611 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5612 * target.c (target_pass_signals): Add argument.
5613 * remote.c (remote_pass_signals): Add 'self' argument.
5614 (remote_start_remote): Update.
5615 * procfs.c (procfs_pass_signals): Add 'self' argument.
5616 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5617 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5618 (linux_nat_create_inferior, linux_nat_attach): Update.
5620 2014-02-19 Tom Tromey <tromey@redhat.com>
5622 * windows-nat.c (windows_can_run): Add 'self' argument.
5623 * target.h (struct target_ops) <to_can_run>: Add argument.
5624 (target_can_run): Add argument.
5625 * target.c (debug_to_can_run): Add argument.
5626 (update_current_target): Update.
5627 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5628 * inf-child.c (inf_child_can_run): Add 'self' argument.
5629 * go32-nat.c (go32_can_run): Add 'self' argument.
5631 2014-02-19 Tom Tromey <tromey@redhat.com>
5633 * target.h (struct target_ops) <to_has_exited>: Add argument.
5634 (target_has_exited): Add argument.
5635 * target.c (debug_to_has_exited): Add argument.
5636 (update_current_target): Update.
5638 2014-02-19 Tom Tromey <tromey@redhat.com>
5640 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5642 (target_set_syscall_catchpoint): Add argument.
5643 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5645 * target.c (update_current_target): Update.
5647 2014-02-19 Tom Tromey <tromey@redhat.com>
5649 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5651 (target_remove_exec_catchpoint): Add argument.
5652 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5653 (update_current_target): Update.
5654 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5661 (target_insert_exec_catchpoint): Add argument.
5662 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5663 (update_current_target): Update.
5664 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5667 2014-02-19 Tom Tromey <tromey@redhat.com>
5669 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5671 (target_remove_vfork_catchpoint): Add argument.
5672 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5673 (update_current_target): Update.
5674 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5677 2014-02-19 Tom Tromey <tromey@redhat.com>
5679 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5681 (target_insert_vfork_catchpoint): Add argument.
5682 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5683 (update_current_target): Update.
5684 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5687 2014-02-19 Tom Tromey <tromey@redhat.com>
5689 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5691 (target_remove_fork_catchpoint): Add argument.
5692 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5693 (update_current_target): Update.
5694 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5697 2014-02-19 Tom Tromey <tromey@redhat.com>
5699 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5701 (target_insert_fork_catchpoint): Add argument.
5702 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5703 (update_current_target): Update.
5704 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5711 (target_post_startup_inferior): Add argument.
5712 * target.c (debug_to_post_startup_inferior): Add argument.
5713 (update_current_target): Update.
5714 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5716 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5718 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5720 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5722 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5724 (super_post_startup_inferior): Likewise.
5725 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5727 (super_post_startup_inferior): Likewise.
5728 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5729 Add 'self' argument.
5730 (super_post_startup_inferior): Likewise.
5732 2014-02-19 Tom Tromey <tromey@redhat.com>
5734 * target.h (struct target_ops) <to_load>: Add argument.
5735 * target.c (target_load): Add argument.
5736 (debug_to_load): Add argument.
5737 (update_current_target): Update.
5738 * remote.c (remote_load): Add 'self' argument.
5739 * remote-sim.c (gdbsim_load): Add 'self' argument.
5740 * remote-mips.c (mips_load): Add 'self' argument.
5741 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5742 * monitor.c (monitor_load): Add 'self' argument.
5743 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5748 (target_terminal_info): Add argument.
5749 * target.c (debug_to_terminal_info): Add argument.
5750 (default_terminal_info): Likewise.
5751 * inflow.c (child_terminal_info): Add 'self' argument.
5752 * inferior.h (child_terminal_info): Add 'self' argument.
5753 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5755 2014-02-19 Tom Tromey <tromey@redhat.com>
5757 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5759 (target_terminal_save_ours): Add argument.
5760 * target.c (debug_to_terminal_save_ours): Add argument.
5761 (update_current_target): Update.
5762 * inflow.c (terminal_save_ours): Add 'self' argument.
5763 * inferior.h (terminal_save_ours): Add 'self' argument.
5765 2014-02-19 Tom Tromey <tromey@redhat.com>
5767 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5768 (target_terminal_ours): Add argument.
5769 * target.c (debug_to_terminal_ours): Add argument.
5770 (update_current_target): Update.
5771 * remote.c (remote_terminal_ours): Add 'self' argument.
5772 (remote_close): Update.
5773 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5774 * inflow.c (terminal_ours): Add 'self' argument.
5775 * inferior.h (terminal_ours): Add 'self' argument.
5776 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5778 2014-02-19 Pedro Alves <palves@redhat.com>
5779 Tom Tromey <tromey@redhat.com>
5781 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5783 (target_terminal_ours_for_output): Add argument.
5784 * target.c (debug_to_terminal_ours_for_output): Add argument.
5785 (update_current_target): Update.
5786 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5787 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5788 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * target.h (struct target_ops) <to_terminal_inferior>: Add
5794 * target.c (target_terminal_inferior): Add argument.
5795 (update_current_target): Update.
5796 * remote.c (remote_terminal_inferior): Add 'self' argument.
5797 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5798 * inflow.c (terminal_inferior): Add 'self' argument.
5799 * inferior.h (terminal_inferior): Add 'self' argument.
5800 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5801 (go32_terminal_inferior): Add 'self' argument.
5803 2014-02-19 Tom Tromey <tromey@redhat.com>
5805 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5806 (target_terminal_init): Add argument.
5807 * target.c (debug_to_terminal_init): Add argument.
5808 (update_current_target): Update.
5809 * inflow.c (terminal_init_inferior): Add 'self' argument.
5810 * inferior.h (terminal_init_inferior): Add 'self' argument.
5811 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5812 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5814 2014-02-19 Tom Tromey <tromey@redhat.com>
5816 * target.h (struct target_ops)
5817 <to_can_accel_watchpoint_condition>: Add argument.
5818 (target_can_accel_watchpoint_condition): Add argument.
5819 * target.c (debug_to_can_accel_watchpoint_condition): Add
5821 (update_current_target): Update.
5822 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5829 (target_region_ok_for_hw_watchpoint): Add argument.
5830 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5831 (default_region_ok_for_hw_watchpoint): Add argument.
5832 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5833 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5835 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5837 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5839 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5841 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5843 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5845 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5846 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5848 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5849 Add 'self' argument.
5851 2014-02-19 Tom Tromey <tromey@redhat.com>
5853 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5855 (target_insert_watchpoint): Add argument.
5856 * target.c (debug_to_insert_watchpoint): Add argument.
5857 (update_current_target): Update.
5858 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5859 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5860 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5861 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5862 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5863 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5865 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5866 (procfs_insert_hw_watchpoint): Add 'self' argument.
5867 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5869 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5871 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5873 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5874 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5876 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5883 (target_remove_watchpoint): Add argument.
5884 * target.c (debug_to_remove_watchpoint): Add argument.
5885 (update_current_target): Update.
5886 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5887 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5888 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5889 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5890 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5891 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5893 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5894 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5896 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5898 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5900 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5901 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5903 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5910 (target_remove_hw_breakpoint): Add argument.
5911 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5912 (update_current_target): Update.
5913 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5914 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5916 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5917 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5919 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5922 2014-02-19 Tom Tromey <tromey@redhat.com>
5924 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5926 (target_insert_hw_breakpoint): Add argument.
5927 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5928 (update_current_target): Update.
5929 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5930 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5932 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5933 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5934 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5936 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5943 (target_can_use_hardware_watchpoint): Add argument.
5944 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5945 (update_current_target): Update.
5946 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5948 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5950 * remote.c (remote_check_watch_resources): Add 'self' argument.
5951 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5952 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5954 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5955 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5957 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5959 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5961 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5963 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5965 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5967 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5968 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5970 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5973 2014-02-19 Tom Tromey <tromey@redhat.com>
5975 * target.h (struct target_ops) <to_post_attach>: Add argument.
5976 (target_post_attach): Add argument.
5977 * target.c (debug_to_post_attach): Add argument.
5978 (update_current_target): Update.
5979 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5980 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5981 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5982 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5983 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * windows-nat.c (windows_close): Add 'self' argument.
5988 * tracepoint.c (tfile_close): Add 'self' argument.
5989 * target.h (struct target_ops) <to_close>: Add argument.
5990 * target.c (target_close): Add argument.
5991 (update_current_target): Update.
5992 * remote.c (remote_close): Add 'self' argument.
5993 * remote-sim.c (gdbsim_close): Add 'self' argument.
5994 * remote-mips.c (mips_close): Add 'self' argument.
5995 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5996 * record-full.c (record_full_close): Add 'self' argument.
5997 * record-btrace.c (record_btrace_close): Add 'self' argument.
5998 * monitor.h (monitor_close): Add 'self' argument.
5999 * monitor.c (monitor_close): Add 'self' argument.
6000 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6001 * linux-nat.c (linux_nat_close): Add argument.
6002 * go32-nat.c (go32_close): Add 'self' argument.
6003 * exec.c (exec_close_1): Add 'self' argument.
6004 * ctf.c (ctf_close): Add 'self' argument.
6005 * corelow.c (core_close): Add 'self' argument.
6006 (core_close_cleanup): Update.
6007 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6008 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * remote.c (remote_load): New function.
6013 (init_remote_ops): Use it.
6015 2014-02-19 Tom Tromey <tromey@redhat.com>
6017 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6019 * common/linux-btrace.h (linux_supports_btrace): Update.
6020 * remote.c (remote_supports_btrace): Add "self" argument.
6021 * target-delegates.c: Rebuild.
6022 * target.c (target_supports_btrace): Remove.
6023 * target.h (struct target_ops) <to_supports_btrace>: Add
6024 target_ops argument.
6025 (target_supports_btrace): New define.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * record-full.c (record_full_beneath_to_resume_ops)
6030 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6031 (record_full_beneath_to_wait)
6032 (record_full_beneath_to_store_registers_ops)
6033 (record_full_beneath_to_store_registers)
6034 (record_full_beneath_to_xfer_partial_ops)
6035 (record_full_beneath_to_xfer_partial)
6036 (record_full_beneath_to_insert_breakpoint_ops)
6037 (record_full_beneath_to_insert_breakpoint)
6038 (record_full_beneath_to_remove_breakpoint_ops)
6039 (record_full_beneath_to_remove_breakpoint)
6040 (record_full_beneath_to_stopped_by_watchpoint)
6041 (record_full_beneath_to_stopped_data_address)
6042 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6043 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6044 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6045 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6046 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6047 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6048 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6049 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6050 (record_full_resume, record_full_wait_1)
6051 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6052 (record_full_store_registers, record_full_xfer_partial)
6053 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6054 (record_full_async, record_full_core_xfer_partial): Use target
6056 * target-delegates.c: Rebuild.
6057 * target.c (current_xfer_partial): Remove.
6058 (update_current_target): Do not INHERIT or de_fault
6059 to_insert_breakpoint, to_remove_breakpoint,
6060 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6061 to_is_async_p, to_async. Do not set to_xfer_partial field.
6062 (default_xfer_partial): Simplify.
6063 (current_xfer_partial): Remove.
6064 (target_wait, target_resume): Simplify.
6065 (find_default_can_async_p, find_default_is_async_p): Update.
6066 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6067 to_xfer_partial, to_stopped_by_watchpoint,
6068 to_stopped_data_address.
6069 (target_store_registers): Simplify.
6070 (forward_target_remove_breakpoint)
6071 (forward_target_insert_breakpoint): Remove.
6072 (target_remove_breakpoint, target_insert_breakpoint)
6073 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6074 * target.h (struct target_ops) <to_resume, to_wait,
6075 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6076 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6077 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6079 (forward_target_remove_breakpoint)
6080 (forward_target_insert_breakpoint): Remove.
6081 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6083 (record_btrace_insert_breakpoint): Delegate directly.
6085 2014-02-19 Tom Tromey <tromey@redhat.com>
6088 * target-delegates.c: New file.
6089 * target.c: Include target-delegates.c.
6090 (init_dummy_target): Call install_dummy_methods.
6091 (complete_target_initialization): Call install_delegators.
6092 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6093 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6094 * make-target-delegates: New file.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * record.c (find_record_target): Use find_target_at.
6099 * target.c (find_target_at): New function.
6100 * target.h (find_target_at): Declare.
6102 2014-02-19 Tom Tromey <tromey@redhat.com>
6104 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6106 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6108 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6109 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6111 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6113 * linux-nat.c (save_sigtrap): Update.
6114 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6115 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6116 (linux_nat_close): Update.
6117 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6119 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6121 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6122 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6123 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6124 (tmp_to_async): Add 'ops' argument.
6125 (record_full_stopped_by_watchpoint, record_full_async)
6126 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6128 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6129 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6130 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6131 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6132 (remote_is_async_p, remote_async): Add 'ops' argument.
6133 (remote_stopped_data_address): Update.
6134 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6135 * target.c (update_current_target)
6136 (find_default_can_async_p, find_default_is_async_p): Update.
6137 (init_dummy_target): Update.
6138 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6139 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6140 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6141 (target_can_async_p, target_is_async_p, target_async)
6142 (target_stopped_by_watchpoint): Update.
6144 2014-02-19 Yao Qi <yao@codesourcery.com>
6147 * gdbarch.sh: Remove startup_gdbarch.
6148 * gdbarch.c: Regenerated.
6149 * gdbarch.h: Likewise.
6151 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6153 * rl78-tdep.c (rl78_g10_register_name): New function.
6154 (rl78_return_value): Add g10 support.
6155 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6158 2014-02-17 Doug Evans <xdje42@gmail.com>
6160 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6161 (SUBDIR_GUILE_SRCS): Ditto.
6162 (scm-gsmob.o): Ditto.
6164 2014-02-17 Yao Qi <yao@codesourcery.com>
6166 * gnu-nat.c (ILL_RPC): Declare defined function.
6168 2014-02-17 Yao Qi <yao@codesourcery.com>
6170 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6171 mach_msg_type_number_t.
6172 (gnu_write_inferior): Likewise.
6174 2014-02-17 Yao Qi <yao@codesourcery.com>
6176 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6178 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6179 (inf_validate_procs, inf_signal): Likewise.
6180 (S_exception_raise_request): Likewise.
6181 (do_mach_notify_dead_name): Likewise.
6182 (steal_exc_port): Likewise.
6183 (gnu_read_inferior): Change 'copy_count''s type to
6184 mach_msg_type_number_t.
6185 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6188 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6190 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6191 flag. Adjust all users; in particular...
6192 (gnu_wait): ..., don't decrement its value in here...
6193 (gnu_create_inferior): ..., and instead set the flag in here,
6194 around the startup_inferior call, and call that one with
6195 START_INFERIOR_TRAPS_EXPECTED.
6197 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6198 (ILL_RPC): ... new macro.
6199 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6200 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6201 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6202 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6203 functions with ILL_RPC macro.
6204 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6205 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6206 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6207 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6208 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6209 (S_proc_getlogin_reply, S_proc_getsid_reply)
6210 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6211 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6212 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6213 (S_proc_getnports_reply, S_proc_is_important_reply)
6214 (S_proc_get_code_reply): New stub functions, generated with
6217 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6218 collected the type check structures.
6220 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6222 2014-02-14 Doug Evans <dje@google.com>
6224 * target.c (target_write_partial): Fix result type.
6226 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6228 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6229 the proper offsets to access fpregset_t.
6231 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6233 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6234 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6235 * h8300-tdep.c (setmachinelist): Remove global.
6236 * hppa-tdep.c (hppa_sigtramp): Remove global.
6237 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6238 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6239 * ravenscar-thread.c (update_target_observer): Remove global.
6240 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6242 2014-02-12 Tom Tromey <tromey@redhat.com>
6244 * common/rsp-low.c: Update comments.
6245 * common/rsp-low.h: Update comments.
6247 2014-02-12 Tom Tromey <tromey@redhat.com>
6249 * common/rsp-low.c (convert_ascii_to_int): Remove.
6250 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6252 2014-02-12 Tom Tromey <tromey@redhat.com>
6254 * common/rsp-low.h (unhexify): Don't declare.
6255 * common/rsp-low.c (unhexify): Remove.
6257 2014-02-12 Tom Tromey <tromey@redhat.com>
6259 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6260 * common/rsp-low.c (convert_int_to_ascii): Remove.
6262 2014-02-12 Tom Tromey <tromey@redhat.com>
6264 * common/rsp-low.h (hexify): Don't declare.
6265 * common/rsp-low.c (hexify): Remove.
6267 2014-02-12 Tom Tromey <tromey@redhat.com>
6269 * common/rsp-low.c (hexify): Never take strlen of argument.
6271 2014-02-12 Tom Tromey <tromey@redhat.com>
6273 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6274 * remote.c (extended_remote_run, remote_rcmd)
6275 (remote_download_trace_state_variable, remote_save_trace_data)
6276 (remote_set_trace_notes): Update.
6277 * tracepoint.c (encode_source_string, tfile_write_status)
6278 (tfile_write_uploaded_tsv): Update.
6280 2014-02-12 Tom Tromey <tromey@redhat.com>
6282 * tracepoint.c: Include rsp-low.h.
6283 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6284 * remote.c: Include rsp-low.h.
6285 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6286 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6287 (remote_unescape_input): Move to common/rsp-low.c.
6288 * common/rsp-low.h: New file.
6289 * common/rsp-low.c: New file.
6290 * Makefile.in (SFILES): Add common/rsp-low.c.
6291 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6292 (COMMON_OBS): Add rsp-low.o.
6293 (rsp-low.o): New target.
6295 2014-02-12 Tom Tromey <tromey@redhat.com>
6297 * utils.h: Include print-utils.h.
6298 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6299 (int_string, core_addr_to_string, core_addr_to_string_nz)
6300 (hex_string, hex_string_custom): Don't declare.
6301 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6302 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6303 (hex_string_custom, int_string, core_addr_to_string)
6304 (core_addr_to_string_nz, host_address_to_string): Move to
6305 common/print-utils.c.
6306 * common/print-utils.h: New file.
6307 * common/print-utils.c: New file
6308 * Makefile.in (SFILES): Add common/print-utils.c.
6309 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6310 (COMMON_OBS): Add print-utils.o.
6311 (print-utils.o): New target.
6313 2014-02-12 Tom Tromey <tromey@redhat.com>
6315 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6317 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6319 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6321 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6323 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6324 if a PT_IO ptrace request returns sucessfully but indicates that 0
6325 bytes were transferred.
6327 2014-02-12 Pedro Alves <palves@redhat.com>
6328 Kevin Buettner <kevinb@redhat.com>
6330 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6331 TYPE_INSTANCE_FLAG_CODE_SPACE.
6333 2014-02-12 Pedro Alves <palves@redhat.com>
6335 * h8300-tdep.c (pseudo_from_raw_register)
6336 (raw_from_pseudo_register): New functions.
6337 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6340 2014-02-12 Pedro Alves <palves@redhat.com>
6342 * h8300-tdep.c (h8300_register_sim_regno): New function.
6343 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6344 gdbarch_register_sim_regno hook.
6346 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6348 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6350 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6352 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6354 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6356 * obsd-tdep.h (obsd_init_abi): New prototype.
6357 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6358 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6359 (obsd_init_abi): New functions.
6360 * i386obsd-tdep.c: Include "obsd-tdep.h".
6361 (i386obsd_init_abi): Call obsd_init_abi.
6362 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6363 (amd64obsd_init_abi): Call obsd_init_abi.
6364 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6365 obsd-tdep.c to gdb_target_obs.
6367 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6369 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6370 double float arguments to 16-byte in the argument slots.
6372 2014-02-11 Doug Evans <xdje42@gmail.com>
6374 * configure.ac: Don't crash if pkg-config is not found and guile
6375 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6377 * configure: Regenerate.
6379 2014-02-11 Yao Qi <yao@codesourcery.com>
6381 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6382 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6383 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6384 * gnu-nat.c (gnu_xfer_memory): Likewise.
6385 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6386 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6387 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6388 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6390 2014-02-11 Yao Qi <yao@codesourcery.com>
6392 * target.h (enum target_xfer_error): Rename to ...
6393 (enum target_xfer_status): ... it. New. All users updated.
6394 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6396 (TARGET_XFER_STATUS_ERROR_P): New macro.
6397 (target_xfer_error_to_string): Remove declaration.
6398 (target_xfer_status_to_string): Declare.
6399 (target_xfer_partial_ftype): Adjust it.
6400 (struct target_ops) <to_xfer_partial>: Return
6401 target_xfer_status. Add argument xfered_len. Update
6403 * target.c (target_xfer_error_to_string): Rename to ...
6404 (target_xfer_status_to_string): ... it. New. All callers
6406 (target_read_live_memory): Likewise. Call target_xfer_partial
6407 instead of target_read.
6408 (memory_xfer_live_readonly_partial): Return
6409 target_xfer_status. Add argument xfered_len.
6410 (raw_memory_xfer_partial): Likewise.
6411 (memory_xfer_partial_1): Likewise.
6412 (memory_xfer_partial): Likewise.
6413 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6414 properly. Update debug message.
6415 (default_xfer_partial, current_xfer_partial): Likewise.
6416 (target_write_partial): Likewise.
6417 (target_read_partial): Likewise. All callers updated.
6418 (read_whatever_is_readable): Likewise.
6419 (target_write_with_progress): Likewise.
6420 (target_read_alloc_1): Likewise.
6422 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6423 * auxv.c (procfs_xfer_auxv): Likewise.
6424 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6425 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6426 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6427 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6428 * corefile.c (read_memory): Adjust.
6429 * corelow.c (core_xfer_partial): Likewise.
6430 * ctf.c (ctf_xfer_partial): Likewise.
6431 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6433 (darwin_xfer_partial): Likewise.
6434 * exec.c (section_table_xfer_memory_partial): Likewise. All
6436 (exec_xfer_partial): Likewise.
6437 * exec.h (section_table_xfer_memory_partial): Update
6439 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6441 (gnu_xfer_partial): Likewise.
6442 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6443 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6444 (ia64_hpux_xfer_solib_got): Likewise.
6445 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6446 type of 'partial_len' to ULONGEST.
6447 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6448 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6449 (linux_nat_xfer_partial): Likewise.
6450 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6451 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6452 * monitor.c (monitor_xfer_memory): Likewise.
6453 (monitor_xfer_partial): Likewise.
6454 * procfs.c (procfs_xfer_partial): Likewise.
6455 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6456 * record-full.c (record_full_xfer_partial): Likewise.
6457 (record_full_core_xfer_partial): Likewise.
6458 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6459 (gdbsim_xfer_partial): Likewise.
6460 * remote.c (remote_write_bytes_aux): Likewise. All callers
6462 (remote_write_bytes, remote_read_bytes): Likewise. All
6464 (remote_flash_erase): Likewise. All callers updated.
6465 (remote_write_qxfer): Likewise. All callers updated.
6466 (remote_read_qxfer): Likewise. All callers updated.
6467 (remote_xfer_partial): Likewise.
6468 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6469 (rs6000_xfer_shared_libraries): Likewise.
6470 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6471 (sol_thread_xfer_partial): Likewise.
6472 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6473 (sparc_xfer_partial): Likewise.
6474 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6476 (spu_xfer_partial): Likewise.
6477 * spu-multiarch.c (spu_xfer_partial): Likewise.
6478 * tracepoint.c (tfile_xfer_partial): Likewise.
6479 * windows-nat.c (windows_xfer_memory): Likewise.
6480 (windows_xfer_shared_libraries): Likewise.
6481 (windows_xfer_partial): Likewise.
6482 * valprint.c: Replace 'target_xfer_error' with
6483 'target_xfer_status' in comments.
6485 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6487 Checked in by Joel Brobecker <brobecker@adacore.com>.
6488 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6490 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6492 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6493 function parameters.
6495 2014-02-10 Will Newton <will.newton@linaro.org>
6497 * elfread.c (elf_rel_plt_read): Look for a .got section if
6498 looking up .got.plt fails.
6499 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6500 on address passed to elf_gnu_ifunc_record_cache.
6501 (elf_gnu_ifunc_resolve_addr): Likewise.
6502 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6504 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6506 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6507 (X_RETTURN): New macro.
6508 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6510 * sparc64-tdep.c (sparc64_init_abi): Hook
6511 sparc_in_function_epilogue_p.
6513 2014-02-10 Gary Benson <gbenson@redhat.com>
6515 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6516 Rename name_matcher to symbol_matcher.
6518 2014-02-10 Gary Benson <gbenson@redhat.com>
6520 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6521 Use expand_symtabs_file_matcher_ftype and
6522 expand_symtabs_symbol_matcher_ftype.
6524 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6526 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6527 (struct ada_symbol_cache): New.
6528 (ada_free_symbol_cache): Forward declare.
6529 (struct ada_pspace_data): New.
6530 (ada_pspace_data_handle): New static global.
6531 (get_ada_pspace_data, ada_pspace_data_cleanup)
6532 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6533 (cache_space, cache): Delete, now folded inside struct
6535 (ada_get_symbol_cache): New function.
6536 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6538 (_initialize_ada_language): Remove initialization of cache_space.
6539 Move call to observer_attach_inferior_exit up, grouping it
6540 with the other observer registrations inside this function.
6541 Rename command to be more general. Add call to
6542 register_program_space_data_with_cleanup.
6544 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6546 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6547 ada_new_objfile_observer.
6548 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6549 (_initialize_tasks): Update uses of ada_new_objfile_observer
6550 and ada_tasks_normal_stop_observer.
6552 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6554 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6555 returned by the 'Length attribute to integer.
6557 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6559 * ada-lang.c (_initialize_ada_language): Initialize
6560 cache_space obstack.
6562 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6564 * ada-lang.c (HASH_SIZE): New macro.
6565 (struct cache_entry): New type.
6566 (cache_space, cache): New static globals.
6567 (ada_clear_symbol_cache, find_entry): New functions.
6568 (lookup_cached_symbol, cache_symbol): Implement.
6569 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6570 (_initialize_ada_language): Attach ada_new_objfile_observer
6571 and ada_free_objfile_observer.
6573 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6575 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6576 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6577 struct block * parameter.
6578 (ada_lookup_symbol_list_worker): Constify local variable "block".
6579 Remove cast which is no longer necessary.
6581 2014-02-10 Doug Evans <xdje42@gmail.com>
6583 Add Guile as an extension language.
6584 * NEWS: Mention Guile scripting.
6585 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6586 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6587 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6588 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6589 (CLIBS): Add GUILE_LIBS.
6590 (install-guile): New rule.
6591 (guile.o): New rule.
6592 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6593 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6594 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6595 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6596 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6597 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6598 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6599 * configure.ac: New option --with-guile.
6600 * configure: Regenerate.
6601 * config.in: Regenerate.
6602 * auto-load.c: Remove #include "python/python.h". Add #include
6603 "gdb/section-scripts.h".
6604 (source_section_scripts): Handle Guile scripts.
6605 (_initialize_auto_load): Add name of Guile objfile script to
6606 scripts-directory help text.
6607 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6608 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6609 (struct breakpoint): New member scm_bp_object.
6610 * defs.h (enum command_control_type): New value guile_control.
6611 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6613 (show_user): Update comment.
6614 (_initialize_cli_cmds): Update help text for "show user". Update help
6615 text for max-user-call-depth.
6616 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6618 (multi_line_command_p): Add guile_control.
6619 (print_command_lines): Handle guile_control.
6620 (execute_control_command, recurse_read_control_structure): Ditto.
6621 (process_next_line): Recognize "guile" commands.
6622 * disasm.c (gdb_disassemble_info): Make non-static.
6623 * disasm.h: #include "dis-asm.h".
6624 (struct gdbarch): Add forward decl.
6625 (gdb_disassemble_info): Declare.
6626 * extension.c: #include "guile/guile.h".
6627 (extension_languages): Add guile.
6628 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6629 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6630 * gdbtypes.c (get_unsigned_type_max): New function.
6631 (get_signed_type_minmax): New function.
6632 * gdbtypes.h (get_unsigned_type_max): Declare.
6633 (get_signed_type_minmax): Declare.
6634 * guile/README: New file.
6635 * guile/guile-internal.h: New file.
6636 * guile/guile.c: New file.
6637 * guile/guile.h: New file.
6638 * guile/scm-arch.c: New file.
6639 * guile/scm-auto-load.c: New file.
6640 * guile/scm-block.c: New file.
6641 * guile/scm-breakpoint.c: New file.
6642 * guile/scm-disasm.c: New file.
6643 * guile/scm-exception.c: New file.
6644 * guile/scm-frame.c: New file.
6645 * guile/scm-gsmob.c: New file.
6646 * guile/scm-iterator.c: New file.
6647 * guile/scm-lazy-string.c: New file.
6648 * guile/scm-math.c: New file.
6649 * guile/scm-objfile.c: New file.
6650 * guile/scm-ports.c: New file.
6651 * guile/scm-pretty-print.c: New file.
6652 * guile/scm-safe-call.c: New file.
6653 * guile/scm-string.c: New file.
6654 * guile/scm-symbol.c: New file.
6655 * guile/scm-symtab.c: New file.
6656 * guile/scm-type.c: New file.
6657 * guile/scm-utils.c: New file.
6658 * guile/scm-value.c: New file.
6659 * guile/lib/gdb.scm: New file.
6660 * guile/lib/gdb/boot.scm: New file.
6661 * guile/lib/gdb/experimental.scm: New file.
6662 * guile/lib/gdb/init.scm: New file.
6663 * guile/lib/gdb/iterator.scm: New file.
6664 * guile/lib/gdb/printing.scm: New file.
6665 * guile/lib/gdb/types.scm: New file.
6666 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6667 (VPATH): Add $(GUILE_SRCDIR).
6668 (GUILE_DIR): New variable.
6669 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6670 (all): Add stamp-guile dependency.
6671 (stamp-guile): New rule.
6672 (clean-guile, install-guile, uninstall-guile): New rules.
6673 (install-only): Add install-guile dependency.
6674 (uninstall): Add uninstall-guile dependency.
6675 (clean): Add clean-guile dependency.
6677 2014-02-09 Doug Evans <xdje42@gmail.com>
6679 Revert this patch (which I approved, mea culpa).
6681 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6683 * Makefile.in (all-lib): Remove.
6684 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6686 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6688 Fix Python stack corruption.
6689 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6692 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6694 * Makefile.in (all-lib): Remove.
6695 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6697 2014-02-07 Doug Evans <dje@google.com>
6699 * extension-priv.h (extension_language_script_ops): Add comment.
6700 (extension_language_ops): Add comment.
6701 (active_ext_lang_state): Fix typo in comment.
6703 2014-02-07 Pedro Alves <palves@redhat.com>
6705 PR breakpoints/16292
6706 * infrun.c (handle_signal_stop) <signal arrives while stepping
6707 over a breakpoint>: Switch back to the stepping thread.
6709 2014-02-07 Yao Qi <yao@codesourcery.com>
6711 * target.c (target_xfer_partial): Return zero if LEN is zero.
6713 2014-02-07 Yao Qi <yao@codesourcery.com>
6715 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6716 (ld_so_xfer_auxv): Likewise.
6717 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6718 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6719 * corelow.c (core_xfer_partial): Likewise.
6720 * ctf.c (ctf_xfer_partial): Likewise.
6721 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6722 (darwin_xfer_partial): Likewise.
6723 * exec.c (exec_xfer_partial): Likewise.
6724 * gnu-nat.c (gnu_xfer_partial): Likewise.
6725 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6726 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6727 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6728 * linux-nat.c (linux_xfer_siginfo): Likewise.
6729 (linux_proc_xfer_spu): Likewise.
6730 * procfs.c (procfs_xfer_partial): Likewise.
6731 * record-full.c (record_full_xfer_partial): Likewise.
6732 (record_full_core_xfer_partial): Likewise.
6733 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6734 * remote.c (remote_write_qxfer): Likewise.
6735 (remote_write_qxfer, remote_read_qxfer): Likewise.
6736 (remote_xfer_partial): Likewise.
6737 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6738 (rs6000_xfer_shared_libraries): Likewise.
6739 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6740 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6741 (spu_xfer_partial): Likewise.
6742 * target.c (memory_xfer_partial_1): Likewise.
6743 * tracepoint.c (tfile_xfer_partial): Likewise.
6744 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6745 (windows_xfer_partial): Likewise.
6747 2014-02-07 Yao Qi <yao@codesourcery.com>
6749 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6751 (core_xfer_shared_libraries_aix): Likewise.
6752 * gdbarch.c, gdbarch.h: Regenerated.
6753 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6754 ULONGEST. Change 'len_avail' type to ULONGEST.
6755 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6756 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6758 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6760 2014-02-07 Yao Qi <yao@codesourcery.com>
6762 * corefile.c (memory_error): Get 'exception' from ERR and pass
6763 'exception' to throw_error.
6765 2014-02-06 Doug Evans <xdje42@gmail.com>
6767 * configure.ac (libpython checking): Remove all but python.o from
6768 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6769 * configure: Regenerate.
6771 * Makefile.in (SFILES): Add extension.c.
6772 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6773 (COMMON_OBS): Add extension.o.
6774 * extension.h: New file.
6775 * extension-priv.h: New file.
6776 * extension.c: New file.
6778 * python/python-internal.h: #include "extension.h".
6779 (gdbpy_auto_load_enabled): Declare.
6780 (gdbpy_apply_val_pretty_printer): Declare.
6781 (gdbpy_apply_frame_filter): Declare.
6782 (gdbpy_preserve_values): Declare.
6783 (gdbpy_breakpoint_cond_says_stop): Declare.
6784 (gdbpy_breakpoint_has_cond): Declare.
6785 (void source_python_script_for_objfile): Delete.
6786 * python/python.c: #include "extension-priv.h".
6787 Delete inclusion of "observer.h".
6788 (extension_language_python): Moved here and renamed from
6789 script_language_python in py-auto-load.c.
6790 Redefined to be of type extension_language_defn.
6791 (python_extension_script_ops): New global.
6792 (python_extension_ops): New global.
6793 (struct python_env): New member previous_active.
6794 (restore_python_env): Call restore_active_ext_lang.
6795 (ensure_python_env): Call set_active_ext_lang.
6796 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6798 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6800 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6802 (gdbpy_eval_from_control_command): Renamed from
6803 eval_python_from_control_command, made static. New arg extlang.
6804 (gdbpy_source_script) Renamed from source_python_script, made static.
6806 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6807 result to int. New arg extlang.
6808 (gdbpy_source_objfile_script): Renamed from
6809 source_python_script_for_objfile, made static. New arg extlang.
6810 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6811 static. New args extlang, extlang_printers. Change result type to
6813 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6814 static. New arg extlang. Rename arg printers to extlang_printers
6815 and change type to ext_lang_type_printers *.
6816 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6817 static. Replace argument arg with extlang, extlang_printers.
6818 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6819 (!HAVE_PYTHON, source_python_script): Delete.
6820 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6821 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6822 (!HAVE_PYTHON, start_type_printers): Delete.
6823 (!HAVE_PYTHON, apply_type_printers): Delete.
6824 (!HAVE_PYTHON, free_type_printers): Delete.
6825 (_initialize_python): Delete call to observer_attach_before_prompt.
6826 (finalize_python): Set/restore active extension language.
6827 (gdbpy_finish_initialization) Renamed from
6828 finish_python_initialization, made static. New arg extlang.
6829 (gdbpy_initialized): New function.
6830 * python/python.h: #include "extension.h". Delete #include
6831 "value.h", "mi/mi-cmds.h".
6832 (extension_language_python): Declare.
6833 (GDBPY_AUTO_FILE_NAME): Delete.
6834 (enum py_bt_status): Moved to extension.h and renamed to
6836 (enum frame_filter_flags): Moved to extension.h.
6837 (enum py_frame_args): Moved to extension.h and renamed to
6838 ext_lang_frame_args.
6839 (finish_python_initialization): Delete.
6840 (eval_python_from_control_command): Delete.
6841 (source_python_script): Delete.
6842 (apply_val_pretty_printer): Delete.
6843 (apply_frame_filter): Delete.
6844 (preserve_python_values): Delete.
6845 (gdbpy_script_language_defn): Delete.
6846 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6847 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6849 * auto-load.c: #include "extension.h".
6850 (GDB_AUTO_FILE_NAME): Delete.
6851 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6852 (script_language_gdb): Delete, moved to extension.c and renamed to
6853 extension_language_gdb.
6854 (source_gdb_script_for_objfile): Delete.
6855 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6856 (loaded_script): Change type of language member to
6857 struct extension_language_defn *.
6858 (init_loaded_scripts_info): Initialize
6859 unsupported_script_warning_printed.
6860 (maybe_add_script): Make static. Change type of language arg to
6861 struct extension_language_defn *.
6862 (clear_section_scripts): Reset unsupported_script_warning_printed.
6863 (auto_load_objfile_script_1): Rewrite to use extension language API.
6864 (auto_load_objfile_script): Make public. Remove support-compiled-in
6865 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6866 (source_section_scripts): Rewrite to use extension language API.
6867 (load_auto_scripts_for_objfile): Rewrite to use
6868 auto_load_scripts_for_objfile.
6869 (collect_matching_scripts_data): Change type of language member to
6870 struct extension_language_defn *.
6871 (auto_load_info_scripts): Change type of language arg to
6872 struct extension_language_defn *.
6873 (unsupported_script_warning_print): New function.
6874 (script_not_found_warning_print): Make static.
6875 (_initialize_auto_load): Rewrite construction of scripts-directory
6877 * auto-load.h (struct objfile): Add forward decl.
6878 (struct script_language): Delete.
6879 (struct auto_load_pspace_info): Add forward decl.
6880 (struct extension_language_defn): Add forward decl.
6881 (maybe_add_script): Delete.
6882 (auto_load_objfile_script): Declare.
6883 (script_not_found_warning_print): Delete.
6884 (auto_load_info_scripts): Update prototype.
6885 (auto_load_gdb_scripts_enabled): Declare.
6886 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6887 auto_load_python_scripts_enabled and made public.
6888 (script_language_python): Delete, moved to python.c.
6889 (gdbpy_script_language_defn): Delete.
6890 (info_auto_load_python_scripts): Update to use
6891 extension_language_python.
6893 * breakpoint.c (condition_command): Replace call to
6894 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6895 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6896 with call to breakpoint_ext_lang_cond_says_stop.
6897 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6898 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6899 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6900 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6902 (local_setattro): Print name of extension language with existing
6905 * valprint.c (val_print, value_print): Update to call
6906 apply_ext_lang_val_pretty_printer.
6907 * cp-valprint.c (cp_print_value): Update call to
6908 apply_ext_lang_val_pretty_printer.
6909 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6910 (gdbpy_apply_val_pretty_printer): Renamed from
6911 apply_val_pretty_printer. New arg extlang.
6912 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6914 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6915 extension language API.
6916 * cli/cli-script.c (execute_control_command): Update to call
6917 eval_ext_lang_from_control_command.
6919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6920 enum ext_lang_bt_status values. Update call to
6921 apply_ext_lang_frame_filter.
6922 (mi_cmd_stack_list_locals): Ditto.
6923 (mi_cmd_stack_list_args): Ditto.
6924 (mi_cmd_stack_list_variables): Ditto.
6925 * mi/mi-main.c: Delete #include "python/python-internal.h".
6926 Add #include "extension.h".
6927 (mi_cmd_list_features): Replace reference to python internal variable
6928 gdb_python_initialized with call to ext_lang_initialized_p.
6930 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6931 Update to use enum ext_lang_frame_args. Update to call
6932 apply_ext_lang_frame_filter.
6933 * python/py-framefilter.c (extract_sym): Update to use enum
6935 (extract_value, py_print_type, py_print_value): Ditto.
6936 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6937 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6938 (py_print_frame): Ditto.
6939 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6940 New arg extlang. Update to use enum ext_lang_bt_status.
6942 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6943 finish_python_initialization. Replace with call to
6944 finish_ext_lang_initialization.
6946 * typeprint.c (do_free_global_table): Update to call
6947 free_ext_lang_type_printers.
6948 (create_global_typedef_table): Update to call
6949 start_ext_lang_type_printers.
6950 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6951 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6952 (type_print_options): Change type of global_printers from "void *"
6953 to "struct ext_lang_type_printers *".
6955 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6956 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6957 (gdbpy_preserve_values): Renamed from preserve_python_values.
6959 (!HAVE_PYTHON, preserve_python_values): Delete.
6961 * utils.c (quit_flag): Delete, moved to extension.c.
6962 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6965 * eval.c: Delete #include "python/python.h".
6966 * main.c: Delete #include "python/python.h".
6968 * defs.h: Update comment.
6970 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6974 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6976 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6979 2014-02-05 Yao Qi <yao@codesourcery.com>
6981 * remote.c (remote_pass_signals): Remove local 'buf' and use
6983 (remote_program_signals): Likewise.
6985 2014-02-05 Yao Qi <yao@codesourcery.com>
6987 * ctf.c: Include "inferior.h" and "gdbthread.h".
6988 (CTF_PID): A new macro.
6989 (ctf_open): Call inferior_appeared and add_thread_silent.
6990 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6991 (ctf_thread_alive): New function.
6992 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6994 2014-02-05 Yao Qi <yao@codesourcery.com>
6998 2013-05-24 Yao Qi <yao@codesourcery.com>
7000 * tracepoint.c (TFILE_PID): Remove.
7001 (tfile_open): Don't add thread and inferior.
7002 (tfile_close): Don't set 'inferior_ptid'. Don't call
7003 exit_inferior_silent.
7004 (tfile_thread_alive): Remove.
7005 (init_tfile_ops): Don't set field 'to_thread_alive' of
7008 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7010 * remote.c (remote_start_remote): Call remote_check_symbols even
7011 if only symbol-file (not file) has been given.
7013 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7015 * gdbarch.sh (skip_entrypoint): New callback.
7016 * gdbarch.c, gdbarch.h: Regenerate.
7017 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7018 * infrun.c (fill_in_stop_func): Likewise.
7019 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7020 (ppc_elfv2_elf_make_msymbol_special): New function.
7021 (ppc_elfv2_skip_entrypoint): Likewise.
7022 (ppc_linux_init_abi): Install them for ELFv2.
7024 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7026 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7027 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7028 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7029 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7030 structures returned in GPRs.
7032 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7035 offset to the stack parameter list for the ELFv2 ABI.
7037 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7039 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7040 set_gdbarch_convert_from_func_ptr_addr and
7041 set_gdbarch_elf_make_msymbol_special for ELFv1.
7042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7043 function descriptors on ELFv1.
7044 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7045 set up r12 at function entry.
7047 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7049 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7050 (struct gdbarch_tdep): New member elf_abi.
7052 * rs6000-tdep.c: Include "elf/ppc64.h".
7053 (rs6000_gdbarch_init): Detect ELF ABI version.
7055 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7057 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7058 within a register pair holding a DFP 128-bit value on little-endian.
7059 (ppc64_sysv_abi_return_value_base): Likewise.
7060 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7061 (dfp_pseudo_register_write): Likewise.
7063 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7065 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7066 offset on little-endian when passing _Decimal32.
7067 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7071 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7072 of the overlapped FP register within the VSX register on little-
7074 (efpr_pseudo_register_write): Likewise.
7076 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7078 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7079 offset on little-endian when passing small structures.
7081 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7083 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7084 (struct ppc64_sysv_argpos): New data structure.
7085 (ppc64_sysv_abi_push_float): Remove.
7086 (ppc64_sysv_abi_push_val): New function.
7087 (ppc64_sysv_abi_push_integer): Likewise.
7088 (ppc64_sysv_abi_push_freg): Likewise.
7089 (ppc64_sysv_abi_push_vreg): Likewise.
7090 (ppc64_sysv_abi_push_param): Likewise.
7091 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7092 (ppc64_sysv_abi_return_value_base): New function.
7093 (ppc64_sysv_abi_return_value): Refactor to use it.
7095 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7097 * NEWS: Document new target powerpc64le-*-linux*.
7099 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7101 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7102 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7104 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7105 register set used in ELF core dumps. Add floating-point register set.
7107 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7109 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7110 dwarf2_to_gdb[] table using symbolic constants. Adjust
7111 penultimate entry from number representing the PC register
7112 to symbolic constant representing the MDR register. Add
7113 constant for the PC register to the end of the table.
7115 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7117 * bsd-kvm.c: Include <sys/param.h>
7119 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7121 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7123 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7125 * ada-lang.h (clear_ada_sym_cache): Delete.
7127 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7129 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7131 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7133 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7134 the sigreturn register save area only if the syscall is
7137 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7139 * valops.c (value_slice): Minor reformatting.
7141 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7143 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7145 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7147 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7149 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7150 (ada_ignore_descriptive_types_p): New static global.
7151 (find_parallel_type_by_descriptive_type): Return immediately
7152 if ada_ignore_descriptive_types_p is set.
7153 (_initialize_ada_language): Register new commands "maintenance
7154 set ada", "maintenance show ada", "maintenance set ada
7155 ignore-descriptive-types" and "maintenance show ada
7156 ignore-descriptive-types".
7157 * NEWS: Add entry for new "maint ada set/show
7158 ignore-descriptive-types" commands.
7160 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7162 * record-btrace.c (record_btrace_close): Call btrace_teardown
7165 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7167 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7172 * ada-typeprint (type_is_full_subrange_of_target_type):
7174 (print_range): Add parameter bounds_prefered_p. If not set,
7175 try printing range types using the name of their base type.
7176 (print_range_type): Add parameter bounds_prefered_p.
7177 Use it in call to print_range.
7178 (print_array_type, ada_print_type): Update calls to print_range
7179 and print_range_type.
7181 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7183 * ada-typeprint.c (print_array_type, print_choices, print_range)
7184 (print_range_bound, print_dynamic_range_bound, print_range_type):
7187 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7189 * ada-typeprint.c (print_range): Add missing empty line
7190 after local declaration.
7192 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7194 * ada-valprint.c (print_optional_low_bound): Get index_type's
7195 target type for as long as it is a TYPE_CODE_RANGE.
7197 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7199 * procfs.c (procfs_make_note_section): Remove assertion and
7202 2014-01-24 Yao Qi <yao@codesourcery.com>
7204 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7205 * corelow.c (get_core_siginfo): Likewise.
7207 2014-01-24 Yao Qi <yao@codesourcery.com>
7209 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7210 ULONGEST. Don't check 'len' is negative.
7211 (remote_write_bytes): Change type of 'len' to ULONGEST.
7213 2014-01-23 Tom Tromey <tromey@redhat.com>
7216 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7217 Handle exception from frame.block.
7218 (FrameVars.fetch_frame_locals): Likewise.
7220 2014-01-23 Tom Tromey <tromey@redhat.com>
7223 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7224 on a NULL pointer. Move "goto error" to correct place.
7226 2014-01-23 Tom Tromey <tromey@redhat.com>
7229 * python/py-framefilter.c (apply_frame_filter): Call
7230 ensure_python_env after computing gdbarch.
7232 2014-01-23 Yao Qi <yao@codesourcery.com>
7234 * target.c (raw_memory_xfer_partial): Change argument type
7235 from void * to gdb_byte *.
7236 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7238 2014-01-22 Doug Evans <dje@google.com>
7240 New gdbserver option --debug-format=timestamp.
7243 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7245 * syscalls/s390x-linux.xml: New file.
7246 * syscalls/s390-linux.xml: New file.
7247 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7248 (XML_SYSCALL_FILENAME_S390X): Likewise.
7249 (op_svc): New enum value for SVC opcode.
7250 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7251 (s390_linux_get_syscall_number): New function.
7252 (s390_gdbarch_init): Register '*get_syscall_number' and the
7253 syscall xml file name.
7254 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7255 "s390-linux.xml" and "s390x-linux.xml".
7256 * NEWS: Announce new feature.
7258 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7260 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7262 2014-01-22 Pedro Alves <palves@redhat.com>
7264 * xtensa-config.c: Include defs.h.
7266 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7268 * common/common-utils.h: Add "ARI:" comment beside __func__
7271 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7273 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7274 documentation a bit.
7276 2014-01-21 Roland McGrath <mcgrathr@google.com>
7278 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7279 * configure: Regenerate.
7280 * aclocal.m4: Regenerate.
7281 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7282 New substituted variables.
7283 (install-strip): New target.
7284 (INSTALL_SCRIPT): New substituted variable.
7285 (FLAGS_TO_PASS): Add it.
7286 (install-only): Use $(INSTALL_SCRIPT) rather than
7287 $(INSTALL_PROGRAM) for gcore.
7289 2014-01-20 Tom Tromey <tromey@redhat.com>
7291 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7294 2014-01-20 Tom Tromey <tromey@redhat.com>
7296 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7297 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7298 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7299 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7300 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7301 (struct cmd_list_element) <flags>: Remove.
7302 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7303 doc_allocated>: New fields.
7304 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7306 * maint.c (maintenance_do_deprecate): Update.
7307 * top.c (execute_command): Update.
7309 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7311 * xtensa-linux-nat.c: Include asm/ptrace.h.
7313 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7315 * Makefile.in (SFILES): Add d-support.c.
7316 (COMMON_OBS): Add d-support.o.
7317 * d-lang.h (d_parse_symbol): Add comment, now defined in
7319 * d-lang.c (parse_call_convention)
7320 (parse_attributes, parse_function_types)
7321 (parse_function_args, parse_type, parse_identifier)
7322 (call_convention_p, d_parse_symbol): Move functions to ...
7323 * d-support.c: ... New file.
7325 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7327 * d-lang.h (d_parse_symbol): Add declaration.
7328 * d-lang.c (extract_identifiers)
7329 (extract_type_info): Remove functions.
7330 (parse_call_convention, parse_attributes)
7331 (parse_function_types, parse_function_args)
7332 (parse_type, parse_identifier, call_convention_p)
7333 (d_parse_symbol): New functions.
7334 (d_demangle): Use d_parse_symbol to demangle D symbols.
7336 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7338 * d-lang.h (struct builtin_d_type): New data type.
7339 (builtin_d_type): Add declaration.
7340 * d-lang.c (d_language_arch_info, build_d_types)
7341 (builtin_d_type): New functions.
7342 (enum d_primitive_types): New data type.
7343 (d_language_defn): Change c_language_arch_info to
7344 d_language_arch_info.
7345 (d_type_data): New static variable.
7346 (_initialize_d_language): Initialize d_type_data.
7348 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7350 * d-lang.h (d_main_name): Add declaration.
7351 * d-lang.c (d_main_name): New function.
7352 * symtab.c (find_main_name): Add call to d_main_name.
7354 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7356 * d-lang.c (d_language_defn): Change macro_expansion_c to
7359 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7361 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7363 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7365 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7366 gdb_exception" declaration.
7367 * remote.c (getpkt_or_notif_sane): Likewise.
7369 2014-01-17 Doug Evans <dje@google.com>
7371 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7372 function, contents of dirnames_to_char_ptr_vec_append moved here.
7373 (delim_string_to_char_ptr_vec): New function.
7374 (dirnames_to_char_ptr_vec_append): Rewrite.
7375 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7377 2014-01-17 Doug Evans <dje@google.com>
7379 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7381 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7382 #include "common-utils.h".
7383 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7384 * common/vec.h (VEC_ASSERT_PASS): Update.
7385 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7386 (MACH_CHECK_ERROR): Update.
7388 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7390 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7392 * gdbarch.h: Regenerate.
7394 2014-01-16 Tom Tromey <tromey@redhat.com>
7396 * value.c (struct value) <regnum>: Move earlier.
7398 2014-01-16 Tom Tromey <tromey@redhat.com>
7400 * remote.c (extended_remote_create_inferior): Rename from
7401 extended_remote_create_inferior_1. Add "ops" argument. Remove
7404 2014-01-16 Pedro Alves <palves@redhat.com>
7406 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7407 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7410 2014-01-16 Doug Evans <dje@google.com>
7412 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7416 * btrace.h (btrace_thread_flag): New.
7417 (struct btrace_thread_info) <flags>: New.
7418 * record-btrace.c (record_btrace_resume_thread)
7419 (record_btrace_find_thread_to_move, btrace_step_no_history)
7420 (btrace_step_stopped, record_btrace_start_replaying)
7421 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7422 (record_btrace_find_resume_thread): New.
7423 (record_btrace_resume, record_btrace_wait): Extend.
7424 (record_btrace_can_execute_reverse): New.
7425 (record_btrace_open): Fail in non-stop mode.
7426 (record_btrace_set_replay): Split into this, ...
7427 (record_btrace_stop_replaying): ... this, ...
7428 (record_btrace_clear_histories): ... and this.
7429 (init_record_btrace_ops): Init to_can_execute_reverse.
7430 * NEWS: Announce it.
7432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7434 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7435 (forward_target_decr_pc_after_break)
7436 (target_decr_pc_after_break): New.
7437 * target.c (forward_target_decr_pc_after_break)
7438 (target_decr_pc_after_break): New.
7439 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7440 instead of gdbarch_decr_pc_after_break.
7441 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7442 instead of gdbarch_decr_pc_after_break.
7443 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7444 instead of gdbarch_decr_pc_after_break.
7445 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7446 instead of gdbarch_decr_pc_after_break.
7447 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7448 instead of gdbarch_decr_pc_after_break.
7449 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7450 instead of gdbarch_decr_pc_after_break.
7452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7454 * btrace.c: Include regcache.h.
7455 (btrace_add_pc): New.
7456 (btrace_enable): Call btrace_add_pc.
7457 (btrace_is_empty): New.
7458 * btrace.h (btrace_is_empty): New.
7459 * record-btrace.c (require_btrace, record_btrace_info): Call
7462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7464 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7465 Support delta reads.
7466 (linux_disable_btrace): Change return type.
7467 * common/linux-btrace.h (linux_read_btrace): Change parameters
7468 and return type to allow error reporting. Update users.
7469 (linux_disable_btrace): Change return type. Update users.
7470 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7472 (btrace_error): New.
7473 (btrace_block) <begin>: Comment on BEGIN == 0.
7474 * btrace.c (btrace_compute_ftrace): Start from the end of
7476 (btrace_stitch_trace, btrace_clear_history): New.
7477 (btrace_fetch): Read delta trace, return if replaying.
7478 (btrace_clear): Move clear history code to btrace_clear_history.
7479 (parse_xml_btrace): Throw an error if parsing failed.
7480 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7481 and return type to allow error reporting.
7482 (target_read_btrace): Change parameters and return type to allow
7484 * target.c (target_read_btrace): Update.
7485 * remote.c (remote_read_btrace): Support delta reads. Pass
7487 * NEWS: Announce it.
7489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7491 * record.h (record_btrace_frame_unwind)
7492 (record_btrace_tailcall_frame_unwind): New declarations.
7493 * dwarf2-frame: Include record.h
7494 (dwarf2_frame_cfa): Throw an error for btrace frames.
7495 * record-btrace.c: Include hashtab.h.
7496 (btrace_get_bfun_name): New.
7497 (btrace_call_history): Call btrace_get_bfun_name.
7498 (struct btrace_frame_cache): New.
7500 (bfcache_hash, bfcache_eq, bfcache_new): New.
7501 (btrace_get_frame_function): New.
7502 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7503 (record_btrace_frame_this_id): Compute own id.
7504 (record_btrace_frame_prev_register): Provide PC, throw_error
7505 for all other registers.
7506 (record_btrace_frame_sniffer): Detect btrace frames.
7507 (record_btrace_tailcall_frame_sniffer): New.
7508 (record_btrace_frame_dealloc_cache): New.
7509 (record_btrace_frame_unwind): Add new functions.
7510 (record_btrace_tailcall_frame_unwind): New.
7511 (_initialize_record_btrace): Allocate cache.
7512 * btrace.c (btrace_clear): Call reinit_frame_cache.
7513 * NEWS: Announce it.
7515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7517 * record-btrace.c (record_btrace_set_replay)
7518 (record_btrace_goto_begin, record_btrace_goto_end)
7519 (record_btrace_goto): New.
7520 (init_record_btrace_ops): Initialize them.
7521 * NEWS: Announce it.
7523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7525 * record-btrace.c (record_btrace_find_new_threads)
7526 (record_btrace_thread_alive): New.
7527 (init_record_btrace_ops): Initialize to_find_new_threads and
7530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7532 * record-btrace.c (record_btrace_resume): New.
7533 (record_btrace_wait): New.
7534 (init_record_btrace_ops): Initialize to_wait and to_resume.
7536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7538 * record-btrace.c (record_btrace_xfer_partial)
7539 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7540 (record_btrace_allow_memory_access): New.
7541 (init_record_btrace_ops): Initialize new methods.
7542 * target.c (raw_memory_xfer_partial): Bail out if target reports
7543 that this memory is not available.
7545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7547 * target.h (target_ops) <to_insert_breakpoint>
7548 <to_remove_breakpoint>: Add target_ops parameter.
7549 (forward_target_insert_breakpoint): New.
7550 (forward_target_remove_breakpoint): New.
7551 (memory_remove_breakpoint, memory_insert_breakpoint):
7552 Add target_ops parameter.
7553 * target.c (target_insert_breakpoint): Split into this and ...
7554 (forward_target_insert_breakpoint): ... this.
7555 (target_remove_breakpoint): Split into this and ...
7556 (forward_target_remove_breakpoint): ... this.
7557 (debug_to_insert_breakpoint): Add target_ops parameter.
7558 Call forward_target_insert_breakpoint.
7559 (debug_to_remove_breakpoint): Add target_ops parameter.
7560 Call forward_target_remove_breakpoint.
7561 (update_current_target): Do not inherit or default to_insert_breakpoint
7562 and to_remove_breakpoint.
7563 * corelow.c (ignore): Add target_ops parameter.
7564 * exec.c (ignore): Add target_ops parameter.
7565 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7566 Add target_ops parameter.
7567 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7568 Add target_ops parameter.
7569 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7570 Add target_ops parameter.
7571 * record-full.c (record_full_beneath_to_insert_breakpoint)
7572 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7573 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7574 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7575 (record_full_core_remove_breakpoint): Add target_ops parameter.
7577 (record_full_beneath_to_insert_breakpoint_ops)
7578 (record_full_beneath_to_remove_breakpoint_ops)
7579 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7580 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7581 tmp_to_remove_breakpoint_ops,
7582 record_full_beneath_to_insert_breakpoint_ops, and
7583 record_full_beneath_to_remove_breakpoint_ops.
7584 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7585 (m32r_remove_breakpoint): Add target_ops parameter.
7586 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7587 Add target_ops parameter.
7588 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7589 Add target_ops parameter.
7591 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7592 Markus Metzger <markus.t.metzger@intel.com>
7594 * record-btrace.c: Include frame-unwind.h.
7595 (record_btrace_frame_unwind_stop_reason)
7596 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7597 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7599 (init_record_btrace_ops): Install it.
7601 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7603 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7606 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7608 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7611 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7613 * frame-unwind.c: Include target.h.
7614 (frame_unwind_try_unwinder): New function with code from ...
7615 (frame_unwind_find_by_frame): ... here. New variable
7616 unwinder_from_target, call also target_get_unwinder)
7617 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7618 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7619 * target.h (struct target_ops): New fields to_get_unwinder and
7620 to_get_tailcall_unwinder.
7621 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7625 * record-btrace.c (record_btrace_fetch_registers)
7626 (record_btrace_store_registers)
7627 (record_btrace_to_prepare_to_store): New.
7628 (init_record_btrace_ops): Add the above.
7630 2014-01-16 Tom Tromey <tromey@redhat.com>
7632 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7633 * target.h (struct target_ops) <to_prepare_to_store>: Add
7635 (target_prepare_to_store): Add argument.
7636 * target.c (debug_to_prepare_to_store): Add argument.
7637 (update_current_target): Update.
7638 * remote.c (remote_prepare_to_store): Add 'self' argument.
7639 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7640 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7641 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7642 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7644 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7645 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7646 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7647 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7648 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7652 * btrace.h (replay) <replay>: New.
7653 (btrace_is_replaying): New.
7654 * btrace.c (btrace_clear): Free replay iterator.
7655 (btrace_is_replaying): New.
7656 * record-btrace.c (record_btrace_is_replaying): New.
7657 (record_btrace_info): Print insn number if replaying.
7658 (record_btrace_insn_history): Start at replay position.
7659 (record_btrace_call_history): Start at replay position.
7660 (init_record_btrace_ops): Init to_record_is_replaying.
7662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7664 * record-btrace.c (record_btrace_insn_history_range): Include
7666 (record_btrace_insn_history_from): Adjust range.
7667 (record_btrace_call_history_range): Include
7669 (record_btrace_call_history_from): Adjust range.
7670 * NEWS: Announce changes.
7672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7674 * record.h (enum record_print_flag)
7675 <record_print_indent_calls>: New.
7676 * record.c (get_call_history_modifiers): Recognize /c modifier.
7677 (_initialize_record): Document /c modifier.
7678 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7679 Reorder fields. Optionally indent the function name. Update
7681 * NEWS: Announce changes.
7683 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7685 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7689 * btrace.c (ftrace_new_function): Start counting at one.
7690 * record-btrace.c (record_btrace_info): Adjust number of calls
7692 * NEWS: Announce it.
7694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7696 * record-btrace.c (btrace_call_history_insn_range): Print
7697 insn range as [begin, end].
7699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7701 * btrace.h (struct btrace_func_link): New.
7702 (enum btrace_function_flag): New.
7703 (struct btrace_inst): Rename to ...
7704 (struct btrace_insn): ...this. Update all users.
7705 (struct btrace_func) <ibegin, iend>: Remove.
7706 (struct btrace_func_link): New.
7707 (struct btrace_func): Rename to ...
7708 (struct btrace_function): ...this. Update all users.
7709 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7710 (number, level, flags>: New.
7711 (struct btrace_insn_iterator): Rename to ...
7712 (struct btrace_insn_history): ...this.
7714 (struct btrace_insn_iterator, btrace_call_iterator): New.
7715 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7716 (struct btrace_target_info) <begin, end, level>
7717 <insn_history, call_history>: New.
7718 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7719 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7720 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7721 (btrace_call_number, btrace_call_begin, btrace_call_end)
7722 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7723 (btrace_find_function_by_number, btrace_set_insn_history)
7724 (btrace_set_call_history): New.
7725 * btrace.c (btrace_init_insn_iterator)
7726 (btrace_init_func_iterator, compute_itrace): Remove.
7727 (ftrace_print_function_name, ftrace_print_filename)
7728 (ftrace_skip_file): Change
7730 (ftrace_init_func): Remove.
7731 (ftrace_debug): Use new btrace_function fields.
7732 (ftrace_function_switched): Also consider gaining and
7733 losing symbol information).
7734 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7735 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7736 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7738 (ftrace_new_function): Move. Remove debug print.
7739 (ftrace_update_lines, ftrace_update_insns): New.
7740 (ftrace_update_function): Check for call, ret, and jump.
7741 (compute_ftrace): Renamed to ...
7742 (btrace_compute_ftrace): ...this. Rewritten to compute call
7744 (btrace_fetch, btrace_clear): Updated.
7745 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7746 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7747 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7748 (btrace_call_number, btrace_call_begin, btrace_call_end)
7749 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7750 (btrace_find_function_by_number, btrace_set_insn_history)
7751 (btrace_set_call_history): New.
7752 * record-btrace.c (require_btrace): Use new btrace thread
7754 (record_btrace_info, btrace_insn_history)
7755 (record_btrace_insn_history, record_btrace_insn_history_range):
7756 Use new btrace thread info fields and new iterator.
7757 (btrace_func_history_src_line): Rename to ...
7758 (btrace_call_history_src_line): ...this. Use new btrace
7760 (btrace_func_history): Rename to ...
7761 (btrace_call_history): ...this. Use new btrace thread info
7762 fields and new iterator.
7763 (record_btrace_call_history, record_btrace_call_history_range):
7764 Use new btrace thread info fields and new iterator.
7766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7768 * frame.h (frame_id_build_unavailable_stack_special): New.
7769 * frame.c (frame_id_build_unavailable_stack_special): New.
7771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7773 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7774 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7775 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7777 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7778 (i386_insn_is_jump, i386_jmp_p): New.
7779 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7780 insn_is_jump to gdbarch.
7781 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7782 * gdbarch.h: Regenerated.
7783 * gdbarch.c: Regenerated.
7784 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7785 (default_insn_is_jump): New.
7786 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7787 (default_insn_is_jump): New.
7789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7791 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7793 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7794 (btrace_read_type) <btrace_read_new>: Change to ...
7795 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7799 * common/linux-btrace.c (linux_read_btrace): Free trace from
7802 2014-01-15 Doug Evans <dje@google.com>
7804 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7807 2014-01-15 Tom Tromey <tromey@redhat.com>
7809 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7810 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7811 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7812 (set_objfile_main_name): New function.
7813 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7814 language_of_main>: New fields.
7815 (set_objfile_main_name): Declare.
7816 * symtab.c (find_main_name): Loop over objfiles to find the main
7818 (set_main_name): Now static.
7819 (get_main_info): Add comment.
7820 * symtab.h (set_main_name): Don't declare.
7822 2014-01-15 Tom Tromey <tromey@redhat.com>
7824 * symtab.c (main_progspace_key): New global.
7825 (struct main_info): New.
7826 (name_of_main, language_of_main): Remove.
7827 (get_main_info, main_info_cleanup): New function.
7828 (set_main_name, main_name, main_language): Use get_main_info.
7829 (_initialize_symtab): Initialize main_progspace_key.
7831 2014-01-15 Tom Tromey <tromey@redhat.com>
7833 * dbxread.c (process_one_symbol): Update.
7834 * dwarf2read.c (read_partial_die): Update.
7835 * symfile.c (set_initial_language): Call main_language.
7836 * symtab.c (language_of_main): Now static.
7837 (set_main_name): Add 'lang' parameter.
7838 (find_main_name): Update.
7839 (main_language): New function.
7840 (symtab_observer_executable_changed): Update.
7841 * symtab.h (set_main_name): Update.
7842 (language_of_main): Remove.
7843 (main_language): Declare.
7845 2014-01-15 Tom Tromey <tromey@redhat.com>
7847 * symfile.c (init_entry_point_info): Use new "initialized" field.
7849 * objfiles.h (struct entry_point) <initialized>: New field.
7850 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7851 (struct objfile) <ei>: ...here. Remove.
7852 * objfiles.c (entry_point_address_query): Update.
7854 2014-01-15 Tom Tromey <tromey@redhat.com>
7856 * objfiles.c (entry_point_address_query): Relocate entry point
7858 (objfile_relocate1): Do not relocate entry point address.
7859 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7860 <the_bfd_section_index>: New field.
7861 * symfile.c (init_entry_point_info): Find the entry point's
7864 2014-01-15 Tom Tromey <tromey@redhat.com>
7866 * solib-frv.c (enable_break): Use entry_point_address_query.
7868 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7870 * NEWS: Add note on improved process record-replay on
7871 arm*-linux* targets.
7873 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7875 * arm-tdep.c (enum arm_record_result): New enum.
7876 (arm_record_unsupported_insn): New function.
7877 (arm_record_coproc_data_proc): Removed.
7878 (thumb2_record_ld_st_multiple): New function.
7879 (thumb2_record_ld_st_dual_ex_tbb): New function.
7880 (thumb2_record_data_proc_sreg_mimm): New function.
7881 (thumb2_record_ps_dest_generic): New function.
7882 (thumb2_record_branch_misc_cntrl): New function.
7883 (thumb2_record_str_single_data): New function.
7884 (thumb2_record_ld_mem_hints): New function.
7885 (thumb2_record_ld_word): New function.
7886 (thumb2_record_lmul_lmla_div): New function.
7887 (thumb2_record_decode_insn_handler): New function.
7888 (decode_insn): Add thumb32 instruction handlers.
7890 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7892 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7893 (struct arm_linux_record_tdep): Declare.
7894 (arm_canonicalize_syscall): New function.
7895 (arm_all_but_pc_registers_record): New function.
7896 (arm_linux_syscall_record): New function.
7897 (arm_linux_init_abi): Add syscall recording constructs.
7898 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7899 decoding. (arm_record_coproc_data_proc): Update arm syscall
7901 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7902 <arm_syscall_record>: New field.
7903 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7906 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7908 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7909 register for push instruction recording.
7911 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7913 * arm-tdep.c (thumb_record_misc): Update to correct logical
7914 error while recording ldm, ldmia and pop instructions.
7916 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7918 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7920 2014-01-15 Pedro Alves <palves@redhat.com>
7922 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7923 (go32_resume, go32_fetch_registers, store_register)
7924 (go32_store_registers, go32_prepare_to_store)
7925 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7926 (go32_create_inferior, go32_can_run, go32_terminal_init)
7927 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7930 2014-01-15 Tom Tromey <tromey@redhat.com>
7932 * target.h (async_callback_ftype): New typedef.
7933 (struct target_ops) <to_async>: Use it.
7935 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7937 * python/py-value.c (get_field_type): Remove unnecessary curly
7938 braces for single-statement if block.
7940 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7942 * python/py-type.c (convert_field): Add missing empty line
7945 2014-01-14 Doug Evans <dje@google.com>
7947 * symfile.h (expand_symtabs_matching): Renamed from
7948 expand_partial_symbol_names. Update prototype.
7949 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7950 * symfile.c (expand_symtabs_matching): Renamed from
7951 expand_partial_symbol_names. New args file_matcher, kind.
7952 Rename arg fun to symbol_matcher.
7953 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7954 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7955 ada_expand_partial_symbol_name.
7956 (ada_make_symbol_completion_list): Update to call
7957 expand_symtabs_matching.
7958 (ada_add_global_exceptions): Call expand_symtabs_matching.
7959 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7960 call map_symbol_filenames.
7961 * symtab.c (sources_info): Update to call map_symbol_filenames.
7962 (search_symbols): Call expand_symtabs_matching.
7963 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7964 (default_make_symbol_completion_list_break_on): Update to call
7965 expand_symtabs_matching.
7966 (make_source_files_completion_list): Update to call
7967 map_symbol_filenames.
7969 2014-01-14 Doug Evans <dje@google.com>
7971 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7972 (expand_symtabs_symbol_matcher_ftype): New typedef.
7973 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7974 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7975 * symfile.c (expand_partial_symbol_names): Update to use
7976 expand_symtabs_symbol_matcher_ftype.
7977 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7978 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7979 Arg name_matcher renamed to symbol_matcher.
7980 * psymtab.c (recursively_search_psymtabs): Update to use
7981 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7983 (expand_symtabs_matching_via_partial): Update to use
7984 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7985 Arg name_matcher renamed to symbol_matcher.
7987 2014-01-14 Doug Evans <dje@google.com>
7989 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7990 (map_partial_symbol_filenames): Ditto.
7991 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7992 (map_partial_symbol_filenames): Ditto.
7993 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7994 (map_partial_symbol_filenames): Ditto.
7995 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7996 (map_partial_symbol_filenames): Ditto.
7997 * symtab.c: Delete #include "psymtab.h".
7999 2014-01-14 Pedro Alves <palves@redhat.com>
8000 Tom Tromey <tromey@redhat.com>
8002 * infrun.c (use_displaced_stepping): Use find_record_target
8003 instead of RECORD_IS_USED.
8004 (adjust_pc_after_break): Use record_full_is_used instead of
8006 * record-btrace.c (record_btrace_open): Call record_preopen
8007 instead of checking RECORD_IS_USED.
8008 * record-full.c (record_full_shortname)
8009 (record_full_core_shortname): New globals.
8010 (record_full_is_used): New function.
8011 (find_full_open): Call record_preopen instead of checking
8013 (init_record_full_ops): Set the target's shortname to
8014 record_full_shortname.
8015 (init_record_full_core_ops): Set the target's shortname to
8016 record_full_core_shortname.
8017 * record-full.h (record_full_is_used): Declare.
8018 * record.c (find_record_target): Make extern.
8019 (record_preopen): New function.
8020 * record.h (RECORD_IS_USED): Delete macro.
8021 (find_record_target, record_preopen): Declare functions.
8023 2014-01-14 Yao Qi <yao@codesourcery.com>
8025 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8026 'len''s type to ULONGEST.
8027 (core_xfer_shared_libraries_aix): Likewise.
8028 * gdbarch.c, gdbarch.h: Regenerated.
8029 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8030 Change type of 'len' to ULONGEST.
8031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8032 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8034 2014-01-14 Yao Qi <yao@codesourcery.com>
8036 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8037 type of 'len' to ULONGEST.
8038 (linux_xfer_osdata_processgroups): Likewise.
8039 (linux_xfer_osdata_threads): Likewise.
8040 (linux_xfer_osdata_fds): Likewise.
8041 (linux_xfer_osdata_isockets): Likewise.
8042 (linux_xfer_osdata_shm): Likewise.
8043 (linux_xfer_osdata_sem): Likewise.
8044 (linux_xfer_osdata_msg): Likewise.
8045 (linux_common_xfer_osdata): Likewise.
8046 (struct osdata_type) <getter>: Likewise.
8047 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8050 2014-01-14 Yao Qi <yao@codesourcery.com>
8052 * target.h (target_xfer_partial_ftype): Update.
8053 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8055 * aix-thread.c (aix_thread_xfer_partial): Change type of
8056 argument 'len' to ULONGEST.
8057 * auxv.c (procfs_xfer_auxv): Likewise.
8058 (ld_so_xfer_auxv): Likewise.
8059 (memory_xfer_auxv): Likewise.
8060 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8061 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8062 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8063 * corelow.c (core_xfer_partial): Likewise.
8064 * ctf.c (ctf_xfer_partial): Likewise.
8065 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8067 (darwin_read_dyld_info): Likewise.
8068 (darwin_xfer_partial): Likewise.
8069 * exec.c (section_table_xfer_memory_partial): Likewise.
8070 (exec_xfer_partial): Likewise.
8071 * exec.h (section_table_xfer_memory_partial): Update
8073 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8074 instead of plongest.
8075 (gnu_xfer_partial): Likewise.
8076 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8077 (ia64_hpux_xfer_solib_got): Likewise.
8078 (ia64_hpux_xfer_partial): Likewise.
8079 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8080 * inf-ptrace.c (inf_ptrace_xfer_partial):
8081 * inf-ttrace.c (inf_ttrace_xfer_partial):
8082 * linux-nat.c (linux_xfer_siginfo): Likewise.
8083 (linux_nat_xfer_partial): Likewise.
8084 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8085 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8086 * monitor.c (monitor_xfer_memory): Likewise.
8087 (monitor_xfer_partial): Likewise.
8088 * procfs.c (procfs_xfer_partial): Likewise.
8089 * record-full.c (record_full_xfer_partial): Likewise.
8090 (record_full_core_xfer_partial): Likewise.
8091 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8092 instead of plongest.
8093 (gdbsim_xfer_partial): Likewise.
8094 * remote.c (remote_xfer_partial): Likewise.
8095 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8096 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8098 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8099 (rs6000_xfer_shared_libraries): Likewise.
8100 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8101 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8102 (sparc_xfer_partial): Likewise.
8103 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8104 (spu_xfer_partial): Likewise.
8105 * spu-multiarch.c (spu_xfer_partial): Likewise.
8106 * target.c (target_read_live_memory): Likewise.
8107 (memory_xfer_live_readonly_partial): Likewise.
8108 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8109 (target_xfer_partial, default_xfer_partial): Likewise.
8110 (current_xfer_partial): Likewise.
8111 * tracepoint.c (tfile_xfer_partial): Likewise.
8112 * windows-nat.c (windows_xfer_memory): Likewise. Call
8113 pulongest instead of plongest.
8114 (windows_xfer_partial): Likewise.
8115 (windows_xfer_shared_libraries): Likewise.
8117 2014-01-14 Yao Qi <yao@codesourcery.com>
8119 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8120 target_xfer_partial_ftype.
8122 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8126 * valops.c (value_struct_elt_bitpos): New function
8127 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8128 object to 'None' if the field name is an empty string ("").
8129 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8130 attribute to look for a field when 'name' is 'None'.
8131 (get_field_type): New function
8133 2014-01-13 Doug Evans <dje@google.com>
8136 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8137 (try_open_dwop_file): Ditto.
8138 * gdb_bfd.c: #include "vec.h".
8139 (bfdp): New typedef.
8140 (struct gdb_bfd_data): New member included_bfds.
8141 (gdb_bfd_unref): Unref all included bfds.
8142 (gdb_bfd_record_inclusion): New function.
8143 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8145 2014-01-13 Tom Tromey <tromey@redhat.com>
8147 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8149 2014-01-13 Tom Tromey <tromey@redhat.com>
8151 * defs.h (use_windows): Remove.
8152 * gdb.c (main): Update.
8153 * main.c (captured_main, gdb_main): Update.
8154 * main.h (struct captured_main_args) <use_windows>: Remove.
8155 * top.c (use_windows): Remove.
8157 2014-01-13 Tom Tromey <tromey@redhat.com>
8159 * defs.h (deprecated_flush_hook): Remove.
8161 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8164 * linux-thread-db.c (try_thread_db_load): Add parameter
8165 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8166 (try_thread_db_load_from_pdir_1): Move it there from here.
8167 (try_thread_db_load_from_sdir): Update caller.
8168 (try_thread_db_load_from_dir): Move it there from here.
8170 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8172 * regformats/regdat.sh: Always rewrite the register file.
8174 2014-01-13 Pedro Alves <palves@redhat.com>
8176 * Makefile.in (CHECK_HEADERS): New variable.
8177 (check-headers:): New rule.
8179 2014-01-13 Tom Tromey <tromey@redhat.com>
8181 * cli/cli-setshow.c (do_set_command): Update.
8182 * defs.h (deprecated_set_hook): Remove.
8183 * top.c (deprecated_set_hook): Remove.
8185 2014-01-13 Pedro Alves <palves@redhat.com>
8187 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8188 the tracepoint if the PC is a pseudo-register.
8190 2014-01-13 Tom Tromey <tromey@redhat.com>
8192 * defs.h (XCALLOC): Remove.
8193 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8194 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8195 * dwarf2loc.c (allocate_piece_closure): Likewise.
8196 * elfread.c (elf_symfile_segments): Likewise.
8197 (elf_symfile_segments): Likewise.
8198 * gdbtypes.c (copy_type_recursive): Likewise.
8199 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8200 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8201 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8203 * mt-tdep.c (mt_gdbarch_init): Likewise.
8204 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8206 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8207 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8208 * registry.c (registry_alloc_data): Likewise.
8209 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8210 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8211 * serial.c (serial_fdopen_ops): Likewise.
8212 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8214 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8215 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8218 2014-01-13 Tom Tromey <tromey@redhat.com>
8220 * defs.h (XMALLOC): Remove.
8221 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8222 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8223 * cli-out.c (struct ui_out *): Likewise.
8224 * cli/cli-dump.c (add_dump_command): Likewise.
8225 (add_dump_command): Likewise.
8226 * complaints.c (get_complaints): Likewise.
8227 (find_complaint): Likewise.
8228 * dwarf2-frame.c (execute_cfa_program): Likewise.
8229 * dwarf2read.c (abbrev_table_read_table): Likewise.
8230 * gdbarch.sh: Likewise.
8231 * gdbarch.c: Rebuild.
8232 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8233 * interps.c (interp_new): Likewise.
8234 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8235 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8236 * mi/mi-console.c (mi_console_file_new): Likewise.
8237 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8238 * mi/mi-out.c (mi_out_new): Likewise.
8239 * mi/mi-parse.c (mi_parse): Likewise.
8240 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8241 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8242 * observer.c (xalloc_observer_list_node): Likewise.
8243 * regcache.c (regcache_xmalloc_1): Likewise.
8244 * reggroups.c (reggroup_new): Likewise.
8245 (_initialize_reggroup): Likewise.
8246 * registry.c (register_data_with_cleanup): Likewise.
8247 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8248 * ser-base.c (serial_ttystate): Likewise.
8249 * ser-mingw.c (make_pipe_state): Likewise.
8250 * ser-pipe.c (pipe_open): Likewise.
8251 * serial.c (serial_open): Likewise.
8252 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8253 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8254 (tui_alloc_win_info): Likewise.
8255 (tui_add_content_elements): Likewise.
8256 * tui/tui-file.c (tui_file_new): Likewise.
8257 * tui/tui-out.c (tui_out_new): Likewise.
8258 * ui-file.c (mem_file_new): Likewise.
8259 * ui-out.c (push_level): Likewise.
8260 (make_cleanup_ui_out_end): Likewise.
8261 (append_header_to_list): Likewise.
8262 (ui_out_new): Likewise.
8263 * user-regs.c (user_reg_add_builtin): Likewise.
8265 2014-01-13 Tom Tromey <tromey@redhat.com>
8267 * defs.h (XZALLOC): Remove.
8268 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8269 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8270 (get_ada_tasks_inferior_data): Likewise.
8271 * auto-load.c (get_auto_load_pspace_data): Likewise.
8272 * auxv.c (get_auxv_inferior_data): Likewise.
8273 * bfd-target.c (target_bfd_reopen): Likewise.
8274 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8275 (deprecated_insert_raw_breakpoint): Likewise.
8276 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8277 * corelow.c (core_open): Likewise.
8278 * darwin-nat.c (darwin_check_new_threads): Likewise.
8279 (darwin_attach_pid): Likewise.
8280 * dummy-frame.c (dummy_frame_push): Likewise.
8281 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8282 * dwarf2loc.c (allocate_piece_closure): Likewise.
8283 * elfread.c (elf_symfile_segments): Likewise.
8284 * eval.c (ptrmath_type_p): Likewise.
8285 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8286 * gdbtypes.c (alloc_type_arch): Likewise.
8287 (alloc_type_instance): Likewise.
8288 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8289 * inf-child.c (inf_child_can_use_agent): Likewise.
8290 * inflow.c (get_inflow_inferior_data): Likewise.
8291 * infrun.c (save_infcall_suspend_state): Likewise.
8292 * jit.c (jit_reader_load): Likewise.
8293 (get_jit_objfile_data): Likewise.
8294 (get_jit_program_space_data): Likewise.
8295 (jit_object_open_impl): Likewise.
8296 (jit_symtab_open_impl): Likewise.
8297 (jit_block_open_impl): Likewise.
8298 (jit_frame_sniffer): Likewise.
8299 * linux-fork.c (add_fork): Likewise.
8300 * maint.c (make_command_stats_cleanup): Likewise.
8301 * objfiles.c (get_objfile_pspace_data): Likewise.
8302 * opencl-lang.c (struct lval_closure): Likewise.
8303 * osdata.c (osdata_start_osdata): Likewise.
8304 * progspace.c (new_address_space): Likewise.
8305 (add_program_space): Likewise.
8306 * remote-sim.c (get_sim_inferior_data): Likewise.
8307 * sh-tdep.c (sh_gdbarch_init): Likewise.
8308 * skip.c (Ignore): Likewise.
8309 (skip_delete_command): Likewise.
8310 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8311 (library_list_start_library): Likewise.
8312 (solib_aix_current_sos): Likewise.
8313 * solib-darwin.c (get_darwin_info): Likewise.
8314 (darwin_current_sos): Likewise.
8315 * solib-dsbt.c (get_dsbt_info): Likewise.
8316 * solib-ia64-hpux.c (new_so_list): Likewise.
8317 (ia64_hpux_get_solib_linkage_addr): Likewise.
8318 * solib-spu.c (append_ocl_sos): Likewise.
8319 (spu_current_sos): Likewise.
8320 * solib-svr4.c (get_svr4_info): Likewise.
8321 (svr4_keep_data_in_core): Likewise.
8322 (library_list_start_library): Likewise.
8323 (svr4_default_sos): Likewise.
8324 (svr4_read_so_list): Likewise.
8325 * solib-target.c (library_list_start_library): Likewise.
8326 (solib_target_current_sos): Likewise.
8327 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8328 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8329 * symfile.c (default_symfile_segments): Likewise.
8330 * target-descriptions.c (tdesc_data_init): Likewise.
8331 (tdesc_create_reg): Likewise.
8332 (struct tdesc_type *): Likewise.
8333 (tdesc_create_vector): Likewise.
8334 (tdesc_set_struct_size): Likewise.
8335 (struct tdesc_type *): Likewise.
8336 (tdesc_free_feature): Likewise.
8337 (tdesc_create_feature): Likewise.
8338 * windows-nat.c (windows_add_thread): Likewise.
8339 (windows_make_so): Likewise.
8340 * xml-support.c (gdb_xml_body_text): Likewise.
8341 (gdb_xml_create_parser_and_cleanup): Likewise.
8342 (xml_process_xincludes): Likewise.
8343 * xml-syscall.c (allocate_syscalls_info): Likewise.
8344 (syscall_create_syscall_desc): Likewise.
8346 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8348 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8349 function, with code from i386_stap_parse_special_token.
8350 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8351 (i386_stap_parse_special_token): Move code to the two functions
8354 2014-01-09 Pedro Alves <palves@redhat.com>
8355 Hui Zhu <hui@codesourcery.com>
8358 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8359 bp_err_string. Don't mark the location shlib_disabled if the
8360 error thrown wasn't a generic or memory error. Catch errors
8361 thrown while inserting breakpoints in overlayed code. Output
8362 error message of software breakpoints.
8363 * remote.c (remote_insert_breakpoint): If this breakpoint has
8364 target-side commands but this stub doesn't support Z0 packets,
8365 throw NOT_SUPPORTED_ERROR error.
8366 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8367 * target.h (target_insert_breakpoint): Extend comment.
8368 (target_insert_hw_breakpoint): Add comment.
8370 2014-01-08 Pedro Alves <palves@redhat.com>
8372 * remote.c (remote_add_thread): Add threads silently if starting
8374 (remote_notice_new_inferior): If in all-stop, and starting up,
8375 don't call notice_new_inferior.
8376 (get_current_thread): New function, factored out from ...
8377 (add_current_inferior_and_thread): ... this. Adjust.
8378 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8379 found any thread, then select the remote's current thread as GDB's
8382 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8384 * NEWS: Create a new section for the next release branch.
8385 Rename the section of the current branch, now that it has
8388 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8390 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8391 * version.in: Bump version to 7.7.50.DATE-cvs.
8393 2014-01-08 Yao Qi <yao@codesourcery.com>
8395 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8396 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8397 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8399 2014-01-08 Yao Qi <yao@codesourcery.com>
8401 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8402 return value of bfd_get_filename to symbol_file_add_from_bfd.
8404 2014-01-08 Pierre Muller <muller@sourceware.org>
8407 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8408 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8409 to prim_record_mininal_symbol_and_info.
8410 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8411 in call to prim_record_minimal_symbol_and_info.
8412 (read_pe_exported_syms): Set index field of section_data.
8414 2014-01-07 Andrew Pinski <apinski@cavium.com>
8416 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8417 * features/aarch64.c: Regenerate.
8419 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8421 * target.c (return_null): Define.
8422 (update_current_target): Use it instead of return_zero for
8423 functions that return a pointer.
8425 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8427 * source.c (add_path): Fix check for duplicated paths in the previously
8430 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8432 * ada-lang.c: Remove duplicated include statements.
8433 * alphabsd-nat.c: Ditto.
8434 * amd64-darwin-tdep.c: Ditto.
8435 * amd64fbsd-nat.c: Ditto.
8436 * auto-load.c: Ditto.
8438 * breakpoint.c: Ditto.
8440 * fork-child.c: Ditto.
8441 * gdb_usleep.c: Ditto.
8442 * i386-darwin-tdep.c: Ditto.
8443 * i386fbsd-nat.c: Ditto.
8445 * inferior.c: Ditto.
8447 * linux-nat.c: Ditto.
8448 * linux-tdep.c: Ditto.
8449 * m68kbsd-nat.c: Ditto.
8450 * m68klinux-nat.c: Ditto.
8451 * microblaze-tdep.c: Ditto.
8452 * mips-linux-tdep.c: Ditto.
8453 * mn10300-tdep.c: Ditto.
8454 * nto-tdep.c: Ditto.
8455 * opencl-lang.c: Ditto.
8457 * printcmd.c: Ditto.
8458 * regcache.c: Ditto.
8459 * remote-m32r-sdi.c: Ditto.
8463 * tilegx-linux-nat.c: Ditto.
8464 * tilegx-tdep.c: Ditto.
8465 * tracepoint.c: Ditto.
8467 * vaxbsd-nat.c: Ditto.
8468 * windows-nat.c: Ditto.
8469 * xtensa-tdep.c: Ditto.
8471 2014-01-07 Yao Qi <yao@codesourcery.com>
8473 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8475 2014-01-07 Yao Qi <yao@codesourcery.com>
8476 Joel Brobecker <brobecker@adacore.com>
8478 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8479 (pdc_write_regs): Likewise.
8480 (fetch_regs_kernel_thread): Likewise.
8481 (store_regs_kernel_thread): Likewise.
8483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8485 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8486 tagged type objects to their actual type.
8488 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8490 * ada-valprint.c (print_field_values): Add "language" parameter.
8491 Update calls to print_field_values and print_variant_part.
8492 Pass new parameter "language" in call to val_print instead
8493 of "current_language". Replace call to ada_val_print by call
8495 (print_variant_part): Add "language" parameter.
8496 (ada_val_print_struct_union): Update call to print_field_values.
8498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8500 * ada-valprint.c (ui_memcpy): Delete.
8501 (ada_print_floating): Update documentation. Add empty line
8502 between between function documentation and implementation.
8503 Delete variable "buffer". Use ui_file_xstrdup in place of
8504 ui_file_put. Minor adjustments following this change.
8506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8508 * ada-valprint.c (ada_val_print_string): New function,
8509 extracted from ada_val_print_array.
8510 (ada_val_print_array): Replace extracted code by call
8511 to ada_val_print_string followed by a return. Move
8512 "else" branch to the function's top block.
8514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8516 * ada-valprint.c (ada_val_print_array): Move implementation
8517 down. Rename parameter "offset" and "val" into "offset_aligned"
8518 and "original_value" respectively. Add parameter "offset".
8520 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8522 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8523 re-organizing the code. Change the "???" message printed
8524 when target type is a TYPE_CODE_UNDEF into
8525 "<ref to undefined type>".
8527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8529 * ada-valprint.c (print_record): Delete, implementation inlined...
8530 (ada_val_print_struct_union): ... here. Remove call to
8531 ada_check_typedef in inlined implementation.
8533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8535 * ada-valprint.c (ada_val_print_gnat_array): New function,
8536 extracted from ada_val_print_1;
8537 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8538 (ada_val_print_flt, ada_val_print_struct_union)
8539 (ada_val_print_ref): Likewise.
8540 (ada_val_print_1): Delete variables i and elttype.
8541 Replace extracted-out code by call to corresponding
8544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8546 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8548 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8550 * ada-valprint.c (ada_val_print_1): Replace calls to
8551 ada_val_print_1 by calls to val_print.
8553 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8555 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8556 Update calls to self accordingly. Replace calls to c_val_print
8557 by calls to val_print.
8559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8561 * ada-valprint.c (print_record): Delete declaration.
8562 (adjust_type_signedness, ada_val_print_1): Likewise.
8563 (ada_val_print): Move function implementation down.
8564 (print_variant_part, print_field_values, print_record):
8565 Move function implementation up.
8567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8569 * python/py-type.c (typy_get_name): New function.
8570 (type_object_getset): Add entry for attribute "name".
8571 * NEWS: Add entry mentioning this new attribute.
8573 2014-01-07 Yao Qi <yao@codesourcery.com>
8575 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8578 2014-01-07 Yao Qi <yao@codesourcery.com>
8580 * gnu-nat.c (info_port_rights): Add qualifier const to
8583 2014-01-07 Yao Qi <yao@codesourcery.com>
8585 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8587 2014-01-07 Yao Qi <yao@codesourcery.com>
8589 * gnu-nat.c (make_inf) Update declaration.
8590 (make_inf): Make it static.
8591 (inf_set_traced): Likewise.
8592 (inf_port_to_thread, inf_task_died_status): Likewise.
8594 2014-01-07 Yao Qi <yao@codesourcery.com>
8596 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8598 2014-01-07 Yao Qi <yao@codesourcery.com>
8600 * gnu-nat.c (_initialize_gnu_nat): Declare.
8602 2014-01-07 Yao Qi <yao@codesourcery.com>
8604 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8606 (struct gdbarch_info) <byte_order>: Change type to
8608 <byte_order_for_code>: Likewise.
8609 * gdbarch.c, gdbarch.h: Regenerated.
8611 2014-01-06 Sasha Smundak <asmundak@google.com>
8613 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8615 2014-01-06 Tom Tromey <tromey@redhat.com>
8617 * doublest.c (convert_doublest_to_floatformat): Use const, not
8619 * somread.c (som_symtab_read): Likewise.
8621 2014-01-07 Hui Zhu <hui@codesourcery.com>
8623 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8624 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8625 (gdb_bfd_fopen): Ditto.
8626 (gdb_bfd_openr): Ditto.
8627 (gdb_bfd_openw): Ditto.
8628 (gdb_bfd_openr_iovec): Ditto.
8629 (gdb_bfd_fdopenr): Ditto.
8630 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8631 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8633 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8635 * symfile-mem.c (symbol_file_add_from_memory): Removed
8636 gdb_bfd_stash_filename.
8638 2014-01-03 Doug Evans <dje@google.com>
8640 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8643 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8645 Update year range in copyright notice of all files.
8647 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8649 * top.c (print_gdb_version): Set copyright year to 2014.
8651 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8653 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8655 For older changes see ChangeLog-2013.
8661 version-control: never