1 2014-06-04 Tom Tromey <tromey@redhat.com>
3 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4 value_from_contents_and_address_unresolved.
5 (ada_template_to_fixed_record_type_1): Likewise.
6 (ada_which_variant_applies): Likewise.
7 * value.h (value_from_contents_and_address_unresolved): Declare.
8 * value.c (value_from_contents_and_address_unresolved): New
10 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
11 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
12 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
14 2014-06-04 Tom Tromey <tromey@redhat.com>
16 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
18 2014-06-04 Tom Tromey <tromey@redhat.com>
20 * procfs.c (procfs_attach): Make "args" const.
21 * windows-nat.c (windows_attach): Make "args" const.
22 * nto-procfs.c (procfs_attach): Make "args" const.
23 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
24 * go32-nat.c (go32_attach): Make "args" const.
25 * gnu-nat.c (gnu_attach): Make "args" const.
26 * darwin-nat.c (darwin_attach): Make "args" const.
27 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
28 * linux-nat.c (linux_nat_attach): Make "args" const.
29 * remote.c (extended_remote_attach_1, extended_remote_attach):
31 * target.h (struct target_ops) <to_attach>: Make "args" const.
32 (find_default_attach): Likewise.
33 * utils.c (parse_pid_to_attach): Make "args" const.
34 * utils.h (parse_pid_to_attach): Update.
36 2014-06-04 Tom Tromey <tromey@redhat.com>
38 * target-delegates.c: Rebuild.
39 * target.c (default_thread_address_space): New function.
40 (target_thread_address_space): Simplify.
41 * target.h (struct target_ops) <to_thread_address_space>: Add
44 2014-06-04 Doug Evans <xdje42@gmail.com>
46 * guile/scm-type.c (type_smob): Remove duplicate typedef.
48 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
50 * record-btrace.c: Include event-loop.h and inf-loop.h.
51 (record_btrace_resume_exec_dir)
52 (record_btrace_async_inferior_event_handler)
53 (record_btrace_handle_async_inferior_event): New.
54 (record_btrace_open): Create async event handler.
55 (record_btrace_close): Delete async event handler.
56 (record_btrace_resume): Set record_btrace_resume_exec_dir,
57 Mark async event handler.
58 (record_btrace_execution_direction): New.
59 (init_record_btrace_ops): Initialize to_execution_direction.
61 2014-06-03 Doug Evans <xdje42@gmail.com>
63 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
64 (gdbscm_make_parameter): Ditto.
66 2014-06-03 Doug Evans <dje@google.com>
68 * exec.c (exec_close_1): Call clear_section_table instead of
70 (clear_section_table): New function.
71 (resize_section_table): Make static. Rename arg num_added to
73 * exec.h (clear_section_table): Declare.
74 (resize_section_table): Delete.
75 * progspace.c (release_program_space): Call clear_section_table
76 instead of resize_section_table.
78 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
80 * NEWS (Python Scripting): Add entry about the new xmethods
83 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
85 * python/py-xmethods.c: New file.
86 * python/py-objfile.c (objfile_object): New field 'xmethods'.
87 (objfpy_dealloc): XDECREF on the new xmethods field.
88 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
90 (objfpy_get_xmethods): New function.
91 (objfile_getset): New entry 'xmethods'.
92 * python/py-progspace.c (pspace_object): New field 'xmethods'.
93 (pspy_dealloc): XDECREF on the new xmethods field.
94 (pspy_new, pspace_to_pspace_object): Initialize xmethods
96 (pspy_get_xmethods): New function.
97 (pspace_getset): New entry 'xmethods'.
98 * python/python-internal.h: Add declarations for new functions.
99 * python/python.c (_initialize_python): Invoke
100 gdbpy_initialize_xmethods.
101 * python/lib/gdb/__init__.py (xmethods): New
103 * python/lib/gdb/xmethod.py: New file.
104 * python/lib/gdb/command/xmethods.py: New file.
106 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
108 * eval.c (evaluate_subexp_standard): Call the xmethod if the
109 best match method returned by find_overload_match is an xmethod.
110 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
111 the best matching operator returned by find_overload_match is an
113 * valops.c: #include "extension.h".
114 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
115 Return void. The list of matching source methods is returned in
116 "fn_list" and a vector of matching debug method workers is
117 returned in "xm_worker_vec". Update all callers.
118 (value_find_oload_method_list): Likewise.
119 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
120 non-NULL, then the index of the best matching method in this
121 vector is returned. Update all callers.
122 (find_overload_match): Include xmethods while performing overload
125 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
127 * defs.h (enum lval_type): New enumerator "lval_xcallable".
128 * extension-priv.h (struct extension_language_ops): Add the
130 * extension.c (new_xmethod_worker, clone_xmethod_worker,
131 get_matching_xmethod_workers, get_xmethod_argtypes,
132 invoke_xmethod, free_xmethod_worker,
133 free_xmethod_worker_vec): New functions.
134 * extension.h: #include "common/vec.h".
135 New function declarations.
136 (struct xmethod_worker): New struct.
137 (VEC (xmethod_worker_ptr)): New vector type.
138 (xmethod_worker_ptr): New typedef.
139 (xmethod_worker_vec): Likewise.
140 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
142 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
143 (struct builtin_type): New field "xmethod".
144 * valarith.c (value_ptradd): Assert that the value argument is not
146 * valops.c (value_must_coerce_to_target): Return 0 for
147 lval_xcallable values.
148 * value.c (struct value): New field XM_WORKER in the field
150 (value_address, value_raw_address): Return 0 for lval_xcallable
152 (set_value_address): Assert that the value is not an
154 (value_free): Free the associated xmethod worker when freeing
155 lval_xcallable values.
156 (set_value_component_location): Assert that the WHOLE value is not
158 (value_of_xmethod, call_xmethod): New functions.
159 * value.h: Declare "struct xmethod_worker".
160 Declare new functions value_of_xmethod, call_xmethod.
162 2014-06-03 Joel Brobecker <brobecker@adacore.com>
163 Pedro Alves <palves@redhat.com>
166 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
167 New function, extracted from software_breakpoint_inserted_here_p.
168 (software_breakpoint_inserted_here_p): Replace factored out code
169 by call to find_non_raw_software_breakpoint_inserted_here.
170 (bp_target_info_copy_insertion_state): New function.
171 (bkpt_insert_location): Handle the case of a single-step
172 breakpoint already inserted at the same address.
173 (bkpt_remove_location): Handle the case of a single-step
174 breakpoint still inserted at the same address.
175 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
176 breakpoint already inserted at the same address.
177 (deprecated_remove_raw_breakpoint): Handle the case of a
178 non-raw breakpoint still inserted at the same address.
179 (find_single_step_breakpoint): New function, extracted from
180 single_step_breakpoint_inserted_here_p.
181 (find_single_step_breakpoint): New function,
182 factored out from single_step_breakpoint_inserted_here_p.
183 (single_step_breakpoint_inserted_here_p): Reimplement.
185 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
187 Pushed by Joel Brobecker <brobecker@adacore.com>
188 * source.c (show_substitute_path_command): Fix display of matching
191 2014-06-03 Gary Benson <gbenson@redhat.com>
193 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
195 2014-06-02 Doug Evans <xdje42@gmail.com>
197 Add parameter support for Guile.
198 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
199 (SUBDIR_GUILE_SRCS): Add scm-param.c.
200 (scm-param.o): New rule.
201 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
202 (gdbscm_misc_error): Declare.
203 (gdbscm_canonicalize_command_name): Declare.
204 (gdbscm_scm_to_host_string): Declare.
205 (gdbscm_scm_from_host_string): Declare.
206 (gdbscm_initialize_parameters): Declare.
207 * guile/guile.c (initialize_gdb_module): Call
208 gdbscm_initialize_parameters.
209 * guile/lib/gdb.scm: Export parameter symbols.
210 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
211 cmdscm_canonicalize_name and made public. All callers updated.
212 * guile/scm-exception.c (gdbscm_misc_error): New function.
213 * guile/scm-param.c: New file.
214 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
215 (gdbscm_scm_to_host_string): New function.
216 (gdbscm_scm_from_host_string): New function.
217 * scm-utils.c (gdbscm_gc_dup_argv): New function.
219 2014-06-02 Doug Evans <xdje42@gmail.com>
221 Add command support for Guile.
222 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
223 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
224 (scm-cmd.o): New rule.
225 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
226 (gdbscm_user_error_p): Declare.
227 (gdbscm_parse_command_name): Declare.
228 (gdbscm_valid_command_class_p): Declare.
229 (gdbscm_initialize_commands): Declare.
230 * guile/guile.c (initialize_gdb_module): Call
231 gdbscm_initialize_commands.
232 * guile/lib/gdb.scm: Export command symbols.
233 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
234 (throw-user-error): New function.
235 * guile/scm-cmd.c: New file.
236 * guile/scm-exception.c (user_error_symbol): New static global.
237 (gdbscm_user_error_p): New function.
238 (gdbscm_initialize_exceptions): Set user_error_symbol.
239 * scm-utils.c (gdbscm_gc_xstrdup): New function.
241 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
243 * top.c (command_loop): Handle comments here...
244 (command_line_input): ... not here.
246 2014-06-02 Doug Evans <xdje42@gmail.com>
248 Add progspace support for Guile.
249 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
250 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
251 (scm-progspace.o): New rule.
252 * guile/guile-internal.h (pspace_smob): New typedef.
253 (psscm_pspace_smob_pretty_printers): Declare.
254 (psscm_pspace_smob_from_pspace): Declare.
255 (psscm_scm_from_pspace): Declare.
256 * guile/guile.c (initialize_gdb_module): Call
257 gdbscm_initialize_pspaces.
258 * guile/lib/gdb.scm: Export progspace symbols.
259 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
261 (append-pretty-printer!): Ditto.
262 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
264 * guile/scm-progspace.c: New file.
266 2014-06-03 Alan Modra <amodra@gmail.com>
268 * ppc64-tdep.c (ppc64_standard_linkage8): New.
269 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
271 2014-06-02 Doug Evans <dje@google.com>
273 Add support for skeletonless type units.
274 * dwarf2read.c (struct dwarf2_per_objfile): New member
275 n_allocated_type_units.
276 (struct dwarf2_per_objfile) <tu_stats>: New member
277 nr_all_type_units_reallocs.
278 (create_signatured_type_table_from_index): Initialize
279 n_allocated_type_units
280 (create_all_type_units): Ditto.
281 (add_type_unit): Move up in file. New arg slot.
282 All callers updated. Increase space for all_type_units more
284 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
285 (lookup_dwo_signatured_type): Handle skeletonless TUs.
286 (lookup_dwp_signatured_type): Ditto.
287 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
289 (build_type_psymtabs_1): Leave type_unit_groups as
290 NULL if no TUs present.
291 (print_tu_stats): New function.
292 (process_skeletonless_type_unit): New function.
293 (process_dwo_file_for_skeletonless_type_units): New
295 (process_skeletonless_type_units): New function.
296 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
297 Call print tu_stats if debugging enabled.
299 2014-06-02 Pedro Alves <palves@redhat.com>
301 * breakpoint.c (build_target_command_list): Don't build a command
302 list if we have any duplicate location that isn't a dprintf.
304 2014-06-02 Pedro Alves <palves@redhat.com>
306 * breakpoint.c (dprintf_breakpoint_hit): New function.
307 (initialize_breakpoint_ops): Install it as dprintf's
308 breakpoint_hit method.
310 2014-06-02 Joel Brobecker <brobecker@adacore.com>
312 * source.c (substitute_path_rule_matches): Simplify using
313 filename_ncmp instead of FILENAME_CMP.
315 2014-06-02 Joel Brobecker <brobecker@adacore.com>
317 * source.c (substitute_path_rule_matches): Remove trailing spaces.
319 2014-06-01 Ludovic Courtès <ludo@gnu.org>
321 * configure.ac: When Guile is available, check for the
322 availability of 'scm_new_smob'.
323 * configure, config.h.in: Regenerate.
324 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
327 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
329 * frame.c (struct frame_info): Add stop_string field.
330 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
331 (get_prev_frame_always): Old content moved into
332 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
333 TRY_CATCH, handle MEMORY_ERROR exceptions.
334 (frame_stop_reason_string): New function definition.
335 * frame.h (unwind_stop_reason_to_string): Extend comment to
336 mention frame_stop_reason_string.
337 (frame_stop_reason_string): New function declaration.
338 * stack.c (frame_info): Switch to frame_stop_reason_string.
339 (backtrace_command_1): Switch to frame_stop_reason_string.
340 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
341 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
342 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
344 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
346 * frame.c (frame_stop_reason_string): Rename to ...
347 (unwind_stop_reason_to_string): this.
348 * frame.h (frame_stop_reason_string): Rename to ...
349 (unwind_stop_reason_to_string): this.
350 * stack.c (frame_info): Update call to frame_stop_reason_string.
351 (backtrace_command_1): Likewise.
352 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
353 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
355 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
357 * frame.c (remove_prev_frame): New function.
358 (get_prev_frame_if_no_cycle): Create / discard cleanup using
361 2014-05-29 Pedro Alves <palves@redhat.com>
363 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
364 and make it const. When a single-step decays to a continue,
365 clear 'step', not 'hw_step'. Pass whether the caller wanted
366 to step to user_visible_resume_ptid, not what we ask the
369 2014-05-29 Pedro Alves <palves@redhat.com>
371 * infrun.c (process_event_stop_test, handle_step_into_function)
372 (handle_step_into_function_backward): Adjust.
373 Don't set the even thread's stop_step and call stop_waiting before
374 calling end_stepping_range. Instead do that ...
375 (end_stepping_range): ... here. Take an ecs pointer parameter.
377 2014-05-29 Pedro Alves <palves@redhat.com>
379 * infrun.c (stop_stepping): Rename to ...
380 (stop_waiting): ... this.
381 (proceed): Update comment.
382 (process_event_stop_test, handle_inferior_event)
383 (handle_signal_stop, handle_step_into_function)
384 (handle_step_into_function_backward): Update.
386 2014-05-29 Pedro Alves <palves@redhat.com>
388 * infcall.c (run_inferior_call): Don't check whether the current
389 thread is running after the proceed call.
391 2014-05-29 Pedro Alves <palves@redhat.com>
392 Tom Tromey <tromey@redhat.com>
394 * NEWS: Mention "maint set target-async", "set mi-async", and that
395 background execution commands are now always available.
396 * target.h (target_async_permitted): Update comment.
397 * target.c (target_async_permitted, target_async_permitted_1):
399 (set_target_async_command): Rename to ...
400 (maint_set_target_async_command): ... this.
401 (show_target_async_command): Rename to ...
402 (maint_show_target_async_command): ... this.
403 (_initialize_target): Adjust.
404 * infcmd.c (prepare_execution_command): Make extern.
405 * inferior.h (prepare_execution_command): Declare.
406 * infrun.c (set_observer_mode): Leave target async alone.
407 * mi/mi-interp.c (mi_interpreter_init): Install
408 mi_on_sync_execution_done as sync_execution_done observer.
409 (mi_on_sync_execution_done): New function.
410 (mi_execute_command_input_handler): Don't print the prompt if we
411 just started a synchronous command with an async target.
412 (mi_on_resume): Check sync_execution before printing prompt.
413 * mi/mi-main.h (mi_async_p): Declare.
414 * mi/mi-main.c: Include gdbcmd.h.
415 (mi_async_p): New function.
416 (mi_async, mi_async_1): New globals.
417 (set_mi_async_command, show_mi_async_command, mi_async): New
419 (exec_continue): Call prepare_execution_command.
420 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
421 (mi_execute_async_cli_command): Use mi_async_p.
422 (_initialize_mi_main): Install "set mi-async". Make
423 "target-async" a deprecated alias.
425 2014-05-29 Pedro Alves <palves@redhat.com>
427 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
428 (_initialize_cli_interp): Adjust.
429 * event-loop.c: Include "observer.h".
430 (start_event_loop): Notify 'command_error' observers instead of
431 calling display_gdb_prompt. Remove FIXME comment.
432 * event-top.c (display_gdb_prompt): Remove call into the
434 * inf-loop.c: Include "observer.h".
435 (inferior_event_handler): Notify 'command_error' observers instead
436 of calling display_gdb_prompt.
437 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
438 observers instead of calling display_gdb_prompt.
439 * interps.c (interp_set): Don't call display_gdb_prompt.
440 (current_interp_display_prompt_p): Delete.
441 * interps.h (interp_prompt_p): Delete declaration.
442 (interp_prompt_p_ftype): Delete.
443 (struct interp_procs) <prompt_proc_p>: Delete field.
444 (current_interp_display_prompt_p): Delete declaration.
445 * mi-interp.c (mi_interpreter_prompt_p): Delete.
446 (_initialize_mi_interp): Adjust.
447 * tui-interp.c (tui_init): Install 'sync_execution_done' and
448 'command_error' observers.
449 (tui_on_sync_execution_done, tui_on_command_error): New
451 (tui_display_prompt_p): Delete.
452 (_initialize_tui_interp): Adjust.
454 2014-05-29 Pedro Alves <palves@redhat.com>
457 * cli/cli-interp.c: Include infrun.h and observer.h.
458 (cli_uiout, cli_interp): New globals.
459 (cli_on_signal_received, cli_on_end_stepping_range)
460 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
462 (cli_interpreter_init): Install them as 'end_stepping_range',
463 'signal_received' 'signal_exited', 'exited' and 'no_history'
465 (_initialize_cli_interp): Remove cli_interp local.
466 * infrun.c (handle_inferior_event): Call the several stop reason
467 observers instead of printing the stop reason directly.
468 (end_stepping_range): New function.
469 (print_end_stepping_range_reason, print_signal_exited_reason)
470 (print_exited_reason, print_signal_received_reason)
471 (print_no_history_reason): Make static, and add an uiout
472 parameter. Print to that instead of to CURRENT_UIOUT.
473 * infrun.h (print_end_stepping_range_reason)
474 (print_signal_exited_reason, print_exited_reason)
475 (print_signal_received_reason print_no_history_reason): New
477 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
479 <cli_uiout>: New field.
480 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
481 uiout for CLI output. Install 'signal_received',
482 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
484 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
485 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
486 (mi_on_no_history): New functions.
487 (ui_out_free_cleanup): Delete function.
488 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
489 instead use the one already stored in the MI interpreter data.
491 * tui/tui-interp.c: Include infrun.h and observer.h.
492 (tui_interp): New global.
493 (tui_on_signal_received, tui_on_end_stepping_range)
494 (tui_on_signal_exited, tui_on_exited)
495 (tui_on_no_history): New functions.
496 (tui_init): Install them as 'end_stepping_range',
497 'signal_received' 'signal_exited', 'exited' and 'no_history'
499 (_initialize_tui_interp): Delete tui_interp local.
501 2014-05-29 Pedro Alves <palves@redhat.com>
504 * linux-nat.c (linux_nat_resume_callback): Rename the second
505 parameter to 'except'. Skip LP if it points to EXCEPT.
506 (linux_nat_resume): Don't mark the event lwp as not stopped
507 before resuming sibling lwps. Instead ask
508 linux_nat_resume_callback to skip the event lwp. Mark it as not
509 stopped after actually resuming it.
510 (linux_handle_syscall_trap): Mark the lwp as not stopped after
512 (wait_lwp): Mark the lwp as stopped here.
513 (stop_wait_callback): Mark the lwp as not stopped right after
514 resuming it. Don't mark lwps as stopped here.
515 (linux_nat_filter_event): Mark the lwp as stopped earlier.
516 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
518 2014-05-29 Pedro Alves <palves@redhat.com>
521 * infrun.c (resume): Determine how much to resume depending on
522 whether the caller wanted a step, not whether we can hardware step
523 the target. Mark all threads that we intend to run as running,
524 unless we're calling an inferior function.
525 (normal_stop): If the thread is running an infcall, don't finish
527 * target.c (target_resume): Don't mark threads as running here.
529 2014-05-28 Joel Brobecker <brobecker@adacore.com>
531 * serial.c (_initialize_serial): Remove support for
532 the "set remotebaud" and "show remotebaud" commands.
533 * NEWS: Add entry documenting the removal of that command.
535 2014-05-28 Yao Qi <yao@codesourcery.com>
537 * charset.c: Fix typo in comments.
539 2014-05-27 Gary Benson <gbenson@redhat.com>
541 * utils.c (internal_vproblem): Prompt for a bug report.
543 2014-05-26 Andy Wingo <wingo@igalia.com>
545 * guile/scm-arch.c (arscm_mark_arch_smob):
546 * guile/scm-block.c (bkscm_mark_block_smob)
547 (bkscm_mark_block_syms_progress_smob):
548 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
549 * guile/scm-exception.c (exscm_mark_exception_smob):
550 * guile/scm-frame.c (frscm_mark_frame_smob):
551 * guile/scm-iterator.c (itscm_mark_iterator_smob):
552 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
553 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
554 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
555 (ppscm_mark_pretty_printer_worker_smob):
556 * guile/scm-symbol.c (syscm_mark_symbol_smob):
557 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
558 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
559 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
561 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
564 2014-05-26 Andy Wingo <wingo@igalia.com>
565 Doug Evans <xdje42@gmail.com>
567 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
568 empty_base_class. All uses updated.
569 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
570 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
572 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
573 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
574 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
575 (gdbscm_gsmob_has_property_p, add_property_name)
576 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
577 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
578 (gdb-object-has-property?, gdb-object-properties): Remove.
579 (gdb-object-kind): Renamed from gsmob-kind.
581 2014-05-26 Andy Wingo <wingo@igalia.com>
583 * configure.ac (try_guile_versions): Allow building with guile 2.2.
584 * configure: Regenerate.
586 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
588 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
590 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
592 * record-btrace.c (record_btrace_allow_memory_access): Remove.
593 (replay_memory_access_read_only, replay_memory_access_read_write)
594 (replay_memory_access_types, replay_memory_access)
595 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
596 (cmd_set_record_btrace, cmd_show_record_btrace)
597 (cmd_show_replay_memory_access): New.
598 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
599 (record_btrace_remove_breakpoint): Replace
600 record_btrace_allow_memory_access with replay_memory_access.
601 (_initialize_record_btrace): Add commands.
604 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
606 * aarch64-linux-nat.c (asm/ptrace.h): Include.
608 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
610 * MAINTAINERS (Write After Approval): Move self back from
613 2014-05-22 Pedro Alves <palves@redhat.com>
615 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
616 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
617 (disable_randomization, enum exec_direction_kind)
618 (execution_direction, stop_registers, start_remote)
619 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
620 (wait_for_inferior, normal_stop, get_last_target_status)
621 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
622 (insert_step_resume_breakpoint_at_sal)
623 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
624 (set_step_info, print_stop_event, signal_stop_state)
625 (signal_print_state, signal_pass_state, signal_stop_update)
626 (signal_print_update, signal_pass_update)
627 (update_signals_program_target, clear_exit_convenience_vars)
628 (displaced_step_dump_bytes, update_observer_mode)
629 (signal_catch_update, gdb_signal_from_command): Move
631 * infrun.h: ... to this new file.
632 * amd64-tdep.c: Include infrun.h.
633 * annotate.c: Include infrun.h.
634 * arch-utils.c: Include infrun.h.
635 * arm-linux-tdep.c: Include infrun.h.
636 * arm-tdep.c: Include infrun.h.
637 * break-catch-sig.c: Include infrun.h.
638 * breakpoint.c: Include infrun.h.
639 * common/agent.c: Include infrun.h instead of inferior.h.
640 * corelow.c: Include infrun.h.
641 * event-top.c: Include infrun.h.
642 * go32-nat.c: Include infrun.h.
643 * i386-tdep.c: Include infrun.h.
644 * inf-loop.c: Include infrun.h.
645 * infcall.c: Include infrun.h.
646 * infcmd.c: Include infrun.h.
647 * infrun.c: Include infrun.h.
648 * linux-fork.c: Include infrun.h.
649 * linux-nat.c: Include infrun.h.
650 * linux-thread-db.c: Include infrun.h.
651 * monitor.c: Include infrun.h.
652 * nto-tdep.c: Include infrun.h.
653 * procfs.c: Include infrun.h.
654 * record-btrace.c: Include infrun.h.
655 * record-full.c: Include infrun.h.
656 * remote-m32r-sdi.c: Include infrun.h.
657 * remote-mips.c: Include infrun.h.
658 * remote-notif.c: Include infrun.h.
659 * remote-sim.c: Include infrun.h.
660 * remote.c: Include infrun.h.
661 * reverse.c: Include infrun.h.
662 * rs6000-tdep.c: Include infrun.h.
663 * s390-linux-tdep.c: Include infrun.h.
664 * solib-irix.c: Include infrun.h.
665 * solib-osf.c: Include infrun.h.
666 * solib-svr4.c: Include infrun.h.
667 * target.c: Include infrun.h.
668 * top.c: Include infrun.h.
669 * windows-nat.c: Include infrun.h.
670 * mi/mi-interp.c: Include infrun.h.
671 * mi/mi-main.c: Include infrun.h.
672 * python/py-threadevent.c: Include infrun.h.
674 2014-05-22 Pedro Alves <palves@redhat.com>
676 * infrun.c (handle_inferior_event): Store the exit code for
677 --return-child-result here, instead of ...
678 (print_exited_reason): ... here.
680 2014-05-21 Pedro Alves <palves@redhat.com>
683 * gdbthread.h (struct thread_control_state): New field
685 * infrun.c (follow_fork): Copy the new thread control field to the
687 (clear_proceed_status_thread): Clear the new thread control field.
688 (proceed): Set the new thread control field.
689 * interps.h (command_interp): Declare.
690 * interps.c (command_interpreter): New global.
691 (command_interp): New function.
692 (interp_exec): Set `command_interpreter' while here.
693 * cli-out.c (cli_uiout_dtor): New function.
694 (cli_ui_out_impl): Install it.
695 * mi/mi-interp.c: Include cli-out.h.
696 (mi_cmd_interpreter_exec): Add comment.
697 (restore_current_uiout_cleanup): New function.
698 (ui_out_free_cleanup): New function.
699 (mi_on_normal_stop): If finishing an execution command started by
700 a CLI command, or any kind of breakpoint-like event triggered,
701 print the stop event to the output (CLI) stream.
702 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
704 2014-05-21 Pedro Alves <palves@redhat.com>
706 * cli/cli-cmds.c (list_command): Handle the first "list" after the
707 current source line having changed.
708 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
709 * infrun.c (normal_stop): Adjust call to
710 set_current_sal_from_frame.
711 * source.c (clear_lines_listed_range): New function.
712 (set_current_source_symtab_and_line, identify_source_line): Clear
713 the lines listed range.
714 (line_info): Handle the first "info line" after the current source
716 * stack.c (print_stack_frame): Remove center handling.
717 (set_current_sal_from_frame): Remove 'center' parameter. Don't
720 2014-05-21 Pedro Alves <palves@redhat.com>
722 * inf-child.c (inf_child_mourn_inferior): New function.
723 * inf-child.h (inf_child_mourn_inferior): New declaration.
724 * darwin-nat.c (darwin_mourn_inferior): Use
725 inf_child_mourn_inferior.
726 * gnu-nat.c (gnu_mourn_inferior): Likewise.
727 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
728 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
729 * nto-procfs.c (procfs_mourn_inferior): Likewise.
730 * windows-nat.c (windows_mourn_inferior): Likewise.
732 2014-05-21 Doug Evans <xdje42@gmail.com>
734 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
736 2014-05-21 Doug Evans <xdje42@gmail.com>
738 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
739 (gdbscm_out_of_range_error): Ditto.
740 (gdbscm_memory_error): Ditto.
741 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
742 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
743 (gdbscm_out_of_range_error): Update.
744 (gdbscm_memory_error): Update.
745 (gdbscm_scm_to_target_string_unsafe): Delete.
747 2014-05-21 Pedro Alves <palves@redhat.com>
749 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
751 (inf_child_open_target): New function.
752 (inf_child_open): Use inf_child_open_target to push the target
753 instead of erroring out.
754 (inf_child_disconnect, inf_child_close)
755 (inf_child_maybe_unpush_target): New functions.
756 (inf_child_target): Install inf_child_disconnect and
757 inf_child_close. Store a pointer to the returned object.
758 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
760 * target.c (auto_connect_native_target): New global.
761 (show_default_run_target): New function.
762 (find_default_run_target): Return NULL if automatically connecting
763 to the native target is disabled.
764 (_initialize_target): Install set/show auto-connect-native-target.
765 * NEWS: Mention "set auto-connect-native-target", and "target
767 * linux-nat.c (super_close): New global.
768 (linux_nat_close): Call super_close.
769 (linux_nat_add_target): Store a pointer to the base class's
771 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
772 inf_child_maybe_unpush.
773 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
775 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
776 the inferior. Use inf_child_maybe_unpush_target.
777 (inf_ttrace_attach): Don't push the target if it is already
779 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
780 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
781 after mourning the inferior. Use inf_child_maybe_unpush_target.
782 (darwin_attach_pid): Don't push the target if it is already
784 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
785 mourning the inferior. Use inf_child_maybe_unpush_target.
786 (gnu_detach): Use inf_child_maybe_unpush_target.
787 * go32-nat.c (go32_create_inferior): Don't push the target if it
789 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
790 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
791 (procfs_open): Rename to ...
792 (procfs_open_1): ... this. Add target_ops parameter. Adjust
793 comments. Can target_preopen before changing node. Call
794 inf_child_open_target to push the target explicitly.
795 (procfs_attach): Don't push the target if it is already pushed.
796 (procfs_detach): Use inf_child_maybe_unpush_target.
797 (procfs_create_inferior): Don't push the target if it is already
799 (nto_native_ops): New global.
800 (procfs_open): Reimplement.
801 (procfs_native_open): New function.
802 (init_procfs_targets): Install procfs_native_open as to_open of
803 "target native". Store a pointer to the "native" target in
805 * procfs.c (procfs_attach): Don't push the target if it is already
807 (procfs_detach): Use inf_child_maybe_unpush_target.
808 (procfs_mourn_inferior): Only unpush the target after mourning the
809 inferior. Use inf_child_maybe_unpush_target.
810 (procfs_init_inferior): Don't push the target if it is already
812 * windows-nat.c (do_initial_windows_stuff): Don't push the target
813 if it is already pushed.
815 2014-05-21 Pedro Alves <palves@redhat.com>
817 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
818 and "procfs" targets are now called "native" instead.
820 2014-05-21 Pedro Alves <palves@redhat.com>
822 * go32-nat.c (go32_open): Delete.
823 (go32_target): Don't override the to_open method.
825 2014-05-21 Pedro Alves <palves@redhat.com>
827 * nto-procfs.c (procfs_can_run): New function.
828 (nto_procfs_ops): New global.
829 (init_procfs_targets): New, based on procfs_target. Install
830 "target native" in addition to "target procfs".
831 (_initialize_procfs): Call init_procfs_targets instead of adding
834 2014-05-21 Pedro Alves <palves@redhat.com>
836 * windows-nat.c (windows_target): Don't override to_shortname,
837 to_longname or to_doc.
839 2014-05-21 Pedro Alves <palves@redhat.com>
841 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
844 2014-05-21 Pedro Alves <palves@redhat.com>
846 * darwin-nat.c (_initialize_darwin_inferior): Don't override
847 to_shortname, to_longname or to_doc.
849 2014-05-21 Pedro Alves <palves@redhat.com>
851 * go32-nat.c (go32_target): Don't override to_shortname,
852 to_longname or to_doc.
854 2014-05-21 Pedro Alves <palves@redhat.com>
856 * inf-child.c (inf_child_open): Remove mention of "child".
857 (inf_child_target): Rename target to "native" instead of "child".
859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
861 * Makefile.in (SFILES): Delete "regset.c".
862 (COMMON_OBS): Delete "regset.o".
864 * regset.h (regset_alloc): Delete prototype.
866 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
868 * sparc-linux-tdep.c (sparc32_linux_gregset)
869 (sparc32_linux_fpregset): New static regset structures.
870 (sparc32_linux_init_abi): Drop dynamic regset allocations.
871 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
873 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
874 (sparc64_linux_fpregset): New static regset structures.
875 (sparc64_linux_init_abi): Drop dynamic regset allocations.
876 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
877 New static regset structures.
878 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
879 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
880 New static regset structures.
881 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
882 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
883 New static regset structures.
884 (sparc64obsd_init_abi): Drop dynamic regset allocations.
885 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
886 New static regset structures.
887 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
891 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
892 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
893 register maps ("regmaps") from "*regset" to "*regmap". Do this
894 for all regmap types and variables.
895 * sparc-linux-tdep.c (sparc32_linux_step_trap)
896 (sparc32_linux_supply_core_gregset)
897 (sparc32_linux_collect_core_gregset)
898 (sparc32_linux_supply_core_fpregset)
899 (sparc32_linux_collect_core_fpregset): Likewise.
900 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
901 (sparc_gregmap, sparc_fpregmap): ... these.
902 (sparc_supply_gregset, sparc_collect_gregset)
903 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
904 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
905 (_initialize_sparc_nat): Rename regmaps.
906 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
907 (sparc_gregmap, sparc_fpregmap): ... these.
908 (sparc_supply_gregset, sparc_collect_gregset)
909 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
910 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
912 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
913 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
915 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
917 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
918 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
919 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
921 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
922 (sparc32_bsd_fpregset): Rename to...
923 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
924 (sparc32_bsd_fpregmap): ... these.
925 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
926 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
927 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
928 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
929 (struct sparc_gregmap, struct sparc_fpregmap)
930 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
931 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
932 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
933 (sparc32_supply_regset, sparc32_collect_gregset)
934 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
936 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
937 (sparc64_linux_ptrace_gregmap): ... this.
938 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
939 (_initialize_sparc64_linux_nat): Rename regmaps.
940 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
941 (sparc64_linux_core_gregmap): ... this.
942 (sparc64_linux_supply_core_gregset)
943 (sparc64_linux_collect_core_gregset)
944 (sparc64_linux_supply_core_fpregset)
945 (sparc64_linux_collect_core_fpregset): Rename regmaps.
946 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
947 (sparc64_sol2_fpregset): Rename to...
948 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
949 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
950 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
952 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
953 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
954 (sparc64_bsd_fpregset): Rename to...
955 (struct sparc_gregmap, sparc64_sol2_gregmap)
956 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
957 (sparc64_bsd_fpregmap): ... these.
958 (sparc64_supply_gregset, sparc64_collect_gregset)
959 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
961 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
962 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
963 (sparc64fbsd_gregmap): ... this.
964 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
965 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
967 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
968 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
969 (sparc64nbsd_collect_fpregset): Likewise.
970 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
971 (sparc64nbsd_gregmap): ... this.
972 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
974 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
975 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
976 (sparc64obsd_gregmap): ... this.
977 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
979 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
980 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
981 (sparc32nbsd_gregmap): ... this.
982 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
987 * score-tdep.c (score7_linux_gregset): New static regset
989 (score7_linux_regset_from_core_section): Remove dynamic regset
991 (score_gdbarch_init): Drop allocation of tdep structure.
992 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
996 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
998 (am33_regset_from_core_section): Remove dynamic regset
1001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1003 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1004 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1006 (mips_linux_regset_from_core_section): Remove dynamic regset
1008 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1009 'gregset64', 'fpregset', and 'fpregset64'.
1010 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1011 deleted tdep fields.
1013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1015 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1017 (amd64_regset_from_core_section): Remove dynamic regset
1019 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1021 (amd64obsd_regset_from_core_section): Remove dynamic regset
1023 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1025 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1026 x86-common regset supply function.
1027 * i386-tdep.c (i386_collect_gregset): Make static.
1028 (i386_gregset): New global regset structure.
1029 (i386_fpregset, i386_xstateregset): New static regset structures.
1030 (i386_regset_from_core_section): Remove dynamic regset
1032 (i386_gdbarch_init): Remove initialization of tdep fields
1033 'gregset', 'fpregset', and 'xstateregset'.
1034 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1035 'fpregset', and 'xstateregset'.
1036 (i386_collect_gregset): Remove prototype.
1037 (i386_gregset): New declaration.
1038 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1040 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1045 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1046 (arm_linux_vfpregset): New static regset structures.
1047 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1049 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1050 and 'vfpregset' fields.
1052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1054 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1055 (aarch64_linux_fpregset): New static regset structures.
1056 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1057 of regset structures.
1058 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1063 * regset.h (struct regset): Remove gdbarch field.
1064 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1065 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1066 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1068 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1069 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1070 (ppc32_linux_vsxregset): Likewise.
1071 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1072 via the regcache instead of the regset.
1073 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1074 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1075 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1076 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1082 Constify structures.
1083 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1084 (alphanbsd_aout_gregset): Likewise.
1085 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1086 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1088 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1089 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1091 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1092 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1093 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1094 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1095 * m88k-tdep.c (m88k_gregset): Likewise.
1096 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1097 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1098 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1099 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1100 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1101 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1102 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1103 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1104 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1106 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1107 * sh-tdep.h (sh_corefile_gregset): Likewise.
1108 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1109 * vax-tdep.c (vax_gregset): Likewise.
1111 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1113 Fix TLS access for -static -pthread.
1114 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1115 (try_thread_db_load_1): Initialize it.
1116 (thread_db_get_thread_local_address): Call it if LM is zero.
1117 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1118 * target.h (struct target_ops) (to_get_thread_local_address): Add
1119 load_module_addr comment.
1121 2014-05-21 Pedro Alves <palves@redhat.com>
1123 * dcache.c (dcache_read_memory_partial): If reading the cache line
1124 fails, fallback to reading just the memory the caller wanted.
1126 2014-05-20 Doug Evans <dje@google.com>
1128 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1129 instead of get_current_arch.
1131 2014-05-20 Pedro Alves <palves@redhat.com>
1133 * NEWS: Mention that compare-sections now works with all targets.
1135 * remote.c (PACKET_qCRC): New enum value.
1136 (remote_verify_memory): Don't send qCRC if the target has no
1137 execution. Use packet_support/packet_ok. If the target doesn't
1138 support the qCRC packet, fallback to a deep memory copy.
1139 (compare_sections_command): Say "target image" instead of "remote
1141 (_initialize_remote): Add PACKET_qCRC to the list of config
1142 packets that have no associated command. Extend comment.
1143 * target.c (simple_verify_memory, default_verify_memory): New
1145 * target.h (struct target_ops) <to_verify_memory>: Default to
1146 default_verify_memory.
1147 (simple_verify_memory): New declaration.
1148 * target-delegates.c: Regenerate.
1150 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1152 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1154 2014-05-20 Hui Zhu <hui@codesourcery.com>
1155 Yao Qi <yao@codesourcery.com>
1158 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1159 and change address of sp and pc.
1161 2014-05-19 Tom Tromey <tromey@redhat.com>
1163 * gdbtypes.c (rank_function): Use XNEWVEC.
1164 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1166 2014-05-19 Doug Evans <dje@google.com>
1168 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1169 build_type_unit_groups and moved closer to only caller. Remove
1170 arguments. All references updated. Remove outdated .gdb_index
1172 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1173 build_type_psymtabs_1.
1175 2014-05-19 Doug Evans <dje@google.com>
1177 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1178 n_type_unit_groups, all_type_unit_groups. All uses removed.
1179 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1180 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1181 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1182 (add_type_unit_group_to_table): Delete.
1184 2014-05-19 Doug Evans <dje@google.com>
1186 * eval.c (evaluate_subexp_standard): Add some comments.
1188 2014-05-17 Doug Evans <xdje42@gmail.com>
1190 * progspace.c (remove_program_space): Delete, unused.
1191 * progspace.h (remove_program_space): Ditto.
1193 2014-05-17 Doug Evans <xdje42@gmail.com>
1195 * inferior.c (prune_inferiors): Fix comment.
1196 (remove_inferior_command): Call prune_program_spaces.
1198 2014-05-16 Doug Evans <dje@google.com>
1200 New command line option -D.
1202 * main.c (set_gdb_data_directory): New function.
1203 (captured_main): Recognize -D. Flag error for --data-directory "".
1204 Call set_gdb_data_directory.
1205 (print_gdb_help): Print --data-directory, -D.
1206 * main.h (set_gdb_data_directory): Declare.
1207 * top.c (staged_gdb_datadir): New static global.
1208 (set_gdb_datadir): Call set_gdb_data_directory
1209 (show_gdb_datadir): New function.
1210 (init_main): Update init of data-directory parameter.
1212 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1214 Import the "dirfd" gnulib module.
1215 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1216 * gnulib/aclocal.m4: Update.
1217 * gnulib/config.in: Update.
1218 * gnulib/configure: Update.
1219 * gnulib/import/Makefile.am: Update.
1220 * gnulib/import/Makefile.in: Update.
1221 * gnulib/import/dirfd.c: New.
1222 * gnulib/import/m4/dirfd.m4: New.
1223 * gnulib/import/m4/gnulib-cache.m4: Update.
1224 * gnulib/import/m4/gnulib-comp.m4: Update.
1226 2014-05-16 Pierre Muller <muller@sourceware.org>
1227 Yao Qi <yao@codesourcery.com>
1229 * valprint.c (print_wchar): Move the code on checking whether
1230 W is a printable wide char to the default branch of switch
1231 statement below. Call wchar_printable instead of gdb_iswprint.
1233 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1235 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1236 ldr.w and ldrd instructions.
1238 2014-05-15 Doug Evans <dje@google.com>
1240 * dwarf2read.c (read_structure_type): Delete outdated comments.
1242 2014-05-14 Tom Tromey <tromey@redhat.com>
1244 * macrocmd.c (print_macro_definition): Reindent.
1246 2014-05-13 Doug Evans <xdje42@gmail.com>
1248 * python/py-cmd.c (cmdpy_completer): Add comment.
1249 (completers): Make const.
1251 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1253 * infrun.c (resume): Remove should_resume (unused). Move up
1254 declaration of resume_ptid.
1256 2014-05-13 Tom Tromey <tromey@redhat.com>
1258 * language.h (unop_type_check): Remove.
1259 (binop_type_check): Don't declare.
1261 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1263 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1264 call to regcache_raw_collect.
1266 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1268 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1269 mi_console->quote as the quoting character.
1271 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1273 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1275 2014-04-29 Tom Tromey <tromey@redhat.com>
1277 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1278 "show debug varobj".
1280 2014-05-07 Kyle McMartin <kyle@redhat.com>
1282 Pushed by Joel Brobecker <brobecker@adacore.com>.
1283 * aarch64-tdep.c (aarch64_software_single_step): New function.
1284 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1285 with aarch64_software_single_step.
1287 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1291 2014-05-05 Keith Seitz <keiths@redhat.com>
1293 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1294 variable or history value is successfully parsed.
1296 2014-05-05 Yao Qi <yao@codesourcery.com>
1297 Pedro Alves <palves@redhat.com>
1299 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1300 address of blocks that intersects the requested range. Trim
1301 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1303 * ctf.c (ctf_xfer_partial): Likewise.
1305 2014-05-05 Yao Qi <yao@codesourcery.com>
1307 * printcmd.c (display_command): Remove the check to
1308 target_has_execution.
1310 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1312 * ppcobsd-nat.c: Include "obsd-nat.h".
1313 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1315 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1317 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1319 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1320 and 16-bit signed and unsigned arguments. Update comment.
1321 (stap_parse_probe_arguments): Extend code to handle such
1322 arguments. Use warning instead of complaint to notify about
1323 unrecognized bitness.
1325 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1327 PR breakpoints/16889
1328 * stap-probe.c (stap_parse_probe_arguments): Simplify
1329 check for non-prefixed probes (i.e., probes whose
1330 arguments do not start with "N@"). Always set the
1331 argument type to a sane value.
1333 2014-05-01 David Taylor <dtaylor@emc.com>
1335 * remote.c (compare_sections_command): Add -r option to compare
1336 all loadable read-only sections.
1338 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1340 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1341 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1343 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1344 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1345 Remove unused CORE_ADDR argument. Update all callers.
1347 2014-04-29 Pedro Alves <palves@redhat.com>
1349 * remote.c (struct packet_config) <detect>: Extend comment.
1350 (add_packet_config_cmd): Don't set the config's detect or support
1352 (init_all_packet_configs): Also initialize the config's 'detect'
1354 (reset_all_packet_configs_support): New function.
1355 (remote_open_1): Call reset_all_packet_configs_support instead of
1356 init_all_packet_configs.
1357 (_initialize_remote): Initialize all packet configs. Assert that
1358 all packets have an associated command, except a few known
1361 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1363 * dwarf2read.c (read_subrange_type): Handle dynamic
1364 DW_AT_lower_bound attributes.
1366 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1368 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1369 dynamic bounds before computing its upper bound.
1370 (ada_discrete_type_low_bound): Same as above with the lower bound.
1372 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1374 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1375 range types. Adjust the array handling implementation to
1376 take advantage of this change.
1377 (resolve_dynamic_range): New function, mostly extracted from
1378 resolve_dynamic_bounds.
1379 (resolve_dynamic_array): New function, mostly extracted from
1380 resolve_dynamic_bounds.
1381 (resolve_dynamic_bounds): Delete.
1382 (resolve_dynamic_type): Reimplement. Add handling of
1383 TYPE_CODE_RANGE types.
1385 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1387 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1388 handling of parallel ___XA types.
1390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1392 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1393 unnecessary second call to static_unwrap_type.
1395 2014-04-27 Hui Zhu <hui@codesourcery.com>
1397 * stack.c (print_frame_info): Call do_gdb_disassembly with
1398 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1400 2014-04-26 Doug Evans <xdje42@gmail.com>
1402 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1404 2014-04-25 Pedro Alves <palves@redhat.com>
1407 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1408 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1409 and newline from built string.
1410 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1411 (linux_ptrace_attach_fail_reason): ... this.
1412 * linux-nat.c (linux_nat_attach): Adjust to use
1413 linux_ptrace_attach_fail_reason.
1415 2014-04-25 Pedro Alves <palves@redhat.com>
1417 * remote.c (struct remote_state): Remove multi_process_aware,
1418 non_stop_aware, cond_tracepoints, cond_breakpoints,
1419 breakpoint_commands, fast_tracepoints, static_tracepoints,
1420 install_in_trace, disconnected_tracing,
1421 enable_disable_tracepoints, string_tracing, and
1422 augmented_libraries_svr4_read fields.
1423 (remote_multi_process_p): Move further below in the file.
1424 (struct packet_config): Add comments.
1425 (update_packet_config): Delete function.
1426 (show_packet_config_cmd): Use packet_config_support.
1427 (add_packet_config_cmd): Use NULL as set callback.
1428 (packet_ok): "set remote foo-packet"-style commands no longer
1429 change config->supported -- adjust.
1430 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1431 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1432 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1433 (PACKET_QNonStop, PACKET_multiprocess_feature)
1434 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1435 (PACKET_DisconnectedTracing_feature)
1436 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1437 (set_remote_protocol_packet_cmd): Delete function.
1438 (packet_config_support, packet_support): New functions.
1439 (set_remote_protocol_Z_packet_cmd): Don't call
1440 update_packet_config.
1441 (remote_query_attached, remote_pass_signals)
1442 (remote_program_signals, remote_threads_info)
1443 (remote_threads_extra_info, remote_start_remote): Use
1445 (remote_start_remote): Use packet_config_support and
1447 (init_all_packet_configs): Set all packets to unknown support,
1448 instead of calling update_packet_config.
1449 (remote_check_symbols): Use packet_support.
1450 (remote_supported_packet): Unconditionally set the packet config's
1452 (remote_multi_process_feature, remote_non_stop_feature)
1453 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1454 (remote_breakpoint_commands_feature)
1455 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1456 (remote_install_in_trace_feature)
1457 (remote_disconnected_tracing_feature)
1458 (remote_enable_disable_tracepoint_feature)
1459 (remote_string_tracing_feature)
1460 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1461 (remote_protocol_features): Adjust to use remote_supported_packet
1462 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1463 "ConditionalTracepoints", "ConditionalBreakpoints",
1464 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1465 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1466 "EnableDisableTracepoints", and "tracenz".
1467 (remote_query_supported): Use packet_support.
1468 (remote_open_1): Adjust.
1469 (extended_remote_attach_1): Use packet_support. Switch on the
1470 result of packet_ok instead of checking whether the packet ended
1472 (remote_vcont_resume): Use packet_support.
1473 (remote_resume, remote_stop_ns, fetch_register_using_p)
1474 (remote_prepare_to_store, store_register_using_P)
1475 (check_binary_download, remote_write_bytes): Use packet_support.
1476 (remote_vkill): Use packet_support. Switch on the result of
1477 packet_ok instead of checking whether the packet ended up
1479 (extended_remote_supports_disable_randomization): Use
1481 (extended_remote_run): Switch on the result of packet_ok instead
1482 of checking whether the packet ended up disabled.
1483 (remote_insert_breakpoint, remote_remove_breakpoint)
1484 (remote_insert_watchpoint, remote_remove_watchpoint)
1485 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1487 (remote_search_memory): Use packet_config_support.
1488 (remote_get_thread_local_address, remote_get_tib_address)
1489 (remote_hostio_send_command, remote_can_execute_reverse): Use
1491 (remote_supports_cond_tracepoints)
1492 (remote_supports_cond_breakpoints)
1493 (remote_supports_fast_tracepoints)
1494 (remote_supports_static_tracepoints)
1495 (remote_supports_install_in_trace)
1496 (remote_supports_enable_disable_tracepoint)
1497 (remote_supports_string_tracing)
1498 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1499 the packet config says the feature is enabled or disabled.
1500 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1501 (remote_get_trace_status): Use packet_support.
1502 (remote_set_disconnected_tracing): Adjust to check whether the
1503 feature is enabled with packet_support.
1504 (remote_set_trace_buffer_size, remote_use_agent)
1505 (remote_can_use_agent, remote_supports_btrace): Use
1507 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1508 Use packet_config_support.
1509 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1510 the packet config says the feature is enabled or disabled.
1511 (set_range_stepping): Use packet_support.
1513 2014-04-25 Tom Tromey <tromey@redhat.com>
1515 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1518 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1520 * NEWS: Mention support for C99 variable length arrays.
1522 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1524 * ada-lang.c (standard_exc): Expand introductory comment.
1526 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1527 Walfred Tedeschi <walfred.tedeschi@intel.com>
1529 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1531 (amd64_linux_read_description): Add code to handle AVX512 xstate
1532 mask and return respective tdesc.
1533 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1534 and features/i386/x32-avx512-linux.c.
1535 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1536 (amd64_linux_core_read_description): Add code to handle AVX512
1537 xstate mask and return respective tdesc.
1538 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1539 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1541 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1542 (tdesc_amd64_avx512_linux): New prototype.
1543 (tdesc_x32_avx512_linux): Likewise.
1544 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1545 features/i386/x32-avx512.c.
1546 (amd64_ymm_avx512_names): New register names for pseudo
1548 (amd64_ymmh_avx512_names): New register names for raw registers
1550 (amd64_k_names): New register names for K registers.
1551 (amd64_zmmh_names): New register names for ZMM raw registers.
1552 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1553 (amd64_xmm_avx512_names): New register names for XMM16-31
1555 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1557 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1558 if feature is present.
1559 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1560 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1561 (AMD64_NUM_REGS): Adjust to new number of registers.
1562 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1563 registers supplied via XSTATE by AVX512 registers.
1564 (i386_linux_read_description): Add case for AVX512.
1565 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1566 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1567 (i386_linux_core_read_description): Add case for AVX512.
1568 (i386_linux_init_abi): Install supported register note section
1570 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1572 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1573 registers to be number of zmm7h + 1.
1574 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1575 * i386-tdep.c: Include features/i386/i386-avx512.c.
1576 (i386_zmm_names): Add ZMM pseudo register names array.
1577 (i386_zmmh_names): Add ZMM raw register names array.
1578 (i386_k_names): Add K raw register names array.
1579 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1580 registers. AVX512 has 16 more ZMM registers than there are YMM
1582 (i386_zmmh_regnum_p): Add function to look up register number of
1584 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1585 (i386_k_regnum_p): Likewise for K raw registers.
1586 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1587 registers added by AVX512.
1588 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1589 registers added by AVX512.
1590 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1592 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1593 (i386_pseudo_register_name): Add ZMM pseudo registers.
1594 (i386_zmm_type): Construct and return vector registers type for ZMM
1596 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1597 ZMM0-31 pseudo registers and K registers.
1598 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1599 and YMM16-31 registers from register cache.
1600 (i386_pseudo_register_write): Add code to write K, ZMM and
1602 (i386_register_reggroup_p): Add code to include/exclude AVX512
1603 registers in/from respective register groups.
1604 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1605 registers if feature is present in xcr0.
1606 (i386_gdbarch_init): Add code to initialize AVX512 feature
1607 variables in tdep structure, wire in pseudo registers and call
1608 initialize_tdesc_i386_avx512.
1609 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1611 (i386_regnum): Add AVX512 registers.
1612 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1613 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1614 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1615 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1617 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1618 (i386_ymm_avx512_regnum_p): Likewise.
1619 (i386_k_regnum_p): Likewise.
1620 (i386_zmm_regnum_p): Likewise.
1621 (i386_zmmh_regnum_p): Likewise.
1622 * i387-tdep.c : Update year in copyright notice.
1623 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1625 (XSAVE_YMM_AVX512_ADDR): New macro.
1626 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1628 (XSAVE_XMM_AVX512_ADDR): New macro.
1629 (xsave_avx512_k_offset): New table for K register offsets in
1631 (XSAVE_AVX512_K_ADDR): New macro.
1632 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1634 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1635 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1637 (i387_collect_xsave): Add code to collect AVX512 registers from
1639 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1640 of XMM16-31 registers.
1641 (I387_NUM_K_REGS): New define for number of K registers.
1642 (I387_K0_REGNUM): New define for K0 register number.
1643 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1644 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1645 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1647 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1648 (I387_XMM16_REGNUM): New define for XMM16 register number.
1649 (I387_YMM0_REGNUM): New define for YMM0 register number.
1650 (I387_KEND_REGNUM): New define for last K register number.
1651 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1652 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1654 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1656 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1658 * features/Makefile: Add AVX512 related files.
1659 * features/i386/32bit-avx512.xml: New file.
1660 * features/i386/64bit-avx512.xml: Likewise.
1661 * features/i386/amd64-avx512-linux.c: Likewise.
1662 * features/i386/amd64-avx512-linux.xml: Likewise.
1663 * features/i386/amd64-avx512.c: Likewise.
1664 * features/i386/amd64-avx512.xml: Likewise.
1665 * features/i386/i386-avx512-linux.c: Likewise.
1666 * features/i386/i386-avx512-linux.xml: Likewise.
1667 * features/i386/i386-avx512.c: Likewise.
1668 * features/i386/i386-avx512.xml: Likewise.
1669 * features/i386/x32-avx512-linux.c: Likewise.
1670 * features/i386/x32-avx512-linux.xml: Likewise.
1671 * features/i386/x32-avx512.c: Likewise.
1672 * features/i386/x32-avx512.xml: Likewise.
1673 * regformats/i386/amd64-avx512-linux.dat: New file.
1674 * regformats/i386/amd64-avx512.dat: Likewise.
1675 * regformats/i386/i386-avx512-linux.dat: Likewise.
1676 * regformats/i386/i386-avx512.dat: Likewise.
1677 * regformats/i386/x32-avx512-linux.dat: Likewise.
1678 * regformats/i386/x32-avx512.dat: Likewise.
1679 * NEWS: Add note about new support for AVX512.
1682 2014-04-23 Pedro Alves <palves@redhat.com>
1684 * breakpoint.c (insert_bp_location): Tolerate errors if the
1685 breakpoint is set in a user-loaded objfile.
1686 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1687 location is marked shlib_disabled. If the breakpoint is set in a
1688 user-loaded objfile is a GDB-side memory breakpoint, validate it
1689 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1690 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1692 * mem-break.c (memory_validate_breakpoint): New function.
1693 * objfiles.c (userloaded_objfile_contains_address_p): New
1695 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1696 * target.h (memory_validate_breakpoint): New declaration.
1698 2014-04-23 Pedro Alves <palves@redhat.com>
1700 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1701 the breakpoint is set in a shared library, only suppress
1702 errors for software breakpoints, not hardware breakpoints.
1704 2014-04-22 Pedro Alves <palves@redhat.com>
1706 * infrun.c (schedlock_applies): New function, factored out from
1707 find_thread_needs_step_over.
1708 (find_thread_needs_step_over): Use it.
1709 (switch_back_to_stepped_thread): Always clear trap_expected if the
1710 step over is finished. Return early if scheduler locking applies.
1711 Look for the stepping thread and a potential step-over thread with
1713 (currently_stepping_or_nexting_callback): Delete.
1715 2014-04-22 Nick Clifton <nickc@redhat.com>
1717 * NEWS: Mention that ARM sim now supports tracing.
1719 2014-04-22 Yao Qi <yao@codesourcery.com>
1721 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1723 * tracefile.c (tracefile_fetch_registers): ... it. New
1725 * tracefile.h (tracefile_fetch_registers): Declare.
1726 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1727 tracefile_fetch_registers.
1729 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1732 * windows-nat.c (thread_rec): Don't display a warning when
1733 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1734 fails for any reason, set th->suspended to -1, so that we don't
1735 try to resume such a thread. Also, don't return NULL in these
1736 cases, to avoid completely ruin the session due to "PC register is
1737 not available" error.
1738 (do_windows_fetch_inferior_registers): Check errors in
1739 GetThreadContext call.
1740 (windows_continue): Accept an additional argument KILLED; if not
1741 zero, ignore errors in the SetThreadContext call, since the
1742 inferior was killed and is shutting down.
1743 (windows_resume, get_windows_debug_event)
1744 (windows_create_inferior, windows_mourn_inferior)
1745 (windows_kill_inferior): All callers of windows_continue changed
1746 to adjust to its new calling sequence.
1748 2014-04-19 Yao Qi <yao@codesourcery.com>
1750 * ctf.c (ctf_open): Call post_create_inferior.
1752 2014-04-19 Yao Qi <yao@codesourcery.com>
1754 * ctf.c (handle_id): New static variable.
1755 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1756 value. Get the declaration of event "register" and get length
1757 of field "contents".
1759 2014-04-19 Yao Qi <yao@codesourcery.com>
1761 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1763 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1765 * valops.c (oload_method_static): Remove unnecessary argument
1766 METHOD. Update all callers.
1768 2014-04-18 Pedro alves <palves@redhat.com>
1769 Tom Tromey <tromey@redhat.com>
1772 * frame.c (get_prev_frame_1): Rename to ...
1773 (get_prev_frame_always): ... this, and make extern. Adjust.
1774 (skip_artificial_frames): Use get_prev_frame_always.
1775 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1776 (get_frame_unwind_stop_reason): Adjust to rename.
1777 * frame.h (get_prev_frame_always): Declare.
1778 * inline-frame.c: Include frame.h.
1779 (inline_frame_this_id): Use get_prev_frame_always.
1781 2014-04-18 Tristan Gingold <gingold@adacore.com>
1783 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1784 code by using bfd_mach_o_get_base_address.
1786 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1788 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1789 (spu_ax_pseudo_register_collect): New function.
1790 (spu_ax_pseudo_register_push_stack): Likewise.
1791 (spu_dwarf_reg_to_regnum): Likewise.
1792 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1794 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1796 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1797 Replace FRAME argument with FRAME_ID.
1798 * gdbarch.c, gdbarch.h: Regenerate.
1799 * findvar.c (default_value_from_register): Add GDBARCH argument;
1800 replace FRAME by FRAME_ID. No longer call get_frame_id.
1801 (value_from_register): Update call to gdbarch_value_from_register.
1802 * value.h (default_value_from_register): Update prototype.
1803 * s390-linux-tdep.c (s390_value_from_register): Update interface
1804 and call to default_value_from_register.
1805 * spu-tdep.c (spu_value_from_register): Likewise.
1807 * findvar.c (address_from_register): Remove TYPE argument.
1808 Do not call value_from_register; use gdbarch_value_from_register
1809 with null_frame_id instead.
1810 * value.h (address_from_register): Update prototype.
1811 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1812 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1813 address_from_register interface change.
1815 2014-04-17 Yao Qi <yao@codesourcery.com>
1817 * gdbtypes.h: Update comments to link to types and macros'
1820 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1822 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1824 2014-04-16 Keith Seitz <keiths@redhat.com>
1827 * dwarf2read.c (skip_one_die): Check that all relative-offset
1828 sibling DIEs fall within range of the current reader's buffer.
1829 (read_partial_die): Likewise.
1831 2014-04-16 Keith Seitz <keiths@redhat.com>
1834 * cp-namespace.c (lookup_symbol_file): If the type name of
1835 `this' is NULL, return immediately.
1837 2014-04-14 Keith Seitz <keiths@redhat.com>
1840 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1841 from symbol_matches_domain in symtab.c. All local callers
1842 of symbol_matches_domain updated.
1843 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1844 search STRUCT_DOMAIN.
1845 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1846 independently. standard_lookup will do that automatically.
1847 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1848 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1849 (cp_lookup_symbol_in_namespace): Likewise.
1850 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1851 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1852 may return a STRUCT_DOMAIN match.
1853 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1854 * cp-support.c: Include language.h.
1855 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1857 * psymtab.c (match_partial_symbol): Compare the requested
1858 domain with the symbol's domain directly.
1859 (lookup_partial_symbol): Likewise.
1860 * symtab.c (lookup_symbol_in_language): Explain when/why
1861 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1863 appropriate languages.
1864 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1865 and moved to ada-lang.c
1866 (lookup_block_symbol): Explain that this function only returns
1867 symbol matching the requested DOMAIN.
1868 Compare the requested domain with the symbol's domain directly.
1869 (iterate_over_symbols): Compare the requested domain with the
1870 symbol's domain directly.
1871 * symtab.h (symbol_matches_domain): Remove.
1873 2014-04-14 Tom Tromey <tromey@redhat.com>
1876 * c-exp.y (type_aggregate_p): New function.
1877 (qualified_name, classify_inner_name): Use it.
1878 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1879 and TYPE_TARGET_TYPE of an enum type.
1880 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1882 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1883 handle TYPE_DECLARED_CLASS.
1884 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1886 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1887 * valops.c (enum_constant_from_type): New function.
1888 (value_aggregate_elt): Use it.
1889 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1892 2014-04-14 Tom Tromey <tromey@redhat.com>
1894 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1895 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1897 * value.h (value_aggregate_elt): Update.
1899 2014-04-14 Tom Tromey <tromey@redhat.com>
1901 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1905 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1906 (evaluate_subexp_standard): Pass noside argument.
1907 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1908 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1909 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1910 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1911 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1913 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1915 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1916 points to a constant blob.
1918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1920 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1921 property and store it as the high bound and flag the range accordingly.
1922 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1923 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1924 * gdbtypes.h (enum range_flags): New enum.
1925 (struct range_bounds): Add flags member.
1927 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1929 * c-typeprint.c (c_type_print_varspec_suffix): Added
1930 check for not yet resolved high bound. If unresolved, print
1931 "variable length" string to the console instead of random
1934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1936 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1938 (ada_template_to_fixed_record_type_1): Likewise.
1939 (ada_to_fixed_type_1): Likewise.
1940 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1941 (cp_print_value): Likewise.
1942 * d-valprint.c (dynamic_array_type): Likewise.
1943 * findvar.c (address_of_variable): Likewise.
1944 * jv-valprint.c (java_value_print): Likewise.
1945 * valops.c (value_ind): Likewise.
1946 * value.c (coerce_ref): Likewise.
1948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1950 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1951 value and retrieve the dynamic type size.
1953 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1955 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1956 passed to sizeof is dynamic evaluate the argument to compute the length.
1958 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1959 Joel Brobecker <brobecker@adacore.com>
1961 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1962 (dwarf2_evaluate_property): New function.
1963 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1964 * dwarf2read.c (attr_to_dynamic_prop): New function.
1965 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1967 * gdbtypes.c: Include dwarf2loc.h.
1968 (is_dynamic_type): New function.
1969 (resolve_dynamic_type): New function.
1970 (resolve_dynamic_bounds): New function.
1971 (get_type_length): New function.
1972 (check_typedef): Use get_type_length to compute type length.
1973 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1974 (TYPE_LOW_BOUND_KIND): New macro.
1975 (is_dynamic_type): New function prototype.
1976 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1977 to resolve dynamic properties of the type. Update comment.
1978 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1980 2014-04-14 Richard Henderson <rth@redhat.com>
1982 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1984 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1985 Doug Evans <xdje42@gmail.com>
1987 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1988 dereference TYPE_CODE_REF values.
1990 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1992 Revert the following changes due to regressions:
1994 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1995 (dwarf2_evaluate_property): New function.
1996 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1997 * dwarf2read.c (attr_to_dynamic_prop): New function.
1998 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2000 * gdbtypes.c: Include dwarf2loc.h.
2001 (is_dynamic_type): New function.
2002 (resolve_dynamic_type): New function.
2003 (resolve_dynamic_bounds): New function.
2004 (get_type_length): New function.
2005 (check_typedef): Use get_type_length to compute type length.
2006 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2007 (TYPE_LOW_BOUND_KIND): New macro.
2008 (is_dynamic_type): New function prototype.
2009 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2010 to resolve dynamic properties of the type. Update comment.
2011 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2013 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2014 passed to sizeof is dynamic evaluate the argument to compute the length.
2016 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2017 value and retrieve the dynamic type size.
2019 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2020 (ada_template_to_fixed_record_type_1): Likewise.
2021 (ada_to_fixed_type_1): Likewise.
2022 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2023 (cp_print_value): Likewise.
2024 * d-valprint.c (dynamic_array_type): Likewise.
2025 * eval.c (evaluate_subexp_with_coercion): Likewise.
2026 * findvar.c (address_of_variable): Likewise.
2027 * jv-valprint.c (java_value_print): Likewise.
2028 * valops.c (value_ind): Likewise.
2029 * value.c (coerce_ref): Likewise.
2031 * c-typeprint.c (c_type_print_varspec_suffix): Added
2032 check for not yet resolved high bound. If unresolved, print
2033 "variable length" string to the console instead of random
2036 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2037 property and store it as the high bound and flag the range accordingly.
2038 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2039 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2040 * gdbtypes.h (enum range_flags): New enum.
2041 (struct range_bounds): Add flags member.
2043 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2044 points to a constant blob.
2046 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2047 (evaluate_subexp_standard): Pass noside argument.
2048 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2049 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2050 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2051 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2052 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2054 2014-04-11 Keith Seitz <keiths@redhat.com>
2057 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2058 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2063 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2064 (evaluate_subexp_standard): Pass noside argument.
2065 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2066 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2067 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2068 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2069 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2071 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2073 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2074 points to a constant blob.
2076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2078 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2079 property and store it as the high bound and flag the range accordingly.
2080 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2081 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2082 * gdbtypes.h (enum range_flags): New enum.
2083 (struct range_bounds): Add flags member.
2085 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2087 * c-typeprint.c (c_type_print_varspec_suffix): Added
2088 check for not yet resolved high bound. If unresolved, print
2089 "variable length" string to the console instead of random
2092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2094 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2095 (ada_template_to_fixed_record_type_1): Likewise.
2096 (ada_to_fixed_type_1): Likewise.
2097 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2098 (cp_print_value): Likewise.
2099 * d-valprint.c (dynamic_array_type): Likewise.
2100 * eval.c (evaluate_subexp_with_coercion): Likewise.
2101 * findvar.c (address_of_variable): Likewise.
2102 * jv-valprint.c (java_value_print): Likewise.
2103 * valops.c (value_ind): Likewise.
2104 * value.c (coerce_ref): Likewise.
2106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2108 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2109 value and retrieve the dynamic type size.
2111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2113 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2114 passed to sizeof is dynamic evaluate the argument to compute the length.
2116 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2119 (dwarf2_evaluate_property): New function.
2120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2121 * dwarf2read.c (attr_to_dynamic_prop): New function.
2122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2124 * gdbtypes.c: Include dwarf2loc.h.
2125 (is_dynamic_type): New function.
2126 (resolve_dynamic_type): New function.
2127 (resolve_dynamic_bounds): New function.
2128 (get_type_length): New function.
2129 (check_typedef): Use get_type_length to compute type length.
2130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2131 (TYPE_LOW_BOUND_KIND): New macro.
2132 (is_dynamic_type): New function prototype.
2133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2134 to resolve dynamic properties of the type. Update comment.
2135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2139 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2140 declaring high/low bounds and change uses accordingly. Call
2141 create_range_type instead of create_static_range_type.
2142 * gdbtypes.c (create_range_type): New function.
2143 (create_range_type): Convert bounds into struct bound_prop and pass
2144 them to create_range_type.
2145 * gdbtypes.h (struct bound_prop): New struct.
2146 (create_range_type): New function prototype.
2147 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2148 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2149 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2151 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2155 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2156 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2157 * ada-lang.c: All uses of create_range_type updated.
2158 * coffread.c: All uses of create_range_type updated.
2159 * dwarf2read.c: All uses of create_range_type updated.
2160 * f-exp.y: All uses of create_range_type updated.
2161 * m2-valprint.c: All uses of create_range_type updated.
2162 * mdebugread.c: All uses of create_range_type updated.
2163 * stabsread.c: All uses of create_range_type updated.
2164 * valops.c: All uses of create_range_type updated.
2165 * valprint.c: All uses of create_range_type updated.
2167 2014-04-10 Pedro Alves <palves@redhat.com>
2169 * breakpoint.c (single_step_breakpoints)
2170 (single_step_gdbarch): Move up in the file.
2171 (one_breakpoint_xfer_memory): New function, factored out from ...
2172 (breakpoint_xfer_memory): ... here. Also process single-step
2175 2014-04-09 Tristan Gingold <gingold@adacore.com>
2177 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2179 (darwin_decode_exception_message): Free port only after use.
2181 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2183 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2184 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2185 when setting the size of call_length.
2187 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2189 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2190 dereference TYPE_CODE_REF values.
2192 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2194 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2195 end of warning message.
2197 2014-04-03 Doug Evans <dje@google.com>
2199 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2200 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2202 2014-04-02 Alan Modra <amodra@gmail.com>
2204 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2205 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2206 (struct symbol_file_add_from_memory_args): Add size field.
2207 (find_vdso_size): New function.
2208 (add_vsyscall_page): Attempt to find vdso size.
2210 2014-04-01 Doug Evans <dje@google.com>
2212 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2214 2014-04-01 Tristan Gingold <gingold@adacore.com>
2216 * darwin-nat.c (darwin_encode_reply): Add prototype.
2217 (darwin_decode_exception_message): Reply to unknown inferiors.
2218 (darwin_decode_message): Handle message by id. Ignore message
2219 to unknown inferior.
2220 (darwin_wait): Discard unknown messages, add debug trace.
2222 2014-03-31 Doug Evans <dje@google.com>
2224 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2227 2014-03-31 Doug Evans <dje@google.com>
2229 New option "set print symbol-loading".
2231 * solib.c (solib_read_symbols): Only print symbol loading messages
2233 (solib_add): If symbol loading is in "brief" mode, notify user
2234 symbols are being loaded.
2235 (reload_shared_libraries_1): Ditto.
2236 * symfile.c (print_symbol_loading_off): New static global.
2237 (print_symbol_loading_brief): New static global.
2238 (print_symbol_loading_full): New static global.
2239 (print_symbol_loading_enums): New static global.
2240 (print_symbol_loading): New static global.
2241 (print_symbol_loading_p): New function.
2242 (symbol_file_add_with_addrs): Only print symbol loading messages
2244 (_initialize_symfile): Register "print symbol-loading" set/show
2246 * symfile.h (print_symbol_loading_p): Declare.
2248 2014-03-30 Doug Evans <xdje42@gmail.com>
2250 * infrun.c (set_last_target_status): New function.
2251 (handle_inferior_event): Call it.
2253 2014-03-30 Doug Evans <xdje42@gmail.com>
2255 * inferior.h (enum stop_kind): Improve comment.
2257 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2259 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2260 a reference, strip the reference layer before calling
2261 the lang_ops value_has_mutated callback.
2263 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2265 Remove some globals from our parser.
2266 * language.c (unk_lang_parser): Add "struct parser_state"
2268 * language.h (struct language_defn) <la_parser>: Likewise.
2269 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2270 (initialize_expout): Add "struct parser_state" argument.
2271 Rewrite function to use the parser state.
2272 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2273 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2274 write_exp_elt_longcst, write_exp_elt_dblcst,
2275 write_exp_elt_decfloatcst, write_exp_elt_type,
2276 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2277 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2278 write_dollar_variable): Likewise.
2279 (parse_exp_in_context_1): Use parser state.
2280 (insert_type_address_space): Add "struct parser_state" argument.
2282 (increase_expout_size): New function.
2283 * parser-defs.h: Forward declare "struct language_defn" and
2284 "struct parser_state".
2285 (expout, expout_size, expout_ptr): Remove extern declarations.
2286 (parse_gdbarch, parse_language): Rewrite macro declarations to
2287 accept the parser state.
2288 (struct parser_state): New struct.
2289 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2290 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2291 write_exp_elt_decfloatcst, write_exp_elt_type,
2292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2293 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2294 write_exp_msymbol, write_dollar_variable,
2295 mark_struct_expression, insert_type_address_space): Add "struct
2296 parser_state" argument.
2297 (increase_expout_size): New function.
2298 * utils.c (do_clear_parser_state): New function.
2299 (make_cleanup_clear_parser_state): Likewise.
2300 * utils.h (make_cleanup_clear_parser_state): New function
2302 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2303 Update calls to write_exp* in order to pass the parser state.
2304 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2305 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2307 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2308 * stap-probe.c (stap_parse_register_operand): Likewise.
2309 (stap_parse_single_operand): Likewise.
2310 (stap_parse_argument_1): Likewise.
2311 (stap_parse_argument): Use parser state.
2312 * stap-probe.h: Include "parser-defs.h".
2313 (struct stap_parse_info) <pstate>: New field.
2314 * c-exp.y (parse_type): Rewrite to use parser state.
2315 (yyparse): Redefine to c_parse_internal.
2316 (pstate): New global variable.
2317 (parse_number): Add "struct parser_state" argument.
2318 (write_destructor_name): Likewise.
2319 (type_exp): Update calls to write_exp* and similars in order to
2321 (exp1, exp, variable, qualified_name, space_identifier,
2322 typename, typebase): Likewise.
2323 (write_destructor_name, parse_number, lex_one_token,
2324 classify_name, classify_inner_name, c_parse): Add "struct
2325 parser_state" argument. Update function to use parser state.
2326 * c-lang.h: Forward declare "struct parser_state".
2327 (c_parse): Add "struct parser_state" argument.
2328 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2329 (yyparse): Redefine macro to ada_parse_internal.
2330 (pstate): New variable.
2331 (write_int, write_object_renaming, write_var_or_type,
2332 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2333 type_int, type_long, type_long_long, type_float, type_double,
2334 type_long_double, type_char, type_boolean, type_system_address):
2335 Add "struct parser_state" argument.
2336 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2337 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2338 var_or_type, aggregate, aggregate_component_list,
2339 positional_list, others, component_group,
2340 component_associations): Update calls to write_exp* and similar
2341 functions in order to use parser state.
2342 (ada_parse, write_var_from_sym, write_int,
2343 write_exp_op_with_string, write_object_renaming,
2344 find_primitive_type, write_selectors, write_ambiguous_var,
2345 write_var_or_type, write_name_assoc, type_int, type_long,
2346 type_long_long, type_float, type_double, type_long_double,
2347 type_char, type_boolean, type_system_address): Add "struct
2348 parser_state" argument. Adjust function to use parser state.
2349 * ada-lang.c (parse): Likewise.
2350 * ada-lang.h: Forward declare "struct parser_state".
2351 (ada_parse): Add "struct parser_state" argument.
2352 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2353 calls to both functions.
2354 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2356 (yyparse): Redefine macro to f_parse_internal.
2357 (pstate): New variable.
2358 (parse_number): Add "struct parser_state" argument.
2359 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2360 and similars in order to use parser state.
2361 (parse_number): Adjust code to use parser state.
2363 (f_parse): New function.
2364 * f-lang.h: Forward declare "struct parser_state".
2365 (f_parse): Add "struct parser_state" argument.
2366 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2368 (yyparse): Redefine macro for java_parse_internal.
2369 (pstate): New variable.
2370 (push_expression_name, push_expression_name, insert_exp): Add
2371 "struct parser_state" argument.
2372 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2373 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2374 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2375 PostIncrementExpression, PostDecrementExpression,
2376 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2377 UnaryExpressionNotPlusMinus, CastExpression,
2378 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2379 RelationalExpression, EqualityExpression, AndExpression,
2380 ExclusiveOrExpression, InclusiveOrExpression,
2381 ConditionalAndExpression, ConditionalOrExpression,
2382 ConditionalExpression, Assignment, LeftHandSide): Update
2383 calls to write_exp* and similars in order to use parser state.
2384 (parse_number): Ajust code to use parser state.
2386 (java_parse): New function.
2387 (push_variable): Add "struct parser_state" argument. Adjust
2388 code to user parser state.
2389 (push_fieldnames, push_qualified_expression_name,
2390 push_expression_name, insert_exp): Likewise.
2391 * jv-lang.h: Forward declare "struct parser_state".
2392 (java_parse): Add "struct parser_state" argument.
2393 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2395 (yyparse): Redefine macro to m2_parse_internal.
2396 (pstate): New variable.
2397 (type_exp, exp, fblock, variable, type): Update calls to
2398 write_exp* and similars to use parser state.
2400 (m2_parse): New function.
2401 * m2-lang.h: Forward declare "struct parser_state".
2402 (m2_parse): Add "struct parser_state" argument.
2403 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2404 * objc-lang.h: Forward declare "struct parser_state".
2405 (end_msglist): Add "struct parser_state" argument.
2406 * p-exp.y (parse_type): Rewrite macro to use parser state.
2407 (yyparse): Redefine macro to pascal_parse_internal.
2408 (pstate): New variable.
2409 (parse_number): Add "struct parser_state" argument.
2410 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2411 write_exp* and similars in order to use parser state.
2412 (parse_number, yylex): Adjust code to use parser state.
2413 (pascal_parse): New function.
2414 * p-lang.h: Forward declare "struct parser_state".
2415 (pascal_parse): Add "struct parser_state" argument.
2416 * go-exp.y (parse_type): Rewrite macro to use parser state.
2417 (yyparse): Redefine macro to go_parse_internal.
2418 (pstate): New variable.
2419 (parse_number): Add "struct parser_state" argument.
2420 (type_exp, exp1, exp, variable, type): Update calls to
2421 write_exp* and similars in order to use parser state.
2422 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2423 to use parser state.
2424 (go_parse): Likewise.
2425 * go-lang.h: Forward declare "struct parser_state".
2426 (go_parse): Add "struct parser_state" argument.
2428 2014-03-27 Doug Evans <dje@google.com>
2430 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2432 2014-03-27 Doug Evans <dje@google.com>
2434 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2435 Remove argument abbrev_section. All callers updated.
2437 2014-03-27 Doug Evans <dje@google.com>
2439 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2440 addr_base, ranges_base.
2442 2014-03-26 Keith Seitz <keiths@redhat.com>
2444 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2445 types, not VAR_DOMAIN.
2447 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2449 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2451 * features/nios2-linux.c: Regenerated.
2452 * features/nios2.c: Regenerated.
2454 2014-03-25 Pedro Alves <palves@redhat.com>
2456 * cli/cli-script.c (script_from_file): Force the interpreter to
2459 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2461 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2462 small stack allocation.
2464 2014-03-24 Tristan Gingold <gingold@adacore.com>
2466 * darwin-nat.c (exc_server): Remove unused prototype.
2467 (darwin_dump_message): Correctly display data on x86_64.
2468 (darwin_encode_reply): Fix style.
2469 Add comments and fix indentation.
2471 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2473 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2475 2014-03-22 Doug Evans <xdje42@gmail.com>
2477 * infcmd.c: Whitespace fixes.
2478 (interrupt_command): Merge two function comments into one.
2480 2014-03-22 Doug Evans <xdje42@gmail.com>
2482 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2485 2014-03-22 Yao Qi <yao@codesourcery.com>
2487 * remote.c (target_read_live_memory): Remove.
2488 (memory_xfer_live_readonly_partial): Rename it to
2489 remote_xfer_live_readonly_partial. Remove argument 'object'.
2490 All callers updated. Call remote_read_bytes_1
2491 instead of target_read_live_memory.
2492 * tracepoint.c (set_traceframe_number): Remove.
2493 (make_cleanup_restore_traceframe_number): Likewise .
2494 * tracepoint.h (set_traceframe_number): Remove declaration.
2495 (make_cleanup_restore_traceframe_number): Likewise.
2497 2014-03-22 Yao Qi <yao@codesourcery.com>
2499 * remote.c (remote_read_bytes): Move code on reading from the
2501 (remote_read_bytes_1): ... here. New function.
2503 2014-03-22 Yao Qi <yao@codesourcery.com>
2505 * ctf.c (ctf_xfer_partial): Check the return value of
2506 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2507 return TARGET_XFER_UNAVAILABLE.
2508 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2509 * target.c (target_read_live_memory): Move it to remote.c.
2510 (memory_xfer_live_readonly_partial): Likewise.
2511 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2512 * remote.c (target_read_live_memory): Moved from target.c.
2513 (memory_xfer_live_readonly_partial): Likewise.
2514 (remote_read_bytes): Factored out from
2515 memory_xfer_partial_1.
2517 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2519 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2522 2014-03-21 Pedro Alves <palves@redhat.com>
2524 * infrun.c (normal_stop): Extend comment.
2526 2014-03-21 Hui Zhu <hui@codesourcery.com>
2527 Pedro Alves <palves@redhat.com>
2529 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2531 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2532 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2533 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2535 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2537 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2538 `z' formatted output modifier.
2540 2014-03-20 Tom Tromey <tromey@redhat.com>
2541 Sergio Durigan Junior <sergiodj@redhat.com>
2543 * probe.c (parse_probes): Turn assert into an ordinary error.
2544 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2545 exceptions when parsing probes. Rearrange the code for clarity.
2547 2014-03-20 Tom Tromey <tromey@redhat.com>
2550 * top.c (execute_command): Only dispatch events if the command
2553 2014-03-20 Tom Tromey <tromey@redhat.com>
2556 * infcall.c: Include event-top.h.
2557 (run_inferior_call): Call async_disable_stdin if needed.
2559 2014-03-20 Pedro Alves <palves@redhat.com>
2561 * infrun.c (prepare_to_proceed): Delete.
2562 (thread_still_needs_step_over): New function.
2563 (find_thread_needs_step_over): New function.
2564 (proceed): If the current thread needs a step-over, set its
2565 steping_over_breakpoint flag. Adjust to use
2566 find_thread_needs_step_over instead of prepare_to_proceed.
2567 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2568 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2570 (switch_back_to_stepped_thread): Step over breakpoints of all
2571 threads not the stepping thread, before switching back to the
2574 2014-03-20 Pedro Alves <palves@redhat.com>
2576 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2578 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2579 * infrun.c (saved_singlestep_ptid)
2580 (stepping_past_singlestep_breakpoint): Delete.
2581 (resume): Remove stepping_past_singlestep_breakpoint handling.
2582 (proceed): Store the prev_pc of the stepping thread too.
2583 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2585 (enum infwait_states): Delete infwait_thread_hop_state.
2586 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2588 (handle_inferior_event): Adjust.
2589 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2590 handling and the thread-hop code. Before removing single-step
2591 breakpoints, check whether the thread hit a single-step breakpoint
2592 of another thread. If it did, the trap is not a random signal.
2593 (switch_back_to_stepped_thread): If the event thread hit a
2594 single-step breakpoint, unblock it before switching to the
2595 stepping thread. Handle the case of the stepped thread having
2597 (keep_going): Handle the case of the current thread moving past a
2598 single-step breakpoint.
2600 2014-03-20 Pedro Alves <palves@redhat.com>
2603 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2604 are being stepped over.
2605 (breakpoint_address_match): Make extern.
2606 * breakpoint.h (breakpoint_address_match): New declaration.
2607 * inferior.h (stepping_past_instruction_at): New declaration.
2608 * infrun.c (struct step_over_info): New type.
2609 (step_over_info): New global.
2610 (set_step_over_info, clear_step_over_info)
2611 (stepping_past_instruction_at): New functions.
2612 (handle_inferior_event): Clear the step-over info when
2613 trap_expected is cleared.
2614 (resume): Remove now stale comment.
2615 (clear_proceed_status): Clear step-over info.
2616 (proceed): Adjust step-over handling to set or clear the step-over
2617 info instead of removing all breakpoints.
2618 (handle_signal_stop): When setting up a thread-hop, don't remove
2620 (stop_stepping): Clear step-over info.
2621 (keep_going): Adjust step-over handling to set or clear step-over
2622 info and then always inserting breakpoints, instead of removing
2623 all breakpoints when stepping over one.
2625 2014-03-20 Pedro Alves <palves@redhat.com>
2627 * infrun.c (previous_inferior_ptid): Adjust comment.
2628 (deferred_step_ptid): Delete.
2629 (infrun_thread_ptid_changed, prepare_to_proceed)
2630 (init_wait_for_inferior): Adjust.
2631 (handle_signal_stop): Delete deferred_step_ptid handling.
2633 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2636 * defs.h (sync_quit_force_run): New declaration.
2637 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2638 * event-top.c (async_sigterm_handler): New declaration.
2639 (async_sigterm_token): New variable.
2640 (async_init_signals): Create also async_sigterm_token.
2641 (async_sigterm_handler): New function.
2642 (sync_quit_force_run): New variable.
2643 (handle_sigterm): Replace quit_force call by other calls.
2644 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2646 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2648 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2649 offset into SPE pseudo registers.
2651 2014-03-18 Pedro Alves <palves@redhat.com>
2654 * inferior.h (print_stop_event): Declare.
2655 * infrun.c (print_stop_event): New, factored out from ...
2656 (normal_stop): ... this.
2657 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2658 of bpstat_print/print_stack_frame.
2660 2014-03-17 Tom Tromey <tromey@redhat.com>
2662 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2664 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2666 * ada-lang.c (decode_constrained_packed_array): Perform a
2667 minimal coercion for reference with coerce_ref instead of
2670 2014-03-17 Tristan Gingold <gingold@adacore.com>
2672 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2673 (darwin_solib_create_inferior_hook): Emit a warning if version
2676 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2678 * python/py-value.c (get_field_flag): Cast flag_name argument to
2679 PyObject_GetAttrString to support Python 2.4.
2681 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2683 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2684 (Global Maintainers): Remove Jan Kratochvil.
2686 2014-03-14 Pedro Alves <palves@redhat.com>
2688 * inferior.h (terminal_ours_for_output): Rename to ...
2689 (child_terminal_ours_for_output): ... this.
2690 (terminal_save_ours): Rename to ...
2691 (child_terminal_save_ours): ... this.
2692 (terminal_ours): Rename to ...
2693 (child_terminal_ours): ... this.
2694 (terminal_inferior): Rename to ...
2695 (child_terminal_inferior): ... this.
2696 (terminal_init_inferior): Rename to ...
2697 (child_terminal_init_inferior): ... this.
2698 (terminal_init_inferior_with_pgrp): Rename to ...
2699 (child_terminal_init_inferior_with_pgrp): ... this.
2700 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2701 (child_terminal_init_with_pgrp): ... this.
2702 (terminal_save_ours): Rename to ...
2703 (child_terminal_save_ours): ... this.
2704 (terminal_init_inferior): Rename to ...
2705 (child_terminal_init): ... this. Adjust.
2706 (terminal_inferior): Rename to ...
2707 (child_terminal_inferior): ... this.
2708 (terminal_ours_for_output): Rename to ...
2709 (child_terminal_ours_for_output): ... this. Adjust.
2710 (terminal_ours): Rename to ...
2711 (child_terminal_ours): ... this.
2712 (terminal_ours_1): Rename to ...
2713 (child_terminal_ours_1): ... this. Adjust.
2714 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2715 * windows-nat.c (do_initial_windows_stuff): Adjust.
2716 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2717 (gnu_terminal_init): ... this. Adjust.
2718 (gnu_target): Adjust.
2719 * inf-child.c (inf_child_target): Adjust.
2721 2014-03-13 Doug Evans <xdje42@gmail.com>
2724 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2727 2014-03-13 Doug Evans <xdje42@gmail.com>
2729 * value.c (record_latest_value): Call release_value_or_incref
2730 instead of release_value.
2732 2014-03-13 Pedro Alves <palves@redhat.com>
2734 * procfs.c (procfs_target): Don't override to_shortname,
2735 to_longname or to_doc.
2737 2014-03-13 Pedro Alves <palves@redhat.com>
2739 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2740 Unix in user visible strings.
2742 2014-03-12 Stan Shebs <stan@codesourcery.com>
2744 * gdbtypes.h: Annotate comments for Doxygen, add a page
2745 block comment with some general info.
2747 2014-03-12 Pedro Alves <palves@redhat.com>
2749 * infcmd.c (prepare_execution_command): New function, factored out
2750 from several execution commands.
2751 (run_command_1, continue_command, step_1, jump_command)
2752 (signal_command, until_command, advance_command, finish_command)
2753 (attach_command): Use prepare_execution_command.
2755 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2757 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2760 (struct arm_linux_thread_points): Removed.
2761 (struct arm_linux_process_info): New.
2762 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2763 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2764 (arm_linux_find_breakpoints_by_tid): Removed.
2765 (struct arch_lwp_info): New.
2766 (arm_linux_find_process_pid): New functions.
2767 (arm_linux_add_process): New functions.
2768 (arm_linux_process_info_get): New functions.
2769 (arm_linux_forget_process): New function.
2770 (arm_linux_get_debug_reg_state): New function.
2771 (struct update_registers_data): New.
2772 (update_registers_callback): New function.
2773 (arm_linux_insert_hw_breakpoint1): Updated.
2774 (arm_linux_remove_hw_breakpoint1): Updated.
2775 (arm_linux_insert_hw_breakpoint): Updated.
2776 (arm_linux_remove_hw_breakpoint): Updated.
2777 (arm_linux_insert_watchpoint): Updated.
2778 (arm_linux_remove_watchpoint): Updated.
2779 (arm_linux_new_thread): Updated.
2780 (arm_linux_prepare_to_resume): New function.
2781 (arm_linux_new_fork): New function.
2782 (_initialize_arm_linux_nat): Updated.
2784 2014-03-12 Pedro Alves <palves@redhat.com>
2786 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2788 2014-03-12 Tom Tromey <tromey@redhat.com>
2790 * inf-child.c (return_zero): New function.
2791 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2792 * aix-thread.c (aix_thread_inferior_created): New function.
2793 (aix_thread_attach): Remove.
2794 (init_aix_thread_ops): Don't set to_attach.
2795 (_initialize_aix_thread): Register inferior_created observer.
2796 * corelow.c (init_core_ops): Don't set to_attach or
2798 * exec.c (init_exec_ops): Don't set to_attach or
2800 * infcmd.c (run_command_1): Use find_run_target. Make direct
2802 (attach_command): Use find_attach_target. Make direct target
2804 * record-btrace.c (init_record_btrace_ops): Don't set
2806 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2808 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2809 set to_create_inferior.
2810 * target.c (complete_target_initialization): Add assertion.
2811 (target_create_inferior): Remove.
2812 (find_default_attach, find_default_create_inferior): Remove.
2813 (find_attach_target, find_run_target): New functions.
2814 (find_default_is_async_p, find_default_can_async_p)
2815 (target_supports_non_stop, target_attach): Remove.
2816 (init_dummy_target): Don't set to_create_inferior or
2817 to_supports_non_stop.
2818 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2819 TARGET_DEFAULT_FUNC.
2820 <to_create_inferior>: Add comment.
2821 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2822 TARGET_DEFAULT_RETURN.
2823 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2824 (find_attach_target, find_run_target): Declare.
2825 (target_create_inferior): Remove.
2826 (target_has_execution_1): Update comment.
2827 (target_supports_non_stop): Remove.
2828 * target-delegates.c: Rebuild.
2830 2014-03-12 Pedro Alves <palves@redhat.com>
2832 * inf-child.h: Update comment to not mention Unix.
2834 2014-03-12 Pedro Alves <palves@redhat.com>
2836 * inf-child.c: Update top comment to not mention Unix. Add
2837 generic comment describing how this target is meant to be used.
2838 (inf_child_post_attach, inf_child_post_startup_inferior)
2839 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2842 2014-03-12 Pedro Alves <palves@redhat.com>
2844 * nto-procfs.c: Include inf-child.h.
2845 (procfs_ops): Delete global.
2846 (procfs_can_run): Delete method.
2847 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2848 target pointer instead of referencing procfs_ops.
2849 (procfs_prepare_to_store): Delete.
2850 (init_procfs_ops): Delete function.
2851 (procfs_target): New function, based on init_procfs_ops, but
2852 inherit inf_child_target.
2853 (_initialize_procfs): Use procfs_target.
2855 2014-03-12 Pedro Alves <palves@redhat.com>
2857 * windows-nat.c: Include inf-child.h.
2858 (windows_ops): Delete global.
2859 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2861 (init_windows_ops): Delete function.
2862 (windows_target): New function, based on init_windows_ops, but
2863 inherit inf_child_target.
2864 (_initialize_windows_nat): Use windows_target. Install x86
2865 specific target methods here.
2867 2014-03-10 Doug Evans <xdje42@gmail.com>
2869 * guile/guile.c (call_initialize_gdb_module): New function.
2870 (initialize_guile): Replace call to scm_init_guile with call to
2873 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2875 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2876 in call to TYPE_CODE macro.
2878 2014-03-10 Jerome Guitton <guitton@adacore.com>
2880 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2881 Resolve tagged types to full view.
2883 2014-03-10 Hui Zhu <hui@codesourcery.com>
2885 * target.h (target_insert_breakpoint): Remove "hardware" from its
2888 2014-03-07 Doug Evans <dje@google.com>
2890 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2892 2014-03-07 Doug Evans <dje@google.com>
2894 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2895 Remove unused local comp_dir_attr. Assert exactly one of
2896 stub_comp_unit_die, stub_comp_dir is non-NULL.
2898 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2900 * target.h (complete_target_initialization, add_target):
2903 2014-03-07 Pedro Alves <palves@redhat.com>
2905 * go32-nat.c: Include inf-child.h.
2906 (go32_ops): Delete global.
2907 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2909 (go32_create_inferior): Push the passed in target pointer instead
2910 of referencing go32_ops.
2911 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2912 (go32_target): New function, based on init_go32_ops, but inherit
2914 (_initialize_go32_nat): Use go32_target. Move parts of
2917 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2919 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2920 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2921 SYMBOL_VALUE_ADDRESS.
2922 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2924 2014-03-06 Yao Qi <yao@codesourcery.com>
2926 * breakpoint.c (get_tracepoint_by_number): Remove argument
2927 optional_p. All callers updated. Adjust comments. Update
2929 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2931 2014-03-06 Yao Qi <yao@codesourcery.com>
2933 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2934 early if get_number returns zero. Use 'p' instead of 'args'.
2936 2014-03-06 Yao Qi <yao@codesourcery.com>
2938 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2941 2014-03-06 Yao Qi <yao@codesourcery.com>
2943 PR breakpoints/16508
2944 * tracepoint.c (check_trace_running): New function.
2945 (trace_find_command): Move code to check_trace_running and
2946 call check_trace_running.
2947 (trace_find_pc_command): Likewise.
2948 (trace_find_tracepoint_command): Likewise.
2949 (trace_find_line_command): Likewise.
2950 (trace_find_range_command): Likewise.
2951 * tracepoint.h (check_trace_running): Likewise.
2952 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2954 2014-03-06 Yao Qi <yao@codesourcery.com>
2956 * target.h (struct target_ops) <to_traceframe_info>: Use
2957 TARGET_DEFAULT_NORETURN (tcomplain ()).
2958 * target-delegates.c: Regenerated.
2960 2014-03-05 Pedro Alves <palves@redhat.com>
2963 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2964 void. Update comment.
2965 (dcache_xfer_memory): Delete.
2966 (dcache_read_memory_partial): New, based on the read bits of
2968 (dcache_update): Add status parameter. Use ULONGEST for len, and
2969 adjust. Discard cache lines if the reason for the update was
2971 * dcache.h (dcache_xfer_memory): Delete declaration.
2972 (dcache_read_memory_partial): New declaration.
2973 (dcache_update): Update prototype.
2974 * target.c (raw_memory_xfer_partial): Update the dcache here.
2975 (memory_xfer_partial_1): Don't handle dcache writes here.
2977 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2979 * remote-sim.c (gdbsim_load): Add const to prog.
2981 2014-03-03 Tom Tromey <tromey@redhat.com>
2983 * elfread.c (probe_key): Change to bfd_data.
2984 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2985 now per-BFD, not per-objfile.
2986 * stap-probe.c (stap_probe_destroy): Update comment.
2987 (handle_stap_probe): Allocate on the per-BFD obstack.
2989 2014-03-03 Tom Tromey <tromey@redhat.com>
2991 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2992 * breakpoint.c (create_longjmp_master_breakpoint): Use
2994 (add_location_to_breakpoint, bkpt_probe_insert_location)
2995 (bkpt_probe_remove_location): Update.
2996 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2997 * elfread.c (elf_symfile_relocate_probe): Remove.
2998 (elf_probe_fns): Update.
2999 (insert_exception_resume_breakpoint): Change type of "probe"
3000 parameter to bound_probe.
3001 (check_exception_resume): Update.
3002 * objfiles.c (objfile_relocate1): Don't relocate probes.
3003 * probe.c (bound_probe_s): New typedef.
3004 (parse_probes): Use get_probe_address. Set sal's objfile.
3005 (find_probe_by_pc): Return a bound_probe.
3006 (collect_probes): Return a VEC(bound_probe_s).
3007 (compare_probes): Update.
3008 (gen_ui_out_table_header_info): Change type of "probes"
3010 (info_probes_for_ops): Update.
3011 (get_probe_address): New function.
3012 (probe_safe_evaluate_at_pc): Update.
3013 * probe.h (struct probe_ops) <get_probe_address>: New field.
3014 <set_semaphore, clear_semaphore>: Add objfile parameter.
3015 (struct probe) <objfile>: Remove field.
3017 <address>: Update comment.
3018 (struct bound_probe): New.
3019 (find_probe_by_pc): Return a bound_probe.
3020 (get_probe_address): Declare.
3021 * solib-svr4.c (struct probe_and_action) <address>: New field.
3022 (hash_probe_and_action, equal_probe_and_action): Update.
3023 (register_solib_event_probe): Add address parameter.
3024 (solib_event_probe_at): Update.
3025 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3027 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3028 (stap_get_probe_address): New function.
3029 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3030 (compile_probe_arg): Update.
3031 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3033 (handle_stap_probe): Don't relocate the probe.
3034 (stap_relocate): Remove.
3035 (stap_gen_info_probes_table_values): Update.
3036 (stap_probe_ops): Remove stap_relocate.
3037 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3038 (debug_sym_probe_fns): Update.
3039 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3040 * symtab.c (init_sal): Use memset.
3041 * symtab.h (struct symtab_and_line) <objfile>: New field.
3042 * tracepoint.c (start_tracing, stop_tracing): Update.
3044 2014-03-03 Tom Tromey <tromey@redhat.com>
3046 * probe.h (parse_probes, find_probe_by_pc)
3047 (find_probes_in_objfile): Fix comments.
3049 2014-03-02 Doug Evans <xdje42@gmail.com>
3051 * infrun.c (handle_signal_stop): Replace test for
3052 TARGET_WAITKIND_STOPPED with an assert.
3054 2014-03-02 Doug Evans <xdje42@gmail.com>
3056 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3058 2014-03-02 Doug Evans <xdje42@gmail.com>
3060 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3062 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3064 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3066 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3068 * i386obsd-nat.c: Include "obsd-nat.h".
3069 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3071 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3073 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3075 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3077 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3079 * mips64obsd-nat.c: Include "obsd-nath".
3080 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3082 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3084 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3086 * amd64obsd-nat.c: Include "obsd-nat,h.
3087 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3089 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3091 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3093 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3094 (find_overload_match): Update call to find_oload_champ.
3095 (find_oload_champ_namespace_loop): Likewise
3097 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3099 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3101 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3102 * config/sparc/obsd64.mh: New file.
3103 * sparc64obsd-nat.c: New file.
3105 * obsd-nat.h: New file.
3106 * obsd-nat.c: New file.
3107 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3108 (ALLDEPFILES): Add obsd-nat.c.
3110 2014-02-28 Tom Tromey <tromey@redhat.com>
3112 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3113 * cli-out.h (cli_ui_out_impl): Now const.
3114 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3115 * ui-out.c (struct ui_out) <impl>: Now const.
3116 (default_ui_out_impl): Now const.
3117 (ui_out_new): Make 'impl' parameter const.
3118 * ui-out.h (ui_out_new): Update.
3120 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3122 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3124 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3126 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3128 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 Additional PR 8882 fix.
3131 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3133 2014-02-27 Pedro Alves <palves@redhat.com>
3135 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3138 2014-02-27 Pedro Alves <palves@redhat.com>
3141 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3142 * nat/linux-waitpid.c: Include string.h.
3143 (status_to_str): Moved here and made extern.
3144 * nat/linux-waitpid.h (status_to_str): New declaration.
3146 2014-02-27 Hui Zhu <hui@codesourcery.com>
3149 * infrun.c (ptid_match): Move ...
3150 * common/ptid.c (ptid_match): ... here.
3151 * inferior.h (ptid_match): Move ...
3152 * common/ptid.h (ptid_match): ... here.
3154 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3156 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3157 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3160 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3162 * obsd-tdep.c (obsd_auxv_parse): New function.
3163 (obsd_init_abi): Set auxv_parse.
3165 * gdbarch.sh (auxv_parse): New.
3166 * gdbarch.h: Regenerated.
3167 * gdbarch.c: Regenerated.
3168 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3170 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3172 * guile/scm-value.c (gdbscm_history_append_x): New function.
3173 (value_functions): Add it.
3175 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3177 * dwarf2read.c (attr_value_as_address): New function.
3178 (dwarf2_find_base_address, read_call_site_scope): Use
3179 attr_value_as_address in place of DW_ADDR.
3180 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3181 the low and high addresses. Slight rework of the handling
3182 of the high pc being a constant form, and limit it to
3183 DWARF verson 4 or higher.
3184 (dwarf2_record_block_ranges): Likewise.
3185 (read_partial_die): Likewise.
3186 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3188 2014-02-26 Tom Tromey <tromey@redhat.com>
3190 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3192 2014-02-26 Tom Tromey <tromey@redhat.com>
3194 * elfread.c (elf_read_minimal_symbols): Return early if
3195 minimal symbols have already been read. Add "ei" parameter.
3196 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3197 * minsyms.c (prim_record_minimal_symbol_full): Update.
3198 * objfiles.h (struct objstats) <n_minsyms>: Move...
3199 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3200 * symmisc.c (print_objfile_statistics): Update.
3202 2014-02-26 Tom Tromey <tromey@redhat.com>
3204 * elfread.c (elf_read_minimal_symbols): New function, from
3206 (elf_symfile_read): Call it.
3208 2014-02-26 Tom Tromey <tromey@redhat.com>
3210 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3211 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3212 (lookup_minimal_symbol_solib_trampoline)
3213 (lookup_minimal_symbol_by_pc_section_1)
3214 (lookup_minimal_symbol_and_objfile): Update.
3215 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3216 Don't allocate a minimal symbol if minsyms have already been read.
3217 (build_minimal_symbol_hash_tables): Update.
3218 (install_minimal_symbols): Do nothing if minsyms already read.
3219 Use the per-BFD obstack.
3220 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3221 * objfiles.c (allocate_objfile): Call
3222 terminate_minimal_symbol_table later.
3223 (have_minimal_symbols): Update.
3224 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3225 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3226 Move from struct objfile.
3227 <minsyms_read>: New field.
3228 (struct objfile) <msymbols, minimal_symbol_count,
3229 msymbol_hash, msymbol_demangled_hash>: Move.
3230 (ALL_OBJFILE_MSYMBOLS): Update.
3231 * symfile.c (read_symbols): Set minsyms_read.
3232 (reread_symbols): Update.
3233 * symmisc.c (dump_objfile, dump_msymbols): Update.
3235 2014-02-26 Tom Tromey <tromey@redhat.com>
3237 * minsyms.c (msymbols_sort): Remove.
3238 * minsyms.h (msymbols_sort): Remove.
3239 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3241 * elfread.c (elf_symtab_read): Don't add section offsets.
3242 * xcoffread.c (record_minimal_symbol): Don't add section offset
3243 to minimal symbol address.
3244 * somread.c (text_offset, data_offset): Remove.
3245 (som_symtab_read): Don't add section offsets to minimal symbol
3247 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3248 Don't add section offsets to minimal symbols.
3249 * coffread.c (coff_symtab_read): Don't add section offsets
3250 to minimal symbol addresses.
3251 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3252 to minimal symbol addresses.
3253 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3254 section offset to minimal symbol addresses.
3255 * mdebugread.c (parse_partial_symbols): Don't add section
3256 offset to minimal symbol addresses.
3257 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3258 offset to minimal symbol addresses.
3260 2014-02-26 Tom Tromey <tromey@redhat.com>
3262 * ada-lang.c (ada_main_name): Update.
3263 (ada_add_standard_exceptions): Update.
3264 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3265 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3266 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3267 * auxv.c (ld_so_xfer_auxv): Update.
3268 * avr-tdep.c (avr_scan_prologue): Update.
3269 * ax-gdb.c (gen_var_ref): Update.
3270 * blockframe.c (get_pc_function_start)
3271 (find_pc_partial_function_gnu_ifunc): Update.
3272 * breakpoint.c (create_overlay_event_breakpoint)
3273 (create_longjmp_master_breakpoint)
3274 (create_std_terminate_master_breakpoint)
3275 (create_exception_master_breakpoint): Update.
3276 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3277 * c-valprint.c (c_val_print): Update.
3278 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3279 * common/agent.c (agent_look_up_symbols): Update.
3280 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3281 * dwarf2loc.c (call_site_to_target_addr): Update.
3282 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3283 * elfread.c (elf_gnu_ifunc_record_cache)
3284 (elf_gnu_ifunc_resolve_by_got): Update.
3285 * findvar.c (default_read_var_value): Update.
3286 * frame.c (inside_main_func): Update.
3287 * frv-tdep.c (frv_frame_this_id): Update.
3288 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3289 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3291 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3292 (hppa_hpux_find_dummy_bpaddr): Update.
3293 * hppa-tdep.c (hppa_symbol_address): Update.
3294 * infcmd.c (until_next_command): Update.
3295 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3297 * linespec.c (minsym_found, add_minsym): Update.
3298 * linux-nat.c (get_signo): Update.
3299 * linux-thread-db.c (inferior_has_bug): Update.
3300 * m32c-tdep.c (m32c_return_value)
3301 (m32c_m16c_address_to_pointer): Update.
3302 * m32r-tdep.c (m32r_frame_this_id): Update.
3303 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3304 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3305 * maint.c (maintenance_translate_address): Update.
3306 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3307 (frob_address): New function.
3308 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3309 frob_address. Rename parameter to "pc_in".
3310 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3312 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3315 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3316 * objc-lang.c (find_objc_msgsend): Update.
3317 * objfiles.c (objfile_relocate1): Update.
3318 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3319 * p-valprint.c (pascal_val_print): Update.
3320 * parse.c (write_exp_msymbol): Update.
3321 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3322 (ppc_elfv2_skip_entrypoint): Update.
3323 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3324 * printcmd.c (build_address_symbolic, msym_info)
3325 (address_info): Update.
3326 * proc-service.c (ps_pglobal_lookup): Update.
3327 * psymtab.c (find_pc_sect_psymtab_closer)
3328 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3329 Change msymbol parameter to bound_minimal_symbol.
3330 * ravenscar-thread.c (get_running_thread_id): Update.
3331 * remote.c (remote_check_symbols): Update.
3332 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3334 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3335 * solib-dsbt.c (lm_base): Update.
3336 * solib-frv.c (lm_base, main_got): Update.
3337 * solib-irix.c (locate_base): Update.
3338 * solib-som.c (som_solib_create_inferior_hook)
3339 (link_map_start): Update.
3340 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3341 * solib-svr4.c (elf_locate_base, enable_break): Update.
3342 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3343 (flush_ea_cache): Update.
3344 * stabsread.c (define_symbol, scan_file_globals): Update.
3345 * stack.c (find_frame_funname): Update.
3346 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3347 (debug_qf_find_pc_sect_symtab): Update.
3348 * symfile.c (simple_read_overlay_table)
3349 (simple_overlay_update): Update.
3350 * symfile.h (struct quick_symbol_functions)
3351 <find_pc_sect_symtab>: Change type of msymbol to
3352 bound_minimal_symbol.
3353 * symmisc.c (dump_msymbols): Update.
3354 * symtab.c (find_pc_sect_symtab_via_partial)
3355 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3356 (search_symbols, print_msymbol_info): Update.
3357 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3358 (MSYMBOL_VALUE_ADDRESS): Redefine.
3359 (BMSYMBOL_VALUE_ADDRESS): New macro.
3360 * tracepoint.c (scope_info): Update.
3361 * tui/tui-disasm.c (tui_find_disassembly_address)
3362 (tui_get_begin_asm_address): Update.
3363 * valops.c (find_function_in_inferior): Update.
3364 * value.c (value_static_field, value_fn_field): Update.
3366 2014-02-26 Tom Tromey <tromey@redhat.com>
3368 * ada-lang.c (ada_update_initial_language): Update.
3369 (ada_main_name, ada_has_this_exception_support): Update.
3370 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3371 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3372 * arm-tdep.c (arm_skip_stub): Update.
3373 * auxv.c (ld_so_xfer_auxv): Update.
3374 * avr-tdep.c (avr_scan_prologue): Update.
3375 * ax-gdb.c (gen_var_ref): Update.
3376 * breakpoint.c (struct breakpoint_objfile_data)
3377 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3378 type to bound_minimal_symbol.
3379 (create_overlay_event_breakpoint)
3380 (create_longjmp_master_breakpoint)
3381 (create_std_terminate_master_breakpoint)
3382 (create_exception_master_breakpoint): Update.
3383 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3384 * c-exp.y (classify_name): Update.
3385 * coffread.c (coff_symfile_read): Update.
3386 * common/agent.c (agent_look_up_symbols): Update.
3387 * d-lang.c (d_main_name): Update.
3388 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3389 * dec-thread.c (enable_dec_thread): Update.
3390 * dwarf2loc.c (call_site_to_target_addr): Update.
3391 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3392 * eval.c (evaluate_subexp_standard): Update.
3393 * findvar.c (struct minsym_lookup_data) <result>: Change type
3394 to bound_minimal_symbol.
3396 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3397 * frame.c (inside_main_func): Update.
3398 * frv-tdep.c (frv_frame_this_id): Update.
3399 * gcore.c (call_target_sbrk): Update.
3400 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3401 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3403 * go-lang.c (go_main_name): Update.
3404 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3405 (hppa_hpux_find_import_stub_for_addr): Update.
3406 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3407 Update. Change return type.
3408 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3410 * jit.c (jit_breakpoint_re_set_internal): Update.
3411 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3413 * linux-nat.c (get_signo): Update.
3414 * linux-thread-db.c (inferior_has_bug): Update
3415 * m32c-tdep.c (m32c_return_value)
3416 (m32c_m16c_address_to_pointer): Update.
3417 * m32r-tdep.c (m32r_frame_this_id): Update.
3418 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3419 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3420 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3421 lookup_minimal_symbol. Change return type.
3422 (lookup_minimal_symbol): Remove.
3423 (lookup_bound_minimal_symbol): Update.
3424 (lookup_minimal_symbol_text): Change return type.
3425 (lookup_minimal_symbol_solib_trampoline): Change return type.
3426 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3427 (lookup_minimal_symbol_solib_trampoline): Change return type.
3428 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3429 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3430 (value_nsstring, find_imps): Update.
3431 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3432 * p-lang.c (pascal_main_name): Update.
3433 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3434 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3435 * proc-service.c (ps_pglobal_lookup): Update.
3436 * ravenscar-thread.c (get_running_thread_msymbol): Change
3438 (has_ravenscar_runtime, get_running_thread_id): Update.
3439 * remote.c (remote_check_symbols): Update.
3440 * sol-thread.c (ps_pglobal_lookup): Update.
3441 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3442 * solib-dsbt.c (lm_base): Update.
3443 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3445 * solib-irix.c (locate_base): Update.
3446 * solib-som.c (som_solib_create_inferior_hook)
3447 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3449 * solib-spu.c (spu_enable_break): Update.
3450 * solib-svr4.c (elf_locate_base, enable_break): Update.
3451 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3452 (flush_ea_cache): Update.
3453 * stabsread.c (define_symbol): Update.
3454 * symfile.c (simple_read_overlay_table): Update.
3455 * symtab.c (find_pc_sect_line): Update.
3456 * tracepoint.c (scope_info): Update.
3457 * tui-disasm.c (tui_get_begin_asm_address): Update.
3458 * value.c (value_static_field): Update.
3460 2014-02-26 Tom Tromey <tromey@redhat.com>
3462 * minsyms.c (prim_record_minimal_symbol_full): Use
3463 SET_MSYMBOL_VALUE_ADDRESS.
3464 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3465 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3466 SET_MSYMBOL_VALUE_ADDRESS.
3467 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3468 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3470 2014-02-26 Tom Tromey <tromey@redhat.com>
3472 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3473 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3474 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3475 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3476 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3477 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3478 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3479 * ada-lang.c (ada_main_name): Update.
3480 (ada_lookup_simple_minsym): Update.
3481 (ada_make_symbol_completion_list): Update.
3482 (ada_add_standard_exceptions): Update.
3483 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3484 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3485 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3486 * arm-tdep.c (skip_prologue_function): Update.
3487 (arm_skip_stack_protector, arm_skip_stub): Update.
3488 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3489 (arm_wince_skip_main_prologue): Update.
3490 * auxv.c (ld_so_xfer_auxv): Update.
3491 * avr-tdep.c (avr_scan_prologue): Update.
3492 * ax-gdb.c (gen_var_ref): Update.
3493 * block.c (call_site_for_pc): Update.
3494 * blockframe.c (get_pc_function_start): Update.
3495 (find_pc_partial_function_gnu_ifunc): Update.
3496 * breakpoint.c (create_overlay_event_breakpoint): Update.
3497 (create_longjmp_master_breakpoint): Update.
3498 (create_std_terminate_master_breakpoint): Update.
3499 (create_exception_master_breakpoint): Update.
3500 (resolve_sal_pc): Update.
3501 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3502 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3504 * c-valprint.c (c_val_print): Update.
3505 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3506 * coffread.c (coff_symfile_read): Update.
3507 * common/agent.c (agent_look_up_symbols): Update.
3508 * dbxread.c (find_stab_function_addr): Update.
3509 (end_psymtab): Update.
3510 * dwarf2loc.c (call_site_to_target_addr): Update.
3511 (func_verify_no_selftailcall): Update.
3512 (tailcall_dump): Update.
3513 (call_site_find_chain_1): Update.
3514 (dwarf_expr_reg_to_entry_parameter): Update.
3515 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3516 (elf_gnu_ifunc_resolve_by_got): Update.
3517 * f-valprint.c (info_common_command): Update.
3518 * findvar.c (read_var_value): Update.
3519 * frame.c (get_prev_frame_1): Update.
3520 (inside_main_func): Update.
3521 * frv-tdep.c (frv_skip_main_prologue): Update.
3522 (frv_frame_this_id): Update.
3523 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3524 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3525 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3526 (gnuv3_skip_trampoline): Update.
3527 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3528 (hppa64_hpux_in_solib_call_trampoline): Update.
3529 (hppa_hpux_skip_trampoline_code): Update.
3530 (hppa64_hpux_search_dummy_call_sequence): Update.
3531 (hppa_hpux_find_import_stub_for_addr): Update.
3532 (hppa_hpux_find_dummy_bpaddr): Update.
3533 * hppa-tdep.c (hppa_symbol_address)
3534 (hppa_lookup_stub_minimal_symbol): Update.
3535 * i386-tdep.c (i386_skip_main_prologue): Update.
3536 (i386_pe_skip_trampoline_code): Update.
3537 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3538 * infcall.c (get_function_name): Update.
3539 * infcmd.c (until_next_command): Update.
3540 * jit.c (jit_breakpoint_re_set_internal): Update.
3541 (jit_inferior_init): Update.
3542 * linespec.c (minsym_found): Update.
3543 (add_minsym): Update.
3544 * linux-fork.c (info_checkpoints_command): Update.
3545 * linux-nat.c (get_signo): Update.
3546 * linux-thread-db.c (inferior_has_bug): Update.
3547 * m32c-tdep.c (m32c_return_value): Update.
3548 (m32c_m16c_address_to_pointer): Update.
3549 (m32c_m16c_pointer_to_address): Update.
3550 * m32r-tdep.c (m32r_frame_this_id): Update.
3551 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3552 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3553 * maint.c (maintenance_translate_address): Update.
3554 * minsyms.c (add_minsym_to_hash_table): Update.
3555 (add_minsym_to_demangled_hash_table): Update.
3556 (msymbol_objfile): Update.
3557 (lookup_minimal_symbol): Update.
3558 (iterate_over_minimal_symbols): Update.
3559 (lookup_minimal_symbol_text): Update.
3560 (lookup_minimal_symbol_by_pc_name): Update.
3561 (lookup_minimal_symbol_solib_trampoline): Update.
3562 (lookup_minimal_symbol_by_pc_section_1): Update.
3563 (lookup_minimal_symbol_and_objfile): Update.
3564 (prim_record_minimal_symbol_full): Update.
3565 (compare_minimal_symbols): Update.
3566 (compact_minimal_symbols): Update.
3567 (build_minimal_symbol_hash_tables): Update.
3568 (install_minimal_symbols): Update.
3569 (terminate_minimal_symbol_table): Update.
3570 (find_solib_trampoline_target): Update.
3571 (minimal_symbol_upper_bound): Update.
3572 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3573 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3574 (mips_skip_pic_trampoline_code): Update.
3575 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3576 * objc-lang.c (selectors_info): Update.
3577 (classes_info): Update.
3578 (find_methods): Update.
3579 (find_imps): Update.
3580 (find_objc_msgsend): Update.
3581 * objfiles.c (objfile_relocate1): Update.
3582 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3583 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3584 * p-valprint.c (pascal_val_print): Update.
3585 * parse.c (write_exp_msymbol): Update.
3586 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3587 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3588 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3589 * printcmd.c (build_address_symbolic): Update.
3591 (address_info): Update.
3592 * proc-service.c (ps_pglobal_lookup): Update.
3593 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3594 (find_pc_sect_psymtab): Update.
3595 * python/py-framefilter.c (py_print_frame): Update.
3596 * ravenscar-thread.c (get_running_thread_id): Update.
3597 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3599 * remote.c (remote_check_symbols): Update.
3600 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3601 (rs6000_skip_trampoline_code): Update.
3602 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3604 * solib-dsbt.c (lm_base): Update.
3605 * solib-frv.c (lm_base): Update.
3607 * solib-irix.c (locate_base): Update.
3608 * solib-som.c (som_solib_create_inferior_hook): Update.
3609 (som_solib_desire_dynamic_linker_symbols): Update.
3610 (link_map_start): Update.
3611 * solib-spu.c (spu_enable_break): Update.
3612 (ocl_enable_break): Update.
3613 * solib-svr4.c (elf_locate_base): Update.
3614 (enable_break): Update.
3615 * spu-tdep.c (spu_get_overlay_table): Update.
3616 (spu_catch_start): Update.
3617 (flush_ea_cache): Update.
3618 * stabsread.c (define_symbol): Update.
3619 (scan_file_globals): Update.
3620 * stack.c (find_frame_funname): Update.
3621 (frame_info): Update.
3622 * symfile.c (simple_read_overlay_table): Update.
3623 (simple_overlay_update): Update.
3624 * symmisc.c (dump_msymbols): Update.
3625 * symtab.c (fixup_section): Update.
3626 (find_pc_sect_line): Update.
3627 (skip_prologue_sal): Update.
3628 (search_symbols): Update.
3629 (print_msymbol_info): Update.
3630 (rbreak_command): Update.
3631 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3632 (completion_list_objc_symbol): Update.
3633 (default_make_symbol_completion_list_break_on): Update.
3634 * tracepoint.c (scope_info): Update.
3635 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3636 (tui_get_begin_asm_address): Update.
3637 * valops.c (find_function_in_inferior): Update.
3638 * value.c (value_static_field): Update.
3639 (value_fn_field): Update.
3641 2014-02-26 Tom Tromey <tromey@redhat.com>
3643 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3644 bound minimal symbols. Move code that knows about minsym
3646 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3648 * minsyms.h (minimal_symbol_upper_bound): Declare.
3649 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3650 minimal_symbol_upper_bound.
3652 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3654 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3655 Use the type's name if its basic type does not have a tag.
3657 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3659 * dwarf2read.c (read_subrange_type): Add comment.
3661 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3663 * dwarf2read.c (update_enumeration_type_from_children): New
3664 function, mostly extracted from process_structure_scope.
3665 (read_enumeration_type): Call update_enumeration_type_from_children.
3666 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3667 and flag_flag_enum fields.
3669 2014-02-26 Pedro Alves <palves@redhat.com>
3671 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3672 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3673 to_xfer_partial method.
3675 2014-02-26 Pedro Alves <palves@redhat.com>
3677 * target.c (complete_target_initialization): Don't install
3678 default_xfer_partial as to_xfer_partial hook.
3680 (update_current_target): Don't INHERIT nor de_fault
3681 deprecated_xfer_memory. Delete de_fault macro.
3682 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3683 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3684 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3687 2014-02-26 Pedro Alves <palves@redhat.com>
3689 * go32-nat.c (my_write_child): New function.
3690 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3691 (go32_xfer_partial): New function.
3692 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3693 Instead install a to_xfer_partial hook.
3695 2014-02-26 Pedro Alves <palves@redhat.com>
3697 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3698 to_xfer_partial helper. Rewrite.
3699 (procfs_xfer_partial): New function.
3700 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3701 Install a to_xfer_partial hook.
3703 2014-02-26 Pedro Alves <palves@redhat.com>
3705 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3706 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3707 (m32r_xfer_partial): New function.
3708 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3709 Install a to_xfer_partial hook.
3711 2014-02-26 Pedro Alves <palves@redhat.com>
3713 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3715 (mips_xfer_partial): New function.
3716 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3717 hook. Install a to_xfer_partial hook.
3719 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3721 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3722 * gdbtypes.c (create_array_type_with_stride): New function,
3723 renaming create_array_type, but with an added parameter
3724 called "bit_stride".
3725 (create_array_type): Re-implement using
3726 create_array_type_with_stride.
3727 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3728 and DW_AT_bit_stride attributes.
3730 2014-02-26 Pedro Alves <palves@redhat.com>
3732 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3733 task-specific breakpoints.
3735 2014-02-25 Pedro Alves <palves@redhat.com>
3737 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3738 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3740 2014-02-25 Stan Shebs <stan@codesourcery.com>
3742 * defs.h: Annotate comments for Doxygen.
3744 2014-02-25 Tom Tromey <tromey@redhat.com>
3746 * target.h (target_ignore): Don't declare.
3747 * target.c (target_ignore): Remove.
3749 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3752 * auto-load.c (auto_load_objfile_script_1): Change filename to
3755 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3757 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3758 documentation. Adjust prototype to match the target_ops
3759 to_xfer_partial method. Adjust implementation accordingly.
3761 2014-02-25 Hui Zhu <hui@codesourcery.com>
3763 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3766 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3768 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3769 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3770 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3771 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3772 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3773 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3774 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3775 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3777 (rl78_register_type): Use a data pointer type for SP and
3778 new pseudo registers mentioned above. Use a 16 bit integer
3779 type for all other register pairs.
3780 (rl78_register_name, rl78_g10_register_name): Update for
3781 new pseudo registers.
3782 (rl78_pseudo_register_read): Likewise.
3783 (rl78_pseudo_register_write): Likewise.
3784 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3785 to the newly added pseudo registers.
3787 2014-02-24 Doug Evans <dje@google.com>
3789 * value.c (record_latest_value): Fix comment.
3790 * printcmd.c (print_command_1): Remove code to handle -1 return from
3791 record_latest_value.
3793 2014-02-24 Pedro Alves <palves@redhat.com>
3795 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3796 deprecated_xfer_memory hook.
3797 (procfs_xfer_partial): Call procfs_xfer_memory instead
3798 of the deprecated_xfer_memory target hook.
3799 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3802 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3804 * windows-nat.c (windows_xfer_shared_libraries): Return
3805 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3806 requested object is TARGET_OBJECT_LIBRARIES.
3808 2014-02-24 Yao Qi <yao@codesourcery.com>
3810 * target.h (enum target_xfer_status)
3811 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3812 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3814 * corefile.c (memory_error_message): User updated.
3815 * exec.c (section_table_read_available_memory): Likewise.
3816 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3817 * target.c (target_xfer_status_to_string): Likewise.
3818 (raw_memory_xfer_partial): Likewise.
3819 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3820 * valops.c (read_value_memory): Likewise.
3821 * exec.h: Update comments.
3823 2014-02-24 Yao Qi <yao@codesourcery.com>
3825 * target.c (target_xfer_status_to_string): Rename argument err
3827 * target.h (target_xfer_status_to_string): Update declaration.
3828 Replace target_xfer_error_to_string with
3829 target_xfer_status_to_string in comment.
3831 2014-02-24 Yao Qi <yao@codesourcery.com>
3833 * mips-linux-nat.c (super_close): Update its type.
3834 (mips_linux_close): Pass 'self' to super_close.
3836 2014-02-24 Yao Qi <yao@codesourcery.com>
3838 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3839 * corefile.c (read_memory): Adjusted.
3840 * target.c (target_write_with_progress): Adjusted.
3842 2014-02-23 Yao Qi <yao@codesourcery.com>
3846 2013-10-25 Yao Qi <yao@codesourcery.com>
3848 * remote.c (remote_traceframe_info): Return early if
3849 traceframe is not selected.
3851 2013-07-19 Yao Qi <yao@codesourcery.com>
3853 * target.c (update_current_target): Change the default action
3854 of 'to_traceframe_info' from tcomplain to return_zero.
3855 * target.h (struct target_ops) <to_traceframe_info>: Add more
3858 2014-02-23 Yao Qi <yao@codesourcery.com>
3860 * valops.c (read_value_memory): Rewrite it. Call
3861 target_xfer_partial in a loop.
3862 * exec.h (section_table_available_memory): Remove declaration.
3863 Move comments to ...
3864 * exec.c (section_table_available_memory): ... here. Make it
3867 2014-02-23 Yao Qi <yao@codesourcery.com>
3869 * exec.c (section_table_read_available_memory): New function.
3870 * exec.h (section_table_read_available_memory): Declare.
3871 * ctf.c (ctf_xfer_partial): Call
3872 section_table_read_available_memory.
3873 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3875 2014-02-23 Yao Qi <yao@codesourcery.com>
3877 * ctf.c (ctf_xfer_partial): Move code to ...
3878 * exec.c (exec_read_partial_read_only): ... it. New function.
3879 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3880 * tracefile.c: Include "exec.h".
3881 * exec.h (exec_read_partial_read_only): Declare.
3883 2014-02-23 Yao Qi <yao@codesourcery.com>
3885 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3886 (tfile_has_memory): Remove.
3887 (init_tfile_ops): Don't set fields to_has_all_memory and
3888 to_has_memory of tfile_ops.
3889 * tracefile.c (tracefile_has_all_memory): New function.
3890 (tracefile_has_memory): New function.
3891 (init_tracefile_ops): Initialize fields to_has_all_memory and
3892 to_has_memory of 'ops'.
3894 2014-02-23 Yao Qi <yao@codesourcery.com>
3896 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3897 (ctf_thread_alive, ctf_get_trace_status): Remove.
3898 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3900 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3901 (tfile_has_stack, tfile_has_registers): Remove.
3902 (tfile_thread_alive): Remove.
3903 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3905 * tracefile.c (tracefile_has_stack): New function.
3906 (tracefile_has_registers): New function.
3907 (tracefile_thread_alive): New function.
3908 (tracefile_get_trace_status): New function.
3909 (init_tracefile_ops): New function.
3910 * tracefile.h (init_tracefile_ops): Declare.
3912 2014-02-23 Yao Qi <yao@codesourcery.com>
3914 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3915 (O_LARGEFILE): Likewise.
3916 (tfile_ops): Likewise.
3917 (TRACE_HEADER_SIZE): Likewise.
3918 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3919 (cur_data_size): Likewise.
3920 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3921 (tfile_close, tfile_files_info): Likewise.
3922 (tfile_get_trace_status): Likewise.
3923 (tfile_get_tracepoint_status): Likewise.
3924 (tfile_get_traceframe_address): Likewise.
3925 (tfile_trace_find, match_blocktype): Likewise.
3926 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3927 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3928 (tfile_get_trace_state_variable_value): Likewise.
3929 (tfile_has_all_memory, tfile_has_memory): Likewise.
3930 (tfile_has_stack, tfile_has_registers): Likewise.
3931 (tfile_thread_alive, build_traceframe_info): Likewise.
3932 (tfile_traceframe_info, init_tfile_ops): Likewise.
3933 (_initialize_tracepoint): Don't call init_tfile_ops
3934 and add_target_with_completer.
3935 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3936 exec.h, completer.h and filenames.h.
3937 (_initialize_tracefile_tfile): New function.
3939 2014-02-23 Yao Qi <yao@codesourcery.com>
3941 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3943 (HFILES_NO_SRCDIR): Add tracefile.h.
3944 * ctf.c: Include "tracefile.h".
3945 * tracefile.h: New file.
3946 * tracefile.c: New file
3947 * tracefile-tfile.c: New file.
3948 * tracepoint.c: Include "tracefile.h".
3949 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3950 (stop_reason_names): Add const.
3951 (trace_file_writer_xfree): Move it to tracefile.c.
3952 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3953 (trace_save_ctf): Likewise.
3954 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3955 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3956 (tfile_write_header, tfile_write_regblock_type): Likewise.
3957 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3958 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3959 (tfile_write_raw_data, tfile_end): Likewise.
3960 (tfile_trace_file_writer_new): Likewise.
3961 (free_uploaded_tp): Make it extern.
3962 (free_uploaded_tsv): Make it extern.
3963 (_initialize_tracepoint): Move code to register command 'tsave'
3965 * tracepoint.h (stop_reason_names): Declare.
3966 (struct trace_frame_write_ops): Move it to tracefile.h.
3967 (struct trace_file_write_ops): Likewise.
3968 (struct trace_file_writer): Likewise.
3969 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3971 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3974 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3976 (get_cores_used_by_process): New parameter num_cores, use it.
3977 (linux_xfer_osdata_processes): Pass num_cores to it.
3978 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3981 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3983 * target.c (memory_xfer_partial): Fix length arg in call to
3984 breakpoint_xfer_memory.
3986 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3989 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3990 number comes after the + or - signs. Adjust length of register
3991 name to be extracted.
3993 2014-02-20 Tom Tromey <tromey@redhat.com>
3995 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3996 (ada_varobj_ops): Mark "extern".
3998 2014-02-20 Tom Tromey <tromey@redhat.com>
4000 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4002 2014-02-20 Doug Evans <xdje42@gmail.com>
4004 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4005 All callers updated.
4006 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4007 All callers updated.
4008 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4009 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4011 2014-02-20 lin zuojian <manjian2006@gmail.com>
4012 Joel Brobecker <brobecker@adacore.com>
4013 Doug Evans <xdje42@gmail.com>
4016 * dwarf2read.c (struct die_info): New member in_process.
4017 (reset_die_in_process): New function.
4018 (process_die): Set it at the start, reset when returning.
4019 (inherit_abstract_dies): Only call process_die if origin_child_die
4020 not already being processed.
4022 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4024 * windows-nat.c (handle_unload_dll): Add function documentation.
4025 (do_initial_windows_stuff): Add comment explaining why we wait
4026 until after inferior initialization has finished before
4027 processing all DLLs.
4029 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4031 * windows-nat.c (get_module_name): Delete.
4032 (windows_get_exec_module_filename): New function, mostly
4033 inspired from get_module_name.
4034 (windows_pid_to_exec_file): Replace call to get_module_name
4035 by call to windows_get_exec_module_filename.
4037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4039 * windows-nat.c (handle_load_dll): Rewrite this function's
4040 introductory comment. Remove code using get_module_name
4041 to get the DLL's name.
4043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4045 * windows-nat.c (get_windows_debug_event): Ignore
4046 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4047 if windows_initialization_done == 0.
4048 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4049 Adjust implementation to always load all DLLs.
4050 (do_initial_windows_stuff): Replace call to
4051 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4055 * windows-nat.c (_initialize_windows_nat): Deprecate the
4056 "dll-symbols" command. Turn the "add-shared-symbol-files"
4057 and "assf" aliases into commands, and deprecate them as well.
4058 * NEWS: Add entry explaining that "dll-symbols" and its two
4059 aliases are now deprecated.
4061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4063 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4064 new-line in debug string. Remove trailing spaces.
4066 2014-02-19 Stan Shebs <stan@codesourcery.com>
4068 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4070 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4072 * NEWS: Add entry for the new feature
4073 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4076 2014-02-19 Stan Shebs <stan@codesourcery.com>
4078 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4080 2014-02-19 Pedro Alves <palves@redhat.com>
4082 * common/ptid.h (struct ptid): Mention that process_stratum
4083 targets should prefer ptid.lwp.
4085 2014-02-19 Pedro Alves <palves@redhat.com>
4087 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4088 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4089 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4090 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4091 store remote thread ids rather than ptid.tid.
4092 (_initialize_remote): Adjust.
4094 2014-02-19 Tom Tromey <tromey@redhat.com>
4096 * target.c (target_get_unwinder): Rewrite.
4097 (target_get_tailcall_unwinder): Rewrite.
4098 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4099 (record_btrace_to_get_tailcall_unwinder): New function.
4100 (init_record_btrace_ops): Update.
4101 * target.h (struct target_ops) <to_get_unwinder,
4102 to_get_tailcall_unwinder>: Now function pointers. Use
4103 TARGET_DEFAULT_RETURN.
4105 2014-02-19 Tom Tromey <tromey@redhat.com>
4107 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4109 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4111 2014-02-19 Tom Tromey <tromey@redhat.com>
4113 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4115 * target-delegates.c: Rebuild.
4116 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4117 TARGET_DEFAULT_FUNC.
4118 * target.c (default_target_decr_pc_after_break): Rename from
4119 forward_target_decr_pc_after_break. Simplify.
4120 (target_decr_pc_after_break): Rely on delegation.
4122 2014-02-19 Tom Tromey <tromey@redhat.com>
4124 * target.c (update_current_target): Do not INHERIT to_doc or
4125 to_magic. Do not de_fault to_open or to_close.
4127 2014-02-19 Tom Tromey <tromey@redhat.com>
4129 * gcore.h (objfile_find_memory_regions): Declare.
4130 * gcore.c (objfile_find_memory_regions): No longer static. Add
4132 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4133 * exec.c: Include gcore.h.
4134 (exec_set_find_memory_regions): Remove.
4135 (exec_find_memory_regions): Remove.
4136 (exec_do_find_memory_regions): Remove.
4137 (init_exec_ops): Update.
4138 * defs.h (exec_set_find_memory_regions): Remove.
4140 2014-02-19 Tom Tromey <tromey@redhat.com>
4142 * target-delegates.c: Rebuild.
4143 * target.h (struct target_ops) <to_extra_thread_info,
4144 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4145 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4146 not 0, in TARGET_DEFAULT_RETURN.
4148 2014-02-19 Tom Tromey <tromey@redhat.com>
4150 * target.c (complete_target_initialization): Remove casts. Use
4151 return_zero_has_execution.
4152 (return_zero): Add "ignore" argument.
4153 (return_zero_has_execution): New function.
4154 (init_dummy_target): Remove casts. Use
4155 return_zero_has_execution.
4157 2014-02-19 Tom Tromey <tromey@redhat.com>
4159 * target.c (update_current_target): Update comments. Do not
4162 2014-02-19 Tom Tromey <tromey@redhat.com>
4164 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4166 * corelow.c (core_read_description): Delegate when needed.
4167 * remote.c (remote_read_description): Delegate when needed.
4168 * target-delegates.c: Rebuild.
4169 * target.c (target_read_description): Rewrite.
4170 * target.h (struct target_ops) <to_read_description>: Update
4171 comment. Use TARGET_DEFAULT_RETURN.
4173 2014-02-19 Tom Tromey <tromey@redhat.com>
4175 * target-delegates.c: Rebuild.
4176 * target.c (update_current_target): Don't inherit or default
4178 (find_default_run_target): Check against delegate_can_run.
4179 * target.h (struct target_ops) <to_can_run>: Use
4180 TARGET_DEFAULT_RETURN.
4182 2014-02-19 Tom Tromey <tromey@redhat.com>
4184 * target-delegates.c: Rebuild.
4185 * target.c (target_disconnect): Unconditionally delegate.
4186 * target.h (struct target_ops) <to_disconnect>: Use
4187 TARGET_DEFAULT_NORETURN.
4189 2014-02-19 Tom Tromey <tromey@redhat.com>
4191 * record.c (record_stop): Unconditionally delegate.
4192 * target-delegates.c: Rebuild.
4193 * target.c (target_stop_recording): Unconditionally delegate.
4194 * target.h (struct target_ops) <to_stop_recording>: Use
4195 TARGET_DEFAULT_IGNORE.
4197 2014-02-19 Tom Tromey <tromey@redhat.com>
4199 * target-delegates.c: Rebuild.
4200 * target.c (target_enable_btrace): Unconditionally delegate.
4201 * target.h (struct target_ops) <to_enable_btrace>: Use
4202 TARGET_DEFAULT_NORETURN.
4204 2014-02-19 Tom Tromey <tromey@redhat.com>
4206 * target-delegates.c: Rebuild.
4207 * target.c (target_read_btrace): Unconditionally delegate.
4208 * target.h (struct target_ops) <to_read_btrace>: Use
4209 TARGET_DEFAULT_NORETURN.
4211 2014-02-19 Tom Tromey <tromey@redhat.com>
4213 * target-delegates.c: Rebuild.
4214 * target.c (target_teardown_btrace): Unconditionally delegate.
4215 * target.h (struct target_ops) <to_teardown_btrace>: Use
4216 TARGET_DEFAULT_NORETURN.
4218 2014-02-19 Tom Tromey <tromey@redhat.com>
4220 * target-delegates.c: Rebuild.
4221 * target.c (target_disable_btrace): Unconditionally delegate.
4222 * target.h (struct target_ops) <to_disable_btrace>: Use
4223 TARGET_DEFAULT_NORETURN.
4225 2014-02-19 Tom Tromey <tromey@redhat.com>
4227 * target-delegates.c: Rebuild.
4228 * target.c (default_search_memory): New function.
4229 (simple_search_memory): Update comment.
4230 (target_search_memory): Unconditionally delegate.
4231 * target.h (struct target_ops) <to_search_memory>: Use
4232 TARGET_DEFAULT_FUNC.
4234 2014-02-19 Tom Tromey <tromey@redhat.com>
4236 * auxv.c (default_auxv_parse): No longer static.
4237 (target_auxv_parse): Unconditionally delegate.
4238 * auxv.h (default_auxv_parse): Declare.
4239 * target-delegates.c: Rebuild.
4240 * target.c: Include auxv.h.
4241 * target.h (struct target_ops) <to_auxv_parse>: Use
4242 TARGET_DEFAULT_FUNC.
4244 2014-02-19 Tom Tromey <tromey@redhat.com>
4246 * target-delegates.c: Rebuild.
4247 * target.c (target_memory_map): Unconditionally delegate.
4248 * target.h (struct target_ops) <to_memory_map>: Use
4249 TARGET_DEFAULT_RETURN.
4251 2014-02-19 Tom Tromey <tromey@redhat.com>
4253 * target-delegates.c: Rebuild.
4254 * target.c (target_thread_alive): Unconditionally delegate.
4255 * target.h (struct target_ops) <to_thread_alive>: Use
4256 TARGET_DEFAULT_RETURN.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target-delegates.c: Rebuild.
4261 * target.c (target_save_record): Unconditionally delegate.
4262 * target.h (struct target_ops) <to_save_record>: Use
4263 TARGET_DEFAULT_NORETURN.
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4267 * target-delegates.c: Rebuild.
4268 * target.c (target_delete_record): Unconditionally delegate.
4269 * target.h (struct target_ops) <to_delete_record>: Use
4270 TARGET_DEFAULT_NORETURN.
4272 2014-02-19 Tom Tromey <tromey@redhat.com>
4274 * target-delegates.c: Rebuild.
4275 * target.c (target_record_is_replaying): Unconditionally
4277 * target.h (struct target_ops) <to_record_is_replaying>: Use
4278 TARGET_DEFAULT_RETURN.
4280 2014-02-19 Tom Tromey <tromey@redhat.com>
4282 * target-delegates.c: Rebuild.
4283 * target.c (target_goto_record_begin): Unconditionally delegate.
4284 * target.h (struct target_ops) <to_goto_record_begin>: Use
4285 TARGET_DEFAULT_NORETURN.
4287 2014-02-19 Tom Tromey <tromey@redhat.com>
4289 * target-delegates.c: Rebuild.
4290 * target.c (target_goto_record_end): Unconditionally delegate.
4291 * target.h (struct target_ops) <to_goto_record_end>: Use
4292 TARGET_DEFAULT_NORETURN.
4294 2014-02-19 Tom Tromey <tromey@redhat.com>
4296 * target-delegates.c: Rebuild.
4297 * target.c (target_goto_record): Unconditionally delegate.
4298 * target.h (struct target_ops) <to_goto_record>: Use
4299 TARGET_DEFAULT_NORETURN.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * target-delegates.c: Rebuild.
4304 * target.c (target_insn_history): Unconditionally delegate.
4305 * target.h (struct target_ops) <to_insn_history>: Use
4306 TARGET_DEFAULT_NORETURN.
4308 2014-02-19 Tom Tromey <tromey@redhat.com>
4310 * target-delegates.c: Rebuild.
4311 * target.c (target_insn_history_from): Unconditionally delegate.
4312 * target.h (struct target_ops) <to_insn_history_from>: Use
4313 TARGET_DEFAULT_NORETURN.
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target-delegates.c: Rebuild.
4318 * target.c (target_insn_history_range): Unconditionally delegate.
4319 * target.h (struct target_ops) <to_insn_history_range>: Use
4320 TARGET_DEFAULT_NORETURN.
4322 2014-02-19 Tom Tromey <tromey@redhat.com>
4324 * target-delegates.c: Rebuild.
4325 * target.c (target_call_history): Unconditionally delegate.
4326 * target.h (struct target_ops) <to_call_history>: Use
4327 TARGET_DEFAULT_NORETURN.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target-delegates.c: Rebuild.
4332 * target.c (target_call_history_from): Unconditionally delegate.
4333 * target.h (struct target_ops) <to_call_history_from>: Use
4334 TARGET_DEFAULT_NORETURN.
4336 2014-02-19 Tom Tromey <tromey@redhat.com>
4338 * target-delegates.c: Rebuild.
4339 * target.c (target_call_history_range): Unconditionally delegate.
4340 * target.h (struct target_ops) <to_call_history_range>: Use
4341 TARGET_DEFAULT_NORETURN.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target-delegates.c: Rebuild.
4346 * target.c (target_verify_memory): Unconditionally delegate.
4347 * target.h (struct target_ops) <to_verify_memory>: Use
4348 TARGET_DEFAULT_NORETURN.
4350 2014-02-19 Tom Tromey <tromey@redhat.com>
4352 * target-delegates.c: Rebuild.
4353 * target.c (target_core_of_thread): Unconditionally delegate.
4354 * target.h (struct target_ops) <to_core_of_thread>: Use
4355 TARGET_DEFAULT_RETURN.
4357 2014-02-19 Tom Tromey <tromey@redhat.com>
4359 * target-delegates.c: Rebuild.
4360 * target.c (target_flash_done): Unconditionally delegate.
4361 * target.h (struct target_ops) <to_flash_done>: Use
4362 TARGET_DEFAULT_NORETURN.
4364 2014-02-19 Tom Tromey <tromey@redhat.com>
4366 * target-delegates.c: Rebuild.
4367 * target.c (target_flash_erase): Unconditionally delegate.
4368 * target.h (struct target_ops) <to_flash_erase>: Use
4369 TARGET_DEFAULT_NORETURN.
4371 2014-02-19 Tom Tromey <tromey@redhat.com>
4373 * target-delegates.c: Rebuild.
4374 * target.c (target_get_section_table): Unconditionally delegate.
4375 * target.h (struct target_ops) <to_get_section_table>: Use
4376 TARGET_DEFAULT_RETURN.
4378 2014-02-19 Tom Tromey <tromey@redhat.com>
4380 * target-delegates.c: Rebuild.
4381 * target.c (target_pid_to_str): Unconditionally delegate.
4382 (init_dummy_target): Don't initialize to_pid_to_str.
4383 (default_pid_to_str): Rename from dummy_pid_to_str.
4384 * target.h (struct target_ops) <to_pid_to_str>: Use
4385 TARGET_DEFAULT_FUNC.
4387 2014-02-19 Tom Tromey <tromey@redhat.com>
4389 * target-delegates.c: Rebuild.
4390 * target.c (target_find_new_threads): Unconditionally delegate.
4391 * target.h (struct target_ops) <to_find_new_threads>: Use
4392 TARGET_DEFAULT_RETURN.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target-delegates.c: Rebuild.
4397 * target.c (target_program_signals): Unconditionally delegate.
4398 * target.h (struct target_ops) <to_program_signals>: Use
4399 TARGET_DEFAULT_IGNORE.
4401 2014-02-19 Tom Tromey <tromey@redhat.com>
4403 * target-delegates.c: Rebuild.
4404 * target.c (target_pass_signals): Unconditionally delegate.
4405 * target.h (struct target_ops) <to_pass_signals>: Use
4406 TARGET_DEFAULT_IGNORE.
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target-delegates.c: Rebuild.
4411 * target.c (default_mourn_inferior): New function.
4412 (target_mourn_inferior): Unconditionally delegate.
4413 * target.h (struct target_ops) <to_mourn_inferior>: Use
4414 TARGET_DEFAULT_FUNC.
4416 2014-02-19 Tom Tromey <tromey@redhat.com>
4418 * target-delegates.c: Rebuild.
4419 * target.c (default_follow_fork): New function.
4420 (target_follow_fork): Unconditionally delegate.
4421 * target.h (struct target_ops) <to_follow_fork>: Use
4422 TARGET_DEFAULT_FUNC.
4424 2014-02-19 Tom Tromey <tromey@redhat.com>
4426 * target-delegates.c: Rebuild.
4427 * target.c (target_kill): Unconditionally delegate.
4428 * target.h (struct target_ops) <to_kill>: Use
4429 TARGET_DEFAULT_NORETURN.
4431 2014-02-19 Tom Tromey <tromey@redhat.com>
4433 * target-delegates.c: Rebuild.
4434 * target.c (target_masked_watch_num_registers): Unconditionally
4436 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4437 Use TARGET_DEFAULT_RETURN.
4439 2014-02-19 Tom Tromey <tromey@redhat.com>
4441 * target-delegates.c: Rebuild.
4442 * target.c (target_remove_mask_watchpoint): Unconditionally
4444 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4445 TARGET_DEFAULT_RETURN.
4447 2014-02-19 Tom Tromey <tromey@redhat.com>
4449 * target-delegates.c: Rebuild.
4450 * target.c (target_insert_mask_watchpoint): Unconditionally
4452 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4453 TARGET_DEFAULT_RETURN.
4455 2014-02-19 Tom Tromey <tromey@redhat.com>
4457 * target-delegates.c: Rebuild.
4458 * target.c (target_ranged_break_num_registers): Unconditionally
4460 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4461 Use TARGET_DEFAULT_RETURN.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target-delegates.c: Rebuild.
4466 * target.c (target_fetch_registers): Unconditionally delegate.
4467 * target.h (struct target_ops) <to_fetch_registers>: Use
4468 TARGET_DEFAULT_NORETURN.
4470 2014-02-19 Tom Tromey <tromey@redhat.com>
4472 * target-delegates.c: Rebuild.
4473 * target.c (update_current_target): Don't inherit or default
4475 * target.h (struct target_ops) <to_stop>: Use
4476 TARGET_DEFAULT_IGNORE.
4478 2014-02-19 Tom Tromey <tromey@redhat.com>
4480 * target-delegates.c: Rebuild.
4481 * target.c (update_current_target): Don't inherit or default
4482 to_can_run_breakpoint_commands.
4483 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4484 Use TARGET_DEFAULT_RETURN.
4486 2014-02-19 Tom Tromey <tromey@redhat.com>
4488 * target-delegates.c: Rebuild.
4489 * target.c (update_current_target): Don't inherit or default
4490 to_supports_evaluation_of_breakpoint_conditions.
4491 * target.h (struct target_ops)
4492 <to_supports_evaluation_of_breakpoint_conditions>: Use
4493 TARGET_DEFAULT_RETURN.
4495 2014-02-19 Tom Tromey <tromey@redhat.com>
4497 * target-delegates.c: Rebuild.
4498 * target.c (update_current_target): Don't inherit or default
4499 to_augmented_libraries_svr4_read.
4500 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4501 Use TARGET_DEFAULT_RETURN.
4503 2014-02-19 Tom Tromey <tromey@redhat.com>
4505 * target-delegates.c: Rebuild.
4506 * target.c (update_current_target): Don't inherit or default
4508 * target.h (struct target_ops) <to_can_use_agent>: Use
4509 TARGET_DEFAULT_RETURN.
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target-delegates.c: Rebuild.
4514 * target.c (update_current_target): Don't inherit or default
4516 * target.h (struct target_ops) <to_use_agent>: Use
4517 TARGET_DEFAULT_NORETURN.
4519 2014-02-19 Tom Tromey <tromey@redhat.com>
4521 * target-delegates.c: Rebuild.
4522 * target.c (update_current_target): Don't inherit or default
4524 (return_null): Remove.
4525 * target.h (struct target_ops) <to_traceframe_info>: Use
4526 TARGET_DEFAULT_RETURN.
4528 2014-02-19 Tom Tromey <tromey@redhat.com>
4530 * target-delegates.c: Rebuild.
4531 * target.c (update_current_target): Don't inherit or default
4532 to_static_tracepoint_markers_by_strid.
4533 * target.h (struct target_ops)
4534 <to_static_tracepoint_markers_by_strid>: Use
4535 TARGET_DEFAULT_NORETURN.
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
4541 to_static_tracepoint_marker_at.
4542 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4543 Use TARGET_DEFAULT_RETURN.
4545 2014-02-19 Tom Tromey <tromey@redhat.com>
4547 * target-delegates.c: Rebuild.
4548 * target.c (update_current_target): Don't inherit or default
4550 * target.h (struct target_ops) <to_set_permissions>: Use
4551 TARGET_DEFAULT_IGNORE.
4553 2014-02-19 Tom Tromey <tromey@redhat.com>
4555 * target-delegates.c: Rebuild.
4556 * target.c (update_current_target): Don't inherit or default
4558 * target.h (struct target_ops) <to_get_tib_address>: Use
4559 TARGET_DEFAULT_NORETURN.
4561 2014-02-19 Tom Tromey <tromey@redhat.com>
4563 * target-delegates.c: Rebuild.
4564 * target.c (update_current_target): Don't inherit or default
4566 * target.h (struct target_ops) <to_set_trace_notes>: Use
4567 TARGET_DEFAULT_RETURN.
4569 2014-02-19 Tom Tromey <tromey@redhat.com>
4571 * target-delegates.c: Rebuild.
4572 * target.c (update_current_target): Don't initialize
4573 to_set_trace_buffer_size.
4574 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4575 TARGET_DEFAULT_IGNORE.
4577 2014-02-19 Tom Tromey <tromey@redhat.com>
4579 * target-delegates.c: Rebuild.
4580 * target.c (update_current_target): Don't inherit or default
4581 to_set_circular_trace_buffer.
4582 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4583 TARGET_DEFAULT_IGNORE.
4585 2014-02-19 Tom Tromey <tromey@redhat.com>
4587 * target-delegates.c: Rebuild.
4588 * target.c (update_current_target): Don't inherit or default
4589 to_set_disconnected_tracing.
4590 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4591 TARGET_DEFAULT_IGNORE.
4593 2014-02-19 Tom Tromey <tromey@redhat.com>
4595 * target-delegates.c: Rebuild.
4596 * target.c (update_current_target): Don't inherit or default
4597 to_get_min_fast_tracepoint_insn_len.
4598 (return_minus_one): Remove.
4599 * target.h (struct target_ops)
4600 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * target-delegates.c: Rebuild.
4605 * target.c (update_current_target): Don't inherit or default
4606 to_get_raw_trace_data.
4607 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4608 TARGET_DEFAULT_NORETURN.
4610 2014-02-19 Tom Tromey <tromey@redhat.com>
4612 * target-delegates.c: Rebuild.
4613 * target.c (update_current_target): Don't inherit or default
4614 to_upload_trace_state_variables.
4615 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4616 Use TARGET_DEFAULT_RETURN.
4618 2014-02-19 Tom Tromey <tromey@redhat.com>
4620 * target-delegates.c: Rebuild.
4621 * target.c (update_current_target): Don't inherit or default
4622 to_upload_tracepoints.
4623 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4624 TARGET_DEFAULT_RETURN.
4626 2014-02-19 Tom Tromey <tromey@redhat.com>
4628 * target-delegates.c: Rebuild.
4629 * target.c (update_current_target): Don't inherit or default
4631 * target.h (struct target_ops) <to_save_trace_data>: Use
4632 TARGET_DEFAULT_NORETURN.
4634 2014-02-19 Tom Tromey <tromey@redhat.com>
4636 * target-delegates.c: Rebuild.
4637 * target.c (update_current_target): Don't inherit or default
4638 to_get_trace_state_variable_value.
4639 * target.h (struct target_ops)
4640 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4642 2014-02-19 Tom Tromey <tromey@redhat.com>
4644 * target-delegates.c: Rebuild.
4645 * target.c (update_current_target): Don't inherit or default
4647 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4649 2014-02-19 Tom Tromey <tromey@redhat.com>
4651 * target-delegates.c: Rebuild.
4652 * target.c (update_current_target): Don't inherit or default
4654 * target.h (struct target_ops) <to_trace_stop>: Use
4655 TARGET_DEFAULT_NORETURN.
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_tracepoint_status.
4662 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4663 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
4670 * target.h (struct target_ops) <to_get_trace_status>: Use
4671 TARGET_DEFAULT_RETURN.
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
4678 * target.h (struct target_ops) <to_trace_start>: Use
4679 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
4686 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4687 Use TARGET_DEFAULT_NORETURN.
4689 2014-02-19 Tom Tromey <tromey@redhat.com>
4691 * target-delegates.c: Rebuild.
4692 * target.c (update_current_target): Don't inherit or default
4693 to_disable_tracepoint.
4694 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4695 TARGET_DEFAULT_NORETURN.
4697 2014-02-19 Tom Tromey <tromey@redhat.com>
4699 * target-delegates.c: Rebuild.
4700 * target.c (update_current_target): Don't inherit or default
4701 to_enable_tracepoint.
4702 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4703 TARGET_DEFAULT_NORETURN.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * target-delegates.c: Rebuild.
4708 * target.c (update_current_target): Don't inherit or default
4709 to_download_trace_state_variable.
4710 * target.h (struct target_ops) <to_download_trace_state_variable>:
4711 Use TARGET_DEFAULT_NORETURN.
4713 2014-02-19 Tom Tromey <tromey@redhat.com>
4715 * target-delegates.c: Rebuild.
4716 * target.c (update_current_target): Don't inherit or default
4717 to_can_download_tracepoint.
4718 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4719 TARGET_DEFAULT_RETURN.
4721 2014-02-19 Tom Tromey <tromey@redhat.com>
4723 * target-delegates.c: Rebuild.
4724 * target.c (update_current_target): Don't inherit or default
4725 to_download_tracepoint.
4726 * target.h (struct target_ops) <to_download_tracepoint>: Use
4727 TARGET_DEFAULT_NORETURN.
4729 2014-02-19 Tom Tromey <tromey@redhat.com>
4731 * target-delegates.c: Rebuild.
4732 * target.c (update_current_target): Don't inherit or default
4734 * target.h (struct target_ops) <to_trace_init>: Use
4735 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
4742 * target.h (struct target_ops) <to_supports_string_tracing>: 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
4749 to_supports_enable_disable_tracepoint.
4750 * target.h (struct target_ops)
4751 <to_supports_enable_disable_tracepoint>: 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_supports_multi_process.
4759 * target.h (struct target_ops) <to_supports_multi_process>: 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
4766 to_get_ada_task_ptid.
4767 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4768 TARGET_DEFAULT_FUNC.
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_thread_architecture.
4775 * target.h (struct target_ops) <to_thread_architecture>: Use
4776 TARGET_DEFAULT_FUNC.
4778 2014-02-19 Tom Tromey <tromey@redhat.com>
4780 * target-delegates.c: Rebuild.
4781 * target.c (update_current_target): Don't inherit or default
4782 to_execution_direction.
4783 * target.h (struct target_ops) <to_execution_direction>: Use
4784 TARGET_DEFAULT_FUNC.
4786 2014-02-19 Tom Tromey <tromey@redhat.com>
4788 * target-delegates.c: Rebuild.
4789 * target.c (update_current_target): Don't inherit or default
4790 to_can_execute_reverse.
4791 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4792 TARGET_DEFAULT_RETURN.
4793 (target_can_execute_reverse): Unconditionally delegate.
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
4800 (dummy_goto_bookmark): Remove.
4801 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4802 * target.h (struct target_ops) <to_goto_bookmark>: Use
4803 TARGET_DEFAULT_NORETURN.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target-delegates.c: Rebuild.
4808 * target.c (update_current_target): Don't inherit or default
4810 (dummy_get_bookmark): Remove.
4811 (init_dummy_target): Don't inherit or default to_get_bookmark.
4812 * target.h (struct target_ops) <to_get_bookmark>: Use
4813 TARGET_DEFAULT_NORETURN
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target-delegates.c: Rebuild.
4818 * target.c (update_current_target): Don't inherit or default
4819 to_make_corefile_notes.
4820 (init_dummy_target): Don't initialize to_make_corefile_notes.
4821 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4822 TARGET_DEFAULT_FUNC.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target-delegates.c: Rebuild.
4827 * target.c (update_current_target): Don't inherit or default
4828 to_find_memory_regions.
4829 (init_dummy_target): Don't initialize to_find_memory_regions.
4830 * target.h (struct target_ops) <to_find_memory_regions>: Use
4831 TARGET_DEFAULT_FUNC.
4833 2014-02-19 Tom Tromey <tromey@redhat.com>
4835 * target-delegates.c: Rebuild.
4836 * target.c (update_current_target): Don't inherit or default
4838 * target.h (struct target_ops) <to_log_command>: Use
4839 TARGET_DEFAULT_IGNORE.
4840 (target_log_command): Unconditionally delegate.
4842 2014-02-19 Tom Tromey <tromey@redhat.com>
4844 * target-delegates.c: Rebuild.
4845 * target.c (update_current_target): Don't inherit or default
4846 to_pid_to_exec_file.
4847 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4848 TARGET_DEFAULT_RETURN.
4850 2014-02-19 Tom Tromey <tromey@redhat.com>
4852 * target-delegates.c: Rebuild.
4853 * target.c (update_current_target): Don't inherit or default
4855 (target_thread_name): Unconditionally delegate.
4856 * target.h (struct target_ops) <to_thread_name>: Use
4857 TARGET_DEFAULT_RETURN.
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
4863 to_extra_thread_info.
4864 * target.h (struct target_ops) <to_extra_thread_info>: Use
4865 TARGET_DEFAULT_RETURN.
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
4872 * target.h (struct target_ops) <to_has_exited>: Use
4873 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
4880 (return_one): Remove.
4881 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4882 TARGET_DEFAULT_RETURN.
4884 2014-02-19 Tom Tromey <tromey@redhat.com>
4886 * target-delegates.c: Rebuild.
4887 * target.c (update_current_target): Don't inherit or default
4888 to_insert_exec_catchpoint.
4889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4890 TARGET_DEFAULT_RETURN.
4892 2014-01-08 Tom Tromey <tromey@redhat.com>
4894 * target-delegates.c: Rebuild.
4895 * target.c (update_current_target): Don't inherit or default
4896 to_insert_exec_catchpoint.
4897 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4898 TARGET_DEFAULT_RETURN.
4900 2014-02-19 Tom Tromey <tromey@redhat.com>
4902 * target-delegates.c: Rebuild.
4903 * target.c (update_current_target): Don't inherit or default
4904 to_remove_vfork_catchpoint.
4905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4906 TARGET_DEFAULT_RETURN.
4908 2014-02-19 Tom Tromey <tromey@redhat.com>
4910 * target-delegates.c: Rebuild.
4911 * target.c (update_current_target): Don't inherit or default
4912 to_insert_vfork_catchpoint.
4913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4914 TARGET_DEFAULT_RETURN.
4916 2014-02-19 Tom Tromey <tromey@redhat.com>
4918 * target-delegates.c: Rebuild.
4919 * target.c (update_current_target): Don't inherit or default
4920 to_remove_fork_catchpoint.
4921 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4922 TARGET_DEFAULT_RETURN.
4924 2014-02-19 Tom Tromey <tromey@redhat.com>
4926 * target-delegates.c: Rebuild.
4927 * target.c (update_current_target): Don't inherit or default
4928 to_insert_fork_catchpoint.
4929 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4930 TARGET_DEFAULT_RETURN.
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4934 * target-delegates.c: Rebuild.
4935 * target.c (update_current_target): Don't inherit or default
4936 to_post_startup_inferior.
4937 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4938 TARGET_DEFAULT_IGNORE.
4940 2014-02-19 Tom Tromey <tromey@redhat.com>
4942 * target-delegates.c: Rebuild.
4943 * target.c (update_current_target): Don't inherit or default
4945 * target.h (struct target_ops) <to_load>: Use
4946 TARGET_DEFAULT_NORETURN.
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * target-delegates.c: Rebuild.
4951 * target.c (update_current_target): Don't inherit or default
4953 * target.h (struct target_ops) <to_terminal_info>: Use
4954 TARGET_DEFAULT_FUNC.
4956 2014-02-19 Tom Tromey <tromey@redhat.com>
4958 * target-delegates.c: Rebuild.
4959 * target.c (update_current_target): Don't inherit or default
4960 to_terminal_save_ours.
4961 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4962 TARGET_DEFAULT_IGNORE.
4964 2014-02-19 Tom Tromey <tromey@redhat.com>
4966 * target-delegates.c: Rebuild.
4967 * target.c (update_current_target): Don't inherit or default
4969 * target.h (struct target_ops) <to_terminal_ours>: Use
4970 TARGET_DEFAULT_IGNORE.
4972 2014-02-19 Tom Tromey <tromey@redhat.com>
4974 * target-delegates.c: Rebuild.
4975 * target.c (update_current_target): Don't inherit or default
4976 to_terminal_ours_for_output.
4977 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4978 TARGET_DEFAULT_IGNORE.
4980 2014-02-19 Tom Tromey <tromey@redhat.com>
4982 * target-delegates.c: Rebuild.
4983 * target.c (update_current_target): Don't inherit or default
4984 to_terminal_inferior.
4985 * target.h (struct target_ops) <to_terminal_inferior>: Use
4986 TARGET_DEFAULT_IGNORE.
4988 2014-02-19 Tom Tromey <tromey@redhat.com>
4990 * target-delegates.c: Rebuild.
4991 * target.c (update_current_target): Don't inherit or default
4993 * target.h (struct target_ops) <to_terminal_init>: Use
4994 TARGET_DEFAULT_IGNORE.
4996 2014-02-19 Tom Tromey <tromey@redhat.com>
4998 * target-delegates.c: Rebuild.
4999 * target.c (update_current_target): Don't inherit or default
5000 to_can_accel_watchpoint_condition.
5001 * target.h (struct target_ops)
5002 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5004 2014-02-19 Tom Tromey <tromey@redhat.com>
5006 * target-delegates.c: Rebuild.
5007 * target.c (update_current_target): Don't inherit or default
5008 to_region_ok_for_hw_watchpoint.
5009 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5010 Use TARGET_DEFAULT_FUNC.
5012 2014-02-19 Tom Tromey <tromey@redhat.com>
5014 * target-delegates.c: Rebuild.
5015 * target.c (update_current_target): Don't inherit or default
5016 to_watchpoint_addr_within_range.
5017 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5018 Use TARGET_DEFAULT_FUNC.
5020 2014-02-19 Tom Tromey <tromey@redhat.com>
5022 * target-delegates.c: Rebuild.
5023 * target.c (update_current_target): Don't inherit or default
5024 to_remove_watchpoint.
5025 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5026 TARGET_DEFAULT_NORETURN.
5028 2014-02-19 Tom Tromey <tromey@redhat.com>
5030 * target-delegates.c: Rebuild.
5031 * target.c (update_current_target): Don't inherit or default
5032 to_insert_watchpoint.
5033 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5034 TARGET_DEFAULT_RETURN.
5036 2014-02-19 Tom Tromey <tromey@redhat.com>
5038 * target-delegates.c: Rebuild.
5039 * target.c (update_current_target): Don't inherit or default
5040 to_remove_hw_breakpoint.
5041 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5042 TARGET_DEFAULT_RETURN.
5044 2014-02-19 Tom Tromey <tromey@redhat.com>
5046 * target-delegates.c: Rebuild.
5047 * target.c (update_current_target): Don't inherit or default
5048 to_insert_hw_breakpoint.
5049 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5050 TARGET_DEFAULT_RETURN.
5052 2014-02-19 Tom Tromey <tromey@redhat.com>
5054 * target-delegates.c: Rebuild.
5055 * target.c (update_current_target): Don't inherit or default
5056 to_can_use_hw_breakpoint.
5057 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5058 TARGET_DEFAULT_RETURN.
5060 2014-02-19 Tom Tromey <tromey@redhat.com>
5062 * target-delegates.c: Rebuild.
5063 * target.c (update_current_target): Don't inherit or default
5065 * target.h (struct target_ops) <to_files_info>: Use
5066 TARGET_DEFAULT_IGNORE.
5068 2014-02-19 Tom Tromey <tromey@redhat.com>
5070 * target-delegates.c: Rebuild.
5071 * target.c (update_current_target): Don't inherit or default
5073 * target.h (struct target_ops) <to_store>: Use
5074 TARGET_DEFAULT_NORETURN.
5076 2014-02-19 Tom Tromey <tromey@redhat.com>
5078 * target-delegates.c: Rebuild.
5079 * target.c (update_current_target): Don't inherit or default
5081 * target.h (struct target_ops) <to_post_attach>: Use
5082 TARGET_DEFAULT_IGNORE.
5084 2014-02-19 Tom Tromey <tromey@redhat.com>
5086 * target-delegates.c: Rebuild.
5087 * target.c (update_current_target): Don't inherit or default
5089 (default_rcmd): New function.
5090 (do_monitor_command): Unconditionally delegate.
5091 * target.h (struct target_ops) <to_rmcd>: Use
5092 TARGET_DEFAULT_FUNC.
5094 2014-02-19 Tom Tromey <tromey@redhat.com>
5096 * target-delegates.c: Rebuild.
5097 * target.c (init_dummy_target): Don't initialize to_attach.
5098 (target_attach): Unconditionally delegate.
5099 * target.h (struct target_ops) <to_attach>: Use
5100 TARGET_DEFAULT_FUNC.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target-delegates.c: Rebuild.
5105 * target.c (target_detach): Unconditionally delegate.
5106 (init_dummy_target): Don't initialize to_detach.
5107 * target.h (struct target_ops) <to_detach>: Use
5108 TARGET_DEFAULT_IGNORE.
5110 2014-02-19 Tom Tromey <tromey@redhat.com>
5112 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5114 (target_augmented_libraries_svr4_read): Add argument.
5115 * target.c (update_current_target): Update.
5116 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5119 2014-02-19 Tom Tromey <tromey@redhat.com>
5121 * target.h (struct target_ops) <to_call_history_range>: Add
5123 * target.c (target_call_history_range): Add argument.
5124 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5126 (record_btrace_call_history_from): Update.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target.h (struct target_ops) <to_call_history_from>: Add
5132 * target.c (target_call_history_from): Add argument.
5133 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5136 2014-02-19 Tom Tromey <tromey@redhat.com>
5138 * target.h (struct target_ops) <to_call_history>: Add argument.
5139 * target.c (target_call_history): Add argument.
5140 * record-btrace.c (record_btrace_call_history): Add 'self'
5143 2014-02-19 Tom Tromey <tromey@redhat.com>
5145 * target.h (struct target_ops) <to_insn_history_range>: Add
5147 * target.c (target_insn_history_range): Add argument.
5148 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5150 (record_btrace_insn_history_from): Update.
5152 2014-02-19 Tom Tromey <tromey@redhat.com>
5154 * target.h (struct target_ops) <to_insn_history_from>: Add
5156 * target.c (target_insn_history_from): Add argument.
5157 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5160 2014-02-19 Tom Tromey <tromey@redhat.com>
5162 * target.h (struct target_ops) <to_insn_history>: Add argument.
5163 * target.c (target_insn_history): Add argument.
5164 * record-btrace.c (record_btrace_insn_history): Add 'self'
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * target.h (struct target_ops) <to_goto_record>: Add argument.
5170 * target.c (target_goto_record): Add argument.
5171 * record-full.c (record_full_goto): Add 'self' argument.
5172 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5177 * target.c (target_goto_record_end): Add argument.
5178 * record-full.c (record_full_goto_end): Add 'self' argument.
5179 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5181 2014-02-19 Tom Tromey <tromey@redhat.com>
5183 * target.h (struct target_ops) <to_goto_record_begin>: Add
5185 * target.c (target_goto_record_begin): Add argument.
5186 * record-full.c (record_full_goto_begin): Add 'self' argument.
5187 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target.h (struct target_ops) <to_record_is_replaying>: Add
5194 * target.c (target_record_is_replaying): Add argument.
5195 * record-full.c (record_full_is_replaying): Add 'self' argument.
5196 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5198 (record_btrace_xfer_partial, record_btrace_store_registers)
5199 (record_btrace_prepare_to_store, record_btrace_resume)
5200 (record_btrace_wait, record_btrace_decr_pc_after_break)
5201 (record_btrace_find_new_threads, record_btrace_thread_alive):
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target.h (struct target_ops) <to_delete_record>: Add argument.
5207 * target.c (target_delete_record): Add argument.
5208 * record-full.c (record_full_delete): Add 'self' argument.
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * target.h (struct target_ops) <to_save_record>: Add argument.
5213 * target.c (target_save_record): Add argument.
5214 * record-full.c (record_full_save): Add 'self' argument.
5215 (record_full_save): Add 'self' argument.
5217 2014-02-19 Tom Tromey <tromey@redhat.com>
5219 * target.h (struct target_ops) <to_info_record>: Add argument.
5220 * target.c (target_info_record): Add argument.
5221 * record.c (info_record_command): Add argument.
5222 * record-full.c (record_full_info): Add 'self' argument.
5223 * record-btrace.c (record_btrace_info): Add 'self' argument.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5228 * target.c (target_stop_recording): Add argument.
5229 * record.c (record_stop): Add argument.
5230 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5233 2014-02-19 Tom Tromey <tromey@redhat.com>
5235 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5236 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5237 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5239 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5240 (_initialize_amd64_linux_nat): Use it.
5241 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5242 (_initialize_i386_linux_nat): Use it.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5247 * target.c (target_teardown_btrace): Add argument.
5248 * remote.c (remote_teardown_btrace): Add 'self' argument.
5249 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5251 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5254 2014-02-19 Tom Tromey <tromey@redhat.com>
5256 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5257 * target.c (target_disable_btrace): Add argument.
5258 * remote.c (remote_disable_btrace): Add 'self' argument.
5259 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5261 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5267 * target.c (target_enable_btrace): Add argument.
5268 * remote.c (remote_enable_btrace): Add 'self' argument.
5269 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5271 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5274 2014-02-19 Tom Tromey <tromey@redhat.com>
5276 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5277 (target_can_use_agent): Add argument.
5278 * target.c (update_current_target): Update.
5279 * remote.c (remote_can_use_agent): Add 'self' argument.
5280 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5282 2014-02-19 Tom Tromey <tromey@redhat.com>
5284 * target.h (struct target_ops) <to_use_agent>: Add argument.
5285 (target_use_agent): Add argument.
5286 * target.c (update_current_target): Update.
5287 * remote.c (remote_use_agent): Add 'self' argument.
5288 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5293 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5294 (target_traceframe_info): Add argument.
5295 * target.c (update_current_target): Update.
5296 * remote.c (remote_traceframe_info): Add 'self' argument.
5297 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5299 2014-02-19 Tom Tromey <tromey@redhat.com>
5301 * target.h (target_static_tracepoint_markers_by_strid): Add
5303 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5305 * target.c (update_current_target): Update.
5306 * remote.c (struct target_ops)
5307 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5308 * linux-nat.c (struct target_ops)
5309 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5311 2014-02-19 Tom Tromey <tromey@redhat.com>
5313 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5315 (target_static_tracepoint_marker_at): Add argument.
5316 * target.c (update_current_target): Update.
5317 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5323 (target_set_permissions): Add argument.
5324 * target.c (update_current_target): Update.
5325 * remote.c (remote_set_permissions): Add 'self' argument.
5326 (remote_start_remote): Update.
5328 2014-02-19 Tom Tromey <tromey@redhat.com>
5330 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5331 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5332 (target_get_tib_address): Add argument.
5333 * target.c (update_current_target): Update.
5334 * remote.c (remote_get_tib_address): Add 'self' argument.
5336 2014-02-19 Tom Tromey <tromey@redhat.com>
5338 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5339 (target_set_trace_notes): Add argument.
5340 * target.c (update_current_target): Update.
5341 * remote.c (remote_set_trace_notes): Add 'self' argument.
5343 2014-02-19 Tom Tromey <tromey@redhat.com>
5345 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5347 (target_set_trace_buffer_size): Add argument.
5348 * target.c (update_current_target): Update.
5349 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5351 2014-02-19 Tom Tromey <tromey@redhat.com>
5353 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5355 (target_set_circular_trace_buffer): Add argument.
5356 * target.c (update_current_target): Update.
5357 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5362 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5364 (target_set_disconnected_tracing): Add argument.
5365 * target.c (update_current_target): Update.
5366 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5368 2014-02-19 Tom Tromey <tromey@redhat.com>
5370 * target.h (struct target_ops)
5371 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5372 (target_get_min_fast_tracepoint_insn_len): Add argument.
5373 * target.c (update_current_target): Update.
5374 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5377 2014-02-19 Tom Tromey <tromey@redhat.com>
5379 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5381 (target_get_raw_trace_data): Add argument.
5382 * target.c (update_current_target): Update.
5383 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5385 2014-02-19 Tom Tromey <tromey@redhat.com>
5387 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5389 (target_upload_trace_state_variables): Add argument.
5390 * target.c (update_current_target): Update.
5391 * remote.c (remote_upload_trace_state_variables): Add 'self'
5393 (remote_start_remote): Update.
5395 2014-02-19 Tom Tromey <tromey@redhat.com>
5397 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5399 (target_upload_tracepoints): Add argument.
5400 * target.c (update_current_target): Update.
5401 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5402 (remote_start_remote): Update.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5407 (target_save_trace_data): Add argument.
5408 * target.c (update_current_target): Update.
5409 * remote.c (remote_save_trace_data): Add 'self' argument.
5411 2014-02-19 Tom Tromey <tromey@redhat.com>
5413 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5415 * target.h (struct target_ops)
5416 <to_get_trace_state_variable_value>: Add argument.
5417 (target_get_trace_state_variable_value): Add argument.
5418 * target.c (update_current_target): Update.
5419 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5421 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5423 2014-02-19 Tom Tromey <tromey@redhat.com>
5425 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5426 * target.h (struct target_ops) <to_trace_find>: Add argument.
5427 (target_trace_find): Add argument.
5428 * target.c (update_current_target): Update.
5429 * remote.c (remote_trace_find): Add 'self' argument.
5430 * ctf.c (ctf_trace_find): Add 'self' argument.
5432 2014-02-19 Tom Tromey <tromey@redhat.com>
5434 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5435 (target_trace_stop): Add argument.
5436 * target.c (update_current_target): Update.
5437 * remote.c (remote_trace_stop): Add 'self' argument.
5439 2014-02-19 Tom Tromey <tromey@redhat.com>
5441 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5442 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5444 (target_get_tracepoint_status): Add argument.
5445 * target.c (update_current_target): Update.
5446 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5448 2014-02-19 Tom Tromey <tromey@redhat.com>
5450 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5451 * target.h (struct target_ops) <to_get_trace_status>: Add
5453 (target_get_trace_status): Add argument.
5454 * target.c (update_current_target): Update.
5455 * remote.c (remote_get_trace_status): Add 'self' argument.
5456 (remote_start_remote, remote_can_download_tracepoint): Update.
5457 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5459 2014-02-19 Tom Tromey <tromey@redhat.com>
5461 * target.h (struct target_ops) <to_trace_start>: Add argument.
5462 (target_trace_start): Add argument.
5463 * target.c (update_current_target): Update.
5464 * remote.c (remote_trace_start): Add 'self' argument.
5466 2014-02-19 Tom Tromey <tromey@redhat.com>
5468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5470 (target_trace_set_readonly_regions): Add argument.
5471 * target.c (update_current_target): Update.
5472 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5475 2014-02-19 Tom Tromey <tromey@redhat.com>
5477 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5479 (target_disable_tracepoint): Add argument.
5480 * target.c (update_current_target): Update.
5481 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5487 (target_enable_tracepoint): Add argument.
5488 * target.c (update_current_target): Update.
5489 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5491 2014-02-19 Tom Tromey <tromey@redhat.com>
5493 * target.h (struct target_ops) <to_download_trace_state_variable>:
5495 (target_download_trace_state_variable): Add argument.
5496 * target.c (update_current_target): Update.
5497 * remote.c (remote_download_trace_state_variable): Add 'self'
5500 2014-02-19 Tom Tromey <tromey@redhat.com>
5502 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5504 (target_can_download_tracepoint): Add argument.
5505 * target.c (update_current_target): Update.
5506 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * target.h (struct target_ops) <to_download_tracepoint>: Add
5512 (target_download_tracepoint): Add argument.
5513 * target.c (update_current_target): Update.
5514 * remote.c (remote_download_tracepoint): Add 'self' argument.
5516 2014-02-19 Tom Tromey <tromey@redhat.com>
5518 * target.h (struct target_ops) <to_trace_init>: Add argument.
5519 (target_trace_init): Add argument.
5520 * target.c (update_current_target): Update.
5521 * remote.c (remote_trace_init): Add 'self' argument.
5523 2014-02-19 Tom Tromey <tromey@redhat.com>
5525 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5526 * target.c (target_fileio_readlink): Add argument.
5527 * remote.c (remote_hostio_readlink): Add 'self' argument.
5528 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5530 2014-02-19 Tom Tromey <tromey@redhat.com>
5532 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5533 * target.c (target_fileio_unlink): Add argument.
5534 * remote.c (remote_hostio_unlink): Add 'self' argument.
5535 (remote_file_delete): Update.
5536 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5538 2014-02-19 Tom Tromey <tromey@redhat.com>
5540 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5541 * target.c (target_fileio_close): Add argument.
5542 * remote.c (remote_hostio_close): Add 'self' argument.
5543 (remote_hostio_close_cleanup): Update.
5544 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5546 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5548 2014-02-19 Tom Tromey <tromey@redhat.com>
5550 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5551 * target.c (target_fileio_pread): Add argument.
5552 * remote.c (remote_hostio_pread): Add 'self' argument.
5553 (remote_bfd_iovec_pread, remote_file_get): Update.
5554 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5556 2014-02-19 Tom Tromey <tromey@redhat.com>
5558 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5559 * target.c (target_fileio_pwrite): Add argument.
5560 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5561 (remote_file_put): Update.
5562 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5564 2014-02-19 Tom Tromey <tromey@redhat.com>
5566 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5567 * target.c (target_fileio_open): Add argument.
5568 * remote.c (remote_hostio_open): Add 'self' argument.
5569 (remote_bfd_iovec_open): Add 'self' argument.
5570 (remote_file_put): Add 'self' argument.
5571 (remote_file_get): Add 'self' argument.
5572 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5574 2014-02-19 Tom Tromey <tromey@redhat.com>
5576 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5578 (target_can_run_breakpoint_commands): Add argument.
5579 * target.c (update_current_target): Update.
5580 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5582 (remote_insert_breakpoint): Add 'self' argument.
5583 (remote_insert_hw_breakpoint): Add 'self' argument.
5584 (remote_can_run_breakpoint_commands): Add 'self' argument.
5586 2014-02-19 Tom Tromey <tromey@redhat.com>
5588 * target.h (struct target_ops)
5589 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5590 (target_supports_evaluation_of_breakpoint_conditions): Add
5592 * target.c (update_current_target): Update.
5593 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5595 (remote_insert_breakpoint): Add 'self' argument.
5596 (remote_insert_hw_breakpoint): Add 'self' argument.
5597 (remote_supports_cond_breakpoints): Add 'self' argument.
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5601 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5603 (target_supports_string_tracing): Add argument.
5604 * target.c (update_current_target): Update.
5605 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5607 2014-02-19 Tom Tromey <tromey@redhat.com>
5609 * target.h (struct target_ops)
5610 <to_supports_disable_randomization>: Add argument.
5611 * target.c (find_default_supports_disable_randomization): Add
5613 (target_supports_disable_randomization): Add argument.
5614 (find_default_supports_disable_randomization): Add 'self'
5616 * remote.c (extended_remote_supports_disable_randomization): Add
5618 (remote_supports_disable_randomization): Add 'self' argument.
5619 (extended_remote_create_inferior): Update.
5620 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5623 2014-02-19 Tom Tromey <tromey@redhat.com>
5625 * target.h (struct target_ops)
5626 <to_supports_enable_disable_tracepoint>: Add argument.
5627 (target_supports_enable_disable_tracepoint): Add argument.
5628 * target.c (update_current_target): Update.
5629 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * target.h (struct target_ops) <to_supports_multi_process>: Add
5636 (target_supports_multi_process): Add argument.
5637 * target.c (update_current_target): Update.
5638 * remote.c (remote_supports_multi_process): Add 'self' argument.
5639 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5641 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5644 2014-02-19 Tom Tromey <tromey@redhat.com>
5646 * target.h (struct target_ops) <to_execution_direction>: Add
5648 (target_execution_direction): Add argument.
5649 * target.c (default_execution_direction): Add 'self' argument.
5650 * record-full.c (record_full_execution_direction): Add 'self'
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5657 (target_can_execute_reverse): Add argument.
5658 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5659 * record-full.c (record_full_can_execute_reverse): Add 'self'
5661 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5664 2014-02-19 Tom Tromey <tromey@redhat.com>
5666 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5667 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5669 (target_get_ada_task_ptid): Add argument.
5670 * target.c (update_current_target): Update.
5671 (default_get_ada_task_ptid): Add 'self' argument.
5672 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5673 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5674 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5676 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5678 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5680 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5682 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5683 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5689 (target_goto_bookmark): Add argument.
5690 * target.c (dummy_goto_bookmark): Add 'self' argument.
5691 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5696 (target_get_bookmark): Add argument.
5697 * target.c (dummy_get_bookmark): Add 'self' argument.
5698 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5704 (target_make_corefile_notes): Add argument.
5705 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5706 * procfs.c (procfs_make_note_section): Add 'self' argument.
5707 (procfs_make_note_section): Add 'self' argument.
5708 (procfs_make_note_section): Add 'self' argument.
5709 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5711 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5712 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5713 * exec.c (exec_make_note_section): Add 'self' argument.
5714 (exec_make_note_section): Add 'self' argument.
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_find_memory_regions>: Add
5720 (target_find_memory_regions): Add argument.
5721 * target.c (dummy_find_memory_regions): Add 'self' argument.
5722 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5723 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5724 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5725 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5726 * exec. (exec_do_find_memory_regions): New global.
5727 (exec_set_find_memory_regions): Rewrite.
5728 (exec_find_memory_regions): New function.
5729 (init_exec_ops): Use exec_find_memory_regions.
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5733 * target.h (struct target_ops) <to_supports_non_stop>: Add
5735 * target.c (find_default_supports_non_stop): Add argument.
5736 (target_supports_non_stop): Add argument.
5737 (find_default_supports_non_stop): Add 'self' argument.
5738 * remote.c (remote_supports_non_stop): Add 'self' argument.
5739 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target.h (struct target_ops) <to_log_command>: Add argument.
5744 (target_log_command): Add argument.
5745 * serial.h (serial_log_command): Add 'self' argument.
5746 * serial.c (serial_log_command): Add 'self' argument.
5748 2014-02-19 Tom Tromey <tromey@redhat.com>
5750 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5751 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5753 (target_pid_to_exec_file): Add argument.
5754 * target.c (debug_to_pid_to_exec_file): Add argument.
5755 (update_current_target): Update.
5756 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5757 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5758 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5759 (linux_handle_extended_wait): Update.
5760 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5761 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5762 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5763 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5765 2014-02-19 Tom Tromey <tromey@redhat.com>
5767 * target.h (struct target_ops) <to_rcmd>: Add argument.
5768 (target_rcmd): Add argument.
5769 * target.c (debug_to_rcmd): Add argument.
5770 (update_current_target, do_monitor_command): Update.
5771 * remote.c (remote_rcmd): Add 'self' argument.
5772 * monitor.c (monitor_rcmd): Add 'self' argument.
5774 2014-02-19 Tom Tromey <tromey@redhat.com>
5776 * windows-nat.c (windows_stop): Add 'self' argument.
5777 * target.h (struct target_ops) <to_stop>: Add argument.
5778 * target.c (target_stop): Add argument.
5779 (debug_to_stop): Add argument.
5780 (update_current_target): Update.
5781 * remote.c (remote_stop): Add 'self' argument.
5782 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5783 (gdbsim_cntrl_c): Update.
5784 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5785 * procfs.c (procfs_stop): Add 'self' argument.
5786 * nto-procfs.c (procfs_stop): Add 'self' argument.
5787 * monitor.c (monitor_stop): Add 'self' argument.
5788 (monitor_open): Update.
5789 * linux-nat.c (linux_nat_stop): Add argument.
5790 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5791 * gnu-nat.c (gnu_stop): Add 'self' argument.
5792 * darwin-nat.c (darwin_stop): Add 'self' argument.
5794 2014-02-19 Tom Tromey <tromey@redhat.com>
5796 * target.h (struct target_ops) <to_thread_name>: Add argument.
5797 * target.c (target_thread_name): Add argument.
5798 (update_current_target): Update.
5799 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_extra_thread_info>: Add
5805 (target_extra_thread_info): Add argument.
5806 * target.c (update_current_target): Update.
5807 * remote.c (remote_threads_extra_info): Add 'self' argument.
5808 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5810 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5811 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5812 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5814 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5816 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5818 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5821 2014-02-19 Tom Tromey <tromey@redhat.com>
5823 * target.h (struct target_ops) <to_program_signals>: Add argument.
5824 * target.c (target_program_signals): Add argument.
5825 * remote.c (remote_program_signals): Add 'self' argument.
5827 2014-02-19 Tom Tromey <tromey@redhat.com>
5829 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5830 * target.c (target_pass_signals): Add argument.
5831 * remote.c (remote_pass_signals): Add 'self' argument.
5832 (remote_start_remote): Update.
5833 * procfs.c (procfs_pass_signals): Add 'self' argument.
5834 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5835 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5836 (linux_nat_create_inferior, linux_nat_attach): Update.
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * windows-nat.c (windows_can_run): Add 'self' argument.
5841 * target.h (struct target_ops) <to_can_run>: Add argument.
5842 (target_can_run): Add argument.
5843 * target.c (debug_to_can_run): Add argument.
5844 (update_current_target): Update.
5845 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5846 * inf-child.c (inf_child_can_run): Add 'self' argument.
5847 * go32-nat.c (go32_can_run): Add 'self' argument.
5849 2014-02-19 Tom Tromey <tromey@redhat.com>
5851 * target.h (struct target_ops) <to_has_exited>: Add argument.
5852 (target_has_exited): Add argument.
5853 * target.c (debug_to_has_exited): Add argument.
5854 (update_current_target): Update.
5856 2014-02-19 Tom Tromey <tromey@redhat.com>
5858 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5860 (target_set_syscall_catchpoint): Add argument.
5861 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5863 * target.c (update_current_target): Update.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5869 (target_remove_exec_catchpoint): Add argument.
5870 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5871 (update_current_target): Update.
5872 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5879 (target_insert_exec_catchpoint): Add argument.
5880 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5881 (update_current_target): Update.
5882 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5887 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5889 (target_remove_vfork_catchpoint): Add argument.
5890 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5891 (update_current_target): Update.
5892 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5895 2014-02-19 Tom Tromey <tromey@redhat.com>
5897 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5899 (target_insert_vfork_catchpoint): Add argument.
5900 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5901 (update_current_target): Update.
5902 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5905 2014-02-19 Tom Tromey <tromey@redhat.com>
5907 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5909 (target_remove_fork_catchpoint): Add argument.
5910 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5911 (update_current_target): Update.
5912 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5919 (target_insert_fork_catchpoint): Add argument.
5920 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5921 (update_current_target): Update.
5922 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5929 (target_post_startup_inferior): Add argument.
5930 * target.c (debug_to_post_startup_inferior): Add argument.
5931 (update_current_target): Update.
5932 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5934 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5936 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5938 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5940 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5942 (super_post_startup_inferior): Likewise.
5943 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5945 (super_post_startup_inferior): Likewise.
5946 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5947 Add 'self' argument.
5948 (super_post_startup_inferior): Likewise.
5950 2014-02-19 Tom Tromey <tromey@redhat.com>
5952 * target.h (struct target_ops) <to_load>: Add argument.
5953 * target.c (target_load): Add argument.
5954 (debug_to_load): Add argument.
5955 (update_current_target): Update.
5956 * remote.c (remote_load): Add 'self' argument.
5957 * remote-sim.c (gdbsim_load): Add 'self' argument.
5958 * remote-mips.c (mips_load): Add 'self' argument.
5959 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5960 * monitor.c (monitor_load): Add 'self' argument.
5961 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5963 2014-02-19 Tom Tromey <tromey@redhat.com>
5965 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5966 (target_terminal_info): Add argument.
5967 * target.c (debug_to_terminal_info): Add argument.
5968 (default_terminal_info): Likewise.
5969 * inflow.c (child_terminal_info): Add 'self' argument.
5970 * inferior.h (child_terminal_info): Add 'self' argument.
5971 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5973 2014-02-19 Tom Tromey <tromey@redhat.com>
5975 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5977 (target_terminal_save_ours): Add argument.
5978 * target.c (debug_to_terminal_save_ours): Add argument.
5979 (update_current_target): Update.
5980 * inflow.c (terminal_save_ours): Add 'self' argument.
5981 * inferior.h (terminal_save_ours): Add 'self' argument.
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5986 (target_terminal_ours): Add argument.
5987 * target.c (debug_to_terminal_ours): Add argument.
5988 (update_current_target): Update.
5989 * remote.c (remote_terminal_ours): Add 'self' argument.
5990 (remote_close): Update.
5991 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5992 * inflow.c (terminal_ours): Add 'self' argument.
5993 * inferior.h (terminal_ours): Add 'self' argument.
5994 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5996 2014-02-19 Pedro Alves <palves@redhat.com>
5997 Tom Tromey <tromey@redhat.com>
5999 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6001 (target_terminal_ours_for_output): Add argument.
6002 * target.c (debug_to_terminal_ours_for_output): Add argument.
6003 (update_current_target): Update.
6004 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6005 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6006 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_terminal_inferior>: Add
6012 * target.c (target_terminal_inferior): Add argument.
6013 (update_current_target): Update.
6014 * remote.c (remote_terminal_inferior): Add 'self' argument.
6015 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6016 * inflow.c (terminal_inferior): Add 'self' argument.
6017 * inferior.h (terminal_inferior): Add 'self' argument.
6018 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6019 (go32_terminal_inferior): Add 'self' argument.
6021 2014-02-19 Tom Tromey <tromey@redhat.com>
6023 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6024 (target_terminal_init): Add argument.
6025 * target.c (debug_to_terminal_init): Add argument.
6026 (update_current_target): Update.
6027 * inflow.c (terminal_init_inferior): Add 'self' argument.
6028 * inferior.h (terminal_init_inferior): Add 'self' argument.
6029 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6030 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target.h (struct target_ops)
6035 <to_can_accel_watchpoint_condition>: Add argument.
6036 (target_can_accel_watchpoint_condition): Add argument.
6037 * target.c (debug_to_can_accel_watchpoint_condition): Add
6039 (update_current_target): Update.
6040 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6043 2014-02-19 Tom Tromey <tromey@redhat.com>
6045 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6047 (target_region_ok_for_hw_watchpoint): Add argument.
6048 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6049 (default_region_ok_for_hw_watchpoint): Add argument.
6050 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6051 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6053 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6055 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6057 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6059 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6061 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6063 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6064 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6066 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6067 Add 'self' argument.
6069 2014-02-19 Tom Tromey <tromey@redhat.com>
6071 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6073 (target_insert_watchpoint): Add argument.
6074 * target.c (debug_to_insert_watchpoint): Add argument.
6075 (update_current_target): Update.
6076 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6077 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6078 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6079 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6080 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6081 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6083 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6084 (procfs_insert_hw_watchpoint): Add 'self' argument.
6085 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6087 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6089 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6091 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6092 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6094 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6097 2014-02-19 Tom Tromey <tromey@redhat.com>
6099 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6101 (target_remove_watchpoint): Add argument.
6102 * target.c (debug_to_remove_watchpoint): Add argument.
6103 (update_current_target): Update.
6104 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6105 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6106 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6107 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6108 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6109 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6111 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6112 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6114 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6116 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6118 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6119 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6121 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6124 2014-02-19 Tom Tromey <tromey@redhat.com>
6126 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6128 (target_remove_hw_breakpoint): Add argument.
6129 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6130 (update_current_target): Update.
6131 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6132 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6134 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6135 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6137 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6140 2014-02-19 Tom Tromey <tromey@redhat.com>
6142 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6144 (target_insert_hw_breakpoint): Add argument.
6145 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6146 (update_current_target): Update.
6147 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6148 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6150 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6151 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6152 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6154 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6157 2014-02-19 Tom Tromey <tromey@redhat.com>
6159 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6161 (target_can_use_hardware_watchpoint): Add argument.
6162 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6163 (update_current_target): Update.
6164 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6166 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6168 * remote.c (remote_check_watch_resources): Add 'self' argument.
6169 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6170 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6172 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6173 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6175 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6177 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6179 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6181 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6183 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6185 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6186 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6188 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target.h (struct target_ops) <to_post_attach>: Add argument.
6194 (target_post_attach): Add argument.
6195 * target.c (debug_to_post_attach): Add argument.
6196 (update_current_target): Update.
6197 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6198 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6199 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6200 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6201 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6203 2014-02-19 Tom Tromey <tromey@redhat.com>
6205 * windows-nat.c (windows_close): Add 'self' argument.
6206 * tracepoint.c (tfile_close): Add 'self' argument.
6207 * target.h (struct target_ops) <to_close>: Add argument.
6208 * target.c (target_close): Add argument.
6209 (update_current_target): Update.
6210 * remote.c (remote_close): Add 'self' argument.
6211 * remote-sim.c (gdbsim_close): Add 'self' argument.
6212 * remote-mips.c (mips_close): Add 'self' argument.
6213 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6214 * record-full.c (record_full_close): Add 'self' argument.
6215 * record-btrace.c (record_btrace_close): Add 'self' argument.
6216 * monitor.h (monitor_close): Add 'self' argument.
6217 * monitor.c (monitor_close): Add 'self' argument.
6218 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6219 * linux-nat.c (linux_nat_close): Add argument.
6220 * go32-nat.c (go32_close): Add 'self' argument.
6221 * exec.c (exec_close_1): Add 'self' argument.
6222 * ctf.c (ctf_close): Add 'self' argument.
6223 * corelow.c (core_close): Add 'self' argument.
6224 (core_close_cleanup): Update.
6225 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6226 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6228 2014-02-19 Tom Tromey <tromey@redhat.com>
6230 * remote.c (remote_load): New function.
6231 (init_remote_ops): Use it.
6233 2014-02-19 Tom Tromey <tromey@redhat.com>
6235 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6237 * common/linux-btrace.h (linux_supports_btrace): Update.
6238 * remote.c (remote_supports_btrace): Add "self" argument.
6239 * target-delegates.c: Rebuild.
6240 * target.c (target_supports_btrace): Remove.
6241 * target.h (struct target_ops) <to_supports_btrace>: Add
6242 target_ops argument.
6243 (target_supports_btrace): New define.
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * record-full.c (record_full_beneath_to_resume_ops)
6248 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6249 (record_full_beneath_to_wait)
6250 (record_full_beneath_to_store_registers_ops)
6251 (record_full_beneath_to_store_registers)
6252 (record_full_beneath_to_xfer_partial_ops)
6253 (record_full_beneath_to_xfer_partial)
6254 (record_full_beneath_to_insert_breakpoint_ops)
6255 (record_full_beneath_to_insert_breakpoint)
6256 (record_full_beneath_to_remove_breakpoint_ops)
6257 (record_full_beneath_to_remove_breakpoint)
6258 (record_full_beneath_to_stopped_by_watchpoint)
6259 (record_full_beneath_to_stopped_data_address)
6260 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6261 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6262 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6263 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6264 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6265 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6266 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6267 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6268 (record_full_resume, record_full_wait_1)
6269 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6270 (record_full_store_registers, record_full_xfer_partial)
6271 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6272 (record_full_async, record_full_core_xfer_partial): Use target
6274 * target-delegates.c: Rebuild.
6275 * target.c (current_xfer_partial): Remove.
6276 (update_current_target): Do not INHERIT or de_fault
6277 to_insert_breakpoint, to_remove_breakpoint,
6278 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6279 to_is_async_p, to_async. Do not set to_xfer_partial field.
6280 (default_xfer_partial): Simplify.
6281 (current_xfer_partial): Remove.
6282 (target_wait, target_resume): Simplify.
6283 (find_default_can_async_p, find_default_is_async_p): Update.
6284 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6285 to_xfer_partial, to_stopped_by_watchpoint,
6286 to_stopped_data_address.
6287 (target_store_registers): Simplify.
6288 (forward_target_remove_breakpoint)
6289 (forward_target_insert_breakpoint): Remove.
6290 (target_remove_breakpoint, target_insert_breakpoint)
6291 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6292 * target.h (struct target_ops) <to_resume, to_wait,
6293 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6294 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6295 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6297 (forward_target_remove_breakpoint)
6298 (forward_target_insert_breakpoint): Remove.
6299 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6301 (record_btrace_insert_breakpoint): Delegate directly.
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target-delegates.c: New file.
6307 * target.c: Include target-delegates.c.
6308 (init_dummy_target): Call install_dummy_methods.
6309 (complete_target_initialization): Call install_delegators.
6310 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6311 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6312 * make-target-delegates: New file.
6314 2014-02-19 Tom Tromey <tromey@redhat.com>
6316 * record.c (find_record_target): Use find_target_at.
6317 * target.c (find_target_at): New function.
6318 * target.h (find_target_at): Declare.
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6324 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6326 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6327 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6329 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6331 * linux-nat.c (save_sigtrap): Update.
6332 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6333 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6334 (linux_nat_close): Update.
6335 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6337 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6339 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6340 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6341 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6342 (tmp_to_async): Add 'ops' argument.
6343 (record_full_stopped_by_watchpoint, record_full_async)
6344 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6346 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6347 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6348 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6349 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6350 (remote_is_async_p, remote_async): Add 'ops' argument.
6351 (remote_stopped_data_address): Update.
6352 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6353 * target.c (update_current_target)
6354 (find_default_can_async_p, find_default_is_async_p): Update.
6355 (init_dummy_target): Update.
6356 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6357 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6358 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6359 (target_can_async_p, target_is_async_p, target_async)
6360 (target_stopped_by_watchpoint): Update.
6362 2014-02-19 Yao Qi <yao@codesourcery.com>
6365 * gdbarch.sh: Remove startup_gdbarch.
6366 * gdbarch.c: Regenerated.
6367 * gdbarch.h: Likewise.
6369 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6371 * rl78-tdep.c (rl78_g10_register_name): New function.
6372 (rl78_return_value): Add g10 support.
6373 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6376 2014-02-17 Doug Evans <xdje42@gmail.com>
6378 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6379 (SUBDIR_GUILE_SRCS): Ditto.
6380 (scm-gsmob.o): Ditto.
6382 2014-02-17 Yao Qi <yao@codesourcery.com>
6384 * gnu-nat.c (ILL_RPC): Declare defined function.
6386 2014-02-17 Yao Qi <yao@codesourcery.com>
6388 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6389 mach_msg_type_number_t.
6390 (gnu_write_inferior): Likewise.
6392 2014-02-17 Yao Qi <yao@codesourcery.com>
6394 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6396 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6397 (inf_validate_procs, inf_signal): Likewise.
6398 (S_exception_raise_request): Likewise.
6399 (do_mach_notify_dead_name): Likewise.
6400 (steal_exc_port): Likewise.
6401 (gnu_read_inferior): Change 'copy_count''s type to
6402 mach_msg_type_number_t.
6403 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6406 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6408 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6409 flag. Adjust all users; in particular...
6410 (gnu_wait): ..., don't decrement its value in here...
6411 (gnu_create_inferior): ..., and instead set the flag in here,
6412 around the startup_inferior call, and call that one with
6413 START_INFERIOR_TRAPS_EXPECTED.
6415 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6416 (ILL_RPC): ... new macro.
6417 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6418 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6419 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6420 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6421 functions with ILL_RPC macro.
6422 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6423 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6424 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6425 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6426 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6427 (S_proc_getlogin_reply, S_proc_getsid_reply)
6428 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6429 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6430 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6431 (S_proc_getnports_reply, S_proc_is_important_reply)
6432 (S_proc_get_code_reply): New stub functions, generated with
6435 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6436 collected the type check structures.
6438 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6440 2014-02-14 Doug Evans <dje@google.com>
6442 * target.c (target_write_partial): Fix result type.
6444 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6446 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6447 the proper offsets to access fpregset_t.
6449 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6451 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6452 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6453 * h8300-tdep.c (setmachinelist): Remove global.
6454 * hppa-tdep.c (hppa_sigtramp): Remove global.
6455 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6456 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6457 * ravenscar-thread.c (update_target_observer): Remove global.
6458 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6460 2014-02-12 Tom Tromey <tromey@redhat.com>
6462 * common/rsp-low.c: Update comments.
6463 * common/rsp-low.h: Update comments.
6465 2014-02-12 Tom Tromey <tromey@redhat.com>
6467 * common/rsp-low.c (convert_ascii_to_int): Remove.
6468 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6470 2014-02-12 Tom Tromey <tromey@redhat.com>
6472 * common/rsp-low.h (unhexify): Don't declare.
6473 * common/rsp-low.c (unhexify): Remove.
6475 2014-02-12 Tom Tromey <tromey@redhat.com>
6477 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6478 * common/rsp-low.c (convert_int_to_ascii): Remove.
6480 2014-02-12 Tom Tromey <tromey@redhat.com>
6482 * common/rsp-low.h (hexify): Don't declare.
6483 * common/rsp-low.c (hexify): Remove.
6485 2014-02-12 Tom Tromey <tromey@redhat.com>
6487 * common/rsp-low.c (hexify): Never take strlen of argument.
6489 2014-02-12 Tom Tromey <tromey@redhat.com>
6491 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6492 * remote.c (extended_remote_run, remote_rcmd)
6493 (remote_download_trace_state_variable, remote_save_trace_data)
6494 (remote_set_trace_notes): Update.
6495 * tracepoint.c (encode_source_string, tfile_write_status)
6496 (tfile_write_uploaded_tsv): Update.
6498 2014-02-12 Tom Tromey <tromey@redhat.com>
6500 * tracepoint.c: Include rsp-low.h.
6501 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6502 * remote.c: Include rsp-low.h.
6503 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6504 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6505 (remote_unescape_input): Move to common/rsp-low.c.
6506 * common/rsp-low.h: New file.
6507 * common/rsp-low.c: New file.
6508 * Makefile.in (SFILES): Add common/rsp-low.c.
6509 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6510 (COMMON_OBS): Add rsp-low.o.
6511 (rsp-low.o): New target.
6513 2014-02-12 Tom Tromey <tromey@redhat.com>
6515 * utils.h: Include print-utils.h.
6516 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6517 (int_string, core_addr_to_string, core_addr_to_string_nz)
6518 (hex_string, hex_string_custom): Don't declare.
6519 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6520 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6521 (hex_string_custom, int_string, core_addr_to_string)
6522 (core_addr_to_string_nz, host_address_to_string): Move to
6523 common/print-utils.c.
6524 * common/print-utils.h: New file.
6525 * common/print-utils.c: New file
6526 * Makefile.in (SFILES): Add common/print-utils.c.
6527 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6528 (COMMON_OBS): Add print-utils.o.
6529 (print-utils.o): New target.
6531 2014-02-12 Tom Tromey <tromey@redhat.com>
6533 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6535 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6537 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6539 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6541 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6542 if a PT_IO ptrace request returns sucessfully but indicates that 0
6543 bytes were transferred.
6545 2014-02-12 Pedro Alves <palves@redhat.com>
6546 Kevin Buettner <kevinb@redhat.com>
6548 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6549 TYPE_INSTANCE_FLAG_CODE_SPACE.
6551 2014-02-12 Pedro Alves <palves@redhat.com>
6553 * h8300-tdep.c (pseudo_from_raw_register)
6554 (raw_from_pseudo_register): New functions.
6555 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6558 2014-02-12 Pedro Alves <palves@redhat.com>
6560 * h8300-tdep.c (h8300_register_sim_regno): New function.
6561 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6562 gdbarch_register_sim_regno hook.
6564 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6566 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6568 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6570 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6572 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6574 * obsd-tdep.h (obsd_init_abi): New prototype.
6575 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6576 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6577 (obsd_init_abi): New functions.
6578 * i386obsd-tdep.c: Include "obsd-tdep.h".
6579 (i386obsd_init_abi): Call obsd_init_abi.
6580 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6581 (amd64obsd_init_abi): Call obsd_init_abi.
6582 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6583 obsd-tdep.c to gdb_target_obs.
6585 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6587 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6588 double float arguments to 16-byte in the argument slots.
6590 2014-02-11 Doug Evans <xdje42@gmail.com>
6592 * configure.ac: Don't crash if pkg-config is not found and guile
6593 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6595 * configure: Regenerate.
6597 2014-02-11 Yao Qi <yao@codesourcery.com>
6599 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6600 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6601 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6602 * gnu-nat.c (gnu_xfer_memory): Likewise.
6603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6604 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6606 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6608 2014-02-11 Yao Qi <yao@codesourcery.com>
6610 * target.h (enum target_xfer_error): Rename to ...
6611 (enum target_xfer_status): ... it. New. All users updated.
6612 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6614 (TARGET_XFER_STATUS_ERROR_P): New macro.
6615 (target_xfer_error_to_string): Remove declaration.
6616 (target_xfer_status_to_string): Declare.
6617 (target_xfer_partial_ftype): Adjust it.
6618 (struct target_ops) <to_xfer_partial>: Return
6619 target_xfer_status. Add argument xfered_len. Update
6621 * target.c (target_xfer_error_to_string): Rename to ...
6622 (target_xfer_status_to_string): ... it. New. All callers
6624 (target_read_live_memory): Likewise. Call target_xfer_partial
6625 instead of target_read.
6626 (memory_xfer_live_readonly_partial): Return
6627 target_xfer_status. Add argument xfered_len.
6628 (raw_memory_xfer_partial): Likewise.
6629 (memory_xfer_partial_1): Likewise.
6630 (memory_xfer_partial): Likewise.
6631 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6632 properly. Update debug message.
6633 (default_xfer_partial, current_xfer_partial): Likewise.
6634 (target_write_partial): Likewise.
6635 (target_read_partial): Likewise. All callers updated.
6636 (read_whatever_is_readable): Likewise.
6637 (target_write_with_progress): Likewise.
6638 (target_read_alloc_1): Likewise.
6640 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6641 * auxv.c (procfs_xfer_auxv): Likewise.
6642 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6643 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6644 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6645 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6646 * corefile.c (read_memory): Adjust.
6647 * corelow.c (core_xfer_partial): Likewise.
6648 * ctf.c (ctf_xfer_partial): Likewise.
6649 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6651 (darwin_xfer_partial): Likewise.
6652 * exec.c (section_table_xfer_memory_partial): Likewise. All
6654 (exec_xfer_partial): Likewise.
6655 * exec.h (section_table_xfer_memory_partial): Update
6657 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6659 (gnu_xfer_partial): Likewise.
6660 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6661 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6662 (ia64_hpux_xfer_solib_got): Likewise.
6663 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6664 type of 'partial_len' to ULONGEST.
6665 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6666 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6667 (linux_nat_xfer_partial): Likewise.
6668 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6669 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6670 * monitor.c (monitor_xfer_memory): Likewise.
6671 (monitor_xfer_partial): Likewise.
6672 * procfs.c (procfs_xfer_partial): Likewise.
6673 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6674 * record-full.c (record_full_xfer_partial): Likewise.
6675 (record_full_core_xfer_partial): Likewise.
6676 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6677 (gdbsim_xfer_partial): Likewise.
6678 * remote.c (remote_write_bytes_aux): Likewise. All callers
6680 (remote_write_bytes, remote_read_bytes): Likewise. All
6682 (remote_flash_erase): Likewise. All callers updated.
6683 (remote_write_qxfer): Likewise. All callers updated.
6684 (remote_read_qxfer): Likewise. All callers updated.
6685 (remote_xfer_partial): Likewise.
6686 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6687 (rs6000_xfer_shared_libraries): Likewise.
6688 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6689 (sol_thread_xfer_partial): Likewise.
6690 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6691 (sparc_xfer_partial): Likewise.
6692 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6694 (spu_xfer_partial): Likewise.
6695 * spu-multiarch.c (spu_xfer_partial): Likewise.
6696 * tracepoint.c (tfile_xfer_partial): Likewise.
6697 * windows-nat.c (windows_xfer_memory): Likewise.
6698 (windows_xfer_shared_libraries): Likewise.
6699 (windows_xfer_partial): Likewise.
6700 * valprint.c: Replace 'target_xfer_error' with
6701 'target_xfer_status' in comments.
6703 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6705 Checked in by Joel Brobecker <brobecker@adacore.com>.
6706 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6708 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6710 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6711 function parameters.
6713 2014-02-10 Will Newton <will.newton@linaro.org>
6715 * elfread.c (elf_rel_plt_read): Look for a .got section if
6716 looking up .got.plt fails.
6717 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6718 on address passed to elf_gnu_ifunc_record_cache.
6719 (elf_gnu_ifunc_resolve_addr): Likewise.
6720 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6722 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6724 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6725 (X_RETTURN): New macro.
6726 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6728 * sparc64-tdep.c (sparc64_init_abi): Hook
6729 sparc_in_function_epilogue_p.
6731 2014-02-10 Gary Benson <gbenson@redhat.com>
6733 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6734 Rename name_matcher to symbol_matcher.
6736 2014-02-10 Gary Benson <gbenson@redhat.com>
6738 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6739 Use expand_symtabs_file_matcher_ftype and
6740 expand_symtabs_symbol_matcher_ftype.
6742 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6744 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6745 (struct ada_symbol_cache): New.
6746 (ada_free_symbol_cache): Forward declare.
6747 (struct ada_pspace_data): New.
6748 (ada_pspace_data_handle): New static global.
6749 (get_ada_pspace_data, ada_pspace_data_cleanup)
6750 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6751 (cache_space, cache): Delete, now folded inside struct
6753 (ada_get_symbol_cache): New function.
6754 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6756 (_initialize_ada_language): Remove initialization of cache_space.
6757 Move call to observer_attach_inferior_exit up, grouping it
6758 with the other observer registrations inside this function.
6759 Rename command to be more general. Add call to
6760 register_program_space_data_with_cleanup.
6762 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6764 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6765 ada_new_objfile_observer.
6766 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6767 (_initialize_tasks): Update uses of ada_new_objfile_observer
6768 and ada_tasks_normal_stop_observer.
6770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6772 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6773 returned by the 'Length attribute to integer.
6775 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6777 * ada-lang.c (_initialize_ada_language): Initialize
6778 cache_space obstack.
6780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6782 * ada-lang.c (HASH_SIZE): New macro.
6783 (struct cache_entry): New type.
6784 (cache_space, cache): New static globals.
6785 (ada_clear_symbol_cache, find_entry): New functions.
6786 (lookup_cached_symbol, cache_symbol): Implement.
6787 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6788 (_initialize_ada_language): Attach ada_new_objfile_observer
6789 and ada_free_objfile_observer.
6791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6793 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6794 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6795 struct block * parameter.
6796 (ada_lookup_symbol_list_worker): Constify local variable "block".
6797 Remove cast which is no longer necessary.
6799 2014-02-10 Doug Evans <xdje42@gmail.com>
6801 Add Guile as an extension language.
6802 * NEWS: Mention Guile scripting.
6803 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6804 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6805 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6806 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6807 (CLIBS): Add GUILE_LIBS.
6808 (install-guile): New rule.
6809 (guile.o): New rule.
6810 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6811 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6812 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6813 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6814 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6815 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6816 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6817 * configure.ac: New option --with-guile.
6818 * configure: Regenerate.
6819 * config.in: Regenerate.
6820 * auto-load.c: Remove #include "python/python.h". Add #include
6821 "gdb/section-scripts.h".
6822 (source_section_scripts): Handle Guile scripts.
6823 (_initialize_auto_load): Add name of Guile objfile script to
6824 scripts-directory help text.
6825 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6826 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6827 (struct breakpoint): New member scm_bp_object.
6828 * defs.h (enum command_control_type): New value guile_control.
6829 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6831 (show_user): Update comment.
6832 (_initialize_cli_cmds): Update help text for "show user". Update help
6833 text for max-user-call-depth.
6834 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6836 (multi_line_command_p): Add guile_control.
6837 (print_command_lines): Handle guile_control.
6838 (execute_control_command, recurse_read_control_structure): Ditto.
6839 (process_next_line): Recognize "guile" commands.
6840 * disasm.c (gdb_disassemble_info): Make non-static.
6841 * disasm.h: #include "dis-asm.h".
6842 (struct gdbarch): Add forward decl.
6843 (gdb_disassemble_info): Declare.
6844 * extension.c: #include "guile/guile.h".
6845 (extension_languages): Add guile.
6846 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6847 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6848 * gdbtypes.c (get_unsigned_type_max): New function.
6849 (get_signed_type_minmax): New function.
6850 * gdbtypes.h (get_unsigned_type_max): Declare.
6851 (get_signed_type_minmax): Declare.
6852 * guile/README: New file.
6853 * guile/guile-internal.h: New file.
6854 * guile/guile.c: New file.
6855 * guile/guile.h: New file.
6856 * guile/scm-arch.c: New file.
6857 * guile/scm-auto-load.c: New file.
6858 * guile/scm-block.c: New file.
6859 * guile/scm-breakpoint.c: New file.
6860 * guile/scm-disasm.c: New file.
6861 * guile/scm-exception.c: New file.
6862 * guile/scm-frame.c: New file.
6863 * guile/scm-gsmob.c: New file.
6864 * guile/scm-iterator.c: New file.
6865 * guile/scm-lazy-string.c: New file.
6866 * guile/scm-math.c: New file.
6867 * guile/scm-objfile.c: New file.
6868 * guile/scm-ports.c: New file.
6869 * guile/scm-pretty-print.c: New file.
6870 * guile/scm-safe-call.c: New file.
6871 * guile/scm-string.c: New file.
6872 * guile/scm-symbol.c: New file.
6873 * guile/scm-symtab.c: New file.
6874 * guile/scm-type.c: New file.
6875 * guile/scm-utils.c: New file.
6876 * guile/scm-value.c: New file.
6877 * guile/lib/gdb.scm: New file.
6878 * guile/lib/gdb/boot.scm: New file.
6879 * guile/lib/gdb/experimental.scm: New file.
6880 * guile/lib/gdb/init.scm: New file.
6881 * guile/lib/gdb/iterator.scm: New file.
6882 * guile/lib/gdb/printing.scm: New file.
6883 * guile/lib/gdb/types.scm: New file.
6884 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6885 (VPATH): Add $(GUILE_SRCDIR).
6886 (GUILE_DIR): New variable.
6887 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6888 (all): Add stamp-guile dependency.
6889 (stamp-guile): New rule.
6890 (clean-guile, install-guile, uninstall-guile): New rules.
6891 (install-only): Add install-guile dependency.
6892 (uninstall): Add uninstall-guile dependency.
6893 (clean): Add clean-guile dependency.
6895 2014-02-09 Doug Evans <xdje42@gmail.com>
6897 Revert this patch (which I approved, mea culpa).
6899 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6901 * Makefile.in (all-lib): Remove.
6902 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6904 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6906 Fix Python stack corruption.
6907 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6910 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6912 * Makefile.in (all-lib): Remove.
6913 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6915 2014-02-07 Doug Evans <dje@google.com>
6917 * extension-priv.h (extension_language_script_ops): Add comment.
6918 (extension_language_ops): Add comment.
6919 (active_ext_lang_state): Fix typo in comment.
6921 2014-02-07 Pedro Alves <palves@redhat.com>
6923 PR breakpoints/16292
6924 * infrun.c (handle_signal_stop) <signal arrives while stepping
6925 over a breakpoint>: Switch back to the stepping thread.
6927 2014-02-07 Yao Qi <yao@codesourcery.com>
6929 * target.c (target_xfer_partial): Return zero if LEN is zero.
6931 2014-02-07 Yao Qi <yao@codesourcery.com>
6933 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6934 (ld_so_xfer_auxv): Likewise.
6935 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6936 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6937 * corelow.c (core_xfer_partial): Likewise.
6938 * ctf.c (ctf_xfer_partial): Likewise.
6939 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6940 (darwin_xfer_partial): Likewise.
6941 * exec.c (exec_xfer_partial): Likewise.
6942 * gnu-nat.c (gnu_xfer_partial): Likewise.
6943 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6944 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6945 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6946 * linux-nat.c (linux_xfer_siginfo): Likewise.
6947 (linux_proc_xfer_spu): Likewise.
6948 * procfs.c (procfs_xfer_partial): Likewise.
6949 * record-full.c (record_full_xfer_partial): Likewise.
6950 (record_full_core_xfer_partial): Likewise.
6951 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6952 * remote.c (remote_write_qxfer): Likewise.
6953 (remote_write_qxfer, remote_read_qxfer): Likewise.
6954 (remote_xfer_partial): Likewise.
6955 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6956 (rs6000_xfer_shared_libraries): Likewise.
6957 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6958 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6959 (spu_xfer_partial): Likewise.
6960 * target.c (memory_xfer_partial_1): Likewise.
6961 * tracepoint.c (tfile_xfer_partial): Likewise.
6962 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6963 (windows_xfer_partial): Likewise.
6965 2014-02-07 Yao Qi <yao@codesourcery.com>
6967 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6969 (core_xfer_shared_libraries_aix): Likewise.
6970 * gdbarch.c, gdbarch.h: Regenerated.
6971 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6972 ULONGEST. Change 'len_avail' type to ULONGEST.
6973 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6974 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6976 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6978 2014-02-07 Yao Qi <yao@codesourcery.com>
6980 * corefile.c (memory_error): Get 'exception' from ERR and pass
6981 'exception' to throw_error.
6983 2014-02-06 Doug Evans <xdje42@gmail.com>
6985 * configure.ac (libpython checking): Remove all but python.o from
6986 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6987 * configure: Regenerate.
6989 * Makefile.in (SFILES): Add extension.c.
6990 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6991 (COMMON_OBS): Add extension.o.
6992 * extension.h: New file.
6993 * extension-priv.h: New file.
6994 * extension.c: New file.
6996 * python/python-internal.h: #include "extension.h".
6997 (gdbpy_auto_load_enabled): Declare.
6998 (gdbpy_apply_val_pretty_printer): Declare.
6999 (gdbpy_apply_frame_filter): Declare.
7000 (gdbpy_preserve_values): Declare.
7001 (gdbpy_breakpoint_cond_says_stop): Declare.
7002 (gdbpy_breakpoint_has_cond): Declare.
7003 (void source_python_script_for_objfile): Delete.
7004 * python/python.c: #include "extension-priv.h".
7005 Delete inclusion of "observer.h".
7006 (extension_language_python): Moved here and renamed from
7007 script_language_python in py-auto-load.c.
7008 Redefined to be of type extension_language_defn.
7009 (python_extension_script_ops): New global.
7010 (python_extension_ops): New global.
7011 (struct python_env): New member previous_active.
7012 (restore_python_env): Call restore_active_ext_lang.
7013 (ensure_python_env): Call set_active_ext_lang.
7014 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7016 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7018 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7020 (gdbpy_eval_from_control_command): Renamed from
7021 eval_python_from_control_command, made static. New arg extlang.
7022 (gdbpy_source_script) Renamed from source_python_script, made static.
7024 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7025 result to int. New arg extlang.
7026 (gdbpy_source_objfile_script): Renamed from
7027 source_python_script_for_objfile, made static. New arg extlang.
7028 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7029 static. New args extlang, extlang_printers. Change result type to
7031 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7032 static. New arg extlang. Rename arg printers to extlang_printers
7033 and change type to ext_lang_type_printers *.
7034 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7035 static. Replace argument arg with extlang, extlang_printers.
7036 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7037 (!HAVE_PYTHON, source_python_script): Delete.
7038 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7039 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7040 (!HAVE_PYTHON, start_type_printers): Delete.
7041 (!HAVE_PYTHON, apply_type_printers): Delete.
7042 (!HAVE_PYTHON, free_type_printers): Delete.
7043 (_initialize_python): Delete call to observer_attach_before_prompt.
7044 (finalize_python): Set/restore active extension language.
7045 (gdbpy_finish_initialization) Renamed from
7046 finish_python_initialization, made static. New arg extlang.
7047 (gdbpy_initialized): New function.
7048 * python/python.h: #include "extension.h". Delete #include
7049 "value.h", "mi/mi-cmds.h".
7050 (extension_language_python): Declare.
7051 (GDBPY_AUTO_FILE_NAME): Delete.
7052 (enum py_bt_status): Moved to extension.h and renamed to
7054 (enum frame_filter_flags): Moved to extension.h.
7055 (enum py_frame_args): Moved to extension.h and renamed to
7056 ext_lang_frame_args.
7057 (finish_python_initialization): Delete.
7058 (eval_python_from_control_command): Delete.
7059 (source_python_script): Delete.
7060 (apply_val_pretty_printer): Delete.
7061 (apply_frame_filter): Delete.
7062 (preserve_python_values): Delete.
7063 (gdbpy_script_language_defn): Delete.
7064 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7065 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7067 * auto-load.c: #include "extension.h".
7068 (GDB_AUTO_FILE_NAME): Delete.
7069 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7070 (script_language_gdb): Delete, moved to extension.c and renamed to
7071 extension_language_gdb.
7072 (source_gdb_script_for_objfile): Delete.
7073 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7074 (loaded_script): Change type of language member to
7075 struct extension_language_defn *.
7076 (init_loaded_scripts_info): Initialize
7077 unsupported_script_warning_printed.
7078 (maybe_add_script): Make static. Change type of language arg to
7079 struct extension_language_defn *.
7080 (clear_section_scripts): Reset unsupported_script_warning_printed.
7081 (auto_load_objfile_script_1): Rewrite to use extension language API.
7082 (auto_load_objfile_script): Make public. Remove support-compiled-in
7083 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7084 (source_section_scripts): Rewrite to use extension language API.
7085 (load_auto_scripts_for_objfile): Rewrite to use
7086 auto_load_scripts_for_objfile.
7087 (collect_matching_scripts_data): Change type of language member to
7088 struct extension_language_defn *.
7089 (auto_load_info_scripts): Change type of language arg to
7090 struct extension_language_defn *.
7091 (unsupported_script_warning_print): New function.
7092 (script_not_found_warning_print): Make static.
7093 (_initialize_auto_load): Rewrite construction of scripts-directory
7095 * auto-load.h (struct objfile): Add forward decl.
7096 (struct script_language): Delete.
7097 (struct auto_load_pspace_info): Add forward decl.
7098 (struct extension_language_defn): Add forward decl.
7099 (maybe_add_script): Delete.
7100 (auto_load_objfile_script): Declare.
7101 (script_not_found_warning_print): Delete.
7102 (auto_load_info_scripts): Update prototype.
7103 (auto_load_gdb_scripts_enabled): Declare.
7104 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7105 auto_load_python_scripts_enabled and made public.
7106 (script_language_python): Delete, moved to python.c.
7107 (gdbpy_script_language_defn): Delete.
7108 (info_auto_load_python_scripts): Update to use
7109 extension_language_python.
7111 * breakpoint.c (condition_command): Replace call to
7112 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7113 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7114 with call to breakpoint_ext_lang_cond_says_stop.
7115 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7116 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7117 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7118 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7120 (local_setattro): Print name of extension language with existing
7123 * valprint.c (val_print, value_print): Update to call
7124 apply_ext_lang_val_pretty_printer.
7125 * cp-valprint.c (cp_print_value): Update call to
7126 apply_ext_lang_val_pretty_printer.
7127 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7128 (gdbpy_apply_val_pretty_printer): Renamed from
7129 apply_val_pretty_printer. New arg extlang.
7130 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7132 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7133 extension language API.
7134 * cli/cli-script.c (execute_control_command): Update to call
7135 eval_ext_lang_from_control_command.
7137 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7138 enum ext_lang_bt_status values. Update call to
7139 apply_ext_lang_frame_filter.
7140 (mi_cmd_stack_list_locals): Ditto.
7141 (mi_cmd_stack_list_args): Ditto.
7142 (mi_cmd_stack_list_variables): Ditto.
7143 * mi/mi-main.c: Delete #include "python/python-internal.h".
7144 Add #include "extension.h".
7145 (mi_cmd_list_features): Replace reference to python internal variable
7146 gdb_python_initialized with call to ext_lang_initialized_p.
7148 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7149 Update to use enum ext_lang_frame_args. Update to call
7150 apply_ext_lang_frame_filter.
7151 * python/py-framefilter.c (extract_sym): Update to use enum
7153 (extract_value, py_print_type, py_print_value): Ditto.
7154 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7155 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7156 (py_print_frame): Ditto.
7157 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7158 New arg extlang. Update to use enum ext_lang_bt_status.
7160 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7161 finish_python_initialization. Replace with call to
7162 finish_ext_lang_initialization.
7164 * typeprint.c (do_free_global_table): Update to call
7165 free_ext_lang_type_printers.
7166 (create_global_typedef_table): Update to call
7167 start_ext_lang_type_printers.
7168 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7169 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7170 (type_print_options): Change type of global_printers from "void *"
7171 to "struct ext_lang_type_printers *".
7173 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7174 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7175 (gdbpy_preserve_values): Renamed from preserve_python_values.
7177 (!HAVE_PYTHON, preserve_python_values): Delete.
7179 * utils.c (quit_flag): Delete, moved to extension.c.
7180 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7183 * eval.c: Delete #include "python/python.h".
7184 * main.c: Delete #include "python/python.h".
7186 * defs.h: Update comment.
7188 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7192 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7194 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7197 2014-02-05 Yao Qi <yao@codesourcery.com>
7199 * remote.c (remote_pass_signals): Remove local 'buf' and use
7201 (remote_program_signals): Likewise.
7203 2014-02-05 Yao Qi <yao@codesourcery.com>
7205 * ctf.c: Include "inferior.h" and "gdbthread.h".
7206 (CTF_PID): A new macro.
7207 (ctf_open): Call inferior_appeared and add_thread_silent.
7208 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7209 (ctf_thread_alive): New function.
7210 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7212 2014-02-05 Yao Qi <yao@codesourcery.com>
7216 2013-05-24 Yao Qi <yao@codesourcery.com>
7218 * tracepoint.c (TFILE_PID): Remove.
7219 (tfile_open): Don't add thread and inferior.
7220 (tfile_close): Don't set 'inferior_ptid'. Don't call
7221 exit_inferior_silent.
7222 (tfile_thread_alive): Remove.
7223 (init_tfile_ops): Don't set field 'to_thread_alive' of
7226 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7228 * remote.c (remote_start_remote): Call remote_check_symbols even
7229 if only symbol-file (not file) has been given.
7231 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7233 * gdbarch.sh (skip_entrypoint): New callback.
7234 * gdbarch.c, gdbarch.h: Regenerate.
7235 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7236 * infrun.c (fill_in_stop_func): Likewise.
7237 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7238 (ppc_elfv2_elf_make_msymbol_special): New function.
7239 (ppc_elfv2_skip_entrypoint): Likewise.
7240 (ppc_linux_init_abi): Install them for ELFv2.
7242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7244 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7245 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7246 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7247 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7248 structures returned in GPRs.
7250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7253 offset to the stack parameter list for the ELFv2 ABI.
7255 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7257 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7258 set_gdbarch_convert_from_func_ptr_addr and
7259 set_gdbarch_elf_make_msymbol_special for ELFv1.
7260 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7261 function descriptors on ELFv1.
7262 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7263 set up r12 at function entry.
7265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7267 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7268 (struct gdbarch_tdep): New member elf_abi.
7270 * rs6000-tdep.c: Include "elf/ppc64.h".
7271 (rs6000_gdbarch_init): Detect ELF ABI version.
7273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7276 within a register pair holding a DFP 128-bit value on little-endian.
7277 (ppc64_sysv_abi_return_value_base): Likewise.
7278 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7279 (dfp_pseudo_register_write): Likewise.
7281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7284 offset on little-endian when passing _Decimal32.
7285 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7289 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7290 of the overlapped FP register within the VSX register on little-
7292 (efpr_pseudo_register_write): Likewise.
7294 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7297 offset on little-endian when passing small structures.
7299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7301 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7302 (struct ppc64_sysv_argpos): New data structure.
7303 (ppc64_sysv_abi_push_float): Remove.
7304 (ppc64_sysv_abi_push_val): New function.
7305 (ppc64_sysv_abi_push_integer): Likewise.
7306 (ppc64_sysv_abi_push_freg): Likewise.
7307 (ppc64_sysv_abi_push_vreg): Likewise.
7308 (ppc64_sysv_abi_push_param): Likewise.
7309 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7310 (ppc64_sysv_abi_return_value_base): New function.
7311 (ppc64_sysv_abi_return_value): Refactor to use it.
7313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7315 * NEWS: Document new target powerpc64le-*-linux*.
7317 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7319 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7320 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7322 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7323 register set used in ELF core dumps. Add floating-point register set.
7325 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7327 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7328 dwarf2_to_gdb[] table using symbolic constants. Adjust
7329 penultimate entry from number representing the PC register
7330 to symbolic constant representing the MDR register. Add
7331 constant for the PC register to the end of the table.
7333 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7335 * bsd-kvm.c: Include <sys/param.h>
7337 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7339 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7341 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7343 * ada-lang.h (clear_ada_sym_cache): Delete.
7345 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7347 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7349 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7351 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7352 the sigreturn register save area only if the syscall is
7355 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7357 * valops.c (value_slice): Minor reformatting.
7359 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7361 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7363 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7365 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7367 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7368 (ada_ignore_descriptive_types_p): New static global.
7369 (find_parallel_type_by_descriptive_type): Return immediately
7370 if ada_ignore_descriptive_types_p is set.
7371 (_initialize_ada_language): Register new commands "maintenance
7372 set ada", "maintenance show ada", "maintenance set ada
7373 ignore-descriptive-types" and "maintenance show ada
7374 ignore-descriptive-types".
7375 * NEWS: Add entry for new "maint ada set/show
7376 ignore-descriptive-types" commands.
7378 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7380 * record-btrace.c (record_btrace_close): Call btrace_teardown
7383 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7385 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7388 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7390 * ada-typeprint (type_is_full_subrange_of_target_type):
7392 (print_range): Add parameter bounds_prefered_p. If not set,
7393 try printing range types using the name of their base type.
7394 (print_range_type): Add parameter bounds_prefered_p.
7395 Use it in call to print_range.
7396 (print_array_type, ada_print_type): Update calls to print_range
7397 and print_range_type.
7399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7401 * ada-typeprint.c (print_array_type, print_choices, print_range)
7402 (print_range_bound, print_dynamic_range_bound, print_range_type):
7405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7407 * ada-typeprint.c (print_range): Add missing empty line
7408 after local declaration.
7410 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7412 * ada-valprint.c (print_optional_low_bound): Get index_type's
7413 target type for as long as it is a TYPE_CODE_RANGE.
7415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7417 * procfs.c (procfs_make_note_section): Remove assertion and
7420 2014-01-24 Yao Qi <yao@codesourcery.com>
7422 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7423 * corelow.c (get_core_siginfo): Likewise.
7425 2014-01-24 Yao Qi <yao@codesourcery.com>
7427 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7428 ULONGEST. Don't check 'len' is negative.
7429 (remote_write_bytes): Change type of 'len' to ULONGEST.
7431 2014-01-23 Tom Tromey <tromey@redhat.com>
7434 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7435 Handle exception from frame.block.
7436 (FrameVars.fetch_frame_locals): Likewise.
7438 2014-01-23 Tom Tromey <tromey@redhat.com>
7441 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7442 on a NULL pointer. Move "goto error" to correct place.
7444 2014-01-23 Tom Tromey <tromey@redhat.com>
7447 * python/py-framefilter.c (apply_frame_filter): Call
7448 ensure_python_env after computing gdbarch.
7450 2014-01-23 Yao Qi <yao@codesourcery.com>
7452 * target.c (raw_memory_xfer_partial): Change argument type
7453 from void * to gdb_byte *.
7454 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7456 2014-01-22 Doug Evans <dje@google.com>
7458 New gdbserver option --debug-format=timestamp.
7461 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7463 * syscalls/s390x-linux.xml: New file.
7464 * syscalls/s390-linux.xml: New file.
7465 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7466 (XML_SYSCALL_FILENAME_S390X): Likewise.
7467 (op_svc): New enum value for SVC opcode.
7468 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7469 (s390_linux_get_syscall_number): New function.
7470 (s390_gdbarch_init): Register '*get_syscall_number' and the
7471 syscall xml file name.
7472 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7473 "s390-linux.xml" and "s390x-linux.xml".
7474 * NEWS: Announce new feature.
7476 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7478 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7480 2014-01-22 Pedro Alves <palves@redhat.com>
7482 * xtensa-config.c: Include defs.h.
7484 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7486 * common/common-utils.h: Add "ARI:" comment beside __func__
7489 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7491 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7492 documentation a bit.
7494 2014-01-21 Roland McGrath <mcgrathr@google.com>
7496 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7497 * configure: Regenerate.
7498 * aclocal.m4: Regenerate.
7499 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7500 New substituted variables.
7501 (install-strip): New target.
7502 (INSTALL_SCRIPT): New substituted variable.
7503 (FLAGS_TO_PASS): Add it.
7504 (install-only): Use $(INSTALL_SCRIPT) rather than
7505 $(INSTALL_PROGRAM) for gcore.
7507 2014-01-20 Tom Tromey <tromey@redhat.com>
7509 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7512 2014-01-20 Tom Tromey <tromey@redhat.com>
7514 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7515 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7516 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7517 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7518 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7519 (struct cmd_list_element) <flags>: Remove.
7520 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7521 doc_allocated>: New fields.
7522 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7524 * maint.c (maintenance_do_deprecate): Update.
7525 * top.c (execute_command): Update.
7527 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7529 * xtensa-linux-nat.c: Include asm/ptrace.h.
7531 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7533 * Makefile.in (SFILES): Add d-support.c.
7534 (COMMON_OBS): Add d-support.o.
7535 * d-lang.h (d_parse_symbol): Add comment, now defined in
7537 * d-lang.c (parse_call_convention)
7538 (parse_attributes, parse_function_types)
7539 (parse_function_args, parse_type, parse_identifier)
7540 (call_convention_p, d_parse_symbol): Move functions to ...
7541 * d-support.c: ... New file.
7543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7545 * d-lang.h (d_parse_symbol): Add declaration.
7546 * d-lang.c (extract_identifiers)
7547 (extract_type_info): Remove functions.
7548 (parse_call_convention, parse_attributes)
7549 (parse_function_types, parse_function_args)
7550 (parse_type, parse_identifier, call_convention_p)
7551 (d_parse_symbol): New functions.
7552 (d_demangle): Use d_parse_symbol to demangle D symbols.
7554 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7556 * d-lang.h (struct builtin_d_type): New data type.
7557 (builtin_d_type): Add declaration.
7558 * d-lang.c (d_language_arch_info, build_d_types)
7559 (builtin_d_type): New functions.
7560 (enum d_primitive_types): New data type.
7561 (d_language_defn): Change c_language_arch_info to
7562 d_language_arch_info.
7563 (d_type_data): New static variable.
7564 (_initialize_d_language): Initialize d_type_data.
7566 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7568 * d-lang.h (d_main_name): Add declaration.
7569 * d-lang.c (d_main_name): New function.
7570 * symtab.c (find_main_name): Add call to d_main_name.
7572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7574 * d-lang.c (d_language_defn): Change macro_expansion_c to
7577 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7579 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7581 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7583 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7584 gdb_exception" declaration.
7585 * remote.c (getpkt_or_notif_sane): Likewise.
7587 2014-01-17 Doug Evans <dje@google.com>
7589 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7590 function, contents of dirnames_to_char_ptr_vec_append moved here.
7591 (delim_string_to_char_ptr_vec): New function.
7592 (dirnames_to_char_ptr_vec_append): Rewrite.
7593 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7595 2014-01-17 Doug Evans <dje@google.com>
7597 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7599 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7600 #include "common-utils.h".
7601 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7602 * common/vec.h (VEC_ASSERT_PASS): Update.
7603 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7604 (MACH_CHECK_ERROR): Update.
7606 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7608 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7610 * gdbarch.h: Regenerate.
7612 2014-01-16 Tom Tromey <tromey@redhat.com>
7614 * value.c (struct value) <regnum>: Move earlier.
7616 2014-01-16 Tom Tromey <tromey@redhat.com>
7618 * remote.c (extended_remote_create_inferior): Rename from
7619 extended_remote_create_inferior_1. Add "ops" argument. Remove
7622 2014-01-16 Pedro Alves <palves@redhat.com>
7624 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7625 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7628 2014-01-16 Doug Evans <dje@google.com>
7630 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7634 * btrace.h (btrace_thread_flag): New.
7635 (struct btrace_thread_info) <flags>: New.
7636 * record-btrace.c (record_btrace_resume_thread)
7637 (record_btrace_find_thread_to_move, btrace_step_no_history)
7638 (btrace_step_stopped, record_btrace_start_replaying)
7639 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7640 (record_btrace_find_resume_thread): New.
7641 (record_btrace_resume, record_btrace_wait): Extend.
7642 (record_btrace_can_execute_reverse): New.
7643 (record_btrace_open): Fail in non-stop mode.
7644 (record_btrace_set_replay): Split into this, ...
7645 (record_btrace_stop_replaying): ... this, ...
7646 (record_btrace_clear_histories): ... and this.
7647 (init_record_btrace_ops): Init to_can_execute_reverse.
7648 * NEWS: Announce it.
7650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7652 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7653 (forward_target_decr_pc_after_break)
7654 (target_decr_pc_after_break): New.
7655 * target.c (forward_target_decr_pc_after_break)
7656 (target_decr_pc_after_break): New.
7657 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7658 instead of gdbarch_decr_pc_after_break.
7659 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7660 instead of gdbarch_decr_pc_after_break.
7661 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7662 instead of gdbarch_decr_pc_after_break.
7663 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7664 instead of gdbarch_decr_pc_after_break.
7665 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7666 instead of gdbarch_decr_pc_after_break.
7667 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7668 instead of gdbarch_decr_pc_after_break.
7670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7672 * btrace.c: Include regcache.h.
7673 (btrace_add_pc): New.
7674 (btrace_enable): Call btrace_add_pc.
7675 (btrace_is_empty): New.
7676 * btrace.h (btrace_is_empty): New.
7677 * record-btrace.c (require_btrace, record_btrace_info): Call
7680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7682 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7683 Support delta reads.
7684 (linux_disable_btrace): Change return type.
7685 * common/linux-btrace.h (linux_read_btrace): Change parameters
7686 and return type to allow error reporting. Update users.
7687 (linux_disable_btrace): Change return type. Update users.
7688 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7690 (btrace_error): New.
7691 (btrace_block) <begin>: Comment on BEGIN == 0.
7692 * btrace.c (btrace_compute_ftrace): Start from the end of
7694 (btrace_stitch_trace, btrace_clear_history): New.
7695 (btrace_fetch): Read delta trace, return if replaying.
7696 (btrace_clear): Move clear history code to btrace_clear_history.
7697 (parse_xml_btrace): Throw an error if parsing failed.
7698 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7699 and return type to allow error reporting.
7700 (target_read_btrace): Change parameters and return type to allow
7702 * target.c (target_read_btrace): Update.
7703 * remote.c (remote_read_btrace): Support delta reads. Pass
7705 * NEWS: Announce it.
7707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7709 * record.h (record_btrace_frame_unwind)
7710 (record_btrace_tailcall_frame_unwind): New declarations.
7711 * dwarf2-frame: Include record.h
7712 (dwarf2_frame_cfa): Throw an error for btrace frames.
7713 * record-btrace.c: Include hashtab.h.
7714 (btrace_get_bfun_name): New.
7715 (btrace_call_history): Call btrace_get_bfun_name.
7716 (struct btrace_frame_cache): New.
7718 (bfcache_hash, bfcache_eq, bfcache_new): New.
7719 (btrace_get_frame_function): New.
7720 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7721 (record_btrace_frame_this_id): Compute own id.
7722 (record_btrace_frame_prev_register): Provide PC, throw_error
7723 for all other registers.
7724 (record_btrace_frame_sniffer): Detect btrace frames.
7725 (record_btrace_tailcall_frame_sniffer): New.
7726 (record_btrace_frame_dealloc_cache): New.
7727 (record_btrace_frame_unwind): Add new functions.
7728 (record_btrace_tailcall_frame_unwind): New.
7729 (_initialize_record_btrace): Allocate cache.
7730 * btrace.c (btrace_clear): Call reinit_frame_cache.
7731 * NEWS: Announce it.
7733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7735 * record-btrace.c (record_btrace_set_replay)
7736 (record_btrace_goto_begin, record_btrace_goto_end)
7737 (record_btrace_goto): New.
7738 (init_record_btrace_ops): Initialize them.
7739 * NEWS: Announce it.
7741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7743 * record-btrace.c (record_btrace_find_new_threads)
7744 (record_btrace_thread_alive): New.
7745 (init_record_btrace_ops): Initialize to_find_new_threads and
7748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7750 * record-btrace.c (record_btrace_resume): New.
7751 (record_btrace_wait): New.
7752 (init_record_btrace_ops): Initialize to_wait and to_resume.
7754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7756 * record-btrace.c (record_btrace_xfer_partial)
7757 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7758 (record_btrace_allow_memory_access): New.
7759 (init_record_btrace_ops): Initialize new methods.
7760 * target.c (raw_memory_xfer_partial): Bail out if target reports
7761 that this memory is not available.
7763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7765 * target.h (target_ops) <to_insert_breakpoint>
7766 <to_remove_breakpoint>: Add target_ops parameter.
7767 (forward_target_insert_breakpoint): New.
7768 (forward_target_remove_breakpoint): New.
7769 (memory_remove_breakpoint, memory_insert_breakpoint):
7770 Add target_ops parameter.
7771 * target.c (target_insert_breakpoint): Split into this and ...
7772 (forward_target_insert_breakpoint): ... this.
7773 (target_remove_breakpoint): Split into this and ...
7774 (forward_target_remove_breakpoint): ... this.
7775 (debug_to_insert_breakpoint): Add target_ops parameter.
7776 Call forward_target_insert_breakpoint.
7777 (debug_to_remove_breakpoint): Add target_ops parameter.
7778 Call forward_target_remove_breakpoint.
7779 (update_current_target): Do not inherit or default to_insert_breakpoint
7780 and to_remove_breakpoint.
7781 * corelow.c (ignore): Add target_ops parameter.
7782 * exec.c (ignore): Add target_ops parameter.
7783 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7784 Add target_ops parameter.
7785 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7786 Add target_ops parameter.
7787 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7788 Add target_ops parameter.
7789 * record-full.c (record_full_beneath_to_insert_breakpoint)
7790 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7791 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7792 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7793 (record_full_core_remove_breakpoint): Add target_ops parameter.
7795 (record_full_beneath_to_insert_breakpoint_ops)
7796 (record_full_beneath_to_remove_breakpoint_ops)
7797 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7798 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7799 tmp_to_remove_breakpoint_ops,
7800 record_full_beneath_to_insert_breakpoint_ops, and
7801 record_full_beneath_to_remove_breakpoint_ops.
7802 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7803 (m32r_remove_breakpoint): Add target_ops parameter.
7804 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7805 Add target_ops parameter.
7806 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7807 Add target_ops parameter.
7809 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7810 Markus Metzger <markus.t.metzger@intel.com>
7812 * record-btrace.c: Include frame-unwind.h.
7813 (record_btrace_frame_unwind_stop_reason)
7814 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7815 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7817 (init_record_btrace_ops): Install it.
7819 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7821 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7824 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7826 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7829 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7831 * frame-unwind.c: Include target.h.
7832 (frame_unwind_try_unwinder): New function with code from ...
7833 (frame_unwind_find_by_frame): ... here. New variable
7834 unwinder_from_target, call also target_get_unwinder)
7835 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7836 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7837 * target.h (struct target_ops): New fields to_get_unwinder and
7838 to_get_tailcall_unwinder.
7839 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7843 * record-btrace.c (record_btrace_fetch_registers)
7844 (record_btrace_store_registers)
7845 (record_btrace_to_prepare_to_store): New.
7846 (init_record_btrace_ops): Add the above.
7848 2014-01-16 Tom Tromey <tromey@redhat.com>
7850 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7851 * target.h (struct target_ops) <to_prepare_to_store>: Add
7853 (target_prepare_to_store): Add argument.
7854 * target.c (debug_to_prepare_to_store): Add argument.
7855 (update_current_target): Update.
7856 * remote.c (remote_prepare_to_store): Add 'self' argument.
7857 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7858 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7859 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7860 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7862 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7863 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7864 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7865 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7866 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7870 * btrace.h (replay) <replay>: New.
7871 (btrace_is_replaying): New.
7872 * btrace.c (btrace_clear): Free replay iterator.
7873 (btrace_is_replaying): New.
7874 * record-btrace.c (record_btrace_is_replaying): New.
7875 (record_btrace_info): Print insn number if replaying.
7876 (record_btrace_insn_history): Start at replay position.
7877 (record_btrace_call_history): Start at replay position.
7878 (init_record_btrace_ops): Init to_record_is_replaying.
7880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7882 * record-btrace.c (record_btrace_insn_history_range): Include
7884 (record_btrace_insn_history_from): Adjust range.
7885 (record_btrace_call_history_range): Include
7887 (record_btrace_call_history_from): Adjust range.
7888 * NEWS: Announce changes.
7890 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7892 * record.h (enum record_print_flag)
7893 <record_print_indent_calls>: New.
7894 * record.c (get_call_history_modifiers): Recognize /c modifier.
7895 (_initialize_record): Document /c modifier.
7896 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7897 Reorder fields. Optionally indent the function name. Update
7899 * NEWS: Announce changes.
7901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7903 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7907 * btrace.c (ftrace_new_function): Start counting at one.
7908 * record-btrace.c (record_btrace_info): Adjust number of calls
7910 * NEWS: Announce it.
7912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7914 * record-btrace.c (btrace_call_history_insn_range): Print
7915 insn range as [begin, end].
7917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7919 * btrace.h (struct btrace_func_link): New.
7920 (enum btrace_function_flag): New.
7921 (struct btrace_inst): Rename to ...
7922 (struct btrace_insn): ...this. Update all users.
7923 (struct btrace_func) <ibegin, iend>: Remove.
7924 (struct btrace_func_link): New.
7925 (struct btrace_func): Rename to ...
7926 (struct btrace_function): ...this. Update all users.
7927 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7928 (number, level, flags>: New.
7929 (struct btrace_insn_iterator): Rename to ...
7930 (struct btrace_insn_history): ...this.
7932 (struct btrace_insn_iterator, btrace_call_iterator): New.
7933 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7934 (struct btrace_target_info) <begin, end, level>
7935 <insn_history, call_history>: New.
7936 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7937 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7938 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7939 (btrace_call_number, btrace_call_begin, btrace_call_end)
7940 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7941 (btrace_find_function_by_number, btrace_set_insn_history)
7942 (btrace_set_call_history): New.
7943 * btrace.c (btrace_init_insn_iterator)
7944 (btrace_init_func_iterator, compute_itrace): Remove.
7945 (ftrace_print_function_name, ftrace_print_filename)
7946 (ftrace_skip_file): Change
7948 (ftrace_init_func): Remove.
7949 (ftrace_debug): Use new btrace_function fields.
7950 (ftrace_function_switched): Also consider gaining and
7951 losing symbol information).
7952 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7953 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7954 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7956 (ftrace_new_function): Move. Remove debug print.
7957 (ftrace_update_lines, ftrace_update_insns): New.
7958 (ftrace_update_function): Check for call, ret, and jump.
7959 (compute_ftrace): Renamed to ...
7960 (btrace_compute_ftrace): ...this. Rewritten to compute call
7962 (btrace_fetch, btrace_clear): Updated.
7963 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7964 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7965 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7966 (btrace_call_number, btrace_call_begin, btrace_call_end)
7967 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7968 (btrace_find_function_by_number, btrace_set_insn_history)
7969 (btrace_set_call_history): New.
7970 * record-btrace.c (require_btrace): Use new btrace thread
7972 (record_btrace_info, btrace_insn_history)
7973 (record_btrace_insn_history, record_btrace_insn_history_range):
7974 Use new btrace thread info fields and new iterator.
7975 (btrace_func_history_src_line): Rename to ...
7976 (btrace_call_history_src_line): ...this. Use new btrace
7978 (btrace_func_history): Rename to ...
7979 (btrace_call_history): ...this. Use new btrace thread info
7980 fields and new iterator.
7981 (record_btrace_call_history, record_btrace_call_history_range):
7982 Use new btrace thread info fields and new iterator.
7984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7986 * frame.h (frame_id_build_unavailable_stack_special): New.
7987 * frame.c (frame_id_build_unavailable_stack_special): New.
7989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7991 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7992 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7993 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7995 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7996 (i386_insn_is_jump, i386_jmp_p): New.
7997 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7998 insn_is_jump to gdbarch.
7999 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8000 * gdbarch.h: Regenerated.
8001 * gdbarch.c: Regenerated.
8002 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8003 (default_insn_is_jump): New.
8004 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8005 (default_insn_is_jump): New.
8007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8009 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8011 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8012 (btrace_read_type) <btrace_read_new>: Change to ...
8013 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8017 * common/linux-btrace.c (linux_read_btrace): Free trace from
8020 2014-01-15 Doug Evans <dje@google.com>
8022 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8025 2014-01-15 Tom Tromey <tromey@redhat.com>
8027 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8028 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8029 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8030 (set_objfile_main_name): New function.
8031 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8032 language_of_main>: New fields.
8033 (set_objfile_main_name): Declare.
8034 * symtab.c (find_main_name): Loop over objfiles to find the main
8036 (set_main_name): Now static.
8037 (get_main_info): Add comment.
8038 * symtab.h (set_main_name): Don't declare.
8040 2014-01-15 Tom Tromey <tromey@redhat.com>
8042 * symtab.c (main_progspace_key): New global.
8043 (struct main_info): New.
8044 (name_of_main, language_of_main): Remove.
8045 (get_main_info, main_info_cleanup): New function.
8046 (set_main_name, main_name, main_language): Use get_main_info.
8047 (_initialize_symtab): Initialize main_progspace_key.
8049 2014-01-15 Tom Tromey <tromey@redhat.com>
8051 * dbxread.c (process_one_symbol): Update.
8052 * dwarf2read.c (read_partial_die): Update.
8053 * symfile.c (set_initial_language): Call main_language.
8054 * symtab.c (language_of_main): Now static.
8055 (set_main_name): Add 'lang' parameter.
8056 (find_main_name): Update.
8057 (main_language): New function.
8058 (symtab_observer_executable_changed): Update.
8059 * symtab.h (set_main_name): Update.
8060 (language_of_main): Remove.
8061 (main_language): Declare.
8063 2014-01-15 Tom Tromey <tromey@redhat.com>
8065 * symfile.c (init_entry_point_info): Use new "initialized" field.
8067 * objfiles.h (struct entry_point) <initialized>: New field.
8068 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8069 (struct objfile) <ei>: ...here. Remove.
8070 * objfiles.c (entry_point_address_query): Update.
8072 2014-01-15 Tom Tromey <tromey@redhat.com>
8074 * objfiles.c (entry_point_address_query): Relocate entry point
8076 (objfile_relocate1): Do not relocate entry point address.
8077 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8078 <the_bfd_section_index>: New field.
8079 * symfile.c (init_entry_point_info): Find the entry point's
8082 2014-01-15 Tom Tromey <tromey@redhat.com>
8084 * solib-frv.c (enable_break): Use entry_point_address_query.
8086 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8088 * NEWS: Add note on improved process record-replay on
8089 arm*-linux* targets.
8091 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8093 * arm-tdep.c (enum arm_record_result): New enum.
8094 (arm_record_unsupported_insn): New function.
8095 (arm_record_coproc_data_proc): Removed.
8096 (thumb2_record_ld_st_multiple): New function.
8097 (thumb2_record_ld_st_dual_ex_tbb): New function.
8098 (thumb2_record_data_proc_sreg_mimm): New function.
8099 (thumb2_record_ps_dest_generic): New function.
8100 (thumb2_record_branch_misc_cntrl): New function.
8101 (thumb2_record_str_single_data): New function.
8102 (thumb2_record_ld_mem_hints): New function.
8103 (thumb2_record_ld_word): New function.
8104 (thumb2_record_lmul_lmla_div): New function.
8105 (thumb2_record_decode_insn_handler): New function.
8106 (decode_insn): Add thumb32 instruction handlers.
8108 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8110 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8111 (struct arm_linux_record_tdep): Declare.
8112 (arm_canonicalize_syscall): New function.
8113 (arm_all_but_pc_registers_record): New function.
8114 (arm_linux_syscall_record): New function.
8115 (arm_linux_init_abi): Add syscall recording constructs.
8116 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8117 decoding. (arm_record_coproc_data_proc): Update arm syscall
8119 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8120 <arm_syscall_record>: New field.
8121 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8126 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8127 register for push instruction recording.
8129 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8131 * arm-tdep.c (thumb_record_misc): Update to correct logical
8132 error while recording ldm, ldmia and pop instructions.
8134 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8136 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8138 2014-01-15 Pedro Alves <palves@redhat.com>
8140 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8141 (go32_resume, go32_fetch_registers, store_register)
8142 (go32_store_registers, go32_prepare_to_store)
8143 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8144 (go32_create_inferior, go32_can_run, go32_terminal_init)
8145 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8148 2014-01-15 Tom Tromey <tromey@redhat.com>
8150 * target.h (async_callback_ftype): New typedef.
8151 (struct target_ops) <to_async>: Use it.
8153 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8155 * python/py-value.c (get_field_type): Remove unnecessary curly
8156 braces for single-statement if block.
8158 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8160 * python/py-type.c (convert_field): Add missing empty line
8163 2014-01-14 Doug Evans <dje@google.com>
8165 * symfile.h (expand_symtabs_matching): Renamed from
8166 expand_partial_symbol_names. Update prototype.
8167 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8168 * symfile.c (expand_symtabs_matching): Renamed from
8169 expand_partial_symbol_names. New args file_matcher, kind.
8170 Rename arg fun to symbol_matcher.
8171 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8172 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8173 ada_expand_partial_symbol_name.
8174 (ada_make_symbol_completion_list): Update to call
8175 expand_symtabs_matching.
8176 (ada_add_global_exceptions): Call expand_symtabs_matching.
8177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8178 call map_symbol_filenames.
8179 * symtab.c (sources_info): Update to call map_symbol_filenames.
8180 (search_symbols): Call expand_symtabs_matching.
8181 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8182 (default_make_symbol_completion_list_break_on): Update to call
8183 expand_symtabs_matching.
8184 (make_source_files_completion_list): Update to call
8185 map_symbol_filenames.
8187 2014-01-14 Doug Evans <dje@google.com>
8189 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8190 (expand_symtabs_symbol_matcher_ftype): New typedef.
8191 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8193 * symfile.c (expand_partial_symbol_names): Update to use
8194 expand_symtabs_symbol_matcher_ftype.
8195 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8196 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8197 Arg name_matcher renamed to symbol_matcher.
8198 * psymtab.c (recursively_search_psymtabs): Update to use
8199 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8201 (expand_symtabs_matching_via_partial): Update to use
8202 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8203 Arg name_matcher renamed to symbol_matcher.
8205 2014-01-14 Doug Evans <dje@google.com>
8207 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8208 (map_partial_symbol_filenames): Ditto.
8209 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8210 (map_partial_symbol_filenames): Ditto.
8211 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8212 (map_partial_symbol_filenames): Ditto.
8213 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8214 (map_partial_symbol_filenames): Ditto.
8215 * symtab.c: Delete #include "psymtab.h".
8217 2014-01-14 Pedro Alves <palves@redhat.com>
8218 Tom Tromey <tromey@redhat.com>
8220 * infrun.c (use_displaced_stepping): Use find_record_target
8221 instead of RECORD_IS_USED.
8222 (adjust_pc_after_break): Use record_full_is_used instead of
8224 * record-btrace.c (record_btrace_open): Call record_preopen
8225 instead of checking RECORD_IS_USED.
8226 * record-full.c (record_full_shortname)
8227 (record_full_core_shortname): New globals.
8228 (record_full_is_used): New function.
8229 (find_full_open): Call record_preopen instead of checking
8231 (init_record_full_ops): Set the target's shortname to
8232 record_full_shortname.
8233 (init_record_full_core_ops): Set the target's shortname to
8234 record_full_core_shortname.
8235 * record-full.h (record_full_is_used): Declare.
8236 * record.c (find_record_target): Make extern.
8237 (record_preopen): New function.
8238 * record.h (RECORD_IS_USED): Delete macro.
8239 (find_record_target, record_preopen): Declare functions.
8241 2014-01-14 Yao Qi <yao@codesourcery.com>
8243 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8244 'len''s type to ULONGEST.
8245 (core_xfer_shared_libraries_aix): Likewise.
8246 * gdbarch.c, gdbarch.h: Regenerated.
8247 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8248 Change type of 'len' to ULONGEST.
8249 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8250 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8252 2014-01-14 Yao Qi <yao@codesourcery.com>
8254 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8255 type of 'len' to ULONGEST.
8256 (linux_xfer_osdata_processgroups): Likewise.
8257 (linux_xfer_osdata_threads): Likewise.
8258 (linux_xfer_osdata_fds): Likewise.
8259 (linux_xfer_osdata_isockets): Likewise.
8260 (linux_xfer_osdata_shm): Likewise.
8261 (linux_xfer_osdata_sem): Likewise.
8262 (linux_xfer_osdata_msg): Likewise.
8263 (linux_common_xfer_osdata): Likewise.
8264 (struct osdata_type) <getter>: Likewise.
8265 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8268 2014-01-14 Yao Qi <yao@codesourcery.com>
8270 * target.h (target_xfer_partial_ftype): Update.
8271 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8273 * aix-thread.c (aix_thread_xfer_partial): Change type of
8274 argument 'len' to ULONGEST.
8275 * auxv.c (procfs_xfer_auxv): Likewise.
8276 (ld_so_xfer_auxv): Likewise.
8277 (memory_xfer_auxv): Likewise.
8278 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8279 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8280 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8281 * corelow.c (core_xfer_partial): Likewise.
8282 * ctf.c (ctf_xfer_partial): Likewise.
8283 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8285 (darwin_read_dyld_info): Likewise.
8286 (darwin_xfer_partial): Likewise.
8287 * exec.c (section_table_xfer_memory_partial): Likewise.
8288 (exec_xfer_partial): Likewise.
8289 * exec.h (section_table_xfer_memory_partial): Update
8291 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8292 instead of plongest.
8293 (gnu_xfer_partial): Likewise.
8294 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8295 (ia64_hpux_xfer_solib_got): Likewise.
8296 (ia64_hpux_xfer_partial): Likewise.
8297 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8298 * inf-ptrace.c (inf_ptrace_xfer_partial):
8299 * inf-ttrace.c (inf_ttrace_xfer_partial):
8300 * linux-nat.c (linux_xfer_siginfo): Likewise.
8301 (linux_nat_xfer_partial): Likewise.
8302 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8303 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8304 * monitor.c (monitor_xfer_memory): Likewise.
8305 (monitor_xfer_partial): Likewise.
8306 * procfs.c (procfs_xfer_partial): Likewise.
8307 * record-full.c (record_full_xfer_partial): Likewise.
8308 (record_full_core_xfer_partial): Likewise.
8309 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8310 instead of plongest.
8311 (gdbsim_xfer_partial): Likewise.
8312 * remote.c (remote_xfer_partial): Likewise.
8313 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8314 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8316 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8317 (rs6000_xfer_shared_libraries): Likewise.
8318 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8319 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8320 (sparc_xfer_partial): Likewise.
8321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8322 (spu_xfer_partial): Likewise.
8323 * spu-multiarch.c (spu_xfer_partial): Likewise.
8324 * target.c (target_read_live_memory): Likewise.
8325 (memory_xfer_live_readonly_partial): Likewise.
8326 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8327 (target_xfer_partial, default_xfer_partial): Likewise.
8328 (current_xfer_partial): Likewise.
8329 * tracepoint.c (tfile_xfer_partial): Likewise.
8330 * windows-nat.c (windows_xfer_memory): Likewise. Call
8331 pulongest instead of plongest.
8332 (windows_xfer_partial): Likewise.
8333 (windows_xfer_shared_libraries): Likewise.
8335 2014-01-14 Yao Qi <yao@codesourcery.com>
8337 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8338 target_xfer_partial_ftype.
8340 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8344 * valops.c (value_struct_elt_bitpos): New function
8345 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8346 object to 'None' if the field name is an empty string ("").
8347 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8348 attribute to look for a field when 'name' is 'None'.
8349 (get_field_type): New function
8351 2014-01-13 Doug Evans <dje@google.com>
8354 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8355 (try_open_dwop_file): Ditto.
8356 * gdb_bfd.c: #include "vec.h".
8357 (bfdp): New typedef.
8358 (struct gdb_bfd_data): New member included_bfds.
8359 (gdb_bfd_unref): Unref all included bfds.
8360 (gdb_bfd_record_inclusion): New function.
8361 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8363 2014-01-13 Tom Tromey <tromey@redhat.com>
8365 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8367 2014-01-13 Tom Tromey <tromey@redhat.com>
8369 * defs.h (use_windows): Remove.
8370 * gdb.c (main): Update.
8371 * main.c (captured_main, gdb_main): Update.
8372 * main.h (struct captured_main_args) <use_windows>: Remove.
8373 * top.c (use_windows): Remove.
8375 2014-01-13 Tom Tromey <tromey@redhat.com>
8377 * defs.h (deprecated_flush_hook): Remove.
8379 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8382 * linux-thread-db.c (try_thread_db_load): Add parameter
8383 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8384 (try_thread_db_load_from_pdir_1): Move it there from here.
8385 (try_thread_db_load_from_sdir): Update caller.
8386 (try_thread_db_load_from_dir): Move it there from here.
8388 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8390 * regformats/regdat.sh: Always rewrite the register file.
8392 2014-01-13 Pedro Alves <palves@redhat.com>
8394 * Makefile.in (CHECK_HEADERS): New variable.
8395 (check-headers:): New rule.
8397 2014-01-13 Tom Tromey <tromey@redhat.com>
8399 * cli/cli-setshow.c (do_set_command): Update.
8400 * defs.h (deprecated_set_hook): Remove.
8401 * top.c (deprecated_set_hook): Remove.
8403 2014-01-13 Pedro Alves <palves@redhat.com>
8405 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8406 the tracepoint if the PC is a pseudo-register.
8408 2014-01-13 Tom Tromey <tromey@redhat.com>
8410 * defs.h (XCALLOC): Remove.
8411 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8412 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8413 * dwarf2loc.c (allocate_piece_closure): Likewise.
8414 * elfread.c (elf_symfile_segments): Likewise.
8415 (elf_symfile_segments): Likewise.
8416 * gdbtypes.c (copy_type_recursive): Likewise.
8417 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8418 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8419 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8421 * mt-tdep.c (mt_gdbarch_init): Likewise.
8422 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8424 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8425 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8426 * registry.c (registry_alloc_data): Likewise.
8427 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8428 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8429 * serial.c (serial_fdopen_ops): Likewise.
8430 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8432 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8433 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8436 2014-01-13 Tom Tromey <tromey@redhat.com>
8438 * defs.h (XMALLOC): Remove.
8439 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8440 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8441 * cli-out.c (struct ui_out *): Likewise.
8442 * cli/cli-dump.c (add_dump_command): Likewise.
8443 (add_dump_command): Likewise.
8444 * complaints.c (get_complaints): Likewise.
8445 (find_complaint): Likewise.
8446 * dwarf2-frame.c (execute_cfa_program): Likewise.
8447 * dwarf2read.c (abbrev_table_read_table): Likewise.
8448 * gdbarch.sh: Likewise.
8449 * gdbarch.c: Rebuild.
8450 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8451 * interps.c (interp_new): Likewise.
8452 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8453 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8454 * mi/mi-console.c (mi_console_file_new): Likewise.
8455 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8456 * mi/mi-out.c (mi_out_new): Likewise.
8457 * mi/mi-parse.c (mi_parse): Likewise.
8458 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8459 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8460 * observer.c (xalloc_observer_list_node): Likewise.
8461 * regcache.c (regcache_xmalloc_1): Likewise.
8462 * reggroups.c (reggroup_new): Likewise.
8463 (_initialize_reggroup): Likewise.
8464 * registry.c (register_data_with_cleanup): Likewise.
8465 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8466 * ser-base.c (serial_ttystate): Likewise.
8467 * ser-mingw.c (make_pipe_state): Likewise.
8468 * ser-pipe.c (pipe_open): Likewise.
8469 * serial.c (serial_open): Likewise.
8470 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8471 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8472 (tui_alloc_win_info): Likewise.
8473 (tui_add_content_elements): Likewise.
8474 * tui/tui-file.c (tui_file_new): Likewise.
8475 * tui/tui-out.c (tui_out_new): Likewise.
8476 * ui-file.c (mem_file_new): Likewise.
8477 * ui-out.c (push_level): Likewise.
8478 (make_cleanup_ui_out_end): Likewise.
8479 (append_header_to_list): Likewise.
8480 (ui_out_new): Likewise.
8481 * user-regs.c (user_reg_add_builtin): Likewise.
8483 2014-01-13 Tom Tromey <tromey@redhat.com>
8485 * defs.h (XZALLOC): Remove.
8486 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8487 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8488 (get_ada_tasks_inferior_data): Likewise.
8489 * auto-load.c (get_auto_load_pspace_data): Likewise.
8490 * auxv.c (get_auxv_inferior_data): Likewise.
8491 * bfd-target.c (target_bfd_reopen): Likewise.
8492 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8493 (deprecated_insert_raw_breakpoint): Likewise.
8494 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8495 * corelow.c (core_open): Likewise.
8496 * darwin-nat.c (darwin_check_new_threads): Likewise.
8497 (darwin_attach_pid): Likewise.
8498 * dummy-frame.c (dummy_frame_push): Likewise.
8499 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8500 * dwarf2loc.c (allocate_piece_closure): Likewise.
8501 * elfread.c (elf_symfile_segments): Likewise.
8502 * eval.c (ptrmath_type_p): Likewise.
8503 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8504 * gdbtypes.c (alloc_type_arch): Likewise.
8505 (alloc_type_instance): Likewise.
8506 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8507 * inf-child.c (inf_child_can_use_agent): Likewise.
8508 * inflow.c (get_inflow_inferior_data): Likewise.
8509 * infrun.c (save_infcall_suspend_state): Likewise.
8510 * jit.c (jit_reader_load): Likewise.
8511 (get_jit_objfile_data): Likewise.
8512 (get_jit_program_space_data): Likewise.
8513 (jit_object_open_impl): Likewise.
8514 (jit_symtab_open_impl): Likewise.
8515 (jit_block_open_impl): Likewise.
8516 (jit_frame_sniffer): Likewise.
8517 * linux-fork.c (add_fork): Likewise.
8518 * maint.c (make_command_stats_cleanup): Likewise.
8519 * objfiles.c (get_objfile_pspace_data): Likewise.
8520 * opencl-lang.c (struct lval_closure): Likewise.
8521 * osdata.c (osdata_start_osdata): Likewise.
8522 * progspace.c (new_address_space): Likewise.
8523 (add_program_space): Likewise.
8524 * remote-sim.c (get_sim_inferior_data): Likewise.
8525 * sh-tdep.c (sh_gdbarch_init): Likewise.
8526 * skip.c (Ignore): Likewise.
8527 (skip_delete_command): Likewise.
8528 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8529 (library_list_start_library): Likewise.
8530 (solib_aix_current_sos): Likewise.
8531 * solib-darwin.c (get_darwin_info): Likewise.
8532 (darwin_current_sos): Likewise.
8533 * solib-dsbt.c (get_dsbt_info): Likewise.
8534 * solib-ia64-hpux.c (new_so_list): Likewise.
8535 (ia64_hpux_get_solib_linkage_addr): Likewise.
8536 * solib-spu.c (append_ocl_sos): Likewise.
8537 (spu_current_sos): Likewise.
8538 * solib-svr4.c (get_svr4_info): Likewise.
8539 (svr4_keep_data_in_core): Likewise.
8540 (library_list_start_library): Likewise.
8541 (svr4_default_sos): Likewise.
8542 (svr4_read_so_list): Likewise.
8543 * solib-target.c (library_list_start_library): Likewise.
8544 (solib_target_current_sos): Likewise.
8545 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8546 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8547 * symfile.c (default_symfile_segments): Likewise.
8548 * target-descriptions.c (tdesc_data_init): Likewise.
8549 (tdesc_create_reg): Likewise.
8550 (struct tdesc_type *): Likewise.
8551 (tdesc_create_vector): Likewise.
8552 (tdesc_set_struct_size): Likewise.
8553 (struct tdesc_type *): Likewise.
8554 (tdesc_free_feature): Likewise.
8555 (tdesc_create_feature): Likewise.
8556 * windows-nat.c (windows_add_thread): Likewise.
8557 (windows_make_so): Likewise.
8558 * xml-support.c (gdb_xml_body_text): Likewise.
8559 (gdb_xml_create_parser_and_cleanup): Likewise.
8560 (xml_process_xincludes): Likewise.
8561 * xml-syscall.c (allocate_syscalls_info): Likewise.
8562 (syscall_create_syscall_desc): Likewise.
8564 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8566 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8567 function, with code from i386_stap_parse_special_token.
8568 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8569 (i386_stap_parse_special_token): Move code to the two functions
8572 2014-01-09 Pedro Alves <palves@redhat.com>
8573 Hui Zhu <hui@codesourcery.com>
8576 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8577 bp_err_string. Don't mark the location shlib_disabled if the
8578 error thrown wasn't a generic or memory error. Catch errors
8579 thrown while inserting breakpoints in overlayed code. Output
8580 error message of software breakpoints.
8581 * remote.c (remote_insert_breakpoint): If this breakpoint has
8582 target-side commands but this stub doesn't support Z0 packets,
8583 throw NOT_SUPPORTED_ERROR error.
8584 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8585 * target.h (target_insert_breakpoint): Extend comment.
8586 (target_insert_hw_breakpoint): Add comment.
8588 2014-01-08 Pedro Alves <palves@redhat.com>
8590 * remote.c (remote_add_thread): Add threads silently if starting
8592 (remote_notice_new_inferior): If in all-stop, and starting up,
8593 don't call notice_new_inferior.
8594 (get_current_thread): New function, factored out from ...
8595 (add_current_inferior_and_thread): ... this. Adjust.
8596 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8597 found any thread, then select the remote's current thread as GDB's
8600 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8602 * NEWS: Create a new section for the next release branch.
8603 Rename the section of the current branch, now that it has
8606 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8608 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8609 * version.in: Bump version to 7.7.50.DATE-cvs.
8611 2014-01-08 Yao Qi <yao@codesourcery.com>
8613 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8614 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8615 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8617 2014-01-08 Yao Qi <yao@codesourcery.com>
8619 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8620 return value of bfd_get_filename to symbol_file_add_from_bfd.
8622 2014-01-08 Pierre Muller <muller@sourceware.org>
8625 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8626 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8627 to prim_record_mininal_symbol_and_info.
8628 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8629 in call to prim_record_minimal_symbol_and_info.
8630 (read_pe_exported_syms): Set index field of section_data.
8632 2014-01-07 Andrew Pinski <apinski@cavium.com>
8634 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8635 * features/aarch64.c: Regenerate.
8637 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8639 * target.c (return_null): Define.
8640 (update_current_target): Use it instead of return_zero for
8641 functions that return a pointer.
8643 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8645 * source.c (add_path): Fix check for duplicated paths in the previously
8648 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8650 * ada-lang.c: Remove duplicated include statements.
8651 * alphabsd-nat.c: Ditto.
8652 * amd64-darwin-tdep.c: Ditto.
8653 * amd64fbsd-nat.c: Ditto.
8654 * auto-load.c: Ditto.
8656 * breakpoint.c: Ditto.
8658 * fork-child.c: Ditto.
8659 * gdb_usleep.c: Ditto.
8660 * i386-darwin-tdep.c: Ditto.
8661 * i386fbsd-nat.c: Ditto.
8663 * inferior.c: Ditto.
8665 * linux-nat.c: Ditto.
8666 * linux-tdep.c: Ditto.
8667 * m68kbsd-nat.c: Ditto.
8668 * m68klinux-nat.c: Ditto.
8669 * microblaze-tdep.c: Ditto.
8670 * mips-linux-tdep.c: Ditto.
8671 * mn10300-tdep.c: Ditto.
8672 * nto-tdep.c: Ditto.
8673 * opencl-lang.c: Ditto.
8675 * printcmd.c: Ditto.
8676 * regcache.c: Ditto.
8677 * remote-m32r-sdi.c: Ditto.
8681 * tilegx-linux-nat.c: Ditto.
8682 * tilegx-tdep.c: Ditto.
8683 * tracepoint.c: Ditto.
8685 * vaxbsd-nat.c: Ditto.
8686 * windows-nat.c: Ditto.
8687 * xtensa-tdep.c: Ditto.
8689 2014-01-07 Yao Qi <yao@codesourcery.com>
8691 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8693 2014-01-07 Yao Qi <yao@codesourcery.com>
8694 Joel Brobecker <brobecker@adacore.com>
8696 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8697 (pdc_write_regs): Likewise.
8698 (fetch_regs_kernel_thread): Likewise.
8699 (store_regs_kernel_thread): Likewise.
8701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8703 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8704 tagged type objects to their actual type.
8706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8708 * ada-valprint.c (print_field_values): Add "language" parameter.
8709 Update calls to print_field_values and print_variant_part.
8710 Pass new parameter "language" in call to val_print instead
8711 of "current_language". Replace call to ada_val_print by call
8713 (print_variant_part): Add "language" parameter.
8714 (ada_val_print_struct_union): Update call to print_field_values.
8716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8718 * ada-valprint.c (ui_memcpy): Delete.
8719 (ada_print_floating): Update documentation. Add empty line
8720 between between function documentation and implementation.
8721 Delete variable "buffer". Use ui_file_xstrdup in place of
8722 ui_file_put. Minor adjustments following this change.
8724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8726 * ada-valprint.c (ada_val_print_string): New function,
8727 extracted from ada_val_print_array.
8728 (ada_val_print_array): Replace extracted code by call
8729 to ada_val_print_string followed by a return. Move
8730 "else" branch to the function's top block.
8732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8734 * ada-valprint.c (ada_val_print_array): Move implementation
8735 down. Rename parameter "offset" and "val" into "offset_aligned"
8736 and "original_value" respectively. Add parameter "offset".
8738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8740 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8741 re-organizing the code. Change the "???" message printed
8742 when target type is a TYPE_CODE_UNDEF into
8743 "<ref to undefined type>".
8745 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8747 * ada-valprint.c (print_record): Delete, implementation inlined...
8748 (ada_val_print_struct_union): ... here. Remove call to
8749 ada_check_typedef in inlined implementation.
8751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8753 * ada-valprint.c (ada_val_print_gnat_array): New function,
8754 extracted from ada_val_print_1;
8755 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8756 (ada_val_print_flt, ada_val_print_struct_union)
8757 (ada_val_print_ref): Likewise.
8758 (ada_val_print_1): Delete variables i and elttype.
8759 Replace extracted-out code by call to corresponding
8762 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8764 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8768 * ada-valprint.c (ada_val_print_1): Replace calls to
8769 ada_val_print_1 by calls to val_print.
8771 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8773 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8774 Update calls to self accordingly. Replace calls to c_val_print
8775 by calls to val_print.
8777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8779 * ada-valprint.c (print_record): Delete declaration.
8780 (adjust_type_signedness, ada_val_print_1): Likewise.
8781 (ada_val_print): Move function implementation down.
8782 (print_variant_part, print_field_values, print_record):
8783 Move function implementation up.
8785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8787 * python/py-type.c (typy_get_name): New function.
8788 (type_object_getset): Add entry for attribute "name".
8789 * NEWS: Add entry mentioning this new attribute.
8791 2014-01-07 Yao Qi <yao@codesourcery.com>
8793 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8796 2014-01-07 Yao Qi <yao@codesourcery.com>
8798 * gnu-nat.c (info_port_rights): Add qualifier const to
8801 2014-01-07 Yao Qi <yao@codesourcery.com>
8803 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8805 2014-01-07 Yao Qi <yao@codesourcery.com>
8807 * gnu-nat.c (make_inf) Update declaration.
8808 (make_inf): Make it static.
8809 (inf_set_traced): Likewise.
8810 (inf_port_to_thread, inf_task_died_status): Likewise.
8812 2014-01-07 Yao Qi <yao@codesourcery.com>
8814 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8816 2014-01-07 Yao Qi <yao@codesourcery.com>
8818 * gnu-nat.c (_initialize_gnu_nat): Declare.
8820 2014-01-07 Yao Qi <yao@codesourcery.com>
8822 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8824 (struct gdbarch_info) <byte_order>: Change type to
8826 <byte_order_for_code>: Likewise.
8827 * gdbarch.c, gdbarch.h: Regenerated.
8829 2014-01-06 Sasha Smundak <asmundak@google.com>
8831 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8833 2014-01-06 Tom Tromey <tromey@redhat.com>
8835 * doublest.c (convert_doublest_to_floatformat): Use const, not
8837 * somread.c (som_symtab_read): Likewise.
8839 2014-01-07 Hui Zhu <hui@codesourcery.com>
8841 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8842 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8843 (gdb_bfd_fopen): Ditto.
8844 (gdb_bfd_openr): Ditto.
8845 (gdb_bfd_openw): Ditto.
8846 (gdb_bfd_openr_iovec): Ditto.
8847 (gdb_bfd_fdopenr): Ditto.
8848 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8849 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8851 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8853 * symfile-mem.c (symbol_file_add_from_memory): Removed
8854 gdb_bfd_stash_filename.
8856 2014-01-03 Doug Evans <dje@google.com>
8858 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8861 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8863 Update year range in copyright notice of all files.
8865 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8867 * top.c (print_gdb_version): Set copyright year to 2014.
8869 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8871 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8873 For older changes see ChangeLog-2013.
8879 version-control: never