1 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4 best match method returned by find_overload_match is an xmethod.
5 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6 the best matching operator returned by find_overload_match is an
8 * valops.c: #include "extension.h".
9 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
10 Return void. The list of matching source methods is returned in
11 "fn_list" and a vector of matching debug method workers is
12 returned in "xm_worker_vec". Update all callers.
13 (value_find_oload_method_list): Likewise.
14 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
15 non-NULL, then the index of the best matching method in this
16 vector is returned. Update all callers.
17 (find_overload_match): Include xmethods while performing overload
20 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
22 * defs.h (enum lval_type): New enumerator "lval_xcallable".
23 * extension-priv.h (struct extension_language_ops): Add the
25 * extension.c (new_xmethod_worker, clone_xmethod_worker,
26 get_matching_xmethod_workers, get_xmethod_argtypes,
27 invoke_xmethod, free_xmethod_worker,
28 free_xmethod_worker_vec): New functions.
29 * extension.h: #include "common/vec.h".
30 New function declarations.
31 (struct xmethod_worker): New struct.
32 (VEC (xmethod_worker_ptr)): New vector type.
33 (xmethod_worker_ptr): New typedef.
34 (xmethod_worker_vec): Likewise.
35 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
37 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
38 (struct builtin_type): New field "xmethod".
39 * valarith.c (value_ptradd): Assert that the value argument is not
41 * valops.c (value_must_coerce_to_target): Return 0 for
42 lval_xcallable values.
43 * value.c (struct value): New field XM_WORKER in the field
45 (value_address, value_raw_address): Return 0 for lval_xcallable
47 (set_value_address): Assert that the value is not an
49 (value_free): Free the associated xmethod worker when freeing
50 lval_xcallable values.
51 (set_value_component_location): Assert that the WHOLE value is not
53 (value_of_xmethod, call_xmethod): New functions.
54 * value.h: Declare "struct xmethod_worker".
55 Declare new functions value_of_xmethod, call_xmethod.
57 2014-06-03 Joel Brobecker <brobecker@adacore.com>
58 Pedro Alves <palves@redhat.com>
61 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
62 New function, extracted from software_breakpoint_inserted_here_p.
63 (software_breakpoint_inserted_here_p): Replace factored out code
64 by call to find_non_raw_software_breakpoint_inserted_here.
65 (bp_target_info_copy_insertion_state): New function.
66 (bkpt_insert_location): Handle the case of a single-step
67 breakpoint already inserted at the same address.
68 (bkpt_remove_location): Handle the case of a single-step
69 breakpoint still inserted at the same address.
70 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
71 breakpoint already inserted at the same address.
72 (deprecated_remove_raw_breakpoint): Handle the case of a
73 non-raw breakpoint still inserted at the same address.
74 (find_single_step_breakpoint): New function, extracted from
75 single_step_breakpoint_inserted_here_p.
76 (find_single_step_breakpoint): New function,
77 factored out from single_step_breakpoint_inserted_here_p.
78 (single_step_breakpoint_inserted_here_p): Reimplement.
80 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
82 Pushed by Joel Brobecker <brobecker@adacore.com>
83 * source.c (show_substitute_path_command): Fix display of matching
86 2014-06-03 Gary Benson <gbenson@redhat.com>
88 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
90 2014-06-02 Doug Evans <xdje42@gmail.com>
92 Add parameter support for Guile.
93 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
94 (SUBDIR_GUILE_SRCS): Add scm-param.c.
95 (scm-param.o): New rule.
96 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
97 (gdbscm_misc_error): Declare.
98 (gdbscm_canonicalize_command_name): Declare.
99 (gdbscm_scm_to_host_string): Declare.
100 (gdbscm_scm_from_host_string): Declare.
101 (gdbscm_initialize_parameters): Declare.
102 * guile/guile.c (initialize_gdb_module): Call
103 gdbscm_initialize_parameters.
104 * guile/lib/gdb.scm: Export parameter symbols.
105 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
106 cmdscm_canonicalize_name and made public. All callers updated.
107 * guile/scm-exception.c (gdbscm_misc_error): New function.
108 * guile/scm-param.c: New file.
109 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
110 (gdbscm_scm_to_host_string): New function.
111 (gdbscm_scm_from_host_string): New function.
112 * scm-utils.c (gdbscm_gc_dup_argv): New function.
114 2014-06-02 Doug Evans <xdje42@gmail.com>
116 Add command support for Guile.
117 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
118 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
119 (scm-cmd.o): New rule.
120 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
121 (gdbscm_user_error_p): Declare.
122 (gdbscm_parse_command_name): Declare.
123 (gdbscm_valid_command_class_p): Declare.
124 (gdbscm_initialize_commands): Declare.
125 * guile/guile.c (initialize_gdb_module): Call
126 gdbscm_initialize_commands.
127 * guile/lib/gdb.scm: Export command symbols.
128 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
129 (throw-user-error): New function.
130 * guile/scm-cmd.c: New file.
131 * guile/scm-exception.c (user_error_symbol): New static global.
132 (gdbscm_user_error_p): New function.
133 (gdbscm_initialize_exceptions): Set user_error_symbol.
134 * scm-utils.c (gdbscm_gc_xstrdup): New function.
136 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
138 * top.c (command_loop): Handle comments here...
139 (command_line_input): ... not here.
141 2014-06-02 Doug Evans <xdje42@gmail.com>
143 Add progspace support for Guile.
144 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
145 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
146 (scm-progspace.o): New rule.
147 * guile/guile-internal.h (pspace_smob): New typedef.
148 (psscm_pspace_smob_pretty_printers): Declare.
149 (psscm_pspace_smob_from_pspace): Declare.
150 (psscm_scm_from_pspace): Declare.
151 * guile/guile.c (initialize_gdb_module): Call
152 gdbscm_initialize_pspaces.
153 * guile/lib/gdb.scm: Export progspace symbols.
154 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
156 (append-pretty-printer!): Ditto.
157 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
159 * guile/scm-progspace.c: New file.
161 2014-06-03 Alan Modra <amodra@gmail.com>
163 * ppc64-tdep.c (ppc64_standard_linkage8): New.
164 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
166 2014-06-02 Doug Evans <dje@google.com>
168 Add support for skeletonless type units.
169 * dwarf2read.c (struct dwarf2_per_objfile): New member
170 n_allocated_type_units.
171 (struct dwarf2_per_objfile) <tu_stats>: New member
172 nr_all_type_units_reallocs.
173 (create_signatured_type_table_from_index): Initialize
174 n_allocated_type_units
175 (create_all_type_units): Ditto.
176 (add_type_unit): Move up in file. New arg slot.
177 All callers updated. Increase space for all_type_units more
179 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
180 (lookup_dwo_signatured_type): Handle skeletonless TUs.
181 (lookup_dwp_signatured_type): Ditto.
182 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
184 (build_type_psymtabs_1): Leave type_unit_groups as
185 NULL if no TUs present.
186 (print_tu_stats): New function.
187 (process_skeletonless_type_unit): New function.
188 (process_dwo_file_for_skeletonless_type_units): New
190 (process_skeletonless_type_units): New function.
191 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
192 Call print tu_stats if debugging enabled.
194 2014-06-02 Pedro Alves <palves@redhat.com>
196 * breakpoint.c (build_target_command_list): Don't build a command
197 list if we have any duplicate location that isn't a dprintf.
199 2014-06-02 Pedro Alves <palves@redhat.com>
201 * breakpoint.c (dprintf_breakpoint_hit): New function.
202 (initialize_breakpoint_ops): Install it as dprintf's
203 breakpoint_hit method.
205 2014-06-02 Joel Brobecker <brobecker@adacore.com>
207 * source.c (substitute_path_rule_matches): Simplify using
208 filename_ncmp instead of FILENAME_CMP.
210 2014-06-02 Joel Brobecker <brobecker@adacore.com>
212 * source.c (substitute_path_rule_matches): Remove trailing spaces.
214 2014-06-01 Ludovic Courtès <ludo@gnu.org>
216 * configure.ac: When Guile is available, check for the
217 availability of 'scm_new_smob'.
218 * configure, config.h.in: Regenerate.
219 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
222 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
224 * frame.c (struct frame_info): Add stop_string field.
225 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
226 (get_prev_frame_always): Old content moved into
227 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
228 TRY_CATCH, handle MEMORY_ERROR exceptions.
229 (frame_stop_reason_string): New function definition.
230 * frame.h (unwind_stop_reason_to_string): Extend comment to
231 mention frame_stop_reason_string.
232 (frame_stop_reason_string): New function declaration.
233 * stack.c (frame_info): Switch to frame_stop_reason_string.
234 (backtrace_command_1): Switch to frame_stop_reason_string.
235 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
236 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
237 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
239 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
241 * frame.c (frame_stop_reason_string): Rename to ...
242 (unwind_stop_reason_to_string): this.
243 * frame.h (frame_stop_reason_string): Rename to ...
244 (unwind_stop_reason_to_string): this.
245 * stack.c (frame_info): Update call to frame_stop_reason_string.
246 (backtrace_command_1): Likewise.
247 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
248 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
250 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
252 * frame.c (remove_prev_frame): New function.
253 (get_prev_frame_if_no_cycle): Create / discard cleanup using
256 2014-05-29 Pedro Alves <palves@redhat.com>
258 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
259 and make it const. When a single-step decays to a continue,
260 clear 'step', not 'hw_step'. Pass whether the caller wanted
261 to step to user_visible_resume_ptid, not what we ask the
264 2014-05-29 Pedro Alves <palves@redhat.com>
266 * infrun.c (process_event_stop_test, handle_step_into_function)
267 (handle_step_into_function_backward): Adjust.
268 Don't set the even thread's stop_step and call stop_waiting before
269 calling end_stepping_range. Instead do that ...
270 (end_stepping_range): ... here. Take an ecs pointer parameter.
272 2014-05-29 Pedro Alves <palves@redhat.com>
274 * infrun.c (stop_stepping): Rename to ...
275 (stop_waiting): ... this.
276 (proceed): Update comment.
277 (process_event_stop_test, handle_inferior_event)
278 (handle_signal_stop, handle_step_into_function)
279 (handle_step_into_function_backward): Update.
281 2014-05-29 Pedro Alves <palves@redhat.com>
283 * infcall.c (run_inferior_call): Don't check whether the current
284 thread is running after the proceed call.
286 2014-05-29 Pedro Alves <palves@redhat.com>
287 Tom Tromey <tromey@redhat.com>
289 * NEWS: Mention "maint set target-async", "set mi-async", and that
290 background execution commands are now always available.
291 * target.h (target_async_permitted): Update comment.
292 * target.c (target_async_permitted, target_async_permitted_1):
294 (set_target_async_command): Rename to ...
295 (maint_set_target_async_command): ... this.
296 (show_target_async_command): Rename to ...
297 (maint_show_target_async_command): ... this.
298 (_initialize_target): Adjust.
299 * infcmd.c (prepare_execution_command): Make extern.
300 * inferior.h (prepare_execution_command): Declare.
301 * infrun.c (set_observer_mode): Leave target async alone.
302 * mi/mi-interp.c (mi_interpreter_init): Install
303 mi_on_sync_execution_done as sync_execution_done observer.
304 (mi_on_sync_execution_done): New function.
305 (mi_execute_command_input_handler): Don't print the prompt if we
306 just started a synchronous command with an async target.
307 (mi_on_resume): Check sync_execution before printing prompt.
308 * mi/mi-main.h (mi_async_p): Declare.
309 * mi/mi-main.c: Include gdbcmd.h.
310 (mi_async_p): New function.
311 (mi_async, mi_async_1): New globals.
312 (set_mi_async_command, show_mi_async_command, mi_async): New
314 (exec_continue): Call prepare_execution_command.
315 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
316 (mi_execute_async_cli_command): Use mi_async_p.
317 (_initialize_mi_main): Install "set mi-async". Make
318 "target-async" a deprecated alias.
320 2014-05-29 Pedro Alves <palves@redhat.com>
322 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
323 (_initialize_cli_interp): Adjust.
324 * event-loop.c: Include "observer.h".
325 (start_event_loop): Notify 'command_error' observers instead of
326 calling display_gdb_prompt. Remove FIXME comment.
327 * event-top.c (display_gdb_prompt): Remove call into the
329 * inf-loop.c: Include "observer.h".
330 (inferior_event_handler): Notify 'command_error' observers instead
331 of calling display_gdb_prompt.
332 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
333 observers instead of calling display_gdb_prompt.
334 * interps.c (interp_set): Don't call display_gdb_prompt.
335 (current_interp_display_prompt_p): Delete.
336 * interps.h (interp_prompt_p): Delete declaration.
337 (interp_prompt_p_ftype): Delete.
338 (struct interp_procs) <prompt_proc_p>: Delete field.
339 (current_interp_display_prompt_p): Delete declaration.
340 * mi-interp.c (mi_interpreter_prompt_p): Delete.
341 (_initialize_mi_interp): Adjust.
342 * tui-interp.c (tui_init): Install 'sync_execution_done' and
343 'command_error' observers.
344 (tui_on_sync_execution_done, tui_on_command_error): New
346 (tui_display_prompt_p): Delete.
347 (_initialize_tui_interp): Adjust.
349 2014-05-29 Pedro Alves <palves@redhat.com>
352 * cli/cli-interp.c: Include infrun.h and observer.h.
353 (cli_uiout, cli_interp): New globals.
354 (cli_on_signal_received, cli_on_end_stepping_range)
355 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
357 (cli_interpreter_init): Install them as 'end_stepping_range',
358 'signal_received' 'signal_exited', 'exited' and 'no_history'
360 (_initialize_cli_interp): Remove cli_interp local.
361 * infrun.c (handle_inferior_event): Call the several stop reason
362 observers instead of printing the stop reason directly.
363 (end_stepping_range): New function.
364 (print_end_stepping_range_reason, print_signal_exited_reason)
365 (print_exited_reason, print_signal_received_reason)
366 (print_no_history_reason): Make static, and add an uiout
367 parameter. Print to that instead of to CURRENT_UIOUT.
368 * infrun.h (print_end_stepping_range_reason)
369 (print_signal_exited_reason, print_exited_reason)
370 (print_signal_received_reason print_no_history_reason): New
372 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
374 <cli_uiout>: New field.
375 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
376 uiout for CLI output. Install 'signal_received',
377 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
379 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
380 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
381 (mi_on_no_history): New functions.
382 (ui_out_free_cleanup): Delete function.
383 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
384 instead use the one already stored in the MI interpreter data.
386 * tui/tui-interp.c: Include infrun.h and observer.h.
387 (tui_interp): New global.
388 (tui_on_signal_received, tui_on_end_stepping_range)
389 (tui_on_signal_exited, tui_on_exited)
390 (tui_on_no_history): New functions.
391 (tui_init): Install them as 'end_stepping_range',
392 'signal_received' 'signal_exited', 'exited' and 'no_history'
394 (_initialize_tui_interp): Delete tui_interp local.
396 2014-05-29 Pedro Alves <palves@redhat.com>
399 * linux-nat.c (linux_nat_resume_callback): Rename the second
400 parameter to 'except'. Skip LP if it points to EXCEPT.
401 (linux_nat_resume): Don't mark the event lwp as not stopped
402 before resuming sibling lwps. Instead ask
403 linux_nat_resume_callback to skip the event lwp. Mark it as not
404 stopped after actually resuming it.
405 (linux_handle_syscall_trap): Mark the lwp as not stopped after
407 (wait_lwp): Mark the lwp as stopped here.
408 (stop_wait_callback): Mark the lwp as not stopped right after
409 resuming it. Don't mark lwps as stopped here.
410 (linux_nat_filter_event): Mark the lwp as stopped earlier.
411 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
413 2014-05-29 Pedro Alves <palves@redhat.com>
416 * infrun.c (resume): Determine how much to resume depending on
417 whether the caller wanted a step, not whether we can hardware step
418 the target. Mark all threads that we intend to run as running,
419 unless we're calling an inferior function.
420 (normal_stop): If the thread is running an infcall, don't finish
422 * target.c (target_resume): Don't mark threads as running here.
424 2014-05-28 Joel Brobecker <brobecker@adacore.com>
426 * serial.c (_initialize_serial): Remove support for
427 the "set remotebaud" and "show remotebaud" commands.
428 * NEWS: Add entry documenting the removal of that command.
430 2014-05-28 Yao Qi <yao@codesourcery.com>
432 * charset.c: Fix typo in comments.
434 2014-05-27 Gary Benson <gbenson@redhat.com>
436 * utils.c (internal_vproblem): Prompt for a bug report.
438 2014-05-26 Andy Wingo <wingo@igalia.com>
440 * guile/scm-arch.c (arscm_mark_arch_smob):
441 * guile/scm-block.c (bkscm_mark_block_smob)
442 (bkscm_mark_block_syms_progress_smob):
443 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
444 * guile/scm-exception.c (exscm_mark_exception_smob):
445 * guile/scm-frame.c (frscm_mark_frame_smob):
446 * guile/scm-iterator.c (itscm_mark_iterator_smob):
447 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
448 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
449 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
450 (ppscm_mark_pretty_printer_worker_smob):
451 * guile/scm-symbol.c (syscm_mark_symbol_smob):
452 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
453 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
454 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
456 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
459 2014-05-26 Andy Wingo <wingo@igalia.com>
460 Doug Evans <xdje42@gmail.com>
462 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
463 empty_base_class. All uses updated.
464 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
465 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
467 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
468 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
469 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
470 (gdbscm_gsmob_has_property_p, add_property_name)
471 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
472 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
473 (gdb-object-has-property?, gdb-object-properties): Remove.
474 (gdb-object-kind): Renamed from gsmob-kind.
476 2014-05-26 Andy Wingo <wingo@igalia.com>
478 * configure.ac (try_guile_versions): Allow building with guile 2.2.
479 * configure: Regenerate.
481 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
483 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
485 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
487 * record-btrace.c (record_btrace_allow_memory_access): Remove.
488 (replay_memory_access_read_only, replay_memory_access_read_write)
489 (replay_memory_access_types, replay_memory_access)
490 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
491 (cmd_set_record_btrace, cmd_show_record_btrace)
492 (cmd_show_replay_memory_access): New.
493 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
494 (record_btrace_remove_breakpoint): Replace
495 record_btrace_allow_memory_access with replay_memory_access.
496 (_initialize_record_btrace): Add commands.
499 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
501 * aarch64-linux-nat.c (asm/ptrace.h): Include.
503 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
505 * MAINTAINERS (Write After Approval): Move self back from
508 2014-05-22 Pedro Alves <palves@redhat.com>
510 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
511 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
512 (disable_randomization, enum exec_direction_kind)
513 (execution_direction, stop_registers, start_remote)
514 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
515 (wait_for_inferior, normal_stop, get_last_target_status)
516 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
517 (insert_step_resume_breakpoint_at_sal)
518 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
519 (set_step_info, print_stop_event, signal_stop_state)
520 (signal_print_state, signal_pass_state, signal_stop_update)
521 (signal_print_update, signal_pass_update)
522 (update_signals_program_target, clear_exit_convenience_vars)
523 (displaced_step_dump_bytes, update_observer_mode)
524 (signal_catch_update, gdb_signal_from_command): Move
526 * infrun.h: ... to this new file.
527 * amd64-tdep.c: Include infrun.h.
528 * annotate.c: Include infrun.h.
529 * arch-utils.c: Include infrun.h.
530 * arm-linux-tdep.c: Include infrun.h.
531 * arm-tdep.c: Include infrun.h.
532 * break-catch-sig.c: Include infrun.h.
533 * breakpoint.c: Include infrun.h.
534 * common/agent.c: Include infrun.h instead of inferior.h.
535 * corelow.c: Include infrun.h.
536 * event-top.c: Include infrun.h.
537 * go32-nat.c: Include infrun.h.
538 * i386-tdep.c: Include infrun.h.
539 * inf-loop.c: Include infrun.h.
540 * infcall.c: Include infrun.h.
541 * infcmd.c: Include infrun.h.
542 * infrun.c: Include infrun.h.
543 * linux-fork.c: Include infrun.h.
544 * linux-nat.c: Include infrun.h.
545 * linux-thread-db.c: Include infrun.h.
546 * monitor.c: Include infrun.h.
547 * nto-tdep.c: Include infrun.h.
548 * procfs.c: Include infrun.h.
549 * record-btrace.c: Include infrun.h.
550 * record-full.c: Include infrun.h.
551 * remote-m32r-sdi.c: Include infrun.h.
552 * remote-mips.c: Include infrun.h.
553 * remote-notif.c: Include infrun.h.
554 * remote-sim.c: Include infrun.h.
555 * remote.c: Include infrun.h.
556 * reverse.c: Include infrun.h.
557 * rs6000-tdep.c: Include infrun.h.
558 * s390-linux-tdep.c: Include infrun.h.
559 * solib-irix.c: Include infrun.h.
560 * solib-osf.c: Include infrun.h.
561 * solib-svr4.c: Include infrun.h.
562 * target.c: Include infrun.h.
563 * top.c: Include infrun.h.
564 * windows-nat.c: Include infrun.h.
565 * mi/mi-interp.c: Include infrun.h.
566 * mi/mi-main.c: Include infrun.h.
567 * python/py-threadevent.c: Include infrun.h.
569 2014-05-22 Pedro Alves <palves@redhat.com>
571 * infrun.c (handle_inferior_event): Store the exit code for
572 --return-child-result here, instead of ...
573 (print_exited_reason): ... here.
575 2014-05-21 Pedro Alves <palves@redhat.com>
578 * gdbthread.h (struct thread_control_state): New field
580 * infrun.c (follow_fork): Copy the new thread control field to the
582 (clear_proceed_status_thread): Clear the new thread control field.
583 (proceed): Set the new thread control field.
584 * interps.h (command_interp): Declare.
585 * interps.c (command_interpreter): New global.
586 (command_interp): New function.
587 (interp_exec): Set `command_interpreter' while here.
588 * cli-out.c (cli_uiout_dtor): New function.
589 (cli_ui_out_impl): Install it.
590 * mi/mi-interp.c: Include cli-out.h.
591 (mi_cmd_interpreter_exec): Add comment.
592 (restore_current_uiout_cleanup): New function.
593 (ui_out_free_cleanup): New function.
594 (mi_on_normal_stop): If finishing an execution command started by
595 a CLI command, or any kind of breakpoint-like event triggered,
596 print the stop event to the output (CLI) stream.
597 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
599 2014-05-21 Pedro Alves <palves@redhat.com>
601 * cli/cli-cmds.c (list_command): Handle the first "list" after the
602 current source line having changed.
603 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
604 * infrun.c (normal_stop): Adjust call to
605 set_current_sal_from_frame.
606 * source.c (clear_lines_listed_range): New function.
607 (set_current_source_symtab_and_line, identify_source_line): Clear
608 the lines listed range.
609 (line_info): Handle the first "info line" after the current source
611 * stack.c (print_stack_frame): Remove center handling.
612 (set_current_sal_from_frame): Remove 'center' parameter. Don't
615 2014-05-21 Pedro Alves <palves@redhat.com>
617 * inf-child.c (inf_child_mourn_inferior): New function.
618 * inf-child.h (inf_child_mourn_inferior): New declaration.
619 * darwin-nat.c (darwin_mourn_inferior): Use
620 inf_child_mourn_inferior.
621 * gnu-nat.c (gnu_mourn_inferior): Likewise.
622 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
623 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
624 * nto-procfs.c (procfs_mourn_inferior): Likewise.
625 * windows-nat.c (windows_mourn_inferior): Likewise.
627 2014-05-21 Doug Evans <xdje42@gmail.com>
629 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
631 2014-05-21 Doug Evans <xdje42@gmail.com>
633 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
634 (gdbscm_out_of_range_error): Ditto.
635 (gdbscm_memory_error): Ditto.
636 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
637 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
638 (gdbscm_out_of_range_error): Update.
639 (gdbscm_memory_error): Update.
640 (gdbscm_scm_to_target_string_unsafe): Delete.
642 2014-05-21 Pedro Alves <palves@redhat.com>
644 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
646 (inf_child_open_target): New function.
647 (inf_child_open): Use inf_child_open_target to push the target
648 instead of erroring out.
649 (inf_child_disconnect, inf_child_close)
650 (inf_child_maybe_unpush_target): New functions.
651 (inf_child_target): Install inf_child_disconnect and
652 inf_child_close. Store a pointer to the returned object.
653 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
655 * target.c (auto_connect_native_target): New global.
656 (show_default_run_target): New function.
657 (find_default_run_target): Return NULL if automatically connecting
658 to the native target is disabled.
659 (_initialize_target): Install set/show auto-connect-native-target.
660 * NEWS: Mention "set auto-connect-native-target", and "target
662 * linux-nat.c (super_close): New global.
663 (linux_nat_close): Call super_close.
664 (linux_nat_add_target): Store a pointer to the base class's
666 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
667 inf_child_maybe_unpush.
668 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
670 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
671 the inferior. Use inf_child_maybe_unpush_target.
672 (inf_ttrace_attach): Don't push the target if it is already
674 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
675 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
676 after mourning the inferior. Use inf_child_maybe_unpush_target.
677 (darwin_attach_pid): Don't push the target if it is already
679 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
680 mourning the inferior. Use inf_child_maybe_unpush_target.
681 (gnu_detach): Use inf_child_maybe_unpush_target.
682 * go32-nat.c (go32_create_inferior): Don't push the target if it
684 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
685 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
686 (procfs_open): Rename to ...
687 (procfs_open_1): ... this. Add target_ops parameter. Adjust
688 comments. Can target_preopen before changing node. Call
689 inf_child_open_target to push the target explicitly.
690 (procfs_attach): Don't push the target if it is already pushed.
691 (procfs_detach): Use inf_child_maybe_unpush_target.
692 (procfs_create_inferior): Don't push the target if it is already
694 (nto_native_ops): New global.
695 (procfs_open): Reimplement.
696 (procfs_native_open): New function.
697 (init_procfs_targets): Install procfs_native_open as to_open of
698 "target native". Store a pointer to the "native" target in
700 * procfs.c (procfs_attach): Don't push the target if it is already
702 (procfs_detach): Use inf_child_maybe_unpush_target.
703 (procfs_mourn_inferior): Only unpush the target after mourning the
704 inferior. Use inf_child_maybe_unpush_target.
705 (procfs_init_inferior): Don't push the target if it is already
707 * windows-nat.c (do_initial_windows_stuff): Don't push the target
708 if it is already pushed.
710 2014-05-21 Pedro Alves <palves@redhat.com>
712 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
713 and "procfs" targets are now called "native" instead.
715 2014-05-21 Pedro Alves <palves@redhat.com>
717 * go32-nat.c (go32_open): Delete.
718 (go32_target): Don't override the to_open method.
720 2014-05-21 Pedro Alves <palves@redhat.com>
722 * nto-procfs.c (procfs_can_run): New function.
723 (nto_procfs_ops): New global.
724 (init_procfs_targets): New, based on procfs_target. Install
725 "target native" in addition to "target procfs".
726 (_initialize_procfs): Call init_procfs_targets instead of adding
729 2014-05-21 Pedro Alves <palves@redhat.com>
731 * windows-nat.c (windows_target): Don't override to_shortname,
732 to_longname or to_doc.
734 2014-05-21 Pedro Alves <palves@redhat.com>
736 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
739 2014-05-21 Pedro Alves <palves@redhat.com>
741 * darwin-nat.c (_initialize_darwin_inferior): Don't override
742 to_shortname, to_longname or to_doc.
744 2014-05-21 Pedro Alves <palves@redhat.com>
746 * go32-nat.c (go32_target): Don't override to_shortname,
747 to_longname or to_doc.
749 2014-05-21 Pedro Alves <palves@redhat.com>
751 * inf-child.c (inf_child_open): Remove mention of "child".
752 (inf_child_target): Rename target to "native" instead of "child".
754 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
756 * Makefile.in (SFILES): Delete "regset.c".
757 (COMMON_OBS): Delete "regset.o".
759 * regset.h (regset_alloc): Delete prototype.
761 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
763 * sparc-linux-tdep.c (sparc32_linux_gregset)
764 (sparc32_linux_fpregset): New static regset structures.
765 (sparc32_linux_init_abi): Drop dynamic regset allocations.
766 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
768 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
769 (sparc64_linux_fpregset): New static regset structures.
770 (sparc64_linux_init_abi): Drop dynamic regset allocations.
771 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
772 New static regset structures.
773 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
774 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
775 New static regset structures.
776 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
777 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
778 New static regset structures.
779 (sparc64obsd_init_abi): Drop dynamic regset allocations.
780 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
781 New static regset structures.
782 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
784 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
786 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
787 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
788 register maps ("regmaps") from "*regset" to "*regmap". Do this
789 for all regmap types and variables.
790 * sparc-linux-tdep.c (sparc32_linux_step_trap)
791 (sparc32_linux_supply_core_gregset)
792 (sparc32_linux_collect_core_gregset)
793 (sparc32_linux_supply_core_fpregset)
794 (sparc32_linux_collect_core_fpregset): Likewise.
795 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
796 (sparc_gregmap, sparc_fpregmap): ... these.
797 (sparc_supply_gregset, sparc_collect_gregset)
798 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
799 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
800 (_initialize_sparc_nat): Rename regmaps.
801 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
802 (sparc_gregmap, sparc_fpregmap): ... these.
803 (sparc_supply_gregset, sparc_collect_gregset)
804 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
805 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
807 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
808 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
810 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
812 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
813 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
814 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
816 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
817 (sparc32_bsd_fpregset): Rename to...
818 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
819 (sparc32_bsd_fpregmap): ... these.
820 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
821 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
822 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
823 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
824 (struct sparc_gregmap, struct sparc_fpregmap)
825 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
826 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
827 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
828 (sparc32_supply_regset, sparc32_collect_gregset)
829 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
831 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
832 (sparc64_linux_ptrace_gregmap): ... this.
833 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
834 (_initialize_sparc64_linux_nat): Rename regmaps.
835 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
836 (sparc64_linux_core_gregmap): ... this.
837 (sparc64_linux_supply_core_gregset)
838 (sparc64_linux_collect_core_gregset)
839 (sparc64_linux_supply_core_fpregset)
840 (sparc64_linux_collect_core_fpregset): Rename regmaps.
841 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
842 (sparc64_sol2_fpregset): Rename to...
843 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
844 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
845 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
847 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
848 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
849 (sparc64_bsd_fpregset): Rename to...
850 (struct sparc_gregmap, sparc64_sol2_gregmap)
851 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
852 (sparc64_bsd_fpregmap): ... these.
853 (sparc64_supply_gregset, sparc64_collect_gregset)
854 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
856 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
857 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
858 (sparc64fbsd_gregmap): ... this.
859 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
860 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
862 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
863 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
864 (sparc64nbsd_collect_fpregset): Likewise.
865 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
866 (sparc64nbsd_gregmap): ... this.
867 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
869 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
870 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
871 (sparc64obsd_gregmap): ... this.
872 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
874 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
875 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
876 (sparc32nbsd_gregmap): ... this.
877 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
880 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
882 * score-tdep.c (score7_linux_gregset): New static regset
884 (score7_linux_regset_from_core_section): Remove dynamic regset
886 (score_gdbarch_init): Drop allocation of tdep structure.
887 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
891 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
893 (am33_regset_from_core_section): Remove dynamic regset
896 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
898 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
899 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
901 (mips_linux_regset_from_core_section): Remove dynamic regset
903 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
904 'gregset64', 'fpregset', and 'fpregset64'.
905 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
908 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
910 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
912 (amd64_regset_from_core_section): Remove dynamic regset
914 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
916 (amd64obsd_regset_from_core_section): Remove dynamic regset
918 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
920 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
921 x86-common regset supply function.
922 * i386-tdep.c (i386_collect_gregset): Make static.
923 (i386_gregset): New global regset structure.
924 (i386_fpregset, i386_xstateregset): New static regset structures.
925 (i386_regset_from_core_section): Remove dynamic regset
927 (i386_gdbarch_init): Remove initialization of tdep fields
928 'gregset', 'fpregset', and 'xstateregset'.
929 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
930 'fpregset', and 'xstateregset'.
931 (i386_collect_gregset): Remove prototype.
932 (i386_gregset): New declaration.
933 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
935 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
938 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
940 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
941 (arm_linux_vfpregset): New static regset structures.
942 (arm_linux_regset_from_core_section): Remove dynamic allocation of
944 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
945 and 'vfpregset' fields.
947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
949 * aarch64-linux-tdep.c (aarch64_linux_gregset)
950 (aarch64_linux_fpregset): New static regset structures.
951 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
952 of regset structures.
953 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
956 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
958 * regset.h (struct regset): Remove gdbarch field.
959 * regset.c (regset_alloc): Drop initialization of gdbarch field.
960 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
961 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
963 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
964 (ppc32_linux_fpregset, ppc32_linux_vrregset)
965 (ppc32_linux_vsxregset): Likewise.
966 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
967 via the regcache instead of the regset.
968 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
969 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
970 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
971 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
974 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
976 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
978 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
979 (alphanbsd_aout_gregset): Likewise.
980 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
981 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
983 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
984 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
986 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
987 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
988 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
989 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
990 * m88k-tdep.c (m88k_gregset): Likewise.
991 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
992 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
993 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
994 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
995 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
996 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
997 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
998 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
999 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1001 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1002 * sh-tdep.h (sh_corefile_gregset): Likewise.
1003 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1004 * vax-tdep.c (vax_gregset): Likewise.
1006 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1008 Fix TLS access for -static -pthread.
1009 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1010 (try_thread_db_load_1): Initialize it.
1011 (thread_db_get_thread_local_address): Call it if LM is zero.
1012 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1013 * target.h (struct target_ops) (to_get_thread_local_address): Add
1014 load_module_addr comment.
1016 2014-05-21 Pedro Alves <palves@redhat.com>
1018 * dcache.c (dcache_read_memory_partial): If reading the cache line
1019 fails, fallback to reading just the memory the caller wanted.
1021 2014-05-20 Doug Evans <dje@google.com>
1023 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1024 instead of get_current_arch.
1026 2014-05-20 Pedro Alves <palves@redhat.com>
1028 * NEWS: Mention that compare-sections now works with all targets.
1030 * remote.c (PACKET_qCRC): New enum value.
1031 (remote_verify_memory): Don't send qCRC if the target has no
1032 execution. Use packet_support/packet_ok. If the target doesn't
1033 support the qCRC packet, fallback to a deep memory copy.
1034 (compare_sections_command): Say "target image" instead of "remote
1036 (_initialize_remote): Add PACKET_qCRC to the list of config
1037 packets that have no associated command. Extend comment.
1038 * target.c (simple_verify_memory, default_verify_memory): New
1040 * target.h (struct target_ops) <to_verify_memory>: Default to
1041 default_verify_memory.
1042 (simple_verify_memory): New declaration.
1043 * target-delegates.c: Regenerate.
1045 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1047 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1049 2014-05-20 Hui Zhu <hui@codesourcery.com>
1050 Yao Qi <yao@codesourcery.com>
1053 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1054 and change address of sp and pc.
1056 2014-05-19 Tom Tromey <tromey@redhat.com>
1058 * gdbtypes.c (rank_function): Use XNEWVEC.
1059 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1061 2014-05-19 Doug Evans <dje@google.com>
1063 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1064 build_type_unit_groups and moved closer to only caller. Remove
1065 arguments. All references updated. Remove outdated .gdb_index
1067 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1068 build_type_psymtabs_1.
1070 2014-05-19 Doug Evans <dje@google.com>
1072 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1073 n_type_unit_groups, all_type_unit_groups. All uses removed.
1074 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1075 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1076 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1077 (add_type_unit_group_to_table): Delete.
1079 2014-05-19 Doug Evans <dje@google.com>
1081 * eval.c (evaluate_subexp_standard): Add some comments.
1083 2014-05-17 Doug Evans <xdje42@gmail.com>
1085 * progspace.c (remove_program_space): Delete, unused.
1086 * progspace.h (remove_program_space): Ditto.
1088 2014-05-17 Doug Evans <xdje42@gmail.com>
1090 * inferior.c (prune_inferiors): Fix comment.
1091 (remove_inferior_command): Call prune_program_spaces.
1093 2014-05-16 Doug Evans <dje@google.com>
1095 New command line option -D.
1097 * main.c (set_gdb_data_directory): New function.
1098 (captured_main): Recognize -D. Flag error for --data-directory "".
1099 Call set_gdb_data_directory.
1100 (print_gdb_help): Print --data-directory, -D.
1101 * main.h (set_gdb_data_directory): Declare.
1102 * top.c (staged_gdb_datadir): New static global.
1103 (set_gdb_datadir): Call set_gdb_data_directory
1104 (show_gdb_datadir): New function.
1105 (init_main): Update init of data-directory parameter.
1107 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1109 Import the "dirfd" gnulib module.
1110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1111 * gnulib/aclocal.m4: Update.
1112 * gnulib/config.in: Update.
1113 * gnulib/configure: Update.
1114 * gnulib/import/Makefile.am: Update.
1115 * gnulib/import/Makefile.in: Update.
1116 * gnulib/import/dirfd.c: New.
1117 * gnulib/import/m4/dirfd.m4: New.
1118 * gnulib/import/m4/gnulib-cache.m4: Update.
1119 * gnulib/import/m4/gnulib-comp.m4: Update.
1121 2014-05-16 Pierre Muller <muller@sourceware.org>
1122 Yao Qi <yao@codesourcery.com>
1124 * valprint.c (print_wchar): Move the code on checking whether
1125 W is a printable wide char to the default branch of switch
1126 statement below. Call wchar_printable instead of gdb_iswprint.
1128 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1130 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1131 ldr.w and ldrd instructions.
1133 2014-05-15 Doug Evans <dje@google.com>
1135 * dwarf2read.c (read_structure_type): Delete outdated comments.
1137 2014-05-14 Tom Tromey <tromey@redhat.com>
1139 * macrocmd.c (print_macro_definition): Reindent.
1141 2014-05-13 Doug Evans <xdje42@gmail.com>
1143 * python/py-cmd.c (cmdpy_completer): Add comment.
1144 (completers): Make const.
1146 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1148 * infrun.c (resume): Remove should_resume (unused). Move up
1149 declaration of resume_ptid.
1151 2014-05-13 Tom Tromey <tromey@redhat.com>
1153 * language.h (unop_type_check): Remove.
1154 (binop_type_check): Don't declare.
1156 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1158 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1159 call to regcache_raw_collect.
1161 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1163 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1164 mi_console->quote as the quoting character.
1166 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1168 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1170 2014-04-29 Tom Tromey <tromey@redhat.com>
1172 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1173 "show debug varobj".
1175 2014-05-07 Kyle McMartin <kyle@redhat.com>
1177 Pushed by Joel Brobecker <brobecker@adacore.com>.
1178 * aarch64-tdep.c (aarch64_software_single_step): New function.
1179 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1180 with aarch64_software_single_step.
1182 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1186 2014-05-05 Keith Seitz <keiths@redhat.com>
1188 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1189 variable or history value is successfully parsed.
1191 2014-05-05 Yao Qi <yao@codesourcery.com>
1192 Pedro Alves <palves@redhat.com>
1194 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1195 address of blocks that intersects the requested range. Trim
1196 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1198 * ctf.c (ctf_xfer_partial): Likewise.
1200 2014-05-05 Yao Qi <yao@codesourcery.com>
1202 * printcmd.c (display_command): Remove the check to
1203 target_has_execution.
1205 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1207 * ppcobsd-nat.c: Include "obsd-nat.h".
1208 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1210 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1212 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1214 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1215 and 16-bit signed and unsigned arguments. Update comment.
1216 (stap_parse_probe_arguments): Extend code to handle such
1217 arguments. Use warning instead of complaint to notify about
1218 unrecognized bitness.
1220 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1222 PR breakpoints/16889
1223 * stap-probe.c (stap_parse_probe_arguments): Simplify
1224 check for non-prefixed probes (i.e., probes whose
1225 arguments do not start with "N@"). Always set the
1226 argument type to a sane value.
1228 2014-05-01 David Taylor <dtaylor@emc.com>
1230 * remote.c (compare_sections_command): Add -r option to compare
1231 all loadable read-only sections.
1233 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1235 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1236 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1238 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1239 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1240 Remove unused CORE_ADDR argument. Update all callers.
1242 2014-04-29 Pedro Alves <palves@redhat.com>
1244 * remote.c (struct packet_config) <detect>: Extend comment.
1245 (add_packet_config_cmd): Don't set the config's detect or support
1247 (init_all_packet_configs): Also initialize the config's 'detect'
1249 (reset_all_packet_configs_support): New function.
1250 (remote_open_1): Call reset_all_packet_configs_support instead of
1251 init_all_packet_configs.
1252 (_initialize_remote): Initialize all packet configs. Assert that
1253 all packets have an associated command, except a few known
1256 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1258 * dwarf2read.c (read_subrange_type): Handle dynamic
1259 DW_AT_lower_bound attributes.
1261 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1263 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1264 dynamic bounds before computing its upper bound.
1265 (ada_discrete_type_low_bound): Same as above with the lower bound.
1267 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1269 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1270 range types. Adjust the array handling implementation to
1271 take advantage of this change.
1272 (resolve_dynamic_range): New function, mostly extracted from
1273 resolve_dynamic_bounds.
1274 (resolve_dynamic_array): New function, mostly extracted from
1275 resolve_dynamic_bounds.
1276 (resolve_dynamic_bounds): Delete.
1277 (resolve_dynamic_type): Reimplement. Add handling of
1278 TYPE_CODE_RANGE types.
1280 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1282 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1283 handling of parallel ___XA types.
1285 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1287 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1288 unnecessary second call to static_unwrap_type.
1290 2014-04-27 Hui Zhu <hui@codesourcery.com>
1292 * stack.c (print_frame_info): Call do_gdb_disassembly with
1293 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1295 2014-04-26 Doug Evans <xdje42@gmail.com>
1297 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1299 2014-04-25 Pedro Alves <palves@redhat.com>
1302 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1303 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1304 and newline from built string.
1305 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1306 (linux_ptrace_attach_fail_reason): ... this.
1307 * linux-nat.c (linux_nat_attach): Adjust to use
1308 linux_ptrace_attach_fail_reason.
1310 2014-04-25 Pedro Alves <palves@redhat.com>
1312 * remote.c (struct remote_state): Remove multi_process_aware,
1313 non_stop_aware, cond_tracepoints, cond_breakpoints,
1314 breakpoint_commands, fast_tracepoints, static_tracepoints,
1315 install_in_trace, disconnected_tracing,
1316 enable_disable_tracepoints, string_tracing, and
1317 augmented_libraries_svr4_read fields.
1318 (remote_multi_process_p): Move further below in the file.
1319 (struct packet_config): Add comments.
1320 (update_packet_config): Delete function.
1321 (show_packet_config_cmd): Use packet_config_support.
1322 (add_packet_config_cmd): Use NULL as set callback.
1323 (packet_ok): "set remote foo-packet"-style commands no longer
1324 change config->supported -- adjust.
1325 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1326 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1327 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1328 (PACKET_QNonStop, PACKET_multiprocess_feature)
1329 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1330 (PACKET_DisconnectedTracing_feature)
1331 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1332 (set_remote_protocol_packet_cmd): Delete function.
1333 (packet_config_support, packet_support): New functions.
1334 (set_remote_protocol_Z_packet_cmd): Don't call
1335 update_packet_config.
1336 (remote_query_attached, remote_pass_signals)
1337 (remote_program_signals, remote_threads_info)
1338 (remote_threads_extra_info, remote_start_remote): Use
1340 (remote_start_remote): Use packet_config_support and
1342 (init_all_packet_configs): Set all packets to unknown support,
1343 instead of calling update_packet_config.
1344 (remote_check_symbols): Use packet_support.
1345 (remote_supported_packet): Unconditionally set the packet config's
1347 (remote_multi_process_feature, remote_non_stop_feature)
1348 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1349 (remote_breakpoint_commands_feature)
1350 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1351 (remote_install_in_trace_feature)
1352 (remote_disconnected_tracing_feature)
1353 (remote_enable_disable_tracepoint_feature)
1354 (remote_string_tracing_feature)
1355 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1356 (remote_protocol_features): Adjust to use remote_supported_packet
1357 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1358 "ConditionalTracepoints", "ConditionalBreakpoints",
1359 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1360 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1361 "EnableDisableTracepoints", and "tracenz".
1362 (remote_query_supported): Use packet_support.
1363 (remote_open_1): Adjust.
1364 (extended_remote_attach_1): Use packet_support. Switch on the
1365 result of packet_ok instead of checking whether the packet ended
1367 (remote_vcont_resume): Use packet_support.
1368 (remote_resume, remote_stop_ns, fetch_register_using_p)
1369 (remote_prepare_to_store, store_register_using_P)
1370 (check_binary_download, remote_write_bytes): Use packet_support.
1371 (remote_vkill): Use packet_support. Switch on the result of
1372 packet_ok instead of checking whether the packet ended up
1374 (extended_remote_supports_disable_randomization): Use
1376 (extended_remote_run): Switch on the result of packet_ok instead
1377 of checking whether the packet ended up disabled.
1378 (remote_insert_breakpoint, remote_remove_breakpoint)
1379 (remote_insert_watchpoint, remote_remove_watchpoint)
1380 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1382 (remote_search_memory): Use packet_config_support.
1383 (remote_get_thread_local_address, remote_get_tib_address)
1384 (remote_hostio_send_command, remote_can_execute_reverse): Use
1386 (remote_supports_cond_tracepoints)
1387 (remote_supports_cond_breakpoints)
1388 (remote_supports_fast_tracepoints)
1389 (remote_supports_static_tracepoints)
1390 (remote_supports_install_in_trace)
1391 (remote_supports_enable_disable_tracepoint)
1392 (remote_supports_string_tracing)
1393 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1394 the packet config says the feature is enabled or disabled.
1395 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1396 (remote_get_trace_status): Use packet_support.
1397 (remote_set_disconnected_tracing): Adjust to check whether the
1398 feature is enabled with packet_support.
1399 (remote_set_trace_buffer_size, remote_use_agent)
1400 (remote_can_use_agent, remote_supports_btrace): Use
1402 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1403 Use packet_config_support.
1404 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1405 the packet config says the feature is enabled or disabled.
1406 (set_range_stepping): Use packet_support.
1408 2014-04-25 Tom Tromey <tromey@redhat.com>
1410 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1413 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1415 * NEWS: Mention support for C99 variable length arrays.
1417 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1419 * ada-lang.c (standard_exc): Expand introductory comment.
1421 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1422 Walfred Tedeschi <walfred.tedeschi@intel.com>
1424 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1426 (amd64_linux_read_description): Add code to handle AVX512 xstate
1427 mask and return respective tdesc.
1428 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1429 and features/i386/x32-avx512-linux.c.
1430 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1431 (amd64_linux_core_read_description): Add code to handle AVX512
1432 xstate mask and return respective tdesc.
1433 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1434 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1436 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1437 (tdesc_amd64_avx512_linux): New prototype.
1438 (tdesc_x32_avx512_linux): Likewise.
1439 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1440 features/i386/x32-avx512.c.
1441 (amd64_ymm_avx512_names): New register names for pseudo
1443 (amd64_ymmh_avx512_names): New register names for raw registers
1445 (amd64_k_names): New register names for K registers.
1446 (amd64_zmmh_names): New register names for ZMM raw registers.
1447 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1448 (amd64_xmm_avx512_names): New register names for XMM16-31
1450 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1452 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1453 if feature is present.
1454 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1455 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1456 (AMD64_NUM_REGS): Adjust to new number of registers.
1457 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1458 registers supplied via XSTATE by AVX512 registers.
1459 (i386_linux_read_description): Add case for AVX512.
1460 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1461 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1462 (i386_linux_core_read_description): Add case for AVX512.
1463 (i386_linux_init_abi): Install supported register note section
1465 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1467 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1468 registers to be number of zmm7h + 1.
1469 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1470 * i386-tdep.c: Include features/i386/i386-avx512.c.
1471 (i386_zmm_names): Add ZMM pseudo register names array.
1472 (i386_zmmh_names): Add ZMM raw register names array.
1473 (i386_k_names): Add K raw register names array.
1474 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1475 registers. AVX512 has 16 more ZMM registers than there are YMM
1477 (i386_zmmh_regnum_p): Add function to look up register number of
1479 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1480 (i386_k_regnum_p): Likewise for K raw registers.
1481 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1482 registers added by AVX512.
1483 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1484 registers added by AVX512.
1485 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1487 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1488 (i386_pseudo_register_name): Add ZMM pseudo registers.
1489 (i386_zmm_type): Construct and return vector registers type for ZMM
1491 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1492 ZMM0-31 pseudo registers and K registers.
1493 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1494 and YMM16-31 registers from register cache.
1495 (i386_pseudo_register_write): Add code to write K, ZMM and
1497 (i386_register_reggroup_p): Add code to include/exclude AVX512
1498 registers in/from respective register groups.
1499 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1500 registers if feature is present in xcr0.
1501 (i386_gdbarch_init): Add code to initialize AVX512 feature
1502 variables in tdep structure, wire in pseudo registers and call
1503 initialize_tdesc_i386_avx512.
1504 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1506 (i386_regnum): Add AVX512 registers.
1507 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1508 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1509 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1510 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1512 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1513 (i386_ymm_avx512_regnum_p): Likewise.
1514 (i386_k_regnum_p): Likewise.
1515 (i386_zmm_regnum_p): Likewise.
1516 (i386_zmmh_regnum_p): Likewise.
1517 * i387-tdep.c : Update year in copyright notice.
1518 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1520 (XSAVE_YMM_AVX512_ADDR): New macro.
1521 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1523 (XSAVE_XMM_AVX512_ADDR): New macro.
1524 (xsave_avx512_k_offset): New table for K register offsets in
1526 (XSAVE_AVX512_K_ADDR): New macro.
1527 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1529 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1530 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1532 (i387_collect_xsave): Add code to collect AVX512 registers from
1534 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1535 of XMM16-31 registers.
1536 (I387_NUM_K_REGS): New define for number of K registers.
1537 (I387_K0_REGNUM): New define for K0 register number.
1538 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1539 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1540 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1542 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1543 (I387_XMM16_REGNUM): New define for XMM16 register number.
1544 (I387_YMM0_REGNUM): New define for YMM0 register number.
1545 (I387_KEND_REGNUM): New define for last K register number.
1546 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1547 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1549 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1551 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1553 * features/Makefile: Add AVX512 related files.
1554 * features/i386/32bit-avx512.xml: New file.
1555 * features/i386/64bit-avx512.xml: Likewise.
1556 * features/i386/amd64-avx512-linux.c: Likewise.
1557 * features/i386/amd64-avx512-linux.xml: Likewise.
1558 * features/i386/amd64-avx512.c: Likewise.
1559 * features/i386/amd64-avx512.xml: Likewise.
1560 * features/i386/i386-avx512-linux.c: Likewise.
1561 * features/i386/i386-avx512-linux.xml: Likewise.
1562 * features/i386/i386-avx512.c: Likewise.
1563 * features/i386/i386-avx512.xml: Likewise.
1564 * features/i386/x32-avx512-linux.c: Likewise.
1565 * features/i386/x32-avx512-linux.xml: Likewise.
1566 * features/i386/x32-avx512.c: Likewise.
1567 * features/i386/x32-avx512.xml: Likewise.
1568 * regformats/i386/amd64-avx512-linux.dat: New file.
1569 * regformats/i386/amd64-avx512.dat: Likewise.
1570 * regformats/i386/i386-avx512-linux.dat: Likewise.
1571 * regformats/i386/i386-avx512.dat: Likewise.
1572 * regformats/i386/x32-avx512-linux.dat: Likewise.
1573 * regformats/i386/x32-avx512.dat: Likewise.
1574 * NEWS: Add note about new support for AVX512.
1577 2014-04-23 Pedro Alves <palves@redhat.com>
1579 * breakpoint.c (insert_bp_location): Tolerate errors if the
1580 breakpoint is set in a user-loaded objfile.
1581 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1582 location is marked shlib_disabled. If the breakpoint is set in a
1583 user-loaded objfile is a GDB-side memory breakpoint, validate it
1584 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1585 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1587 * mem-break.c (memory_validate_breakpoint): New function.
1588 * objfiles.c (userloaded_objfile_contains_address_p): New
1590 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1591 * target.h (memory_validate_breakpoint): New declaration.
1593 2014-04-23 Pedro Alves <palves@redhat.com>
1595 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1596 the breakpoint is set in a shared library, only suppress
1597 errors for software breakpoints, not hardware breakpoints.
1599 2014-04-22 Pedro Alves <palves@redhat.com>
1601 * infrun.c (schedlock_applies): New function, factored out from
1602 find_thread_needs_step_over.
1603 (find_thread_needs_step_over): Use it.
1604 (switch_back_to_stepped_thread): Always clear trap_expected if the
1605 step over is finished. Return early if scheduler locking applies.
1606 Look for the stepping thread and a potential step-over thread with
1608 (currently_stepping_or_nexting_callback): Delete.
1610 2014-04-22 Nick Clifton <nickc@redhat.com>
1612 * NEWS: Mention that ARM sim now supports tracing.
1614 2014-04-22 Yao Qi <yao@codesourcery.com>
1616 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1618 * tracefile.c (tracefile_fetch_registers): ... it. New
1620 * tracefile.h (tracefile_fetch_registers): Declare.
1621 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1622 tracefile_fetch_registers.
1624 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1627 * windows-nat.c (thread_rec): Don't display a warning when
1628 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1629 fails for any reason, set th->suspended to -1, so that we don't
1630 try to resume such a thread. Also, don't return NULL in these
1631 cases, to avoid completely ruin the session due to "PC register is
1632 not available" error.
1633 (do_windows_fetch_inferior_registers): Check errors in
1634 GetThreadContext call.
1635 (windows_continue): Accept an additional argument KILLED; if not
1636 zero, ignore errors in the SetThreadContext call, since the
1637 inferior was killed and is shutting down.
1638 (windows_resume, get_windows_debug_event)
1639 (windows_create_inferior, windows_mourn_inferior)
1640 (windows_kill_inferior): All callers of windows_continue changed
1641 to adjust to its new calling sequence.
1643 2014-04-19 Yao Qi <yao@codesourcery.com>
1645 * ctf.c (ctf_open): Call post_create_inferior.
1647 2014-04-19 Yao Qi <yao@codesourcery.com>
1649 * ctf.c (handle_id): New static variable.
1650 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1651 value. Get the declaration of event "register" and get length
1652 of field "contents".
1654 2014-04-19 Yao Qi <yao@codesourcery.com>
1656 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1658 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1660 * valops.c (oload_method_static): Remove unnecessary argument
1661 METHOD. Update all callers.
1663 2014-04-18 Pedro alves <palves@redhat.com>
1664 Tom Tromey <tromey@redhat.com>
1667 * frame.c (get_prev_frame_1): Rename to ...
1668 (get_prev_frame_always): ... this, and make extern. Adjust.
1669 (skip_artificial_frames): Use get_prev_frame_always.
1670 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1671 (get_frame_unwind_stop_reason): Adjust to rename.
1672 * frame.h (get_prev_frame_always): Declare.
1673 * inline-frame.c: Include frame.h.
1674 (inline_frame_this_id): Use get_prev_frame_always.
1676 2014-04-18 Tristan Gingold <gingold@adacore.com>
1678 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1679 code by using bfd_mach_o_get_base_address.
1681 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1683 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1684 (spu_ax_pseudo_register_collect): New function.
1685 (spu_ax_pseudo_register_push_stack): Likewise.
1686 (spu_dwarf_reg_to_regnum): Likewise.
1687 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1689 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1691 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1692 Replace FRAME argument with FRAME_ID.
1693 * gdbarch.c, gdbarch.h: Regenerate.
1694 * findvar.c (default_value_from_register): Add GDBARCH argument;
1695 replace FRAME by FRAME_ID. No longer call get_frame_id.
1696 (value_from_register): Update call to gdbarch_value_from_register.
1697 * value.h (default_value_from_register): Update prototype.
1698 * s390-linux-tdep.c (s390_value_from_register): Update interface
1699 and call to default_value_from_register.
1700 * spu-tdep.c (spu_value_from_register): Likewise.
1702 * findvar.c (address_from_register): Remove TYPE argument.
1703 Do not call value_from_register; use gdbarch_value_from_register
1704 with null_frame_id instead.
1705 * value.h (address_from_register): Update prototype.
1706 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1707 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1708 address_from_register interface change.
1710 2014-04-17 Yao Qi <yao@codesourcery.com>
1712 * gdbtypes.h: Update comments to link to types and macros'
1715 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1717 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1719 2014-04-16 Keith Seitz <keiths@redhat.com>
1722 * dwarf2read.c (skip_one_die): Check that all relative-offset
1723 sibling DIEs fall within range of the current reader's buffer.
1724 (read_partial_die): Likewise.
1726 2014-04-16 Keith Seitz <keiths@redhat.com>
1729 * cp-namespace.c (lookup_symbol_file): If the type name of
1730 `this' is NULL, return immediately.
1732 2014-04-14 Keith Seitz <keiths@redhat.com>
1735 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1736 from symbol_matches_domain in symtab.c. All local callers
1737 of symbol_matches_domain updated.
1738 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1739 search STRUCT_DOMAIN.
1740 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1741 independently. standard_lookup will do that automatically.
1742 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1743 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1744 (cp_lookup_symbol_in_namespace): Likewise.
1745 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1746 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1747 may return a STRUCT_DOMAIN match.
1748 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1749 * cp-support.c: Include language.h.
1750 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1752 * psymtab.c (match_partial_symbol): Compare the requested
1753 domain with the symbol's domain directly.
1754 (lookup_partial_symbol): Likewise.
1755 * symtab.c (lookup_symbol_in_language): Explain when/why
1756 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1757 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1758 appropriate languages.
1759 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1760 and moved to ada-lang.c
1761 (lookup_block_symbol): Explain that this function only returns
1762 symbol matching the requested DOMAIN.
1763 Compare the requested domain with the symbol's domain directly.
1764 (iterate_over_symbols): Compare the requested domain with the
1765 symbol's domain directly.
1766 * symtab.h (symbol_matches_domain): Remove.
1768 2014-04-14 Tom Tromey <tromey@redhat.com>
1771 * c-exp.y (type_aggregate_p): New function.
1772 (qualified_name, classify_inner_name): Use it.
1773 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1774 and TYPE_TARGET_TYPE of an enum type.
1775 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1777 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1778 handle TYPE_DECLARED_CLASS.
1779 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1781 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1782 * valops.c (enum_constant_from_type): New function.
1783 (value_aggregate_elt): Use it.
1784 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1787 2014-04-14 Tom Tromey <tromey@redhat.com>
1789 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1790 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1792 * value.h (value_aggregate_elt): Update.
1794 2014-04-14 Tom Tromey <tromey@redhat.com>
1796 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1798 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1800 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1801 (evaluate_subexp_standard): Pass noside argument.
1802 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1803 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1804 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1805 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1806 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1808 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1810 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1811 points to a constant blob.
1813 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1815 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1816 property and store it as the high bound and flag the range accordingly.
1817 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1818 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1819 * gdbtypes.h (enum range_flags): New enum.
1820 (struct range_bounds): Add flags member.
1822 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1824 * c-typeprint.c (c_type_print_varspec_suffix): Added
1825 check for not yet resolved high bound. If unresolved, print
1826 "variable length" string to the console instead of random
1829 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1831 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1833 (ada_template_to_fixed_record_type_1): Likewise.
1834 (ada_to_fixed_type_1): Likewise.
1835 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1836 (cp_print_value): Likewise.
1837 * d-valprint.c (dynamic_array_type): Likewise.
1838 * findvar.c (address_of_variable): Likewise.
1839 * jv-valprint.c (java_value_print): Likewise.
1840 * valops.c (value_ind): Likewise.
1841 * value.c (coerce_ref): Likewise.
1843 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1845 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1846 value and retrieve the dynamic type size.
1848 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1850 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1851 passed to sizeof is dynamic evaluate the argument to compute the length.
1853 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1854 Joel Brobecker <brobecker@adacore.com>
1856 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1857 (dwarf2_evaluate_property): New function.
1858 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1859 * dwarf2read.c (attr_to_dynamic_prop): New function.
1860 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1862 * gdbtypes.c: Include dwarf2loc.h.
1863 (is_dynamic_type): New function.
1864 (resolve_dynamic_type): New function.
1865 (resolve_dynamic_bounds): New function.
1866 (get_type_length): New function.
1867 (check_typedef): Use get_type_length to compute type length.
1868 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1869 (TYPE_LOW_BOUND_KIND): New macro.
1870 (is_dynamic_type): New function prototype.
1871 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1872 to resolve dynamic properties of the type. Update comment.
1873 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1875 2014-04-14 Richard Henderson <rth@redhat.com>
1877 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1879 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1880 Doug Evans <xdje42@gmail.com>
1882 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1883 dereference TYPE_CODE_REF values.
1885 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1887 Revert the following changes due to regressions:
1889 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1890 (dwarf2_evaluate_property): New function.
1891 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1892 * dwarf2read.c (attr_to_dynamic_prop): New function.
1893 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1895 * gdbtypes.c: Include dwarf2loc.h.
1896 (is_dynamic_type): New function.
1897 (resolve_dynamic_type): New function.
1898 (resolve_dynamic_bounds): New function.
1899 (get_type_length): New function.
1900 (check_typedef): Use get_type_length to compute type length.
1901 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1902 (TYPE_LOW_BOUND_KIND): New macro.
1903 (is_dynamic_type): New function prototype.
1904 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1905 to resolve dynamic properties of the type. Update comment.
1906 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1908 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1909 passed to sizeof is dynamic evaluate the argument to compute the length.
1911 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1912 value and retrieve the dynamic type size.
1914 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1915 (ada_template_to_fixed_record_type_1): Likewise.
1916 (ada_to_fixed_type_1): Likewise.
1917 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1918 (cp_print_value): Likewise.
1919 * d-valprint.c (dynamic_array_type): Likewise.
1920 * eval.c (evaluate_subexp_with_coercion): Likewise.
1921 * findvar.c (address_of_variable): Likewise.
1922 * jv-valprint.c (java_value_print): Likewise.
1923 * valops.c (value_ind): Likewise.
1924 * value.c (coerce_ref): Likewise.
1926 * c-typeprint.c (c_type_print_varspec_suffix): Added
1927 check for not yet resolved high bound. If unresolved, print
1928 "variable length" string to the console instead of random
1931 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1932 property and store it as the high bound and flag the range accordingly.
1933 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1934 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1935 * gdbtypes.h (enum range_flags): New enum.
1936 (struct range_bounds): Add flags member.
1938 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1939 points to a constant blob.
1941 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1942 (evaluate_subexp_standard): Pass noside argument.
1943 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1944 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1945 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1946 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1947 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1949 2014-04-11 Keith Seitz <keiths@redhat.com>
1952 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1953 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1956 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1958 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1959 (evaluate_subexp_standard): Pass noside argument.
1960 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1961 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1962 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1963 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1964 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1966 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1968 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1969 points to a constant blob.
1971 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1973 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1974 property and store it as the high bound and flag the range accordingly.
1975 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1976 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1977 * gdbtypes.h (enum range_flags): New enum.
1978 (struct range_bounds): Add flags member.
1980 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1982 * c-typeprint.c (c_type_print_varspec_suffix): Added
1983 check for not yet resolved high bound. If unresolved, print
1984 "variable length" string to the console instead of random
1987 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1989 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1990 (ada_template_to_fixed_record_type_1): Likewise.
1991 (ada_to_fixed_type_1): Likewise.
1992 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1993 (cp_print_value): Likewise.
1994 * d-valprint.c (dynamic_array_type): Likewise.
1995 * eval.c (evaluate_subexp_with_coercion): Likewise.
1996 * findvar.c (address_of_variable): Likewise.
1997 * jv-valprint.c (java_value_print): Likewise.
1998 * valops.c (value_ind): Likewise.
1999 * value.c (coerce_ref): Likewise.
2001 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2003 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2004 value and retrieve the dynamic type size.
2006 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2008 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2009 passed to sizeof is dynamic evaluate the argument to compute the length.
2011 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2013 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2014 (dwarf2_evaluate_property): New function.
2015 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2016 * dwarf2read.c (attr_to_dynamic_prop): New function.
2017 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2019 * gdbtypes.c: Include dwarf2loc.h.
2020 (is_dynamic_type): New function.
2021 (resolve_dynamic_type): New function.
2022 (resolve_dynamic_bounds): New function.
2023 (get_type_length): New function.
2024 (check_typedef): Use get_type_length to compute type length.
2025 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2026 (TYPE_LOW_BOUND_KIND): New macro.
2027 (is_dynamic_type): New function prototype.
2028 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2029 to resolve dynamic properties of the type. Update comment.
2030 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2032 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2034 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2035 declaring high/low bounds and change uses accordingly. Call
2036 create_range_type instead of create_static_range_type.
2037 * gdbtypes.c (create_range_type): New function.
2038 (create_range_type): Convert bounds into struct bound_prop and pass
2039 them to create_range_type.
2040 * gdbtypes.h (struct bound_prop): New struct.
2041 (create_range_type): New function prototype.
2042 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2043 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2044 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2046 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2048 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2050 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2051 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2052 * ada-lang.c: All uses of create_range_type updated.
2053 * coffread.c: All uses of create_range_type updated.
2054 * dwarf2read.c: All uses of create_range_type updated.
2055 * f-exp.y: All uses of create_range_type updated.
2056 * m2-valprint.c: All uses of create_range_type updated.
2057 * mdebugread.c: All uses of create_range_type updated.
2058 * stabsread.c: All uses of create_range_type updated.
2059 * valops.c: All uses of create_range_type updated.
2060 * valprint.c: All uses of create_range_type updated.
2062 2014-04-10 Pedro Alves <palves@redhat.com>
2064 * breakpoint.c (single_step_breakpoints)
2065 (single_step_gdbarch): Move up in the file.
2066 (one_breakpoint_xfer_memory): New function, factored out from ...
2067 (breakpoint_xfer_memory): ... here. Also process single-step
2070 2014-04-09 Tristan Gingold <gingold@adacore.com>
2072 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2074 (darwin_decode_exception_message): Free port only after use.
2076 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2078 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2079 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2080 when setting the size of call_length.
2082 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2084 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2085 dereference TYPE_CODE_REF values.
2087 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2089 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2090 end of warning message.
2092 2014-04-03 Doug Evans <dje@google.com>
2094 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2095 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2097 2014-04-02 Alan Modra <amodra@gmail.com>
2099 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2100 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2101 (struct symbol_file_add_from_memory_args): Add size field.
2102 (find_vdso_size): New function.
2103 (add_vsyscall_page): Attempt to find vdso size.
2105 2014-04-01 Doug Evans <dje@google.com>
2107 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2109 2014-04-01 Tristan Gingold <gingold@adacore.com>
2111 * darwin-nat.c (darwin_encode_reply): Add prototype.
2112 (darwin_decode_exception_message): Reply to unknown inferiors.
2113 (darwin_decode_message): Handle message by id. Ignore message
2114 to unknown inferior.
2115 (darwin_wait): Discard unknown messages, add debug trace.
2117 2014-03-31 Doug Evans <dje@google.com>
2119 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2122 2014-03-31 Doug Evans <dje@google.com>
2124 New option "set print symbol-loading".
2126 * solib.c (solib_read_symbols): Only print symbol loading messages
2128 (solib_add): If symbol loading is in "brief" mode, notify user
2129 symbols are being loaded.
2130 (reload_shared_libraries_1): Ditto.
2131 * symfile.c (print_symbol_loading_off): New static global.
2132 (print_symbol_loading_brief): New static global.
2133 (print_symbol_loading_full): New static global.
2134 (print_symbol_loading_enums): New static global.
2135 (print_symbol_loading): New static global.
2136 (print_symbol_loading_p): New function.
2137 (symbol_file_add_with_addrs): Only print symbol loading messages
2139 (_initialize_symfile): Register "print symbol-loading" set/show
2141 * symfile.h (print_symbol_loading_p): Declare.
2143 2014-03-30 Doug Evans <xdje42@gmail.com>
2145 * infrun.c (set_last_target_status): New function.
2146 (handle_inferior_event): Call it.
2148 2014-03-30 Doug Evans <xdje42@gmail.com>
2150 * inferior.h (enum stop_kind): Improve comment.
2152 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2154 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2155 a reference, strip the reference layer before calling
2156 the lang_ops value_has_mutated callback.
2158 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2160 Remove some globals from our parser.
2161 * language.c (unk_lang_parser): Add "struct parser_state"
2163 * language.h (struct language_defn) <la_parser>: Likewise.
2164 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2165 (initialize_expout): Add "struct parser_state" argument.
2166 Rewrite function to use the parser state.
2167 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2168 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2169 write_exp_elt_longcst, write_exp_elt_dblcst,
2170 write_exp_elt_decfloatcst, write_exp_elt_type,
2171 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2172 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2173 write_dollar_variable): Likewise.
2174 (parse_exp_in_context_1): Use parser state.
2175 (insert_type_address_space): Add "struct parser_state" argument.
2177 (increase_expout_size): New function.
2178 * parser-defs.h: Forward declare "struct language_defn" and
2179 "struct parser_state".
2180 (expout, expout_size, expout_ptr): Remove extern declarations.
2181 (parse_gdbarch, parse_language): Rewrite macro declarations to
2182 accept the parser state.
2183 (struct parser_state): New struct.
2184 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2185 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2186 write_exp_elt_decfloatcst, write_exp_elt_type,
2187 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2188 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2189 write_exp_msymbol, write_dollar_variable,
2190 mark_struct_expression, insert_type_address_space): Add "struct
2191 parser_state" argument.
2192 (increase_expout_size): New function.
2193 * utils.c (do_clear_parser_state): New function.
2194 (make_cleanup_clear_parser_state): Likewise.
2195 * utils.h (make_cleanup_clear_parser_state): New function
2197 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2198 Update calls to write_exp* in order to pass the parser state.
2199 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2200 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2201 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2202 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2203 * stap-probe.c (stap_parse_register_operand): Likewise.
2204 (stap_parse_single_operand): Likewise.
2205 (stap_parse_argument_1): Likewise.
2206 (stap_parse_argument): Use parser state.
2207 * stap-probe.h: Include "parser-defs.h".
2208 (struct stap_parse_info) <pstate>: New field.
2209 * c-exp.y (parse_type): Rewrite to use parser state.
2210 (yyparse): Redefine to c_parse_internal.
2211 (pstate): New global variable.
2212 (parse_number): Add "struct parser_state" argument.
2213 (write_destructor_name): Likewise.
2214 (type_exp): Update calls to write_exp* and similars in order to
2216 (exp1, exp, variable, qualified_name, space_identifier,
2217 typename, typebase): Likewise.
2218 (write_destructor_name, parse_number, lex_one_token,
2219 classify_name, classify_inner_name, c_parse): Add "struct
2220 parser_state" argument. Update function to use parser state.
2221 * c-lang.h: Forward declare "struct parser_state".
2222 (c_parse): Add "struct parser_state" argument.
2223 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2224 (yyparse): Redefine macro to ada_parse_internal.
2225 (pstate): New variable.
2226 (write_int, write_object_renaming, write_var_or_type,
2227 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2228 type_int, type_long, type_long_long, type_float, type_double,
2229 type_long_double, type_char, type_boolean, type_system_address):
2230 Add "struct parser_state" argument.
2231 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2232 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2233 var_or_type, aggregate, aggregate_component_list,
2234 positional_list, others, component_group,
2235 component_associations): Update calls to write_exp* and similar
2236 functions in order to use parser state.
2237 (ada_parse, write_var_from_sym, write_int,
2238 write_exp_op_with_string, write_object_renaming,
2239 find_primitive_type, write_selectors, write_ambiguous_var,
2240 write_var_or_type, write_name_assoc, type_int, type_long,
2241 type_long_long, type_float, type_double, type_long_double,
2242 type_char, type_boolean, type_system_address): Add "struct
2243 parser_state" argument. Adjust function to use parser state.
2244 * ada-lang.c (parse): Likewise.
2245 * ada-lang.h: Forward declare "struct parser_state".
2246 (ada_parse): Add "struct parser_state" argument.
2247 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2248 calls to both functions.
2249 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2251 (yyparse): Redefine macro to f_parse_internal.
2252 (pstate): New variable.
2253 (parse_number): Add "struct parser_state" argument.
2254 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2255 and similars in order to use parser state.
2256 (parse_number): Adjust code to use parser state.
2258 (f_parse): New function.
2259 * f-lang.h: Forward declare "struct parser_state".
2260 (f_parse): Add "struct parser_state" argument.
2261 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2263 (yyparse): Redefine macro for java_parse_internal.
2264 (pstate): New variable.
2265 (push_expression_name, push_expression_name, insert_exp): Add
2266 "struct parser_state" argument.
2267 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2268 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2269 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2270 PostIncrementExpression, PostDecrementExpression,
2271 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2272 UnaryExpressionNotPlusMinus, CastExpression,
2273 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2274 RelationalExpression, EqualityExpression, AndExpression,
2275 ExclusiveOrExpression, InclusiveOrExpression,
2276 ConditionalAndExpression, ConditionalOrExpression,
2277 ConditionalExpression, Assignment, LeftHandSide): Update
2278 calls to write_exp* and similars in order to use parser state.
2279 (parse_number): Ajust code to use parser state.
2281 (java_parse): New function.
2282 (push_variable): Add "struct parser_state" argument. Adjust
2283 code to user parser state.
2284 (push_fieldnames, push_qualified_expression_name,
2285 push_expression_name, insert_exp): Likewise.
2286 * jv-lang.h: Forward declare "struct parser_state".
2287 (java_parse): Add "struct parser_state" argument.
2288 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2290 (yyparse): Redefine macro to m2_parse_internal.
2291 (pstate): New variable.
2292 (type_exp, exp, fblock, variable, type): Update calls to
2293 write_exp* and similars to use parser state.
2295 (m2_parse): New function.
2296 * m2-lang.h: Forward declare "struct parser_state".
2297 (m2_parse): Add "struct parser_state" argument.
2298 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2299 * objc-lang.h: Forward declare "struct parser_state".
2300 (end_msglist): Add "struct parser_state" argument.
2301 * p-exp.y (parse_type): Rewrite macro to use parser state.
2302 (yyparse): Redefine macro to pascal_parse_internal.
2303 (pstate): New variable.
2304 (parse_number): Add "struct parser_state" argument.
2305 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2306 write_exp* and similars in order to use parser state.
2307 (parse_number, yylex): Adjust code to use parser state.
2308 (pascal_parse): New function.
2309 * p-lang.h: Forward declare "struct parser_state".
2310 (pascal_parse): Add "struct parser_state" argument.
2311 * go-exp.y (parse_type): Rewrite macro to use parser state.
2312 (yyparse): Redefine macro to go_parse_internal.
2313 (pstate): New variable.
2314 (parse_number): Add "struct parser_state" argument.
2315 (type_exp, exp1, exp, variable, type): Update calls to
2316 write_exp* and similars in order to use parser state.
2317 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2318 to use parser state.
2319 (go_parse): Likewise.
2320 * go-lang.h: Forward declare "struct parser_state".
2321 (go_parse): Add "struct parser_state" argument.
2323 2014-03-27 Doug Evans <dje@google.com>
2325 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2327 2014-03-27 Doug Evans <dje@google.com>
2329 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2330 Remove argument abbrev_section. All callers updated.
2332 2014-03-27 Doug Evans <dje@google.com>
2334 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2335 addr_base, ranges_base.
2337 2014-03-26 Keith Seitz <keiths@redhat.com>
2339 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2340 types, not VAR_DOMAIN.
2342 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2344 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2346 * features/nios2-linux.c: Regenerated.
2347 * features/nios2.c: Regenerated.
2349 2014-03-25 Pedro Alves <palves@redhat.com>
2351 * cli/cli-script.c (script_from_file): Force the interpreter to
2354 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2356 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2357 small stack allocation.
2359 2014-03-24 Tristan Gingold <gingold@adacore.com>
2361 * darwin-nat.c (exc_server): Remove unused prototype.
2362 (darwin_dump_message): Correctly display data on x86_64.
2363 (darwin_encode_reply): Fix style.
2364 Add comments and fix indentation.
2366 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2368 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2370 2014-03-22 Doug Evans <xdje42@gmail.com>
2372 * infcmd.c: Whitespace fixes.
2373 (interrupt_command): Merge two function comments into one.
2375 2014-03-22 Doug Evans <xdje42@gmail.com>
2377 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2380 2014-03-22 Yao Qi <yao@codesourcery.com>
2382 * remote.c (target_read_live_memory): Remove.
2383 (memory_xfer_live_readonly_partial): Rename it to
2384 remote_xfer_live_readonly_partial. Remove argument 'object'.
2385 All callers updated. Call remote_read_bytes_1
2386 instead of target_read_live_memory.
2387 * tracepoint.c (set_traceframe_number): Remove.
2388 (make_cleanup_restore_traceframe_number): Likewise .
2389 * tracepoint.h (set_traceframe_number): Remove declaration.
2390 (make_cleanup_restore_traceframe_number): Likewise.
2392 2014-03-22 Yao Qi <yao@codesourcery.com>
2394 * remote.c (remote_read_bytes): Move code on reading from the
2396 (remote_read_bytes_1): ... here. New function.
2398 2014-03-22 Yao Qi <yao@codesourcery.com>
2400 * ctf.c (ctf_xfer_partial): Check the return value of
2401 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2402 return TARGET_XFER_UNAVAILABLE.
2403 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2404 * target.c (target_read_live_memory): Move it to remote.c.
2405 (memory_xfer_live_readonly_partial): Likewise.
2406 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2407 * remote.c (target_read_live_memory): Moved from target.c.
2408 (memory_xfer_live_readonly_partial): Likewise.
2409 (remote_read_bytes): Factored out from
2410 memory_xfer_partial_1.
2412 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2414 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2417 2014-03-21 Pedro Alves <palves@redhat.com>
2419 * infrun.c (normal_stop): Extend comment.
2421 2014-03-21 Hui Zhu <hui@codesourcery.com>
2422 Pedro Alves <palves@redhat.com>
2424 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2426 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2427 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2428 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2430 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2432 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2433 `z' formatted output modifier.
2435 2014-03-20 Tom Tromey <tromey@redhat.com>
2436 Sergio Durigan Junior <sergiodj@redhat.com>
2438 * probe.c (parse_probes): Turn assert into an ordinary error.
2439 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2440 exceptions when parsing probes. Rearrange the code for clarity.
2442 2014-03-20 Tom Tromey <tromey@redhat.com>
2445 * top.c (execute_command): Only dispatch events if the command
2448 2014-03-20 Tom Tromey <tromey@redhat.com>
2451 * infcall.c: Include event-top.h.
2452 (run_inferior_call): Call async_disable_stdin if needed.
2454 2014-03-20 Pedro Alves <palves@redhat.com>
2456 * infrun.c (prepare_to_proceed): Delete.
2457 (thread_still_needs_step_over): New function.
2458 (find_thread_needs_step_over): New function.
2459 (proceed): If the current thread needs a step-over, set its
2460 steping_over_breakpoint flag. Adjust to use
2461 find_thread_needs_step_over instead of prepare_to_proceed.
2462 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2463 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2465 (switch_back_to_stepped_thread): Step over breakpoints of all
2466 threads not the stepping thread, before switching back to the
2469 2014-03-20 Pedro Alves <palves@redhat.com>
2471 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2473 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2474 * infrun.c (saved_singlestep_ptid)
2475 (stepping_past_singlestep_breakpoint): Delete.
2476 (resume): Remove stepping_past_singlestep_breakpoint handling.
2477 (proceed): Store the prev_pc of the stepping thread too.
2478 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2480 (enum infwait_states): Delete infwait_thread_hop_state.
2481 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2483 (handle_inferior_event): Adjust.
2484 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2485 handling and the thread-hop code. Before removing single-step
2486 breakpoints, check whether the thread hit a single-step breakpoint
2487 of another thread. If it did, the trap is not a random signal.
2488 (switch_back_to_stepped_thread): If the event thread hit a
2489 single-step breakpoint, unblock it before switching to the
2490 stepping thread. Handle the case of the stepped thread having
2492 (keep_going): Handle the case of the current thread moving past a
2493 single-step breakpoint.
2495 2014-03-20 Pedro Alves <palves@redhat.com>
2498 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2499 are being stepped over.
2500 (breakpoint_address_match): Make extern.
2501 * breakpoint.h (breakpoint_address_match): New declaration.
2502 * inferior.h (stepping_past_instruction_at): New declaration.
2503 * infrun.c (struct step_over_info): New type.
2504 (step_over_info): New global.
2505 (set_step_over_info, clear_step_over_info)
2506 (stepping_past_instruction_at): New functions.
2507 (handle_inferior_event): Clear the step-over info when
2508 trap_expected is cleared.
2509 (resume): Remove now stale comment.
2510 (clear_proceed_status): Clear step-over info.
2511 (proceed): Adjust step-over handling to set or clear the step-over
2512 info instead of removing all breakpoints.
2513 (handle_signal_stop): When setting up a thread-hop, don't remove
2515 (stop_stepping): Clear step-over info.
2516 (keep_going): Adjust step-over handling to set or clear step-over
2517 info and then always inserting breakpoints, instead of removing
2518 all breakpoints when stepping over one.
2520 2014-03-20 Pedro Alves <palves@redhat.com>
2522 * infrun.c (previous_inferior_ptid): Adjust comment.
2523 (deferred_step_ptid): Delete.
2524 (infrun_thread_ptid_changed, prepare_to_proceed)
2525 (init_wait_for_inferior): Adjust.
2526 (handle_signal_stop): Delete deferred_step_ptid handling.
2528 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 * defs.h (sync_quit_force_run): New declaration.
2532 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2533 * event-top.c (async_sigterm_handler): New declaration.
2534 (async_sigterm_token): New variable.
2535 (async_init_signals): Create also async_sigterm_token.
2536 (async_sigterm_handler): New function.
2537 (sync_quit_force_run): New variable.
2538 (handle_sigterm): Replace quit_force call by other calls.
2539 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2541 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2543 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2544 offset into SPE pseudo registers.
2546 2014-03-18 Pedro Alves <palves@redhat.com>
2549 * inferior.h (print_stop_event): Declare.
2550 * infrun.c (print_stop_event): New, factored out from ...
2551 (normal_stop): ... this.
2552 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2553 of bpstat_print/print_stack_frame.
2555 2014-03-17 Tom Tromey <tromey@redhat.com>
2557 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2559 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2561 * ada-lang.c (decode_constrained_packed_array): Perform a
2562 minimal coercion for reference with coerce_ref instead of
2565 2014-03-17 Tristan Gingold <gingold@adacore.com>
2567 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2568 (darwin_solib_create_inferior_hook): Emit a warning if version
2571 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2573 * python/py-value.c (get_field_flag): Cast flag_name argument to
2574 PyObject_GetAttrString to support Python 2.4.
2576 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2578 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2579 (Global Maintainers): Remove Jan Kratochvil.
2581 2014-03-14 Pedro Alves <palves@redhat.com>
2583 * inferior.h (terminal_ours_for_output): Rename to ...
2584 (child_terminal_ours_for_output): ... this.
2585 (terminal_save_ours): Rename to ...
2586 (child_terminal_save_ours): ... this.
2587 (terminal_ours): Rename to ...
2588 (child_terminal_ours): ... this.
2589 (terminal_inferior): Rename to ...
2590 (child_terminal_inferior): ... this.
2591 (terminal_init_inferior): Rename to ...
2592 (child_terminal_init_inferior): ... this.
2593 (terminal_init_inferior_with_pgrp): Rename to ...
2594 (child_terminal_init_inferior_with_pgrp): ... this.
2595 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2596 (child_terminal_init_with_pgrp): ... this.
2597 (terminal_save_ours): Rename to ...
2598 (child_terminal_save_ours): ... this.
2599 (terminal_init_inferior): Rename to ...
2600 (child_terminal_init): ... this. Adjust.
2601 (terminal_inferior): Rename to ...
2602 (child_terminal_inferior): ... this.
2603 (terminal_ours_for_output): Rename to ...
2604 (child_terminal_ours_for_output): ... this. Adjust.
2605 (terminal_ours): Rename to ...
2606 (child_terminal_ours): ... this.
2607 (terminal_ours_1): Rename to ...
2608 (child_terminal_ours_1): ... this. Adjust.
2609 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2610 * windows-nat.c (do_initial_windows_stuff): Adjust.
2611 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2612 (gnu_terminal_init): ... this. Adjust.
2613 (gnu_target): Adjust.
2614 * inf-child.c (inf_child_target): Adjust.
2616 2014-03-13 Doug Evans <xdje42@gmail.com>
2619 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2622 2014-03-13 Doug Evans <xdje42@gmail.com>
2624 * value.c (record_latest_value): Call release_value_or_incref
2625 instead of release_value.
2627 2014-03-13 Pedro Alves <palves@redhat.com>
2629 * procfs.c (procfs_target): Don't override to_shortname,
2630 to_longname or to_doc.
2632 2014-03-13 Pedro Alves <palves@redhat.com>
2634 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2635 Unix in user visible strings.
2637 2014-03-12 Stan Shebs <stan@codesourcery.com>
2639 * gdbtypes.h: Annotate comments for Doxygen, add a page
2640 block comment with some general info.
2642 2014-03-12 Pedro Alves <palves@redhat.com>
2644 * infcmd.c (prepare_execution_command): New function, factored out
2645 from several execution commands.
2646 (run_command_1, continue_command, step_1, jump_command)
2647 (signal_command, until_command, advance_command, finish_command)
2648 (attach_command): Use prepare_execution_command.
2650 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2652 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2655 (struct arm_linux_thread_points): Removed.
2656 (struct arm_linux_process_info): New.
2657 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2658 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2659 (arm_linux_find_breakpoints_by_tid): Removed.
2660 (struct arch_lwp_info): New.
2661 (arm_linux_find_process_pid): New functions.
2662 (arm_linux_add_process): New functions.
2663 (arm_linux_process_info_get): New functions.
2664 (arm_linux_forget_process): New function.
2665 (arm_linux_get_debug_reg_state): New function.
2666 (struct update_registers_data): New.
2667 (update_registers_callback): New function.
2668 (arm_linux_insert_hw_breakpoint1): Updated.
2669 (arm_linux_remove_hw_breakpoint1): Updated.
2670 (arm_linux_insert_hw_breakpoint): Updated.
2671 (arm_linux_remove_hw_breakpoint): Updated.
2672 (arm_linux_insert_watchpoint): Updated.
2673 (arm_linux_remove_watchpoint): Updated.
2674 (arm_linux_new_thread): Updated.
2675 (arm_linux_prepare_to_resume): New function.
2676 (arm_linux_new_fork): New function.
2677 (_initialize_arm_linux_nat): Updated.
2679 2014-03-12 Pedro Alves <palves@redhat.com>
2681 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2683 2014-03-12 Tom Tromey <tromey@redhat.com>
2685 * inf-child.c (return_zero): New function.
2686 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2687 * aix-thread.c (aix_thread_inferior_created): New function.
2688 (aix_thread_attach): Remove.
2689 (init_aix_thread_ops): Don't set to_attach.
2690 (_initialize_aix_thread): Register inferior_created observer.
2691 * corelow.c (init_core_ops): Don't set to_attach or
2693 * exec.c (init_exec_ops): Don't set to_attach or
2695 * infcmd.c (run_command_1): Use find_run_target. Make direct
2697 (attach_command): Use find_attach_target. Make direct target
2699 * record-btrace.c (init_record_btrace_ops): Don't set
2701 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2703 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2704 set to_create_inferior.
2705 * target.c (complete_target_initialization): Add assertion.
2706 (target_create_inferior): Remove.
2707 (find_default_attach, find_default_create_inferior): Remove.
2708 (find_attach_target, find_run_target): New functions.
2709 (find_default_is_async_p, find_default_can_async_p)
2710 (target_supports_non_stop, target_attach): Remove.
2711 (init_dummy_target): Don't set to_create_inferior or
2712 to_supports_non_stop.
2713 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2714 TARGET_DEFAULT_FUNC.
2715 <to_create_inferior>: Add comment.
2716 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2717 TARGET_DEFAULT_RETURN.
2718 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2719 (find_attach_target, find_run_target): Declare.
2720 (target_create_inferior): Remove.
2721 (target_has_execution_1): Update comment.
2722 (target_supports_non_stop): Remove.
2723 * target-delegates.c: Rebuild.
2725 2014-03-12 Pedro Alves <palves@redhat.com>
2727 * inf-child.h: Update comment to not mention Unix.
2729 2014-03-12 Pedro Alves <palves@redhat.com>
2731 * inf-child.c: Update top comment to not mention Unix. Add
2732 generic comment describing how this target is meant to be used.
2733 (inf_child_post_attach, inf_child_post_startup_inferior)
2734 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2737 2014-03-12 Pedro Alves <palves@redhat.com>
2739 * nto-procfs.c: Include inf-child.h.
2740 (procfs_ops): Delete global.
2741 (procfs_can_run): Delete method.
2742 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2743 target pointer instead of referencing procfs_ops.
2744 (procfs_prepare_to_store): Delete.
2745 (init_procfs_ops): Delete function.
2746 (procfs_target): New function, based on init_procfs_ops, but
2747 inherit inf_child_target.
2748 (_initialize_procfs): Use procfs_target.
2750 2014-03-12 Pedro Alves <palves@redhat.com>
2752 * windows-nat.c: Include inf-child.h.
2753 (windows_ops): Delete global.
2754 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2756 (init_windows_ops): Delete function.
2757 (windows_target): New function, based on init_windows_ops, but
2758 inherit inf_child_target.
2759 (_initialize_windows_nat): Use windows_target. Install x86
2760 specific target methods here.
2762 2014-03-10 Doug Evans <xdje42@gmail.com>
2764 * guile/guile.c (call_initialize_gdb_module): New function.
2765 (initialize_guile): Replace call to scm_init_guile with call to
2768 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2770 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2771 in call to TYPE_CODE macro.
2773 2014-03-10 Jerome Guitton <guitton@adacore.com>
2775 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2776 Resolve tagged types to full view.
2778 2014-03-10 Hui Zhu <hui@codesourcery.com>
2780 * target.h (target_insert_breakpoint): Remove "hardware" from its
2783 2014-03-07 Doug Evans <dje@google.com>
2785 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2787 2014-03-07 Doug Evans <dje@google.com>
2789 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2790 Remove unused local comp_dir_attr. Assert exactly one of
2791 stub_comp_unit_die, stub_comp_dir is non-NULL.
2793 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2795 * target.h (complete_target_initialization, add_target):
2798 2014-03-07 Pedro Alves <palves@redhat.com>
2800 * go32-nat.c: Include inf-child.h.
2801 (go32_ops): Delete global.
2802 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2804 (go32_create_inferior): Push the passed in target pointer instead
2805 of referencing go32_ops.
2806 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2807 (go32_target): New function, based on init_go32_ops, but inherit
2809 (_initialize_go32_nat): Use go32_target. Move parts of
2812 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2814 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2815 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2816 SYMBOL_VALUE_ADDRESS.
2817 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2819 2014-03-06 Yao Qi <yao@codesourcery.com>
2821 * breakpoint.c (get_tracepoint_by_number): Remove argument
2822 optional_p. All callers updated. Adjust comments. Update
2824 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2826 2014-03-06 Yao Qi <yao@codesourcery.com>
2828 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2829 early if get_number returns zero. Use 'p' instead of 'args'.
2831 2014-03-06 Yao Qi <yao@codesourcery.com>
2833 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2836 2014-03-06 Yao Qi <yao@codesourcery.com>
2838 PR breakpoints/16508
2839 * tracepoint.c (check_trace_running): New function.
2840 (trace_find_command): Move code to check_trace_running and
2841 call check_trace_running.
2842 (trace_find_pc_command): Likewise.
2843 (trace_find_tracepoint_command): Likewise.
2844 (trace_find_line_command): Likewise.
2845 (trace_find_range_command): Likewise.
2846 * tracepoint.h (check_trace_running): Likewise.
2847 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2849 2014-03-06 Yao Qi <yao@codesourcery.com>
2851 * target.h (struct target_ops) <to_traceframe_info>: Use
2852 TARGET_DEFAULT_NORETURN (tcomplain ()).
2853 * target-delegates.c: Regenerated.
2855 2014-03-05 Pedro Alves <palves@redhat.com>
2858 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2859 void. Update comment.
2860 (dcache_xfer_memory): Delete.
2861 (dcache_read_memory_partial): New, based on the read bits of
2863 (dcache_update): Add status parameter. Use ULONGEST for len, and
2864 adjust. Discard cache lines if the reason for the update was
2866 * dcache.h (dcache_xfer_memory): Delete declaration.
2867 (dcache_read_memory_partial): New declaration.
2868 (dcache_update): Update prototype.
2869 * target.c (raw_memory_xfer_partial): Update the dcache here.
2870 (memory_xfer_partial_1): Don't handle dcache writes here.
2872 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2874 * remote-sim.c (gdbsim_load): Add const to prog.
2876 2014-03-03 Tom Tromey <tromey@redhat.com>
2878 * elfread.c (probe_key): Change to bfd_data.
2879 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2880 now per-BFD, not per-objfile.
2881 * stap-probe.c (stap_probe_destroy): Update comment.
2882 (handle_stap_probe): Allocate on the per-BFD obstack.
2884 2014-03-03 Tom Tromey <tromey@redhat.com>
2886 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2887 * breakpoint.c (create_longjmp_master_breakpoint): Use
2889 (add_location_to_breakpoint, bkpt_probe_insert_location)
2890 (bkpt_probe_remove_location): Update.
2891 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2892 * elfread.c (elf_symfile_relocate_probe): Remove.
2893 (elf_probe_fns): Update.
2894 (insert_exception_resume_breakpoint): Change type of "probe"
2895 parameter to bound_probe.
2896 (check_exception_resume): Update.
2897 * objfiles.c (objfile_relocate1): Don't relocate probes.
2898 * probe.c (bound_probe_s): New typedef.
2899 (parse_probes): Use get_probe_address. Set sal's objfile.
2900 (find_probe_by_pc): Return a bound_probe.
2901 (collect_probes): Return a VEC(bound_probe_s).
2902 (compare_probes): Update.
2903 (gen_ui_out_table_header_info): Change type of "probes"
2905 (info_probes_for_ops): Update.
2906 (get_probe_address): New function.
2907 (probe_safe_evaluate_at_pc): Update.
2908 * probe.h (struct probe_ops) <get_probe_address>: New field.
2909 <set_semaphore, clear_semaphore>: Add objfile parameter.
2910 (struct probe) <objfile>: Remove field.
2912 <address>: Update comment.
2913 (struct bound_probe): New.
2914 (find_probe_by_pc): Return a bound_probe.
2915 (get_probe_address): Declare.
2916 * solib-svr4.c (struct probe_and_action) <address>: New field.
2917 (hash_probe_and_action, equal_probe_and_action): Update.
2918 (register_solib_event_probe): Add address parameter.
2919 (solib_event_probe_at): Update.
2920 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2922 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2923 (stap_get_probe_address): New function.
2924 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2925 (compile_probe_arg): Update.
2926 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2928 (handle_stap_probe): Don't relocate the probe.
2929 (stap_relocate): Remove.
2930 (stap_gen_info_probes_table_values): Update.
2931 (stap_probe_ops): Remove stap_relocate.
2932 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2933 (debug_sym_probe_fns): Update.
2934 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2935 * symtab.c (init_sal): Use memset.
2936 * symtab.h (struct symtab_and_line) <objfile>: New field.
2937 * tracepoint.c (start_tracing, stop_tracing): Update.
2939 2014-03-03 Tom Tromey <tromey@redhat.com>
2941 * probe.h (parse_probes, find_probe_by_pc)
2942 (find_probes_in_objfile): Fix comments.
2944 2014-03-02 Doug Evans <xdje42@gmail.com>
2946 * infrun.c (handle_signal_stop): Replace test for
2947 TARGET_WAITKIND_STOPPED with an assert.
2949 2014-03-02 Doug Evans <xdje42@gmail.com>
2951 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2953 2014-03-02 Doug Evans <xdje42@gmail.com>
2955 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2957 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2959 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2961 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2963 * i386obsd-nat.c: Include "obsd-nat.h".
2964 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2966 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2968 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2970 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2972 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2974 * mips64obsd-nat.c: Include "obsd-nath".
2975 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2977 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2979 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2981 * amd64obsd-nat.c: Include "obsd-nat,h.
2982 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2984 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2986 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2988 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2989 (find_overload_match): Update call to find_oload_champ.
2990 (find_oload_champ_namespace_loop): Likewise
2992 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2994 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2996 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2997 * config/sparc/obsd64.mh: New file.
2998 * sparc64obsd-nat.c: New file.
3000 * obsd-nat.h: New file.
3001 * obsd-nat.c: New file.
3002 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3003 (ALLDEPFILES): Add obsd-nat.c.
3005 2014-02-28 Tom Tromey <tromey@redhat.com>
3007 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3008 * cli-out.h (cli_ui_out_impl): Now const.
3009 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3010 * ui-out.c (struct ui_out) <impl>: Now const.
3011 (default_ui_out_impl): Now const.
3012 (ui_out_new): Make 'impl' parameter const.
3013 * ui-out.h (ui_out_new): Update.
3015 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3017 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3019 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3021 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3023 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 Additional PR 8882 fix.
3026 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3028 2014-02-27 Pedro Alves <palves@redhat.com>
3030 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3033 2014-02-27 Pedro Alves <palves@redhat.com>
3036 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3037 * nat/linux-waitpid.c: Include string.h.
3038 (status_to_str): Moved here and made extern.
3039 * nat/linux-waitpid.h (status_to_str): New declaration.
3041 2014-02-27 Hui Zhu <hui@codesourcery.com>
3044 * infrun.c (ptid_match): Move ...
3045 * common/ptid.c (ptid_match): ... here.
3046 * inferior.h (ptid_match): Move ...
3047 * common/ptid.h (ptid_match): ... here.
3049 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3051 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3052 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3055 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3057 * obsd-tdep.c (obsd_auxv_parse): New function.
3058 (obsd_init_abi): Set auxv_parse.
3060 * gdbarch.sh (auxv_parse): New.
3061 * gdbarch.h: Regenerated.
3062 * gdbarch.c: Regenerated.
3063 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3065 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3067 * guile/scm-value.c (gdbscm_history_append_x): New function.
3068 (value_functions): Add it.
3070 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3072 * dwarf2read.c (attr_value_as_address): New function.
3073 (dwarf2_find_base_address, read_call_site_scope): Use
3074 attr_value_as_address in place of DW_ADDR.
3075 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3076 the low and high addresses. Slight rework of the handling
3077 of the high pc being a constant form, and limit it to
3078 DWARF verson 4 or higher.
3079 (dwarf2_record_block_ranges): Likewise.
3080 (read_partial_die): Likewise.
3081 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3083 2014-02-26 Tom Tromey <tromey@redhat.com>
3085 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3087 2014-02-26 Tom Tromey <tromey@redhat.com>
3089 * elfread.c (elf_read_minimal_symbols): Return early if
3090 minimal symbols have already been read. Add "ei" parameter.
3091 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3092 * minsyms.c (prim_record_minimal_symbol_full): Update.
3093 * objfiles.h (struct objstats) <n_minsyms>: Move...
3094 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3095 * symmisc.c (print_objfile_statistics): Update.
3097 2014-02-26 Tom Tromey <tromey@redhat.com>
3099 * elfread.c (elf_read_minimal_symbols): New function, from
3101 (elf_symfile_read): Call it.
3103 2014-02-26 Tom Tromey <tromey@redhat.com>
3105 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3106 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3107 (lookup_minimal_symbol_solib_trampoline)
3108 (lookup_minimal_symbol_by_pc_section_1)
3109 (lookup_minimal_symbol_and_objfile): Update.
3110 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3111 Don't allocate a minimal symbol if minsyms have already been read.
3112 (build_minimal_symbol_hash_tables): Update.
3113 (install_minimal_symbols): Do nothing if minsyms already read.
3114 Use the per-BFD obstack.
3115 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3116 * objfiles.c (allocate_objfile): Call
3117 terminate_minimal_symbol_table later.
3118 (have_minimal_symbols): Update.
3119 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3120 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3121 Move from struct objfile.
3122 <minsyms_read>: New field.
3123 (struct objfile) <msymbols, minimal_symbol_count,
3124 msymbol_hash, msymbol_demangled_hash>: Move.
3125 (ALL_OBJFILE_MSYMBOLS): Update.
3126 * symfile.c (read_symbols): Set minsyms_read.
3127 (reread_symbols): Update.
3128 * symmisc.c (dump_objfile, dump_msymbols): Update.
3130 2014-02-26 Tom Tromey <tromey@redhat.com>
3132 * minsyms.c (msymbols_sort): Remove.
3133 * minsyms.h (msymbols_sort): Remove.
3134 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3135 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3136 * elfread.c (elf_symtab_read): Don't add section offsets.
3137 * xcoffread.c (record_minimal_symbol): Don't add section offset
3138 to minimal symbol address.
3139 * somread.c (text_offset, data_offset): Remove.
3140 (som_symtab_read): Don't add section offsets to minimal symbol
3142 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3143 Don't add section offsets to minimal symbols.
3144 * coffread.c (coff_symtab_read): Don't add section offsets
3145 to minimal symbol addresses.
3146 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3147 to minimal symbol addresses.
3148 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3149 section offset to minimal symbol addresses.
3150 * mdebugread.c (parse_partial_symbols): Don't add section
3151 offset to minimal symbol addresses.
3152 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3153 offset to minimal symbol addresses.
3155 2014-02-26 Tom Tromey <tromey@redhat.com>
3157 * ada-lang.c (ada_main_name): Update.
3158 (ada_add_standard_exceptions): Update.
3159 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3160 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3161 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3162 * auxv.c (ld_so_xfer_auxv): Update.
3163 * avr-tdep.c (avr_scan_prologue): Update.
3164 * ax-gdb.c (gen_var_ref): Update.
3165 * blockframe.c (get_pc_function_start)
3166 (find_pc_partial_function_gnu_ifunc): Update.
3167 * breakpoint.c (create_overlay_event_breakpoint)
3168 (create_longjmp_master_breakpoint)
3169 (create_std_terminate_master_breakpoint)
3170 (create_exception_master_breakpoint): Update.
3171 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3172 * c-valprint.c (c_val_print): Update.
3173 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3174 * common/agent.c (agent_look_up_symbols): Update.
3175 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3176 * dwarf2loc.c (call_site_to_target_addr): Update.
3177 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3178 * elfread.c (elf_gnu_ifunc_record_cache)
3179 (elf_gnu_ifunc_resolve_by_got): Update.
3180 * findvar.c (default_read_var_value): Update.
3181 * frame.c (inside_main_func): Update.
3182 * frv-tdep.c (frv_frame_this_id): Update.
3183 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3184 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3186 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3187 (hppa_hpux_find_dummy_bpaddr): Update.
3188 * hppa-tdep.c (hppa_symbol_address): Update.
3189 * infcmd.c (until_next_command): Update.
3190 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3192 * linespec.c (minsym_found, add_minsym): Update.
3193 * linux-nat.c (get_signo): Update.
3194 * linux-thread-db.c (inferior_has_bug): Update.
3195 * m32c-tdep.c (m32c_return_value)
3196 (m32c_m16c_address_to_pointer): Update.
3197 * m32r-tdep.c (m32r_frame_this_id): Update.
3198 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3199 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3200 * maint.c (maintenance_translate_address): Update.
3201 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3202 (frob_address): New function.
3203 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3204 frob_address. Rename parameter to "pc_in".
3205 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3207 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3209 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3210 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3211 * objc-lang.c (find_objc_msgsend): Update.
3212 * objfiles.c (objfile_relocate1): Update.
3213 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3214 * p-valprint.c (pascal_val_print): Update.
3215 * parse.c (write_exp_msymbol): Update.
3216 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3217 (ppc_elfv2_skip_entrypoint): Update.
3218 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3219 * printcmd.c (build_address_symbolic, msym_info)
3220 (address_info): Update.
3221 * proc-service.c (ps_pglobal_lookup): Update.
3222 * psymtab.c (find_pc_sect_psymtab_closer)
3223 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3224 Change msymbol parameter to bound_minimal_symbol.
3225 * ravenscar-thread.c (get_running_thread_id): Update.
3226 * remote.c (remote_check_symbols): Update.
3227 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3229 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3230 * solib-dsbt.c (lm_base): Update.
3231 * solib-frv.c (lm_base, main_got): Update.
3232 * solib-irix.c (locate_base): Update.
3233 * solib-som.c (som_solib_create_inferior_hook)
3234 (link_map_start): Update.
3235 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3236 * solib-svr4.c (elf_locate_base, enable_break): Update.
3237 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3238 (flush_ea_cache): Update.
3239 * stabsread.c (define_symbol, scan_file_globals): Update.
3240 * stack.c (find_frame_funname): Update.
3241 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3242 (debug_qf_find_pc_sect_symtab): Update.
3243 * symfile.c (simple_read_overlay_table)
3244 (simple_overlay_update): Update.
3245 * symfile.h (struct quick_symbol_functions)
3246 <find_pc_sect_symtab>: Change type of msymbol to
3247 bound_minimal_symbol.
3248 * symmisc.c (dump_msymbols): Update.
3249 * symtab.c (find_pc_sect_symtab_via_partial)
3250 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3251 (search_symbols, print_msymbol_info): Update.
3252 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3253 (MSYMBOL_VALUE_ADDRESS): Redefine.
3254 (BMSYMBOL_VALUE_ADDRESS): New macro.
3255 * tracepoint.c (scope_info): Update.
3256 * tui/tui-disasm.c (tui_find_disassembly_address)
3257 (tui_get_begin_asm_address): Update.
3258 * valops.c (find_function_in_inferior): Update.
3259 * value.c (value_static_field, value_fn_field): Update.
3261 2014-02-26 Tom Tromey <tromey@redhat.com>
3263 * ada-lang.c (ada_update_initial_language): Update.
3264 (ada_main_name, ada_has_this_exception_support): Update.
3265 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3266 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3267 * arm-tdep.c (arm_skip_stub): Update.
3268 * auxv.c (ld_so_xfer_auxv): Update.
3269 * avr-tdep.c (avr_scan_prologue): Update.
3270 * ax-gdb.c (gen_var_ref): Update.
3271 * breakpoint.c (struct breakpoint_objfile_data)
3272 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3273 type to bound_minimal_symbol.
3274 (create_overlay_event_breakpoint)
3275 (create_longjmp_master_breakpoint)
3276 (create_std_terminate_master_breakpoint)
3277 (create_exception_master_breakpoint): Update.
3278 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3279 * c-exp.y (classify_name): Update.
3280 * coffread.c (coff_symfile_read): Update.
3281 * common/agent.c (agent_look_up_symbols): Update.
3282 * d-lang.c (d_main_name): Update.
3283 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3284 * dec-thread.c (enable_dec_thread): Update.
3285 * dwarf2loc.c (call_site_to_target_addr): Update.
3286 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3287 * eval.c (evaluate_subexp_standard): Update.
3288 * findvar.c (struct minsym_lookup_data) <result>: Change type
3289 to bound_minimal_symbol.
3291 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3292 * frame.c (inside_main_func): Update.
3293 * frv-tdep.c (frv_frame_this_id): Update.
3294 * gcore.c (call_target_sbrk): Update.
3295 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3296 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3298 * go-lang.c (go_main_name): Update.
3299 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3300 (hppa_hpux_find_import_stub_for_addr): Update.
3301 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3302 Update. Change return type.
3303 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3305 * jit.c (jit_breakpoint_re_set_internal): Update.
3306 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3308 * linux-nat.c (get_signo): Update.
3309 * linux-thread-db.c (inferior_has_bug): Update
3310 * m32c-tdep.c (m32c_return_value)
3311 (m32c_m16c_address_to_pointer): Update.
3312 * m32r-tdep.c (m32r_frame_this_id): Update.
3313 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3314 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3315 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3316 lookup_minimal_symbol. Change return type.
3317 (lookup_minimal_symbol): Remove.
3318 (lookup_bound_minimal_symbol): Update.
3319 (lookup_minimal_symbol_text): Change return type.
3320 (lookup_minimal_symbol_solib_trampoline): Change return type.
3321 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3322 (lookup_minimal_symbol_solib_trampoline): Change return type.
3323 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3324 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3325 (value_nsstring, find_imps): Update.
3326 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3327 * p-lang.c (pascal_main_name): Update.
3328 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3329 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3330 * proc-service.c (ps_pglobal_lookup): Update.
3331 * ravenscar-thread.c (get_running_thread_msymbol): Change
3333 (has_ravenscar_runtime, get_running_thread_id): Update.
3334 * remote.c (remote_check_symbols): Update.
3335 * sol-thread.c (ps_pglobal_lookup): Update.
3336 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3337 * solib-dsbt.c (lm_base): Update.
3338 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3340 * solib-irix.c (locate_base): Update.
3341 * solib-som.c (som_solib_create_inferior_hook)
3342 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3344 * solib-spu.c (spu_enable_break): Update.
3345 * solib-svr4.c (elf_locate_base, enable_break): Update.
3346 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3347 (flush_ea_cache): Update.
3348 * stabsread.c (define_symbol): Update.
3349 * symfile.c (simple_read_overlay_table): Update.
3350 * symtab.c (find_pc_sect_line): Update.
3351 * tracepoint.c (scope_info): Update.
3352 * tui-disasm.c (tui_get_begin_asm_address): Update.
3353 * value.c (value_static_field): Update.
3355 2014-02-26 Tom Tromey <tromey@redhat.com>
3357 * minsyms.c (prim_record_minimal_symbol_full): Use
3358 SET_MSYMBOL_VALUE_ADDRESS.
3359 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3360 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3361 SET_MSYMBOL_VALUE_ADDRESS.
3362 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3363 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3365 2014-02-26 Tom Tromey <tromey@redhat.com>
3367 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3368 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3369 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3370 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3371 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3372 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3373 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3374 * ada-lang.c (ada_main_name): Update.
3375 (ada_lookup_simple_minsym): Update.
3376 (ada_make_symbol_completion_list): Update.
3377 (ada_add_standard_exceptions): Update.
3378 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3379 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3380 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3381 * arm-tdep.c (skip_prologue_function): Update.
3382 (arm_skip_stack_protector, arm_skip_stub): Update.
3383 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3384 (arm_wince_skip_main_prologue): Update.
3385 * auxv.c (ld_so_xfer_auxv): Update.
3386 * avr-tdep.c (avr_scan_prologue): Update.
3387 * ax-gdb.c (gen_var_ref): Update.
3388 * block.c (call_site_for_pc): Update.
3389 * blockframe.c (get_pc_function_start): Update.
3390 (find_pc_partial_function_gnu_ifunc): Update.
3391 * breakpoint.c (create_overlay_event_breakpoint): Update.
3392 (create_longjmp_master_breakpoint): Update.
3393 (create_std_terminate_master_breakpoint): Update.
3394 (create_exception_master_breakpoint): Update.
3395 (resolve_sal_pc): Update.
3396 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3397 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3399 * c-valprint.c (c_val_print): Update.
3400 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3401 * coffread.c (coff_symfile_read): Update.
3402 * common/agent.c (agent_look_up_symbols): Update.
3403 * dbxread.c (find_stab_function_addr): Update.
3404 (end_psymtab): Update.
3405 * dwarf2loc.c (call_site_to_target_addr): Update.
3406 (func_verify_no_selftailcall): Update.
3407 (tailcall_dump): Update.
3408 (call_site_find_chain_1): Update.
3409 (dwarf_expr_reg_to_entry_parameter): Update.
3410 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3411 (elf_gnu_ifunc_resolve_by_got): Update.
3412 * f-valprint.c (info_common_command): Update.
3413 * findvar.c (read_var_value): Update.
3414 * frame.c (get_prev_frame_1): Update.
3415 (inside_main_func): Update.
3416 * frv-tdep.c (frv_skip_main_prologue): Update.
3417 (frv_frame_this_id): Update.
3418 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3419 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3420 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3421 (gnuv3_skip_trampoline): Update.
3422 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3423 (hppa64_hpux_in_solib_call_trampoline): Update.
3424 (hppa_hpux_skip_trampoline_code): Update.
3425 (hppa64_hpux_search_dummy_call_sequence): Update.
3426 (hppa_hpux_find_import_stub_for_addr): Update.
3427 (hppa_hpux_find_dummy_bpaddr): Update.
3428 * hppa-tdep.c (hppa_symbol_address)
3429 (hppa_lookup_stub_minimal_symbol): Update.
3430 * i386-tdep.c (i386_skip_main_prologue): Update.
3431 (i386_pe_skip_trampoline_code): Update.
3432 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3433 * infcall.c (get_function_name): Update.
3434 * infcmd.c (until_next_command): Update.
3435 * jit.c (jit_breakpoint_re_set_internal): Update.
3436 (jit_inferior_init): Update.
3437 * linespec.c (minsym_found): Update.
3438 (add_minsym): Update.
3439 * linux-fork.c (info_checkpoints_command): Update.
3440 * linux-nat.c (get_signo): Update.
3441 * linux-thread-db.c (inferior_has_bug): Update.
3442 * m32c-tdep.c (m32c_return_value): Update.
3443 (m32c_m16c_address_to_pointer): Update.
3444 (m32c_m16c_pointer_to_address): Update.
3445 * m32r-tdep.c (m32r_frame_this_id): Update.
3446 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3447 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3448 * maint.c (maintenance_translate_address): Update.
3449 * minsyms.c (add_minsym_to_hash_table): Update.
3450 (add_minsym_to_demangled_hash_table): Update.
3451 (msymbol_objfile): Update.
3452 (lookup_minimal_symbol): Update.
3453 (iterate_over_minimal_symbols): Update.
3454 (lookup_minimal_symbol_text): Update.
3455 (lookup_minimal_symbol_by_pc_name): Update.
3456 (lookup_minimal_symbol_solib_trampoline): Update.
3457 (lookup_minimal_symbol_by_pc_section_1): Update.
3458 (lookup_minimal_symbol_and_objfile): Update.
3459 (prim_record_minimal_symbol_full): Update.
3460 (compare_minimal_symbols): Update.
3461 (compact_minimal_symbols): Update.
3462 (build_minimal_symbol_hash_tables): Update.
3463 (install_minimal_symbols): Update.
3464 (terminate_minimal_symbol_table): Update.
3465 (find_solib_trampoline_target): Update.
3466 (minimal_symbol_upper_bound): Update.
3467 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3468 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3469 (mips_skip_pic_trampoline_code): Update.
3470 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3471 * objc-lang.c (selectors_info): Update.
3472 (classes_info): Update.
3473 (find_methods): Update.
3474 (find_imps): Update.
3475 (find_objc_msgsend): Update.
3476 * objfiles.c (objfile_relocate1): Update.
3477 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3478 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3479 * p-valprint.c (pascal_val_print): Update.
3480 * parse.c (write_exp_msymbol): Update.
3481 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3482 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3483 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3484 * printcmd.c (build_address_symbolic): Update.
3486 (address_info): Update.
3487 * proc-service.c (ps_pglobal_lookup): Update.
3488 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3489 (find_pc_sect_psymtab): Update.
3490 * python/py-framefilter.c (py_print_frame): Update.
3491 * ravenscar-thread.c (get_running_thread_id): Update.
3492 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3494 * remote.c (remote_check_symbols): Update.
3495 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3496 (rs6000_skip_trampoline_code): Update.
3497 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3498 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3499 * solib-dsbt.c (lm_base): Update.
3500 * solib-frv.c (lm_base): Update.
3502 * solib-irix.c (locate_base): Update.
3503 * solib-som.c (som_solib_create_inferior_hook): Update.
3504 (som_solib_desire_dynamic_linker_symbols): Update.
3505 (link_map_start): Update.
3506 * solib-spu.c (spu_enable_break): Update.
3507 (ocl_enable_break): Update.
3508 * solib-svr4.c (elf_locate_base): Update.
3509 (enable_break): Update.
3510 * spu-tdep.c (spu_get_overlay_table): Update.
3511 (spu_catch_start): Update.
3512 (flush_ea_cache): Update.
3513 * stabsread.c (define_symbol): Update.
3514 (scan_file_globals): Update.
3515 * stack.c (find_frame_funname): Update.
3516 (frame_info): Update.
3517 * symfile.c (simple_read_overlay_table): Update.
3518 (simple_overlay_update): Update.
3519 * symmisc.c (dump_msymbols): Update.
3520 * symtab.c (fixup_section): Update.
3521 (find_pc_sect_line): Update.
3522 (skip_prologue_sal): Update.
3523 (search_symbols): Update.
3524 (print_msymbol_info): Update.
3525 (rbreak_command): Update.
3526 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3527 (completion_list_objc_symbol): Update.
3528 (default_make_symbol_completion_list_break_on): Update.
3529 * tracepoint.c (scope_info): Update.
3530 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3531 (tui_get_begin_asm_address): Update.
3532 * valops.c (find_function_in_inferior): Update.
3533 * value.c (value_static_field): Update.
3534 (value_fn_field): Update.
3536 2014-02-26 Tom Tromey <tromey@redhat.com>
3538 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3539 bound minimal symbols. Move code that knows about minsym
3541 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3543 * minsyms.h (minimal_symbol_upper_bound): Declare.
3544 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3545 minimal_symbol_upper_bound.
3547 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3549 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3550 Use the type's name if its basic type does not have a tag.
3552 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3554 * dwarf2read.c (read_subrange_type): Add comment.
3556 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3558 * dwarf2read.c (update_enumeration_type_from_children): New
3559 function, mostly extracted from process_structure_scope.
3560 (read_enumeration_type): Call update_enumeration_type_from_children.
3561 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3562 and flag_flag_enum fields.
3564 2014-02-26 Pedro Alves <palves@redhat.com>
3566 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3567 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3568 to_xfer_partial method.
3570 2014-02-26 Pedro Alves <palves@redhat.com>
3572 * target.c (complete_target_initialization): Don't install
3573 default_xfer_partial as to_xfer_partial hook.
3575 (update_current_target): Don't INHERIT nor de_fault
3576 deprecated_xfer_memory. Delete de_fault macro.
3577 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3578 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3579 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3582 2014-02-26 Pedro Alves <palves@redhat.com>
3584 * go32-nat.c (my_write_child): New function.
3585 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3586 (go32_xfer_partial): New function.
3587 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3588 Instead install a to_xfer_partial hook.
3590 2014-02-26 Pedro Alves <palves@redhat.com>
3592 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3593 to_xfer_partial helper. Rewrite.
3594 (procfs_xfer_partial): New function.
3595 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3596 Install a to_xfer_partial hook.
3598 2014-02-26 Pedro Alves <palves@redhat.com>
3600 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3601 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3602 (m32r_xfer_partial): New function.
3603 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3604 Install a to_xfer_partial hook.
3606 2014-02-26 Pedro Alves <palves@redhat.com>
3608 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3610 (mips_xfer_partial): New function.
3611 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3612 hook. Install a to_xfer_partial hook.
3614 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3616 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3617 * gdbtypes.c (create_array_type_with_stride): New function,
3618 renaming create_array_type, but with an added parameter
3619 called "bit_stride".
3620 (create_array_type): Re-implement using
3621 create_array_type_with_stride.
3622 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3623 and DW_AT_bit_stride attributes.
3625 2014-02-26 Pedro Alves <palves@redhat.com>
3627 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3628 task-specific breakpoints.
3630 2014-02-25 Pedro Alves <palves@redhat.com>
3632 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3633 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3635 2014-02-25 Stan Shebs <stan@codesourcery.com>
3637 * defs.h: Annotate comments for Doxygen.
3639 2014-02-25 Tom Tromey <tromey@redhat.com>
3641 * target.h (target_ignore): Don't declare.
3642 * target.c (target_ignore): Remove.
3644 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3647 * auto-load.c (auto_load_objfile_script_1): Change filename to
3650 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3652 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3653 documentation. Adjust prototype to match the target_ops
3654 to_xfer_partial method. Adjust implementation accordingly.
3656 2014-02-25 Hui Zhu <hui@codesourcery.com>
3658 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3661 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3663 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3664 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3665 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3666 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3667 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3668 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3669 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3670 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3672 (rl78_register_type): Use a data pointer type for SP and
3673 new pseudo registers mentioned above. Use a 16 bit integer
3674 type for all other register pairs.
3675 (rl78_register_name, rl78_g10_register_name): Update for
3676 new pseudo registers.
3677 (rl78_pseudo_register_read): Likewise.
3678 (rl78_pseudo_register_write): Likewise.
3679 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3680 to the newly added pseudo registers.
3682 2014-02-24 Doug Evans <dje@google.com>
3684 * value.c (record_latest_value): Fix comment.
3685 * printcmd.c (print_command_1): Remove code to handle -1 return from
3686 record_latest_value.
3688 2014-02-24 Pedro Alves <palves@redhat.com>
3690 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3691 deprecated_xfer_memory hook.
3692 (procfs_xfer_partial): Call procfs_xfer_memory instead
3693 of the deprecated_xfer_memory target hook.
3694 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3697 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3699 * windows-nat.c (windows_xfer_shared_libraries): Return
3700 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3701 requested object is TARGET_OBJECT_LIBRARIES.
3703 2014-02-24 Yao Qi <yao@codesourcery.com>
3705 * target.h (enum target_xfer_status)
3706 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3707 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3709 * corefile.c (memory_error_message): User updated.
3710 * exec.c (section_table_read_available_memory): Likewise.
3711 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3712 * target.c (target_xfer_status_to_string): Likewise.
3713 (raw_memory_xfer_partial): Likewise.
3714 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3715 * valops.c (read_value_memory): Likewise.
3716 * exec.h: Update comments.
3718 2014-02-24 Yao Qi <yao@codesourcery.com>
3720 * target.c (target_xfer_status_to_string): Rename argument err
3722 * target.h (target_xfer_status_to_string): Update declaration.
3723 Replace target_xfer_error_to_string with
3724 target_xfer_status_to_string in comment.
3726 2014-02-24 Yao Qi <yao@codesourcery.com>
3728 * mips-linux-nat.c (super_close): Update its type.
3729 (mips_linux_close): Pass 'self' to super_close.
3731 2014-02-24 Yao Qi <yao@codesourcery.com>
3733 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3734 * corefile.c (read_memory): Adjusted.
3735 * target.c (target_write_with_progress): Adjusted.
3737 2014-02-23 Yao Qi <yao@codesourcery.com>
3741 2013-10-25 Yao Qi <yao@codesourcery.com>
3743 * remote.c (remote_traceframe_info): Return early if
3744 traceframe is not selected.
3746 2013-07-19 Yao Qi <yao@codesourcery.com>
3748 * target.c (update_current_target): Change the default action
3749 of 'to_traceframe_info' from tcomplain to return_zero.
3750 * target.h (struct target_ops) <to_traceframe_info>: Add more
3753 2014-02-23 Yao Qi <yao@codesourcery.com>
3755 * valops.c (read_value_memory): Rewrite it. Call
3756 target_xfer_partial in a loop.
3757 * exec.h (section_table_available_memory): Remove declaration.
3758 Move comments to ...
3759 * exec.c (section_table_available_memory): ... here. Make it
3762 2014-02-23 Yao Qi <yao@codesourcery.com>
3764 * exec.c (section_table_read_available_memory): New function.
3765 * exec.h (section_table_read_available_memory): Declare.
3766 * ctf.c (ctf_xfer_partial): Call
3767 section_table_read_available_memory.
3768 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3770 2014-02-23 Yao Qi <yao@codesourcery.com>
3772 * ctf.c (ctf_xfer_partial): Move code to ...
3773 * exec.c (exec_read_partial_read_only): ... it. New function.
3774 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3775 * tracefile.c: Include "exec.h".
3776 * exec.h (exec_read_partial_read_only): Declare.
3778 2014-02-23 Yao Qi <yao@codesourcery.com>
3780 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3781 (tfile_has_memory): Remove.
3782 (init_tfile_ops): Don't set fields to_has_all_memory and
3783 to_has_memory of tfile_ops.
3784 * tracefile.c (tracefile_has_all_memory): New function.
3785 (tracefile_has_memory): New function.
3786 (init_tracefile_ops): Initialize fields to_has_all_memory and
3787 to_has_memory of 'ops'.
3789 2014-02-23 Yao Qi <yao@codesourcery.com>
3791 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3792 (ctf_thread_alive, ctf_get_trace_status): Remove.
3793 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3795 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3796 (tfile_has_stack, tfile_has_registers): Remove.
3797 (tfile_thread_alive): Remove.
3798 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3800 * tracefile.c (tracefile_has_stack): New function.
3801 (tracefile_has_registers): New function.
3802 (tracefile_thread_alive): New function.
3803 (tracefile_get_trace_status): New function.
3804 (init_tracefile_ops): New function.
3805 * tracefile.h (init_tracefile_ops): Declare.
3807 2014-02-23 Yao Qi <yao@codesourcery.com>
3809 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3810 (O_LARGEFILE): Likewise.
3811 (tfile_ops): Likewise.
3812 (TRACE_HEADER_SIZE): Likewise.
3813 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3814 (cur_data_size): Likewise.
3815 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3816 (tfile_close, tfile_files_info): Likewise.
3817 (tfile_get_trace_status): Likewise.
3818 (tfile_get_tracepoint_status): Likewise.
3819 (tfile_get_traceframe_address): Likewise.
3820 (tfile_trace_find, match_blocktype): Likewise.
3821 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3822 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3823 (tfile_get_trace_state_variable_value): Likewise.
3824 (tfile_has_all_memory, tfile_has_memory): Likewise.
3825 (tfile_has_stack, tfile_has_registers): Likewise.
3826 (tfile_thread_alive, build_traceframe_info): Likewise.
3827 (tfile_traceframe_info, init_tfile_ops): Likewise.
3828 (_initialize_tracepoint): Don't call init_tfile_ops
3829 and add_target_with_completer.
3830 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3831 exec.h, completer.h and filenames.h.
3832 (_initialize_tracefile_tfile): New function.
3834 2014-02-23 Yao Qi <yao@codesourcery.com>
3836 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3838 (HFILES_NO_SRCDIR): Add tracefile.h.
3839 * ctf.c: Include "tracefile.h".
3840 * tracefile.h: New file.
3841 * tracefile.c: New file
3842 * tracefile-tfile.c: New file.
3843 * tracepoint.c: Include "tracefile.h".
3844 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3845 (stop_reason_names): Add const.
3846 (trace_file_writer_xfree): Move it to tracefile.c.
3847 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3848 (trace_save_ctf): Likewise.
3849 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3850 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3851 (tfile_write_header, tfile_write_regblock_type): Likewise.
3852 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3853 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3854 (tfile_write_raw_data, tfile_end): Likewise.
3855 (tfile_trace_file_writer_new): Likewise.
3856 (free_uploaded_tp): Make it extern.
3857 (free_uploaded_tsv): Make it extern.
3858 (_initialize_tracepoint): Move code to register command 'tsave'
3860 * tracepoint.h (stop_reason_names): Declare.
3861 (struct trace_frame_write_ops): Move it to tracefile.h.
3862 (struct trace_file_write_ops): Likewise.
3863 (struct trace_file_writer): Likewise.
3864 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3866 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3869 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3871 (get_cores_used_by_process): New parameter num_cores, use it.
3872 (linux_xfer_osdata_processes): Pass num_cores to it.
3873 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3876 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3878 * target.c (memory_xfer_partial): Fix length arg in call to
3879 breakpoint_xfer_memory.
3881 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3884 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3885 number comes after the + or - signs. Adjust length of register
3886 name to be extracted.
3888 2014-02-20 Tom Tromey <tromey@redhat.com>
3890 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3891 (ada_varobj_ops): Mark "extern".
3893 2014-02-20 Tom Tromey <tromey@redhat.com>
3895 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3897 2014-02-20 Doug Evans <xdje42@gmail.com>
3899 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3900 All callers updated.
3901 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3902 All callers updated.
3903 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3904 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3906 2014-02-20 lin zuojian <manjian2006@gmail.com>
3907 Joel Brobecker <brobecker@adacore.com>
3908 Doug Evans <xdje42@gmail.com>
3911 * dwarf2read.c (struct die_info): New member in_process.
3912 (reset_die_in_process): New function.
3913 (process_die): Set it at the start, reset when returning.
3914 (inherit_abstract_dies): Only call process_die if origin_child_die
3915 not already being processed.
3917 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3919 * windows-nat.c (handle_unload_dll): Add function documentation.
3920 (do_initial_windows_stuff): Add comment explaining why we wait
3921 until after inferior initialization has finished before
3922 processing all DLLs.
3924 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3926 * windows-nat.c (get_module_name): Delete.
3927 (windows_get_exec_module_filename): New function, mostly
3928 inspired from get_module_name.
3929 (windows_pid_to_exec_file): Replace call to get_module_name
3930 by call to windows_get_exec_module_filename.
3932 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3934 * windows-nat.c (handle_load_dll): Rewrite this function's
3935 introductory comment. Remove code using get_module_name
3936 to get the DLL's name.
3938 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3940 * windows-nat.c (get_windows_debug_event): Ignore
3941 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3942 if windows_initialization_done == 0.
3943 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3944 Adjust implementation to always load all DLLs.
3945 (do_initial_windows_stuff): Replace call to
3946 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3948 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3950 * windows-nat.c (_initialize_windows_nat): Deprecate the
3951 "dll-symbols" command. Turn the "add-shared-symbol-files"
3952 and "assf" aliases into commands, and deprecate them as well.
3953 * NEWS: Add entry explaining that "dll-symbols" and its two
3954 aliases are now deprecated.
3956 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3958 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3959 new-line in debug string. Remove trailing spaces.
3961 2014-02-19 Stan Shebs <stan@codesourcery.com>
3963 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3965 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3967 * NEWS: Add entry for the new feature
3968 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3971 2014-02-19 Stan Shebs <stan@codesourcery.com>
3973 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3975 2014-02-19 Pedro Alves <palves@redhat.com>
3977 * common/ptid.h (struct ptid): Mention that process_stratum
3978 targets should prefer ptid.lwp.
3980 2014-02-19 Pedro Alves <palves@redhat.com>
3982 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3983 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3984 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3985 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3986 store remote thread ids rather than ptid.tid.
3987 (_initialize_remote): Adjust.
3989 2014-02-19 Tom Tromey <tromey@redhat.com>
3991 * target.c (target_get_unwinder): Rewrite.
3992 (target_get_tailcall_unwinder): Rewrite.
3993 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3994 (record_btrace_to_get_tailcall_unwinder): New function.
3995 (init_record_btrace_ops): Update.
3996 * target.h (struct target_ops) <to_get_unwinder,
3997 to_get_tailcall_unwinder>: Now function pointers. Use
3998 TARGET_DEFAULT_RETURN.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4004 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4006 2014-02-19 Tom Tromey <tromey@redhat.com>
4008 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4010 * target-delegates.c: Rebuild.
4011 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4012 TARGET_DEFAULT_FUNC.
4013 * target.c (default_target_decr_pc_after_break): Rename from
4014 forward_target_decr_pc_after_break. Simplify.
4015 (target_decr_pc_after_break): Rely on delegation.
4017 2014-02-19 Tom Tromey <tromey@redhat.com>
4019 * target.c (update_current_target): Do not INHERIT to_doc or
4020 to_magic. Do not de_fault to_open or to_close.
4022 2014-02-19 Tom Tromey <tromey@redhat.com>
4024 * gcore.h (objfile_find_memory_regions): Declare.
4025 * gcore.c (objfile_find_memory_regions): No longer static. Add
4027 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4028 * exec.c: Include gcore.h.
4029 (exec_set_find_memory_regions): Remove.
4030 (exec_find_memory_regions): Remove.
4031 (exec_do_find_memory_regions): Remove.
4032 (init_exec_ops): Update.
4033 * defs.h (exec_set_find_memory_regions): Remove.
4035 2014-02-19 Tom Tromey <tromey@redhat.com>
4037 * target-delegates.c: Rebuild.
4038 * target.h (struct target_ops) <to_extra_thread_info,
4039 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4040 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4041 not 0, in TARGET_DEFAULT_RETURN.
4043 2014-02-19 Tom Tromey <tromey@redhat.com>
4045 * target.c (complete_target_initialization): Remove casts. Use
4046 return_zero_has_execution.
4047 (return_zero): Add "ignore" argument.
4048 (return_zero_has_execution): New function.
4049 (init_dummy_target): Remove casts. Use
4050 return_zero_has_execution.
4052 2014-02-19 Tom Tromey <tromey@redhat.com>
4054 * target.c (update_current_target): Update comments. Do not
4057 2014-02-19 Tom Tromey <tromey@redhat.com>
4059 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4061 * corelow.c (core_read_description): Delegate when needed.
4062 * remote.c (remote_read_description): Delegate when needed.
4063 * target-delegates.c: Rebuild.
4064 * target.c (target_read_description): Rewrite.
4065 * target.h (struct target_ops) <to_read_description>: Update
4066 comment. Use TARGET_DEFAULT_RETURN.
4068 2014-02-19 Tom Tromey <tromey@redhat.com>
4070 * target-delegates.c: Rebuild.
4071 * target.c (update_current_target): Don't inherit or default
4073 (find_default_run_target): Check against delegate_can_run.
4074 * target.h (struct target_ops) <to_can_run>: Use
4075 TARGET_DEFAULT_RETURN.
4077 2014-02-19 Tom Tromey <tromey@redhat.com>
4079 * target-delegates.c: Rebuild.
4080 * target.c (target_disconnect): Unconditionally delegate.
4081 * target.h (struct target_ops) <to_disconnect>: Use
4082 TARGET_DEFAULT_NORETURN.
4084 2014-02-19 Tom Tromey <tromey@redhat.com>
4086 * record.c (record_stop): Unconditionally delegate.
4087 * target-delegates.c: Rebuild.
4088 * target.c (target_stop_recording): Unconditionally delegate.
4089 * target.h (struct target_ops) <to_stop_recording>: Use
4090 TARGET_DEFAULT_IGNORE.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * target-delegates.c: Rebuild.
4095 * target.c (target_enable_btrace): Unconditionally delegate.
4096 * target.h (struct target_ops) <to_enable_btrace>: Use
4097 TARGET_DEFAULT_NORETURN.
4099 2014-02-19 Tom Tromey <tromey@redhat.com>
4101 * target-delegates.c: Rebuild.
4102 * target.c (target_read_btrace): Unconditionally delegate.
4103 * target.h (struct target_ops) <to_read_btrace>: Use
4104 TARGET_DEFAULT_NORETURN.
4106 2014-02-19 Tom Tromey <tromey@redhat.com>
4108 * target-delegates.c: Rebuild.
4109 * target.c (target_teardown_btrace): Unconditionally delegate.
4110 * target.h (struct target_ops) <to_teardown_btrace>: Use
4111 TARGET_DEFAULT_NORETURN.
4113 2014-02-19 Tom Tromey <tromey@redhat.com>
4115 * target-delegates.c: Rebuild.
4116 * target.c (target_disable_btrace): Unconditionally delegate.
4117 * target.h (struct target_ops) <to_disable_btrace>: Use
4118 TARGET_DEFAULT_NORETURN.
4120 2014-02-19 Tom Tromey <tromey@redhat.com>
4122 * target-delegates.c: Rebuild.
4123 * target.c (default_search_memory): New function.
4124 (simple_search_memory): Update comment.
4125 (target_search_memory): Unconditionally delegate.
4126 * target.h (struct target_ops) <to_search_memory>: Use
4127 TARGET_DEFAULT_FUNC.
4129 2014-02-19 Tom Tromey <tromey@redhat.com>
4131 * auxv.c (default_auxv_parse): No longer static.
4132 (target_auxv_parse): Unconditionally delegate.
4133 * auxv.h (default_auxv_parse): Declare.
4134 * target-delegates.c: Rebuild.
4135 * target.c: Include auxv.h.
4136 * target.h (struct target_ops) <to_auxv_parse>: Use
4137 TARGET_DEFAULT_FUNC.
4139 2014-02-19 Tom Tromey <tromey@redhat.com>
4141 * target-delegates.c: Rebuild.
4142 * target.c (target_memory_map): Unconditionally delegate.
4143 * target.h (struct target_ops) <to_memory_map>: Use
4144 TARGET_DEFAULT_RETURN.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * target-delegates.c: Rebuild.
4149 * target.c (target_thread_alive): Unconditionally delegate.
4150 * target.h (struct target_ops) <to_thread_alive>: Use
4151 TARGET_DEFAULT_RETURN.
4153 2014-02-19 Tom Tromey <tromey@redhat.com>
4155 * target-delegates.c: Rebuild.
4156 * target.c (target_save_record): Unconditionally delegate.
4157 * target.h (struct target_ops) <to_save_record>: Use
4158 TARGET_DEFAULT_NORETURN.
4160 2014-02-19 Tom Tromey <tromey@redhat.com>
4162 * target-delegates.c: Rebuild.
4163 * target.c (target_delete_record): Unconditionally delegate.
4164 * target.h (struct target_ops) <to_delete_record>: Use
4165 TARGET_DEFAULT_NORETURN.
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4169 * target-delegates.c: Rebuild.
4170 * target.c (target_record_is_replaying): Unconditionally
4172 * target.h (struct target_ops) <to_record_is_replaying>: Use
4173 TARGET_DEFAULT_RETURN.
4175 2014-02-19 Tom Tromey <tromey@redhat.com>
4177 * target-delegates.c: Rebuild.
4178 * target.c (target_goto_record_begin): Unconditionally delegate.
4179 * target.h (struct target_ops) <to_goto_record_begin>: Use
4180 TARGET_DEFAULT_NORETURN.
4182 2014-02-19 Tom Tromey <tromey@redhat.com>
4184 * target-delegates.c: Rebuild.
4185 * target.c (target_goto_record_end): Unconditionally delegate.
4186 * target.h (struct target_ops) <to_goto_record_end>: Use
4187 TARGET_DEFAULT_NORETURN.
4189 2014-02-19 Tom Tromey <tromey@redhat.com>
4191 * target-delegates.c: Rebuild.
4192 * target.c (target_goto_record): Unconditionally delegate.
4193 * target.h (struct target_ops) <to_goto_record>: Use
4194 TARGET_DEFAULT_NORETURN.
4196 2014-02-19 Tom Tromey <tromey@redhat.com>
4198 * target-delegates.c: Rebuild.
4199 * target.c (target_insn_history): Unconditionally delegate.
4200 * target.h (struct target_ops) <to_insn_history>: Use
4201 TARGET_DEFAULT_NORETURN.
4203 2014-02-19 Tom Tromey <tromey@redhat.com>
4205 * target-delegates.c: Rebuild.
4206 * target.c (target_insn_history_from): Unconditionally delegate.
4207 * target.h (struct target_ops) <to_insn_history_from>: Use
4208 TARGET_DEFAULT_NORETURN.
4210 2014-02-19 Tom Tromey <tromey@redhat.com>
4212 * target-delegates.c: Rebuild.
4213 * target.c (target_insn_history_range): Unconditionally delegate.
4214 * target.h (struct target_ops) <to_insn_history_range>: Use
4215 TARGET_DEFAULT_NORETURN.
4217 2014-02-19 Tom Tromey <tromey@redhat.com>
4219 * target-delegates.c: Rebuild.
4220 * target.c (target_call_history): Unconditionally delegate.
4221 * target.h (struct target_ops) <to_call_history>: Use
4222 TARGET_DEFAULT_NORETURN.
4224 2014-02-19 Tom Tromey <tromey@redhat.com>
4226 * target-delegates.c: Rebuild.
4227 * target.c (target_call_history_from): Unconditionally delegate.
4228 * target.h (struct target_ops) <to_call_history_from>: Use
4229 TARGET_DEFAULT_NORETURN.
4231 2014-02-19 Tom Tromey <tromey@redhat.com>
4233 * target-delegates.c: Rebuild.
4234 * target.c (target_call_history_range): Unconditionally delegate.
4235 * target.h (struct target_ops) <to_call_history_range>: Use
4236 TARGET_DEFAULT_NORETURN.
4238 2014-02-19 Tom Tromey <tromey@redhat.com>
4240 * target-delegates.c: Rebuild.
4241 * target.c (target_verify_memory): Unconditionally delegate.
4242 * target.h (struct target_ops) <to_verify_memory>: Use
4243 TARGET_DEFAULT_NORETURN.
4245 2014-02-19 Tom Tromey <tromey@redhat.com>
4247 * target-delegates.c: Rebuild.
4248 * target.c (target_core_of_thread): Unconditionally delegate.
4249 * target.h (struct target_ops) <to_core_of_thread>: Use
4250 TARGET_DEFAULT_RETURN.
4252 2014-02-19 Tom Tromey <tromey@redhat.com>
4254 * target-delegates.c: Rebuild.
4255 * target.c (target_flash_done): Unconditionally delegate.
4256 * target.h (struct target_ops) <to_flash_done>: Use
4257 TARGET_DEFAULT_NORETURN.
4259 2014-02-19 Tom Tromey <tromey@redhat.com>
4261 * target-delegates.c: Rebuild.
4262 * target.c (target_flash_erase): Unconditionally delegate.
4263 * target.h (struct target_ops) <to_flash_erase>: Use
4264 TARGET_DEFAULT_NORETURN.
4266 2014-02-19 Tom Tromey <tromey@redhat.com>
4268 * target-delegates.c: Rebuild.
4269 * target.c (target_get_section_table): Unconditionally delegate.
4270 * target.h (struct target_ops) <to_get_section_table>: Use
4271 TARGET_DEFAULT_RETURN.
4273 2014-02-19 Tom Tromey <tromey@redhat.com>
4275 * target-delegates.c: Rebuild.
4276 * target.c (target_pid_to_str): Unconditionally delegate.
4277 (init_dummy_target): Don't initialize to_pid_to_str.
4278 (default_pid_to_str): Rename from dummy_pid_to_str.
4279 * target.h (struct target_ops) <to_pid_to_str>: Use
4280 TARGET_DEFAULT_FUNC.
4282 2014-02-19 Tom Tromey <tromey@redhat.com>
4284 * target-delegates.c: Rebuild.
4285 * target.c (target_find_new_threads): Unconditionally delegate.
4286 * target.h (struct target_ops) <to_find_new_threads>: Use
4287 TARGET_DEFAULT_RETURN.
4289 2014-02-19 Tom Tromey <tromey@redhat.com>
4291 * target-delegates.c: Rebuild.
4292 * target.c (target_program_signals): Unconditionally delegate.
4293 * target.h (struct target_ops) <to_program_signals>: Use
4294 TARGET_DEFAULT_IGNORE.
4296 2014-02-19 Tom Tromey <tromey@redhat.com>
4298 * target-delegates.c: Rebuild.
4299 * target.c (target_pass_signals): Unconditionally delegate.
4300 * target.h (struct target_ops) <to_pass_signals>: Use
4301 TARGET_DEFAULT_IGNORE.
4303 2014-02-19 Tom Tromey <tromey@redhat.com>
4305 * target-delegates.c: Rebuild.
4306 * target.c (default_mourn_inferior): New function.
4307 (target_mourn_inferior): Unconditionally delegate.
4308 * target.h (struct target_ops) <to_mourn_inferior>: Use
4309 TARGET_DEFAULT_FUNC.
4311 2014-02-19 Tom Tromey <tromey@redhat.com>
4313 * target-delegates.c: Rebuild.
4314 * target.c (default_follow_fork): New function.
4315 (target_follow_fork): Unconditionally delegate.
4316 * target.h (struct target_ops) <to_follow_fork>: Use
4317 TARGET_DEFAULT_FUNC.
4319 2014-02-19 Tom Tromey <tromey@redhat.com>
4321 * target-delegates.c: Rebuild.
4322 * target.c (target_kill): Unconditionally delegate.
4323 * target.h (struct target_ops) <to_kill>: Use
4324 TARGET_DEFAULT_NORETURN.
4326 2014-02-19 Tom Tromey <tromey@redhat.com>
4328 * target-delegates.c: Rebuild.
4329 * target.c (target_masked_watch_num_registers): Unconditionally
4331 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4332 Use TARGET_DEFAULT_RETURN.
4334 2014-02-19 Tom Tromey <tromey@redhat.com>
4336 * target-delegates.c: Rebuild.
4337 * target.c (target_remove_mask_watchpoint): Unconditionally
4339 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4340 TARGET_DEFAULT_RETURN.
4342 2014-02-19 Tom Tromey <tromey@redhat.com>
4344 * target-delegates.c: Rebuild.
4345 * target.c (target_insert_mask_watchpoint): Unconditionally
4347 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4348 TARGET_DEFAULT_RETURN.
4350 2014-02-19 Tom Tromey <tromey@redhat.com>
4352 * target-delegates.c: Rebuild.
4353 * target.c (target_ranged_break_num_registers): Unconditionally
4355 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4356 Use TARGET_DEFAULT_RETURN.
4358 2014-02-19 Tom Tromey <tromey@redhat.com>
4360 * target-delegates.c: Rebuild.
4361 * target.c (target_fetch_registers): Unconditionally delegate.
4362 * target.h (struct target_ops) <to_fetch_registers>: Use
4363 TARGET_DEFAULT_NORETURN.
4365 2014-02-19 Tom Tromey <tromey@redhat.com>
4367 * target-delegates.c: Rebuild.
4368 * target.c (update_current_target): Don't inherit or default
4370 * target.h (struct target_ops) <to_stop>: Use
4371 TARGET_DEFAULT_IGNORE.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target-delegates.c: Rebuild.
4376 * target.c (update_current_target): Don't inherit or default
4377 to_can_run_breakpoint_commands.
4378 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4379 Use TARGET_DEFAULT_RETURN.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target-delegates.c: Rebuild.
4384 * target.c (update_current_target): Don't inherit or default
4385 to_supports_evaluation_of_breakpoint_conditions.
4386 * target.h (struct target_ops)
4387 <to_supports_evaluation_of_breakpoint_conditions>: Use
4388 TARGET_DEFAULT_RETURN.
4390 2014-02-19 Tom Tromey <tromey@redhat.com>
4392 * target-delegates.c: Rebuild.
4393 * target.c (update_current_target): Don't inherit or default
4394 to_augmented_libraries_svr4_read.
4395 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4396 Use TARGET_DEFAULT_RETURN.
4398 2014-02-19 Tom Tromey <tromey@redhat.com>
4400 * target-delegates.c: Rebuild.
4401 * target.c (update_current_target): Don't inherit or default
4403 * target.h (struct target_ops) <to_can_use_agent>: Use
4404 TARGET_DEFAULT_RETURN.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * target-delegates.c: Rebuild.
4409 * target.c (update_current_target): Don't inherit or default
4411 * target.h (struct target_ops) <to_use_agent>: Use
4412 TARGET_DEFAULT_NORETURN.
4414 2014-02-19 Tom Tromey <tromey@redhat.com>
4416 * target-delegates.c: Rebuild.
4417 * target.c (update_current_target): Don't inherit or default
4419 (return_null): Remove.
4420 * target.h (struct target_ops) <to_traceframe_info>: Use
4421 TARGET_DEFAULT_RETURN.
4423 2014-02-19 Tom Tromey <tromey@redhat.com>
4425 * target-delegates.c: Rebuild.
4426 * target.c (update_current_target): Don't inherit or default
4427 to_static_tracepoint_markers_by_strid.
4428 * target.h (struct target_ops)
4429 <to_static_tracepoint_markers_by_strid>: Use
4430 TARGET_DEFAULT_NORETURN.
4432 2014-02-19 Tom Tromey <tromey@redhat.com>
4434 * target-delegates.c: Rebuild.
4435 * target.c (update_current_target): Don't inherit or default
4436 to_static_tracepoint_marker_at.
4437 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4438 Use TARGET_DEFAULT_RETURN.
4440 2014-02-19 Tom Tromey <tromey@redhat.com>
4442 * target-delegates.c: Rebuild.
4443 * target.c (update_current_target): Don't inherit or default
4445 * target.h (struct target_ops) <to_set_permissions>: Use
4446 TARGET_DEFAULT_IGNORE.
4448 2014-02-19 Tom Tromey <tromey@redhat.com>
4450 * target-delegates.c: Rebuild.
4451 * target.c (update_current_target): Don't inherit or default
4453 * target.h (struct target_ops) <to_get_tib_address>: Use
4454 TARGET_DEFAULT_NORETURN.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target-delegates.c: Rebuild.
4459 * target.c (update_current_target): Don't inherit or default
4461 * target.h (struct target_ops) <to_set_trace_notes>: Use
4462 TARGET_DEFAULT_RETURN.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target-delegates.c: Rebuild.
4467 * target.c (update_current_target): Don't initialize
4468 to_set_trace_buffer_size.
4469 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4470 TARGET_DEFAULT_IGNORE.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (update_current_target): Don't inherit or default
4476 to_set_circular_trace_buffer.
4477 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4478 TARGET_DEFAULT_IGNORE.
4480 2014-02-19 Tom Tromey <tromey@redhat.com>
4482 * target-delegates.c: Rebuild.
4483 * target.c (update_current_target): Don't inherit or default
4484 to_set_disconnected_tracing.
4485 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4486 TARGET_DEFAULT_IGNORE.
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target-delegates.c: Rebuild.
4491 * target.c (update_current_target): Don't inherit or default
4492 to_get_min_fast_tracepoint_insn_len.
4493 (return_minus_one): Remove.
4494 * target.h (struct target_ops)
4495 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4497 2014-02-19 Tom Tromey <tromey@redhat.com>
4499 * target-delegates.c: Rebuild.
4500 * target.c (update_current_target): Don't inherit or default
4501 to_get_raw_trace_data.
4502 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4503 TARGET_DEFAULT_NORETURN.
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * target-delegates.c: Rebuild.
4508 * target.c (update_current_target): Don't inherit or default
4509 to_upload_trace_state_variables.
4510 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4511 Use TARGET_DEFAULT_RETURN.
4513 2014-02-19 Tom Tromey <tromey@redhat.com>
4515 * target-delegates.c: Rebuild.
4516 * target.c (update_current_target): Don't inherit or default
4517 to_upload_tracepoints.
4518 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4519 TARGET_DEFAULT_RETURN.
4521 2014-02-19 Tom Tromey <tromey@redhat.com>
4523 * target-delegates.c: Rebuild.
4524 * target.c (update_current_target): Don't inherit or default
4526 * target.h (struct target_ops) <to_save_trace_data>: Use
4527 TARGET_DEFAULT_NORETURN.
4529 2014-02-19 Tom Tromey <tromey@redhat.com>
4531 * target-delegates.c: Rebuild.
4532 * target.c (update_current_target): Don't inherit or default
4533 to_get_trace_state_variable_value.
4534 * target.h (struct target_ops)
4535 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4537 2014-02-19 Tom Tromey <tromey@redhat.com>
4539 * target-delegates.c: Rebuild.
4540 * target.c (update_current_target): Don't inherit or default
4542 * target.h (struct target_ops): Use 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
4549 * target.h (struct target_ops) <to_trace_stop>: Use
4550 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
4557 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4558 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
4565 * target.h (struct target_ops) <to_get_trace_status>: Use
4566 TARGET_DEFAULT_RETURN.
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
4573 * target.h (struct target_ops) <to_trace_start>: Use
4574 TARGET_DEFAULT_NORETURN.
4576 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * target-delegates.c: Rebuild.
4579 * target.c (update_current_target): Don't inherit or default
4580 to_trace_set_readonly_regions.
4581 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4582 Use TARGET_DEFAULT_NORETURN.
4584 2014-02-19 Tom Tromey <tromey@redhat.com>
4586 * target-delegates.c: Rebuild.
4587 * target.c (update_current_target): Don't inherit or default
4588 to_disable_tracepoint.
4589 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4590 TARGET_DEFAULT_NORETURN.
4592 2014-02-19 Tom Tromey <tromey@redhat.com>
4594 * target-delegates.c: Rebuild.
4595 * target.c (update_current_target): Don't inherit or default
4596 to_enable_tracepoint.
4597 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4598 TARGET_DEFAULT_NORETURN.
4600 2014-02-19 Tom Tromey <tromey@redhat.com>
4602 * target-delegates.c: Rebuild.
4603 * target.c (update_current_target): Don't inherit or default
4604 to_download_trace_state_variable.
4605 * target.h (struct target_ops) <to_download_trace_state_variable>:
4606 Use TARGET_DEFAULT_NORETURN.
4608 2014-02-19 Tom Tromey <tromey@redhat.com>
4610 * target-delegates.c: Rebuild.
4611 * target.c (update_current_target): Don't inherit or default
4612 to_can_download_tracepoint.
4613 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4614 TARGET_DEFAULT_RETURN.
4616 2014-02-19 Tom Tromey <tromey@redhat.com>
4618 * target-delegates.c: Rebuild.
4619 * target.c (update_current_target): Don't inherit or default
4620 to_download_tracepoint.
4621 * target.h (struct target_ops) <to_download_tracepoint>: Use
4622 TARGET_DEFAULT_NORETURN.
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
4629 * target.h (struct target_ops) <to_trace_init>: 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
4636 to_supports_string_tracing.
4637 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4638 TARGET_DEFAULT_RETURN.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target-delegates.c: Rebuild.
4643 * target.c (update_current_target): Don't inherit or default
4644 to_supports_enable_disable_tracepoint.
4645 * target.h (struct target_ops)
4646 <to_supports_enable_disable_tracepoint>: 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
4653 to_supports_multi_process.
4654 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
4662 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4663 TARGET_DEFAULT_FUNC.
4665 2014-02-19 Tom Tromey <tromey@redhat.com>
4667 * target-delegates.c: Rebuild.
4668 * target.c (update_current_target): Don't inherit or default
4669 to_thread_architecture.
4670 * target.h (struct target_ops) <to_thread_architecture>: Use
4671 TARGET_DEFAULT_FUNC.
4673 2014-02-19 Tom Tromey <tromey@redhat.com>
4675 * target-delegates.c: Rebuild.
4676 * target.c (update_current_target): Don't inherit or default
4677 to_execution_direction.
4678 * target.h (struct target_ops) <to_execution_direction>: Use
4679 TARGET_DEFAULT_FUNC.
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target-delegates.c: Rebuild.
4684 * target.c (update_current_target): Don't inherit or default
4685 to_can_execute_reverse.
4686 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4687 TARGET_DEFAULT_RETURN.
4688 (target_can_execute_reverse): Unconditionally delegate.
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
4695 (dummy_goto_bookmark): Remove.
4696 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4697 * target.h (struct target_ops) <to_goto_bookmark>: Use
4698 TARGET_DEFAULT_NORETURN.
4700 2014-02-19 Tom Tromey <tromey@redhat.com>
4702 * target-delegates.c: Rebuild.
4703 * target.c (update_current_target): Don't inherit or default
4705 (dummy_get_bookmark): Remove.
4706 (init_dummy_target): Don't inherit or default to_get_bookmark.
4707 * target.h (struct target_ops) <to_get_bookmark>: Use
4708 TARGET_DEFAULT_NORETURN
4710 2014-02-19 Tom Tromey <tromey@redhat.com>
4712 * target-delegates.c: Rebuild.
4713 * target.c (update_current_target): Don't inherit or default
4714 to_make_corefile_notes.
4715 (init_dummy_target): Don't initialize to_make_corefile_notes.
4716 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4717 TARGET_DEFAULT_FUNC.
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target-delegates.c: Rebuild.
4722 * target.c (update_current_target): Don't inherit or default
4723 to_find_memory_regions.
4724 (init_dummy_target): Don't initialize to_find_memory_regions.
4725 * target.h (struct target_ops) <to_find_memory_regions>: Use
4726 TARGET_DEFAULT_FUNC.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * target-delegates.c: Rebuild.
4731 * target.c (update_current_target): Don't inherit or default
4733 * target.h (struct target_ops) <to_log_command>: Use
4734 TARGET_DEFAULT_IGNORE.
4735 (target_log_command): Unconditionally delegate.
4737 2014-02-19 Tom Tromey <tromey@redhat.com>
4739 * target-delegates.c: Rebuild.
4740 * target.c (update_current_target): Don't inherit or default
4741 to_pid_to_exec_file.
4742 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4743 TARGET_DEFAULT_RETURN.
4745 2014-02-19 Tom Tromey <tromey@redhat.com>
4747 * target-delegates.c: Rebuild.
4748 * target.c (update_current_target): Don't inherit or default
4750 (target_thread_name): Unconditionally delegate.
4751 * target.h (struct target_ops) <to_thread_name>: Use
4752 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
4759 * target.h (struct target_ops) <to_extra_thread_info>: Use
4760 TARGET_DEFAULT_RETURN.
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
4767 * target.h (struct target_ops) <to_has_exited>: Use
4768 TARGET_DEFAULT_RETURN..
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
4774 to_set_syscall_catchpoint.
4775 (return_one): Remove.
4776 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4777 TARGET_DEFAULT_RETURN.
4779 2014-02-19 Tom Tromey <tromey@redhat.com>
4781 * target-delegates.c: Rebuild.
4782 * target.c (update_current_target): Don't inherit or default
4783 to_insert_exec_catchpoint.
4784 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4785 TARGET_DEFAULT_RETURN.
4787 2014-01-08 Tom Tromey <tromey@redhat.com>
4789 * target-delegates.c: Rebuild.
4790 * target.c (update_current_target): Don't inherit or default
4791 to_insert_exec_catchpoint.
4792 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4793 TARGET_DEFAULT_RETURN.
4795 2014-02-19 Tom Tromey <tromey@redhat.com>
4797 * target-delegates.c: Rebuild.
4798 * target.c (update_current_target): Don't inherit or default
4799 to_remove_vfork_catchpoint.
4800 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4801 TARGET_DEFAULT_RETURN.
4803 2014-02-19 Tom Tromey <tromey@redhat.com>
4805 * target-delegates.c: Rebuild.
4806 * target.c (update_current_target): Don't inherit or default
4807 to_insert_vfork_catchpoint.
4808 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4809 TARGET_DEFAULT_RETURN.
4811 2014-02-19 Tom Tromey <tromey@redhat.com>
4813 * target-delegates.c: Rebuild.
4814 * target.c (update_current_target): Don't inherit or default
4815 to_remove_fork_catchpoint.
4816 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4817 TARGET_DEFAULT_RETURN.
4819 2014-02-19 Tom Tromey <tromey@redhat.com>
4821 * target-delegates.c: Rebuild.
4822 * target.c (update_current_target): Don't inherit or default
4823 to_insert_fork_catchpoint.
4824 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4825 TARGET_DEFAULT_RETURN.
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * target-delegates.c: Rebuild.
4830 * target.c (update_current_target): Don't inherit or default
4831 to_post_startup_inferior.
4832 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4833 TARGET_DEFAULT_IGNORE.
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target-delegates.c: Rebuild.
4838 * target.c (update_current_target): Don't inherit or default
4840 * target.h (struct target_ops) <to_load>: Use
4841 TARGET_DEFAULT_NORETURN.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target-delegates.c: Rebuild.
4846 * target.c (update_current_target): Don't inherit or default
4848 * target.h (struct target_ops) <to_terminal_info>: Use
4849 TARGET_DEFAULT_FUNC.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target-delegates.c: Rebuild.
4854 * target.c (update_current_target): Don't inherit or default
4855 to_terminal_save_ours.
4856 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4857 TARGET_DEFAULT_IGNORE.
4859 2014-02-19 Tom Tromey <tromey@redhat.com>
4861 * target-delegates.c: Rebuild.
4862 * target.c (update_current_target): Don't inherit or default
4864 * target.h (struct target_ops) <to_terminal_ours>: Use
4865 TARGET_DEFAULT_IGNORE.
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target-delegates.c: Rebuild.
4870 * target.c (update_current_target): Don't inherit or default
4871 to_terminal_ours_for_output.
4872 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4873 TARGET_DEFAULT_IGNORE.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target-delegates.c: Rebuild.
4878 * target.c (update_current_target): Don't inherit or default
4879 to_terminal_inferior.
4880 * target.h (struct target_ops) <to_terminal_inferior>: Use
4881 TARGET_DEFAULT_IGNORE.
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target-delegates.c: Rebuild.
4886 * target.c (update_current_target): Don't inherit or default
4888 * target.h (struct target_ops) <to_terminal_init>: Use
4889 TARGET_DEFAULT_IGNORE.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (update_current_target): Don't inherit or default
4895 to_can_accel_watchpoint_condition.
4896 * target.h (struct target_ops)
4897 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4899 2014-02-19 Tom Tromey <tromey@redhat.com>
4901 * target-delegates.c: Rebuild.
4902 * target.c (update_current_target): Don't inherit or default
4903 to_region_ok_for_hw_watchpoint.
4904 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4905 Use TARGET_DEFAULT_FUNC.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target-delegates.c: Rebuild.
4910 * target.c (update_current_target): Don't inherit or default
4911 to_watchpoint_addr_within_range.
4912 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4913 Use TARGET_DEFAULT_FUNC.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target-delegates.c: Rebuild.
4918 * target.c (update_current_target): Don't inherit or default
4919 to_remove_watchpoint.
4920 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4921 TARGET_DEFAULT_NORETURN.
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4925 * target-delegates.c: Rebuild.
4926 * target.c (update_current_target): Don't inherit or default
4927 to_insert_watchpoint.
4928 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4929 TARGET_DEFAULT_RETURN.
4931 2014-02-19 Tom Tromey <tromey@redhat.com>
4933 * target-delegates.c: Rebuild.
4934 * target.c (update_current_target): Don't inherit or default
4935 to_remove_hw_breakpoint.
4936 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4937 TARGET_DEFAULT_RETURN.
4939 2014-02-19 Tom Tromey <tromey@redhat.com>
4941 * target-delegates.c: Rebuild.
4942 * target.c (update_current_target): Don't inherit or default
4943 to_insert_hw_breakpoint.
4944 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4945 TARGET_DEFAULT_RETURN.
4947 2014-02-19 Tom Tromey <tromey@redhat.com>
4949 * target-delegates.c: Rebuild.
4950 * target.c (update_current_target): Don't inherit or default
4951 to_can_use_hw_breakpoint.
4952 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4953 TARGET_DEFAULT_RETURN.
4955 2014-02-19 Tom Tromey <tromey@redhat.com>
4957 * target-delegates.c: Rebuild.
4958 * target.c (update_current_target): Don't inherit or default
4960 * target.h (struct target_ops) <to_files_info>: Use
4961 TARGET_DEFAULT_IGNORE.
4963 2014-02-19 Tom Tromey <tromey@redhat.com>
4965 * target-delegates.c: Rebuild.
4966 * target.c (update_current_target): Don't inherit or default
4968 * target.h (struct target_ops) <to_store>: Use
4969 TARGET_DEFAULT_NORETURN.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target-delegates.c: Rebuild.
4974 * target.c (update_current_target): Don't inherit or default
4976 * target.h (struct target_ops) <to_post_attach>: Use
4977 TARGET_DEFAULT_IGNORE.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target-delegates.c: Rebuild.
4982 * target.c (update_current_target): Don't inherit or default
4984 (default_rcmd): New function.
4985 (do_monitor_command): Unconditionally delegate.
4986 * target.h (struct target_ops) <to_rmcd>: Use
4987 TARGET_DEFAULT_FUNC.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * target-delegates.c: Rebuild.
4992 * target.c (init_dummy_target): Don't initialize to_attach.
4993 (target_attach): Unconditionally delegate.
4994 * target.h (struct target_ops) <to_attach>: Use
4995 TARGET_DEFAULT_FUNC.
4997 2014-02-19 Tom Tromey <tromey@redhat.com>
4999 * target-delegates.c: Rebuild.
5000 * target.c (target_detach): Unconditionally delegate.
5001 (init_dummy_target): Don't initialize to_detach.
5002 * target.h (struct target_ops) <to_detach>: Use
5003 TARGET_DEFAULT_IGNORE.
5005 2014-02-19 Tom Tromey <tromey@redhat.com>
5007 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5009 (target_augmented_libraries_svr4_read): Add argument.
5010 * target.c (update_current_target): Update.
5011 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target.h (struct target_ops) <to_call_history_range>: Add
5018 * target.c (target_call_history_range): Add argument.
5019 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5021 (record_btrace_call_history_from): Update.
5023 2014-02-19 Tom Tromey <tromey@redhat.com>
5025 * target.h (struct target_ops) <to_call_history_from>: Add
5027 * target.c (target_call_history_from): Add argument.
5028 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target.h (struct target_ops) <to_call_history>: Add argument.
5034 * target.c (target_call_history): Add argument.
5035 * record-btrace.c (record_btrace_call_history): Add 'self'
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target.h (struct target_ops) <to_insn_history_range>: Add
5042 * target.c (target_insn_history_range): Add argument.
5043 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5045 (record_btrace_insn_history_from): Update.
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5049 * target.h (struct target_ops) <to_insn_history_from>: Add
5051 * target.c (target_insn_history_from): Add argument.
5052 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * target.h (struct target_ops) <to_insn_history>: Add argument.
5058 * target.c (target_insn_history): Add argument.
5059 * record-btrace.c (record_btrace_insn_history): Add 'self'
5062 2014-02-19 Tom Tromey <tromey@redhat.com>
5064 * target.h (struct target_ops) <to_goto_record>: Add argument.
5065 * target.c (target_goto_record): Add argument.
5066 * record-full.c (record_full_goto): Add 'self' argument.
5067 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5071 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5072 * target.c (target_goto_record_end): Add argument.
5073 * record-full.c (record_full_goto_end): Add 'self' argument.
5074 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5076 2014-02-19 Tom Tromey <tromey@redhat.com>
5078 * target.h (struct target_ops) <to_goto_record_begin>: Add
5080 * target.c (target_goto_record_begin): Add argument.
5081 * record-full.c (record_full_goto_begin): Add 'self' argument.
5082 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target.h (struct target_ops) <to_record_is_replaying>: Add
5089 * target.c (target_record_is_replaying): Add argument.
5090 * record-full.c (record_full_is_replaying): Add 'self' argument.
5091 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5093 (record_btrace_xfer_partial, record_btrace_store_registers)
5094 (record_btrace_prepare_to_store, record_btrace_resume)
5095 (record_btrace_wait, record_btrace_decr_pc_after_break)
5096 (record_btrace_find_new_threads, record_btrace_thread_alive):
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target.h (struct target_ops) <to_delete_record>: Add argument.
5102 * target.c (target_delete_record): Add argument.
5103 * record-full.c (record_full_delete): Add 'self' argument.
5105 2014-02-19 Tom Tromey <tromey@redhat.com>
5107 * target.h (struct target_ops) <to_save_record>: Add argument.
5108 * target.c (target_save_record): Add argument.
5109 * record-full.c (record_full_save): Add 'self' argument.
5110 (record_full_save): Add 'self' argument.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target.h (struct target_ops) <to_info_record>: Add argument.
5115 * target.c (target_info_record): Add argument.
5116 * record.c (info_record_command): Add argument.
5117 * record-full.c (record_full_info): Add 'self' argument.
5118 * record-btrace.c (record_btrace_info): Add 'self' argument.
5120 2014-02-19 Tom Tromey <tromey@redhat.com>
5122 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5123 * target.c (target_stop_recording): Add argument.
5124 * record.c (record_stop): Add argument.
5125 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5131 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5132 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5134 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5135 (_initialize_amd64_linux_nat): Use it.
5136 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5137 (_initialize_i386_linux_nat): Use it.
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5142 * target.c (target_teardown_btrace): Add argument.
5143 * remote.c (remote_teardown_btrace): Add 'self' argument.
5144 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5146 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5152 * target.c (target_disable_btrace): Add argument.
5153 * remote.c (remote_disable_btrace): Add 'self' argument.
5154 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5156 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5159 2014-02-19 Tom Tromey <tromey@redhat.com>
5161 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5162 * target.c (target_enable_btrace): Add argument.
5163 * remote.c (remote_enable_btrace): Add 'self' argument.
5164 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5166 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5169 2014-02-19 Tom Tromey <tromey@redhat.com>
5171 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5172 (target_can_use_agent): Add argument.
5173 * target.c (update_current_target): Update.
5174 * remote.c (remote_can_use_agent): Add 'self' argument.
5175 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target.h (struct target_ops) <to_use_agent>: Add argument.
5180 (target_use_agent): Add argument.
5181 * target.c (update_current_target): Update.
5182 * remote.c (remote_use_agent): Add 'self' argument.
5183 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5185 2014-02-19 Tom Tromey <tromey@redhat.com>
5187 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5188 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5189 (target_traceframe_info): Add argument.
5190 * target.c (update_current_target): Update.
5191 * remote.c (remote_traceframe_info): Add 'self' argument.
5192 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5194 2014-02-19 Tom Tromey <tromey@redhat.com>
5196 * target.h (target_static_tracepoint_markers_by_strid): Add
5198 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5200 * target.c (update_current_target): Update.
5201 * remote.c (struct target_ops)
5202 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5203 * linux-nat.c (struct target_ops)
5204 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5210 (target_static_tracepoint_marker_at): Add argument.
5211 * target.c (update_current_target): Update.
5212 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5215 2014-02-19 Tom Tromey <tromey@redhat.com>
5217 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5218 (target_set_permissions): Add argument.
5219 * target.c (update_current_target): Update.
5220 * remote.c (remote_set_permissions): Add 'self' argument.
5221 (remote_start_remote): Update.
5223 2014-02-19 Tom Tromey <tromey@redhat.com>
5225 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5226 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5227 (target_get_tib_address): Add argument.
5228 * target.c (update_current_target): Update.
5229 * remote.c (remote_get_tib_address): Add 'self' argument.
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5234 (target_set_trace_notes): Add argument.
5235 * target.c (update_current_target): Update.
5236 * remote.c (remote_set_trace_notes): Add 'self' argument.
5238 2014-02-19 Tom Tromey <tromey@redhat.com>
5240 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5242 (target_set_trace_buffer_size): Add argument.
5243 * target.c (update_current_target): Update.
5244 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5246 2014-02-19 Tom Tromey <tromey@redhat.com>
5248 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5250 (target_set_circular_trace_buffer): Add argument.
5251 * target.c (update_current_target): Update.
5252 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5259 (target_set_disconnected_tracing): Add argument.
5260 * target.c (update_current_target): Update.
5261 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target.h (struct target_ops)
5266 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5267 (target_get_min_fast_tracepoint_insn_len): Add argument.
5268 * target.c (update_current_target): Update.
5269 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5272 2014-02-19 Tom Tromey <tromey@redhat.com>
5274 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5276 (target_get_raw_trace_data): Add argument.
5277 * target.c (update_current_target): Update.
5278 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5280 2014-02-19 Tom Tromey <tromey@redhat.com>
5282 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5284 (target_upload_trace_state_variables): Add argument.
5285 * target.c (update_current_target): Update.
5286 * remote.c (remote_upload_trace_state_variables): Add 'self'
5288 (remote_start_remote): Update.
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5294 (target_upload_tracepoints): Add argument.
5295 * target.c (update_current_target): Update.
5296 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5297 (remote_start_remote): Update.
5299 2014-02-19 Tom Tromey <tromey@redhat.com>
5301 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5302 (target_save_trace_data): Add argument.
5303 * target.c (update_current_target): Update.
5304 * remote.c (remote_save_trace_data): Add 'self' argument.
5306 2014-02-19 Tom Tromey <tromey@redhat.com>
5308 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5310 * target.h (struct target_ops)
5311 <to_get_trace_state_variable_value>: Add argument.
5312 (target_get_trace_state_variable_value): Add argument.
5313 * target.c (update_current_target): Update.
5314 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5316 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5321 * target.h (struct target_ops) <to_trace_find>: Add argument.
5322 (target_trace_find): Add argument.
5323 * target.c (update_current_target): Update.
5324 * remote.c (remote_trace_find): Add 'self' argument.
5325 * ctf.c (ctf_trace_find): Add 'self' argument.
5327 2014-02-19 Tom Tromey <tromey@redhat.com>
5329 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5330 (target_trace_stop): Add argument.
5331 * target.c (update_current_target): Update.
5332 * remote.c (remote_trace_stop): Add 'self' argument.
5334 2014-02-19 Tom Tromey <tromey@redhat.com>
5336 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5337 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5339 (target_get_tracepoint_status): Add argument.
5340 * target.c (update_current_target): Update.
5341 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5343 2014-02-19 Tom Tromey <tromey@redhat.com>
5345 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5346 * target.h (struct target_ops) <to_get_trace_status>: Add
5348 (target_get_trace_status): Add argument.
5349 * target.c (update_current_target): Update.
5350 * remote.c (remote_get_trace_status): Add 'self' argument.
5351 (remote_start_remote, remote_can_download_tracepoint): Update.
5352 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5354 2014-02-19 Tom Tromey <tromey@redhat.com>
5356 * target.h (struct target_ops) <to_trace_start>: Add argument.
5357 (target_trace_start): Add argument.
5358 * target.c (update_current_target): Update.
5359 * remote.c (remote_trace_start): Add 'self' argument.
5361 2014-02-19 Tom Tromey <tromey@redhat.com>
5363 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5365 (target_trace_set_readonly_regions): Add argument.
5366 * target.c (update_current_target): Update.
5367 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5370 2014-02-19 Tom Tromey <tromey@redhat.com>
5372 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5374 (target_disable_tracepoint): Add argument.
5375 * target.c (update_current_target): Update.
5376 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5382 (target_enable_tracepoint): Add argument.
5383 * target.c (update_current_target): Update.
5384 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * target.h (struct target_ops) <to_download_trace_state_variable>:
5390 (target_download_trace_state_variable): Add argument.
5391 * target.c (update_current_target): Update.
5392 * remote.c (remote_download_trace_state_variable): Add 'self'
5395 2014-02-19 Tom Tromey <tromey@redhat.com>
5397 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5399 (target_can_download_tracepoint): Add argument.
5400 * target.c (update_current_target): Update.
5401 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5403 2014-02-19 Tom Tromey <tromey@redhat.com>
5405 * target.h (struct target_ops) <to_download_tracepoint>: Add
5407 (target_download_tracepoint): Add argument.
5408 * target.c (update_current_target): Update.
5409 * remote.c (remote_download_tracepoint): Add 'self' argument.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * target.h (struct target_ops) <to_trace_init>: Add argument.
5414 (target_trace_init): Add argument.
5415 * target.c (update_current_target): Update.
5416 * remote.c (remote_trace_init): Add 'self' argument.
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5421 * target.c (target_fileio_readlink): Add argument.
5422 * remote.c (remote_hostio_readlink): Add 'self' argument.
5423 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5428 * target.c (target_fileio_unlink): Add argument.
5429 * remote.c (remote_hostio_unlink): Add 'self' argument.
5430 (remote_file_delete): Update.
5431 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5433 2014-02-19 Tom Tromey <tromey@redhat.com>
5435 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5436 * target.c (target_fileio_close): Add argument.
5437 * remote.c (remote_hostio_close): Add 'self' argument.
5438 (remote_hostio_close_cleanup): Update.
5439 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5441 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5443 2014-02-19 Tom Tromey <tromey@redhat.com>
5445 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5446 * target.c (target_fileio_pread): Add argument.
5447 * remote.c (remote_hostio_pread): Add 'self' argument.
5448 (remote_bfd_iovec_pread, remote_file_get): Update.
5449 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5451 2014-02-19 Tom Tromey <tromey@redhat.com>
5453 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5454 * target.c (target_fileio_pwrite): Add argument.
5455 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5456 (remote_file_put): Update.
5457 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5459 2014-02-19 Tom Tromey <tromey@redhat.com>
5461 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5462 * target.c (target_fileio_open): Add argument.
5463 * remote.c (remote_hostio_open): Add 'self' argument.
5464 (remote_bfd_iovec_open): Add 'self' argument.
5465 (remote_file_put): Add 'self' argument.
5466 (remote_file_get): Add 'self' argument.
5467 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5469 2014-02-19 Tom Tromey <tromey@redhat.com>
5471 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5473 (target_can_run_breakpoint_commands): Add argument.
5474 * target.c (update_current_target): Update.
5475 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5477 (remote_insert_breakpoint): Add 'self' argument.
5478 (remote_insert_hw_breakpoint): Add 'self' argument.
5479 (remote_can_run_breakpoint_commands): Add 'self' argument.
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops)
5484 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5485 (target_supports_evaluation_of_breakpoint_conditions): Add
5487 * target.c (update_current_target): Update.
5488 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5490 (remote_insert_breakpoint): Add 'self' argument.
5491 (remote_insert_hw_breakpoint): Add 'self' argument.
5492 (remote_supports_cond_breakpoints): Add 'self' argument.
5494 2014-02-19 Tom Tromey <tromey@redhat.com>
5496 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5498 (target_supports_string_tracing): Add argument.
5499 * target.c (update_current_target): Update.
5500 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5502 2014-02-19 Tom Tromey <tromey@redhat.com>
5504 * target.h (struct target_ops)
5505 <to_supports_disable_randomization>: Add argument.
5506 * target.c (find_default_supports_disable_randomization): Add
5508 (target_supports_disable_randomization): Add argument.
5509 (find_default_supports_disable_randomization): Add 'self'
5511 * remote.c (extended_remote_supports_disable_randomization): Add
5513 (remote_supports_disable_randomization): Add 'self' argument.
5514 (extended_remote_create_inferior): Update.
5515 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5518 2014-02-19 Tom Tromey <tromey@redhat.com>
5520 * target.h (struct target_ops)
5521 <to_supports_enable_disable_tracepoint>: Add argument.
5522 (target_supports_enable_disable_tracepoint): Add argument.
5523 * target.c (update_current_target): Update.
5524 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5527 2014-02-19 Tom Tromey <tromey@redhat.com>
5529 * target.h (struct target_ops) <to_supports_multi_process>: Add
5531 (target_supports_multi_process): Add argument.
5532 * target.c (update_current_target): Update.
5533 * remote.c (remote_supports_multi_process): Add 'self' argument.
5534 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5536 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * target.h (struct target_ops) <to_execution_direction>: Add
5543 (target_execution_direction): Add argument.
5544 * target.c (default_execution_direction): Add 'self' argument.
5545 * record-full.c (record_full_execution_direction): Add 'self'
5548 2014-02-19 Tom Tromey <tromey@redhat.com>
5550 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5552 (target_can_execute_reverse): Add argument.
5553 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5554 * record-full.c (record_full_can_execute_reverse): Add 'self'
5556 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5562 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5564 (target_get_ada_task_ptid): Add argument.
5565 * target.c (update_current_target): Update.
5566 (default_get_ada_task_ptid): Add 'self' argument.
5567 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5568 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5569 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5571 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5573 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5575 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5577 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5578 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5584 (target_goto_bookmark): Add argument.
5585 * target.c (dummy_goto_bookmark): Add 'self' argument.
5586 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5591 (target_get_bookmark): Add argument.
5592 * target.c (dummy_get_bookmark): Add 'self' argument.
5593 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5595 2014-02-19 Tom Tromey <tromey@redhat.com>
5597 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5599 (target_make_corefile_notes): Add argument.
5600 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5601 * procfs.c (procfs_make_note_section): Add 'self' argument.
5602 (procfs_make_note_section): Add 'self' argument.
5603 (procfs_make_note_section): Add 'self' argument.
5604 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5606 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5607 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5608 * exec.c (exec_make_note_section): Add 'self' argument.
5609 (exec_make_note_section): Add 'self' argument.
5611 2014-02-19 Tom Tromey <tromey@redhat.com>
5613 * target.h (struct target_ops) <to_find_memory_regions>: Add
5615 (target_find_memory_regions): Add argument.
5616 * target.c (dummy_find_memory_regions): Add 'self' argument.
5617 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5618 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5619 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5620 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5621 * exec. (exec_do_find_memory_regions): New global.
5622 (exec_set_find_memory_regions): Rewrite.
5623 (exec_find_memory_regions): New function.
5624 (init_exec_ops): Use exec_find_memory_regions.
5626 2014-02-19 Tom Tromey <tromey@redhat.com>
5628 * target.h (struct target_ops) <to_supports_non_stop>: Add
5630 * target.c (find_default_supports_non_stop): Add argument.
5631 (target_supports_non_stop): Add argument.
5632 (find_default_supports_non_stop): Add 'self' argument.
5633 * remote.c (remote_supports_non_stop): Add 'self' argument.
5634 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5636 2014-02-19 Tom Tromey <tromey@redhat.com>
5638 * target.h (struct target_ops) <to_log_command>: Add argument.
5639 (target_log_command): Add argument.
5640 * serial.h (serial_log_command): Add 'self' argument.
5641 * serial.c (serial_log_command): Add 'self' argument.
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5646 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5648 (target_pid_to_exec_file): Add argument.
5649 * target.c (debug_to_pid_to_exec_file): Add argument.
5650 (update_current_target): Update.
5651 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5652 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5653 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5654 (linux_handle_extended_wait): Update.
5655 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5656 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5657 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5658 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * target.h (struct target_ops) <to_rcmd>: Add argument.
5663 (target_rcmd): Add argument.
5664 * target.c (debug_to_rcmd): Add argument.
5665 (update_current_target, do_monitor_command): Update.
5666 * remote.c (remote_rcmd): Add 'self' argument.
5667 * monitor.c (monitor_rcmd): Add 'self' argument.
5669 2014-02-19 Tom Tromey <tromey@redhat.com>
5671 * windows-nat.c (windows_stop): Add 'self' argument.
5672 * target.h (struct target_ops) <to_stop>: Add argument.
5673 * target.c (target_stop): Add argument.
5674 (debug_to_stop): Add argument.
5675 (update_current_target): Update.
5676 * remote.c (remote_stop): Add 'self' argument.
5677 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5678 (gdbsim_cntrl_c): Update.
5679 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5680 * procfs.c (procfs_stop): Add 'self' argument.
5681 * nto-procfs.c (procfs_stop): Add 'self' argument.
5682 * monitor.c (monitor_stop): Add 'self' argument.
5683 (monitor_open): Update.
5684 * linux-nat.c (linux_nat_stop): Add argument.
5685 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5686 * gnu-nat.c (gnu_stop): Add 'self' argument.
5687 * darwin-nat.c (darwin_stop): Add 'self' argument.
5689 2014-02-19 Tom Tromey <tromey@redhat.com>
5691 * target.h (struct target_ops) <to_thread_name>: Add argument.
5692 * target.c (target_thread_name): Add argument.
5693 (update_current_target): Update.
5694 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5696 2014-02-19 Tom Tromey <tromey@redhat.com>
5698 * target.h (struct target_ops) <to_extra_thread_info>: Add
5700 (target_extra_thread_info): Add argument.
5701 * target.c (update_current_target): Update.
5702 * remote.c (remote_threads_extra_info): Add 'self' argument.
5703 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5705 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5706 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5707 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5709 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5711 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5713 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_program_signals>: Add argument.
5719 * target.c (target_program_signals): Add argument.
5720 * remote.c (remote_program_signals): Add 'self' argument.
5722 2014-02-19 Tom Tromey <tromey@redhat.com>
5724 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5725 * target.c (target_pass_signals): Add argument.
5726 * remote.c (remote_pass_signals): Add 'self' argument.
5727 (remote_start_remote): Update.
5728 * procfs.c (procfs_pass_signals): Add 'self' argument.
5729 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5730 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5731 (linux_nat_create_inferior, linux_nat_attach): Update.
5733 2014-02-19 Tom Tromey <tromey@redhat.com>
5735 * windows-nat.c (windows_can_run): Add 'self' argument.
5736 * target.h (struct target_ops) <to_can_run>: Add argument.
5737 (target_can_run): Add argument.
5738 * target.c (debug_to_can_run): Add argument.
5739 (update_current_target): Update.
5740 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5741 * inf-child.c (inf_child_can_run): Add 'self' argument.
5742 * go32-nat.c (go32_can_run): Add 'self' argument.
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * target.h (struct target_ops) <to_has_exited>: Add argument.
5747 (target_has_exited): Add argument.
5748 * target.c (debug_to_has_exited): Add argument.
5749 (update_current_target): Update.
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5755 (target_set_syscall_catchpoint): Add argument.
5756 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5758 * target.c (update_current_target): Update.
5760 2014-02-19 Tom Tromey <tromey@redhat.com>
5762 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5764 (target_remove_exec_catchpoint): Add argument.
5765 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5766 (update_current_target): Update.
5767 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5774 (target_insert_exec_catchpoint): Add argument.
5775 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5776 (update_current_target): Update.
5777 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5780 2014-02-19 Tom Tromey <tromey@redhat.com>
5782 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5784 (target_remove_vfork_catchpoint): Add argument.
5785 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5786 (update_current_target): Update.
5787 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5794 (target_insert_vfork_catchpoint): Add argument.
5795 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5796 (update_current_target): Update.
5797 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5804 (target_remove_fork_catchpoint): Add argument.
5805 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5806 (update_current_target): Update.
5807 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5810 2014-02-19 Tom Tromey <tromey@redhat.com>
5812 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5814 (target_insert_fork_catchpoint): Add argument.
5815 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5816 (update_current_target): Update.
5817 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5824 (target_post_startup_inferior): Add argument.
5825 * target.c (debug_to_post_startup_inferior): Add argument.
5826 (update_current_target): Update.
5827 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5829 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5831 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5833 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5835 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5837 (super_post_startup_inferior): Likewise.
5838 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5840 (super_post_startup_inferior): Likewise.
5841 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5842 Add 'self' argument.
5843 (super_post_startup_inferior): Likewise.
5845 2014-02-19 Tom Tromey <tromey@redhat.com>
5847 * target.h (struct target_ops) <to_load>: Add argument.
5848 * target.c (target_load): Add argument.
5849 (debug_to_load): Add argument.
5850 (update_current_target): Update.
5851 * remote.c (remote_load): Add 'self' argument.
5852 * remote-sim.c (gdbsim_load): Add 'self' argument.
5853 * remote-mips.c (mips_load): Add 'self' argument.
5854 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5855 * monitor.c (monitor_load): Add 'self' argument.
5856 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5858 2014-02-19 Tom Tromey <tromey@redhat.com>
5860 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5861 (target_terminal_info): Add argument.
5862 * target.c (debug_to_terminal_info): Add argument.
5863 (default_terminal_info): Likewise.
5864 * inflow.c (child_terminal_info): Add 'self' argument.
5865 * inferior.h (child_terminal_info): Add 'self' argument.
5866 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5868 2014-02-19 Tom Tromey <tromey@redhat.com>
5870 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5872 (target_terminal_save_ours): Add argument.
5873 * target.c (debug_to_terminal_save_ours): Add argument.
5874 (update_current_target): Update.
5875 * inflow.c (terminal_save_ours): Add 'self' argument.
5876 * inferior.h (terminal_save_ours): Add 'self' argument.
5878 2014-02-19 Tom Tromey <tromey@redhat.com>
5880 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5881 (target_terminal_ours): Add argument.
5882 * target.c (debug_to_terminal_ours): Add argument.
5883 (update_current_target): Update.
5884 * remote.c (remote_terminal_ours): Add 'self' argument.
5885 (remote_close): Update.
5886 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5887 * inflow.c (terminal_ours): Add 'self' argument.
5888 * inferior.h (terminal_ours): Add 'self' argument.
5889 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5891 2014-02-19 Pedro Alves <palves@redhat.com>
5892 Tom Tromey <tromey@redhat.com>
5894 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5896 (target_terminal_ours_for_output): Add argument.
5897 * target.c (debug_to_terminal_ours_for_output): Add argument.
5898 (update_current_target): Update.
5899 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5900 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5901 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * target.h (struct target_ops) <to_terminal_inferior>: Add
5907 * target.c (target_terminal_inferior): Add argument.
5908 (update_current_target): Update.
5909 * remote.c (remote_terminal_inferior): Add 'self' argument.
5910 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5911 * inflow.c (terminal_inferior): Add 'self' argument.
5912 * inferior.h (terminal_inferior): Add 'self' argument.
5913 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5914 (go32_terminal_inferior): Add 'self' argument.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5919 (target_terminal_init): Add argument.
5920 * target.c (debug_to_terminal_init): Add argument.
5921 (update_current_target): Update.
5922 * inflow.c (terminal_init_inferior): Add 'self' argument.
5923 * inferior.h (terminal_init_inferior): Add 'self' argument.
5924 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5925 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5927 2014-02-19 Tom Tromey <tromey@redhat.com>
5929 * target.h (struct target_ops)
5930 <to_can_accel_watchpoint_condition>: Add argument.
5931 (target_can_accel_watchpoint_condition): Add argument.
5932 * target.c (debug_to_can_accel_watchpoint_condition): Add
5934 (update_current_target): Update.
5935 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5938 2014-02-19 Tom Tromey <tromey@redhat.com>
5940 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5942 (target_region_ok_for_hw_watchpoint): Add argument.
5943 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5944 (default_region_ok_for_hw_watchpoint): Add argument.
5945 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5946 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5948 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5950 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5952 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5954 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5956 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5958 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5959 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5961 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5962 Add 'self' argument.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5968 (target_insert_watchpoint): Add argument.
5969 * target.c (debug_to_insert_watchpoint): Add argument.
5970 (update_current_target): Update.
5971 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5972 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5973 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5974 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5975 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5976 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5978 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5979 (procfs_insert_hw_watchpoint): Add 'self' argument.
5980 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5982 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5984 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5986 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5987 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5989 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5996 (target_remove_watchpoint): Add argument.
5997 * target.c (debug_to_remove_watchpoint): Add argument.
5998 (update_current_target): Update.
5999 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6000 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6001 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6002 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6003 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6004 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6006 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6007 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6009 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6011 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6013 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6014 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6016 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6023 (target_remove_hw_breakpoint): Add argument.
6024 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6025 (update_current_target): Update.
6026 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6027 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6029 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6030 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6032 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6039 (target_insert_hw_breakpoint): Add argument.
6040 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6041 (update_current_target): Update.
6042 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6043 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6045 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6046 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6047 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6049 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6052 2014-02-19 Tom Tromey <tromey@redhat.com>
6054 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6056 (target_can_use_hardware_watchpoint): Add argument.
6057 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6058 (update_current_target): Update.
6059 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6061 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6063 * remote.c (remote_check_watch_resources): Add 'self' argument.
6064 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6065 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6067 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6068 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6070 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6072 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6074 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6076 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6078 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6080 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6081 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6083 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6088 * target.h (struct target_ops) <to_post_attach>: Add argument.
6089 (target_post_attach): Add argument.
6090 * target.c (debug_to_post_attach): Add argument.
6091 (update_current_target): Update.
6092 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6093 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6094 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6095 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6096 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6098 2014-02-19 Tom Tromey <tromey@redhat.com>
6100 * windows-nat.c (windows_close): Add 'self' argument.
6101 * tracepoint.c (tfile_close): Add 'self' argument.
6102 * target.h (struct target_ops) <to_close>: Add argument.
6103 * target.c (target_close): Add argument.
6104 (update_current_target): Update.
6105 * remote.c (remote_close): Add 'self' argument.
6106 * remote-sim.c (gdbsim_close): Add 'self' argument.
6107 * remote-mips.c (mips_close): Add 'self' argument.
6108 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6109 * record-full.c (record_full_close): Add 'self' argument.
6110 * record-btrace.c (record_btrace_close): Add 'self' argument.
6111 * monitor.h (monitor_close): Add 'self' argument.
6112 * monitor.c (monitor_close): Add 'self' argument.
6113 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6114 * linux-nat.c (linux_nat_close): Add argument.
6115 * go32-nat.c (go32_close): Add 'self' argument.
6116 * exec.c (exec_close_1): Add 'self' argument.
6117 * ctf.c (ctf_close): Add 'self' argument.
6118 * corelow.c (core_close): Add 'self' argument.
6119 (core_close_cleanup): Update.
6120 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6121 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6123 2014-02-19 Tom Tromey <tromey@redhat.com>
6125 * remote.c (remote_load): New function.
6126 (init_remote_ops): Use it.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6132 * common/linux-btrace.h (linux_supports_btrace): Update.
6133 * remote.c (remote_supports_btrace): Add "self" argument.
6134 * target-delegates.c: Rebuild.
6135 * target.c (target_supports_btrace): Remove.
6136 * target.h (struct target_ops) <to_supports_btrace>: Add
6137 target_ops argument.
6138 (target_supports_btrace): New define.
6140 2014-02-19 Tom Tromey <tromey@redhat.com>
6142 * record-full.c (record_full_beneath_to_resume_ops)
6143 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6144 (record_full_beneath_to_wait)
6145 (record_full_beneath_to_store_registers_ops)
6146 (record_full_beneath_to_store_registers)
6147 (record_full_beneath_to_xfer_partial_ops)
6148 (record_full_beneath_to_xfer_partial)
6149 (record_full_beneath_to_insert_breakpoint_ops)
6150 (record_full_beneath_to_insert_breakpoint)
6151 (record_full_beneath_to_remove_breakpoint_ops)
6152 (record_full_beneath_to_remove_breakpoint)
6153 (record_full_beneath_to_stopped_by_watchpoint)
6154 (record_full_beneath_to_stopped_data_address)
6155 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6156 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6157 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6158 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6159 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6160 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6161 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6162 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6163 (record_full_resume, record_full_wait_1)
6164 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6165 (record_full_store_registers, record_full_xfer_partial)
6166 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6167 (record_full_async, record_full_core_xfer_partial): Use target
6169 * target-delegates.c: Rebuild.
6170 * target.c (current_xfer_partial): Remove.
6171 (update_current_target): Do not INHERIT or de_fault
6172 to_insert_breakpoint, to_remove_breakpoint,
6173 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6174 to_is_async_p, to_async. Do not set to_xfer_partial field.
6175 (default_xfer_partial): Simplify.
6176 (current_xfer_partial): Remove.
6177 (target_wait, target_resume): Simplify.
6178 (find_default_can_async_p, find_default_is_async_p): Update.
6179 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6180 to_xfer_partial, to_stopped_by_watchpoint,
6181 to_stopped_data_address.
6182 (target_store_registers): Simplify.
6183 (forward_target_remove_breakpoint)
6184 (forward_target_insert_breakpoint): Remove.
6185 (target_remove_breakpoint, target_insert_breakpoint)
6186 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6187 * target.h (struct target_ops) <to_resume, to_wait,
6188 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6189 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6190 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6192 (forward_target_remove_breakpoint)
6193 (forward_target_insert_breakpoint): Remove.
6194 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6196 (record_btrace_insert_breakpoint): Delegate directly.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6201 * target-delegates.c: New file.
6202 * target.c: Include target-delegates.c.
6203 (init_dummy_target): Call install_dummy_methods.
6204 (complete_target_initialization): Call install_delegators.
6205 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6206 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6207 * make-target-delegates: New file.
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * record.c (find_record_target): Use find_target_at.
6212 * target.c (find_target_at): New function.
6213 * target.h (find_target_at): Declare.
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6219 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6221 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6222 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6224 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6226 * linux-nat.c (save_sigtrap): Update.
6227 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6228 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6229 (linux_nat_close): Update.
6230 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6232 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6234 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6235 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6236 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6237 (tmp_to_async): Add 'ops' argument.
6238 (record_full_stopped_by_watchpoint, record_full_async)
6239 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6241 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6242 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6243 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6244 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6245 (remote_is_async_p, remote_async): Add 'ops' argument.
6246 (remote_stopped_data_address): Update.
6247 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6248 * target.c (update_current_target)
6249 (find_default_can_async_p, find_default_is_async_p): Update.
6250 (init_dummy_target): Update.
6251 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6252 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6253 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6254 (target_can_async_p, target_is_async_p, target_async)
6255 (target_stopped_by_watchpoint): Update.
6257 2014-02-19 Yao Qi <yao@codesourcery.com>
6260 * gdbarch.sh: Remove startup_gdbarch.
6261 * gdbarch.c: Regenerated.
6262 * gdbarch.h: Likewise.
6264 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6266 * rl78-tdep.c (rl78_g10_register_name): New function.
6267 (rl78_return_value): Add g10 support.
6268 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6271 2014-02-17 Doug Evans <xdje42@gmail.com>
6273 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6274 (SUBDIR_GUILE_SRCS): Ditto.
6275 (scm-gsmob.o): Ditto.
6277 2014-02-17 Yao Qi <yao@codesourcery.com>
6279 * gnu-nat.c (ILL_RPC): Declare defined function.
6281 2014-02-17 Yao Qi <yao@codesourcery.com>
6283 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6284 mach_msg_type_number_t.
6285 (gnu_write_inferior): Likewise.
6287 2014-02-17 Yao Qi <yao@codesourcery.com>
6289 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6291 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6292 (inf_validate_procs, inf_signal): Likewise.
6293 (S_exception_raise_request): Likewise.
6294 (do_mach_notify_dead_name): Likewise.
6295 (steal_exc_port): Likewise.
6296 (gnu_read_inferior): Change 'copy_count''s type to
6297 mach_msg_type_number_t.
6298 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6301 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6303 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6304 flag. Adjust all users; in particular...
6305 (gnu_wait): ..., don't decrement its value in here...
6306 (gnu_create_inferior): ..., and instead set the flag in here,
6307 around the startup_inferior call, and call that one with
6308 START_INFERIOR_TRAPS_EXPECTED.
6310 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6311 (ILL_RPC): ... new macro.
6312 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6313 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6314 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6315 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6316 functions with ILL_RPC macro.
6317 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6318 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6319 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6320 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6321 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6322 (S_proc_getlogin_reply, S_proc_getsid_reply)
6323 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6324 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6325 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6326 (S_proc_getnports_reply, S_proc_is_important_reply)
6327 (S_proc_get_code_reply): New stub functions, generated with
6330 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6331 collected the type check structures.
6333 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6335 2014-02-14 Doug Evans <dje@google.com>
6337 * target.c (target_write_partial): Fix result type.
6339 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6341 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6342 the proper offsets to access fpregset_t.
6344 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6346 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6347 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6348 * h8300-tdep.c (setmachinelist): Remove global.
6349 * hppa-tdep.c (hppa_sigtramp): Remove global.
6350 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6351 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6352 * ravenscar-thread.c (update_target_observer): Remove global.
6353 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6355 2014-02-12 Tom Tromey <tromey@redhat.com>
6357 * common/rsp-low.c: Update comments.
6358 * common/rsp-low.h: Update comments.
6360 2014-02-12 Tom Tromey <tromey@redhat.com>
6362 * common/rsp-low.c (convert_ascii_to_int): Remove.
6363 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6365 2014-02-12 Tom Tromey <tromey@redhat.com>
6367 * common/rsp-low.h (unhexify): Don't declare.
6368 * common/rsp-low.c (unhexify): Remove.
6370 2014-02-12 Tom Tromey <tromey@redhat.com>
6372 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6373 * common/rsp-low.c (convert_int_to_ascii): Remove.
6375 2014-02-12 Tom Tromey <tromey@redhat.com>
6377 * common/rsp-low.h (hexify): Don't declare.
6378 * common/rsp-low.c (hexify): Remove.
6380 2014-02-12 Tom Tromey <tromey@redhat.com>
6382 * common/rsp-low.c (hexify): Never take strlen of argument.
6384 2014-02-12 Tom Tromey <tromey@redhat.com>
6386 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6387 * remote.c (extended_remote_run, remote_rcmd)
6388 (remote_download_trace_state_variable, remote_save_trace_data)
6389 (remote_set_trace_notes): Update.
6390 * tracepoint.c (encode_source_string, tfile_write_status)
6391 (tfile_write_uploaded_tsv): Update.
6393 2014-02-12 Tom Tromey <tromey@redhat.com>
6395 * tracepoint.c: Include rsp-low.h.
6396 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6397 * remote.c: Include rsp-low.h.
6398 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6399 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6400 (remote_unescape_input): Move to common/rsp-low.c.
6401 * common/rsp-low.h: New file.
6402 * common/rsp-low.c: New file.
6403 * Makefile.in (SFILES): Add common/rsp-low.c.
6404 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6405 (COMMON_OBS): Add rsp-low.o.
6406 (rsp-low.o): New target.
6408 2014-02-12 Tom Tromey <tromey@redhat.com>
6410 * utils.h: Include print-utils.h.
6411 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6412 (int_string, core_addr_to_string, core_addr_to_string_nz)
6413 (hex_string, hex_string_custom): Don't declare.
6414 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6415 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6416 (hex_string_custom, int_string, core_addr_to_string)
6417 (core_addr_to_string_nz, host_address_to_string): Move to
6418 common/print-utils.c.
6419 * common/print-utils.h: New file.
6420 * common/print-utils.c: New file
6421 * Makefile.in (SFILES): Add common/print-utils.c.
6422 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6423 (COMMON_OBS): Add print-utils.o.
6424 (print-utils.o): New target.
6426 2014-02-12 Tom Tromey <tromey@redhat.com>
6428 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6430 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6432 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6434 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6436 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6437 if a PT_IO ptrace request returns sucessfully but indicates that 0
6438 bytes were transferred.
6440 2014-02-12 Pedro Alves <palves@redhat.com>
6441 Kevin Buettner <kevinb@redhat.com>
6443 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6444 TYPE_INSTANCE_FLAG_CODE_SPACE.
6446 2014-02-12 Pedro Alves <palves@redhat.com>
6448 * h8300-tdep.c (pseudo_from_raw_register)
6449 (raw_from_pseudo_register): New functions.
6450 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6453 2014-02-12 Pedro Alves <palves@redhat.com>
6455 * h8300-tdep.c (h8300_register_sim_regno): New function.
6456 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6457 gdbarch_register_sim_regno hook.
6459 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6461 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6463 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6465 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6467 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6469 * obsd-tdep.h (obsd_init_abi): New prototype.
6470 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6471 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6472 (obsd_init_abi): New functions.
6473 * i386obsd-tdep.c: Include "obsd-tdep.h".
6474 (i386obsd_init_abi): Call obsd_init_abi.
6475 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6476 (amd64obsd_init_abi): Call obsd_init_abi.
6477 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6478 obsd-tdep.c to gdb_target_obs.
6480 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6482 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6483 double float arguments to 16-byte in the argument slots.
6485 2014-02-11 Doug Evans <xdje42@gmail.com>
6487 * configure.ac: Don't crash if pkg-config is not found and guile
6488 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6490 * configure: Regenerate.
6492 2014-02-11 Yao Qi <yao@codesourcery.com>
6494 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6495 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6496 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6497 * gnu-nat.c (gnu_xfer_memory): Likewise.
6498 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6499 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6500 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6501 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6503 2014-02-11 Yao Qi <yao@codesourcery.com>
6505 * target.h (enum target_xfer_error): Rename to ...
6506 (enum target_xfer_status): ... it. New. All users updated.
6507 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6509 (TARGET_XFER_STATUS_ERROR_P): New macro.
6510 (target_xfer_error_to_string): Remove declaration.
6511 (target_xfer_status_to_string): Declare.
6512 (target_xfer_partial_ftype): Adjust it.
6513 (struct target_ops) <to_xfer_partial>: Return
6514 target_xfer_status. Add argument xfered_len. Update
6516 * target.c (target_xfer_error_to_string): Rename to ...
6517 (target_xfer_status_to_string): ... it. New. All callers
6519 (target_read_live_memory): Likewise. Call target_xfer_partial
6520 instead of target_read.
6521 (memory_xfer_live_readonly_partial): Return
6522 target_xfer_status. Add argument xfered_len.
6523 (raw_memory_xfer_partial): Likewise.
6524 (memory_xfer_partial_1): Likewise.
6525 (memory_xfer_partial): Likewise.
6526 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6527 properly. Update debug message.
6528 (default_xfer_partial, current_xfer_partial): Likewise.
6529 (target_write_partial): Likewise.
6530 (target_read_partial): Likewise. All callers updated.
6531 (read_whatever_is_readable): Likewise.
6532 (target_write_with_progress): Likewise.
6533 (target_read_alloc_1): Likewise.
6535 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6536 * auxv.c (procfs_xfer_auxv): Likewise.
6537 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6538 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6539 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6540 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6541 * corefile.c (read_memory): Adjust.
6542 * corelow.c (core_xfer_partial): Likewise.
6543 * ctf.c (ctf_xfer_partial): Likewise.
6544 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6546 (darwin_xfer_partial): Likewise.
6547 * exec.c (section_table_xfer_memory_partial): Likewise. All
6549 (exec_xfer_partial): Likewise.
6550 * exec.h (section_table_xfer_memory_partial): Update
6552 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6554 (gnu_xfer_partial): Likewise.
6555 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6556 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6557 (ia64_hpux_xfer_solib_got): Likewise.
6558 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6559 type of 'partial_len' to ULONGEST.
6560 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6561 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6562 (linux_nat_xfer_partial): Likewise.
6563 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6564 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6565 * monitor.c (monitor_xfer_memory): Likewise.
6566 (monitor_xfer_partial): Likewise.
6567 * procfs.c (procfs_xfer_partial): Likewise.
6568 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6569 * record-full.c (record_full_xfer_partial): Likewise.
6570 (record_full_core_xfer_partial): Likewise.
6571 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6572 (gdbsim_xfer_partial): Likewise.
6573 * remote.c (remote_write_bytes_aux): Likewise. All callers
6575 (remote_write_bytes, remote_read_bytes): Likewise. All
6577 (remote_flash_erase): Likewise. All callers updated.
6578 (remote_write_qxfer): Likewise. All callers updated.
6579 (remote_read_qxfer): Likewise. All callers updated.
6580 (remote_xfer_partial): Likewise.
6581 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6582 (rs6000_xfer_shared_libraries): Likewise.
6583 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6584 (sol_thread_xfer_partial): Likewise.
6585 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6586 (sparc_xfer_partial): Likewise.
6587 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6589 (spu_xfer_partial): Likewise.
6590 * spu-multiarch.c (spu_xfer_partial): Likewise.
6591 * tracepoint.c (tfile_xfer_partial): Likewise.
6592 * windows-nat.c (windows_xfer_memory): Likewise.
6593 (windows_xfer_shared_libraries): Likewise.
6594 (windows_xfer_partial): Likewise.
6595 * valprint.c: Replace 'target_xfer_error' with
6596 'target_xfer_status' in comments.
6598 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6600 Checked in by Joel Brobecker <brobecker@adacore.com>.
6601 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6603 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6605 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6606 function parameters.
6608 2014-02-10 Will Newton <will.newton@linaro.org>
6610 * elfread.c (elf_rel_plt_read): Look for a .got section if
6611 looking up .got.plt fails.
6612 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6613 on address passed to elf_gnu_ifunc_record_cache.
6614 (elf_gnu_ifunc_resolve_addr): Likewise.
6615 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6617 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6619 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6620 (X_RETTURN): New macro.
6621 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6623 * sparc64-tdep.c (sparc64_init_abi): Hook
6624 sparc_in_function_epilogue_p.
6626 2014-02-10 Gary Benson <gbenson@redhat.com>
6628 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6629 Rename name_matcher to symbol_matcher.
6631 2014-02-10 Gary Benson <gbenson@redhat.com>
6633 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6634 Use expand_symtabs_file_matcher_ftype and
6635 expand_symtabs_symbol_matcher_ftype.
6637 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6639 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6640 (struct ada_symbol_cache): New.
6641 (ada_free_symbol_cache): Forward declare.
6642 (struct ada_pspace_data): New.
6643 (ada_pspace_data_handle): New static global.
6644 (get_ada_pspace_data, ada_pspace_data_cleanup)
6645 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6646 (cache_space, cache): Delete, now folded inside struct
6648 (ada_get_symbol_cache): New function.
6649 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6651 (_initialize_ada_language): Remove initialization of cache_space.
6652 Move call to observer_attach_inferior_exit up, grouping it
6653 with the other observer registrations inside this function.
6654 Rename command to be more general. Add call to
6655 register_program_space_data_with_cleanup.
6657 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6659 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6660 ada_new_objfile_observer.
6661 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6662 (_initialize_tasks): Update uses of ada_new_objfile_observer
6663 and ada_tasks_normal_stop_observer.
6665 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6667 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6668 returned by the 'Length attribute to integer.
6670 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6672 * ada-lang.c (_initialize_ada_language): Initialize
6673 cache_space obstack.
6675 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6677 * ada-lang.c (HASH_SIZE): New macro.
6678 (struct cache_entry): New type.
6679 (cache_space, cache): New static globals.
6680 (ada_clear_symbol_cache, find_entry): New functions.
6681 (lookup_cached_symbol, cache_symbol): Implement.
6682 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6683 (_initialize_ada_language): Attach ada_new_objfile_observer
6684 and ada_free_objfile_observer.
6686 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6688 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6689 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6690 struct block * parameter.
6691 (ada_lookup_symbol_list_worker): Constify local variable "block".
6692 Remove cast which is no longer necessary.
6694 2014-02-10 Doug Evans <xdje42@gmail.com>
6696 Add Guile as an extension language.
6697 * NEWS: Mention Guile scripting.
6698 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6699 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6700 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6701 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6702 (CLIBS): Add GUILE_LIBS.
6703 (install-guile): New rule.
6704 (guile.o): New rule.
6705 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6706 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6707 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6708 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6709 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6710 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6711 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6712 * configure.ac: New option --with-guile.
6713 * configure: Regenerate.
6714 * config.in: Regenerate.
6715 * auto-load.c: Remove #include "python/python.h". Add #include
6716 "gdb/section-scripts.h".
6717 (source_section_scripts): Handle Guile scripts.
6718 (_initialize_auto_load): Add name of Guile objfile script to
6719 scripts-directory help text.
6720 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6721 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6722 (struct breakpoint): New member scm_bp_object.
6723 * defs.h (enum command_control_type): New value guile_control.
6724 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6726 (show_user): Update comment.
6727 (_initialize_cli_cmds): Update help text for "show user". Update help
6728 text for max-user-call-depth.
6729 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6731 (multi_line_command_p): Add guile_control.
6732 (print_command_lines): Handle guile_control.
6733 (execute_control_command, recurse_read_control_structure): Ditto.
6734 (process_next_line): Recognize "guile" commands.
6735 * disasm.c (gdb_disassemble_info): Make non-static.
6736 * disasm.h: #include "dis-asm.h".
6737 (struct gdbarch): Add forward decl.
6738 (gdb_disassemble_info): Declare.
6739 * extension.c: #include "guile/guile.h".
6740 (extension_languages): Add guile.
6741 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6742 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6743 * gdbtypes.c (get_unsigned_type_max): New function.
6744 (get_signed_type_minmax): New function.
6745 * gdbtypes.h (get_unsigned_type_max): Declare.
6746 (get_signed_type_minmax): Declare.
6747 * guile/README: New file.
6748 * guile/guile-internal.h: New file.
6749 * guile/guile.c: New file.
6750 * guile/guile.h: New file.
6751 * guile/scm-arch.c: New file.
6752 * guile/scm-auto-load.c: New file.
6753 * guile/scm-block.c: New file.
6754 * guile/scm-breakpoint.c: New file.
6755 * guile/scm-disasm.c: New file.
6756 * guile/scm-exception.c: New file.
6757 * guile/scm-frame.c: New file.
6758 * guile/scm-gsmob.c: New file.
6759 * guile/scm-iterator.c: New file.
6760 * guile/scm-lazy-string.c: New file.
6761 * guile/scm-math.c: New file.
6762 * guile/scm-objfile.c: New file.
6763 * guile/scm-ports.c: New file.
6764 * guile/scm-pretty-print.c: New file.
6765 * guile/scm-safe-call.c: New file.
6766 * guile/scm-string.c: New file.
6767 * guile/scm-symbol.c: New file.
6768 * guile/scm-symtab.c: New file.
6769 * guile/scm-type.c: New file.
6770 * guile/scm-utils.c: New file.
6771 * guile/scm-value.c: New file.
6772 * guile/lib/gdb.scm: New file.
6773 * guile/lib/gdb/boot.scm: New file.
6774 * guile/lib/gdb/experimental.scm: New file.
6775 * guile/lib/gdb/init.scm: New file.
6776 * guile/lib/gdb/iterator.scm: New file.
6777 * guile/lib/gdb/printing.scm: New file.
6778 * guile/lib/gdb/types.scm: New file.
6779 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6780 (VPATH): Add $(GUILE_SRCDIR).
6781 (GUILE_DIR): New variable.
6782 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6783 (all): Add stamp-guile dependency.
6784 (stamp-guile): New rule.
6785 (clean-guile, install-guile, uninstall-guile): New rules.
6786 (install-only): Add install-guile dependency.
6787 (uninstall): Add uninstall-guile dependency.
6788 (clean): Add clean-guile dependency.
6790 2014-02-09 Doug Evans <xdje42@gmail.com>
6792 Revert this patch (which I approved, mea culpa).
6794 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6796 * Makefile.in (all-lib): Remove.
6797 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6799 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6801 Fix Python stack corruption.
6802 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6805 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6807 * Makefile.in (all-lib): Remove.
6808 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6810 2014-02-07 Doug Evans <dje@google.com>
6812 * extension-priv.h (extension_language_script_ops): Add comment.
6813 (extension_language_ops): Add comment.
6814 (active_ext_lang_state): Fix typo in comment.
6816 2014-02-07 Pedro Alves <palves@redhat.com>
6818 PR breakpoints/16292
6819 * infrun.c (handle_signal_stop) <signal arrives while stepping
6820 over a breakpoint>: Switch back to the stepping thread.
6822 2014-02-07 Yao Qi <yao@codesourcery.com>
6824 * target.c (target_xfer_partial): Return zero if LEN is zero.
6826 2014-02-07 Yao Qi <yao@codesourcery.com>
6828 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6829 (ld_so_xfer_auxv): Likewise.
6830 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6831 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6832 * corelow.c (core_xfer_partial): Likewise.
6833 * ctf.c (ctf_xfer_partial): Likewise.
6834 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6835 (darwin_xfer_partial): Likewise.
6836 * exec.c (exec_xfer_partial): Likewise.
6837 * gnu-nat.c (gnu_xfer_partial): Likewise.
6838 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6839 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6840 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6841 * linux-nat.c (linux_xfer_siginfo): Likewise.
6842 (linux_proc_xfer_spu): Likewise.
6843 * procfs.c (procfs_xfer_partial): Likewise.
6844 * record-full.c (record_full_xfer_partial): Likewise.
6845 (record_full_core_xfer_partial): Likewise.
6846 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6847 * remote.c (remote_write_qxfer): Likewise.
6848 (remote_write_qxfer, remote_read_qxfer): Likewise.
6849 (remote_xfer_partial): Likewise.
6850 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6851 (rs6000_xfer_shared_libraries): Likewise.
6852 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6854 (spu_xfer_partial): Likewise.
6855 * target.c (memory_xfer_partial_1): Likewise.
6856 * tracepoint.c (tfile_xfer_partial): Likewise.
6857 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6858 (windows_xfer_partial): Likewise.
6860 2014-02-07 Yao Qi <yao@codesourcery.com>
6862 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6864 (core_xfer_shared_libraries_aix): Likewise.
6865 * gdbarch.c, gdbarch.h: Regenerated.
6866 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6867 ULONGEST. Change 'len_avail' type to ULONGEST.
6868 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6869 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6871 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6873 2014-02-07 Yao Qi <yao@codesourcery.com>
6875 * corefile.c (memory_error): Get 'exception' from ERR and pass
6876 'exception' to throw_error.
6878 2014-02-06 Doug Evans <xdje42@gmail.com>
6880 * configure.ac (libpython checking): Remove all but python.o from
6881 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6882 * configure: Regenerate.
6884 * Makefile.in (SFILES): Add extension.c.
6885 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6886 (COMMON_OBS): Add extension.o.
6887 * extension.h: New file.
6888 * extension-priv.h: New file.
6889 * extension.c: New file.
6891 * python/python-internal.h: #include "extension.h".
6892 (gdbpy_auto_load_enabled): Declare.
6893 (gdbpy_apply_val_pretty_printer): Declare.
6894 (gdbpy_apply_frame_filter): Declare.
6895 (gdbpy_preserve_values): Declare.
6896 (gdbpy_breakpoint_cond_says_stop): Declare.
6897 (gdbpy_breakpoint_has_cond): Declare.
6898 (void source_python_script_for_objfile): Delete.
6899 * python/python.c: #include "extension-priv.h".
6900 Delete inclusion of "observer.h".
6901 (extension_language_python): Moved here and renamed from
6902 script_language_python in py-auto-load.c.
6903 Redefined to be of type extension_language_defn.
6904 (python_extension_script_ops): New global.
6905 (python_extension_ops): New global.
6906 (struct python_env): New member previous_active.
6907 (restore_python_env): Call restore_active_ext_lang.
6908 (ensure_python_env): Call set_active_ext_lang.
6909 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6911 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6913 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6915 (gdbpy_eval_from_control_command): Renamed from
6916 eval_python_from_control_command, made static. New arg extlang.
6917 (gdbpy_source_script) Renamed from source_python_script, made static.
6919 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6920 result to int. New arg extlang.
6921 (gdbpy_source_objfile_script): Renamed from
6922 source_python_script_for_objfile, made static. New arg extlang.
6923 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6924 static. New args extlang, extlang_printers. Change result type to
6926 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6927 static. New arg extlang. Rename arg printers to extlang_printers
6928 and change type to ext_lang_type_printers *.
6929 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6930 static. Replace argument arg with extlang, extlang_printers.
6931 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6932 (!HAVE_PYTHON, source_python_script): Delete.
6933 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6934 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6935 (!HAVE_PYTHON, start_type_printers): Delete.
6936 (!HAVE_PYTHON, apply_type_printers): Delete.
6937 (!HAVE_PYTHON, free_type_printers): Delete.
6938 (_initialize_python): Delete call to observer_attach_before_prompt.
6939 (finalize_python): Set/restore active extension language.
6940 (gdbpy_finish_initialization) Renamed from
6941 finish_python_initialization, made static. New arg extlang.
6942 (gdbpy_initialized): New function.
6943 * python/python.h: #include "extension.h". Delete #include
6944 "value.h", "mi/mi-cmds.h".
6945 (extension_language_python): Declare.
6946 (GDBPY_AUTO_FILE_NAME): Delete.
6947 (enum py_bt_status): Moved to extension.h and renamed to
6949 (enum frame_filter_flags): Moved to extension.h.
6950 (enum py_frame_args): Moved to extension.h and renamed to
6951 ext_lang_frame_args.
6952 (finish_python_initialization): Delete.
6953 (eval_python_from_control_command): Delete.
6954 (source_python_script): Delete.
6955 (apply_val_pretty_printer): Delete.
6956 (apply_frame_filter): Delete.
6957 (preserve_python_values): Delete.
6958 (gdbpy_script_language_defn): Delete.
6959 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6960 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6962 * auto-load.c: #include "extension.h".
6963 (GDB_AUTO_FILE_NAME): Delete.
6964 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6965 (script_language_gdb): Delete, moved to extension.c and renamed to
6966 extension_language_gdb.
6967 (source_gdb_script_for_objfile): Delete.
6968 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6969 (loaded_script): Change type of language member to
6970 struct extension_language_defn *.
6971 (init_loaded_scripts_info): Initialize
6972 unsupported_script_warning_printed.
6973 (maybe_add_script): Make static. Change type of language arg to
6974 struct extension_language_defn *.
6975 (clear_section_scripts): Reset unsupported_script_warning_printed.
6976 (auto_load_objfile_script_1): Rewrite to use extension language API.
6977 (auto_load_objfile_script): Make public. Remove support-compiled-in
6978 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6979 (source_section_scripts): Rewrite to use extension language API.
6980 (load_auto_scripts_for_objfile): Rewrite to use
6981 auto_load_scripts_for_objfile.
6982 (collect_matching_scripts_data): Change type of language member to
6983 struct extension_language_defn *.
6984 (auto_load_info_scripts): Change type of language arg to
6985 struct extension_language_defn *.
6986 (unsupported_script_warning_print): New function.
6987 (script_not_found_warning_print): Make static.
6988 (_initialize_auto_load): Rewrite construction of scripts-directory
6990 * auto-load.h (struct objfile): Add forward decl.
6991 (struct script_language): Delete.
6992 (struct auto_load_pspace_info): Add forward decl.
6993 (struct extension_language_defn): Add forward decl.
6994 (maybe_add_script): Delete.
6995 (auto_load_objfile_script): Declare.
6996 (script_not_found_warning_print): Delete.
6997 (auto_load_info_scripts): Update prototype.
6998 (auto_load_gdb_scripts_enabled): Declare.
6999 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7000 auto_load_python_scripts_enabled and made public.
7001 (script_language_python): Delete, moved to python.c.
7002 (gdbpy_script_language_defn): Delete.
7003 (info_auto_load_python_scripts): Update to use
7004 extension_language_python.
7006 * breakpoint.c (condition_command): Replace call to
7007 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7008 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7009 with call to breakpoint_ext_lang_cond_says_stop.
7010 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7011 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7012 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7013 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7015 (local_setattro): Print name of extension language with existing
7018 * valprint.c (val_print, value_print): Update to call
7019 apply_ext_lang_val_pretty_printer.
7020 * cp-valprint.c (cp_print_value): Update call to
7021 apply_ext_lang_val_pretty_printer.
7022 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7023 (gdbpy_apply_val_pretty_printer): Renamed from
7024 apply_val_pretty_printer. New arg extlang.
7025 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7027 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7028 extension language API.
7029 * cli/cli-script.c (execute_control_command): Update to call
7030 eval_ext_lang_from_control_command.
7032 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7033 enum ext_lang_bt_status values. Update call to
7034 apply_ext_lang_frame_filter.
7035 (mi_cmd_stack_list_locals): Ditto.
7036 (mi_cmd_stack_list_args): Ditto.
7037 (mi_cmd_stack_list_variables): Ditto.
7038 * mi/mi-main.c: Delete #include "python/python-internal.h".
7039 Add #include "extension.h".
7040 (mi_cmd_list_features): Replace reference to python internal variable
7041 gdb_python_initialized with call to ext_lang_initialized_p.
7043 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7044 Update to use enum ext_lang_frame_args. Update to call
7045 apply_ext_lang_frame_filter.
7046 * python/py-framefilter.c (extract_sym): Update to use enum
7048 (extract_value, py_print_type, py_print_value): Ditto.
7049 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7050 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7051 (py_print_frame): Ditto.
7052 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7053 New arg extlang. Update to use enum ext_lang_bt_status.
7055 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7056 finish_python_initialization. Replace with call to
7057 finish_ext_lang_initialization.
7059 * typeprint.c (do_free_global_table): Update to call
7060 free_ext_lang_type_printers.
7061 (create_global_typedef_table): Update to call
7062 start_ext_lang_type_printers.
7063 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7064 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7065 (type_print_options): Change type of global_printers from "void *"
7066 to "struct ext_lang_type_printers *".
7068 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7069 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7070 (gdbpy_preserve_values): Renamed from preserve_python_values.
7072 (!HAVE_PYTHON, preserve_python_values): Delete.
7074 * utils.c (quit_flag): Delete, moved to extension.c.
7075 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7078 * eval.c: Delete #include "python/python.h".
7079 * main.c: Delete #include "python/python.h".
7081 * defs.h: Update comment.
7083 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7087 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7089 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7092 2014-02-05 Yao Qi <yao@codesourcery.com>
7094 * remote.c (remote_pass_signals): Remove local 'buf' and use
7096 (remote_program_signals): Likewise.
7098 2014-02-05 Yao Qi <yao@codesourcery.com>
7100 * ctf.c: Include "inferior.h" and "gdbthread.h".
7101 (CTF_PID): A new macro.
7102 (ctf_open): Call inferior_appeared and add_thread_silent.
7103 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7104 (ctf_thread_alive): New function.
7105 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7107 2014-02-05 Yao Qi <yao@codesourcery.com>
7111 2013-05-24 Yao Qi <yao@codesourcery.com>
7113 * tracepoint.c (TFILE_PID): Remove.
7114 (tfile_open): Don't add thread and inferior.
7115 (tfile_close): Don't set 'inferior_ptid'. Don't call
7116 exit_inferior_silent.
7117 (tfile_thread_alive): Remove.
7118 (init_tfile_ops): Don't set field 'to_thread_alive' of
7121 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7123 * remote.c (remote_start_remote): Call remote_check_symbols even
7124 if only symbol-file (not file) has been given.
7126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7128 * gdbarch.sh (skip_entrypoint): New callback.
7129 * gdbarch.c, gdbarch.h: Regenerate.
7130 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7131 * infrun.c (fill_in_stop_func): Likewise.
7132 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7133 (ppc_elfv2_elf_make_msymbol_special): New function.
7134 (ppc_elfv2_skip_entrypoint): Likewise.
7135 (ppc_linux_init_abi): Install them for ELFv2.
7137 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7139 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7140 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7141 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7142 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7143 structures returned in GPRs.
7145 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7147 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7148 offset to the stack parameter list for the ELFv2 ABI.
7150 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7152 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7153 set_gdbarch_convert_from_func_ptr_addr and
7154 set_gdbarch_elf_make_msymbol_special for ELFv1.
7155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7156 function descriptors on ELFv1.
7157 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7158 set up r12 at function entry.
7160 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7162 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7163 (struct gdbarch_tdep): New member elf_abi.
7165 * rs6000-tdep.c: Include "elf/ppc64.h".
7166 (rs6000_gdbarch_init): Detect ELF ABI version.
7168 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7170 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7171 within a register pair holding a DFP 128-bit value on little-endian.
7172 (ppc64_sysv_abi_return_value_base): Likewise.
7173 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7174 (dfp_pseudo_register_write): Likewise.
7176 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7178 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7179 offset on little-endian when passing _Decimal32.
7180 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7182 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7184 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7185 of the overlapped FP register within the VSX register on little-
7187 (efpr_pseudo_register_write): Likewise.
7189 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7191 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7192 offset on little-endian when passing small structures.
7194 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7196 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7197 (struct ppc64_sysv_argpos): New data structure.
7198 (ppc64_sysv_abi_push_float): Remove.
7199 (ppc64_sysv_abi_push_val): New function.
7200 (ppc64_sysv_abi_push_integer): Likewise.
7201 (ppc64_sysv_abi_push_freg): Likewise.
7202 (ppc64_sysv_abi_push_vreg): Likewise.
7203 (ppc64_sysv_abi_push_param): Likewise.
7204 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7205 (ppc64_sysv_abi_return_value_base): New function.
7206 (ppc64_sysv_abi_return_value): Refactor to use it.
7208 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7210 * NEWS: Document new target powerpc64le-*-linux*.
7212 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7214 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7215 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7217 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7218 register set used in ELF core dumps. Add floating-point register set.
7220 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7222 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7223 dwarf2_to_gdb[] table using symbolic constants. Adjust
7224 penultimate entry from number representing the PC register
7225 to symbolic constant representing the MDR register. Add
7226 constant for the PC register to the end of the table.
7228 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7230 * bsd-kvm.c: Include <sys/param.h>
7232 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7234 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7236 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7238 * ada-lang.h (clear_ada_sym_cache): Delete.
7240 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7242 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7244 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7246 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7247 the sigreturn register save area only if the syscall is
7250 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7252 * valops.c (value_slice): Minor reformatting.
7254 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7256 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7258 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7260 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7262 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7263 (ada_ignore_descriptive_types_p): New static global.
7264 (find_parallel_type_by_descriptive_type): Return immediately
7265 if ada_ignore_descriptive_types_p is set.
7266 (_initialize_ada_language): Register new commands "maintenance
7267 set ada", "maintenance show ada", "maintenance set ada
7268 ignore-descriptive-types" and "maintenance show ada
7269 ignore-descriptive-types".
7270 * NEWS: Add entry for new "maint ada set/show
7271 ignore-descriptive-types" commands.
7273 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7275 * record-btrace.c (record_btrace_close): Call btrace_teardown
7278 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7280 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7283 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7285 * ada-typeprint (type_is_full_subrange_of_target_type):
7287 (print_range): Add parameter bounds_prefered_p. If not set,
7288 try printing range types using the name of their base type.
7289 (print_range_type): Add parameter bounds_prefered_p.
7290 Use it in call to print_range.
7291 (print_array_type, ada_print_type): Update calls to print_range
7292 and print_range_type.
7294 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7296 * ada-typeprint.c (print_array_type, print_choices, print_range)
7297 (print_range_bound, print_dynamic_range_bound, print_range_type):
7300 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7302 * ada-typeprint.c (print_range): Add missing empty line
7303 after local declaration.
7305 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7307 * ada-valprint.c (print_optional_low_bound): Get index_type's
7308 target type for as long as it is a TYPE_CODE_RANGE.
7310 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7312 * procfs.c (procfs_make_note_section): Remove assertion and
7315 2014-01-24 Yao Qi <yao@codesourcery.com>
7317 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7318 * corelow.c (get_core_siginfo): Likewise.
7320 2014-01-24 Yao Qi <yao@codesourcery.com>
7322 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7323 ULONGEST. Don't check 'len' is negative.
7324 (remote_write_bytes): Change type of 'len' to ULONGEST.
7326 2014-01-23 Tom Tromey <tromey@redhat.com>
7329 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7330 Handle exception from frame.block.
7331 (FrameVars.fetch_frame_locals): Likewise.
7333 2014-01-23 Tom Tromey <tromey@redhat.com>
7336 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7337 on a NULL pointer. Move "goto error" to correct place.
7339 2014-01-23 Tom Tromey <tromey@redhat.com>
7342 * python/py-framefilter.c (apply_frame_filter): Call
7343 ensure_python_env after computing gdbarch.
7345 2014-01-23 Yao Qi <yao@codesourcery.com>
7347 * target.c (raw_memory_xfer_partial): Change argument type
7348 from void * to gdb_byte *.
7349 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7351 2014-01-22 Doug Evans <dje@google.com>
7353 New gdbserver option --debug-format=timestamp.
7356 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7358 * syscalls/s390x-linux.xml: New file.
7359 * syscalls/s390-linux.xml: New file.
7360 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7361 (XML_SYSCALL_FILENAME_S390X): Likewise.
7362 (op_svc): New enum value for SVC opcode.
7363 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7364 (s390_linux_get_syscall_number): New function.
7365 (s390_gdbarch_init): Register '*get_syscall_number' and the
7366 syscall xml file name.
7367 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7368 "s390-linux.xml" and "s390x-linux.xml".
7369 * NEWS: Announce new feature.
7371 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7373 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7375 2014-01-22 Pedro Alves <palves@redhat.com>
7377 * xtensa-config.c: Include defs.h.
7379 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7381 * common/common-utils.h: Add "ARI:" comment beside __func__
7384 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7386 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7387 documentation a bit.
7389 2014-01-21 Roland McGrath <mcgrathr@google.com>
7391 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7392 * configure: Regenerate.
7393 * aclocal.m4: Regenerate.
7394 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7395 New substituted variables.
7396 (install-strip): New target.
7397 (INSTALL_SCRIPT): New substituted variable.
7398 (FLAGS_TO_PASS): Add it.
7399 (install-only): Use $(INSTALL_SCRIPT) rather than
7400 $(INSTALL_PROGRAM) for gcore.
7402 2014-01-20 Tom Tromey <tromey@redhat.com>
7404 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7407 2014-01-20 Tom Tromey <tromey@redhat.com>
7409 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7410 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7411 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7412 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7413 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7414 (struct cmd_list_element) <flags>: Remove.
7415 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7416 doc_allocated>: New fields.
7417 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7419 * maint.c (maintenance_do_deprecate): Update.
7420 * top.c (execute_command): Update.
7422 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7424 * xtensa-linux-nat.c: Include asm/ptrace.h.
7426 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7428 * Makefile.in (SFILES): Add d-support.c.
7429 (COMMON_OBS): Add d-support.o.
7430 * d-lang.h (d_parse_symbol): Add comment, now defined in
7432 * d-lang.c (parse_call_convention)
7433 (parse_attributes, parse_function_types)
7434 (parse_function_args, parse_type, parse_identifier)
7435 (call_convention_p, d_parse_symbol): Move functions to ...
7436 * d-support.c: ... New file.
7438 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7440 * d-lang.h (d_parse_symbol): Add declaration.
7441 * d-lang.c (extract_identifiers)
7442 (extract_type_info): Remove functions.
7443 (parse_call_convention, parse_attributes)
7444 (parse_function_types, parse_function_args)
7445 (parse_type, parse_identifier, call_convention_p)
7446 (d_parse_symbol): New functions.
7447 (d_demangle): Use d_parse_symbol to demangle D symbols.
7449 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7451 * d-lang.h (struct builtin_d_type): New data type.
7452 (builtin_d_type): Add declaration.
7453 * d-lang.c (d_language_arch_info, build_d_types)
7454 (builtin_d_type): New functions.
7455 (enum d_primitive_types): New data type.
7456 (d_language_defn): Change c_language_arch_info to
7457 d_language_arch_info.
7458 (d_type_data): New static variable.
7459 (_initialize_d_language): Initialize d_type_data.
7461 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7463 * d-lang.h (d_main_name): Add declaration.
7464 * d-lang.c (d_main_name): New function.
7465 * symtab.c (find_main_name): Add call to d_main_name.
7467 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7469 * d-lang.c (d_language_defn): Change macro_expansion_c to
7472 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7474 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7476 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7478 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7479 gdb_exception" declaration.
7480 * remote.c (getpkt_or_notif_sane): Likewise.
7482 2014-01-17 Doug Evans <dje@google.com>
7484 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7485 function, contents of dirnames_to_char_ptr_vec_append moved here.
7486 (delim_string_to_char_ptr_vec): New function.
7487 (dirnames_to_char_ptr_vec_append): Rewrite.
7488 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7490 2014-01-17 Doug Evans <dje@google.com>
7492 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7494 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7495 #include "common-utils.h".
7496 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7497 * common/vec.h (VEC_ASSERT_PASS): Update.
7498 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7499 (MACH_CHECK_ERROR): Update.
7501 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7503 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7505 * gdbarch.h: Regenerate.
7507 2014-01-16 Tom Tromey <tromey@redhat.com>
7509 * value.c (struct value) <regnum>: Move earlier.
7511 2014-01-16 Tom Tromey <tromey@redhat.com>
7513 * remote.c (extended_remote_create_inferior): Rename from
7514 extended_remote_create_inferior_1. Add "ops" argument. Remove
7517 2014-01-16 Pedro Alves <palves@redhat.com>
7519 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7520 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7523 2014-01-16 Doug Evans <dje@google.com>
7525 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7529 * btrace.h (btrace_thread_flag): New.
7530 (struct btrace_thread_info) <flags>: New.
7531 * record-btrace.c (record_btrace_resume_thread)
7532 (record_btrace_find_thread_to_move, btrace_step_no_history)
7533 (btrace_step_stopped, record_btrace_start_replaying)
7534 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7535 (record_btrace_find_resume_thread): New.
7536 (record_btrace_resume, record_btrace_wait): Extend.
7537 (record_btrace_can_execute_reverse): New.
7538 (record_btrace_open): Fail in non-stop mode.
7539 (record_btrace_set_replay): Split into this, ...
7540 (record_btrace_stop_replaying): ... this, ...
7541 (record_btrace_clear_histories): ... and this.
7542 (init_record_btrace_ops): Init to_can_execute_reverse.
7543 * NEWS: Announce it.
7545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7547 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7548 (forward_target_decr_pc_after_break)
7549 (target_decr_pc_after_break): New.
7550 * target.c (forward_target_decr_pc_after_break)
7551 (target_decr_pc_after_break): New.
7552 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7553 instead of gdbarch_decr_pc_after_break.
7554 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7555 instead of gdbarch_decr_pc_after_break.
7556 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7557 instead of gdbarch_decr_pc_after_break.
7558 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7559 instead of gdbarch_decr_pc_after_break.
7560 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7561 instead of gdbarch_decr_pc_after_break.
7562 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7563 instead of gdbarch_decr_pc_after_break.
7565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7567 * btrace.c: Include regcache.h.
7568 (btrace_add_pc): New.
7569 (btrace_enable): Call btrace_add_pc.
7570 (btrace_is_empty): New.
7571 * btrace.h (btrace_is_empty): New.
7572 * record-btrace.c (require_btrace, record_btrace_info): Call
7575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7577 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7578 Support delta reads.
7579 (linux_disable_btrace): Change return type.
7580 * common/linux-btrace.h (linux_read_btrace): Change parameters
7581 and return type to allow error reporting. Update users.
7582 (linux_disable_btrace): Change return type. Update users.
7583 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7585 (btrace_error): New.
7586 (btrace_block) <begin>: Comment on BEGIN == 0.
7587 * btrace.c (btrace_compute_ftrace): Start from the end of
7589 (btrace_stitch_trace, btrace_clear_history): New.
7590 (btrace_fetch): Read delta trace, return if replaying.
7591 (btrace_clear): Move clear history code to btrace_clear_history.
7592 (parse_xml_btrace): Throw an error if parsing failed.
7593 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7594 and return type to allow error reporting.
7595 (target_read_btrace): Change parameters and return type to allow
7597 * target.c (target_read_btrace): Update.
7598 * remote.c (remote_read_btrace): Support delta reads. Pass
7600 * NEWS: Announce it.
7602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7604 * record.h (record_btrace_frame_unwind)
7605 (record_btrace_tailcall_frame_unwind): New declarations.
7606 * dwarf2-frame: Include record.h
7607 (dwarf2_frame_cfa): Throw an error for btrace frames.
7608 * record-btrace.c: Include hashtab.h.
7609 (btrace_get_bfun_name): New.
7610 (btrace_call_history): Call btrace_get_bfun_name.
7611 (struct btrace_frame_cache): New.
7613 (bfcache_hash, bfcache_eq, bfcache_new): New.
7614 (btrace_get_frame_function): New.
7615 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7616 (record_btrace_frame_this_id): Compute own id.
7617 (record_btrace_frame_prev_register): Provide PC, throw_error
7618 for all other registers.
7619 (record_btrace_frame_sniffer): Detect btrace frames.
7620 (record_btrace_tailcall_frame_sniffer): New.
7621 (record_btrace_frame_dealloc_cache): New.
7622 (record_btrace_frame_unwind): Add new functions.
7623 (record_btrace_tailcall_frame_unwind): New.
7624 (_initialize_record_btrace): Allocate cache.
7625 * btrace.c (btrace_clear): Call reinit_frame_cache.
7626 * NEWS: Announce it.
7628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7630 * record-btrace.c (record_btrace_set_replay)
7631 (record_btrace_goto_begin, record_btrace_goto_end)
7632 (record_btrace_goto): New.
7633 (init_record_btrace_ops): Initialize them.
7634 * NEWS: Announce it.
7636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7638 * record-btrace.c (record_btrace_find_new_threads)
7639 (record_btrace_thread_alive): New.
7640 (init_record_btrace_ops): Initialize to_find_new_threads and
7643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7645 * record-btrace.c (record_btrace_resume): New.
7646 (record_btrace_wait): New.
7647 (init_record_btrace_ops): Initialize to_wait and to_resume.
7649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7651 * record-btrace.c (record_btrace_xfer_partial)
7652 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7653 (record_btrace_allow_memory_access): New.
7654 (init_record_btrace_ops): Initialize new methods.
7655 * target.c (raw_memory_xfer_partial): Bail out if target reports
7656 that this memory is not available.
7658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7660 * target.h (target_ops) <to_insert_breakpoint>
7661 <to_remove_breakpoint>: Add target_ops parameter.
7662 (forward_target_insert_breakpoint): New.
7663 (forward_target_remove_breakpoint): New.
7664 (memory_remove_breakpoint, memory_insert_breakpoint):
7665 Add target_ops parameter.
7666 * target.c (target_insert_breakpoint): Split into this and ...
7667 (forward_target_insert_breakpoint): ... this.
7668 (target_remove_breakpoint): Split into this and ...
7669 (forward_target_remove_breakpoint): ... this.
7670 (debug_to_insert_breakpoint): Add target_ops parameter.
7671 Call forward_target_insert_breakpoint.
7672 (debug_to_remove_breakpoint): Add target_ops parameter.
7673 Call forward_target_remove_breakpoint.
7674 (update_current_target): Do not inherit or default to_insert_breakpoint
7675 and to_remove_breakpoint.
7676 * corelow.c (ignore): Add target_ops parameter.
7677 * exec.c (ignore): Add target_ops parameter.
7678 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7679 Add target_ops parameter.
7680 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7681 Add target_ops parameter.
7682 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7683 Add target_ops parameter.
7684 * record-full.c (record_full_beneath_to_insert_breakpoint)
7685 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7686 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7687 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7688 (record_full_core_remove_breakpoint): Add target_ops parameter.
7690 (record_full_beneath_to_insert_breakpoint_ops)
7691 (record_full_beneath_to_remove_breakpoint_ops)
7692 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7693 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7694 tmp_to_remove_breakpoint_ops,
7695 record_full_beneath_to_insert_breakpoint_ops, and
7696 record_full_beneath_to_remove_breakpoint_ops.
7697 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7698 (m32r_remove_breakpoint): Add target_ops parameter.
7699 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7700 Add target_ops parameter.
7701 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7702 Add target_ops parameter.
7704 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7705 Markus Metzger <markus.t.metzger@intel.com>
7707 * record-btrace.c: Include frame-unwind.h.
7708 (record_btrace_frame_unwind_stop_reason)
7709 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7710 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7712 (init_record_btrace_ops): Install it.
7714 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7716 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7719 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7721 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7724 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7726 * frame-unwind.c: Include target.h.
7727 (frame_unwind_try_unwinder): New function with code from ...
7728 (frame_unwind_find_by_frame): ... here. New variable
7729 unwinder_from_target, call also target_get_unwinder)
7730 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7731 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7732 * target.h (struct target_ops): New fields to_get_unwinder and
7733 to_get_tailcall_unwinder.
7734 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7738 * record-btrace.c (record_btrace_fetch_registers)
7739 (record_btrace_store_registers)
7740 (record_btrace_to_prepare_to_store): New.
7741 (init_record_btrace_ops): Add the above.
7743 2014-01-16 Tom Tromey <tromey@redhat.com>
7745 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7746 * target.h (struct target_ops) <to_prepare_to_store>: Add
7748 (target_prepare_to_store): Add argument.
7749 * target.c (debug_to_prepare_to_store): Add argument.
7750 (update_current_target): Update.
7751 * remote.c (remote_prepare_to_store): Add 'self' argument.
7752 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7753 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7754 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7755 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7757 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7758 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7759 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7760 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7761 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7765 * btrace.h (replay) <replay>: New.
7766 (btrace_is_replaying): New.
7767 * btrace.c (btrace_clear): Free replay iterator.
7768 (btrace_is_replaying): New.
7769 * record-btrace.c (record_btrace_is_replaying): New.
7770 (record_btrace_info): Print insn number if replaying.
7771 (record_btrace_insn_history): Start at replay position.
7772 (record_btrace_call_history): Start at replay position.
7773 (init_record_btrace_ops): Init to_record_is_replaying.
7775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7777 * record-btrace.c (record_btrace_insn_history_range): Include
7779 (record_btrace_insn_history_from): Adjust range.
7780 (record_btrace_call_history_range): Include
7782 (record_btrace_call_history_from): Adjust range.
7783 * NEWS: Announce changes.
7785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7787 * record.h (enum record_print_flag)
7788 <record_print_indent_calls>: New.
7789 * record.c (get_call_history_modifiers): Recognize /c modifier.
7790 (_initialize_record): Document /c modifier.
7791 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7792 Reorder fields. Optionally indent the function name. Update
7794 * NEWS: Announce changes.
7796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7798 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7800 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7802 * btrace.c (ftrace_new_function): Start counting at one.
7803 * record-btrace.c (record_btrace_info): Adjust number of calls
7805 * NEWS: Announce it.
7807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7809 * record-btrace.c (btrace_call_history_insn_range): Print
7810 insn range as [begin, end].
7812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7814 * btrace.h (struct btrace_func_link): New.
7815 (enum btrace_function_flag): New.
7816 (struct btrace_inst): Rename to ...
7817 (struct btrace_insn): ...this. Update all users.
7818 (struct btrace_func) <ibegin, iend>: Remove.
7819 (struct btrace_func_link): New.
7820 (struct btrace_func): Rename to ...
7821 (struct btrace_function): ...this. Update all users.
7822 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7823 (number, level, flags>: New.
7824 (struct btrace_insn_iterator): Rename to ...
7825 (struct btrace_insn_history): ...this.
7827 (struct btrace_insn_iterator, btrace_call_iterator): New.
7828 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7829 (struct btrace_target_info) <begin, end, level>
7830 <insn_history, call_history>: New.
7831 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7832 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7833 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7834 (btrace_call_number, btrace_call_begin, btrace_call_end)
7835 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7836 (btrace_find_function_by_number, btrace_set_insn_history)
7837 (btrace_set_call_history): New.
7838 * btrace.c (btrace_init_insn_iterator)
7839 (btrace_init_func_iterator, compute_itrace): Remove.
7840 (ftrace_print_function_name, ftrace_print_filename)
7841 (ftrace_skip_file): Change
7843 (ftrace_init_func): Remove.
7844 (ftrace_debug): Use new btrace_function fields.
7845 (ftrace_function_switched): Also consider gaining and
7846 losing symbol information).
7847 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7848 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7849 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7851 (ftrace_new_function): Move. Remove debug print.
7852 (ftrace_update_lines, ftrace_update_insns): New.
7853 (ftrace_update_function): Check for call, ret, and jump.
7854 (compute_ftrace): Renamed to ...
7855 (btrace_compute_ftrace): ...this. Rewritten to compute call
7857 (btrace_fetch, btrace_clear): Updated.
7858 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7859 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7860 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7861 (btrace_call_number, btrace_call_begin, btrace_call_end)
7862 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7863 (btrace_find_function_by_number, btrace_set_insn_history)
7864 (btrace_set_call_history): New.
7865 * record-btrace.c (require_btrace): Use new btrace thread
7867 (record_btrace_info, btrace_insn_history)
7868 (record_btrace_insn_history, record_btrace_insn_history_range):
7869 Use new btrace thread info fields and new iterator.
7870 (btrace_func_history_src_line): Rename to ...
7871 (btrace_call_history_src_line): ...this. Use new btrace
7873 (btrace_func_history): Rename to ...
7874 (btrace_call_history): ...this. Use new btrace thread info
7875 fields and new iterator.
7876 (record_btrace_call_history, record_btrace_call_history_range):
7877 Use new btrace thread info fields and new iterator.
7879 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7881 * frame.h (frame_id_build_unavailable_stack_special): New.
7882 * frame.c (frame_id_build_unavailable_stack_special): New.
7884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7886 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7887 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7888 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7890 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7891 (i386_insn_is_jump, i386_jmp_p): New.
7892 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7893 insn_is_jump to gdbarch.
7894 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7895 * gdbarch.h: Regenerated.
7896 * gdbarch.c: Regenerated.
7897 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7898 (default_insn_is_jump): New.
7899 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7900 (default_insn_is_jump): New.
7902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7904 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7906 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7907 (btrace_read_type) <btrace_read_new>: Change to ...
7908 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7912 * common/linux-btrace.c (linux_read_btrace): Free trace from
7915 2014-01-15 Doug Evans <dje@google.com>
7917 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7920 2014-01-15 Tom Tromey <tromey@redhat.com>
7922 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7923 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7924 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7925 (set_objfile_main_name): New function.
7926 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7927 language_of_main>: New fields.
7928 (set_objfile_main_name): Declare.
7929 * symtab.c (find_main_name): Loop over objfiles to find the main
7931 (set_main_name): Now static.
7932 (get_main_info): Add comment.
7933 * symtab.h (set_main_name): Don't declare.
7935 2014-01-15 Tom Tromey <tromey@redhat.com>
7937 * symtab.c (main_progspace_key): New global.
7938 (struct main_info): New.
7939 (name_of_main, language_of_main): Remove.
7940 (get_main_info, main_info_cleanup): New function.
7941 (set_main_name, main_name, main_language): Use get_main_info.
7942 (_initialize_symtab): Initialize main_progspace_key.
7944 2014-01-15 Tom Tromey <tromey@redhat.com>
7946 * dbxread.c (process_one_symbol): Update.
7947 * dwarf2read.c (read_partial_die): Update.
7948 * symfile.c (set_initial_language): Call main_language.
7949 * symtab.c (language_of_main): Now static.
7950 (set_main_name): Add 'lang' parameter.
7951 (find_main_name): Update.
7952 (main_language): New function.
7953 (symtab_observer_executable_changed): Update.
7954 * symtab.h (set_main_name): Update.
7955 (language_of_main): Remove.
7956 (main_language): Declare.
7958 2014-01-15 Tom Tromey <tromey@redhat.com>
7960 * symfile.c (init_entry_point_info): Use new "initialized" field.
7962 * objfiles.h (struct entry_point) <initialized>: New field.
7963 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7964 (struct objfile) <ei>: ...here. Remove.
7965 * objfiles.c (entry_point_address_query): Update.
7967 2014-01-15 Tom Tromey <tromey@redhat.com>
7969 * objfiles.c (entry_point_address_query): Relocate entry point
7971 (objfile_relocate1): Do not relocate entry point address.
7972 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7973 <the_bfd_section_index>: New field.
7974 * symfile.c (init_entry_point_info): Find the entry point's
7977 2014-01-15 Tom Tromey <tromey@redhat.com>
7979 * solib-frv.c (enable_break): Use entry_point_address_query.
7981 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7983 * NEWS: Add note on improved process record-replay on
7984 arm*-linux* targets.
7986 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7988 * arm-tdep.c (enum arm_record_result): New enum.
7989 (arm_record_unsupported_insn): New function.
7990 (arm_record_coproc_data_proc): Removed.
7991 (thumb2_record_ld_st_multiple): New function.
7992 (thumb2_record_ld_st_dual_ex_tbb): New function.
7993 (thumb2_record_data_proc_sreg_mimm): New function.
7994 (thumb2_record_ps_dest_generic): New function.
7995 (thumb2_record_branch_misc_cntrl): New function.
7996 (thumb2_record_str_single_data): New function.
7997 (thumb2_record_ld_mem_hints): New function.
7998 (thumb2_record_ld_word): New function.
7999 (thumb2_record_lmul_lmla_div): New function.
8000 (thumb2_record_decode_insn_handler): New function.
8001 (decode_insn): Add thumb32 instruction handlers.
8003 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8005 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8006 (struct arm_linux_record_tdep): Declare.
8007 (arm_canonicalize_syscall): New function.
8008 (arm_all_but_pc_registers_record): New function.
8009 (arm_linux_syscall_record): New function.
8010 (arm_linux_init_abi): Add syscall recording constructs.
8011 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8012 decoding. (arm_record_coproc_data_proc): Update arm syscall
8014 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8015 <arm_syscall_record>: New field.
8016 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8021 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8022 register for push instruction recording.
8024 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8026 * arm-tdep.c (thumb_record_misc): Update to correct logical
8027 error while recording ldm, ldmia and pop instructions.
8029 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8031 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8033 2014-01-15 Pedro Alves <palves@redhat.com>
8035 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8036 (go32_resume, go32_fetch_registers, store_register)
8037 (go32_store_registers, go32_prepare_to_store)
8038 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8039 (go32_create_inferior, go32_can_run, go32_terminal_init)
8040 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8043 2014-01-15 Tom Tromey <tromey@redhat.com>
8045 * target.h (async_callback_ftype): New typedef.
8046 (struct target_ops) <to_async>: Use it.
8048 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8050 * python/py-value.c (get_field_type): Remove unnecessary curly
8051 braces for single-statement if block.
8053 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8055 * python/py-type.c (convert_field): Add missing empty line
8058 2014-01-14 Doug Evans <dje@google.com>
8060 * symfile.h (expand_symtabs_matching): Renamed from
8061 expand_partial_symbol_names. Update prototype.
8062 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8063 * symfile.c (expand_symtabs_matching): Renamed from
8064 expand_partial_symbol_names. New args file_matcher, kind.
8065 Rename arg fun to symbol_matcher.
8066 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8067 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8068 ada_expand_partial_symbol_name.
8069 (ada_make_symbol_completion_list): Update to call
8070 expand_symtabs_matching.
8071 (ada_add_global_exceptions): Call expand_symtabs_matching.
8072 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8073 call map_symbol_filenames.
8074 * symtab.c (sources_info): Update to call map_symbol_filenames.
8075 (search_symbols): Call expand_symtabs_matching.
8076 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8077 (default_make_symbol_completion_list_break_on): Update to call
8078 expand_symtabs_matching.
8079 (make_source_files_completion_list): Update to call
8080 map_symbol_filenames.
8082 2014-01-14 Doug Evans <dje@google.com>
8084 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8085 (expand_symtabs_symbol_matcher_ftype): New typedef.
8086 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8087 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8088 * symfile.c (expand_partial_symbol_names): Update to use
8089 expand_symtabs_symbol_matcher_ftype.
8090 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8091 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8092 Arg name_matcher renamed to symbol_matcher.
8093 * psymtab.c (recursively_search_psymtabs): Update to use
8094 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8096 (expand_symtabs_matching_via_partial): Update to use
8097 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8098 Arg name_matcher renamed to symbol_matcher.
8100 2014-01-14 Doug Evans <dje@google.com>
8102 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8103 (map_partial_symbol_filenames): Ditto.
8104 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8105 (map_partial_symbol_filenames): Ditto.
8106 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8107 (map_partial_symbol_filenames): Ditto.
8108 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8109 (map_partial_symbol_filenames): Ditto.
8110 * symtab.c: Delete #include "psymtab.h".
8112 2014-01-14 Pedro Alves <palves@redhat.com>
8113 Tom Tromey <tromey@redhat.com>
8115 * infrun.c (use_displaced_stepping): Use find_record_target
8116 instead of RECORD_IS_USED.
8117 (adjust_pc_after_break): Use record_full_is_used instead of
8119 * record-btrace.c (record_btrace_open): Call record_preopen
8120 instead of checking RECORD_IS_USED.
8121 * record-full.c (record_full_shortname)
8122 (record_full_core_shortname): New globals.
8123 (record_full_is_used): New function.
8124 (find_full_open): Call record_preopen instead of checking
8126 (init_record_full_ops): Set the target's shortname to
8127 record_full_shortname.
8128 (init_record_full_core_ops): Set the target's shortname to
8129 record_full_core_shortname.
8130 * record-full.h (record_full_is_used): Declare.
8131 * record.c (find_record_target): Make extern.
8132 (record_preopen): New function.
8133 * record.h (RECORD_IS_USED): Delete macro.
8134 (find_record_target, record_preopen): Declare functions.
8136 2014-01-14 Yao Qi <yao@codesourcery.com>
8138 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8139 'len''s type to ULONGEST.
8140 (core_xfer_shared_libraries_aix): Likewise.
8141 * gdbarch.c, gdbarch.h: Regenerated.
8142 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8143 Change type of 'len' to ULONGEST.
8144 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8145 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8147 2014-01-14 Yao Qi <yao@codesourcery.com>
8149 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8150 type of 'len' to ULONGEST.
8151 (linux_xfer_osdata_processgroups): Likewise.
8152 (linux_xfer_osdata_threads): Likewise.
8153 (linux_xfer_osdata_fds): Likewise.
8154 (linux_xfer_osdata_isockets): Likewise.
8155 (linux_xfer_osdata_shm): Likewise.
8156 (linux_xfer_osdata_sem): Likewise.
8157 (linux_xfer_osdata_msg): Likewise.
8158 (linux_common_xfer_osdata): Likewise.
8159 (struct osdata_type) <getter>: Likewise.
8160 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8163 2014-01-14 Yao Qi <yao@codesourcery.com>
8165 * target.h (target_xfer_partial_ftype): Update.
8166 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8168 * aix-thread.c (aix_thread_xfer_partial): Change type of
8169 argument 'len' to ULONGEST.
8170 * auxv.c (procfs_xfer_auxv): Likewise.
8171 (ld_so_xfer_auxv): Likewise.
8172 (memory_xfer_auxv): Likewise.
8173 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8174 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8175 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8176 * corelow.c (core_xfer_partial): Likewise.
8177 * ctf.c (ctf_xfer_partial): Likewise.
8178 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8180 (darwin_read_dyld_info): Likewise.
8181 (darwin_xfer_partial): Likewise.
8182 * exec.c (section_table_xfer_memory_partial): Likewise.
8183 (exec_xfer_partial): Likewise.
8184 * exec.h (section_table_xfer_memory_partial): Update
8186 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8187 instead of plongest.
8188 (gnu_xfer_partial): Likewise.
8189 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8190 (ia64_hpux_xfer_solib_got): Likewise.
8191 (ia64_hpux_xfer_partial): Likewise.
8192 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8193 * inf-ptrace.c (inf_ptrace_xfer_partial):
8194 * inf-ttrace.c (inf_ttrace_xfer_partial):
8195 * linux-nat.c (linux_xfer_siginfo): Likewise.
8196 (linux_nat_xfer_partial): Likewise.
8197 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8198 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8199 * monitor.c (monitor_xfer_memory): Likewise.
8200 (monitor_xfer_partial): Likewise.
8201 * procfs.c (procfs_xfer_partial): Likewise.
8202 * record-full.c (record_full_xfer_partial): Likewise.
8203 (record_full_core_xfer_partial): Likewise.
8204 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8205 instead of plongest.
8206 (gdbsim_xfer_partial): Likewise.
8207 * remote.c (remote_xfer_partial): Likewise.
8208 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8209 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8211 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8212 (rs6000_xfer_shared_libraries): Likewise.
8213 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8214 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8215 (sparc_xfer_partial): Likewise.
8216 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8217 (spu_xfer_partial): Likewise.
8218 * spu-multiarch.c (spu_xfer_partial): Likewise.
8219 * target.c (target_read_live_memory): Likewise.
8220 (memory_xfer_live_readonly_partial): Likewise.
8221 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8222 (target_xfer_partial, default_xfer_partial): Likewise.
8223 (current_xfer_partial): Likewise.
8224 * tracepoint.c (tfile_xfer_partial): Likewise.
8225 * windows-nat.c (windows_xfer_memory): Likewise. Call
8226 pulongest instead of plongest.
8227 (windows_xfer_partial): Likewise.
8228 (windows_xfer_shared_libraries): Likewise.
8230 2014-01-14 Yao Qi <yao@codesourcery.com>
8232 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8233 target_xfer_partial_ftype.
8235 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8239 * valops.c (value_struct_elt_bitpos): New function
8240 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8241 object to 'None' if the field name is an empty string ("").
8242 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8243 attribute to look for a field when 'name' is 'None'.
8244 (get_field_type): New function
8246 2014-01-13 Doug Evans <dje@google.com>
8249 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8250 (try_open_dwop_file): Ditto.
8251 * gdb_bfd.c: #include "vec.h".
8252 (bfdp): New typedef.
8253 (struct gdb_bfd_data): New member included_bfds.
8254 (gdb_bfd_unref): Unref all included bfds.
8255 (gdb_bfd_record_inclusion): New function.
8256 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8258 2014-01-13 Tom Tromey <tromey@redhat.com>
8260 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8262 2014-01-13 Tom Tromey <tromey@redhat.com>
8264 * defs.h (use_windows): Remove.
8265 * gdb.c (main): Update.
8266 * main.c (captured_main, gdb_main): Update.
8267 * main.h (struct captured_main_args) <use_windows>: Remove.
8268 * top.c (use_windows): Remove.
8270 2014-01-13 Tom Tromey <tromey@redhat.com>
8272 * defs.h (deprecated_flush_hook): Remove.
8274 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8277 * linux-thread-db.c (try_thread_db_load): Add parameter
8278 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8279 (try_thread_db_load_from_pdir_1): Move it there from here.
8280 (try_thread_db_load_from_sdir): Update caller.
8281 (try_thread_db_load_from_dir): Move it there from here.
8283 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8285 * regformats/regdat.sh: Always rewrite the register file.
8287 2014-01-13 Pedro Alves <palves@redhat.com>
8289 * Makefile.in (CHECK_HEADERS): New variable.
8290 (check-headers:): New rule.
8292 2014-01-13 Tom Tromey <tromey@redhat.com>
8294 * cli/cli-setshow.c (do_set_command): Update.
8295 * defs.h (deprecated_set_hook): Remove.
8296 * top.c (deprecated_set_hook): Remove.
8298 2014-01-13 Pedro Alves <palves@redhat.com>
8300 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8301 the tracepoint if the PC is a pseudo-register.
8303 2014-01-13 Tom Tromey <tromey@redhat.com>
8305 * defs.h (XCALLOC): Remove.
8306 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8307 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8308 * dwarf2loc.c (allocate_piece_closure): Likewise.
8309 * elfread.c (elf_symfile_segments): Likewise.
8310 (elf_symfile_segments): Likewise.
8311 * gdbtypes.c (copy_type_recursive): Likewise.
8312 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8313 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8314 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8316 * mt-tdep.c (mt_gdbarch_init): Likewise.
8317 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8319 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8320 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8321 * registry.c (registry_alloc_data): Likewise.
8322 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8323 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8324 * serial.c (serial_fdopen_ops): Likewise.
8325 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8327 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8328 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8331 2014-01-13 Tom Tromey <tromey@redhat.com>
8333 * defs.h (XMALLOC): Remove.
8334 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8335 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8336 * cli-out.c (struct ui_out *): Likewise.
8337 * cli/cli-dump.c (add_dump_command): Likewise.
8338 (add_dump_command): Likewise.
8339 * complaints.c (get_complaints): Likewise.
8340 (find_complaint): Likewise.
8341 * dwarf2-frame.c (execute_cfa_program): Likewise.
8342 * dwarf2read.c (abbrev_table_read_table): Likewise.
8343 * gdbarch.sh: Likewise.
8344 * gdbarch.c: Rebuild.
8345 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8346 * interps.c (interp_new): Likewise.
8347 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8348 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8349 * mi/mi-console.c (mi_console_file_new): Likewise.
8350 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8351 * mi/mi-out.c (mi_out_new): Likewise.
8352 * mi/mi-parse.c (mi_parse): Likewise.
8353 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8354 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8355 * observer.c (xalloc_observer_list_node): Likewise.
8356 * regcache.c (regcache_xmalloc_1): Likewise.
8357 * reggroups.c (reggroup_new): Likewise.
8358 (_initialize_reggroup): Likewise.
8359 * registry.c (register_data_with_cleanup): Likewise.
8360 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8361 * ser-base.c (serial_ttystate): Likewise.
8362 * ser-mingw.c (make_pipe_state): Likewise.
8363 * ser-pipe.c (pipe_open): Likewise.
8364 * serial.c (serial_open): Likewise.
8365 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8366 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8367 (tui_alloc_win_info): Likewise.
8368 (tui_add_content_elements): Likewise.
8369 * tui/tui-file.c (tui_file_new): Likewise.
8370 * tui/tui-out.c (tui_out_new): Likewise.
8371 * ui-file.c (mem_file_new): Likewise.
8372 * ui-out.c (push_level): Likewise.
8373 (make_cleanup_ui_out_end): Likewise.
8374 (append_header_to_list): Likewise.
8375 (ui_out_new): Likewise.
8376 * user-regs.c (user_reg_add_builtin): Likewise.
8378 2014-01-13 Tom Tromey <tromey@redhat.com>
8380 * defs.h (XZALLOC): Remove.
8381 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8382 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8383 (get_ada_tasks_inferior_data): Likewise.
8384 * auto-load.c (get_auto_load_pspace_data): Likewise.
8385 * auxv.c (get_auxv_inferior_data): Likewise.
8386 * bfd-target.c (target_bfd_reopen): Likewise.
8387 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8388 (deprecated_insert_raw_breakpoint): Likewise.
8389 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8390 * corelow.c (core_open): Likewise.
8391 * darwin-nat.c (darwin_check_new_threads): Likewise.
8392 (darwin_attach_pid): Likewise.
8393 * dummy-frame.c (dummy_frame_push): Likewise.
8394 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8395 * dwarf2loc.c (allocate_piece_closure): Likewise.
8396 * elfread.c (elf_symfile_segments): Likewise.
8397 * eval.c (ptrmath_type_p): Likewise.
8398 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8399 * gdbtypes.c (alloc_type_arch): Likewise.
8400 (alloc_type_instance): Likewise.
8401 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8402 * inf-child.c (inf_child_can_use_agent): Likewise.
8403 * inflow.c (get_inflow_inferior_data): Likewise.
8404 * infrun.c (save_infcall_suspend_state): Likewise.
8405 * jit.c (jit_reader_load): Likewise.
8406 (get_jit_objfile_data): Likewise.
8407 (get_jit_program_space_data): Likewise.
8408 (jit_object_open_impl): Likewise.
8409 (jit_symtab_open_impl): Likewise.
8410 (jit_block_open_impl): Likewise.
8411 (jit_frame_sniffer): Likewise.
8412 * linux-fork.c (add_fork): Likewise.
8413 * maint.c (make_command_stats_cleanup): Likewise.
8414 * objfiles.c (get_objfile_pspace_data): Likewise.
8415 * opencl-lang.c (struct lval_closure): Likewise.
8416 * osdata.c (osdata_start_osdata): Likewise.
8417 * progspace.c (new_address_space): Likewise.
8418 (add_program_space): Likewise.
8419 * remote-sim.c (get_sim_inferior_data): Likewise.
8420 * sh-tdep.c (sh_gdbarch_init): Likewise.
8421 * skip.c (Ignore): Likewise.
8422 (skip_delete_command): Likewise.
8423 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8424 (library_list_start_library): Likewise.
8425 (solib_aix_current_sos): Likewise.
8426 * solib-darwin.c (get_darwin_info): Likewise.
8427 (darwin_current_sos): Likewise.
8428 * solib-dsbt.c (get_dsbt_info): Likewise.
8429 * solib-ia64-hpux.c (new_so_list): Likewise.
8430 (ia64_hpux_get_solib_linkage_addr): Likewise.
8431 * solib-spu.c (append_ocl_sos): Likewise.
8432 (spu_current_sos): Likewise.
8433 * solib-svr4.c (get_svr4_info): Likewise.
8434 (svr4_keep_data_in_core): Likewise.
8435 (library_list_start_library): Likewise.
8436 (svr4_default_sos): Likewise.
8437 (svr4_read_so_list): Likewise.
8438 * solib-target.c (library_list_start_library): Likewise.
8439 (solib_target_current_sos): Likewise.
8440 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8441 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8442 * symfile.c (default_symfile_segments): Likewise.
8443 * target-descriptions.c (tdesc_data_init): Likewise.
8444 (tdesc_create_reg): Likewise.
8445 (struct tdesc_type *): Likewise.
8446 (tdesc_create_vector): Likewise.
8447 (tdesc_set_struct_size): Likewise.
8448 (struct tdesc_type *): Likewise.
8449 (tdesc_free_feature): Likewise.
8450 (tdesc_create_feature): Likewise.
8451 * windows-nat.c (windows_add_thread): Likewise.
8452 (windows_make_so): Likewise.
8453 * xml-support.c (gdb_xml_body_text): Likewise.
8454 (gdb_xml_create_parser_and_cleanup): Likewise.
8455 (xml_process_xincludes): Likewise.
8456 * xml-syscall.c (allocate_syscalls_info): Likewise.
8457 (syscall_create_syscall_desc): Likewise.
8459 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8461 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8462 function, with code from i386_stap_parse_special_token.
8463 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8464 (i386_stap_parse_special_token): Move code to the two functions
8467 2014-01-09 Pedro Alves <palves@redhat.com>
8468 Hui Zhu <hui@codesourcery.com>
8471 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8472 bp_err_string. Don't mark the location shlib_disabled if the
8473 error thrown wasn't a generic or memory error. Catch errors
8474 thrown while inserting breakpoints in overlayed code. Output
8475 error message of software breakpoints.
8476 * remote.c (remote_insert_breakpoint): If this breakpoint has
8477 target-side commands but this stub doesn't support Z0 packets,
8478 throw NOT_SUPPORTED_ERROR error.
8479 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8480 * target.h (target_insert_breakpoint): Extend comment.
8481 (target_insert_hw_breakpoint): Add comment.
8483 2014-01-08 Pedro Alves <palves@redhat.com>
8485 * remote.c (remote_add_thread): Add threads silently if starting
8487 (remote_notice_new_inferior): If in all-stop, and starting up,
8488 don't call notice_new_inferior.
8489 (get_current_thread): New function, factored out from ...
8490 (add_current_inferior_and_thread): ... this. Adjust.
8491 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8492 found any thread, then select the remote's current thread as GDB's
8495 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8497 * NEWS: Create a new section for the next release branch.
8498 Rename the section of the current branch, now that it has
8501 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8503 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8504 * version.in: Bump version to 7.7.50.DATE-cvs.
8506 2014-01-08 Yao Qi <yao@codesourcery.com>
8508 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8509 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8510 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8512 2014-01-08 Yao Qi <yao@codesourcery.com>
8514 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8515 return value of bfd_get_filename to symbol_file_add_from_bfd.
8517 2014-01-08 Pierre Muller <muller@sourceware.org>
8520 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8521 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8522 to prim_record_mininal_symbol_and_info.
8523 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8524 in call to prim_record_minimal_symbol_and_info.
8525 (read_pe_exported_syms): Set index field of section_data.
8527 2014-01-07 Andrew Pinski <apinski@cavium.com>
8529 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8530 * features/aarch64.c: Regenerate.
8532 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8534 * target.c (return_null): Define.
8535 (update_current_target): Use it instead of return_zero for
8536 functions that return a pointer.
8538 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8540 * source.c (add_path): Fix check for duplicated paths in the previously
8543 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8545 * ada-lang.c: Remove duplicated include statements.
8546 * alphabsd-nat.c: Ditto.
8547 * amd64-darwin-tdep.c: Ditto.
8548 * amd64fbsd-nat.c: Ditto.
8549 * auto-load.c: Ditto.
8551 * breakpoint.c: Ditto.
8553 * fork-child.c: Ditto.
8554 * gdb_usleep.c: Ditto.
8555 * i386-darwin-tdep.c: Ditto.
8556 * i386fbsd-nat.c: Ditto.
8558 * inferior.c: Ditto.
8560 * linux-nat.c: Ditto.
8561 * linux-tdep.c: Ditto.
8562 * m68kbsd-nat.c: Ditto.
8563 * m68klinux-nat.c: Ditto.
8564 * microblaze-tdep.c: Ditto.
8565 * mips-linux-tdep.c: Ditto.
8566 * mn10300-tdep.c: Ditto.
8567 * nto-tdep.c: Ditto.
8568 * opencl-lang.c: Ditto.
8570 * printcmd.c: Ditto.
8571 * regcache.c: Ditto.
8572 * remote-m32r-sdi.c: Ditto.
8576 * tilegx-linux-nat.c: Ditto.
8577 * tilegx-tdep.c: Ditto.
8578 * tracepoint.c: Ditto.
8580 * vaxbsd-nat.c: Ditto.
8581 * windows-nat.c: Ditto.
8582 * xtensa-tdep.c: Ditto.
8584 2014-01-07 Yao Qi <yao@codesourcery.com>
8586 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8588 2014-01-07 Yao Qi <yao@codesourcery.com>
8589 Joel Brobecker <brobecker@adacore.com>
8591 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8592 (pdc_write_regs): Likewise.
8593 (fetch_regs_kernel_thread): Likewise.
8594 (store_regs_kernel_thread): Likewise.
8596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8598 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8599 tagged type objects to their actual type.
8601 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8603 * ada-valprint.c (print_field_values): Add "language" parameter.
8604 Update calls to print_field_values and print_variant_part.
8605 Pass new parameter "language" in call to val_print instead
8606 of "current_language". Replace call to ada_val_print by call
8608 (print_variant_part): Add "language" parameter.
8609 (ada_val_print_struct_union): Update call to print_field_values.
8611 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8613 * ada-valprint.c (ui_memcpy): Delete.
8614 (ada_print_floating): Update documentation. Add empty line
8615 between between function documentation and implementation.
8616 Delete variable "buffer". Use ui_file_xstrdup in place of
8617 ui_file_put. Minor adjustments following this change.
8619 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8621 * ada-valprint.c (ada_val_print_string): New function,
8622 extracted from ada_val_print_array.
8623 (ada_val_print_array): Replace extracted code by call
8624 to ada_val_print_string followed by a return. Move
8625 "else" branch to the function's top block.
8627 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8629 * ada-valprint.c (ada_val_print_array): Move implementation
8630 down. Rename parameter "offset" and "val" into "offset_aligned"
8631 and "original_value" respectively. Add parameter "offset".
8633 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8635 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8636 re-organizing the code. Change the "???" message printed
8637 when target type is a TYPE_CODE_UNDEF into
8638 "<ref to undefined type>".
8640 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8642 * ada-valprint.c (print_record): Delete, implementation inlined...
8643 (ada_val_print_struct_union): ... here. Remove call to
8644 ada_check_typedef in inlined implementation.
8646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8648 * ada-valprint.c (ada_val_print_gnat_array): New function,
8649 extracted from ada_val_print_1;
8650 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8651 (ada_val_print_flt, ada_val_print_struct_union)
8652 (ada_val_print_ref): Likewise.
8653 (ada_val_print_1): Delete variables i and elttype.
8654 Replace extracted-out code by call to corresponding
8657 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8659 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8661 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8663 * ada-valprint.c (ada_val_print_1): Replace calls to
8664 ada_val_print_1 by calls to val_print.
8666 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8668 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8669 Update calls to self accordingly. Replace calls to c_val_print
8670 by calls to val_print.
8672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8674 * ada-valprint.c (print_record): Delete declaration.
8675 (adjust_type_signedness, ada_val_print_1): Likewise.
8676 (ada_val_print): Move function implementation down.
8677 (print_variant_part, print_field_values, print_record):
8678 Move function implementation up.
8680 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8682 * python/py-type.c (typy_get_name): New function.
8683 (type_object_getset): Add entry for attribute "name".
8684 * NEWS: Add entry mentioning this new attribute.
8686 2014-01-07 Yao Qi <yao@codesourcery.com>
8688 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8691 2014-01-07 Yao Qi <yao@codesourcery.com>
8693 * gnu-nat.c (info_port_rights): Add qualifier const to
8696 2014-01-07 Yao Qi <yao@codesourcery.com>
8698 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8700 2014-01-07 Yao Qi <yao@codesourcery.com>
8702 * gnu-nat.c (make_inf) Update declaration.
8703 (make_inf): Make it static.
8704 (inf_set_traced): Likewise.
8705 (inf_port_to_thread, inf_task_died_status): Likewise.
8707 2014-01-07 Yao Qi <yao@codesourcery.com>
8709 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8711 2014-01-07 Yao Qi <yao@codesourcery.com>
8713 * gnu-nat.c (_initialize_gnu_nat): Declare.
8715 2014-01-07 Yao Qi <yao@codesourcery.com>
8717 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8719 (struct gdbarch_info) <byte_order>: Change type to
8721 <byte_order_for_code>: Likewise.
8722 * gdbarch.c, gdbarch.h: Regenerated.
8724 2014-01-06 Sasha Smundak <asmundak@google.com>
8726 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8728 2014-01-06 Tom Tromey <tromey@redhat.com>
8730 * doublest.c (convert_doublest_to_floatformat): Use const, not
8732 * somread.c (som_symtab_read): Likewise.
8734 2014-01-07 Hui Zhu <hui@codesourcery.com>
8736 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8737 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8738 (gdb_bfd_fopen): Ditto.
8739 (gdb_bfd_openr): Ditto.
8740 (gdb_bfd_openw): Ditto.
8741 (gdb_bfd_openr_iovec): Ditto.
8742 (gdb_bfd_fdopenr): Ditto.
8743 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8744 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8746 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8748 * symfile-mem.c (symbol_file_add_from_memory): Removed
8749 gdb_bfd_stash_filename.
8751 2014-01-03 Doug Evans <dje@google.com>
8753 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8756 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8758 Update year range in copyright notice of all files.
8760 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8762 * top.c (print_gdb_version): Set copyright year to 2014.
8764 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8766 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8768 For older changes see ChangeLog-2013.
8774 version-control: never