1 2014-06-06 Gary Benson <gbenson@redhat.com>
3 * common/signals.c: Remove preprocessor conditionals for
4 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6 * proc-events.c: Likewise.
8 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
10 * symfile.c (symfile_free_objfile): Remove restriction to
12 * symfile-mem.c (symbol_file_add_from_memory): Call
13 add_target_sections_of_objfile.
15 2014-06-05 Ludovic Courtès <ludo@gnu.org>
17 * guile/scm-value.c (gdbscm_history_append_x): Use
18 'vlscm_get_value_smob_arg_unsafe' instead of
21 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
24 * utils.c (printchar): Don't escape at all if quoter is NUL.
25 Update function documentation to clarify effect of parameter
27 * remote.c (escape_buffer): Pass '\\' as the quoter to
29 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
31 (mi_solib_unloaded): Same.
33 2014-06-05 Joel Brobecker <brobecker@adacore.com>
35 * development.sh: Delete.
36 * Makefile.in (config.status): Adjust dependency on development.sh.
37 * configure.ac: Adjust development.sh source call.
38 * configure: Regenerate.
40 2014-06-04 Doug Evans <xdje42@gmail.com>
42 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
44 (bpscm_make_breakpoint_smob): Initialize new members.
45 (gdbscm_create_breakpoint_x): Split into two ...
46 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
47 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
48 (scheme_function breakpoint_functions): Update.
49 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
50 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
53 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
56 * mem-break.c (z_type_supported): Return zero if
57 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
59 2014-06-04 Tom Tromey <tromey@redhat.com>
61 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
62 value_from_contents_and_address_unresolved.
63 (ada_template_to_fixed_record_type_1): Likewise.
64 (ada_which_variant_applies): Likewise.
65 * value.h (value_from_contents_and_address_unresolved): Declare.
66 * value.c (value_from_contents_and_address_unresolved): New
68 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
69 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
70 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
72 2014-06-04 Tom Tromey <tromey@redhat.com>
74 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
76 2014-06-04 Tom Tromey <tromey@redhat.com>
78 * procfs.c (procfs_attach): Make "args" const.
79 * windows-nat.c (windows_attach): Make "args" const.
80 * nto-procfs.c (procfs_attach): Make "args" const.
81 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
82 * go32-nat.c (go32_attach): Make "args" const.
83 * gnu-nat.c (gnu_attach): Make "args" const.
84 * darwin-nat.c (darwin_attach): Make "args" const.
85 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
86 * linux-nat.c (linux_nat_attach): Make "args" const.
87 * remote.c (extended_remote_attach_1, extended_remote_attach):
89 * target.h (struct target_ops) <to_attach>: Make "args" const.
90 (find_default_attach): Likewise.
91 * utils.c (parse_pid_to_attach): Make "args" const.
92 * utils.h (parse_pid_to_attach): Update.
94 2014-06-04 Tom Tromey <tromey@redhat.com>
96 * target-delegates.c: Rebuild.
97 * target.c (default_thread_address_space): New function.
98 (target_thread_address_space): Simplify.
99 * target.h (struct target_ops) <to_thread_address_space>: Add
102 2014-06-04 Doug Evans <xdje42@gmail.com>
104 * guile/scm-type.c (type_smob): Remove duplicate typedef.
106 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
108 * record-btrace.c: Include event-loop.h and inf-loop.h.
109 (record_btrace_resume_exec_dir)
110 (record_btrace_async_inferior_event_handler)
111 (record_btrace_handle_async_inferior_event): New.
112 (record_btrace_open): Create async event handler.
113 (record_btrace_close): Delete async event handler.
114 (record_btrace_resume): Set record_btrace_resume_exec_dir,
115 Mark async event handler.
116 (record_btrace_execution_direction): New.
117 (init_record_btrace_ops): Initialize to_execution_direction.
119 2014-06-03 Doug Evans <xdje42@gmail.com>
121 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
122 (gdbscm_make_parameter): Ditto.
124 2014-06-03 Doug Evans <dje@google.com>
126 * exec.c (exec_close_1): Call clear_section_table instead of
127 resize_section_table.
128 (clear_section_table): New function.
129 (resize_section_table): Make static. Rename arg num_added to
131 * exec.h (clear_section_table): Declare.
132 (resize_section_table): Delete.
133 * progspace.c (release_program_space): Call clear_section_table
134 instead of resize_section_table.
136 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
138 * NEWS (Python Scripting): Add entry about the new xmethods
141 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
143 * python/py-xmethods.c: New file.
144 * python/py-objfile.c (objfile_object): New field 'xmethods'.
145 (objfpy_dealloc): XDECREF on the new xmethods field.
146 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
148 (objfpy_get_xmethods): New function.
149 (objfile_getset): New entry 'xmethods'.
150 * python/py-progspace.c (pspace_object): New field 'xmethods'.
151 (pspy_dealloc): XDECREF on the new xmethods field.
152 (pspy_new, pspace_to_pspace_object): Initialize xmethods
154 (pspy_get_xmethods): New function.
155 (pspace_getset): New entry 'xmethods'.
156 * python/python-internal.h: Add declarations for new functions.
157 * python/python.c (_initialize_python): Invoke
158 gdbpy_initialize_xmethods.
159 * python/lib/gdb/__init__.py (xmethods): New
161 * python/lib/gdb/xmethod.py: New file.
162 * python/lib/gdb/command/xmethods.py: New file.
164 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
166 * eval.c (evaluate_subexp_standard): Call the xmethod if the
167 best match method returned by find_overload_match is an xmethod.
168 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
169 the best matching operator returned by find_overload_match is an
171 * valops.c: #include "extension.h".
172 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
173 Return void. The list of matching source methods is returned in
174 "fn_list" and a vector of matching debug method workers is
175 returned in "xm_worker_vec". Update all callers.
176 (value_find_oload_method_list): Likewise.
177 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
178 non-NULL, then the index of the best matching method in this
179 vector is returned. Update all callers.
180 (find_overload_match): Include xmethods while performing overload
183 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
185 * defs.h (enum lval_type): New enumerator "lval_xcallable".
186 * extension-priv.h (struct extension_language_ops): Add the
188 * extension.c (new_xmethod_worker, clone_xmethod_worker,
189 get_matching_xmethod_workers, get_xmethod_argtypes,
190 invoke_xmethod, free_xmethod_worker,
191 free_xmethod_worker_vec): New functions.
192 * extension.h: #include "common/vec.h".
193 New function declarations.
194 (struct xmethod_worker): New struct.
195 (VEC (xmethod_worker_ptr)): New vector type.
196 (xmethod_worker_ptr): New typedef.
197 (xmethod_worker_vec): Likewise.
198 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
200 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
201 (struct builtin_type): New field "xmethod".
202 * valarith.c (value_ptradd): Assert that the value argument is not
204 * valops.c (value_must_coerce_to_target): Return 0 for
205 lval_xcallable values.
206 * value.c (struct value): New field XM_WORKER in the field
208 (value_address, value_raw_address): Return 0 for lval_xcallable
210 (set_value_address): Assert that the value is not an
212 (value_free): Free the associated xmethod worker when freeing
213 lval_xcallable values.
214 (set_value_component_location): Assert that the WHOLE value is not
216 (value_of_xmethod, call_xmethod): New functions.
217 * value.h: Declare "struct xmethod_worker".
218 Declare new functions value_of_xmethod, call_xmethod.
220 2014-06-03 Joel Brobecker <brobecker@adacore.com>
221 Pedro Alves <palves@redhat.com>
224 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
225 New function, extracted from software_breakpoint_inserted_here_p.
226 (software_breakpoint_inserted_here_p): Replace factored out code
227 by call to find_non_raw_software_breakpoint_inserted_here.
228 (bp_target_info_copy_insertion_state): New function.
229 (bkpt_insert_location): Handle the case of a single-step
230 breakpoint already inserted at the same address.
231 (bkpt_remove_location): Handle the case of a single-step
232 breakpoint still inserted at the same address.
233 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
234 breakpoint already inserted at the same address.
235 (deprecated_remove_raw_breakpoint): Handle the case of a
236 non-raw breakpoint still inserted at the same address.
237 (find_single_step_breakpoint): New function, extracted from
238 single_step_breakpoint_inserted_here_p.
239 (find_single_step_breakpoint): New function,
240 factored out from single_step_breakpoint_inserted_here_p.
241 (single_step_breakpoint_inserted_here_p): Reimplement.
243 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
245 Pushed by Joel Brobecker <brobecker@adacore.com>
246 * source.c (show_substitute_path_command): Fix display of matching
249 2014-06-03 Gary Benson <gbenson@redhat.com>
251 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
253 2014-06-02 Doug Evans <xdje42@gmail.com>
255 Add parameter support for Guile.
256 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
257 (SUBDIR_GUILE_SRCS): Add scm-param.c.
258 (scm-param.o): New rule.
259 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
260 (gdbscm_misc_error): Declare.
261 (gdbscm_canonicalize_command_name): Declare.
262 (gdbscm_scm_to_host_string): Declare.
263 (gdbscm_scm_from_host_string): Declare.
264 (gdbscm_initialize_parameters): Declare.
265 * guile/guile.c (initialize_gdb_module): Call
266 gdbscm_initialize_parameters.
267 * guile/lib/gdb.scm: Export parameter symbols.
268 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
269 cmdscm_canonicalize_name and made public. All callers updated.
270 * guile/scm-exception.c (gdbscm_misc_error): New function.
271 * guile/scm-param.c: New file.
272 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
273 (gdbscm_scm_to_host_string): New function.
274 (gdbscm_scm_from_host_string): New function.
275 * scm-utils.c (gdbscm_gc_dup_argv): New function.
277 2014-06-02 Doug Evans <xdje42@gmail.com>
279 Add command support for Guile.
280 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
281 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
282 (scm-cmd.o): New rule.
283 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
284 (gdbscm_user_error_p): Declare.
285 (gdbscm_parse_command_name): Declare.
286 (gdbscm_valid_command_class_p): Declare.
287 (gdbscm_initialize_commands): Declare.
288 * guile/guile.c (initialize_gdb_module): Call
289 gdbscm_initialize_commands.
290 * guile/lib/gdb.scm: Export command symbols.
291 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
292 (throw-user-error): New function.
293 * guile/scm-cmd.c: New file.
294 * guile/scm-exception.c (user_error_symbol): New static global.
295 (gdbscm_user_error_p): New function.
296 (gdbscm_initialize_exceptions): Set user_error_symbol.
297 * scm-utils.c (gdbscm_gc_xstrdup): New function.
299 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
301 * top.c (command_loop): Handle comments here...
302 (command_line_input): ... not here.
304 2014-06-02 Doug Evans <xdje42@gmail.com>
306 Add progspace support for Guile.
307 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
308 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
309 (scm-progspace.o): New rule.
310 * guile/guile-internal.h (pspace_smob): New typedef.
311 (psscm_pspace_smob_pretty_printers): Declare.
312 (psscm_pspace_smob_from_pspace): Declare.
313 (psscm_scm_from_pspace): Declare.
314 * guile/guile.c (initialize_gdb_module): Call
315 gdbscm_initialize_pspaces.
316 * guile/lib/gdb.scm: Export progspace symbols.
317 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
319 (append-pretty-printer!): Ditto.
320 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
322 * guile/scm-progspace.c: New file.
324 2014-06-03 Alan Modra <amodra@gmail.com>
326 * ppc64-tdep.c (ppc64_standard_linkage8): New.
327 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
329 2014-06-02 Doug Evans <dje@google.com>
331 Add support for skeletonless type units.
332 * dwarf2read.c (struct dwarf2_per_objfile): New member
333 n_allocated_type_units.
334 (struct dwarf2_per_objfile) <tu_stats>: New member
335 nr_all_type_units_reallocs.
336 (create_signatured_type_table_from_index): Initialize
337 n_allocated_type_units
338 (create_all_type_units): Ditto.
339 (add_type_unit): Move up in file. New arg slot.
340 All callers updated. Increase space for all_type_units more
342 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
343 (lookup_dwo_signatured_type): Handle skeletonless TUs.
344 (lookup_dwp_signatured_type): Ditto.
345 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
347 (build_type_psymtabs_1): Leave type_unit_groups as
348 NULL if no TUs present.
349 (print_tu_stats): New function.
350 (process_skeletonless_type_unit): New function.
351 (process_dwo_file_for_skeletonless_type_units): New
353 (process_skeletonless_type_units): New function.
354 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
355 Call print tu_stats if debugging enabled.
357 2014-06-02 Pedro Alves <palves@redhat.com>
359 * breakpoint.c (build_target_command_list): Don't build a command
360 list if we have any duplicate location that isn't a dprintf.
362 2014-06-02 Pedro Alves <palves@redhat.com>
364 * breakpoint.c (dprintf_breakpoint_hit): New function.
365 (initialize_breakpoint_ops): Install it as dprintf's
366 breakpoint_hit method.
368 2014-06-02 Joel Brobecker <brobecker@adacore.com>
370 * source.c (substitute_path_rule_matches): Simplify using
371 filename_ncmp instead of FILENAME_CMP.
373 2014-06-02 Joel Brobecker <brobecker@adacore.com>
375 * source.c (substitute_path_rule_matches): Remove trailing spaces.
377 2014-06-01 Ludovic Courtès <ludo@gnu.org>
379 * configure.ac: When Guile is available, check for the
380 availability of 'scm_new_smob'.
381 * configure, config.h.in: Regenerate.
382 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
385 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
387 * frame.c (struct frame_info): Add stop_string field.
388 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
389 (get_prev_frame_always): Old content moved into
390 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
391 TRY_CATCH, handle MEMORY_ERROR exceptions.
392 (frame_stop_reason_string): New function definition.
393 * frame.h (unwind_stop_reason_to_string): Extend comment to
394 mention frame_stop_reason_string.
395 (frame_stop_reason_string): New function declaration.
396 * stack.c (frame_info): Switch to frame_stop_reason_string.
397 (backtrace_command_1): Switch to frame_stop_reason_string.
398 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
399 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
400 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
402 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
404 * frame.c (frame_stop_reason_string): Rename to ...
405 (unwind_stop_reason_to_string): this.
406 * frame.h (frame_stop_reason_string): Rename to ...
407 (unwind_stop_reason_to_string): this.
408 * stack.c (frame_info): Update call to frame_stop_reason_string.
409 (backtrace_command_1): Likewise.
410 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
411 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
413 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
415 * frame.c (remove_prev_frame): New function.
416 (get_prev_frame_if_no_cycle): Create / discard cleanup using
419 2014-05-29 Pedro Alves <palves@redhat.com>
421 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
422 and make it const. When a single-step decays to a continue,
423 clear 'step', not 'hw_step'. Pass whether the caller wanted
424 to step to user_visible_resume_ptid, not what we ask the
427 2014-05-29 Pedro Alves <palves@redhat.com>
429 * infrun.c (process_event_stop_test, handle_step_into_function)
430 (handle_step_into_function_backward): Adjust.
431 Don't set the even thread's stop_step and call stop_waiting before
432 calling end_stepping_range. Instead do that ...
433 (end_stepping_range): ... here. Take an ecs pointer parameter.
435 2014-05-29 Pedro Alves <palves@redhat.com>
437 * infrun.c (stop_stepping): Rename to ...
438 (stop_waiting): ... this.
439 (proceed): Update comment.
440 (process_event_stop_test, handle_inferior_event)
441 (handle_signal_stop, handle_step_into_function)
442 (handle_step_into_function_backward): Update.
444 2014-05-29 Pedro Alves <palves@redhat.com>
446 * infcall.c (run_inferior_call): Don't check whether the current
447 thread is running after the proceed call.
449 2014-05-29 Pedro Alves <palves@redhat.com>
450 Tom Tromey <tromey@redhat.com>
452 * NEWS: Mention "maint set target-async", "set mi-async", and that
453 background execution commands are now always available.
454 * target.h (target_async_permitted): Update comment.
455 * target.c (target_async_permitted, target_async_permitted_1):
457 (set_target_async_command): Rename to ...
458 (maint_set_target_async_command): ... this.
459 (show_target_async_command): Rename to ...
460 (maint_show_target_async_command): ... this.
461 (_initialize_target): Adjust.
462 * infcmd.c (prepare_execution_command): Make extern.
463 * inferior.h (prepare_execution_command): Declare.
464 * infrun.c (set_observer_mode): Leave target async alone.
465 * mi/mi-interp.c (mi_interpreter_init): Install
466 mi_on_sync_execution_done as sync_execution_done observer.
467 (mi_on_sync_execution_done): New function.
468 (mi_execute_command_input_handler): Don't print the prompt if we
469 just started a synchronous command with an async target.
470 (mi_on_resume): Check sync_execution before printing prompt.
471 * mi/mi-main.h (mi_async_p): Declare.
472 * mi/mi-main.c: Include gdbcmd.h.
473 (mi_async_p): New function.
474 (mi_async, mi_async_1): New globals.
475 (set_mi_async_command, show_mi_async_command, mi_async): New
477 (exec_continue): Call prepare_execution_command.
478 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
479 (mi_execute_async_cli_command): Use mi_async_p.
480 (_initialize_mi_main): Install "set mi-async". Make
481 "target-async" a deprecated alias.
483 2014-05-29 Pedro Alves <palves@redhat.com>
485 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
486 (_initialize_cli_interp): Adjust.
487 * event-loop.c: Include "observer.h".
488 (start_event_loop): Notify 'command_error' observers instead of
489 calling display_gdb_prompt. Remove FIXME comment.
490 * event-top.c (display_gdb_prompt): Remove call into the
492 * inf-loop.c: Include "observer.h".
493 (inferior_event_handler): Notify 'command_error' observers instead
494 of calling display_gdb_prompt.
495 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
496 observers instead of calling display_gdb_prompt.
497 * interps.c (interp_set): Don't call display_gdb_prompt.
498 (current_interp_display_prompt_p): Delete.
499 * interps.h (interp_prompt_p): Delete declaration.
500 (interp_prompt_p_ftype): Delete.
501 (struct interp_procs) <prompt_proc_p>: Delete field.
502 (current_interp_display_prompt_p): Delete declaration.
503 * mi-interp.c (mi_interpreter_prompt_p): Delete.
504 (_initialize_mi_interp): Adjust.
505 * tui-interp.c (tui_init): Install 'sync_execution_done' and
506 'command_error' observers.
507 (tui_on_sync_execution_done, tui_on_command_error): New
509 (tui_display_prompt_p): Delete.
510 (_initialize_tui_interp): Adjust.
512 2014-05-29 Pedro Alves <palves@redhat.com>
515 * cli/cli-interp.c: Include infrun.h and observer.h.
516 (cli_uiout, cli_interp): New globals.
517 (cli_on_signal_received, cli_on_end_stepping_range)
518 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
520 (cli_interpreter_init): Install them as 'end_stepping_range',
521 'signal_received' 'signal_exited', 'exited' and 'no_history'
523 (_initialize_cli_interp): Remove cli_interp local.
524 * infrun.c (handle_inferior_event): Call the several stop reason
525 observers instead of printing the stop reason directly.
526 (end_stepping_range): New function.
527 (print_end_stepping_range_reason, print_signal_exited_reason)
528 (print_exited_reason, print_signal_received_reason)
529 (print_no_history_reason): Make static, and add an uiout
530 parameter. Print to that instead of to CURRENT_UIOUT.
531 * infrun.h (print_end_stepping_range_reason)
532 (print_signal_exited_reason, print_exited_reason)
533 (print_signal_received_reason print_no_history_reason): New
535 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
537 <cli_uiout>: New field.
538 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
539 uiout for CLI output. Install 'signal_received',
540 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
542 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
543 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
544 (mi_on_no_history): New functions.
545 (ui_out_free_cleanup): Delete function.
546 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
547 instead use the one already stored in the MI interpreter data.
549 * tui/tui-interp.c: Include infrun.h and observer.h.
550 (tui_interp): New global.
551 (tui_on_signal_received, tui_on_end_stepping_range)
552 (tui_on_signal_exited, tui_on_exited)
553 (tui_on_no_history): New functions.
554 (tui_init): Install them as 'end_stepping_range',
555 'signal_received' 'signal_exited', 'exited' and 'no_history'
557 (_initialize_tui_interp): Delete tui_interp local.
559 2014-05-29 Pedro Alves <palves@redhat.com>
562 * linux-nat.c (linux_nat_resume_callback): Rename the second
563 parameter to 'except'. Skip LP if it points to EXCEPT.
564 (linux_nat_resume): Don't mark the event lwp as not stopped
565 before resuming sibling lwps. Instead ask
566 linux_nat_resume_callback to skip the event lwp. Mark it as not
567 stopped after actually resuming it.
568 (linux_handle_syscall_trap): Mark the lwp as not stopped after
570 (wait_lwp): Mark the lwp as stopped here.
571 (stop_wait_callback): Mark the lwp as not stopped right after
572 resuming it. Don't mark lwps as stopped here.
573 (linux_nat_filter_event): Mark the lwp as stopped earlier.
574 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
576 2014-05-29 Pedro Alves <palves@redhat.com>
579 * infrun.c (resume): Determine how much to resume depending on
580 whether the caller wanted a step, not whether we can hardware step
581 the target. Mark all threads that we intend to run as running,
582 unless we're calling an inferior function.
583 (normal_stop): If the thread is running an infcall, don't finish
585 * target.c (target_resume): Don't mark threads as running here.
587 2014-05-28 Joel Brobecker <brobecker@adacore.com>
589 * serial.c (_initialize_serial): Remove support for
590 the "set remotebaud" and "show remotebaud" commands.
591 * NEWS: Add entry documenting the removal of that command.
593 2014-05-28 Yao Qi <yao@codesourcery.com>
595 * charset.c: Fix typo in comments.
597 2014-05-27 Gary Benson <gbenson@redhat.com>
599 * utils.c (internal_vproblem): Prompt for a bug report.
601 2014-05-26 Andy Wingo <wingo@igalia.com>
603 * guile/scm-arch.c (arscm_mark_arch_smob):
604 * guile/scm-block.c (bkscm_mark_block_smob)
605 (bkscm_mark_block_syms_progress_smob):
606 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
607 * guile/scm-exception.c (exscm_mark_exception_smob):
608 * guile/scm-frame.c (frscm_mark_frame_smob):
609 * guile/scm-iterator.c (itscm_mark_iterator_smob):
610 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
611 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
612 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
613 (ppscm_mark_pretty_printer_worker_smob):
614 * guile/scm-symbol.c (syscm_mark_symbol_smob):
615 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
616 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
617 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
619 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
622 2014-05-26 Andy Wingo <wingo@igalia.com>
623 Doug Evans <xdje42@gmail.com>
625 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
626 empty_base_class. All uses updated.
627 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
628 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
630 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
631 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
632 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
633 (gdbscm_gsmob_has_property_p, add_property_name)
634 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
635 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
636 (gdb-object-has-property?, gdb-object-properties): Remove.
637 (gdb-object-kind): Renamed from gsmob-kind.
639 2014-05-26 Andy Wingo <wingo@igalia.com>
641 * configure.ac (try_guile_versions): Allow building with guile 2.2.
642 * configure: Regenerate.
644 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
646 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
648 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
650 * record-btrace.c (record_btrace_allow_memory_access): Remove.
651 (replay_memory_access_read_only, replay_memory_access_read_write)
652 (replay_memory_access_types, replay_memory_access)
653 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
654 (cmd_set_record_btrace, cmd_show_record_btrace)
655 (cmd_show_replay_memory_access): New.
656 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
657 (record_btrace_remove_breakpoint): Replace
658 record_btrace_allow_memory_access with replay_memory_access.
659 (_initialize_record_btrace): Add commands.
662 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
664 * aarch64-linux-nat.c (asm/ptrace.h): Include.
666 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
668 * MAINTAINERS (Write After Approval): Move self back from
671 2014-05-22 Pedro Alves <palves@redhat.com>
673 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
674 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
675 (disable_randomization, enum exec_direction_kind)
676 (execution_direction, stop_registers, start_remote)
677 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
678 (wait_for_inferior, normal_stop, get_last_target_status)
679 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
680 (insert_step_resume_breakpoint_at_sal)
681 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
682 (set_step_info, print_stop_event, signal_stop_state)
683 (signal_print_state, signal_pass_state, signal_stop_update)
684 (signal_print_update, signal_pass_update)
685 (update_signals_program_target, clear_exit_convenience_vars)
686 (displaced_step_dump_bytes, update_observer_mode)
687 (signal_catch_update, gdb_signal_from_command): Move
689 * infrun.h: ... to this new file.
690 * amd64-tdep.c: Include infrun.h.
691 * annotate.c: Include infrun.h.
692 * arch-utils.c: Include infrun.h.
693 * arm-linux-tdep.c: Include infrun.h.
694 * arm-tdep.c: Include infrun.h.
695 * break-catch-sig.c: Include infrun.h.
696 * breakpoint.c: Include infrun.h.
697 * common/agent.c: Include infrun.h instead of inferior.h.
698 * corelow.c: Include infrun.h.
699 * event-top.c: Include infrun.h.
700 * go32-nat.c: Include infrun.h.
701 * i386-tdep.c: Include infrun.h.
702 * inf-loop.c: Include infrun.h.
703 * infcall.c: Include infrun.h.
704 * infcmd.c: Include infrun.h.
705 * infrun.c: Include infrun.h.
706 * linux-fork.c: Include infrun.h.
707 * linux-nat.c: Include infrun.h.
708 * linux-thread-db.c: Include infrun.h.
709 * monitor.c: Include infrun.h.
710 * nto-tdep.c: Include infrun.h.
711 * procfs.c: Include infrun.h.
712 * record-btrace.c: Include infrun.h.
713 * record-full.c: Include infrun.h.
714 * remote-m32r-sdi.c: Include infrun.h.
715 * remote-mips.c: Include infrun.h.
716 * remote-notif.c: Include infrun.h.
717 * remote-sim.c: Include infrun.h.
718 * remote.c: Include infrun.h.
719 * reverse.c: Include infrun.h.
720 * rs6000-tdep.c: Include infrun.h.
721 * s390-linux-tdep.c: Include infrun.h.
722 * solib-irix.c: Include infrun.h.
723 * solib-osf.c: Include infrun.h.
724 * solib-svr4.c: Include infrun.h.
725 * target.c: Include infrun.h.
726 * top.c: Include infrun.h.
727 * windows-nat.c: Include infrun.h.
728 * mi/mi-interp.c: Include infrun.h.
729 * mi/mi-main.c: Include infrun.h.
730 * python/py-threadevent.c: Include infrun.h.
732 2014-05-22 Pedro Alves <palves@redhat.com>
734 * infrun.c (handle_inferior_event): Store the exit code for
735 --return-child-result here, instead of ...
736 (print_exited_reason): ... here.
738 2014-05-21 Pedro Alves <palves@redhat.com>
741 * gdbthread.h (struct thread_control_state): New field
743 * infrun.c (follow_fork): Copy the new thread control field to the
745 (clear_proceed_status_thread): Clear the new thread control field.
746 (proceed): Set the new thread control field.
747 * interps.h (command_interp): Declare.
748 * interps.c (command_interpreter): New global.
749 (command_interp): New function.
750 (interp_exec): Set `command_interpreter' while here.
751 * cli-out.c (cli_uiout_dtor): New function.
752 (cli_ui_out_impl): Install it.
753 * mi/mi-interp.c: Include cli-out.h.
754 (mi_cmd_interpreter_exec): Add comment.
755 (restore_current_uiout_cleanup): New function.
756 (ui_out_free_cleanup): New function.
757 (mi_on_normal_stop): If finishing an execution command started by
758 a CLI command, or any kind of breakpoint-like event triggered,
759 print the stop event to the output (CLI) stream.
760 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
762 2014-05-21 Pedro Alves <palves@redhat.com>
764 * cli/cli-cmds.c (list_command): Handle the first "list" after the
765 current source line having changed.
766 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
767 * infrun.c (normal_stop): Adjust call to
768 set_current_sal_from_frame.
769 * source.c (clear_lines_listed_range): New function.
770 (set_current_source_symtab_and_line, identify_source_line): Clear
771 the lines listed range.
772 (line_info): Handle the first "info line" after the current source
774 * stack.c (print_stack_frame): Remove center handling.
775 (set_current_sal_from_frame): Remove 'center' parameter. Don't
778 2014-05-21 Pedro Alves <palves@redhat.com>
780 * inf-child.c (inf_child_mourn_inferior): New function.
781 * inf-child.h (inf_child_mourn_inferior): New declaration.
782 * darwin-nat.c (darwin_mourn_inferior): Use
783 inf_child_mourn_inferior.
784 * gnu-nat.c (gnu_mourn_inferior): Likewise.
785 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
786 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
787 * nto-procfs.c (procfs_mourn_inferior): Likewise.
788 * windows-nat.c (windows_mourn_inferior): Likewise.
790 2014-05-21 Doug Evans <xdje42@gmail.com>
792 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
794 2014-05-21 Doug Evans <xdje42@gmail.com>
796 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
797 (gdbscm_out_of_range_error): Ditto.
798 (gdbscm_memory_error): Ditto.
799 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
800 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
801 (gdbscm_out_of_range_error): Update.
802 (gdbscm_memory_error): Update.
803 (gdbscm_scm_to_target_string_unsafe): Delete.
805 2014-05-21 Pedro Alves <palves@redhat.com>
807 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
809 (inf_child_open_target): New function.
810 (inf_child_open): Use inf_child_open_target to push the target
811 instead of erroring out.
812 (inf_child_disconnect, inf_child_close)
813 (inf_child_maybe_unpush_target): New functions.
814 (inf_child_target): Install inf_child_disconnect and
815 inf_child_close. Store a pointer to the returned object.
816 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
818 * target.c (auto_connect_native_target): New global.
819 (show_default_run_target): New function.
820 (find_default_run_target): Return NULL if automatically connecting
821 to the native target is disabled.
822 (_initialize_target): Install set/show auto-connect-native-target.
823 * NEWS: Mention "set auto-connect-native-target", and "target
825 * linux-nat.c (super_close): New global.
826 (linux_nat_close): Call super_close.
827 (linux_nat_add_target): Store a pointer to the base class's
829 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
830 inf_child_maybe_unpush.
831 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
833 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
834 the inferior. Use inf_child_maybe_unpush_target.
835 (inf_ttrace_attach): Don't push the target if it is already
837 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
838 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
839 after mourning the inferior. Use inf_child_maybe_unpush_target.
840 (darwin_attach_pid): Don't push the target if it is already
842 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
843 mourning the inferior. Use inf_child_maybe_unpush_target.
844 (gnu_detach): Use inf_child_maybe_unpush_target.
845 * go32-nat.c (go32_create_inferior): Don't push the target if it
847 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
848 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
849 (procfs_open): Rename to ...
850 (procfs_open_1): ... this. Add target_ops parameter. Adjust
851 comments. Can target_preopen before changing node. Call
852 inf_child_open_target to push the target explicitly.
853 (procfs_attach): Don't push the target if it is already pushed.
854 (procfs_detach): Use inf_child_maybe_unpush_target.
855 (procfs_create_inferior): Don't push the target if it is already
857 (nto_native_ops): New global.
858 (procfs_open): Reimplement.
859 (procfs_native_open): New function.
860 (init_procfs_targets): Install procfs_native_open as to_open of
861 "target native". Store a pointer to the "native" target in
863 * procfs.c (procfs_attach): Don't push the target if it is already
865 (procfs_detach): Use inf_child_maybe_unpush_target.
866 (procfs_mourn_inferior): Only unpush the target after mourning the
867 inferior. Use inf_child_maybe_unpush_target.
868 (procfs_init_inferior): Don't push the target if it is already
870 * windows-nat.c (do_initial_windows_stuff): Don't push the target
871 if it is already pushed.
873 2014-05-21 Pedro Alves <palves@redhat.com>
875 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
876 and "procfs" targets are now called "native" instead.
878 2014-05-21 Pedro Alves <palves@redhat.com>
880 * go32-nat.c (go32_open): Delete.
881 (go32_target): Don't override the to_open method.
883 2014-05-21 Pedro Alves <palves@redhat.com>
885 * nto-procfs.c (procfs_can_run): New function.
886 (nto_procfs_ops): New global.
887 (init_procfs_targets): New, based on procfs_target. Install
888 "target native" in addition to "target procfs".
889 (_initialize_procfs): Call init_procfs_targets instead of adding
892 2014-05-21 Pedro Alves <palves@redhat.com>
894 * windows-nat.c (windows_target): Don't override to_shortname,
895 to_longname or to_doc.
897 2014-05-21 Pedro Alves <palves@redhat.com>
899 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
902 2014-05-21 Pedro Alves <palves@redhat.com>
904 * darwin-nat.c (_initialize_darwin_inferior): Don't override
905 to_shortname, to_longname or to_doc.
907 2014-05-21 Pedro Alves <palves@redhat.com>
909 * go32-nat.c (go32_target): Don't override to_shortname,
910 to_longname or to_doc.
912 2014-05-21 Pedro Alves <palves@redhat.com>
914 * inf-child.c (inf_child_open): Remove mention of "child".
915 (inf_child_target): Rename target to "native" instead of "child".
917 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
919 * Makefile.in (SFILES): Delete "regset.c".
920 (COMMON_OBS): Delete "regset.o".
922 * regset.h (regset_alloc): Delete prototype.
924 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
926 * sparc-linux-tdep.c (sparc32_linux_gregset)
927 (sparc32_linux_fpregset): New static regset structures.
928 (sparc32_linux_init_abi): Drop dynamic regset allocations.
929 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
931 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
932 (sparc64_linux_fpregset): New static regset structures.
933 (sparc64_linux_init_abi): Drop dynamic regset allocations.
934 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
935 New static regset structures.
936 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
937 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
938 New static regset structures.
939 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
940 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
941 New static regset structures.
942 (sparc64obsd_init_abi): Drop dynamic regset allocations.
943 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
944 New static regset structures.
945 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
949 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
950 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
951 register maps ("regmaps") from "*regset" to "*regmap". Do this
952 for all regmap types and variables.
953 * sparc-linux-tdep.c (sparc32_linux_step_trap)
954 (sparc32_linux_supply_core_gregset)
955 (sparc32_linux_collect_core_gregset)
956 (sparc32_linux_supply_core_fpregset)
957 (sparc32_linux_collect_core_fpregset): Likewise.
958 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
959 (sparc_gregmap, sparc_fpregmap): ... these.
960 (sparc_supply_gregset, sparc_collect_gregset)
961 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
962 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
963 (_initialize_sparc_nat): Rename regmaps.
964 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
965 (sparc_gregmap, sparc_fpregmap): ... these.
966 (sparc_supply_gregset, sparc_collect_gregset)
967 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
968 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
970 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
971 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
973 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
975 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
976 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
977 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
979 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
980 (sparc32_bsd_fpregset): Rename to...
981 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
982 (sparc32_bsd_fpregmap): ... these.
983 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
984 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
985 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
986 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
987 (struct sparc_gregmap, struct sparc_fpregmap)
988 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
989 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
990 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
991 (sparc32_supply_regset, sparc32_collect_gregset)
992 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
994 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
995 (sparc64_linux_ptrace_gregmap): ... this.
996 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
997 (_initialize_sparc64_linux_nat): Rename regmaps.
998 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
999 (sparc64_linux_core_gregmap): ... this.
1000 (sparc64_linux_supply_core_gregset)
1001 (sparc64_linux_collect_core_gregset)
1002 (sparc64_linux_supply_core_fpregset)
1003 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1004 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1005 (sparc64_sol2_fpregset): Rename to...
1006 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1007 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1008 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1010 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1011 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1012 (sparc64_bsd_fpregset): Rename to...
1013 (struct sparc_gregmap, sparc64_sol2_gregmap)
1014 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1015 (sparc64_bsd_fpregmap): ... these.
1016 (sparc64_supply_gregset, sparc64_collect_gregset)
1017 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1019 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1020 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1021 (sparc64fbsd_gregmap): ... this.
1022 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1023 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1025 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1026 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1027 (sparc64nbsd_collect_fpregset): Likewise.
1028 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1029 (sparc64nbsd_gregmap): ... this.
1030 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1032 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1033 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1034 (sparc64obsd_gregmap): ... this.
1035 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1037 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1038 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1039 (sparc32nbsd_gregmap): ... this.
1040 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1045 * score-tdep.c (score7_linux_gregset): New static regset
1047 (score7_linux_regset_from_core_section): Remove dynamic regset
1049 (score_gdbarch_init): Drop allocation of tdep structure.
1050 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1054 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1056 (am33_regset_from_core_section): Remove dynamic regset
1059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1061 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1062 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1064 (mips_linux_regset_from_core_section): Remove dynamic regset
1066 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1067 'gregset64', 'fpregset', and 'fpregset64'.
1068 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1069 deleted tdep fields.
1071 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1073 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1075 (amd64_regset_from_core_section): Remove dynamic regset
1077 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1079 (amd64obsd_regset_from_core_section): Remove dynamic regset
1081 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1083 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1084 x86-common regset supply function.
1085 * i386-tdep.c (i386_collect_gregset): Make static.
1086 (i386_gregset): New global regset structure.
1087 (i386_fpregset, i386_xstateregset): New static regset structures.
1088 (i386_regset_from_core_section): Remove dynamic regset
1090 (i386_gdbarch_init): Remove initialization of tdep fields
1091 'gregset', 'fpregset', and 'xstateregset'.
1092 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1093 'fpregset', and 'xstateregset'.
1094 (i386_collect_gregset): Remove prototype.
1095 (i386_gregset): New declaration.
1096 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1098 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1103 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1104 (arm_linux_vfpregset): New static regset structures.
1105 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1107 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1108 and 'vfpregset' fields.
1110 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1112 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1113 (aarch64_linux_fpregset): New static regset structures.
1114 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1115 of regset structures.
1116 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1119 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1121 * regset.h (struct regset): Remove gdbarch field.
1122 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1123 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1124 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1126 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1127 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1128 (ppc32_linux_vsxregset): Likewise.
1129 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1130 via the regcache instead of the regset.
1131 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1132 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1133 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1134 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1139 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1140 Constify structures.
1141 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1142 (alphanbsd_aout_gregset): Likewise.
1143 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1144 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1146 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1147 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1149 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1150 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1151 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1152 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1153 * m88k-tdep.c (m88k_gregset): Likewise.
1154 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1155 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1156 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1157 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1158 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1159 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1160 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1161 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1162 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1164 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1165 * sh-tdep.h (sh_corefile_gregset): Likewise.
1166 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1167 * vax-tdep.c (vax_gregset): Likewise.
1169 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 Fix TLS access for -static -pthread.
1172 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1173 (try_thread_db_load_1): Initialize it.
1174 (thread_db_get_thread_local_address): Call it if LM is zero.
1175 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1176 * target.h (struct target_ops) (to_get_thread_local_address): Add
1177 load_module_addr comment.
1179 2014-05-21 Pedro Alves <palves@redhat.com>
1181 * dcache.c (dcache_read_memory_partial): If reading the cache line
1182 fails, fallback to reading just the memory the caller wanted.
1184 2014-05-20 Doug Evans <dje@google.com>
1186 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1187 instead of get_current_arch.
1189 2014-05-20 Pedro Alves <palves@redhat.com>
1191 * NEWS: Mention that compare-sections now works with all targets.
1193 * remote.c (PACKET_qCRC): New enum value.
1194 (remote_verify_memory): Don't send qCRC if the target has no
1195 execution. Use packet_support/packet_ok. If the target doesn't
1196 support the qCRC packet, fallback to a deep memory copy.
1197 (compare_sections_command): Say "target image" instead of "remote
1199 (_initialize_remote): Add PACKET_qCRC to the list of config
1200 packets that have no associated command. Extend comment.
1201 * target.c (simple_verify_memory, default_verify_memory): New
1203 * target.h (struct target_ops) <to_verify_memory>: Default to
1204 default_verify_memory.
1205 (simple_verify_memory): New declaration.
1206 * target-delegates.c: Regenerate.
1208 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1210 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1212 2014-05-20 Hui Zhu <hui@codesourcery.com>
1213 Yao Qi <yao@codesourcery.com>
1216 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1217 and change address of sp and pc.
1219 2014-05-19 Tom Tromey <tromey@redhat.com>
1221 * gdbtypes.c (rank_function): Use XNEWVEC.
1222 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1224 2014-05-19 Doug Evans <dje@google.com>
1226 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1227 build_type_unit_groups and moved closer to only caller. Remove
1228 arguments. All references updated. Remove outdated .gdb_index
1230 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1231 build_type_psymtabs_1.
1233 2014-05-19 Doug Evans <dje@google.com>
1235 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1236 n_type_unit_groups, all_type_unit_groups. All uses removed.
1237 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1238 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1239 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1240 (add_type_unit_group_to_table): Delete.
1242 2014-05-19 Doug Evans <dje@google.com>
1244 * eval.c (evaluate_subexp_standard): Add some comments.
1246 2014-05-17 Doug Evans <xdje42@gmail.com>
1248 * progspace.c (remove_program_space): Delete, unused.
1249 * progspace.h (remove_program_space): Ditto.
1251 2014-05-17 Doug Evans <xdje42@gmail.com>
1253 * inferior.c (prune_inferiors): Fix comment.
1254 (remove_inferior_command): Call prune_program_spaces.
1256 2014-05-16 Doug Evans <dje@google.com>
1258 New command line option -D.
1260 * main.c (set_gdb_data_directory): New function.
1261 (captured_main): Recognize -D. Flag error for --data-directory "".
1262 Call set_gdb_data_directory.
1263 (print_gdb_help): Print --data-directory, -D.
1264 * main.h (set_gdb_data_directory): Declare.
1265 * top.c (staged_gdb_datadir): New static global.
1266 (set_gdb_datadir): Call set_gdb_data_directory
1267 (show_gdb_datadir): New function.
1268 (init_main): Update init of data-directory parameter.
1270 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1272 Import the "dirfd" gnulib module.
1273 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1274 * gnulib/aclocal.m4: Update.
1275 * gnulib/config.in: Update.
1276 * gnulib/configure: Update.
1277 * gnulib/import/Makefile.am: Update.
1278 * gnulib/import/Makefile.in: Update.
1279 * gnulib/import/dirfd.c: New.
1280 * gnulib/import/m4/dirfd.m4: New.
1281 * gnulib/import/m4/gnulib-cache.m4: Update.
1282 * gnulib/import/m4/gnulib-comp.m4: Update.
1284 2014-05-16 Pierre Muller <muller@sourceware.org>
1285 Yao Qi <yao@codesourcery.com>
1287 * valprint.c (print_wchar): Move the code on checking whether
1288 W is a printable wide char to the default branch of switch
1289 statement below. Call wchar_printable instead of gdb_iswprint.
1291 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1293 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1294 ldr.w and ldrd instructions.
1296 2014-05-15 Doug Evans <dje@google.com>
1298 * dwarf2read.c (read_structure_type): Delete outdated comments.
1300 2014-05-14 Tom Tromey <tromey@redhat.com>
1302 * macrocmd.c (print_macro_definition): Reindent.
1304 2014-05-13 Doug Evans <xdje42@gmail.com>
1306 * python/py-cmd.c (cmdpy_completer): Add comment.
1307 (completers): Make const.
1309 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1311 * infrun.c (resume): Remove should_resume (unused). Move up
1312 declaration of resume_ptid.
1314 2014-05-13 Tom Tromey <tromey@redhat.com>
1316 * language.h (unop_type_check): Remove.
1317 (binop_type_check): Don't declare.
1319 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1321 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1322 call to regcache_raw_collect.
1324 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1326 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1327 mi_console->quote as the quoting character.
1329 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1331 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1333 2014-04-29 Tom Tromey <tromey@redhat.com>
1335 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1336 "show debug varobj".
1338 2014-05-07 Kyle McMartin <kyle@redhat.com>
1340 Pushed by Joel Brobecker <brobecker@adacore.com>.
1341 * aarch64-tdep.c (aarch64_software_single_step): New function.
1342 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1343 with aarch64_software_single_step.
1345 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1349 2014-05-05 Keith Seitz <keiths@redhat.com>
1351 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1352 variable or history value is successfully parsed.
1354 2014-05-05 Yao Qi <yao@codesourcery.com>
1355 Pedro Alves <palves@redhat.com>
1357 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1358 address of blocks that intersects the requested range. Trim
1359 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1361 * ctf.c (ctf_xfer_partial): Likewise.
1363 2014-05-05 Yao Qi <yao@codesourcery.com>
1365 * printcmd.c (display_command): Remove the check to
1366 target_has_execution.
1368 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1370 * ppcobsd-nat.c: Include "obsd-nat.h".
1371 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1373 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1375 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1377 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1378 and 16-bit signed and unsigned arguments. Update comment.
1379 (stap_parse_probe_arguments): Extend code to handle such
1380 arguments. Use warning instead of complaint to notify about
1381 unrecognized bitness.
1383 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1385 PR breakpoints/16889
1386 * stap-probe.c (stap_parse_probe_arguments): Simplify
1387 check for non-prefixed probes (i.e., probes whose
1388 arguments do not start with "N@"). Always set the
1389 argument type to a sane value.
1391 2014-05-01 David Taylor <dtaylor@emc.com>
1393 * remote.c (compare_sections_command): Add -r option to compare
1394 all loadable read-only sections.
1396 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1398 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1399 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1401 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1402 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1403 Remove unused CORE_ADDR argument. Update all callers.
1405 2014-04-29 Pedro Alves <palves@redhat.com>
1407 * remote.c (struct packet_config) <detect>: Extend comment.
1408 (add_packet_config_cmd): Don't set the config's detect or support
1410 (init_all_packet_configs): Also initialize the config's 'detect'
1412 (reset_all_packet_configs_support): New function.
1413 (remote_open_1): Call reset_all_packet_configs_support instead of
1414 init_all_packet_configs.
1415 (_initialize_remote): Initialize all packet configs. Assert that
1416 all packets have an associated command, except a few known
1419 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1421 * dwarf2read.c (read_subrange_type): Handle dynamic
1422 DW_AT_lower_bound attributes.
1424 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1426 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1427 dynamic bounds before computing its upper bound.
1428 (ada_discrete_type_low_bound): Same as above with the lower bound.
1430 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1432 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1433 range types. Adjust the array handling implementation to
1434 take advantage of this change.
1435 (resolve_dynamic_range): New function, mostly extracted from
1436 resolve_dynamic_bounds.
1437 (resolve_dynamic_array): New function, mostly extracted from
1438 resolve_dynamic_bounds.
1439 (resolve_dynamic_bounds): Delete.
1440 (resolve_dynamic_type): Reimplement. Add handling of
1441 TYPE_CODE_RANGE types.
1443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1445 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1446 handling of parallel ___XA types.
1448 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1450 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1451 unnecessary second call to static_unwrap_type.
1453 2014-04-27 Hui Zhu <hui@codesourcery.com>
1455 * stack.c (print_frame_info): Call do_gdb_disassembly with
1456 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1458 2014-04-26 Doug Evans <xdje42@gmail.com>
1460 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1462 2014-04-25 Pedro Alves <palves@redhat.com>
1465 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1466 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1467 and newline from built string.
1468 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1469 (linux_ptrace_attach_fail_reason): ... this.
1470 * linux-nat.c (linux_nat_attach): Adjust to use
1471 linux_ptrace_attach_fail_reason.
1473 2014-04-25 Pedro Alves <palves@redhat.com>
1475 * remote.c (struct remote_state): Remove multi_process_aware,
1476 non_stop_aware, cond_tracepoints, cond_breakpoints,
1477 breakpoint_commands, fast_tracepoints, static_tracepoints,
1478 install_in_trace, disconnected_tracing,
1479 enable_disable_tracepoints, string_tracing, and
1480 augmented_libraries_svr4_read fields.
1481 (remote_multi_process_p): Move further below in the file.
1482 (struct packet_config): Add comments.
1483 (update_packet_config): Delete function.
1484 (show_packet_config_cmd): Use packet_config_support.
1485 (add_packet_config_cmd): Use NULL as set callback.
1486 (packet_ok): "set remote foo-packet"-style commands no longer
1487 change config->supported -- adjust.
1488 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1489 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1490 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1491 (PACKET_QNonStop, PACKET_multiprocess_feature)
1492 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1493 (PACKET_DisconnectedTracing_feature)
1494 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1495 (set_remote_protocol_packet_cmd): Delete function.
1496 (packet_config_support, packet_support): New functions.
1497 (set_remote_protocol_Z_packet_cmd): Don't call
1498 update_packet_config.
1499 (remote_query_attached, remote_pass_signals)
1500 (remote_program_signals, remote_threads_info)
1501 (remote_threads_extra_info, remote_start_remote): Use
1503 (remote_start_remote): Use packet_config_support and
1505 (init_all_packet_configs): Set all packets to unknown support,
1506 instead of calling update_packet_config.
1507 (remote_check_symbols): Use packet_support.
1508 (remote_supported_packet): Unconditionally set the packet config's
1510 (remote_multi_process_feature, remote_non_stop_feature)
1511 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1512 (remote_breakpoint_commands_feature)
1513 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1514 (remote_install_in_trace_feature)
1515 (remote_disconnected_tracing_feature)
1516 (remote_enable_disable_tracepoint_feature)
1517 (remote_string_tracing_feature)
1518 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1519 (remote_protocol_features): Adjust to use remote_supported_packet
1520 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1521 "ConditionalTracepoints", "ConditionalBreakpoints",
1522 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1523 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1524 "EnableDisableTracepoints", and "tracenz".
1525 (remote_query_supported): Use packet_support.
1526 (remote_open_1): Adjust.
1527 (extended_remote_attach_1): Use packet_support. Switch on the
1528 result of packet_ok instead of checking whether the packet ended
1530 (remote_vcont_resume): Use packet_support.
1531 (remote_resume, remote_stop_ns, fetch_register_using_p)
1532 (remote_prepare_to_store, store_register_using_P)
1533 (check_binary_download, remote_write_bytes): Use packet_support.
1534 (remote_vkill): Use packet_support. Switch on the result of
1535 packet_ok instead of checking whether the packet ended up
1537 (extended_remote_supports_disable_randomization): Use
1539 (extended_remote_run): Switch on the result of packet_ok instead
1540 of checking whether the packet ended up disabled.
1541 (remote_insert_breakpoint, remote_remove_breakpoint)
1542 (remote_insert_watchpoint, remote_remove_watchpoint)
1543 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1545 (remote_search_memory): Use packet_config_support.
1546 (remote_get_thread_local_address, remote_get_tib_address)
1547 (remote_hostio_send_command, remote_can_execute_reverse): Use
1549 (remote_supports_cond_tracepoints)
1550 (remote_supports_cond_breakpoints)
1551 (remote_supports_fast_tracepoints)
1552 (remote_supports_static_tracepoints)
1553 (remote_supports_install_in_trace)
1554 (remote_supports_enable_disable_tracepoint)
1555 (remote_supports_string_tracing)
1556 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1557 the packet config says the feature is enabled or disabled.
1558 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1559 (remote_get_trace_status): Use packet_support.
1560 (remote_set_disconnected_tracing): Adjust to check whether the
1561 feature is enabled with packet_support.
1562 (remote_set_trace_buffer_size, remote_use_agent)
1563 (remote_can_use_agent, remote_supports_btrace): Use
1565 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1566 Use packet_config_support.
1567 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1568 the packet config says the feature is enabled or disabled.
1569 (set_range_stepping): Use packet_support.
1571 2014-04-25 Tom Tromey <tromey@redhat.com>
1573 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1576 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1578 * NEWS: Mention support for C99 variable length arrays.
1580 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1582 * ada-lang.c (standard_exc): Expand introductory comment.
1584 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1585 Walfred Tedeschi <walfred.tedeschi@intel.com>
1587 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1589 (amd64_linux_read_description): Add code to handle AVX512 xstate
1590 mask and return respective tdesc.
1591 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1592 and features/i386/x32-avx512-linux.c.
1593 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1594 (amd64_linux_core_read_description): Add code to handle AVX512
1595 xstate mask and return respective tdesc.
1596 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1597 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1599 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1600 (tdesc_amd64_avx512_linux): New prototype.
1601 (tdesc_x32_avx512_linux): Likewise.
1602 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1603 features/i386/x32-avx512.c.
1604 (amd64_ymm_avx512_names): New register names for pseudo
1606 (amd64_ymmh_avx512_names): New register names for raw registers
1608 (amd64_k_names): New register names for K registers.
1609 (amd64_zmmh_names): New register names for ZMM raw registers.
1610 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1611 (amd64_xmm_avx512_names): New register names for XMM16-31
1613 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1615 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1616 if feature is present.
1617 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1618 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1619 (AMD64_NUM_REGS): Adjust to new number of registers.
1620 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1621 registers supplied via XSTATE by AVX512 registers.
1622 (i386_linux_read_description): Add case for AVX512.
1623 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1624 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1625 (i386_linux_core_read_description): Add case for AVX512.
1626 (i386_linux_init_abi): Install supported register note section
1628 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1630 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1631 registers to be number of zmm7h + 1.
1632 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1633 * i386-tdep.c: Include features/i386/i386-avx512.c.
1634 (i386_zmm_names): Add ZMM pseudo register names array.
1635 (i386_zmmh_names): Add ZMM raw register names array.
1636 (i386_k_names): Add K raw register names array.
1637 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1638 registers. AVX512 has 16 more ZMM registers than there are YMM
1640 (i386_zmmh_regnum_p): Add function to look up register number of
1642 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1643 (i386_k_regnum_p): Likewise for K raw registers.
1644 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1645 registers added by AVX512.
1646 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1647 registers added by AVX512.
1648 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1650 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1651 (i386_pseudo_register_name): Add ZMM pseudo registers.
1652 (i386_zmm_type): Construct and return vector registers type for ZMM
1654 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1655 ZMM0-31 pseudo registers and K registers.
1656 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1657 and YMM16-31 registers from register cache.
1658 (i386_pseudo_register_write): Add code to write K, ZMM and
1660 (i386_register_reggroup_p): Add code to include/exclude AVX512
1661 registers in/from respective register groups.
1662 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1663 registers if feature is present in xcr0.
1664 (i386_gdbarch_init): Add code to initialize AVX512 feature
1665 variables in tdep structure, wire in pseudo registers and call
1666 initialize_tdesc_i386_avx512.
1667 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1669 (i386_regnum): Add AVX512 registers.
1670 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1671 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1672 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1673 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1675 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1676 (i386_ymm_avx512_regnum_p): Likewise.
1677 (i386_k_regnum_p): Likewise.
1678 (i386_zmm_regnum_p): Likewise.
1679 (i386_zmmh_regnum_p): Likewise.
1680 * i387-tdep.c : Update year in copyright notice.
1681 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1683 (XSAVE_YMM_AVX512_ADDR): New macro.
1684 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1686 (XSAVE_XMM_AVX512_ADDR): New macro.
1687 (xsave_avx512_k_offset): New table for K register offsets in
1689 (XSAVE_AVX512_K_ADDR): New macro.
1690 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1692 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1693 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1695 (i387_collect_xsave): Add code to collect AVX512 registers from
1697 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1698 of XMM16-31 registers.
1699 (I387_NUM_K_REGS): New define for number of K registers.
1700 (I387_K0_REGNUM): New define for K0 register number.
1701 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1702 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1703 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1705 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1706 (I387_XMM16_REGNUM): New define for XMM16 register number.
1707 (I387_YMM0_REGNUM): New define for YMM0 register number.
1708 (I387_KEND_REGNUM): New define for last K register number.
1709 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1710 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1712 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1714 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1716 * features/Makefile: Add AVX512 related files.
1717 * features/i386/32bit-avx512.xml: New file.
1718 * features/i386/64bit-avx512.xml: Likewise.
1719 * features/i386/amd64-avx512-linux.c: Likewise.
1720 * features/i386/amd64-avx512-linux.xml: Likewise.
1721 * features/i386/amd64-avx512.c: Likewise.
1722 * features/i386/amd64-avx512.xml: Likewise.
1723 * features/i386/i386-avx512-linux.c: Likewise.
1724 * features/i386/i386-avx512-linux.xml: Likewise.
1725 * features/i386/i386-avx512.c: Likewise.
1726 * features/i386/i386-avx512.xml: Likewise.
1727 * features/i386/x32-avx512-linux.c: Likewise.
1728 * features/i386/x32-avx512-linux.xml: Likewise.
1729 * features/i386/x32-avx512.c: Likewise.
1730 * features/i386/x32-avx512.xml: Likewise.
1731 * regformats/i386/amd64-avx512-linux.dat: New file.
1732 * regformats/i386/amd64-avx512.dat: Likewise.
1733 * regformats/i386/i386-avx512-linux.dat: Likewise.
1734 * regformats/i386/i386-avx512.dat: Likewise.
1735 * regformats/i386/x32-avx512-linux.dat: Likewise.
1736 * regformats/i386/x32-avx512.dat: Likewise.
1737 * NEWS: Add note about new support for AVX512.
1740 2014-04-23 Pedro Alves <palves@redhat.com>
1742 * breakpoint.c (insert_bp_location): Tolerate errors if the
1743 breakpoint is set in a user-loaded objfile.
1744 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1745 location is marked shlib_disabled. If the breakpoint is set in a
1746 user-loaded objfile is a GDB-side memory breakpoint, validate it
1747 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1748 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1750 * mem-break.c (memory_validate_breakpoint): New function.
1751 * objfiles.c (userloaded_objfile_contains_address_p): New
1753 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1754 * target.h (memory_validate_breakpoint): New declaration.
1756 2014-04-23 Pedro Alves <palves@redhat.com>
1758 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1759 the breakpoint is set in a shared library, only suppress
1760 errors for software breakpoints, not hardware breakpoints.
1762 2014-04-22 Pedro Alves <palves@redhat.com>
1764 * infrun.c (schedlock_applies): New function, factored out from
1765 find_thread_needs_step_over.
1766 (find_thread_needs_step_over): Use it.
1767 (switch_back_to_stepped_thread): Always clear trap_expected if the
1768 step over is finished. Return early if scheduler locking applies.
1769 Look for the stepping thread and a potential step-over thread with
1771 (currently_stepping_or_nexting_callback): Delete.
1773 2014-04-22 Nick Clifton <nickc@redhat.com>
1775 * NEWS: Mention that ARM sim now supports tracing.
1777 2014-04-22 Yao Qi <yao@codesourcery.com>
1779 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1781 * tracefile.c (tracefile_fetch_registers): ... it. New
1783 * tracefile.h (tracefile_fetch_registers): Declare.
1784 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1785 tracefile_fetch_registers.
1787 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1790 * windows-nat.c (thread_rec): Don't display a warning when
1791 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1792 fails for any reason, set th->suspended to -1, so that we don't
1793 try to resume such a thread. Also, don't return NULL in these
1794 cases, to avoid completely ruin the session due to "PC register is
1795 not available" error.
1796 (do_windows_fetch_inferior_registers): Check errors in
1797 GetThreadContext call.
1798 (windows_continue): Accept an additional argument KILLED; if not
1799 zero, ignore errors in the SetThreadContext call, since the
1800 inferior was killed and is shutting down.
1801 (windows_resume, get_windows_debug_event)
1802 (windows_create_inferior, windows_mourn_inferior)
1803 (windows_kill_inferior): All callers of windows_continue changed
1804 to adjust to its new calling sequence.
1806 2014-04-19 Yao Qi <yao@codesourcery.com>
1808 * ctf.c (ctf_open): Call post_create_inferior.
1810 2014-04-19 Yao Qi <yao@codesourcery.com>
1812 * ctf.c (handle_id): New static variable.
1813 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1814 value. Get the declaration of event "register" and get length
1815 of field "contents".
1817 2014-04-19 Yao Qi <yao@codesourcery.com>
1819 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1821 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1823 * valops.c (oload_method_static): Remove unnecessary argument
1824 METHOD. Update all callers.
1826 2014-04-18 Pedro alves <palves@redhat.com>
1827 Tom Tromey <tromey@redhat.com>
1830 * frame.c (get_prev_frame_1): Rename to ...
1831 (get_prev_frame_always): ... this, and make extern. Adjust.
1832 (skip_artificial_frames): Use get_prev_frame_always.
1833 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1834 (get_frame_unwind_stop_reason): Adjust to rename.
1835 * frame.h (get_prev_frame_always): Declare.
1836 * inline-frame.c: Include frame.h.
1837 (inline_frame_this_id): Use get_prev_frame_always.
1839 2014-04-18 Tristan Gingold <gingold@adacore.com>
1841 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1842 code by using bfd_mach_o_get_base_address.
1844 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1846 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1847 (spu_ax_pseudo_register_collect): New function.
1848 (spu_ax_pseudo_register_push_stack): Likewise.
1849 (spu_dwarf_reg_to_regnum): Likewise.
1850 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1852 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1854 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1855 Replace FRAME argument with FRAME_ID.
1856 * gdbarch.c, gdbarch.h: Regenerate.
1857 * findvar.c (default_value_from_register): Add GDBARCH argument;
1858 replace FRAME by FRAME_ID. No longer call get_frame_id.
1859 (value_from_register): Update call to gdbarch_value_from_register.
1860 * value.h (default_value_from_register): Update prototype.
1861 * s390-linux-tdep.c (s390_value_from_register): Update interface
1862 and call to default_value_from_register.
1863 * spu-tdep.c (spu_value_from_register): Likewise.
1865 * findvar.c (address_from_register): Remove TYPE argument.
1866 Do not call value_from_register; use gdbarch_value_from_register
1867 with null_frame_id instead.
1868 * value.h (address_from_register): Update prototype.
1869 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1870 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1871 address_from_register interface change.
1873 2014-04-17 Yao Qi <yao@codesourcery.com>
1875 * gdbtypes.h: Update comments to link to types and macros'
1878 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1880 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1882 2014-04-16 Keith Seitz <keiths@redhat.com>
1885 * dwarf2read.c (skip_one_die): Check that all relative-offset
1886 sibling DIEs fall within range of the current reader's buffer.
1887 (read_partial_die): Likewise.
1889 2014-04-16 Keith Seitz <keiths@redhat.com>
1892 * cp-namespace.c (lookup_symbol_file): If the type name of
1893 `this' is NULL, return immediately.
1895 2014-04-14 Keith Seitz <keiths@redhat.com>
1898 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1899 from symbol_matches_domain in symtab.c. All local callers
1900 of symbol_matches_domain updated.
1901 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1902 search STRUCT_DOMAIN.
1903 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1904 independently. standard_lookup will do that automatically.
1905 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1906 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1907 (cp_lookup_symbol_in_namespace): Likewise.
1908 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1909 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1910 may return a STRUCT_DOMAIN match.
1911 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1912 * cp-support.c: Include language.h.
1913 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1915 * psymtab.c (match_partial_symbol): Compare the requested
1916 domain with the symbol's domain directly.
1917 (lookup_partial_symbol): Likewise.
1918 * symtab.c (lookup_symbol_in_language): Explain when/why
1919 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1920 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1921 appropriate languages.
1922 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1923 and moved to ada-lang.c
1924 (lookup_block_symbol): Explain that this function only returns
1925 symbol matching the requested DOMAIN.
1926 Compare the requested domain with the symbol's domain directly.
1927 (iterate_over_symbols): Compare the requested domain with the
1928 symbol's domain directly.
1929 * symtab.h (symbol_matches_domain): Remove.
1931 2014-04-14 Tom Tromey <tromey@redhat.com>
1934 * c-exp.y (type_aggregate_p): New function.
1935 (qualified_name, classify_inner_name): Use it.
1936 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1937 and TYPE_TARGET_TYPE of an enum type.
1938 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1940 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1941 handle TYPE_DECLARED_CLASS.
1942 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1944 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1945 * valops.c (enum_constant_from_type): New function.
1946 (value_aggregate_elt): Use it.
1947 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1950 2014-04-14 Tom Tromey <tromey@redhat.com>
1952 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1953 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1955 * value.h (value_aggregate_elt): Update.
1957 2014-04-14 Tom Tromey <tromey@redhat.com>
1959 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1963 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1964 (evaluate_subexp_standard): Pass noside argument.
1965 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1966 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1967 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1968 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1969 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1973 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1974 points to a constant blob.
1976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1978 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1979 property and store it as the high bound and flag the range accordingly.
1980 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1981 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1982 * gdbtypes.h (enum range_flags): New enum.
1983 (struct range_bounds): Add flags member.
1985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1987 * c-typeprint.c (c_type_print_varspec_suffix): Added
1988 check for not yet resolved high bound. If unresolved, print
1989 "variable length" string to the console instead of random
1992 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1994 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1996 (ada_template_to_fixed_record_type_1): Likewise.
1997 (ada_to_fixed_type_1): Likewise.
1998 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1999 (cp_print_value): Likewise.
2000 * d-valprint.c (dynamic_array_type): Likewise.
2001 * findvar.c (address_of_variable): Likewise.
2002 * jv-valprint.c (java_value_print): Likewise.
2003 * valops.c (value_ind): Likewise.
2004 * value.c (coerce_ref): Likewise.
2006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2008 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2009 value and retrieve the dynamic type size.
2011 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2017 Joel Brobecker <brobecker@adacore.com>
2019 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2020 (dwarf2_evaluate_property): New function.
2021 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2022 * dwarf2read.c (attr_to_dynamic_prop): New function.
2023 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2025 * gdbtypes.c: Include dwarf2loc.h.
2026 (is_dynamic_type): New function.
2027 (resolve_dynamic_type): New function.
2028 (resolve_dynamic_bounds): New function.
2029 (get_type_length): New function.
2030 (check_typedef): Use get_type_length to compute type length.
2031 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2032 (TYPE_LOW_BOUND_KIND): New macro.
2033 (is_dynamic_type): New function prototype.
2034 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2035 to resolve dynamic properties of the type. Update comment.
2036 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2038 2014-04-14 Richard Henderson <rth@redhat.com>
2040 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2042 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2043 Doug Evans <xdje42@gmail.com>
2045 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2046 dereference TYPE_CODE_REF values.
2048 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2050 Revert the following changes due to regressions:
2052 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2053 (dwarf2_evaluate_property): New function.
2054 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2055 * dwarf2read.c (attr_to_dynamic_prop): New function.
2056 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2058 * gdbtypes.c: Include dwarf2loc.h.
2059 (is_dynamic_type): New function.
2060 (resolve_dynamic_type): New function.
2061 (resolve_dynamic_bounds): New function.
2062 (get_type_length): New function.
2063 (check_typedef): Use get_type_length to compute type length.
2064 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2065 (TYPE_LOW_BOUND_KIND): New macro.
2066 (is_dynamic_type): New function prototype.
2067 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2068 to resolve dynamic properties of the type. Update comment.
2069 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2071 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2072 passed to sizeof is dynamic evaluate the argument to compute the length.
2074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2075 value and retrieve the dynamic type size.
2077 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2078 (ada_template_to_fixed_record_type_1): Likewise.
2079 (ada_to_fixed_type_1): Likewise.
2080 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2081 (cp_print_value): Likewise.
2082 * d-valprint.c (dynamic_array_type): Likewise.
2083 * eval.c (evaluate_subexp_with_coercion): Likewise.
2084 * findvar.c (address_of_variable): Likewise.
2085 * jv-valprint.c (java_value_print): Likewise.
2086 * valops.c (value_ind): Likewise.
2087 * value.c (coerce_ref): Likewise.
2089 * c-typeprint.c (c_type_print_varspec_suffix): Added
2090 check for not yet resolved high bound. If unresolved, print
2091 "variable length" string to the console instead of random
2094 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2095 property and store it as the high bound and flag the range accordingly.
2096 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2097 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2098 * gdbtypes.h (enum range_flags): New enum.
2099 (struct range_bounds): Add flags member.
2101 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2102 points to a constant blob.
2104 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2105 (evaluate_subexp_standard): Pass noside argument.
2106 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2107 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2108 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2109 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2110 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2112 2014-04-11 Keith Seitz <keiths@redhat.com>
2115 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2116 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2121 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2122 (evaluate_subexp_standard): Pass noside argument.
2123 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2124 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2125 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2126 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2127 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2131 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2132 points to a constant blob.
2134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2136 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2137 property and store it as the high bound and flag the range accordingly.
2138 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2139 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2140 * gdbtypes.h (enum range_flags): New enum.
2141 (struct range_bounds): Add flags member.
2143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2145 * c-typeprint.c (c_type_print_varspec_suffix): Added
2146 check for not yet resolved high bound. If unresolved, print
2147 "variable length" string to the console instead of random
2150 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2152 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2153 (ada_template_to_fixed_record_type_1): Likewise.
2154 (ada_to_fixed_type_1): Likewise.
2155 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2156 (cp_print_value): Likewise.
2157 * d-valprint.c (dynamic_array_type): Likewise.
2158 * eval.c (evaluate_subexp_with_coercion): Likewise.
2159 * findvar.c (address_of_variable): Likewise.
2160 * jv-valprint.c (java_value_print): Likewise.
2161 * valops.c (value_ind): Likewise.
2162 * value.c (coerce_ref): Likewise.
2164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2166 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2167 value and retrieve the dynamic type size.
2169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2171 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2172 passed to sizeof is dynamic evaluate the argument to compute the length.
2174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2176 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2177 (dwarf2_evaluate_property): New function.
2178 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2179 * dwarf2read.c (attr_to_dynamic_prop): New function.
2180 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2182 * gdbtypes.c: Include dwarf2loc.h.
2183 (is_dynamic_type): New function.
2184 (resolve_dynamic_type): New function.
2185 (resolve_dynamic_bounds): New function.
2186 (get_type_length): New function.
2187 (check_typedef): Use get_type_length to compute type length.
2188 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2189 (TYPE_LOW_BOUND_KIND): New macro.
2190 (is_dynamic_type): New function prototype.
2191 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2192 to resolve dynamic properties of the type. Update comment.
2193 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2197 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2198 declaring high/low bounds and change uses accordingly. Call
2199 create_range_type instead of create_static_range_type.
2200 * gdbtypes.c (create_range_type): New function.
2201 (create_range_type): Convert bounds into struct bound_prop and pass
2202 them to create_range_type.
2203 * gdbtypes.h (struct bound_prop): New struct.
2204 (create_range_type): New function prototype.
2205 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2206 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2207 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2209 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2211 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2213 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2214 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2215 * ada-lang.c: All uses of create_range_type updated.
2216 * coffread.c: All uses of create_range_type updated.
2217 * dwarf2read.c: All uses of create_range_type updated.
2218 * f-exp.y: All uses of create_range_type updated.
2219 * m2-valprint.c: All uses of create_range_type updated.
2220 * mdebugread.c: All uses of create_range_type updated.
2221 * stabsread.c: All uses of create_range_type updated.
2222 * valops.c: All uses of create_range_type updated.
2223 * valprint.c: All uses of create_range_type updated.
2225 2014-04-10 Pedro Alves <palves@redhat.com>
2227 * breakpoint.c (single_step_breakpoints)
2228 (single_step_gdbarch): Move up in the file.
2229 (one_breakpoint_xfer_memory): New function, factored out from ...
2230 (breakpoint_xfer_memory): ... here. Also process single-step
2233 2014-04-09 Tristan Gingold <gingold@adacore.com>
2235 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2237 (darwin_decode_exception_message): Free port only after use.
2239 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2241 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2242 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2243 when setting the size of call_length.
2245 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2247 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2248 dereference TYPE_CODE_REF values.
2250 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2252 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2253 end of warning message.
2255 2014-04-03 Doug Evans <dje@google.com>
2257 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2258 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2260 2014-04-02 Alan Modra <amodra@gmail.com>
2262 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2263 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2264 (struct symbol_file_add_from_memory_args): Add size field.
2265 (find_vdso_size): New function.
2266 (add_vsyscall_page): Attempt to find vdso size.
2268 2014-04-01 Doug Evans <dje@google.com>
2270 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2272 2014-04-01 Tristan Gingold <gingold@adacore.com>
2274 * darwin-nat.c (darwin_encode_reply): Add prototype.
2275 (darwin_decode_exception_message): Reply to unknown inferiors.
2276 (darwin_decode_message): Handle message by id. Ignore message
2277 to unknown inferior.
2278 (darwin_wait): Discard unknown messages, add debug trace.
2280 2014-03-31 Doug Evans <dje@google.com>
2282 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2285 2014-03-31 Doug Evans <dje@google.com>
2287 New option "set print symbol-loading".
2289 * solib.c (solib_read_symbols): Only print symbol loading messages
2291 (solib_add): If symbol loading is in "brief" mode, notify user
2292 symbols are being loaded.
2293 (reload_shared_libraries_1): Ditto.
2294 * symfile.c (print_symbol_loading_off): New static global.
2295 (print_symbol_loading_brief): New static global.
2296 (print_symbol_loading_full): New static global.
2297 (print_symbol_loading_enums): New static global.
2298 (print_symbol_loading): New static global.
2299 (print_symbol_loading_p): New function.
2300 (symbol_file_add_with_addrs): Only print symbol loading messages
2302 (_initialize_symfile): Register "print symbol-loading" set/show
2304 * symfile.h (print_symbol_loading_p): Declare.
2306 2014-03-30 Doug Evans <xdje42@gmail.com>
2308 * infrun.c (set_last_target_status): New function.
2309 (handle_inferior_event): Call it.
2311 2014-03-30 Doug Evans <xdje42@gmail.com>
2313 * inferior.h (enum stop_kind): Improve comment.
2315 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2317 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2318 a reference, strip the reference layer before calling
2319 the lang_ops value_has_mutated callback.
2321 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2323 Remove some globals from our parser.
2324 * language.c (unk_lang_parser): Add "struct parser_state"
2326 * language.h (struct language_defn) <la_parser>: Likewise.
2327 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2328 (initialize_expout): Add "struct parser_state" argument.
2329 Rewrite function to use the parser state.
2330 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2331 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2332 write_exp_elt_longcst, write_exp_elt_dblcst,
2333 write_exp_elt_decfloatcst, write_exp_elt_type,
2334 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2335 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2336 write_dollar_variable): Likewise.
2337 (parse_exp_in_context_1): Use parser state.
2338 (insert_type_address_space): Add "struct parser_state" argument.
2340 (increase_expout_size): New function.
2341 * parser-defs.h: Forward declare "struct language_defn" and
2342 "struct parser_state".
2343 (expout, expout_size, expout_ptr): Remove extern declarations.
2344 (parse_gdbarch, parse_language): Rewrite macro declarations to
2345 accept the parser state.
2346 (struct parser_state): New struct.
2347 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2348 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2349 write_exp_elt_decfloatcst, write_exp_elt_type,
2350 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2351 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2352 write_exp_msymbol, write_dollar_variable,
2353 mark_struct_expression, insert_type_address_space): Add "struct
2354 parser_state" argument.
2355 (increase_expout_size): New function.
2356 * utils.c (do_clear_parser_state): New function.
2357 (make_cleanup_clear_parser_state): Likewise.
2358 * utils.h (make_cleanup_clear_parser_state): New function
2360 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2361 Update calls to write_exp* in order to pass the parser state.
2362 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2363 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2364 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2365 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2366 * stap-probe.c (stap_parse_register_operand): Likewise.
2367 (stap_parse_single_operand): Likewise.
2368 (stap_parse_argument_1): Likewise.
2369 (stap_parse_argument): Use parser state.
2370 * stap-probe.h: Include "parser-defs.h".
2371 (struct stap_parse_info) <pstate>: New field.
2372 * c-exp.y (parse_type): Rewrite to use parser state.
2373 (yyparse): Redefine to c_parse_internal.
2374 (pstate): New global variable.
2375 (parse_number): Add "struct parser_state" argument.
2376 (write_destructor_name): Likewise.
2377 (type_exp): Update calls to write_exp* and similars in order to
2379 (exp1, exp, variable, qualified_name, space_identifier,
2380 typename, typebase): Likewise.
2381 (write_destructor_name, parse_number, lex_one_token,
2382 classify_name, classify_inner_name, c_parse): Add "struct
2383 parser_state" argument. Update function to use parser state.
2384 * c-lang.h: Forward declare "struct parser_state".
2385 (c_parse): Add "struct parser_state" argument.
2386 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2387 (yyparse): Redefine macro to ada_parse_internal.
2388 (pstate): New variable.
2389 (write_int, write_object_renaming, write_var_or_type,
2390 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2391 type_int, type_long, type_long_long, type_float, type_double,
2392 type_long_double, type_char, type_boolean, type_system_address):
2393 Add "struct parser_state" argument.
2394 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2395 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2396 var_or_type, aggregate, aggregate_component_list,
2397 positional_list, others, component_group,
2398 component_associations): Update calls to write_exp* and similar
2399 functions in order to use parser state.
2400 (ada_parse, write_var_from_sym, write_int,
2401 write_exp_op_with_string, write_object_renaming,
2402 find_primitive_type, write_selectors, write_ambiguous_var,
2403 write_var_or_type, write_name_assoc, type_int, type_long,
2404 type_long_long, type_float, type_double, type_long_double,
2405 type_char, type_boolean, type_system_address): Add "struct
2406 parser_state" argument. Adjust function to use parser state.
2407 * ada-lang.c (parse): Likewise.
2408 * ada-lang.h: Forward declare "struct parser_state".
2409 (ada_parse): Add "struct parser_state" argument.
2410 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2411 calls to both functions.
2412 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2414 (yyparse): Redefine macro to f_parse_internal.
2415 (pstate): New variable.
2416 (parse_number): Add "struct parser_state" argument.
2417 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2418 and similars in order to use parser state.
2419 (parse_number): Adjust code to use parser state.
2421 (f_parse): New function.
2422 * f-lang.h: Forward declare "struct parser_state".
2423 (f_parse): Add "struct parser_state" argument.
2424 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2426 (yyparse): Redefine macro for java_parse_internal.
2427 (pstate): New variable.
2428 (push_expression_name, push_expression_name, insert_exp): Add
2429 "struct parser_state" argument.
2430 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2431 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2432 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2433 PostIncrementExpression, PostDecrementExpression,
2434 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2435 UnaryExpressionNotPlusMinus, CastExpression,
2436 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2437 RelationalExpression, EqualityExpression, AndExpression,
2438 ExclusiveOrExpression, InclusiveOrExpression,
2439 ConditionalAndExpression, ConditionalOrExpression,
2440 ConditionalExpression, Assignment, LeftHandSide): Update
2441 calls to write_exp* and similars in order to use parser state.
2442 (parse_number): Ajust code to use parser state.
2444 (java_parse): New function.
2445 (push_variable): Add "struct parser_state" argument. Adjust
2446 code to user parser state.
2447 (push_fieldnames, push_qualified_expression_name,
2448 push_expression_name, insert_exp): Likewise.
2449 * jv-lang.h: Forward declare "struct parser_state".
2450 (java_parse): Add "struct parser_state" argument.
2451 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2453 (yyparse): Redefine macro to m2_parse_internal.
2454 (pstate): New variable.
2455 (type_exp, exp, fblock, variable, type): Update calls to
2456 write_exp* and similars to use parser state.
2458 (m2_parse): New function.
2459 * m2-lang.h: Forward declare "struct parser_state".
2460 (m2_parse): Add "struct parser_state" argument.
2461 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2462 * objc-lang.h: Forward declare "struct parser_state".
2463 (end_msglist): Add "struct parser_state" argument.
2464 * p-exp.y (parse_type): Rewrite macro to use parser state.
2465 (yyparse): Redefine macro to pascal_parse_internal.
2466 (pstate): New variable.
2467 (parse_number): Add "struct parser_state" argument.
2468 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2469 write_exp* and similars in order to use parser state.
2470 (parse_number, yylex): Adjust code to use parser state.
2471 (pascal_parse): New function.
2472 * p-lang.h: Forward declare "struct parser_state".
2473 (pascal_parse): Add "struct parser_state" argument.
2474 * go-exp.y (parse_type): Rewrite macro to use parser state.
2475 (yyparse): Redefine macro to go_parse_internal.
2476 (pstate): New variable.
2477 (parse_number): Add "struct parser_state" argument.
2478 (type_exp, exp1, exp, variable, type): Update calls to
2479 write_exp* and similars in order to use parser state.
2480 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2481 to use parser state.
2482 (go_parse): Likewise.
2483 * go-lang.h: Forward declare "struct parser_state".
2484 (go_parse): Add "struct parser_state" argument.
2486 2014-03-27 Doug Evans <dje@google.com>
2488 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2490 2014-03-27 Doug Evans <dje@google.com>
2492 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2493 Remove argument abbrev_section. All callers updated.
2495 2014-03-27 Doug Evans <dje@google.com>
2497 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2498 addr_base, ranges_base.
2500 2014-03-26 Keith Seitz <keiths@redhat.com>
2502 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2503 types, not VAR_DOMAIN.
2505 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2507 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2509 * features/nios2-linux.c: Regenerated.
2510 * features/nios2.c: Regenerated.
2512 2014-03-25 Pedro Alves <palves@redhat.com>
2514 * cli/cli-script.c (script_from_file): Force the interpreter to
2517 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2519 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2520 small stack allocation.
2522 2014-03-24 Tristan Gingold <gingold@adacore.com>
2524 * darwin-nat.c (exc_server): Remove unused prototype.
2525 (darwin_dump_message): Correctly display data on x86_64.
2526 (darwin_encode_reply): Fix style.
2527 Add comments and fix indentation.
2529 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2531 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2533 2014-03-22 Doug Evans <xdje42@gmail.com>
2535 * infcmd.c: Whitespace fixes.
2536 (interrupt_command): Merge two function comments into one.
2538 2014-03-22 Doug Evans <xdje42@gmail.com>
2540 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2543 2014-03-22 Yao Qi <yao@codesourcery.com>
2545 * remote.c (target_read_live_memory): Remove.
2546 (memory_xfer_live_readonly_partial): Rename it to
2547 remote_xfer_live_readonly_partial. Remove argument 'object'.
2548 All callers updated. Call remote_read_bytes_1
2549 instead of target_read_live_memory.
2550 * tracepoint.c (set_traceframe_number): Remove.
2551 (make_cleanup_restore_traceframe_number): Likewise .
2552 * tracepoint.h (set_traceframe_number): Remove declaration.
2553 (make_cleanup_restore_traceframe_number): Likewise.
2555 2014-03-22 Yao Qi <yao@codesourcery.com>
2557 * remote.c (remote_read_bytes): Move code on reading from the
2559 (remote_read_bytes_1): ... here. New function.
2561 2014-03-22 Yao Qi <yao@codesourcery.com>
2563 * ctf.c (ctf_xfer_partial): Check the return value of
2564 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2565 return TARGET_XFER_UNAVAILABLE.
2566 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2567 * target.c (target_read_live_memory): Move it to remote.c.
2568 (memory_xfer_live_readonly_partial): Likewise.
2569 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2570 * remote.c (target_read_live_memory): Moved from target.c.
2571 (memory_xfer_live_readonly_partial): Likewise.
2572 (remote_read_bytes): Factored out from
2573 memory_xfer_partial_1.
2575 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2577 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2580 2014-03-21 Pedro Alves <palves@redhat.com>
2582 * infrun.c (normal_stop): Extend comment.
2584 2014-03-21 Hui Zhu <hui@codesourcery.com>
2585 Pedro Alves <palves@redhat.com>
2587 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2589 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2590 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2591 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2593 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2595 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2596 `z' formatted output modifier.
2598 2014-03-20 Tom Tromey <tromey@redhat.com>
2599 Sergio Durigan Junior <sergiodj@redhat.com>
2601 * probe.c (parse_probes): Turn assert into an ordinary error.
2602 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2603 exceptions when parsing probes. Rearrange the code for clarity.
2605 2014-03-20 Tom Tromey <tromey@redhat.com>
2608 * top.c (execute_command): Only dispatch events if the command
2611 2014-03-20 Tom Tromey <tromey@redhat.com>
2614 * infcall.c: Include event-top.h.
2615 (run_inferior_call): Call async_disable_stdin if needed.
2617 2014-03-20 Pedro Alves <palves@redhat.com>
2619 * infrun.c (prepare_to_proceed): Delete.
2620 (thread_still_needs_step_over): New function.
2621 (find_thread_needs_step_over): New function.
2622 (proceed): If the current thread needs a step-over, set its
2623 steping_over_breakpoint flag. Adjust to use
2624 find_thread_needs_step_over instead of prepare_to_proceed.
2625 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2626 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2628 (switch_back_to_stepped_thread): Step over breakpoints of all
2629 threads not the stepping thread, before switching back to the
2632 2014-03-20 Pedro Alves <palves@redhat.com>
2634 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2636 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2637 * infrun.c (saved_singlestep_ptid)
2638 (stepping_past_singlestep_breakpoint): Delete.
2639 (resume): Remove stepping_past_singlestep_breakpoint handling.
2640 (proceed): Store the prev_pc of the stepping thread too.
2641 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2643 (enum infwait_states): Delete infwait_thread_hop_state.
2644 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2646 (handle_inferior_event): Adjust.
2647 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2648 handling and the thread-hop code. Before removing single-step
2649 breakpoints, check whether the thread hit a single-step breakpoint
2650 of another thread. If it did, the trap is not a random signal.
2651 (switch_back_to_stepped_thread): If the event thread hit a
2652 single-step breakpoint, unblock it before switching to the
2653 stepping thread. Handle the case of the stepped thread having
2655 (keep_going): Handle the case of the current thread moving past a
2656 single-step breakpoint.
2658 2014-03-20 Pedro Alves <palves@redhat.com>
2661 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2662 are being stepped over.
2663 (breakpoint_address_match): Make extern.
2664 * breakpoint.h (breakpoint_address_match): New declaration.
2665 * inferior.h (stepping_past_instruction_at): New declaration.
2666 * infrun.c (struct step_over_info): New type.
2667 (step_over_info): New global.
2668 (set_step_over_info, clear_step_over_info)
2669 (stepping_past_instruction_at): New functions.
2670 (handle_inferior_event): Clear the step-over info when
2671 trap_expected is cleared.
2672 (resume): Remove now stale comment.
2673 (clear_proceed_status): Clear step-over info.
2674 (proceed): Adjust step-over handling to set or clear the step-over
2675 info instead of removing all breakpoints.
2676 (handle_signal_stop): When setting up a thread-hop, don't remove
2678 (stop_stepping): Clear step-over info.
2679 (keep_going): Adjust step-over handling to set or clear step-over
2680 info and then always inserting breakpoints, instead of removing
2681 all breakpoints when stepping over one.
2683 2014-03-20 Pedro Alves <palves@redhat.com>
2685 * infrun.c (previous_inferior_ptid): Adjust comment.
2686 (deferred_step_ptid): Delete.
2687 (infrun_thread_ptid_changed, prepare_to_proceed)
2688 (init_wait_for_inferior): Adjust.
2689 (handle_signal_stop): Delete deferred_step_ptid handling.
2691 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2694 * defs.h (sync_quit_force_run): New declaration.
2695 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2696 * event-top.c (async_sigterm_handler): New declaration.
2697 (async_sigterm_token): New variable.
2698 (async_init_signals): Create also async_sigterm_token.
2699 (async_sigterm_handler): New function.
2700 (sync_quit_force_run): New variable.
2701 (handle_sigterm): Replace quit_force call by other calls.
2702 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2704 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2706 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2707 offset into SPE pseudo registers.
2709 2014-03-18 Pedro Alves <palves@redhat.com>
2712 * inferior.h (print_stop_event): Declare.
2713 * infrun.c (print_stop_event): New, factored out from ...
2714 (normal_stop): ... this.
2715 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2716 of bpstat_print/print_stack_frame.
2718 2014-03-17 Tom Tromey <tromey@redhat.com>
2720 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2722 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2724 * ada-lang.c (decode_constrained_packed_array): Perform a
2725 minimal coercion for reference with coerce_ref instead of
2728 2014-03-17 Tristan Gingold <gingold@adacore.com>
2730 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2731 (darwin_solib_create_inferior_hook): Emit a warning if version
2734 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2736 * python/py-value.c (get_field_flag): Cast flag_name argument to
2737 PyObject_GetAttrString to support Python 2.4.
2739 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2741 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2742 (Global Maintainers): Remove Jan Kratochvil.
2744 2014-03-14 Pedro Alves <palves@redhat.com>
2746 * inferior.h (terminal_ours_for_output): Rename to ...
2747 (child_terminal_ours_for_output): ... this.
2748 (terminal_save_ours): Rename to ...
2749 (child_terminal_save_ours): ... this.
2750 (terminal_ours): Rename to ...
2751 (child_terminal_ours): ... this.
2752 (terminal_inferior): Rename to ...
2753 (child_terminal_inferior): ... this.
2754 (terminal_init_inferior): Rename to ...
2755 (child_terminal_init_inferior): ... this.
2756 (terminal_init_inferior_with_pgrp): Rename to ...
2757 (child_terminal_init_inferior_with_pgrp): ... this.
2758 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2759 (child_terminal_init_with_pgrp): ... this.
2760 (terminal_save_ours): Rename to ...
2761 (child_terminal_save_ours): ... this.
2762 (terminal_init_inferior): Rename to ...
2763 (child_terminal_init): ... this. Adjust.
2764 (terminal_inferior): Rename to ...
2765 (child_terminal_inferior): ... this.
2766 (terminal_ours_for_output): Rename to ...
2767 (child_terminal_ours_for_output): ... this. Adjust.
2768 (terminal_ours): Rename to ...
2769 (child_terminal_ours): ... this.
2770 (terminal_ours_1): Rename to ...
2771 (child_terminal_ours_1): ... this. Adjust.
2772 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2773 * windows-nat.c (do_initial_windows_stuff): Adjust.
2774 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2775 (gnu_terminal_init): ... this. Adjust.
2776 (gnu_target): Adjust.
2777 * inf-child.c (inf_child_target): Adjust.
2779 2014-03-13 Doug Evans <xdje42@gmail.com>
2782 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2785 2014-03-13 Doug Evans <xdje42@gmail.com>
2787 * value.c (record_latest_value): Call release_value_or_incref
2788 instead of release_value.
2790 2014-03-13 Pedro Alves <palves@redhat.com>
2792 * procfs.c (procfs_target): Don't override to_shortname,
2793 to_longname or to_doc.
2795 2014-03-13 Pedro Alves <palves@redhat.com>
2797 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2798 Unix in user visible strings.
2800 2014-03-12 Stan Shebs <stan@codesourcery.com>
2802 * gdbtypes.h: Annotate comments for Doxygen, add a page
2803 block comment with some general info.
2805 2014-03-12 Pedro Alves <palves@redhat.com>
2807 * infcmd.c (prepare_execution_command): New function, factored out
2808 from several execution commands.
2809 (run_command_1, continue_command, step_1, jump_command)
2810 (signal_command, until_command, advance_command, finish_command)
2811 (attach_command): Use prepare_execution_command.
2813 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2815 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2818 (struct arm_linux_thread_points): Removed.
2819 (struct arm_linux_process_info): New.
2820 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2821 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2822 (arm_linux_find_breakpoints_by_tid): Removed.
2823 (struct arch_lwp_info): New.
2824 (arm_linux_find_process_pid): New functions.
2825 (arm_linux_add_process): New functions.
2826 (arm_linux_process_info_get): New functions.
2827 (arm_linux_forget_process): New function.
2828 (arm_linux_get_debug_reg_state): New function.
2829 (struct update_registers_data): New.
2830 (update_registers_callback): New function.
2831 (arm_linux_insert_hw_breakpoint1): Updated.
2832 (arm_linux_remove_hw_breakpoint1): Updated.
2833 (arm_linux_insert_hw_breakpoint): Updated.
2834 (arm_linux_remove_hw_breakpoint): Updated.
2835 (arm_linux_insert_watchpoint): Updated.
2836 (arm_linux_remove_watchpoint): Updated.
2837 (arm_linux_new_thread): Updated.
2838 (arm_linux_prepare_to_resume): New function.
2839 (arm_linux_new_fork): New function.
2840 (_initialize_arm_linux_nat): Updated.
2842 2014-03-12 Pedro Alves <palves@redhat.com>
2844 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2846 2014-03-12 Tom Tromey <tromey@redhat.com>
2848 * inf-child.c (return_zero): New function.
2849 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2850 * aix-thread.c (aix_thread_inferior_created): New function.
2851 (aix_thread_attach): Remove.
2852 (init_aix_thread_ops): Don't set to_attach.
2853 (_initialize_aix_thread): Register inferior_created observer.
2854 * corelow.c (init_core_ops): Don't set to_attach or
2856 * exec.c (init_exec_ops): Don't set to_attach or
2858 * infcmd.c (run_command_1): Use find_run_target. Make direct
2860 (attach_command): Use find_attach_target. Make direct target
2862 * record-btrace.c (init_record_btrace_ops): Don't set
2864 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2866 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2867 set to_create_inferior.
2868 * target.c (complete_target_initialization): Add assertion.
2869 (target_create_inferior): Remove.
2870 (find_default_attach, find_default_create_inferior): Remove.
2871 (find_attach_target, find_run_target): New functions.
2872 (find_default_is_async_p, find_default_can_async_p)
2873 (target_supports_non_stop, target_attach): Remove.
2874 (init_dummy_target): Don't set to_create_inferior or
2875 to_supports_non_stop.
2876 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2877 TARGET_DEFAULT_FUNC.
2878 <to_create_inferior>: Add comment.
2879 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2880 TARGET_DEFAULT_RETURN.
2881 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2882 (find_attach_target, find_run_target): Declare.
2883 (target_create_inferior): Remove.
2884 (target_has_execution_1): Update comment.
2885 (target_supports_non_stop): Remove.
2886 * target-delegates.c: Rebuild.
2888 2014-03-12 Pedro Alves <palves@redhat.com>
2890 * inf-child.h: Update comment to not mention Unix.
2892 2014-03-12 Pedro Alves <palves@redhat.com>
2894 * inf-child.c: Update top comment to not mention Unix. Add
2895 generic comment describing how this target is meant to be used.
2896 (inf_child_post_attach, inf_child_post_startup_inferior)
2897 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2900 2014-03-12 Pedro Alves <palves@redhat.com>
2902 * nto-procfs.c: Include inf-child.h.
2903 (procfs_ops): Delete global.
2904 (procfs_can_run): Delete method.
2905 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2906 target pointer instead of referencing procfs_ops.
2907 (procfs_prepare_to_store): Delete.
2908 (init_procfs_ops): Delete function.
2909 (procfs_target): New function, based on init_procfs_ops, but
2910 inherit inf_child_target.
2911 (_initialize_procfs): Use procfs_target.
2913 2014-03-12 Pedro Alves <palves@redhat.com>
2915 * windows-nat.c: Include inf-child.h.
2916 (windows_ops): Delete global.
2917 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2919 (init_windows_ops): Delete function.
2920 (windows_target): New function, based on init_windows_ops, but
2921 inherit inf_child_target.
2922 (_initialize_windows_nat): Use windows_target. Install x86
2923 specific target methods here.
2925 2014-03-10 Doug Evans <xdje42@gmail.com>
2927 * guile/guile.c (call_initialize_gdb_module): New function.
2928 (initialize_guile): Replace call to scm_init_guile with call to
2931 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2933 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2934 in call to TYPE_CODE macro.
2936 2014-03-10 Jerome Guitton <guitton@adacore.com>
2938 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2939 Resolve tagged types to full view.
2941 2014-03-10 Hui Zhu <hui@codesourcery.com>
2943 * target.h (target_insert_breakpoint): Remove "hardware" from its
2946 2014-03-07 Doug Evans <dje@google.com>
2948 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2950 2014-03-07 Doug Evans <dje@google.com>
2952 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2953 Remove unused local comp_dir_attr. Assert exactly one of
2954 stub_comp_unit_die, stub_comp_dir is non-NULL.
2956 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2958 * target.h (complete_target_initialization, add_target):
2961 2014-03-07 Pedro Alves <palves@redhat.com>
2963 * go32-nat.c: Include inf-child.h.
2964 (go32_ops): Delete global.
2965 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2967 (go32_create_inferior): Push the passed in target pointer instead
2968 of referencing go32_ops.
2969 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2970 (go32_target): New function, based on init_go32_ops, but inherit
2972 (_initialize_go32_nat): Use go32_target. Move parts of
2975 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2977 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2978 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2979 SYMBOL_VALUE_ADDRESS.
2980 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2982 2014-03-06 Yao Qi <yao@codesourcery.com>
2984 * breakpoint.c (get_tracepoint_by_number): Remove argument
2985 optional_p. All callers updated. Adjust comments. Update
2987 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2989 2014-03-06 Yao Qi <yao@codesourcery.com>
2991 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2992 early if get_number returns zero. Use 'p' instead of 'args'.
2994 2014-03-06 Yao Qi <yao@codesourcery.com>
2996 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2999 2014-03-06 Yao Qi <yao@codesourcery.com>
3001 PR breakpoints/16508
3002 * tracepoint.c (check_trace_running): New function.
3003 (trace_find_command): Move code to check_trace_running and
3004 call check_trace_running.
3005 (trace_find_pc_command): Likewise.
3006 (trace_find_tracepoint_command): Likewise.
3007 (trace_find_line_command): Likewise.
3008 (trace_find_range_command): Likewise.
3009 * tracepoint.h (check_trace_running): Likewise.
3010 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3012 2014-03-06 Yao Qi <yao@codesourcery.com>
3014 * target.h (struct target_ops) <to_traceframe_info>: Use
3015 TARGET_DEFAULT_NORETURN (tcomplain ()).
3016 * target-delegates.c: Regenerated.
3018 2014-03-05 Pedro Alves <palves@redhat.com>
3021 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3022 void. Update comment.
3023 (dcache_xfer_memory): Delete.
3024 (dcache_read_memory_partial): New, based on the read bits of
3026 (dcache_update): Add status parameter. Use ULONGEST for len, and
3027 adjust. Discard cache lines if the reason for the update was
3029 * dcache.h (dcache_xfer_memory): Delete declaration.
3030 (dcache_read_memory_partial): New declaration.
3031 (dcache_update): Update prototype.
3032 * target.c (raw_memory_xfer_partial): Update the dcache here.
3033 (memory_xfer_partial_1): Don't handle dcache writes here.
3035 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3037 * remote-sim.c (gdbsim_load): Add const to prog.
3039 2014-03-03 Tom Tromey <tromey@redhat.com>
3041 * elfread.c (probe_key): Change to bfd_data.
3042 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3043 now per-BFD, not per-objfile.
3044 * stap-probe.c (stap_probe_destroy): Update comment.
3045 (handle_stap_probe): Allocate on the per-BFD obstack.
3047 2014-03-03 Tom Tromey <tromey@redhat.com>
3049 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3050 * breakpoint.c (create_longjmp_master_breakpoint): Use
3052 (add_location_to_breakpoint, bkpt_probe_insert_location)
3053 (bkpt_probe_remove_location): Update.
3054 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3055 * elfread.c (elf_symfile_relocate_probe): Remove.
3056 (elf_probe_fns): Update.
3057 (insert_exception_resume_breakpoint): Change type of "probe"
3058 parameter to bound_probe.
3059 (check_exception_resume): Update.
3060 * objfiles.c (objfile_relocate1): Don't relocate probes.
3061 * probe.c (bound_probe_s): New typedef.
3062 (parse_probes): Use get_probe_address. Set sal's objfile.
3063 (find_probe_by_pc): Return a bound_probe.
3064 (collect_probes): Return a VEC(bound_probe_s).
3065 (compare_probes): Update.
3066 (gen_ui_out_table_header_info): Change type of "probes"
3068 (info_probes_for_ops): Update.
3069 (get_probe_address): New function.
3070 (probe_safe_evaluate_at_pc): Update.
3071 * probe.h (struct probe_ops) <get_probe_address>: New field.
3072 <set_semaphore, clear_semaphore>: Add objfile parameter.
3073 (struct probe) <objfile>: Remove field.
3075 <address>: Update comment.
3076 (struct bound_probe): New.
3077 (find_probe_by_pc): Return a bound_probe.
3078 (get_probe_address): Declare.
3079 * solib-svr4.c (struct probe_and_action) <address>: New field.
3080 (hash_probe_and_action, equal_probe_and_action): Update.
3081 (register_solib_event_probe): Add address parameter.
3082 (solib_event_probe_at): Update.
3083 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3085 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3086 (stap_get_probe_address): New function.
3087 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3088 (compile_probe_arg): Update.
3089 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3091 (handle_stap_probe): Don't relocate the probe.
3092 (stap_relocate): Remove.
3093 (stap_gen_info_probes_table_values): Update.
3094 (stap_probe_ops): Remove stap_relocate.
3095 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3096 (debug_sym_probe_fns): Update.
3097 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3098 * symtab.c (init_sal): Use memset.
3099 * symtab.h (struct symtab_and_line) <objfile>: New field.
3100 * tracepoint.c (start_tracing, stop_tracing): Update.
3102 2014-03-03 Tom Tromey <tromey@redhat.com>
3104 * probe.h (parse_probes, find_probe_by_pc)
3105 (find_probes_in_objfile): Fix comments.
3107 2014-03-02 Doug Evans <xdje42@gmail.com>
3109 * infrun.c (handle_signal_stop): Replace test for
3110 TARGET_WAITKIND_STOPPED with an assert.
3112 2014-03-02 Doug Evans <xdje42@gmail.com>
3114 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3116 2014-03-02 Doug Evans <xdje42@gmail.com>
3118 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3120 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3122 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3124 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3126 * i386obsd-nat.c: Include "obsd-nat.h".
3127 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3129 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3131 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3133 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3135 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3137 * mips64obsd-nat.c: Include "obsd-nath".
3138 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3140 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3142 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3144 * amd64obsd-nat.c: Include "obsd-nat,h.
3145 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3147 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3149 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3151 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3152 (find_overload_match): Update call to find_oload_champ.
3153 (find_oload_champ_namespace_loop): Likewise
3155 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3157 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3159 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3160 * config/sparc/obsd64.mh: New file.
3161 * sparc64obsd-nat.c: New file.
3163 * obsd-nat.h: New file.
3164 * obsd-nat.c: New file.
3165 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3166 (ALLDEPFILES): Add obsd-nat.c.
3168 2014-02-28 Tom Tromey <tromey@redhat.com>
3170 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3171 * cli-out.h (cli_ui_out_impl): Now const.
3172 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3173 * ui-out.c (struct ui_out) <impl>: Now const.
3174 (default_ui_out_impl): Now const.
3175 (ui_out_new): Make 'impl' parameter const.
3176 * ui-out.h (ui_out_new): Update.
3178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3180 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3182 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3184 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3186 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3188 Additional PR 8882 fix.
3189 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3191 2014-02-27 Pedro Alves <palves@redhat.com>
3193 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3196 2014-02-27 Pedro Alves <palves@redhat.com>
3199 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3200 * nat/linux-waitpid.c: Include string.h.
3201 (status_to_str): Moved here and made extern.
3202 * nat/linux-waitpid.h (status_to_str): New declaration.
3204 2014-02-27 Hui Zhu <hui@codesourcery.com>
3207 * infrun.c (ptid_match): Move ...
3208 * common/ptid.c (ptid_match): ... here.
3209 * inferior.h (ptid_match): Move ...
3210 * common/ptid.h (ptid_match): ... here.
3212 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3214 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3215 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3218 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3220 * obsd-tdep.c (obsd_auxv_parse): New function.
3221 (obsd_init_abi): Set auxv_parse.
3223 * gdbarch.sh (auxv_parse): New.
3224 * gdbarch.h: Regenerated.
3225 * gdbarch.c: Regenerated.
3226 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3228 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3230 * guile/scm-value.c (gdbscm_history_append_x): New function.
3231 (value_functions): Add it.
3233 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3235 * dwarf2read.c (attr_value_as_address): New function.
3236 (dwarf2_find_base_address, read_call_site_scope): Use
3237 attr_value_as_address in place of DW_ADDR.
3238 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3239 the low and high addresses. Slight rework of the handling
3240 of the high pc being a constant form, and limit it to
3241 DWARF verson 4 or higher.
3242 (dwarf2_record_block_ranges): Likewise.
3243 (read_partial_die): Likewise.
3244 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3246 2014-02-26 Tom Tromey <tromey@redhat.com>
3248 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3250 2014-02-26 Tom Tromey <tromey@redhat.com>
3252 * elfread.c (elf_read_minimal_symbols): Return early if
3253 minimal symbols have already been read. Add "ei" parameter.
3254 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3255 * minsyms.c (prim_record_minimal_symbol_full): Update.
3256 * objfiles.h (struct objstats) <n_minsyms>: Move...
3257 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3258 * symmisc.c (print_objfile_statistics): Update.
3260 2014-02-26 Tom Tromey <tromey@redhat.com>
3262 * elfread.c (elf_read_minimal_symbols): New function, from
3264 (elf_symfile_read): Call it.
3266 2014-02-26 Tom Tromey <tromey@redhat.com>
3268 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3269 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3270 (lookup_minimal_symbol_solib_trampoline)
3271 (lookup_minimal_symbol_by_pc_section_1)
3272 (lookup_minimal_symbol_and_objfile): Update.
3273 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3274 Don't allocate a minimal symbol if minsyms have already been read.
3275 (build_minimal_symbol_hash_tables): Update.
3276 (install_minimal_symbols): Do nothing if minsyms already read.
3277 Use the per-BFD obstack.
3278 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3279 * objfiles.c (allocate_objfile): Call
3280 terminate_minimal_symbol_table later.
3281 (have_minimal_symbols): Update.
3282 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3283 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3284 Move from struct objfile.
3285 <minsyms_read>: New field.
3286 (struct objfile) <msymbols, minimal_symbol_count,
3287 msymbol_hash, msymbol_demangled_hash>: Move.
3288 (ALL_OBJFILE_MSYMBOLS): Update.
3289 * symfile.c (read_symbols): Set minsyms_read.
3290 (reread_symbols): Update.
3291 * symmisc.c (dump_objfile, dump_msymbols): Update.
3293 2014-02-26 Tom Tromey <tromey@redhat.com>
3295 * minsyms.c (msymbols_sort): Remove.
3296 * minsyms.h (msymbols_sort): Remove.
3297 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3299 * elfread.c (elf_symtab_read): Don't add section offsets.
3300 * xcoffread.c (record_minimal_symbol): Don't add section offset
3301 to minimal symbol address.
3302 * somread.c (text_offset, data_offset): Remove.
3303 (som_symtab_read): Don't add section offsets to minimal symbol
3305 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3306 Don't add section offsets to minimal symbols.
3307 * coffread.c (coff_symtab_read): Don't add section offsets
3308 to minimal symbol addresses.
3309 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3310 to minimal symbol addresses.
3311 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3312 section offset to minimal symbol addresses.
3313 * mdebugread.c (parse_partial_symbols): Don't add section
3314 offset to minimal symbol addresses.
3315 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3316 offset to minimal symbol addresses.
3318 2014-02-26 Tom Tromey <tromey@redhat.com>
3320 * ada-lang.c (ada_main_name): Update.
3321 (ada_add_standard_exceptions): Update.
3322 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3324 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3325 * auxv.c (ld_so_xfer_auxv): Update.
3326 * avr-tdep.c (avr_scan_prologue): Update.
3327 * ax-gdb.c (gen_var_ref): Update.
3328 * blockframe.c (get_pc_function_start)
3329 (find_pc_partial_function_gnu_ifunc): Update.
3330 * breakpoint.c (create_overlay_event_breakpoint)
3331 (create_longjmp_master_breakpoint)
3332 (create_std_terminate_master_breakpoint)
3333 (create_exception_master_breakpoint): Update.
3334 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3335 * c-valprint.c (c_val_print): Update.
3336 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3337 * common/agent.c (agent_look_up_symbols): Update.
3338 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3339 * dwarf2loc.c (call_site_to_target_addr): Update.
3340 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3341 * elfread.c (elf_gnu_ifunc_record_cache)
3342 (elf_gnu_ifunc_resolve_by_got): Update.
3343 * findvar.c (default_read_var_value): Update.
3344 * frame.c (inside_main_func): Update.
3345 * frv-tdep.c (frv_frame_this_id): Update.
3346 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3347 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3349 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3350 (hppa_hpux_find_dummy_bpaddr): Update.
3351 * hppa-tdep.c (hppa_symbol_address): Update.
3352 * infcmd.c (until_next_command): Update.
3353 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3355 * linespec.c (minsym_found, add_minsym): Update.
3356 * linux-nat.c (get_signo): Update.
3357 * linux-thread-db.c (inferior_has_bug): Update.
3358 * m32c-tdep.c (m32c_return_value)
3359 (m32c_m16c_address_to_pointer): Update.
3360 * m32r-tdep.c (m32r_frame_this_id): Update.
3361 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3362 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3363 * maint.c (maintenance_translate_address): Update.
3364 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3365 (frob_address): New function.
3366 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3367 frob_address. Rename parameter to "pc_in".
3368 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3370 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3372 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3373 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3374 * objc-lang.c (find_objc_msgsend): Update.
3375 * objfiles.c (objfile_relocate1): Update.
3376 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3377 * p-valprint.c (pascal_val_print): Update.
3378 * parse.c (write_exp_msymbol): Update.
3379 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3380 (ppc_elfv2_skip_entrypoint): Update.
3381 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3382 * printcmd.c (build_address_symbolic, msym_info)
3383 (address_info): Update.
3384 * proc-service.c (ps_pglobal_lookup): Update.
3385 * psymtab.c (find_pc_sect_psymtab_closer)
3386 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3387 Change msymbol parameter to bound_minimal_symbol.
3388 * ravenscar-thread.c (get_running_thread_id): Update.
3389 * remote.c (remote_check_symbols): Update.
3390 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3392 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3393 * solib-dsbt.c (lm_base): Update.
3394 * solib-frv.c (lm_base, main_got): Update.
3395 * solib-irix.c (locate_base): Update.
3396 * solib-som.c (som_solib_create_inferior_hook)
3397 (link_map_start): Update.
3398 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3399 * solib-svr4.c (elf_locate_base, enable_break): Update.
3400 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3401 (flush_ea_cache): Update.
3402 * stabsread.c (define_symbol, scan_file_globals): Update.
3403 * stack.c (find_frame_funname): Update.
3404 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3405 (debug_qf_find_pc_sect_symtab): Update.
3406 * symfile.c (simple_read_overlay_table)
3407 (simple_overlay_update): Update.
3408 * symfile.h (struct quick_symbol_functions)
3409 <find_pc_sect_symtab>: Change type of msymbol to
3410 bound_minimal_symbol.
3411 * symmisc.c (dump_msymbols): Update.
3412 * symtab.c (find_pc_sect_symtab_via_partial)
3413 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3414 (search_symbols, print_msymbol_info): Update.
3415 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3416 (MSYMBOL_VALUE_ADDRESS): Redefine.
3417 (BMSYMBOL_VALUE_ADDRESS): New macro.
3418 * tracepoint.c (scope_info): Update.
3419 * tui/tui-disasm.c (tui_find_disassembly_address)
3420 (tui_get_begin_asm_address): Update.
3421 * valops.c (find_function_in_inferior): Update.
3422 * value.c (value_static_field, value_fn_field): Update.
3424 2014-02-26 Tom Tromey <tromey@redhat.com>
3426 * ada-lang.c (ada_update_initial_language): Update.
3427 (ada_main_name, ada_has_this_exception_support): Update.
3428 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3429 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3430 * arm-tdep.c (arm_skip_stub): Update.
3431 * auxv.c (ld_so_xfer_auxv): Update.
3432 * avr-tdep.c (avr_scan_prologue): Update.
3433 * ax-gdb.c (gen_var_ref): Update.
3434 * breakpoint.c (struct breakpoint_objfile_data)
3435 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3436 type to bound_minimal_symbol.
3437 (create_overlay_event_breakpoint)
3438 (create_longjmp_master_breakpoint)
3439 (create_std_terminate_master_breakpoint)
3440 (create_exception_master_breakpoint): Update.
3441 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3442 * c-exp.y (classify_name): Update.
3443 * coffread.c (coff_symfile_read): Update.
3444 * common/agent.c (agent_look_up_symbols): Update.
3445 * d-lang.c (d_main_name): Update.
3446 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3447 * dec-thread.c (enable_dec_thread): Update.
3448 * dwarf2loc.c (call_site_to_target_addr): Update.
3449 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3450 * eval.c (evaluate_subexp_standard): Update.
3451 * findvar.c (struct minsym_lookup_data) <result>: Change type
3452 to bound_minimal_symbol.
3454 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3455 * frame.c (inside_main_func): Update.
3456 * frv-tdep.c (frv_frame_this_id): Update.
3457 * gcore.c (call_target_sbrk): Update.
3458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3459 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3461 * go-lang.c (go_main_name): Update.
3462 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3463 (hppa_hpux_find_import_stub_for_addr): Update.
3464 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3465 Update. Change return type.
3466 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3468 * jit.c (jit_breakpoint_re_set_internal): Update.
3469 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3471 * linux-nat.c (get_signo): Update.
3472 * linux-thread-db.c (inferior_has_bug): Update
3473 * m32c-tdep.c (m32c_return_value)
3474 (m32c_m16c_address_to_pointer): Update.
3475 * m32r-tdep.c (m32r_frame_this_id): Update.
3476 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3477 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3478 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3479 lookup_minimal_symbol. Change return type.
3480 (lookup_minimal_symbol): Remove.
3481 (lookup_bound_minimal_symbol): Update.
3482 (lookup_minimal_symbol_text): Change return type.
3483 (lookup_minimal_symbol_solib_trampoline): Change return type.
3484 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3485 (lookup_minimal_symbol_solib_trampoline): Change return type.
3486 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3487 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3488 (value_nsstring, find_imps): Update.
3489 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3490 * p-lang.c (pascal_main_name): Update.
3491 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3492 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3493 * proc-service.c (ps_pglobal_lookup): Update.
3494 * ravenscar-thread.c (get_running_thread_msymbol): Change
3496 (has_ravenscar_runtime, get_running_thread_id): Update.
3497 * remote.c (remote_check_symbols): Update.
3498 * sol-thread.c (ps_pglobal_lookup): Update.
3499 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3500 * solib-dsbt.c (lm_base): Update.
3501 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3503 * solib-irix.c (locate_base): Update.
3504 * solib-som.c (som_solib_create_inferior_hook)
3505 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3507 * solib-spu.c (spu_enable_break): Update.
3508 * solib-svr4.c (elf_locate_base, enable_break): Update.
3509 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3510 (flush_ea_cache): Update.
3511 * stabsread.c (define_symbol): Update.
3512 * symfile.c (simple_read_overlay_table): Update.
3513 * symtab.c (find_pc_sect_line): Update.
3514 * tracepoint.c (scope_info): Update.
3515 * tui-disasm.c (tui_get_begin_asm_address): Update.
3516 * value.c (value_static_field): Update.
3518 2014-02-26 Tom Tromey <tromey@redhat.com>
3520 * minsyms.c (prim_record_minimal_symbol_full): Use
3521 SET_MSYMBOL_VALUE_ADDRESS.
3522 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3523 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3524 SET_MSYMBOL_VALUE_ADDRESS.
3525 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3526 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3528 2014-02-26 Tom Tromey <tromey@redhat.com>
3530 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3531 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3532 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3533 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3534 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3535 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3536 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3537 * ada-lang.c (ada_main_name): Update.
3538 (ada_lookup_simple_minsym): Update.
3539 (ada_make_symbol_completion_list): Update.
3540 (ada_add_standard_exceptions): Update.
3541 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3542 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3543 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3544 * arm-tdep.c (skip_prologue_function): Update.
3545 (arm_skip_stack_protector, arm_skip_stub): Update.
3546 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3547 (arm_wince_skip_main_prologue): Update.
3548 * auxv.c (ld_so_xfer_auxv): Update.
3549 * avr-tdep.c (avr_scan_prologue): Update.
3550 * ax-gdb.c (gen_var_ref): Update.
3551 * block.c (call_site_for_pc): Update.
3552 * blockframe.c (get_pc_function_start): Update.
3553 (find_pc_partial_function_gnu_ifunc): Update.
3554 * breakpoint.c (create_overlay_event_breakpoint): Update.
3555 (create_longjmp_master_breakpoint): Update.
3556 (create_std_terminate_master_breakpoint): Update.
3557 (create_exception_master_breakpoint): Update.
3558 (resolve_sal_pc): Update.
3559 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3560 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3562 * c-valprint.c (c_val_print): Update.
3563 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3564 * coffread.c (coff_symfile_read): Update.
3565 * common/agent.c (agent_look_up_symbols): Update.
3566 * dbxread.c (find_stab_function_addr): Update.
3567 (end_psymtab): Update.
3568 * dwarf2loc.c (call_site_to_target_addr): Update.
3569 (func_verify_no_selftailcall): Update.
3570 (tailcall_dump): Update.
3571 (call_site_find_chain_1): Update.
3572 (dwarf_expr_reg_to_entry_parameter): Update.
3573 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3574 (elf_gnu_ifunc_resolve_by_got): Update.
3575 * f-valprint.c (info_common_command): Update.
3576 * findvar.c (read_var_value): Update.
3577 * frame.c (get_prev_frame_1): Update.
3578 (inside_main_func): Update.
3579 * frv-tdep.c (frv_skip_main_prologue): Update.
3580 (frv_frame_this_id): Update.
3581 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3582 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3583 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3584 (gnuv3_skip_trampoline): Update.
3585 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3586 (hppa64_hpux_in_solib_call_trampoline): Update.
3587 (hppa_hpux_skip_trampoline_code): Update.
3588 (hppa64_hpux_search_dummy_call_sequence): Update.
3589 (hppa_hpux_find_import_stub_for_addr): Update.
3590 (hppa_hpux_find_dummy_bpaddr): Update.
3591 * hppa-tdep.c (hppa_symbol_address)
3592 (hppa_lookup_stub_minimal_symbol): Update.
3593 * i386-tdep.c (i386_skip_main_prologue): Update.
3594 (i386_pe_skip_trampoline_code): Update.
3595 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3596 * infcall.c (get_function_name): Update.
3597 * infcmd.c (until_next_command): Update.
3598 * jit.c (jit_breakpoint_re_set_internal): Update.
3599 (jit_inferior_init): Update.
3600 * linespec.c (minsym_found): Update.
3601 (add_minsym): Update.
3602 * linux-fork.c (info_checkpoints_command): Update.
3603 * linux-nat.c (get_signo): Update.
3604 * linux-thread-db.c (inferior_has_bug): Update.
3605 * m32c-tdep.c (m32c_return_value): Update.
3606 (m32c_m16c_address_to_pointer): Update.
3607 (m32c_m16c_pointer_to_address): Update.
3608 * m32r-tdep.c (m32r_frame_this_id): Update.
3609 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3610 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3611 * maint.c (maintenance_translate_address): Update.
3612 * minsyms.c (add_minsym_to_hash_table): Update.
3613 (add_minsym_to_demangled_hash_table): Update.
3614 (msymbol_objfile): Update.
3615 (lookup_minimal_symbol): Update.
3616 (iterate_over_minimal_symbols): Update.
3617 (lookup_minimal_symbol_text): Update.
3618 (lookup_minimal_symbol_by_pc_name): Update.
3619 (lookup_minimal_symbol_solib_trampoline): Update.
3620 (lookup_minimal_symbol_by_pc_section_1): Update.
3621 (lookup_minimal_symbol_and_objfile): Update.
3622 (prim_record_minimal_symbol_full): Update.
3623 (compare_minimal_symbols): Update.
3624 (compact_minimal_symbols): Update.
3625 (build_minimal_symbol_hash_tables): Update.
3626 (install_minimal_symbols): Update.
3627 (terminate_minimal_symbol_table): Update.
3628 (find_solib_trampoline_target): Update.
3629 (minimal_symbol_upper_bound): Update.
3630 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3631 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3632 (mips_skip_pic_trampoline_code): Update.
3633 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3634 * objc-lang.c (selectors_info): Update.
3635 (classes_info): Update.
3636 (find_methods): Update.
3637 (find_imps): Update.
3638 (find_objc_msgsend): Update.
3639 * objfiles.c (objfile_relocate1): Update.
3640 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3641 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3642 * p-valprint.c (pascal_val_print): Update.
3643 * parse.c (write_exp_msymbol): Update.
3644 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3645 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3646 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3647 * printcmd.c (build_address_symbolic): Update.
3649 (address_info): Update.
3650 * proc-service.c (ps_pglobal_lookup): Update.
3651 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3652 (find_pc_sect_psymtab): Update.
3653 * python/py-framefilter.c (py_print_frame): Update.
3654 * ravenscar-thread.c (get_running_thread_id): Update.
3655 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3657 * remote.c (remote_check_symbols): Update.
3658 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3659 (rs6000_skip_trampoline_code): Update.
3660 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3661 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3662 * solib-dsbt.c (lm_base): Update.
3663 * solib-frv.c (lm_base): Update.
3665 * solib-irix.c (locate_base): Update.
3666 * solib-som.c (som_solib_create_inferior_hook): Update.
3667 (som_solib_desire_dynamic_linker_symbols): Update.
3668 (link_map_start): Update.
3669 * solib-spu.c (spu_enable_break): Update.
3670 (ocl_enable_break): Update.
3671 * solib-svr4.c (elf_locate_base): Update.
3672 (enable_break): Update.
3673 * spu-tdep.c (spu_get_overlay_table): Update.
3674 (spu_catch_start): Update.
3675 (flush_ea_cache): Update.
3676 * stabsread.c (define_symbol): Update.
3677 (scan_file_globals): Update.
3678 * stack.c (find_frame_funname): Update.
3679 (frame_info): Update.
3680 * symfile.c (simple_read_overlay_table): Update.
3681 (simple_overlay_update): Update.
3682 * symmisc.c (dump_msymbols): Update.
3683 * symtab.c (fixup_section): Update.
3684 (find_pc_sect_line): Update.
3685 (skip_prologue_sal): Update.
3686 (search_symbols): Update.
3687 (print_msymbol_info): Update.
3688 (rbreak_command): Update.
3689 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3690 (completion_list_objc_symbol): Update.
3691 (default_make_symbol_completion_list_break_on): Update.
3692 * tracepoint.c (scope_info): Update.
3693 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3694 (tui_get_begin_asm_address): Update.
3695 * valops.c (find_function_in_inferior): Update.
3696 * value.c (value_static_field): Update.
3697 (value_fn_field): Update.
3699 2014-02-26 Tom Tromey <tromey@redhat.com>
3701 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3702 bound minimal symbols. Move code that knows about minsym
3704 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3706 * minsyms.h (minimal_symbol_upper_bound): Declare.
3707 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3708 minimal_symbol_upper_bound.
3710 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3712 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3713 Use the type's name if its basic type does not have a tag.
3715 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3717 * dwarf2read.c (read_subrange_type): Add comment.
3719 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3721 * dwarf2read.c (update_enumeration_type_from_children): New
3722 function, mostly extracted from process_structure_scope.
3723 (read_enumeration_type): Call update_enumeration_type_from_children.
3724 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3725 and flag_flag_enum fields.
3727 2014-02-26 Pedro Alves <palves@redhat.com>
3729 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3730 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3731 to_xfer_partial method.
3733 2014-02-26 Pedro Alves <palves@redhat.com>
3735 * target.c (complete_target_initialization): Don't install
3736 default_xfer_partial as to_xfer_partial hook.
3738 (update_current_target): Don't INHERIT nor de_fault
3739 deprecated_xfer_memory. Delete de_fault macro.
3740 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3741 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3742 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3745 2014-02-26 Pedro Alves <palves@redhat.com>
3747 * go32-nat.c (my_write_child): New function.
3748 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3749 (go32_xfer_partial): New function.
3750 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3751 Instead install a to_xfer_partial hook.
3753 2014-02-26 Pedro Alves <palves@redhat.com>
3755 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3756 to_xfer_partial helper. Rewrite.
3757 (procfs_xfer_partial): New function.
3758 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3759 Install a to_xfer_partial hook.
3761 2014-02-26 Pedro Alves <palves@redhat.com>
3763 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3764 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3765 (m32r_xfer_partial): New function.
3766 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3767 Install a to_xfer_partial hook.
3769 2014-02-26 Pedro Alves <palves@redhat.com>
3771 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3773 (mips_xfer_partial): New function.
3774 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3775 hook. Install a to_xfer_partial hook.
3777 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3779 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3780 * gdbtypes.c (create_array_type_with_stride): New function,
3781 renaming create_array_type, but with an added parameter
3782 called "bit_stride".
3783 (create_array_type): Re-implement using
3784 create_array_type_with_stride.
3785 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3786 and DW_AT_bit_stride attributes.
3788 2014-02-26 Pedro Alves <palves@redhat.com>
3790 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3791 task-specific breakpoints.
3793 2014-02-25 Pedro Alves <palves@redhat.com>
3795 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3796 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3798 2014-02-25 Stan Shebs <stan@codesourcery.com>
3800 * defs.h: Annotate comments for Doxygen.
3802 2014-02-25 Tom Tromey <tromey@redhat.com>
3804 * target.h (target_ignore): Don't declare.
3805 * target.c (target_ignore): Remove.
3807 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3810 * auto-load.c (auto_load_objfile_script_1): Change filename to
3813 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3815 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3816 documentation. Adjust prototype to match the target_ops
3817 to_xfer_partial method. Adjust implementation accordingly.
3819 2014-02-25 Hui Zhu <hui@codesourcery.com>
3821 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3824 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3826 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3827 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3828 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3829 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3830 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3831 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3832 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3833 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3835 (rl78_register_type): Use a data pointer type for SP and
3836 new pseudo registers mentioned above. Use a 16 bit integer
3837 type for all other register pairs.
3838 (rl78_register_name, rl78_g10_register_name): Update for
3839 new pseudo registers.
3840 (rl78_pseudo_register_read): Likewise.
3841 (rl78_pseudo_register_write): Likewise.
3842 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3843 to the newly added pseudo registers.
3845 2014-02-24 Doug Evans <dje@google.com>
3847 * value.c (record_latest_value): Fix comment.
3848 * printcmd.c (print_command_1): Remove code to handle -1 return from
3849 record_latest_value.
3851 2014-02-24 Pedro Alves <palves@redhat.com>
3853 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3854 deprecated_xfer_memory hook.
3855 (procfs_xfer_partial): Call procfs_xfer_memory instead
3856 of the deprecated_xfer_memory target hook.
3857 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3860 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3862 * windows-nat.c (windows_xfer_shared_libraries): Return
3863 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3864 requested object is TARGET_OBJECT_LIBRARIES.
3866 2014-02-24 Yao Qi <yao@codesourcery.com>
3868 * target.h (enum target_xfer_status)
3869 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3870 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3872 * corefile.c (memory_error_message): User updated.
3873 * exec.c (section_table_read_available_memory): Likewise.
3874 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3875 * target.c (target_xfer_status_to_string): Likewise.
3876 (raw_memory_xfer_partial): Likewise.
3877 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3878 * valops.c (read_value_memory): Likewise.
3879 * exec.h: Update comments.
3881 2014-02-24 Yao Qi <yao@codesourcery.com>
3883 * target.c (target_xfer_status_to_string): Rename argument err
3885 * target.h (target_xfer_status_to_string): Update declaration.
3886 Replace target_xfer_error_to_string with
3887 target_xfer_status_to_string in comment.
3889 2014-02-24 Yao Qi <yao@codesourcery.com>
3891 * mips-linux-nat.c (super_close): Update its type.
3892 (mips_linux_close): Pass 'self' to super_close.
3894 2014-02-24 Yao Qi <yao@codesourcery.com>
3896 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3897 * corefile.c (read_memory): Adjusted.
3898 * target.c (target_write_with_progress): Adjusted.
3900 2014-02-23 Yao Qi <yao@codesourcery.com>
3904 2013-10-25 Yao Qi <yao@codesourcery.com>
3906 * remote.c (remote_traceframe_info): Return early if
3907 traceframe is not selected.
3909 2013-07-19 Yao Qi <yao@codesourcery.com>
3911 * target.c (update_current_target): Change the default action
3912 of 'to_traceframe_info' from tcomplain to return_zero.
3913 * target.h (struct target_ops) <to_traceframe_info>: Add more
3916 2014-02-23 Yao Qi <yao@codesourcery.com>
3918 * valops.c (read_value_memory): Rewrite it. Call
3919 target_xfer_partial in a loop.
3920 * exec.h (section_table_available_memory): Remove declaration.
3921 Move comments to ...
3922 * exec.c (section_table_available_memory): ... here. Make it
3925 2014-02-23 Yao Qi <yao@codesourcery.com>
3927 * exec.c (section_table_read_available_memory): New function.
3928 * exec.h (section_table_read_available_memory): Declare.
3929 * ctf.c (ctf_xfer_partial): Call
3930 section_table_read_available_memory.
3931 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3933 2014-02-23 Yao Qi <yao@codesourcery.com>
3935 * ctf.c (ctf_xfer_partial): Move code to ...
3936 * exec.c (exec_read_partial_read_only): ... it. New function.
3937 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3938 * tracefile.c: Include "exec.h".
3939 * exec.h (exec_read_partial_read_only): Declare.
3941 2014-02-23 Yao Qi <yao@codesourcery.com>
3943 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3944 (tfile_has_memory): Remove.
3945 (init_tfile_ops): Don't set fields to_has_all_memory and
3946 to_has_memory of tfile_ops.
3947 * tracefile.c (tracefile_has_all_memory): New function.
3948 (tracefile_has_memory): New function.
3949 (init_tracefile_ops): Initialize fields to_has_all_memory and
3950 to_has_memory of 'ops'.
3952 2014-02-23 Yao Qi <yao@codesourcery.com>
3954 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3955 (ctf_thread_alive, ctf_get_trace_status): Remove.
3956 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3958 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3959 (tfile_has_stack, tfile_has_registers): Remove.
3960 (tfile_thread_alive): Remove.
3961 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3963 * tracefile.c (tracefile_has_stack): New function.
3964 (tracefile_has_registers): New function.
3965 (tracefile_thread_alive): New function.
3966 (tracefile_get_trace_status): New function.
3967 (init_tracefile_ops): New function.
3968 * tracefile.h (init_tracefile_ops): Declare.
3970 2014-02-23 Yao Qi <yao@codesourcery.com>
3972 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3973 (O_LARGEFILE): Likewise.
3974 (tfile_ops): Likewise.
3975 (TRACE_HEADER_SIZE): Likewise.
3976 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3977 (cur_data_size): Likewise.
3978 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3979 (tfile_close, tfile_files_info): Likewise.
3980 (tfile_get_trace_status): Likewise.
3981 (tfile_get_tracepoint_status): Likewise.
3982 (tfile_get_traceframe_address): Likewise.
3983 (tfile_trace_find, match_blocktype): Likewise.
3984 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3985 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3986 (tfile_get_trace_state_variable_value): Likewise.
3987 (tfile_has_all_memory, tfile_has_memory): Likewise.
3988 (tfile_has_stack, tfile_has_registers): Likewise.
3989 (tfile_thread_alive, build_traceframe_info): Likewise.
3990 (tfile_traceframe_info, init_tfile_ops): Likewise.
3991 (_initialize_tracepoint): Don't call init_tfile_ops
3992 and add_target_with_completer.
3993 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3994 exec.h, completer.h and filenames.h.
3995 (_initialize_tracefile_tfile): New function.
3997 2014-02-23 Yao Qi <yao@codesourcery.com>
3999 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4001 (HFILES_NO_SRCDIR): Add tracefile.h.
4002 * ctf.c: Include "tracefile.h".
4003 * tracefile.h: New file.
4004 * tracefile.c: New file
4005 * tracefile-tfile.c: New file.
4006 * tracepoint.c: Include "tracefile.h".
4007 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4008 (stop_reason_names): Add const.
4009 (trace_file_writer_xfree): Move it to tracefile.c.
4010 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4011 (trace_save_ctf): Likewise.
4012 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4013 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4014 (tfile_write_header, tfile_write_regblock_type): Likewise.
4015 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4016 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4017 (tfile_write_raw_data, tfile_end): Likewise.
4018 (tfile_trace_file_writer_new): Likewise.
4019 (free_uploaded_tp): Make it extern.
4020 (free_uploaded_tsv): Make it extern.
4021 (_initialize_tracepoint): Move code to register command 'tsave'
4023 * tracepoint.h (stop_reason_names): Declare.
4024 (struct trace_frame_write_ops): Move it to tracefile.h.
4025 (struct trace_file_write_ops): Likewise.
4026 (struct trace_file_writer): Likewise.
4027 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4029 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4032 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4034 (get_cores_used_by_process): New parameter num_cores, use it.
4035 (linux_xfer_osdata_processes): Pass num_cores to it.
4036 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4039 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4041 * target.c (memory_xfer_partial): Fix length arg in call to
4042 breakpoint_xfer_memory.
4044 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4047 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4048 number comes after the + or - signs. Adjust length of register
4049 name to be extracted.
4051 2014-02-20 Tom Tromey <tromey@redhat.com>
4053 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4054 (ada_varobj_ops): Mark "extern".
4056 2014-02-20 Tom Tromey <tromey@redhat.com>
4058 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4060 2014-02-20 Doug Evans <xdje42@gmail.com>
4062 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4063 All callers updated.
4064 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4065 All callers updated.
4066 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4067 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4069 2014-02-20 lin zuojian <manjian2006@gmail.com>
4070 Joel Brobecker <brobecker@adacore.com>
4071 Doug Evans <xdje42@gmail.com>
4074 * dwarf2read.c (struct die_info): New member in_process.
4075 (reset_die_in_process): New function.
4076 (process_die): Set it at the start, reset when returning.
4077 (inherit_abstract_dies): Only call process_die if origin_child_die
4078 not already being processed.
4080 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4082 * windows-nat.c (handle_unload_dll): Add function documentation.
4083 (do_initial_windows_stuff): Add comment explaining why we wait
4084 until after inferior initialization has finished before
4085 processing all DLLs.
4087 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4089 * windows-nat.c (get_module_name): Delete.
4090 (windows_get_exec_module_filename): New function, mostly
4091 inspired from get_module_name.
4092 (windows_pid_to_exec_file): Replace call to get_module_name
4093 by call to windows_get_exec_module_filename.
4095 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4097 * windows-nat.c (handle_load_dll): Rewrite this function's
4098 introductory comment. Remove code using get_module_name
4099 to get the DLL's name.
4101 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4103 * windows-nat.c (get_windows_debug_event): Ignore
4104 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4105 if windows_initialization_done == 0.
4106 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4107 Adjust implementation to always load all DLLs.
4108 (do_initial_windows_stuff): Replace call to
4109 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4111 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4113 * windows-nat.c (_initialize_windows_nat): Deprecate the
4114 "dll-symbols" command. Turn the "add-shared-symbol-files"
4115 and "assf" aliases into commands, and deprecate them as well.
4116 * NEWS: Add entry explaining that "dll-symbols" and its two
4117 aliases are now deprecated.
4119 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4121 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4122 new-line in debug string. Remove trailing spaces.
4124 2014-02-19 Stan Shebs <stan@codesourcery.com>
4126 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4128 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4130 * NEWS: Add entry for the new feature
4131 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4134 2014-02-19 Stan Shebs <stan@codesourcery.com>
4136 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4138 2014-02-19 Pedro Alves <palves@redhat.com>
4140 * common/ptid.h (struct ptid): Mention that process_stratum
4141 targets should prefer ptid.lwp.
4143 2014-02-19 Pedro Alves <palves@redhat.com>
4145 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4146 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4147 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4148 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4149 store remote thread ids rather than ptid.tid.
4150 (_initialize_remote): Adjust.
4152 2014-02-19 Tom Tromey <tromey@redhat.com>
4154 * target.c (target_get_unwinder): Rewrite.
4155 (target_get_tailcall_unwinder): Rewrite.
4156 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4157 (record_btrace_to_get_tailcall_unwinder): New function.
4158 (init_record_btrace_ops): Update.
4159 * target.h (struct target_ops) <to_get_unwinder,
4160 to_get_tailcall_unwinder>: Now function pointers. Use
4161 TARGET_DEFAULT_RETURN.
4163 2014-02-19 Tom Tromey <tromey@redhat.com>
4165 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4167 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4173 * target-delegates.c: Rebuild.
4174 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4175 TARGET_DEFAULT_FUNC.
4176 * target.c (default_target_decr_pc_after_break): Rename from
4177 forward_target_decr_pc_after_break. Simplify.
4178 (target_decr_pc_after_break): Rely on delegation.
4180 2014-02-19 Tom Tromey <tromey@redhat.com>
4182 * target.c (update_current_target): Do not INHERIT to_doc or
4183 to_magic. Do not de_fault to_open or to_close.
4185 2014-02-19 Tom Tromey <tromey@redhat.com>
4187 * gcore.h (objfile_find_memory_regions): Declare.
4188 * gcore.c (objfile_find_memory_regions): No longer static. Add
4190 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4191 * exec.c: Include gcore.h.
4192 (exec_set_find_memory_regions): Remove.
4193 (exec_find_memory_regions): Remove.
4194 (exec_do_find_memory_regions): Remove.
4195 (init_exec_ops): Update.
4196 * defs.h (exec_set_find_memory_regions): Remove.
4198 2014-02-19 Tom Tromey <tromey@redhat.com>
4200 * target-delegates.c: Rebuild.
4201 * target.h (struct target_ops) <to_extra_thread_info,
4202 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4203 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4204 not 0, in TARGET_DEFAULT_RETURN.
4206 2014-02-19 Tom Tromey <tromey@redhat.com>
4208 * target.c (complete_target_initialization): Remove casts. Use
4209 return_zero_has_execution.
4210 (return_zero): Add "ignore" argument.
4211 (return_zero_has_execution): New function.
4212 (init_dummy_target): Remove casts. Use
4213 return_zero_has_execution.
4215 2014-02-19 Tom Tromey <tromey@redhat.com>
4217 * target.c (update_current_target): Update comments. Do not
4220 2014-02-19 Tom Tromey <tromey@redhat.com>
4222 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4224 * corelow.c (core_read_description): Delegate when needed.
4225 * remote.c (remote_read_description): Delegate when needed.
4226 * target-delegates.c: Rebuild.
4227 * target.c (target_read_description): Rewrite.
4228 * target.h (struct target_ops) <to_read_description>: Update
4229 comment. Use TARGET_DEFAULT_RETURN.
4231 2014-02-19 Tom Tromey <tromey@redhat.com>
4233 * target-delegates.c: Rebuild.
4234 * target.c (update_current_target): Don't inherit or default
4236 (find_default_run_target): Check against delegate_can_run.
4237 * target.h (struct target_ops) <to_can_run>: Use
4238 TARGET_DEFAULT_RETURN.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * target-delegates.c: Rebuild.
4243 * target.c (target_disconnect): Unconditionally delegate.
4244 * target.h (struct target_ops) <to_disconnect>: Use
4245 TARGET_DEFAULT_NORETURN.
4247 2014-02-19 Tom Tromey <tromey@redhat.com>
4249 * record.c (record_stop): Unconditionally delegate.
4250 * target-delegates.c: Rebuild.
4251 * target.c (target_stop_recording): Unconditionally delegate.
4252 * target.h (struct target_ops) <to_stop_recording>: Use
4253 TARGET_DEFAULT_IGNORE.
4255 2014-02-19 Tom Tromey <tromey@redhat.com>
4257 * target-delegates.c: Rebuild.
4258 * target.c (target_enable_btrace): Unconditionally delegate.
4259 * target.h (struct target_ops) <to_enable_btrace>: Use
4260 TARGET_DEFAULT_NORETURN.
4262 2014-02-19 Tom Tromey <tromey@redhat.com>
4264 * target-delegates.c: Rebuild.
4265 * target.c (target_read_btrace): Unconditionally delegate.
4266 * target.h (struct target_ops) <to_read_btrace>: Use
4267 TARGET_DEFAULT_NORETURN.
4269 2014-02-19 Tom Tromey <tromey@redhat.com>
4271 * target-delegates.c: Rebuild.
4272 * target.c (target_teardown_btrace): Unconditionally delegate.
4273 * target.h (struct target_ops) <to_teardown_btrace>: Use
4274 TARGET_DEFAULT_NORETURN.
4276 2014-02-19 Tom Tromey <tromey@redhat.com>
4278 * target-delegates.c: Rebuild.
4279 * target.c (target_disable_btrace): Unconditionally delegate.
4280 * target.h (struct target_ops) <to_disable_btrace>: Use
4281 TARGET_DEFAULT_NORETURN.
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target-delegates.c: Rebuild.
4286 * target.c (default_search_memory): New function.
4287 (simple_search_memory): Update comment.
4288 (target_search_memory): Unconditionally delegate.
4289 * target.h (struct target_ops) <to_search_memory>: Use
4290 TARGET_DEFAULT_FUNC.
4292 2014-02-19 Tom Tromey <tromey@redhat.com>
4294 * auxv.c (default_auxv_parse): No longer static.
4295 (target_auxv_parse): Unconditionally delegate.
4296 * auxv.h (default_auxv_parse): Declare.
4297 * target-delegates.c: Rebuild.
4298 * target.c: Include auxv.h.
4299 * target.h (struct target_ops) <to_auxv_parse>: Use
4300 TARGET_DEFAULT_FUNC.
4302 2014-02-19 Tom Tromey <tromey@redhat.com>
4304 * target-delegates.c: Rebuild.
4305 * target.c (target_memory_map): Unconditionally delegate.
4306 * target.h (struct target_ops) <to_memory_map>: Use
4307 TARGET_DEFAULT_RETURN.
4309 2014-02-19 Tom Tromey <tromey@redhat.com>
4311 * target-delegates.c: Rebuild.
4312 * target.c (target_thread_alive): Unconditionally delegate.
4313 * target.h (struct target_ops) <to_thread_alive>: Use
4314 TARGET_DEFAULT_RETURN.
4316 2014-02-19 Tom Tromey <tromey@redhat.com>
4318 * target-delegates.c: Rebuild.
4319 * target.c (target_save_record): Unconditionally delegate.
4320 * target.h (struct target_ops) <to_save_record>: Use
4321 TARGET_DEFAULT_NORETURN.
4323 2014-02-19 Tom Tromey <tromey@redhat.com>
4325 * target-delegates.c: Rebuild.
4326 * target.c (target_delete_record): Unconditionally delegate.
4327 * target.h (struct target_ops) <to_delete_record>: Use
4328 TARGET_DEFAULT_NORETURN.
4330 2014-02-19 Tom Tromey <tromey@redhat.com>
4332 * target-delegates.c: Rebuild.
4333 * target.c (target_record_is_replaying): Unconditionally
4335 * target.h (struct target_ops) <to_record_is_replaying>: Use
4336 TARGET_DEFAULT_RETURN.
4338 2014-02-19 Tom Tromey <tromey@redhat.com>
4340 * target-delegates.c: Rebuild.
4341 * target.c (target_goto_record_begin): Unconditionally delegate.
4342 * target.h (struct target_ops) <to_goto_record_begin>: Use
4343 TARGET_DEFAULT_NORETURN.
4345 2014-02-19 Tom Tromey <tromey@redhat.com>
4347 * target-delegates.c: Rebuild.
4348 * target.c (target_goto_record_end): Unconditionally delegate.
4349 * target.h (struct target_ops) <to_goto_record_end>: Use
4350 TARGET_DEFAULT_NORETURN.
4352 2014-02-19 Tom Tromey <tromey@redhat.com>
4354 * target-delegates.c: Rebuild.
4355 * target.c (target_goto_record): Unconditionally delegate.
4356 * target.h (struct target_ops) <to_goto_record>: Use
4357 TARGET_DEFAULT_NORETURN.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4362 * target.c (target_insn_history): Unconditionally delegate.
4363 * target.h (struct target_ops) <to_insn_history>: Use
4364 TARGET_DEFAULT_NORETURN.
4366 2014-02-19 Tom Tromey <tromey@redhat.com>
4368 * target-delegates.c: Rebuild.
4369 * target.c (target_insn_history_from): Unconditionally delegate.
4370 * target.h (struct target_ops) <to_insn_history_from>: Use
4371 TARGET_DEFAULT_NORETURN.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target-delegates.c: Rebuild.
4376 * target.c (target_insn_history_range): Unconditionally delegate.
4377 * target.h (struct target_ops) <to_insn_history_range>: Use
4378 TARGET_DEFAULT_NORETURN.
4380 2014-02-19 Tom Tromey <tromey@redhat.com>
4382 * target-delegates.c: Rebuild.
4383 * target.c (target_call_history): Unconditionally delegate.
4384 * target.h (struct target_ops) <to_call_history>: Use
4385 TARGET_DEFAULT_NORETURN.
4387 2014-02-19 Tom Tromey <tromey@redhat.com>
4389 * target-delegates.c: Rebuild.
4390 * target.c (target_call_history_from): Unconditionally delegate.
4391 * target.h (struct target_ops) <to_call_history_from>: Use
4392 TARGET_DEFAULT_NORETURN.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target-delegates.c: Rebuild.
4397 * target.c (target_call_history_range): Unconditionally delegate.
4398 * target.h (struct target_ops) <to_call_history_range>: Use
4399 TARGET_DEFAULT_NORETURN.
4401 2014-02-19 Tom Tromey <tromey@redhat.com>
4403 * target-delegates.c: Rebuild.
4404 * target.c (target_verify_memory): Unconditionally delegate.
4405 * target.h (struct target_ops) <to_verify_memory>: Use
4406 TARGET_DEFAULT_NORETURN.
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target-delegates.c: Rebuild.
4411 * target.c (target_core_of_thread): Unconditionally delegate.
4412 * target.h (struct target_ops) <to_core_of_thread>: Use
4413 TARGET_DEFAULT_RETURN.
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target-delegates.c: Rebuild.
4418 * target.c (target_flash_done): Unconditionally delegate.
4419 * target.h (struct target_ops) <to_flash_done>: Use
4420 TARGET_DEFAULT_NORETURN.
4422 2014-02-19 Tom Tromey <tromey@redhat.com>
4424 * target-delegates.c: Rebuild.
4425 * target.c (target_flash_erase): Unconditionally delegate.
4426 * target.h (struct target_ops) <to_flash_erase>: Use
4427 TARGET_DEFAULT_NORETURN.
4429 2014-02-19 Tom Tromey <tromey@redhat.com>
4431 * target-delegates.c: Rebuild.
4432 * target.c (target_get_section_table): Unconditionally delegate.
4433 * target.h (struct target_ops) <to_get_section_table>: Use
4434 TARGET_DEFAULT_RETURN.
4436 2014-02-19 Tom Tromey <tromey@redhat.com>
4438 * target-delegates.c: Rebuild.
4439 * target.c (target_pid_to_str): Unconditionally delegate.
4440 (init_dummy_target): Don't initialize to_pid_to_str.
4441 (default_pid_to_str): Rename from dummy_pid_to_str.
4442 * target.h (struct target_ops) <to_pid_to_str>: Use
4443 TARGET_DEFAULT_FUNC.
4445 2014-02-19 Tom Tromey <tromey@redhat.com>
4447 * target-delegates.c: Rebuild.
4448 * target.c (target_find_new_threads): Unconditionally delegate.
4449 * target.h (struct target_ops) <to_find_new_threads>: Use
4450 TARGET_DEFAULT_RETURN.
4452 2014-02-19 Tom Tromey <tromey@redhat.com>
4454 * target-delegates.c: Rebuild.
4455 * target.c (target_program_signals): Unconditionally delegate.
4456 * target.h (struct target_ops) <to_program_signals>: Use
4457 TARGET_DEFAULT_IGNORE.
4459 2014-02-19 Tom Tromey <tromey@redhat.com>
4461 * target-delegates.c: Rebuild.
4462 * target.c (target_pass_signals): Unconditionally delegate.
4463 * target.h (struct target_ops) <to_pass_signals>: Use
4464 TARGET_DEFAULT_IGNORE.
4466 2014-02-19 Tom Tromey <tromey@redhat.com>
4468 * target-delegates.c: Rebuild.
4469 * target.c (default_mourn_inferior): New function.
4470 (target_mourn_inferior): Unconditionally delegate.
4471 * target.h (struct target_ops) <to_mourn_inferior>: Use
4472 TARGET_DEFAULT_FUNC.
4474 2014-02-19 Tom Tromey <tromey@redhat.com>
4476 * target-delegates.c: Rebuild.
4477 * target.c (default_follow_fork): New function.
4478 (target_follow_fork): Unconditionally delegate.
4479 * target.h (struct target_ops) <to_follow_fork>: Use
4480 TARGET_DEFAULT_FUNC.
4482 2014-02-19 Tom Tromey <tromey@redhat.com>
4484 * target-delegates.c: Rebuild.
4485 * target.c (target_kill): Unconditionally delegate.
4486 * target.h (struct target_ops) <to_kill>: Use
4487 TARGET_DEFAULT_NORETURN.
4489 2014-02-19 Tom Tromey <tromey@redhat.com>
4491 * target-delegates.c: Rebuild.
4492 * target.c (target_masked_watch_num_registers): Unconditionally
4494 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4495 Use TARGET_DEFAULT_RETURN.
4497 2014-02-19 Tom Tromey <tromey@redhat.com>
4499 * target-delegates.c: Rebuild.
4500 * target.c (target_remove_mask_watchpoint): Unconditionally
4502 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4503 TARGET_DEFAULT_RETURN.
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * target-delegates.c: Rebuild.
4508 * target.c (target_insert_mask_watchpoint): Unconditionally
4510 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4511 TARGET_DEFAULT_RETURN.
4513 2014-02-19 Tom Tromey <tromey@redhat.com>
4515 * target-delegates.c: Rebuild.
4516 * target.c (target_ranged_break_num_registers): Unconditionally
4518 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4519 Use TARGET_DEFAULT_RETURN.
4521 2014-02-19 Tom Tromey <tromey@redhat.com>
4523 * target-delegates.c: Rebuild.
4524 * target.c (target_fetch_registers): Unconditionally delegate.
4525 * target.h (struct target_ops) <to_fetch_registers>: Use
4526 TARGET_DEFAULT_NORETURN.
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
4533 * target.h (struct target_ops) <to_stop>: Use
4534 TARGET_DEFAULT_IGNORE.
4536 2014-02-19 Tom Tromey <tromey@redhat.com>
4538 * target-delegates.c: Rebuild.
4539 * target.c (update_current_target): Don't inherit or default
4540 to_can_run_breakpoint_commands.
4541 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4542 Use TARGET_DEFAULT_RETURN.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target-delegates.c: Rebuild.
4547 * target.c (update_current_target): Don't inherit or default
4548 to_supports_evaluation_of_breakpoint_conditions.
4549 * target.h (struct target_ops)
4550 <to_supports_evaluation_of_breakpoint_conditions>: Use
4551 TARGET_DEFAULT_RETURN.
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
4557 to_augmented_libraries_svr4_read.
4558 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4559 Use TARGET_DEFAULT_RETURN.
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_can_use_agent>: 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 inherit or default
4574 * target.h (struct target_ops) <to_use_agent>: Use
4575 TARGET_DEFAULT_NORETURN.
4577 2014-02-19 Tom Tromey <tromey@redhat.com>
4579 * target-delegates.c: Rebuild.
4580 * target.c (update_current_target): Don't inherit or default
4582 (return_null): Remove.
4583 * target.h (struct target_ops) <to_traceframe_info>: Use
4584 TARGET_DEFAULT_RETURN.
4586 2014-02-19 Tom Tromey <tromey@redhat.com>
4588 * target-delegates.c: Rebuild.
4589 * target.c (update_current_target): Don't inherit or default
4590 to_static_tracepoint_markers_by_strid.
4591 * target.h (struct target_ops)
4592 <to_static_tracepoint_markers_by_strid>: Use
4593 TARGET_DEFAULT_NORETURN.
4595 2014-02-19 Tom Tromey <tromey@redhat.com>
4597 * target-delegates.c: Rebuild.
4598 * target.c (update_current_target): Don't inherit or default
4599 to_static_tracepoint_marker_at.
4600 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4601 Use TARGET_DEFAULT_RETURN.
4603 2014-02-19 Tom Tromey <tromey@redhat.com>
4605 * target-delegates.c: Rebuild.
4606 * target.c (update_current_target): Don't inherit or default
4608 * target.h (struct target_ops) <to_set_permissions>: Use
4609 TARGET_DEFAULT_IGNORE.
4611 2014-02-19 Tom Tromey <tromey@redhat.com>
4613 * target-delegates.c: Rebuild.
4614 * target.c (update_current_target): Don't inherit or default
4616 * target.h (struct target_ops) <to_get_tib_address>: Use
4617 TARGET_DEFAULT_NORETURN.
4619 2014-02-19 Tom Tromey <tromey@redhat.com>
4621 * target-delegates.c: Rebuild.
4622 * target.c (update_current_target): Don't inherit or default
4624 * target.h (struct target_ops) <to_set_trace_notes>: Use
4625 TARGET_DEFAULT_RETURN.
4627 2014-02-19 Tom Tromey <tromey@redhat.com>
4629 * target-delegates.c: Rebuild.
4630 * target.c (update_current_target): Don't initialize
4631 to_set_trace_buffer_size.
4632 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4633 TARGET_DEFAULT_IGNORE.
4635 2014-02-19 Tom Tromey <tromey@redhat.com>
4637 * target-delegates.c: Rebuild.
4638 * target.c (update_current_target): Don't inherit or default
4639 to_set_circular_trace_buffer.
4640 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4641 TARGET_DEFAULT_IGNORE.
4643 2014-02-19 Tom Tromey <tromey@redhat.com>
4645 * target-delegates.c: Rebuild.
4646 * target.c (update_current_target): Don't inherit or default
4647 to_set_disconnected_tracing.
4648 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4649 TARGET_DEFAULT_IGNORE.
4651 2014-02-19 Tom Tromey <tromey@redhat.com>
4653 * target-delegates.c: Rebuild.
4654 * target.c (update_current_target): Don't inherit or default
4655 to_get_min_fast_tracepoint_insn_len.
4656 (return_minus_one): Remove.
4657 * target.h (struct target_ops)
4658 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target-delegates.c: Rebuild.
4663 * target.c (update_current_target): Don't inherit or default
4664 to_get_raw_trace_data.
4665 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4666 TARGET_DEFAULT_NORETURN.
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * target-delegates.c: Rebuild.
4671 * target.c (update_current_target): Don't inherit or default
4672 to_upload_trace_state_variables.
4673 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4674 Use TARGET_DEFAULT_RETURN.
4676 2014-02-19 Tom Tromey <tromey@redhat.com>
4678 * target-delegates.c: Rebuild.
4679 * target.c (update_current_target): Don't inherit or default
4680 to_upload_tracepoints.
4681 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4682 TARGET_DEFAULT_RETURN.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target-delegates.c: Rebuild.
4687 * target.c (update_current_target): Don't inherit or default
4689 * target.h (struct target_ops) <to_save_trace_data>: Use
4690 TARGET_DEFAULT_NORETURN.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target-delegates.c: Rebuild.
4695 * target.c (update_current_target): Don't inherit or default
4696 to_get_trace_state_variable_value.
4697 * target.h (struct target_ops)
4698 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4700 2014-02-19 Tom Tromey <tromey@redhat.com>
4702 * target-delegates.c: Rebuild.
4703 * target.c (update_current_target): Don't inherit or default
4705 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4707 2014-02-19 Tom Tromey <tromey@redhat.com>
4709 * target-delegates.c: Rebuild.
4710 * target.c (update_current_target): Don't inherit or default
4712 * target.h (struct target_ops) <to_trace_stop>: Use
4713 TARGET_DEFAULT_NORETURN.
4715 2014-02-19 Tom Tromey <tromey@redhat.com>
4717 * target-delegates.c: Rebuild.
4718 * target.c (update_current_target): Don't inherit or default
4719 to_get_tracepoint_status.
4720 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4721 TARGET_DEFAULT_NORETURN.
4723 2014-02-19 Tom Tromey <tromey@redhat.com>
4725 * target-delegates.c: Rebuild.
4726 * target.c (update_current_target): Don't inherit or default
4727 to_get_trace_status.
4728 * target.h (struct target_ops) <to_get_trace_status>: Use
4729 TARGET_DEFAULT_RETURN.
4731 2014-02-19 Tom Tromey <tromey@redhat.com>
4733 * target-delegates.c: Rebuild.
4734 * target.c (update_current_target): Don't inherit or default
4736 * target.h (struct target_ops) <to_trace_start>: Use
4737 TARGET_DEFAULT_NORETURN.
4739 2014-02-19 Tom Tromey <tromey@redhat.com>
4741 * target-delegates.c: Rebuild.
4742 * target.c (update_current_target): Don't inherit or default
4743 to_trace_set_readonly_regions.
4744 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4745 Use TARGET_DEFAULT_NORETURN.
4747 2014-02-19 Tom Tromey <tromey@redhat.com>
4749 * target-delegates.c: Rebuild.
4750 * target.c (update_current_target): Don't inherit or default
4751 to_disable_tracepoint.
4752 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4753 TARGET_DEFAULT_NORETURN.
4755 2014-02-19 Tom Tromey <tromey@redhat.com>
4757 * target-delegates.c: Rebuild.
4758 * target.c (update_current_target): Don't inherit or default
4759 to_enable_tracepoint.
4760 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4761 TARGET_DEFAULT_NORETURN.
4763 2014-02-19 Tom Tromey <tromey@redhat.com>
4765 * target-delegates.c: Rebuild.
4766 * target.c (update_current_target): Don't inherit or default
4767 to_download_trace_state_variable.
4768 * target.h (struct target_ops) <to_download_trace_state_variable>:
4769 Use TARGET_DEFAULT_NORETURN.
4771 2014-02-19 Tom Tromey <tromey@redhat.com>
4773 * target-delegates.c: Rebuild.
4774 * target.c (update_current_target): Don't inherit or default
4775 to_can_download_tracepoint.
4776 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4777 TARGET_DEFAULT_RETURN.
4779 2014-02-19 Tom Tromey <tromey@redhat.com>
4781 * target-delegates.c: Rebuild.
4782 * target.c (update_current_target): Don't inherit or default
4783 to_download_tracepoint.
4784 * target.h (struct target_ops) <to_download_tracepoint>: Use
4785 TARGET_DEFAULT_NORETURN.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target-delegates.c: Rebuild.
4790 * target.c (update_current_target): Don't inherit or default
4792 * target.h (struct target_ops) <to_trace_init>: Use
4793 TARGET_DEFAULT_RETURN.
4795 2014-02-19 Tom Tromey <tromey@redhat.com>
4797 * target-delegates.c: Rebuild.
4798 * target.c (update_current_target): Don't inherit or default
4799 to_supports_string_tracing.
4800 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4801 TARGET_DEFAULT_RETURN.
4803 2014-02-19 Tom Tromey <tromey@redhat.com>
4805 * target-delegates.c: Rebuild.
4806 * target.c (update_current_target): Don't inherit or default
4807 to_supports_enable_disable_tracepoint.
4808 * target.h (struct target_ops)
4809 <to_supports_enable_disable_tracepoint>: Use
4810 TARGET_DEFAULT_RETURN.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target-delegates.c: Rebuild.
4815 * target.c (update_current_target): Don't inherit or default
4816 to_supports_multi_process.
4817 * target.h (struct target_ops) <to_supports_multi_process>: Use
4818 TARGET_DEFAULT_RETURN.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target-delegates.c: Rebuild.
4823 * target.c (update_current_target): Don't inherit or default
4824 to_get_ada_task_ptid.
4825 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4826 TARGET_DEFAULT_FUNC.
4828 2014-02-19 Tom Tromey <tromey@redhat.com>
4830 * target-delegates.c: Rebuild.
4831 * target.c (update_current_target): Don't inherit or default
4832 to_thread_architecture.
4833 * target.h (struct target_ops) <to_thread_architecture>: Use
4834 TARGET_DEFAULT_FUNC.
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * target-delegates.c: Rebuild.
4839 * target.c (update_current_target): Don't inherit or default
4840 to_execution_direction.
4841 * target.h (struct target_ops) <to_execution_direction>: Use
4842 TARGET_DEFAULT_FUNC.
4844 2014-02-19 Tom Tromey <tromey@redhat.com>
4846 * target-delegates.c: Rebuild.
4847 * target.c (update_current_target): Don't inherit or default
4848 to_can_execute_reverse.
4849 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4850 TARGET_DEFAULT_RETURN.
4851 (target_can_execute_reverse): Unconditionally delegate.
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target-delegates.c: Rebuild.
4856 * target.c (update_current_target): Don't inherit or default
4858 (dummy_goto_bookmark): Remove.
4859 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4860 * target.h (struct target_ops) <to_goto_bookmark>: Use
4861 TARGET_DEFAULT_NORETURN.
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target-delegates.c: Rebuild.
4866 * target.c (update_current_target): Don't inherit or default
4868 (dummy_get_bookmark): Remove.
4869 (init_dummy_target): Don't inherit or default to_get_bookmark.
4870 * target.h (struct target_ops) <to_get_bookmark>: Use
4871 TARGET_DEFAULT_NORETURN
4873 2014-02-19 Tom Tromey <tromey@redhat.com>
4875 * target-delegates.c: Rebuild.
4876 * target.c (update_current_target): Don't inherit or default
4877 to_make_corefile_notes.
4878 (init_dummy_target): Don't initialize to_make_corefile_notes.
4879 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4880 TARGET_DEFAULT_FUNC.
4882 2014-02-19 Tom Tromey <tromey@redhat.com>
4884 * target-delegates.c: Rebuild.
4885 * target.c (update_current_target): Don't inherit or default
4886 to_find_memory_regions.
4887 (init_dummy_target): Don't initialize to_find_memory_regions.
4888 * target.h (struct target_ops) <to_find_memory_regions>: Use
4889 TARGET_DEFAULT_FUNC.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (update_current_target): Don't inherit or default
4896 * target.h (struct target_ops) <to_log_command>: Use
4897 TARGET_DEFAULT_IGNORE.
4898 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
4905 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
4913 (target_thread_name): Unconditionally delegate.
4914 * target.h (struct target_ops) <to_thread_name>: Use
4915 TARGET_DEFAULT_RETURN.
4917 2014-02-19 Tom Tromey <tromey@redhat.com>
4919 * target-delegates.c: Rebuild.
4920 * target.c (update_current_target): Don't inherit or default
4921 to_extra_thread_info.
4922 * target.h (struct target_ops) <to_extra_thread_info>: Use
4923 TARGET_DEFAULT_RETURN.
4925 2014-02-19 Tom Tromey <tromey@redhat.com>
4927 * target-delegates.c: Rebuild.
4928 * target.c (update_current_target): Don't inherit or default
4930 * target.h (struct target_ops) <to_has_exited>: Use
4931 TARGET_DEFAULT_RETURN..
4933 2014-02-19 Tom Tromey <tromey@redhat.com>
4935 * target-delegates.c: Rebuild.
4936 * target.c (update_current_target): Don't inherit or default
4937 to_set_syscall_catchpoint.
4938 (return_one): Remove.
4939 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4940 TARGET_DEFAULT_RETURN.
4942 2014-02-19 Tom Tromey <tromey@redhat.com>
4944 * target-delegates.c: Rebuild.
4945 * target.c (update_current_target): Don't inherit or default
4946 to_insert_exec_catchpoint.
4947 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4948 TARGET_DEFAULT_RETURN.
4950 2014-01-08 Tom Tromey <tromey@redhat.com>
4952 * target-delegates.c: Rebuild.
4953 * target.c (update_current_target): Don't inherit or default
4954 to_insert_exec_catchpoint.
4955 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4956 TARGET_DEFAULT_RETURN.
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * target-delegates.c: Rebuild.
4961 * target.c (update_current_target): Don't inherit or default
4962 to_remove_vfork_catchpoint.
4963 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4964 TARGET_DEFAULT_RETURN.
4966 2014-02-19 Tom Tromey <tromey@redhat.com>
4968 * target-delegates.c: Rebuild.
4969 * target.c (update_current_target): Don't inherit or default
4970 to_insert_vfork_catchpoint.
4971 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4972 TARGET_DEFAULT_RETURN.
4974 2014-02-19 Tom Tromey <tromey@redhat.com>
4976 * target-delegates.c: Rebuild.
4977 * target.c (update_current_target): Don't inherit or default
4978 to_remove_fork_catchpoint.
4979 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4980 TARGET_DEFAULT_RETURN.
4982 2014-02-19 Tom Tromey <tromey@redhat.com>
4984 * target-delegates.c: Rebuild.
4985 * target.c (update_current_target): Don't inherit or default
4986 to_insert_fork_catchpoint.
4987 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4988 TARGET_DEFAULT_RETURN.
4990 2014-02-19 Tom Tromey <tromey@redhat.com>
4992 * target-delegates.c: Rebuild.
4993 * target.c (update_current_target): Don't inherit or default
4994 to_post_startup_inferior.
4995 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4996 TARGET_DEFAULT_IGNORE.
4998 2014-02-19 Tom Tromey <tromey@redhat.com>
5000 * target-delegates.c: Rebuild.
5001 * target.c (update_current_target): Don't inherit or default
5003 * target.h (struct target_ops) <to_load>: Use
5004 TARGET_DEFAULT_NORETURN.
5006 2014-02-19 Tom Tromey <tromey@redhat.com>
5008 * target-delegates.c: Rebuild.
5009 * target.c (update_current_target): Don't inherit or default
5011 * target.h (struct target_ops) <to_terminal_info>: Use
5012 TARGET_DEFAULT_FUNC.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target-delegates.c: Rebuild.
5017 * target.c (update_current_target): Don't inherit or default
5018 to_terminal_save_ours.
5019 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5020 TARGET_DEFAULT_IGNORE.
5022 2014-02-19 Tom Tromey <tromey@redhat.com>
5024 * target-delegates.c: Rebuild.
5025 * target.c (update_current_target): Don't inherit or default
5027 * target.h (struct target_ops) <to_terminal_ours>: Use
5028 TARGET_DEFAULT_IGNORE.
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * target-delegates.c: Rebuild.
5033 * target.c (update_current_target): Don't inherit or default
5034 to_terminal_ours_for_output.
5035 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5036 TARGET_DEFAULT_IGNORE.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target-delegates.c: Rebuild.
5041 * target.c (update_current_target): Don't inherit or default
5042 to_terminal_inferior.
5043 * target.h (struct target_ops) <to_terminal_inferior>: Use
5044 TARGET_DEFAULT_IGNORE.
5046 2014-02-19 Tom Tromey <tromey@redhat.com>
5048 * target-delegates.c: Rebuild.
5049 * target.c (update_current_target): Don't inherit or default
5051 * target.h (struct target_ops) <to_terminal_init>: Use
5052 TARGET_DEFAULT_IGNORE.
5054 2014-02-19 Tom Tromey <tromey@redhat.com>
5056 * target-delegates.c: Rebuild.
5057 * target.c (update_current_target): Don't inherit or default
5058 to_can_accel_watchpoint_condition.
5059 * target.h (struct target_ops)
5060 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5062 2014-02-19 Tom Tromey <tromey@redhat.com>
5064 * target-delegates.c: Rebuild.
5065 * target.c (update_current_target): Don't inherit or default
5066 to_region_ok_for_hw_watchpoint.
5067 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5068 Use TARGET_DEFAULT_FUNC.
5070 2014-02-19 Tom Tromey <tromey@redhat.com>
5072 * target-delegates.c: Rebuild.
5073 * target.c (update_current_target): Don't inherit or default
5074 to_watchpoint_addr_within_range.
5075 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5076 Use TARGET_DEFAULT_FUNC.
5078 2014-02-19 Tom Tromey <tromey@redhat.com>
5080 * target-delegates.c: Rebuild.
5081 * target.c (update_current_target): Don't inherit or default
5082 to_remove_watchpoint.
5083 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5084 TARGET_DEFAULT_NORETURN.
5086 2014-02-19 Tom Tromey <tromey@redhat.com>
5088 * target-delegates.c: Rebuild.
5089 * target.c (update_current_target): Don't inherit or default
5090 to_insert_watchpoint.
5091 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5092 TARGET_DEFAULT_RETURN.
5094 2014-02-19 Tom Tromey <tromey@redhat.com>
5096 * target-delegates.c: Rebuild.
5097 * target.c (update_current_target): Don't inherit or default
5098 to_remove_hw_breakpoint.
5099 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5100 TARGET_DEFAULT_RETURN.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target-delegates.c: Rebuild.
5105 * target.c (update_current_target): Don't inherit or default
5106 to_insert_hw_breakpoint.
5107 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5108 TARGET_DEFAULT_RETURN.
5110 2014-02-19 Tom Tromey <tromey@redhat.com>
5112 * target-delegates.c: Rebuild.
5113 * target.c (update_current_target): Don't inherit or default
5114 to_can_use_hw_breakpoint.
5115 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5116 TARGET_DEFAULT_RETURN.
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5120 * target-delegates.c: Rebuild.
5121 * target.c (update_current_target): Don't inherit or default
5123 * target.h (struct target_ops) <to_files_info>: Use
5124 TARGET_DEFAULT_IGNORE.
5126 2014-02-19 Tom Tromey <tromey@redhat.com>
5128 * target-delegates.c: Rebuild.
5129 * target.c (update_current_target): Don't inherit or default
5131 * target.h (struct target_ops) <to_store>: Use
5132 TARGET_DEFAULT_NORETURN.
5134 2014-02-19 Tom Tromey <tromey@redhat.com>
5136 * target-delegates.c: Rebuild.
5137 * target.c (update_current_target): Don't inherit or default
5139 * target.h (struct target_ops) <to_post_attach>: Use
5140 TARGET_DEFAULT_IGNORE.
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target-delegates.c: Rebuild.
5145 * target.c (update_current_target): Don't inherit or default
5147 (default_rcmd): New function.
5148 (do_monitor_command): Unconditionally delegate.
5149 * target.h (struct target_ops) <to_rmcd>: Use
5150 TARGET_DEFAULT_FUNC.
5152 2014-02-19 Tom Tromey <tromey@redhat.com>
5154 * target-delegates.c: Rebuild.
5155 * target.c (init_dummy_target): Don't initialize to_attach.
5156 (target_attach): Unconditionally delegate.
5157 * target.h (struct target_ops) <to_attach>: Use
5158 TARGET_DEFAULT_FUNC.
5160 2014-02-19 Tom Tromey <tromey@redhat.com>
5162 * target-delegates.c: Rebuild.
5163 * target.c (target_detach): Unconditionally delegate.
5164 (init_dummy_target): Don't initialize to_detach.
5165 * target.h (struct target_ops) <to_detach>: Use
5166 TARGET_DEFAULT_IGNORE.
5168 2014-02-19 Tom Tromey <tromey@redhat.com>
5170 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5172 (target_augmented_libraries_svr4_read): Add argument.
5173 * target.c (update_current_target): Update.
5174 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target.h (struct target_ops) <to_call_history_range>: Add
5181 * target.c (target_call_history_range): Add argument.
5182 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5184 (record_btrace_call_history_from): Update.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target.h (struct target_ops) <to_call_history_from>: Add
5190 * target.c (target_call_history_from): Add argument.
5191 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5194 2014-02-19 Tom Tromey <tromey@redhat.com>
5196 * target.h (struct target_ops) <to_call_history>: Add argument.
5197 * target.c (target_call_history): Add argument.
5198 * record-btrace.c (record_btrace_call_history): Add 'self'
5201 2014-02-19 Tom Tromey <tromey@redhat.com>
5203 * target.h (struct target_ops) <to_insn_history_range>: Add
5205 * target.c (target_insn_history_range): Add argument.
5206 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5208 (record_btrace_insn_history_from): Update.
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * target.h (struct target_ops) <to_insn_history_from>: Add
5214 * target.c (target_insn_history_from): Add argument.
5215 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target.h (struct target_ops) <to_insn_history>: Add argument.
5221 * target.c (target_insn_history): Add argument.
5222 * record-btrace.c (record_btrace_insn_history): Add 'self'
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * target.h (struct target_ops) <to_goto_record>: Add argument.
5228 * target.c (target_goto_record): Add argument.
5229 * record-full.c (record_full_goto): Add 'self' argument.
5230 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5232 2014-02-19 Tom Tromey <tromey@redhat.com>
5234 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5235 * target.c (target_goto_record_end): Add argument.
5236 * record-full.c (record_full_goto_end): Add 'self' argument.
5237 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target.h (struct target_ops) <to_goto_record_begin>: Add
5243 * target.c (target_goto_record_begin): Add argument.
5244 * record-full.c (record_full_goto_begin): Add 'self' argument.
5245 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5248 2014-02-19 Tom Tromey <tromey@redhat.com>
5250 * target.h (struct target_ops) <to_record_is_replaying>: Add
5252 * target.c (target_record_is_replaying): Add argument.
5253 * record-full.c (record_full_is_replaying): Add 'self' argument.
5254 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5256 (record_btrace_xfer_partial, record_btrace_store_registers)
5257 (record_btrace_prepare_to_store, record_btrace_resume)
5258 (record_btrace_wait, record_btrace_decr_pc_after_break)
5259 (record_btrace_find_new_threads, record_btrace_thread_alive):
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target.h (struct target_ops) <to_delete_record>: Add argument.
5265 * target.c (target_delete_record): Add argument.
5266 * record-full.c (record_full_delete): Add 'self' argument.
5268 2014-02-19 Tom Tromey <tromey@redhat.com>
5270 * target.h (struct target_ops) <to_save_record>: Add argument.
5271 * target.c (target_save_record): Add argument.
5272 * record-full.c (record_full_save): Add 'self' argument.
5273 (record_full_save): Add 'self' argument.
5275 2014-02-19 Tom Tromey <tromey@redhat.com>
5277 * target.h (struct target_ops) <to_info_record>: Add argument.
5278 * target.c (target_info_record): Add argument.
5279 * record.c (info_record_command): Add argument.
5280 * record-full.c (record_full_info): Add 'self' argument.
5281 * record-btrace.c (record_btrace_info): Add 'self' argument.
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5286 * target.c (target_stop_recording): Add argument.
5287 * record.c (record_stop): Add argument.
5288 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5291 2014-02-19 Tom Tromey <tromey@redhat.com>
5293 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5294 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5295 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5297 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5298 (_initialize_amd64_linux_nat): Use it.
5299 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5300 (_initialize_i386_linux_nat): Use it.
5302 2014-02-19 Tom Tromey <tromey@redhat.com>
5304 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5305 * target.c (target_teardown_btrace): Add argument.
5306 * remote.c (remote_teardown_btrace): Add 'self' argument.
5307 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5309 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5315 * target.c (target_disable_btrace): Add argument.
5316 * remote.c (remote_disable_btrace): Add 'self' argument.
5317 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5319 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5325 * target.c (target_enable_btrace): Add argument.
5326 * remote.c (remote_enable_btrace): Add 'self' argument.
5327 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5329 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5335 (target_can_use_agent): Add argument.
5336 * target.c (update_current_target): Update.
5337 * remote.c (remote_can_use_agent): Add 'self' argument.
5338 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5340 2014-02-19 Tom Tromey <tromey@redhat.com>
5342 * target.h (struct target_ops) <to_use_agent>: Add argument.
5343 (target_use_agent): Add argument.
5344 * target.c (update_current_target): Update.
5345 * remote.c (remote_use_agent): Add 'self' argument.
5346 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5351 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5352 (target_traceframe_info): Add argument.
5353 * target.c (update_current_target): Update.
5354 * remote.c (remote_traceframe_info): Add 'self' argument.
5355 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5357 2014-02-19 Tom Tromey <tromey@redhat.com>
5359 * target.h (target_static_tracepoint_markers_by_strid): Add
5361 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5363 * target.c (update_current_target): Update.
5364 * remote.c (struct target_ops)
5365 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5366 * linux-nat.c (struct target_ops)
5367 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5369 2014-02-19 Tom Tromey <tromey@redhat.com>
5371 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5373 (target_static_tracepoint_marker_at): Add argument.
5374 * target.c (update_current_target): Update.
5375 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5381 (target_set_permissions): Add argument.
5382 * target.c (update_current_target): Update.
5383 * remote.c (remote_set_permissions): Add 'self' argument.
5384 (remote_start_remote): Update.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5389 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5390 (target_get_tib_address): Add argument.
5391 * target.c (update_current_target): Update.
5392 * remote.c (remote_get_tib_address): Add 'self' argument.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5397 (target_set_trace_notes): Add argument.
5398 * target.c (update_current_target): Update.
5399 * remote.c (remote_set_trace_notes): Add 'self' argument.
5401 2014-02-19 Tom Tromey <tromey@redhat.com>
5403 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5405 (target_set_trace_buffer_size): Add argument.
5406 * target.c (update_current_target): Update.
5407 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5409 2014-02-19 Tom Tromey <tromey@redhat.com>
5411 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5413 (target_set_circular_trace_buffer): Add argument.
5414 * target.c (update_current_target): Update.
5415 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5422 (target_set_disconnected_tracing): Add argument.
5423 * target.c (update_current_target): Update.
5424 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5426 2014-02-19 Tom Tromey <tromey@redhat.com>
5428 * target.h (struct target_ops)
5429 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5430 (target_get_min_fast_tracepoint_insn_len): Add argument.
5431 * target.c (update_current_target): Update.
5432 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5439 (target_get_raw_trace_data): Add argument.
5440 * target.c (update_current_target): Update.
5441 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5443 2014-02-19 Tom Tromey <tromey@redhat.com>
5445 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5447 (target_upload_trace_state_variables): Add argument.
5448 * target.c (update_current_target): Update.
5449 * remote.c (remote_upload_trace_state_variables): Add 'self'
5451 (remote_start_remote): Update.
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5457 (target_upload_tracepoints): Add argument.
5458 * target.c (update_current_target): Update.
5459 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5460 (remote_start_remote): Update.
5462 2014-02-19 Tom Tromey <tromey@redhat.com>
5464 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5465 (target_save_trace_data): Add argument.
5466 * target.c (update_current_target): Update.
5467 * remote.c (remote_save_trace_data): Add 'self' argument.
5469 2014-02-19 Tom Tromey <tromey@redhat.com>
5471 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5473 * target.h (struct target_ops)
5474 <to_get_trace_state_variable_value>: Add argument.
5475 (target_get_trace_state_variable_value): Add argument.
5476 * target.c (update_current_target): Update.
5477 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5479 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5484 * target.h (struct target_ops) <to_trace_find>: Add argument.
5485 (target_trace_find): Add argument.
5486 * target.c (update_current_target): Update.
5487 * remote.c (remote_trace_find): Add 'self' argument.
5488 * ctf.c (ctf_trace_find): Add 'self' argument.
5490 2014-02-19 Tom Tromey <tromey@redhat.com>
5492 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5493 (target_trace_stop): Add argument.
5494 * target.c (update_current_target): Update.
5495 * remote.c (remote_trace_stop): Add 'self' argument.
5497 2014-02-19 Tom Tromey <tromey@redhat.com>
5499 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5500 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5502 (target_get_tracepoint_status): Add argument.
5503 * target.c (update_current_target): Update.
5504 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5506 2014-02-19 Tom Tromey <tromey@redhat.com>
5508 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5509 * target.h (struct target_ops) <to_get_trace_status>: Add
5511 (target_get_trace_status): Add argument.
5512 * target.c (update_current_target): Update.
5513 * remote.c (remote_get_trace_status): Add 'self' argument.
5514 (remote_start_remote, remote_can_download_tracepoint): Update.
5515 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target.h (struct target_ops) <to_trace_start>: Add argument.
5520 (target_trace_start): Add argument.
5521 * target.c (update_current_target): Update.
5522 * remote.c (remote_trace_start): Add 'self' argument.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5528 (target_trace_set_readonly_regions): Add argument.
5529 * target.c (update_current_target): Update.
5530 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5537 (target_disable_tracepoint): Add argument.
5538 * target.c (update_current_target): Update.
5539 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5541 2014-02-19 Tom Tromey <tromey@redhat.com>
5543 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5545 (target_enable_tracepoint): Add argument.
5546 * target.c (update_current_target): Update.
5547 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target.h (struct target_ops) <to_download_trace_state_variable>:
5553 (target_download_trace_state_variable): Add argument.
5554 * target.c (update_current_target): Update.
5555 * remote.c (remote_download_trace_state_variable): Add 'self'
5558 2014-02-19 Tom Tromey <tromey@redhat.com>
5560 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5562 (target_can_download_tracepoint): Add argument.
5563 * target.c (update_current_target): Update.
5564 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5566 2014-02-19 Tom Tromey <tromey@redhat.com>
5568 * target.h (struct target_ops) <to_download_tracepoint>: Add
5570 (target_download_tracepoint): Add argument.
5571 * target.c (update_current_target): Update.
5572 * remote.c (remote_download_tracepoint): Add 'self' argument.
5574 2014-02-19 Tom Tromey <tromey@redhat.com>
5576 * target.h (struct target_ops) <to_trace_init>: Add argument.
5577 (target_trace_init): Add argument.
5578 * target.c (update_current_target): Update.
5579 * remote.c (remote_trace_init): Add 'self' argument.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5584 * target.c (target_fileio_readlink): Add argument.
5585 * remote.c (remote_hostio_readlink): Add 'self' argument.
5586 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5591 * target.c (target_fileio_unlink): Add argument.
5592 * remote.c (remote_hostio_unlink): Add 'self' argument.
5593 (remote_file_delete): Update.
5594 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5596 2014-02-19 Tom Tromey <tromey@redhat.com>
5598 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5599 * target.c (target_fileio_close): Add argument.
5600 * remote.c (remote_hostio_close): Add 'self' argument.
5601 (remote_hostio_close_cleanup): Update.
5602 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5604 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5609 * target.c (target_fileio_pread): Add argument.
5610 * remote.c (remote_hostio_pread): Add 'self' argument.
5611 (remote_bfd_iovec_pread, remote_file_get): Update.
5612 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5614 2014-02-19 Tom Tromey <tromey@redhat.com>
5616 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5617 * target.c (target_fileio_pwrite): Add argument.
5618 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5619 (remote_file_put): Update.
5620 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5622 2014-02-19 Tom Tromey <tromey@redhat.com>
5624 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5625 * target.c (target_fileio_open): Add argument.
5626 * remote.c (remote_hostio_open): Add 'self' argument.
5627 (remote_bfd_iovec_open): Add 'self' argument.
5628 (remote_file_put): Add 'self' argument.
5629 (remote_file_get): Add 'self' argument.
5630 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5636 (target_can_run_breakpoint_commands): Add argument.
5637 * target.c (update_current_target): Update.
5638 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5640 (remote_insert_breakpoint): Add 'self' argument.
5641 (remote_insert_hw_breakpoint): Add 'self' argument.
5642 (remote_can_run_breakpoint_commands): Add 'self' argument.
5644 2014-02-19 Tom Tromey <tromey@redhat.com>
5646 * target.h (struct target_ops)
5647 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5648 (target_supports_evaluation_of_breakpoint_conditions): Add
5650 * target.c (update_current_target): Update.
5651 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5653 (remote_insert_breakpoint): Add 'self' argument.
5654 (remote_insert_hw_breakpoint): Add 'self' argument.
5655 (remote_supports_cond_breakpoints): Add 'self' argument.
5657 2014-02-19 Tom Tromey <tromey@redhat.com>
5659 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5661 (target_supports_string_tracing): Add argument.
5662 * target.c (update_current_target): Update.
5663 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * target.h (struct target_ops)
5668 <to_supports_disable_randomization>: Add argument.
5669 * target.c (find_default_supports_disable_randomization): Add
5671 (target_supports_disable_randomization): Add argument.
5672 (find_default_supports_disable_randomization): Add 'self'
5674 * remote.c (extended_remote_supports_disable_randomization): Add
5676 (remote_supports_disable_randomization): Add 'self' argument.
5677 (extended_remote_create_inferior): Update.
5678 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target.h (struct target_ops)
5684 <to_supports_enable_disable_tracepoint>: Add argument.
5685 (target_supports_enable_disable_tracepoint): Add argument.
5686 * target.c (update_current_target): Update.
5687 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5690 2014-02-19 Tom Tromey <tromey@redhat.com>
5692 * target.h (struct target_ops) <to_supports_multi_process>: Add
5694 (target_supports_multi_process): Add argument.
5695 * target.c (update_current_target): Update.
5696 * remote.c (remote_supports_multi_process): Add 'self' argument.
5697 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5699 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * target.h (struct target_ops) <to_execution_direction>: Add
5706 (target_execution_direction): Add argument.
5707 * target.c (default_execution_direction): Add 'self' argument.
5708 * record-full.c (record_full_execution_direction): Add 'self'
5711 2014-02-19 Tom Tromey <tromey@redhat.com>
5713 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5715 (target_can_execute_reverse): Add argument.
5716 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5717 * record-full.c (record_full_can_execute_reverse): Add 'self'
5719 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5722 2014-02-19 Tom Tromey <tromey@redhat.com>
5724 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5725 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5727 (target_get_ada_task_ptid): Add argument.
5728 * target.c (update_current_target): Update.
5729 (default_get_ada_task_ptid): Add 'self' argument.
5730 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5731 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5732 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5734 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5736 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5738 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5740 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5741 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5747 (target_goto_bookmark): Add argument.
5748 * target.c (dummy_goto_bookmark): Add 'self' argument.
5749 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5754 (target_get_bookmark): Add argument.
5755 * target.c (dummy_get_bookmark): Add 'self' argument.
5756 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5758 2014-02-19 Tom Tromey <tromey@redhat.com>
5760 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5762 (target_make_corefile_notes): Add argument.
5763 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5764 * procfs.c (procfs_make_note_section): Add 'self' argument.
5765 (procfs_make_note_section): Add 'self' argument.
5766 (procfs_make_note_section): Add 'self' argument.
5767 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5769 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5770 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5771 * exec.c (exec_make_note_section): Add 'self' argument.
5772 (exec_make_note_section): Add 'self' argument.
5774 2014-02-19 Tom Tromey <tromey@redhat.com>
5776 * target.h (struct target_ops) <to_find_memory_regions>: Add
5778 (target_find_memory_regions): Add argument.
5779 * target.c (dummy_find_memory_regions): Add 'self' argument.
5780 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5781 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5782 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5783 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5784 * exec. (exec_do_find_memory_regions): New global.
5785 (exec_set_find_memory_regions): Rewrite.
5786 (exec_find_memory_regions): New function.
5787 (init_exec_ops): Use exec_find_memory_regions.
5789 2014-02-19 Tom Tromey <tromey@redhat.com>
5791 * target.h (struct target_ops) <to_supports_non_stop>: Add
5793 * target.c (find_default_supports_non_stop): Add argument.
5794 (target_supports_non_stop): Add argument.
5795 (find_default_supports_non_stop): Add 'self' argument.
5796 * remote.c (remote_supports_non_stop): Add 'self' argument.
5797 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target.h (struct target_ops) <to_log_command>: Add argument.
5802 (target_log_command): Add argument.
5803 * serial.h (serial_log_command): Add 'self' argument.
5804 * serial.c (serial_log_command): Add 'self' argument.
5806 2014-02-19 Tom Tromey <tromey@redhat.com>
5808 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5809 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5811 (target_pid_to_exec_file): Add argument.
5812 * target.c (debug_to_pid_to_exec_file): Add argument.
5813 (update_current_target): Update.
5814 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5815 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5816 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5817 (linux_handle_extended_wait): Update.
5818 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5819 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5820 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5821 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target.h (struct target_ops) <to_rcmd>: Add argument.
5826 (target_rcmd): Add argument.
5827 * target.c (debug_to_rcmd): Add argument.
5828 (update_current_target, do_monitor_command): Update.
5829 * remote.c (remote_rcmd): Add 'self' argument.
5830 * monitor.c (monitor_rcmd): Add 'self' argument.
5832 2014-02-19 Tom Tromey <tromey@redhat.com>
5834 * windows-nat.c (windows_stop): Add 'self' argument.
5835 * target.h (struct target_ops) <to_stop>: Add argument.
5836 * target.c (target_stop): Add argument.
5837 (debug_to_stop): Add argument.
5838 (update_current_target): Update.
5839 * remote.c (remote_stop): Add 'self' argument.
5840 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5841 (gdbsim_cntrl_c): Update.
5842 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5843 * procfs.c (procfs_stop): Add 'self' argument.
5844 * nto-procfs.c (procfs_stop): Add 'self' argument.
5845 * monitor.c (monitor_stop): Add 'self' argument.
5846 (monitor_open): Update.
5847 * linux-nat.c (linux_nat_stop): Add argument.
5848 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5849 * gnu-nat.c (gnu_stop): Add 'self' argument.
5850 * darwin-nat.c (darwin_stop): Add 'self' argument.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * target.h (struct target_ops) <to_thread_name>: Add argument.
5855 * target.c (target_thread_name): Add argument.
5856 (update_current_target): Update.
5857 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target.h (struct target_ops) <to_extra_thread_info>: Add
5863 (target_extra_thread_info): Add argument.
5864 * target.c (update_current_target): Update.
5865 * remote.c (remote_threads_extra_info): Add 'self' argument.
5866 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5868 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5869 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5870 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5872 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5874 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5876 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target.h (struct target_ops) <to_program_signals>: Add argument.
5882 * target.c (target_program_signals): Add argument.
5883 * remote.c (remote_program_signals): Add 'self' argument.
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5887 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5888 * target.c (target_pass_signals): Add argument.
5889 * remote.c (remote_pass_signals): Add 'self' argument.
5890 (remote_start_remote): Update.
5891 * procfs.c (procfs_pass_signals): Add 'self' argument.
5892 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5893 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5894 (linux_nat_create_inferior, linux_nat_attach): Update.
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * windows-nat.c (windows_can_run): Add 'self' argument.
5899 * target.h (struct target_ops) <to_can_run>: Add argument.
5900 (target_can_run): Add argument.
5901 * target.c (debug_to_can_run): Add argument.
5902 (update_current_target): Update.
5903 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5904 * inf-child.c (inf_child_can_run): Add 'self' argument.
5905 * go32-nat.c (go32_can_run): Add 'self' argument.
5907 2014-02-19 Tom Tromey <tromey@redhat.com>
5909 * target.h (struct target_ops) <to_has_exited>: Add argument.
5910 (target_has_exited): Add argument.
5911 * target.c (debug_to_has_exited): Add argument.
5912 (update_current_target): Update.
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5918 (target_set_syscall_catchpoint): Add argument.
5919 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5921 * target.c (update_current_target): Update.
5923 2014-02-19 Tom Tromey <tromey@redhat.com>
5925 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5927 (target_remove_exec_catchpoint): Add argument.
5928 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5929 (update_current_target): Update.
5930 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5933 2014-02-19 Tom Tromey <tromey@redhat.com>
5935 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5937 (target_insert_exec_catchpoint): Add argument.
5938 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5939 (update_current_target): Update.
5940 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5947 (target_remove_vfork_catchpoint): Add argument.
5948 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5949 (update_current_target): Update.
5950 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5953 2014-02-19 Tom Tromey <tromey@redhat.com>
5955 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5957 (target_insert_vfork_catchpoint): Add argument.
5958 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5959 (update_current_target): Update.
5960 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5963 2014-02-19 Tom Tromey <tromey@redhat.com>
5965 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5967 (target_remove_fork_catchpoint): Add argument.
5968 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5969 (update_current_target): Update.
5970 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5973 2014-02-19 Tom Tromey <tromey@redhat.com>
5975 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5977 (target_insert_fork_catchpoint): Add argument.
5978 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5979 (update_current_target): Update.
5980 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5983 2014-02-19 Tom Tromey <tromey@redhat.com>
5985 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5987 (target_post_startup_inferior): Add argument.
5988 * target.c (debug_to_post_startup_inferior): Add argument.
5989 (update_current_target): Update.
5990 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5992 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5994 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5996 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5998 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6000 (super_post_startup_inferior): Likewise.
6001 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6003 (super_post_startup_inferior): Likewise.
6004 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6005 Add 'self' argument.
6006 (super_post_startup_inferior): Likewise.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_load>: Add argument.
6011 * target.c (target_load): Add argument.
6012 (debug_to_load): Add argument.
6013 (update_current_target): Update.
6014 * remote.c (remote_load): Add 'self' argument.
6015 * remote-sim.c (gdbsim_load): Add 'self' argument.
6016 * remote-mips.c (mips_load): Add 'self' argument.
6017 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6018 * monitor.c (monitor_load): Add 'self' argument.
6019 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6021 2014-02-19 Tom Tromey <tromey@redhat.com>
6023 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6024 (target_terminal_info): Add argument.
6025 * target.c (debug_to_terminal_info): Add argument.
6026 (default_terminal_info): Likewise.
6027 * inflow.c (child_terminal_info): Add 'self' argument.
6028 * inferior.h (child_terminal_info): Add 'self' argument.
6029 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6031 2014-02-19 Tom Tromey <tromey@redhat.com>
6033 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6035 (target_terminal_save_ours): Add argument.
6036 * target.c (debug_to_terminal_save_ours): Add argument.
6037 (update_current_target): Update.
6038 * inflow.c (terminal_save_ours): Add 'self' argument.
6039 * inferior.h (terminal_save_ours): Add 'self' argument.
6041 2014-02-19 Tom Tromey <tromey@redhat.com>
6043 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6044 (target_terminal_ours): Add argument.
6045 * target.c (debug_to_terminal_ours): Add argument.
6046 (update_current_target): Update.
6047 * remote.c (remote_terminal_ours): Add 'self' argument.
6048 (remote_close): Update.
6049 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6050 * inflow.c (terminal_ours): Add 'self' argument.
6051 * inferior.h (terminal_ours): Add 'self' argument.
6052 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6054 2014-02-19 Pedro Alves <palves@redhat.com>
6055 Tom Tromey <tromey@redhat.com>
6057 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6059 (target_terminal_ours_for_output): Add argument.
6060 * target.c (debug_to_terminal_ours_for_output): Add argument.
6061 (update_current_target): Update.
6062 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6063 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6064 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6066 2014-02-19 Tom Tromey <tromey@redhat.com>
6068 * target.h (struct target_ops) <to_terminal_inferior>: Add
6070 * target.c (target_terminal_inferior): Add argument.
6071 (update_current_target): Update.
6072 * remote.c (remote_terminal_inferior): Add 'self' argument.
6073 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6074 * inflow.c (terminal_inferior): Add 'self' argument.
6075 * inferior.h (terminal_inferior): Add 'self' argument.
6076 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6077 (go32_terminal_inferior): Add 'self' argument.
6079 2014-02-19 Tom Tromey <tromey@redhat.com>
6081 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6082 (target_terminal_init): Add argument.
6083 * target.c (debug_to_terminal_init): Add argument.
6084 (update_current_target): Update.
6085 * inflow.c (terminal_init_inferior): Add 'self' argument.
6086 * inferior.h (terminal_init_inferior): Add 'self' argument.
6087 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6088 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6090 2014-02-19 Tom Tromey <tromey@redhat.com>
6092 * target.h (struct target_ops)
6093 <to_can_accel_watchpoint_condition>: Add argument.
6094 (target_can_accel_watchpoint_condition): Add argument.
6095 * target.c (debug_to_can_accel_watchpoint_condition): Add
6097 (update_current_target): Update.
6098 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6101 2014-02-19 Tom Tromey <tromey@redhat.com>
6103 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6105 (target_region_ok_for_hw_watchpoint): Add argument.
6106 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6107 (default_region_ok_for_hw_watchpoint): Add argument.
6108 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6109 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6111 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6113 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6115 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6117 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6119 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6121 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6122 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6124 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6125 Add 'self' argument.
6127 2014-02-19 Tom Tromey <tromey@redhat.com>
6129 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6131 (target_insert_watchpoint): Add argument.
6132 * target.c (debug_to_insert_watchpoint): Add argument.
6133 (update_current_target): Update.
6134 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6135 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6136 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6137 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6138 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6139 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6141 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6142 (procfs_insert_hw_watchpoint): Add 'self' argument.
6143 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6145 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6147 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6149 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6150 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6152 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6155 2014-02-19 Tom Tromey <tromey@redhat.com>
6157 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6159 (target_remove_watchpoint): Add argument.
6160 * target.c (debug_to_remove_watchpoint): Add argument.
6161 (update_current_target): Update.
6162 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6163 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6164 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6165 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6166 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6167 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6169 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6170 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6172 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6174 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6176 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6177 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6179 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6182 2014-02-19 Tom Tromey <tromey@redhat.com>
6184 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6186 (target_remove_hw_breakpoint): Add argument.
6187 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6188 (update_current_target): Update.
6189 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6190 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6192 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6193 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6195 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6202 (target_insert_hw_breakpoint): Add argument.
6203 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6204 (update_current_target): Update.
6205 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6206 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6208 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6209 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6210 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6212 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6215 2014-02-19 Tom Tromey <tromey@redhat.com>
6217 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6219 (target_can_use_hardware_watchpoint): Add argument.
6220 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6221 (update_current_target): Update.
6222 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6224 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6226 * remote.c (remote_check_watch_resources): Add 'self' argument.
6227 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6228 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6230 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6231 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6233 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6235 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6237 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6239 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6241 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6243 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6244 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6246 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * target.h (struct target_ops) <to_post_attach>: Add argument.
6252 (target_post_attach): Add argument.
6253 * target.c (debug_to_post_attach): Add argument.
6254 (update_current_target): Update.
6255 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6256 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6257 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6258 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6259 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6261 2014-02-19 Tom Tromey <tromey@redhat.com>
6263 * windows-nat.c (windows_close): Add 'self' argument.
6264 * tracepoint.c (tfile_close): Add 'self' argument.
6265 * target.h (struct target_ops) <to_close>: Add argument.
6266 * target.c (target_close): Add argument.
6267 (update_current_target): Update.
6268 * remote.c (remote_close): Add 'self' argument.
6269 * remote-sim.c (gdbsim_close): Add 'self' argument.
6270 * remote-mips.c (mips_close): Add 'self' argument.
6271 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6272 * record-full.c (record_full_close): Add 'self' argument.
6273 * record-btrace.c (record_btrace_close): Add 'self' argument.
6274 * monitor.h (monitor_close): Add 'self' argument.
6275 * monitor.c (monitor_close): Add 'self' argument.
6276 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6277 * linux-nat.c (linux_nat_close): Add argument.
6278 * go32-nat.c (go32_close): Add 'self' argument.
6279 * exec.c (exec_close_1): Add 'self' argument.
6280 * ctf.c (ctf_close): Add 'self' argument.
6281 * corelow.c (core_close): Add 'self' argument.
6282 (core_close_cleanup): Update.
6283 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6284 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * remote.c (remote_load): New function.
6289 (init_remote_ops): Use it.
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6295 * common/linux-btrace.h (linux_supports_btrace): Update.
6296 * remote.c (remote_supports_btrace): Add "self" argument.
6297 * target-delegates.c: Rebuild.
6298 * target.c (target_supports_btrace): Remove.
6299 * target.h (struct target_ops) <to_supports_btrace>: Add
6300 target_ops argument.
6301 (target_supports_btrace): New define.
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6305 * record-full.c (record_full_beneath_to_resume_ops)
6306 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6307 (record_full_beneath_to_wait)
6308 (record_full_beneath_to_store_registers_ops)
6309 (record_full_beneath_to_store_registers)
6310 (record_full_beneath_to_xfer_partial_ops)
6311 (record_full_beneath_to_xfer_partial)
6312 (record_full_beneath_to_insert_breakpoint_ops)
6313 (record_full_beneath_to_insert_breakpoint)
6314 (record_full_beneath_to_remove_breakpoint_ops)
6315 (record_full_beneath_to_remove_breakpoint)
6316 (record_full_beneath_to_stopped_by_watchpoint)
6317 (record_full_beneath_to_stopped_data_address)
6318 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6319 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6320 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6321 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6322 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6323 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6324 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6325 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6326 (record_full_resume, record_full_wait_1)
6327 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6328 (record_full_store_registers, record_full_xfer_partial)
6329 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6330 (record_full_async, record_full_core_xfer_partial): Use target
6332 * target-delegates.c: Rebuild.
6333 * target.c (current_xfer_partial): Remove.
6334 (update_current_target): Do not INHERIT or de_fault
6335 to_insert_breakpoint, to_remove_breakpoint,
6336 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6337 to_is_async_p, to_async. Do not set to_xfer_partial field.
6338 (default_xfer_partial): Simplify.
6339 (current_xfer_partial): Remove.
6340 (target_wait, target_resume): Simplify.
6341 (find_default_can_async_p, find_default_is_async_p): Update.
6342 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6343 to_xfer_partial, to_stopped_by_watchpoint,
6344 to_stopped_data_address.
6345 (target_store_registers): Simplify.
6346 (forward_target_remove_breakpoint)
6347 (forward_target_insert_breakpoint): Remove.
6348 (target_remove_breakpoint, target_insert_breakpoint)
6349 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6350 * target.h (struct target_ops) <to_resume, to_wait,
6351 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6352 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6353 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6355 (forward_target_remove_breakpoint)
6356 (forward_target_insert_breakpoint): Remove.
6357 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6359 (record_btrace_insert_breakpoint): Delegate directly.
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6364 * target-delegates.c: New file.
6365 * target.c: Include target-delegates.c.
6366 (init_dummy_target): Call install_dummy_methods.
6367 (complete_target_initialization): Call install_delegators.
6368 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6369 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6370 * make-target-delegates: New file.
6372 2014-02-19 Tom Tromey <tromey@redhat.com>
6374 * record.c (find_record_target): Use find_target_at.
6375 * target.c (find_target_at): New function.
6376 * target.h (find_target_at): Declare.
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6382 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6384 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6385 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6387 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6389 * linux-nat.c (save_sigtrap): Update.
6390 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6391 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6392 (linux_nat_close): Update.
6393 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6395 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6397 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6398 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6399 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6400 (tmp_to_async): Add 'ops' argument.
6401 (record_full_stopped_by_watchpoint, record_full_async)
6402 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6404 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6405 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6406 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6407 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6408 (remote_is_async_p, remote_async): Add 'ops' argument.
6409 (remote_stopped_data_address): Update.
6410 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6411 * target.c (update_current_target)
6412 (find_default_can_async_p, find_default_is_async_p): Update.
6413 (init_dummy_target): Update.
6414 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6415 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6416 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6417 (target_can_async_p, target_is_async_p, target_async)
6418 (target_stopped_by_watchpoint): Update.
6420 2014-02-19 Yao Qi <yao@codesourcery.com>
6423 * gdbarch.sh: Remove startup_gdbarch.
6424 * gdbarch.c: Regenerated.
6425 * gdbarch.h: Likewise.
6427 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6429 * rl78-tdep.c (rl78_g10_register_name): New function.
6430 (rl78_return_value): Add g10 support.
6431 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6434 2014-02-17 Doug Evans <xdje42@gmail.com>
6436 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6437 (SUBDIR_GUILE_SRCS): Ditto.
6438 (scm-gsmob.o): Ditto.
6440 2014-02-17 Yao Qi <yao@codesourcery.com>
6442 * gnu-nat.c (ILL_RPC): Declare defined function.
6444 2014-02-17 Yao Qi <yao@codesourcery.com>
6446 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6447 mach_msg_type_number_t.
6448 (gnu_write_inferior): Likewise.
6450 2014-02-17 Yao Qi <yao@codesourcery.com>
6452 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6454 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6455 (inf_validate_procs, inf_signal): Likewise.
6456 (S_exception_raise_request): Likewise.
6457 (do_mach_notify_dead_name): Likewise.
6458 (steal_exc_port): Likewise.
6459 (gnu_read_inferior): Change 'copy_count''s type to
6460 mach_msg_type_number_t.
6461 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6464 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6466 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6467 flag. Adjust all users; in particular...
6468 (gnu_wait): ..., don't decrement its value in here...
6469 (gnu_create_inferior): ..., and instead set the flag in here,
6470 around the startup_inferior call, and call that one with
6471 START_INFERIOR_TRAPS_EXPECTED.
6473 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6474 (ILL_RPC): ... new macro.
6475 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6476 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6477 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6478 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6479 functions with ILL_RPC macro.
6480 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6481 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6482 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6483 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6484 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6485 (S_proc_getlogin_reply, S_proc_getsid_reply)
6486 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6487 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6488 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6489 (S_proc_getnports_reply, S_proc_is_important_reply)
6490 (S_proc_get_code_reply): New stub functions, generated with
6493 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6494 collected the type check structures.
6496 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6498 2014-02-14 Doug Evans <dje@google.com>
6500 * target.c (target_write_partial): Fix result type.
6502 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6504 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6505 the proper offsets to access fpregset_t.
6507 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6509 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6510 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6511 * h8300-tdep.c (setmachinelist): Remove global.
6512 * hppa-tdep.c (hppa_sigtramp): Remove global.
6513 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6514 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6515 * ravenscar-thread.c (update_target_observer): Remove global.
6516 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6518 2014-02-12 Tom Tromey <tromey@redhat.com>
6520 * common/rsp-low.c: Update comments.
6521 * common/rsp-low.h: Update comments.
6523 2014-02-12 Tom Tromey <tromey@redhat.com>
6525 * common/rsp-low.c (convert_ascii_to_int): Remove.
6526 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6528 2014-02-12 Tom Tromey <tromey@redhat.com>
6530 * common/rsp-low.h (unhexify): Don't declare.
6531 * common/rsp-low.c (unhexify): Remove.
6533 2014-02-12 Tom Tromey <tromey@redhat.com>
6535 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6536 * common/rsp-low.c (convert_int_to_ascii): Remove.
6538 2014-02-12 Tom Tromey <tromey@redhat.com>
6540 * common/rsp-low.h (hexify): Don't declare.
6541 * common/rsp-low.c (hexify): Remove.
6543 2014-02-12 Tom Tromey <tromey@redhat.com>
6545 * common/rsp-low.c (hexify): Never take strlen of argument.
6547 2014-02-12 Tom Tromey <tromey@redhat.com>
6549 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6550 * remote.c (extended_remote_run, remote_rcmd)
6551 (remote_download_trace_state_variable, remote_save_trace_data)
6552 (remote_set_trace_notes): Update.
6553 * tracepoint.c (encode_source_string, tfile_write_status)
6554 (tfile_write_uploaded_tsv): Update.
6556 2014-02-12 Tom Tromey <tromey@redhat.com>
6558 * tracepoint.c: Include rsp-low.h.
6559 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6560 * remote.c: Include rsp-low.h.
6561 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6562 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6563 (remote_unescape_input): Move to common/rsp-low.c.
6564 * common/rsp-low.h: New file.
6565 * common/rsp-low.c: New file.
6566 * Makefile.in (SFILES): Add common/rsp-low.c.
6567 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6568 (COMMON_OBS): Add rsp-low.o.
6569 (rsp-low.o): New target.
6571 2014-02-12 Tom Tromey <tromey@redhat.com>
6573 * utils.h: Include print-utils.h.
6574 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6575 (int_string, core_addr_to_string, core_addr_to_string_nz)
6576 (hex_string, hex_string_custom): Don't declare.
6577 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6578 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6579 (hex_string_custom, int_string, core_addr_to_string)
6580 (core_addr_to_string_nz, host_address_to_string): Move to
6581 common/print-utils.c.
6582 * common/print-utils.h: New file.
6583 * common/print-utils.c: New file
6584 * Makefile.in (SFILES): Add common/print-utils.c.
6585 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6586 (COMMON_OBS): Add print-utils.o.
6587 (print-utils.o): New target.
6589 2014-02-12 Tom Tromey <tromey@redhat.com>
6591 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6593 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6595 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6597 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6599 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6600 if a PT_IO ptrace request returns sucessfully but indicates that 0
6601 bytes were transferred.
6603 2014-02-12 Pedro Alves <palves@redhat.com>
6604 Kevin Buettner <kevinb@redhat.com>
6606 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6607 TYPE_INSTANCE_FLAG_CODE_SPACE.
6609 2014-02-12 Pedro Alves <palves@redhat.com>
6611 * h8300-tdep.c (pseudo_from_raw_register)
6612 (raw_from_pseudo_register): New functions.
6613 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6616 2014-02-12 Pedro Alves <palves@redhat.com>
6618 * h8300-tdep.c (h8300_register_sim_regno): New function.
6619 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6620 gdbarch_register_sim_regno hook.
6622 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6624 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6626 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6628 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6630 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6632 * obsd-tdep.h (obsd_init_abi): New prototype.
6633 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6634 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6635 (obsd_init_abi): New functions.
6636 * i386obsd-tdep.c: Include "obsd-tdep.h".
6637 (i386obsd_init_abi): Call obsd_init_abi.
6638 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6639 (amd64obsd_init_abi): Call obsd_init_abi.
6640 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6641 obsd-tdep.c to gdb_target_obs.
6643 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6645 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6646 double float arguments to 16-byte in the argument slots.
6648 2014-02-11 Doug Evans <xdje42@gmail.com>
6650 * configure.ac: Don't crash if pkg-config is not found and guile
6651 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6653 * configure: Regenerate.
6655 2014-02-11 Yao Qi <yao@codesourcery.com>
6657 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6658 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6659 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6660 * gnu-nat.c (gnu_xfer_memory): Likewise.
6661 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6662 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6663 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6664 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6666 2014-02-11 Yao Qi <yao@codesourcery.com>
6668 * target.h (enum target_xfer_error): Rename to ...
6669 (enum target_xfer_status): ... it. New. All users updated.
6670 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6672 (TARGET_XFER_STATUS_ERROR_P): New macro.
6673 (target_xfer_error_to_string): Remove declaration.
6674 (target_xfer_status_to_string): Declare.
6675 (target_xfer_partial_ftype): Adjust it.
6676 (struct target_ops) <to_xfer_partial>: Return
6677 target_xfer_status. Add argument xfered_len. Update
6679 * target.c (target_xfer_error_to_string): Rename to ...
6680 (target_xfer_status_to_string): ... it. New. All callers
6682 (target_read_live_memory): Likewise. Call target_xfer_partial
6683 instead of target_read.
6684 (memory_xfer_live_readonly_partial): Return
6685 target_xfer_status. Add argument xfered_len.
6686 (raw_memory_xfer_partial): Likewise.
6687 (memory_xfer_partial_1): Likewise.
6688 (memory_xfer_partial): Likewise.
6689 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6690 properly. Update debug message.
6691 (default_xfer_partial, current_xfer_partial): Likewise.
6692 (target_write_partial): Likewise.
6693 (target_read_partial): Likewise. All callers updated.
6694 (read_whatever_is_readable): Likewise.
6695 (target_write_with_progress): Likewise.
6696 (target_read_alloc_1): Likewise.
6698 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6699 * auxv.c (procfs_xfer_auxv): Likewise.
6700 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6701 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6702 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6703 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6704 * corefile.c (read_memory): Adjust.
6705 * corelow.c (core_xfer_partial): Likewise.
6706 * ctf.c (ctf_xfer_partial): Likewise.
6707 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6709 (darwin_xfer_partial): Likewise.
6710 * exec.c (section_table_xfer_memory_partial): Likewise. All
6712 (exec_xfer_partial): Likewise.
6713 * exec.h (section_table_xfer_memory_partial): Update
6715 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6717 (gnu_xfer_partial): Likewise.
6718 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6719 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6720 (ia64_hpux_xfer_solib_got): Likewise.
6721 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6722 type of 'partial_len' to ULONGEST.
6723 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6724 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6725 (linux_nat_xfer_partial): Likewise.
6726 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6727 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6728 * monitor.c (monitor_xfer_memory): Likewise.
6729 (monitor_xfer_partial): Likewise.
6730 * procfs.c (procfs_xfer_partial): Likewise.
6731 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6732 * record-full.c (record_full_xfer_partial): Likewise.
6733 (record_full_core_xfer_partial): Likewise.
6734 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6735 (gdbsim_xfer_partial): Likewise.
6736 * remote.c (remote_write_bytes_aux): Likewise. All callers
6738 (remote_write_bytes, remote_read_bytes): Likewise. All
6740 (remote_flash_erase): Likewise. All callers updated.
6741 (remote_write_qxfer): Likewise. All callers updated.
6742 (remote_read_qxfer): Likewise. All callers updated.
6743 (remote_xfer_partial): Likewise.
6744 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6745 (rs6000_xfer_shared_libraries): Likewise.
6746 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6747 (sol_thread_xfer_partial): Likewise.
6748 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6749 (sparc_xfer_partial): Likewise.
6750 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6752 (spu_xfer_partial): Likewise.
6753 * spu-multiarch.c (spu_xfer_partial): Likewise.
6754 * tracepoint.c (tfile_xfer_partial): Likewise.
6755 * windows-nat.c (windows_xfer_memory): Likewise.
6756 (windows_xfer_shared_libraries): Likewise.
6757 (windows_xfer_partial): Likewise.
6758 * valprint.c: Replace 'target_xfer_error' with
6759 'target_xfer_status' in comments.
6761 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6763 Checked in by Joel Brobecker <brobecker@adacore.com>.
6764 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6766 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6768 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6769 function parameters.
6771 2014-02-10 Will Newton <will.newton@linaro.org>
6773 * elfread.c (elf_rel_plt_read): Look for a .got section if
6774 looking up .got.plt fails.
6775 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6776 on address passed to elf_gnu_ifunc_record_cache.
6777 (elf_gnu_ifunc_resolve_addr): Likewise.
6778 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6780 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6782 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6783 (X_RETTURN): New macro.
6784 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6786 * sparc64-tdep.c (sparc64_init_abi): Hook
6787 sparc_in_function_epilogue_p.
6789 2014-02-10 Gary Benson <gbenson@redhat.com>
6791 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6792 Rename name_matcher to symbol_matcher.
6794 2014-02-10 Gary Benson <gbenson@redhat.com>
6796 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6797 Use expand_symtabs_file_matcher_ftype and
6798 expand_symtabs_symbol_matcher_ftype.
6800 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6802 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6803 (struct ada_symbol_cache): New.
6804 (ada_free_symbol_cache): Forward declare.
6805 (struct ada_pspace_data): New.
6806 (ada_pspace_data_handle): New static global.
6807 (get_ada_pspace_data, ada_pspace_data_cleanup)
6808 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6809 (cache_space, cache): Delete, now folded inside struct
6811 (ada_get_symbol_cache): New function.
6812 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6814 (_initialize_ada_language): Remove initialization of cache_space.
6815 Move call to observer_attach_inferior_exit up, grouping it
6816 with the other observer registrations inside this function.
6817 Rename command to be more general. Add call to
6818 register_program_space_data_with_cleanup.
6820 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6822 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6823 ada_new_objfile_observer.
6824 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6825 (_initialize_tasks): Update uses of ada_new_objfile_observer
6826 and ada_tasks_normal_stop_observer.
6828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6830 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6831 returned by the 'Length attribute to integer.
6833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6835 * ada-lang.c (_initialize_ada_language): Initialize
6836 cache_space obstack.
6838 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6840 * ada-lang.c (HASH_SIZE): New macro.
6841 (struct cache_entry): New type.
6842 (cache_space, cache): New static globals.
6843 (ada_clear_symbol_cache, find_entry): New functions.
6844 (lookup_cached_symbol, cache_symbol): Implement.
6845 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6846 (_initialize_ada_language): Attach ada_new_objfile_observer
6847 and ada_free_objfile_observer.
6849 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6851 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6852 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6853 struct block * parameter.
6854 (ada_lookup_symbol_list_worker): Constify local variable "block".
6855 Remove cast which is no longer necessary.
6857 2014-02-10 Doug Evans <xdje42@gmail.com>
6859 Add Guile as an extension language.
6860 * NEWS: Mention Guile scripting.
6861 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6862 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6863 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6864 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6865 (CLIBS): Add GUILE_LIBS.
6866 (install-guile): New rule.
6867 (guile.o): New rule.
6868 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6869 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6870 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6871 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6872 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6873 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6874 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6875 * configure.ac: New option --with-guile.
6876 * configure: Regenerate.
6877 * config.in: Regenerate.
6878 * auto-load.c: Remove #include "python/python.h". Add #include
6879 "gdb/section-scripts.h".
6880 (source_section_scripts): Handle Guile scripts.
6881 (_initialize_auto_load): Add name of Guile objfile script to
6882 scripts-directory help text.
6883 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6884 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6885 (struct breakpoint): New member scm_bp_object.
6886 * defs.h (enum command_control_type): New value guile_control.
6887 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6889 (show_user): Update comment.
6890 (_initialize_cli_cmds): Update help text for "show user". Update help
6891 text for max-user-call-depth.
6892 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6894 (multi_line_command_p): Add guile_control.
6895 (print_command_lines): Handle guile_control.
6896 (execute_control_command, recurse_read_control_structure): Ditto.
6897 (process_next_line): Recognize "guile" commands.
6898 * disasm.c (gdb_disassemble_info): Make non-static.
6899 * disasm.h: #include "dis-asm.h".
6900 (struct gdbarch): Add forward decl.
6901 (gdb_disassemble_info): Declare.
6902 * extension.c: #include "guile/guile.h".
6903 (extension_languages): Add guile.
6904 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6905 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6906 * gdbtypes.c (get_unsigned_type_max): New function.
6907 (get_signed_type_minmax): New function.
6908 * gdbtypes.h (get_unsigned_type_max): Declare.
6909 (get_signed_type_minmax): Declare.
6910 * guile/README: New file.
6911 * guile/guile-internal.h: New file.
6912 * guile/guile.c: New file.
6913 * guile/guile.h: New file.
6914 * guile/scm-arch.c: New file.
6915 * guile/scm-auto-load.c: New file.
6916 * guile/scm-block.c: New file.
6917 * guile/scm-breakpoint.c: New file.
6918 * guile/scm-disasm.c: New file.
6919 * guile/scm-exception.c: New file.
6920 * guile/scm-frame.c: New file.
6921 * guile/scm-gsmob.c: New file.
6922 * guile/scm-iterator.c: New file.
6923 * guile/scm-lazy-string.c: New file.
6924 * guile/scm-math.c: New file.
6925 * guile/scm-objfile.c: New file.
6926 * guile/scm-ports.c: New file.
6927 * guile/scm-pretty-print.c: New file.
6928 * guile/scm-safe-call.c: New file.
6929 * guile/scm-string.c: New file.
6930 * guile/scm-symbol.c: New file.
6931 * guile/scm-symtab.c: New file.
6932 * guile/scm-type.c: New file.
6933 * guile/scm-utils.c: New file.
6934 * guile/scm-value.c: New file.
6935 * guile/lib/gdb.scm: New file.
6936 * guile/lib/gdb/boot.scm: New file.
6937 * guile/lib/gdb/experimental.scm: New file.
6938 * guile/lib/gdb/init.scm: New file.
6939 * guile/lib/gdb/iterator.scm: New file.
6940 * guile/lib/gdb/printing.scm: New file.
6941 * guile/lib/gdb/types.scm: New file.
6942 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6943 (VPATH): Add $(GUILE_SRCDIR).
6944 (GUILE_DIR): New variable.
6945 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6946 (all): Add stamp-guile dependency.
6947 (stamp-guile): New rule.
6948 (clean-guile, install-guile, uninstall-guile): New rules.
6949 (install-only): Add install-guile dependency.
6950 (uninstall): Add uninstall-guile dependency.
6951 (clean): Add clean-guile dependency.
6953 2014-02-09 Doug Evans <xdje42@gmail.com>
6955 Revert this patch (which I approved, mea culpa).
6957 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6959 * Makefile.in (all-lib): Remove.
6960 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6962 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6964 Fix Python stack corruption.
6965 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6968 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6970 * Makefile.in (all-lib): Remove.
6971 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6973 2014-02-07 Doug Evans <dje@google.com>
6975 * extension-priv.h (extension_language_script_ops): Add comment.
6976 (extension_language_ops): Add comment.
6977 (active_ext_lang_state): Fix typo in comment.
6979 2014-02-07 Pedro Alves <palves@redhat.com>
6981 PR breakpoints/16292
6982 * infrun.c (handle_signal_stop) <signal arrives while stepping
6983 over a breakpoint>: Switch back to the stepping thread.
6985 2014-02-07 Yao Qi <yao@codesourcery.com>
6987 * target.c (target_xfer_partial): Return zero if LEN is zero.
6989 2014-02-07 Yao Qi <yao@codesourcery.com>
6991 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6992 (ld_so_xfer_auxv): Likewise.
6993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6994 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6995 * corelow.c (core_xfer_partial): Likewise.
6996 * ctf.c (ctf_xfer_partial): Likewise.
6997 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6998 (darwin_xfer_partial): Likewise.
6999 * exec.c (exec_xfer_partial): Likewise.
7000 * gnu-nat.c (gnu_xfer_partial): Likewise.
7001 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7002 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7003 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7004 * linux-nat.c (linux_xfer_siginfo): Likewise.
7005 (linux_proc_xfer_spu): Likewise.
7006 * procfs.c (procfs_xfer_partial): Likewise.
7007 * record-full.c (record_full_xfer_partial): Likewise.
7008 (record_full_core_xfer_partial): Likewise.
7009 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7010 * remote.c (remote_write_qxfer): Likewise.
7011 (remote_write_qxfer, remote_read_qxfer): Likewise.
7012 (remote_xfer_partial): Likewise.
7013 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7014 (rs6000_xfer_shared_libraries): Likewise.
7015 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7016 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7017 (spu_xfer_partial): Likewise.
7018 * target.c (memory_xfer_partial_1): Likewise.
7019 * tracepoint.c (tfile_xfer_partial): Likewise.
7020 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7021 (windows_xfer_partial): Likewise.
7023 2014-02-07 Yao Qi <yao@codesourcery.com>
7025 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7027 (core_xfer_shared_libraries_aix): Likewise.
7028 * gdbarch.c, gdbarch.h: Regenerated.
7029 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7030 ULONGEST. Change 'len_avail' type to ULONGEST.
7031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7032 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7034 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7036 2014-02-07 Yao Qi <yao@codesourcery.com>
7038 * corefile.c (memory_error): Get 'exception' from ERR and pass
7039 'exception' to throw_error.
7041 2014-02-06 Doug Evans <xdje42@gmail.com>
7043 * configure.ac (libpython checking): Remove all but python.o from
7044 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7045 * configure: Regenerate.
7047 * Makefile.in (SFILES): Add extension.c.
7048 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7049 (COMMON_OBS): Add extension.o.
7050 * extension.h: New file.
7051 * extension-priv.h: New file.
7052 * extension.c: New file.
7054 * python/python-internal.h: #include "extension.h".
7055 (gdbpy_auto_load_enabled): Declare.
7056 (gdbpy_apply_val_pretty_printer): Declare.
7057 (gdbpy_apply_frame_filter): Declare.
7058 (gdbpy_preserve_values): Declare.
7059 (gdbpy_breakpoint_cond_says_stop): Declare.
7060 (gdbpy_breakpoint_has_cond): Declare.
7061 (void source_python_script_for_objfile): Delete.
7062 * python/python.c: #include "extension-priv.h".
7063 Delete inclusion of "observer.h".
7064 (extension_language_python): Moved here and renamed from
7065 script_language_python in py-auto-load.c.
7066 Redefined to be of type extension_language_defn.
7067 (python_extension_script_ops): New global.
7068 (python_extension_ops): New global.
7069 (struct python_env): New member previous_active.
7070 (restore_python_env): Call restore_active_ext_lang.
7071 (ensure_python_env): Call set_active_ext_lang.
7072 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7074 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7076 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7078 (gdbpy_eval_from_control_command): Renamed from
7079 eval_python_from_control_command, made static. New arg extlang.
7080 (gdbpy_source_script) Renamed from source_python_script, made static.
7082 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7083 result to int. New arg extlang.
7084 (gdbpy_source_objfile_script): Renamed from
7085 source_python_script_for_objfile, made static. New arg extlang.
7086 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7087 static. New args extlang, extlang_printers. Change result type to
7089 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7090 static. New arg extlang. Rename arg printers to extlang_printers
7091 and change type to ext_lang_type_printers *.
7092 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7093 static. Replace argument arg with extlang, extlang_printers.
7094 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7095 (!HAVE_PYTHON, source_python_script): Delete.
7096 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7097 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7098 (!HAVE_PYTHON, start_type_printers): Delete.
7099 (!HAVE_PYTHON, apply_type_printers): Delete.
7100 (!HAVE_PYTHON, free_type_printers): Delete.
7101 (_initialize_python): Delete call to observer_attach_before_prompt.
7102 (finalize_python): Set/restore active extension language.
7103 (gdbpy_finish_initialization) Renamed from
7104 finish_python_initialization, made static. New arg extlang.
7105 (gdbpy_initialized): New function.
7106 * python/python.h: #include "extension.h". Delete #include
7107 "value.h", "mi/mi-cmds.h".
7108 (extension_language_python): Declare.
7109 (GDBPY_AUTO_FILE_NAME): Delete.
7110 (enum py_bt_status): Moved to extension.h and renamed to
7112 (enum frame_filter_flags): Moved to extension.h.
7113 (enum py_frame_args): Moved to extension.h and renamed to
7114 ext_lang_frame_args.
7115 (finish_python_initialization): Delete.
7116 (eval_python_from_control_command): Delete.
7117 (source_python_script): Delete.
7118 (apply_val_pretty_printer): Delete.
7119 (apply_frame_filter): Delete.
7120 (preserve_python_values): Delete.
7121 (gdbpy_script_language_defn): Delete.
7122 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7123 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7125 * auto-load.c: #include "extension.h".
7126 (GDB_AUTO_FILE_NAME): Delete.
7127 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7128 (script_language_gdb): Delete, moved to extension.c and renamed to
7129 extension_language_gdb.
7130 (source_gdb_script_for_objfile): Delete.
7131 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7132 (loaded_script): Change type of language member to
7133 struct extension_language_defn *.
7134 (init_loaded_scripts_info): Initialize
7135 unsupported_script_warning_printed.
7136 (maybe_add_script): Make static. Change type of language arg to
7137 struct extension_language_defn *.
7138 (clear_section_scripts): Reset unsupported_script_warning_printed.
7139 (auto_load_objfile_script_1): Rewrite to use extension language API.
7140 (auto_load_objfile_script): Make public. Remove support-compiled-in
7141 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7142 (source_section_scripts): Rewrite to use extension language API.
7143 (load_auto_scripts_for_objfile): Rewrite to use
7144 auto_load_scripts_for_objfile.
7145 (collect_matching_scripts_data): Change type of language member to
7146 struct extension_language_defn *.
7147 (auto_load_info_scripts): Change type of language arg to
7148 struct extension_language_defn *.
7149 (unsupported_script_warning_print): New function.
7150 (script_not_found_warning_print): Make static.
7151 (_initialize_auto_load): Rewrite construction of scripts-directory
7153 * auto-load.h (struct objfile): Add forward decl.
7154 (struct script_language): Delete.
7155 (struct auto_load_pspace_info): Add forward decl.
7156 (struct extension_language_defn): Add forward decl.
7157 (maybe_add_script): Delete.
7158 (auto_load_objfile_script): Declare.
7159 (script_not_found_warning_print): Delete.
7160 (auto_load_info_scripts): Update prototype.
7161 (auto_load_gdb_scripts_enabled): Declare.
7162 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7163 auto_load_python_scripts_enabled and made public.
7164 (script_language_python): Delete, moved to python.c.
7165 (gdbpy_script_language_defn): Delete.
7166 (info_auto_load_python_scripts): Update to use
7167 extension_language_python.
7169 * breakpoint.c (condition_command): Replace call to
7170 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7171 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7172 with call to breakpoint_ext_lang_cond_says_stop.
7173 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7174 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7175 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7176 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7178 (local_setattro): Print name of extension language with existing
7181 * valprint.c (val_print, value_print): Update to call
7182 apply_ext_lang_val_pretty_printer.
7183 * cp-valprint.c (cp_print_value): Update call to
7184 apply_ext_lang_val_pretty_printer.
7185 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7186 (gdbpy_apply_val_pretty_printer): Renamed from
7187 apply_val_pretty_printer. New arg extlang.
7188 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7190 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7191 extension language API.
7192 * cli/cli-script.c (execute_control_command): Update to call
7193 eval_ext_lang_from_control_command.
7195 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7196 enum ext_lang_bt_status values. Update call to
7197 apply_ext_lang_frame_filter.
7198 (mi_cmd_stack_list_locals): Ditto.
7199 (mi_cmd_stack_list_args): Ditto.
7200 (mi_cmd_stack_list_variables): Ditto.
7201 * mi/mi-main.c: Delete #include "python/python-internal.h".
7202 Add #include "extension.h".
7203 (mi_cmd_list_features): Replace reference to python internal variable
7204 gdb_python_initialized with call to ext_lang_initialized_p.
7206 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7207 Update to use enum ext_lang_frame_args. Update to call
7208 apply_ext_lang_frame_filter.
7209 * python/py-framefilter.c (extract_sym): Update to use enum
7211 (extract_value, py_print_type, py_print_value): Ditto.
7212 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7213 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7214 (py_print_frame): Ditto.
7215 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7216 New arg extlang. Update to use enum ext_lang_bt_status.
7218 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7219 finish_python_initialization. Replace with call to
7220 finish_ext_lang_initialization.
7222 * typeprint.c (do_free_global_table): Update to call
7223 free_ext_lang_type_printers.
7224 (create_global_typedef_table): Update to call
7225 start_ext_lang_type_printers.
7226 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7227 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7228 (type_print_options): Change type of global_printers from "void *"
7229 to "struct ext_lang_type_printers *".
7231 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7232 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7233 (gdbpy_preserve_values): Renamed from preserve_python_values.
7235 (!HAVE_PYTHON, preserve_python_values): Delete.
7237 * utils.c (quit_flag): Delete, moved to extension.c.
7238 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7241 * eval.c: Delete #include "python/python.h".
7242 * main.c: Delete #include "python/python.h".
7244 * defs.h: Update comment.
7246 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7250 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7252 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7255 2014-02-05 Yao Qi <yao@codesourcery.com>
7257 * remote.c (remote_pass_signals): Remove local 'buf' and use
7259 (remote_program_signals): Likewise.
7261 2014-02-05 Yao Qi <yao@codesourcery.com>
7263 * ctf.c: Include "inferior.h" and "gdbthread.h".
7264 (CTF_PID): A new macro.
7265 (ctf_open): Call inferior_appeared and add_thread_silent.
7266 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7267 (ctf_thread_alive): New function.
7268 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7270 2014-02-05 Yao Qi <yao@codesourcery.com>
7274 2013-05-24 Yao Qi <yao@codesourcery.com>
7276 * tracepoint.c (TFILE_PID): Remove.
7277 (tfile_open): Don't add thread and inferior.
7278 (tfile_close): Don't set 'inferior_ptid'. Don't call
7279 exit_inferior_silent.
7280 (tfile_thread_alive): Remove.
7281 (init_tfile_ops): Don't set field 'to_thread_alive' of
7284 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7286 * remote.c (remote_start_remote): Call remote_check_symbols even
7287 if only symbol-file (not file) has been given.
7289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7291 * gdbarch.sh (skip_entrypoint): New callback.
7292 * gdbarch.c, gdbarch.h: Regenerate.
7293 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7294 * infrun.c (fill_in_stop_func): Likewise.
7295 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7296 (ppc_elfv2_elf_make_msymbol_special): New function.
7297 (ppc_elfv2_skip_entrypoint): Likewise.
7298 (ppc_linux_init_abi): Install them for ELFv2.
7300 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7302 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7303 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7304 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7305 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7306 structures returned in GPRs.
7308 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7310 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7311 offset to the stack parameter list for the ELFv2 ABI.
7313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7315 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7316 set_gdbarch_convert_from_func_ptr_addr and
7317 set_gdbarch_elf_make_msymbol_special for ELFv1.
7318 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7319 function descriptors on ELFv1.
7320 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7321 set up r12 at function entry.
7323 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7325 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7326 (struct gdbarch_tdep): New member elf_abi.
7328 * rs6000-tdep.c: Include "elf/ppc64.h".
7329 (rs6000_gdbarch_init): Detect ELF ABI version.
7331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7333 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7334 within a register pair holding a DFP 128-bit value on little-endian.
7335 (ppc64_sysv_abi_return_value_base): Likewise.
7336 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7337 (dfp_pseudo_register_write): Likewise.
7339 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7341 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7342 offset on little-endian when passing _Decimal32.
7343 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7345 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7347 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7348 of the overlapped FP register within the VSX register on little-
7350 (efpr_pseudo_register_write): Likewise.
7352 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7355 offset on little-endian when passing small structures.
7357 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7359 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7360 (struct ppc64_sysv_argpos): New data structure.
7361 (ppc64_sysv_abi_push_float): Remove.
7362 (ppc64_sysv_abi_push_val): New function.
7363 (ppc64_sysv_abi_push_integer): Likewise.
7364 (ppc64_sysv_abi_push_freg): Likewise.
7365 (ppc64_sysv_abi_push_vreg): Likewise.
7366 (ppc64_sysv_abi_push_param): Likewise.
7367 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7368 (ppc64_sysv_abi_return_value_base): New function.
7369 (ppc64_sysv_abi_return_value): Refactor to use it.
7371 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7373 * NEWS: Document new target powerpc64le-*-linux*.
7375 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7377 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7378 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7380 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7381 register set used in ELF core dumps. Add floating-point register set.
7383 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7385 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7386 dwarf2_to_gdb[] table using symbolic constants. Adjust
7387 penultimate entry from number representing the PC register
7388 to symbolic constant representing the MDR register. Add
7389 constant for the PC register to the end of the table.
7391 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7393 * bsd-kvm.c: Include <sys/param.h>
7395 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7397 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7399 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7401 * ada-lang.h (clear_ada_sym_cache): Delete.
7403 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7405 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7407 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7409 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7410 the sigreturn register save area only if the syscall is
7413 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7415 * valops.c (value_slice): Minor reformatting.
7417 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7419 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7421 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7423 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7425 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7426 (ada_ignore_descriptive_types_p): New static global.
7427 (find_parallel_type_by_descriptive_type): Return immediately
7428 if ada_ignore_descriptive_types_p is set.
7429 (_initialize_ada_language): Register new commands "maintenance
7430 set ada", "maintenance show ada", "maintenance set ada
7431 ignore-descriptive-types" and "maintenance show ada
7432 ignore-descriptive-types".
7433 * NEWS: Add entry for new "maint ada set/show
7434 ignore-descriptive-types" commands.
7436 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7438 * record-btrace.c (record_btrace_close): Call btrace_teardown
7441 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7443 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7446 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7448 * ada-typeprint (type_is_full_subrange_of_target_type):
7450 (print_range): Add parameter bounds_prefered_p. If not set,
7451 try printing range types using the name of their base type.
7452 (print_range_type): Add parameter bounds_prefered_p.
7453 Use it in call to print_range.
7454 (print_array_type, ada_print_type): Update calls to print_range
7455 and print_range_type.
7457 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7459 * ada-typeprint.c (print_array_type, print_choices, print_range)
7460 (print_range_bound, print_dynamic_range_bound, print_range_type):
7463 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7465 * ada-typeprint.c (print_range): Add missing empty line
7466 after local declaration.
7468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7470 * ada-valprint.c (print_optional_low_bound): Get index_type's
7471 target type for as long as it is a TYPE_CODE_RANGE.
7473 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7475 * procfs.c (procfs_make_note_section): Remove assertion and
7478 2014-01-24 Yao Qi <yao@codesourcery.com>
7480 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7481 * corelow.c (get_core_siginfo): Likewise.
7483 2014-01-24 Yao Qi <yao@codesourcery.com>
7485 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7486 ULONGEST. Don't check 'len' is negative.
7487 (remote_write_bytes): Change type of 'len' to ULONGEST.
7489 2014-01-23 Tom Tromey <tromey@redhat.com>
7492 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7493 Handle exception from frame.block.
7494 (FrameVars.fetch_frame_locals): Likewise.
7496 2014-01-23 Tom Tromey <tromey@redhat.com>
7499 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7500 on a NULL pointer. Move "goto error" to correct place.
7502 2014-01-23 Tom Tromey <tromey@redhat.com>
7505 * python/py-framefilter.c (apply_frame_filter): Call
7506 ensure_python_env after computing gdbarch.
7508 2014-01-23 Yao Qi <yao@codesourcery.com>
7510 * target.c (raw_memory_xfer_partial): Change argument type
7511 from void * to gdb_byte *.
7512 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7514 2014-01-22 Doug Evans <dje@google.com>
7516 New gdbserver option --debug-format=timestamp.
7519 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7521 * syscalls/s390x-linux.xml: New file.
7522 * syscalls/s390-linux.xml: New file.
7523 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7524 (XML_SYSCALL_FILENAME_S390X): Likewise.
7525 (op_svc): New enum value for SVC opcode.
7526 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7527 (s390_linux_get_syscall_number): New function.
7528 (s390_gdbarch_init): Register '*get_syscall_number' and the
7529 syscall xml file name.
7530 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7531 "s390-linux.xml" and "s390x-linux.xml".
7532 * NEWS: Announce new feature.
7534 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7536 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7538 2014-01-22 Pedro Alves <palves@redhat.com>
7540 * xtensa-config.c: Include defs.h.
7542 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7544 * common/common-utils.h: Add "ARI:" comment beside __func__
7547 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7549 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7550 documentation a bit.
7552 2014-01-21 Roland McGrath <mcgrathr@google.com>
7554 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7555 * configure: Regenerate.
7556 * aclocal.m4: Regenerate.
7557 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7558 New substituted variables.
7559 (install-strip): New target.
7560 (INSTALL_SCRIPT): New substituted variable.
7561 (FLAGS_TO_PASS): Add it.
7562 (install-only): Use $(INSTALL_SCRIPT) rather than
7563 $(INSTALL_PROGRAM) for gcore.
7565 2014-01-20 Tom Tromey <tromey@redhat.com>
7567 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7570 2014-01-20 Tom Tromey <tromey@redhat.com>
7572 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7573 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7574 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7575 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7576 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7577 (struct cmd_list_element) <flags>: Remove.
7578 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7579 doc_allocated>: New fields.
7580 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7582 * maint.c (maintenance_do_deprecate): Update.
7583 * top.c (execute_command): Update.
7585 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7587 * xtensa-linux-nat.c: Include asm/ptrace.h.
7589 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7591 * Makefile.in (SFILES): Add d-support.c.
7592 (COMMON_OBS): Add d-support.o.
7593 * d-lang.h (d_parse_symbol): Add comment, now defined in
7595 * d-lang.c (parse_call_convention)
7596 (parse_attributes, parse_function_types)
7597 (parse_function_args, parse_type, parse_identifier)
7598 (call_convention_p, d_parse_symbol): Move functions to ...
7599 * d-support.c: ... New file.
7601 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7603 * d-lang.h (d_parse_symbol): Add declaration.
7604 * d-lang.c (extract_identifiers)
7605 (extract_type_info): Remove functions.
7606 (parse_call_convention, parse_attributes)
7607 (parse_function_types, parse_function_args)
7608 (parse_type, parse_identifier, call_convention_p)
7609 (d_parse_symbol): New functions.
7610 (d_demangle): Use d_parse_symbol to demangle D symbols.
7612 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7614 * d-lang.h (struct builtin_d_type): New data type.
7615 (builtin_d_type): Add declaration.
7616 * d-lang.c (d_language_arch_info, build_d_types)
7617 (builtin_d_type): New functions.
7618 (enum d_primitive_types): New data type.
7619 (d_language_defn): Change c_language_arch_info to
7620 d_language_arch_info.
7621 (d_type_data): New static variable.
7622 (_initialize_d_language): Initialize d_type_data.
7624 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7626 * d-lang.h (d_main_name): Add declaration.
7627 * d-lang.c (d_main_name): New function.
7628 * symtab.c (find_main_name): Add call to d_main_name.
7630 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7632 * d-lang.c (d_language_defn): Change macro_expansion_c to
7635 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7637 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7639 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7641 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7642 gdb_exception" declaration.
7643 * remote.c (getpkt_or_notif_sane): Likewise.
7645 2014-01-17 Doug Evans <dje@google.com>
7647 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7648 function, contents of dirnames_to_char_ptr_vec_append moved here.
7649 (delim_string_to_char_ptr_vec): New function.
7650 (dirnames_to_char_ptr_vec_append): Rewrite.
7651 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7653 2014-01-17 Doug Evans <dje@google.com>
7655 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7657 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7658 #include "common-utils.h".
7659 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7660 * common/vec.h (VEC_ASSERT_PASS): Update.
7661 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7662 (MACH_CHECK_ERROR): Update.
7664 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7666 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7668 * gdbarch.h: Regenerate.
7670 2014-01-16 Tom Tromey <tromey@redhat.com>
7672 * value.c (struct value) <regnum>: Move earlier.
7674 2014-01-16 Tom Tromey <tromey@redhat.com>
7676 * remote.c (extended_remote_create_inferior): Rename from
7677 extended_remote_create_inferior_1. Add "ops" argument. Remove
7680 2014-01-16 Pedro Alves <palves@redhat.com>
7682 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7683 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7686 2014-01-16 Doug Evans <dje@google.com>
7688 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7692 * btrace.h (btrace_thread_flag): New.
7693 (struct btrace_thread_info) <flags>: New.
7694 * record-btrace.c (record_btrace_resume_thread)
7695 (record_btrace_find_thread_to_move, btrace_step_no_history)
7696 (btrace_step_stopped, record_btrace_start_replaying)
7697 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7698 (record_btrace_find_resume_thread): New.
7699 (record_btrace_resume, record_btrace_wait): Extend.
7700 (record_btrace_can_execute_reverse): New.
7701 (record_btrace_open): Fail in non-stop mode.
7702 (record_btrace_set_replay): Split into this, ...
7703 (record_btrace_stop_replaying): ... this, ...
7704 (record_btrace_clear_histories): ... and this.
7705 (init_record_btrace_ops): Init to_can_execute_reverse.
7706 * NEWS: Announce it.
7708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7710 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7711 (forward_target_decr_pc_after_break)
7712 (target_decr_pc_after_break): New.
7713 * target.c (forward_target_decr_pc_after_break)
7714 (target_decr_pc_after_break): New.
7715 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7716 instead of gdbarch_decr_pc_after_break.
7717 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7718 instead of gdbarch_decr_pc_after_break.
7719 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7720 instead of gdbarch_decr_pc_after_break.
7721 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7722 instead of gdbarch_decr_pc_after_break.
7723 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7724 instead of gdbarch_decr_pc_after_break.
7725 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7726 instead of gdbarch_decr_pc_after_break.
7728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7730 * btrace.c: Include regcache.h.
7731 (btrace_add_pc): New.
7732 (btrace_enable): Call btrace_add_pc.
7733 (btrace_is_empty): New.
7734 * btrace.h (btrace_is_empty): New.
7735 * record-btrace.c (require_btrace, record_btrace_info): Call
7738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7740 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7741 Support delta reads.
7742 (linux_disable_btrace): Change return type.
7743 * common/linux-btrace.h (linux_read_btrace): Change parameters
7744 and return type to allow error reporting. Update users.
7745 (linux_disable_btrace): Change return type. Update users.
7746 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7748 (btrace_error): New.
7749 (btrace_block) <begin>: Comment on BEGIN == 0.
7750 * btrace.c (btrace_compute_ftrace): Start from the end of
7752 (btrace_stitch_trace, btrace_clear_history): New.
7753 (btrace_fetch): Read delta trace, return if replaying.
7754 (btrace_clear): Move clear history code to btrace_clear_history.
7755 (parse_xml_btrace): Throw an error if parsing failed.
7756 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7757 and return type to allow error reporting.
7758 (target_read_btrace): Change parameters and return type to allow
7760 * target.c (target_read_btrace): Update.
7761 * remote.c (remote_read_btrace): Support delta reads. Pass
7763 * NEWS: Announce it.
7765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7767 * record.h (record_btrace_frame_unwind)
7768 (record_btrace_tailcall_frame_unwind): New declarations.
7769 * dwarf2-frame: Include record.h
7770 (dwarf2_frame_cfa): Throw an error for btrace frames.
7771 * record-btrace.c: Include hashtab.h.
7772 (btrace_get_bfun_name): New.
7773 (btrace_call_history): Call btrace_get_bfun_name.
7774 (struct btrace_frame_cache): New.
7776 (bfcache_hash, bfcache_eq, bfcache_new): New.
7777 (btrace_get_frame_function): New.
7778 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7779 (record_btrace_frame_this_id): Compute own id.
7780 (record_btrace_frame_prev_register): Provide PC, throw_error
7781 for all other registers.
7782 (record_btrace_frame_sniffer): Detect btrace frames.
7783 (record_btrace_tailcall_frame_sniffer): New.
7784 (record_btrace_frame_dealloc_cache): New.
7785 (record_btrace_frame_unwind): Add new functions.
7786 (record_btrace_tailcall_frame_unwind): New.
7787 (_initialize_record_btrace): Allocate cache.
7788 * btrace.c (btrace_clear): Call reinit_frame_cache.
7789 * NEWS: Announce it.
7791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7793 * record-btrace.c (record_btrace_set_replay)
7794 (record_btrace_goto_begin, record_btrace_goto_end)
7795 (record_btrace_goto): New.
7796 (init_record_btrace_ops): Initialize them.
7797 * NEWS: Announce it.
7799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7801 * record-btrace.c (record_btrace_find_new_threads)
7802 (record_btrace_thread_alive): New.
7803 (init_record_btrace_ops): Initialize to_find_new_threads and
7806 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7808 * record-btrace.c (record_btrace_resume): New.
7809 (record_btrace_wait): New.
7810 (init_record_btrace_ops): Initialize to_wait and to_resume.
7812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7814 * record-btrace.c (record_btrace_xfer_partial)
7815 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7816 (record_btrace_allow_memory_access): New.
7817 (init_record_btrace_ops): Initialize new methods.
7818 * target.c (raw_memory_xfer_partial): Bail out if target reports
7819 that this memory is not available.
7821 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7823 * target.h (target_ops) <to_insert_breakpoint>
7824 <to_remove_breakpoint>: Add target_ops parameter.
7825 (forward_target_insert_breakpoint): New.
7826 (forward_target_remove_breakpoint): New.
7827 (memory_remove_breakpoint, memory_insert_breakpoint):
7828 Add target_ops parameter.
7829 * target.c (target_insert_breakpoint): Split into this and ...
7830 (forward_target_insert_breakpoint): ... this.
7831 (target_remove_breakpoint): Split into this and ...
7832 (forward_target_remove_breakpoint): ... this.
7833 (debug_to_insert_breakpoint): Add target_ops parameter.
7834 Call forward_target_insert_breakpoint.
7835 (debug_to_remove_breakpoint): Add target_ops parameter.
7836 Call forward_target_remove_breakpoint.
7837 (update_current_target): Do not inherit or default to_insert_breakpoint
7838 and to_remove_breakpoint.
7839 * corelow.c (ignore): Add target_ops parameter.
7840 * exec.c (ignore): Add target_ops parameter.
7841 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7842 Add target_ops parameter.
7843 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7844 Add target_ops parameter.
7845 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7846 Add target_ops parameter.
7847 * record-full.c (record_full_beneath_to_insert_breakpoint)
7848 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7849 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7850 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7851 (record_full_core_remove_breakpoint): Add target_ops parameter.
7853 (record_full_beneath_to_insert_breakpoint_ops)
7854 (record_full_beneath_to_remove_breakpoint_ops)
7855 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7856 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7857 tmp_to_remove_breakpoint_ops,
7858 record_full_beneath_to_insert_breakpoint_ops, and
7859 record_full_beneath_to_remove_breakpoint_ops.
7860 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7861 (m32r_remove_breakpoint): Add target_ops parameter.
7862 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7863 Add target_ops parameter.
7864 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7865 Add target_ops parameter.
7867 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7868 Markus Metzger <markus.t.metzger@intel.com>
7870 * record-btrace.c: Include frame-unwind.h.
7871 (record_btrace_frame_unwind_stop_reason)
7872 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7873 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7875 (init_record_btrace_ops): Install it.
7877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7879 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7882 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7884 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7887 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7889 * frame-unwind.c: Include target.h.
7890 (frame_unwind_try_unwinder): New function with code from ...
7891 (frame_unwind_find_by_frame): ... here. New variable
7892 unwinder_from_target, call also target_get_unwinder)
7893 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7894 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7895 * target.h (struct target_ops): New fields to_get_unwinder and
7896 to_get_tailcall_unwinder.
7897 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7901 * record-btrace.c (record_btrace_fetch_registers)
7902 (record_btrace_store_registers)
7903 (record_btrace_to_prepare_to_store): New.
7904 (init_record_btrace_ops): Add the above.
7906 2014-01-16 Tom Tromey <tromey@redhat.com>
7908 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7909 * target.h (struct target_ops) <to_prepare_to_store>: Add
7911 (target_prepare_to_store): Add argument.
7912 * target.c (debug_to_prepare_to_store): Add argument.
7913 (update_current_target): Update.
7914 * remote.c (remote_prepare_to_store): Add 'self' argument.
7915 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7916 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7917 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7918 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7920 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7921 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7922 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7923 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7924 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7928 * btrace.h (replay) <replay>: New.
7929 (btrace_is_replaying): New.
7930 * btrace.c (btrace_clear): Free replay iterator.
7931 (btrace_is_replaying): New.
7932 * record-btrace.c (record_btrace_is_replaying): New.
7933 (record_btrace_info): Print insn number if replaying.
7934 (record_btrace_insn_history): Start at replay position.
7935 (record_btrace_call_history): Start at replay position.
7936 (init_record_btrace_ops): Init to_record_is_replaying.
7938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7940 * record-btrace.c (record_btrace_insn_history_range): Include
7942 (record_btrace_insn_history_from): Adjust range.
7943 (record_btrace_call_history_range): Include
7945 (record_btrace_call_history_from): Adjust range.
7946 * NEWS: Announce changes.
7948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7950 * record.h (enum record_print_flag)
7951 <record_print_indent_calls>: New.
7952 * record.c (get_call_history_modifiers): Recognize /c modifier.
7953 (_initialize_record): Document /c modifier.
7954 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7955 Reorder fields. Optionally indent the function name. Update
7957 * NEWS: Announce changes.
7959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7961 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7965 * btrace.c (ftrace_new_function): Start counting at one.
7966 * record-btrace.c (record_btrace_info): Adjust number of calls
7968 * NEWS: Announce it.
7970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7972 * record-btrace.c (btrace_call_history_insn_range): Print
7973 insn range as [begin, end].
7975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7977 * btrace.h (struct btrace_func_link): New.
7978 (enum btrace_function_flag): New.
7979 (struct btrace_inst): Rename to ...
7980 (struct btrace_insn): ...this. Update all users.
7981 (struct btrace_func) <ibegin, iend>: Remove.
7982 (struct btrace_func_link): New.
7983 (struct btrace_func): Rename to ...
7984 (struct btrace_function): ...this. Update all users.
7985 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7986 (number, level, flags>: New.
7987 (struct btrace_insn_iterator): Rename to ...
7988 (struct btrace_insn_history): ...this.
7990 (struct btrace_insn_iterator, btrace_call_iterator): New.
7991 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7992 (struct btrace_target_info) <begin, end, level>
7993 <insn_history, call_history>: New.
7994 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7995 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7996 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7997 (btrace_call_number, btrace_call_begin, btrace_call_end)
7998 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7999 (btrace_find_function_by_number, btrace_set_insn_history)
8000 (btrace_set_call_history): New.
8001 * btrace.c (btrace_init_insn_iterator)
8002 (btrace_init_func_iterator, compute_itrace): Remove.
8003 (ftrace_print_function_name, ftrace_print_filename)
8004 (ftrace_skip_file): Change
8006 (ftrace_init_func): Remove.
8007 (ftrace_debug): Use new btrace_function fields.
8008 (ftrace_function_switched): Also consider gaining and
8009 losing symbol information).
8010 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8011 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8012 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8014 (ftrace_new_function): Move. Remove debug print.
8015 (ftrace_update_lines, ftrace_update_insns): New.
8016 (ftrace_update_function): Check for call, ret, and jump.
8017 (compute_ftrace): Renamed to ...
8018 (btrace_compute_ftrace): ...this. Rewritten to compute call
8020 (btrace_fetch, btrace_clear): Updated.
8021 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8022 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8023 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8024 (btrace_call_number, btrace_call_begin, btrace_call_end)
8025 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8026 (btrace_find_function_by_number, btrace_set_insn_history)
8027 (btrace_set_call_history): New.
8028 * record-btrace.c (require_btrace): Use new btrace thread
8030 (record_btrace_info, btrace_insn_history)
8031 (record_btrace_insn_history, record_btrace_insn_history_range):
8032 Use new btrace thread info fields and new iterator.
8033 (btrace_func_history_src_line): Rename to ...
8034 (btrace_call_history_src_line): ...this. Use new btrace
8036 (btrace_func_history): Rename to ...
8037 (btrace_call_history): ...this. Use new btrace thread info
8038 fields and new iterator.
8039 (record_btrace_call_history, record_btrace_call_history_range):
8040 Use new btrace thread info fields and new iterator.
8042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8044 * frame.h (frame_id_build_unavailable_stack_special): New.
8045 * frame.c (frame_id_build_unavailable_stack_special): New.
8047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8049 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8050 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8051 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8053 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8054 (i386_insn_is_jump, i386_jmp_p): New.
8055 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8056 insn_is_jump to gdbarch.
8057 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8058 * gdbarch.h: Regenerated.
8059 * gdbarch.c: Regenerated.
8060 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8061 (default_insn_is_jump): New.
8062 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8063 (default_insn_is_jump): New.
8065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8067 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8069 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8070 (btrace_read_type) <btrace_read_new>: Change to ...
8071 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8075 * common/linux-btrace.c (linux_read_btrace): Free trace from
8078 2014-01-15 Doug Evans <dje@google.com>
8080 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8083 2014-01-15 Tom Tromey <tromey@redhat.com>
8085 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8086 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8087 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8088 (set_objfile_main_name): New function.
8089 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8090 language_of_main>: New fields.
8091 (set_objfile_main_name): Declare.
8092 * symtab.c (find_main_name): Loop over objfiles to find the main
8094 (set_main_name): Now static.
8095 (get_main_info): Add comment.
8096 * symtab.h (set_main_name): Don't declare.
8098 2014-01-15 Tom Tromey <tromey@redhat.com>
8100 * symtab.c (main_progspace_key): New global.
8101 (struct main_info): New.
8102 (name_of_main, language_of_main): Remove.
8103 (get_main_info, main_info_cleanup): New function.
8104 (set_main_name, main_name, main_language): Use get_main_info.
8105 (_initialize_symtab): Initialize main_progspace_key.
8107 2014-01-15 Tom Tromey <tromey@redhat.com>
8109 * dbxread.c (process_one_symbol): Update.
8110 * dwarf2read.c (read_partial_die): Update.
8111 * symfile.c (set_initial_language): Call main_language.
8112 * symtab.c (language_of_main): Now static.
8113 (set_main_name): Add 'lang' parameter.
8114 (find_main_name): Update.
8115 (main_language): New function.
8116 (symtab_observer_executable_changed): Update.
8117 * symtab.h (set_main_name): Update.
8118 (language_of_main): Remove.
8119 (main_language): Declare.
8121 2014-01-15 Tom Tromey <tromey@redhat.com>
8123 * symfile.c (init_entry_point_info): Use new "initialized" field.
8125 * objfiles.h (struct entry_point) <initialized>: New field.
8126 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8127 (struct objfile) <ei>: ...here. Remove.
8128 * objfiles.c (entry_point_address_query): Update.
8130 2014-01-15 Tom Tromey <tromey@redhat.com>
8132 * objfiles.c (entry_point_address_query): Relocate entry point
8134 (objfile_relocate1): Do not relocate entry point address.
8135 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8136 <the_bfd_section_index>: New field.
8137 * symfile.c (init_entry_point_info): Find the entry point's
8140 2014-01-15 Tom Tromey <tromey@redhat.com>
8142 * solib-frv.c (enable_break): Use entry_point_address_query.
8144 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8146 * NEWS: Add note on improved process record-replay on
8147 arm*-linux* targets.
8149 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8151 * arm-tdep.c (enum arm_record_result): New enum.
8152 (arm_record_unsupported_insn): New function.
8153 (arm_record_coproc_data_proc): Removed.
8154 (thumb2_record_ld_st_multiple): New function.
8155 (thumb2_record_ld_st_dual_ex_tbb): New function.
8156 (thumb2_record_data_proc_sreg_mimm): New function.
8157 (thumb2_record_ps_dest_generic): New function.
8158 (thumb2_record_branch_misc_cntrl): New function.
8159 (thumb2_record_str_single_data): New function.
8160 (thumb2_record_ld_mem_hints): New function.
8161 (thumb2_record_ld_word): New function.
8162 (thumb2_record_lmul_lmla_div): New function.
8163 (thumb2_record_decode_insn_handler): New function.
8164 (decode_insn): Add thumb32 instruction handlers.
8166 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8168 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8169 (struct arm_linux_record_tdep): Declare.
8170 (arm_canonicalize_syscall): New function.
8171 (arm_all_but_pc_registers_record): New function.
8172 (arm_linux_syscall_record): New function.
8173 (arm_linux_init_abi): Add syscall recording constructs.
8174 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8175 decoding. (arm_record_coproc_data_proc): Update arm syscall
8177 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8178 <arm_syscall_record>: New field.
8179 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8184 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8185 register for push instruction recording.
8187 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8189 * arm-tdep.c (thumb_record_misc): Update to correct logical
8190 error while recording ldm, ldmia and pop instructions.
8192 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8194 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8196 2014-01-15 Pedro Alves <palves@redhat.com>
8198 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8199 (go32_resume, go32_fetch_registers, store_register)
8200 (go32_store_registers, go32_prepare_to_store)
8201 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8202 (go32_create_inferior, go32_can_run, go32_terminal_init)
8203 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8206 2014-01-15 Tom Tromey <tromey@redhat.com>
8208 * target.h (async_callback_ftype): New typedef.
8209 (struct target_ops) <to_async>: Use it.
8211 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8213 * python/py-value.c (get_field_type): Remove unnecessary curly
8214 braces for single-statement if block.
8216 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8218 * python/py-type.c (convert_field): Add missing empty line
8221 2014-01-14 Doug Evans <dje@google.com>
8223 * symfile.h (expand_symtabs_matching): Renamed from
8224 expand_partial_symbol_names. Update prototype.
8225 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8226 * symfile.c (expand_symtabs_matching): Renamed from
8227 expand_partial_symbol_names. New args file_matcher, kind.
8228 Rename arg fun to symbol_matcher.
8229 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8230 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8231 ada_expand_partial_symbol_name.
8232 (ada_make_symbol_completion_list): Update to call
8233 expand_symtabs_matching.
8234 (ada_add_global_exceptions): Call expand_symtabs_matching.
8235 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8236 call map_symbol_filenames.
8237 * symtab.c (sources_info): Update to call map_symbol_filenames.
8238 (search_symbols): Call expand_symtabs_matching.
8239 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8240 (default_make_symbol_completion_list_break_on): Update to call
8241 expand_symtabs_matching.
8242 (make_source_files_completion_list): Update to call
8243 map_symbol_filenames.
8245 2014-01-14 Doug Evans <dje@google.com>
8247 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8248 (expand_symtabs_symbol_matcher_ftype): New typedef.
8249 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8250 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8251 * symfile.c (expand_partial_symbol_names): Update to use
8252 expand_symtabs_symbol_matcher_ftype.
8253 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8254 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8255 Arg name_matcher renamed to symbol_matcher.
8256 * psymtab.c (recursively_search_psymtabs): Update to use
8257 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8259 (expand_symtabs_matching_via_partial): Update to use
8260 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8261 Arg name_matcher renamed to symbol_matcher.
8263 2014-01-14 Doug Evans <dje@google.com>
8265 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8266 (map_partial_symbol_filenames): Ditto.
8267 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8268 (map_partial_symbol_filenames): Ditto.
8269 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8270 (map_partial_symbol_filenames): Ditto.
8271 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8272 (map_partial_symbol_filenames): Ditto.
8273 * symtab.c: Delete #include "psymtab.h".
8275 2014-01-14 Pedro Alves <palves@redhat.com>
8276 Tom Tromey <tromey@redhat.com>
8278 * infrun.c (use_displaced_stepping): Use find_record_target
8279 instead of RECORD_IS_USED.
8280 (adjust_pc_after_break): Use record_full_is_used instead of
8282 * record-btrace.c (record_btrace_open): Call record_preopen
8283 instead of checking RECORD_IS_USED.
8284 * record-full.c (record_full_shortname)
8285 (record_full_core_shortname): New globals.
8286 (record_full_is_used): New function.
8287 (find_full_open): Call record_preopen instead of checking
8289 (init_record_full_ops): Set the target's shortname to
8290 record_full_shortname.
8291 (init_record_full_core_ops): Set the target's shortname to
8292 record_full_core_shortname.
8293 * record-full.h (record_full_is_used): Declare.
8294 * record.c (find_record_target): Make extern.
8295 (record_preopen): New function.
8296 * record.h (RECORD_IS_USED): Delete macro.
8297 (find_record_target, record_preopen): Declare functions.
8299 2014-01-14 Yao Qi <yao@codesourcery.com>
8301 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8302 'len''s type to ULONGEST.
8303 (core_xfer_shared_libraries_aix): Likewise.
8304 * gdbarch.c, gdbarch.h: Regenerated.
8305 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8306 Change type of 'len' to ULONGEST.
8307 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8308 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8310 2014-01-14 Yao Qi <yao@codesourcery.com>
8312 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8313 type of 'len' to ULONGEST.
8314 (linux_xfer_osdata_processgroups): Likewise.
8315 (linux_xfer_osdata_threads): Likewise.
8316 (linux_xfer_osdata_fds): Likewise.
8317 (linux_xfer_osdata_isockets): Likewise.
8318 (linux_xfer_osdata_shm): Likewise.
8319 (linux_xfer_osdata_sem): Likewise.
8320 (linux_xfer_osdata_msg): Likewise.
8321 (linux_common_xfer_osdata): Likewise.
8322 (struct osdata_type) <getter>: Likewise.
8323 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8326 2014-01-14 Yao Qi <yao@codesourcery.com>
8328 * target.h (target_xfer_partial_ftype): Update.
8329 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8331 * aix-thread.c (aix_thread_xfer_partial): Change type of
8332 argument 'len' to ULONGEST.
8333 * auxv.c (procfs_xfer_auxv): Likewise.
8334 (ld_so_xfer_auxv): Likewise.
8335 (memory_xfer_auxv): Likewise.
8336 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8337 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8338 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8339 * corelow.c (core_xfer_partial): Likewise.
8340 * ctf.c (ctf_xfer_partial): Likewise.
8341 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8343 (darwin_read_dyld_info): Likewise.
8344 (darwin_xfer_partial): Likewise.
8345 * exec.c (section_table_xfer_memory_partial): Likewise.
8346 (exec_xfer_partial): Likewise.
8347 * exec.h (section_table_xfer_memory_partial): Update
8349 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8350 instead of plongest.
8351 (gnu_xfer_partial): Likewise.
8352 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8353 (ia64_hpux_xfer_solib_got): Likewise.
8354 (ia64_hpux_xfer_partial): Likewise.
8355 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8356 * inf-ptrace.c (inf_ptrace_xfer_partial):
8357 * inf-ttrace.c (inf_ttrace_xfer_partial):
8358 * linux-nat.c (linux_xfer_siginfo): Likewise.
8359 (linux_nat_xfer_partial): Likewise.
8360 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8361 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8362 * monitor.c (monitor_xfer_memory): Likewise.
8363 (monitor_xfer_partial): Likewise.
8364 * procfs.c (procfs_xfer_partial): Likewise.
8365 * record-full.c (record_full_xfer_partial): Likewise.
8366 (record_full_core_xfer_partial): Likewise.
8367 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8368 instead of plongest.
8369 (gdbsim_xfer_partial): Likewise.
8370 * remote.c (remote_xfer_partial): Likewise.
8371 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8372 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8374 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8375 (rs6000_xfer_shared_libraries): Likewise.
8376 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8377 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8378 (sparc_xfer_partial): Likewise.
8379 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8380 (spu_xfer_partial): Likewise.
8381 * spu-multiarch.c (spu_xfer_partial): Likewise.
8382 * target.c (target_read_live_memory): Likewise.
8383 (memory_xfer_live_readonly_partial): Likewise.
8384 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8385 (target_xfer_partial, default_xfer_partial): Likewise.
8386 (current_xfer_partial): Likewise.
8387 * tracepoint.c (tfile_xfer_partial): Likewise.
8388 * windows-nat.c (windows_xfer_memory): Likewise. Call
8389 pulongest instead of plongest.
8390 (windows_xfer_partial): Likewise.
8391 (windows_xfer_shared_libraries): Likewise.
8393 2014-01-14 Yao Qi <yao@codesourcery.com>
8395 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8396 target_xfer_partial_ftype.
8398 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8402 * valops.c (value_struct_elt_bitpos): New function
8403 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8404 object to 'None' if the field name is an empty string ("").
8405 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8406 attribute to look for a field when 'name' is 'None'.
8407 (get_field_type): New function
8409 2014-01-13 Doug Evans <dje@google.com>
8412 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8413 (try_open_dwop_file): Ditto.
8414 * gdb_bfd.c: #include "vec.h".
8415 (bfdp): New typedef.
8416 (struct gdb_bfd_data): New member included_bfds.
8417 (gdb_bfd_unref): Unref all included bfds.
8418 (gdb_bfd_record_inclusion): New function.
8419 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8421 2014-01-13 Tom Tromey <tromey@redhat.com>
8423 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8425 2014-01-13 Tom Tromey <tromey@redhat.com>
8427 * defs.h (use_windows): Remove.
8428 * gdb.c (main): Update.
8429 * main.c (captured_main, gdb_main): Update.
8430 * main.h (struct captured_main_args) <use_windows>: Remove.
8431 * top.c (use_windows): Remove.
8433 2014-01-13 Tom Tromey <tromey@redhat.com>
8435 * defs.h (deprecated_flush_hook): Remove.
8437 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8440 * linux-thread-db.c (try_thread_db_load): Add parameter
8441 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8442 (try_thread_db_load_from_pdir_1): Move it there from here.
8443 (try_thread_db_load_from_sdir): Update caller.
8444 (try_thread_db_load_from_dir): Move it there from here.
8446 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8448 * regformats/regdat.sh: Always rewrite the register file.
8450 2014-01-13 Pedro Alves <palves@redhat.com>
8452 * Makefile.in (CHECK_HEADERS): New variable.
8453 (check-headers:): New rule.
8455 2014-01-13 Tom Tromey <tromey@redhat.com>
8457 * cli/cli-setshow.c (do_set_command): Update.
8458 * defs.h (deprecated_set_hook): Remove.
8459 * top.c (deprecated_set_hook): Remove.
8461 2014-01-13 Pedro Alves <palves@redhat.com>
8463 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8464 the tracepoint if the PC is a pseudo-register.
8466 2014-01-13 Tom Tromey <tromey@redhat.com>
8468 * defs.h (XCALLOC): Remove.
8469 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8470 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8471 * dwarf2loc.c (allocate_piece_closure): Likewise.
8472 * elfread.c (elf_symfile_segments): Likewise.
8473 (elf_symfile_segments): Likewise.
8474 * gdbtypes.c (copy_type_recursive): Likewise.
8475 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8476 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8477 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8479 * mt-tdep.c (mt_gdbarch_init): Likewise.
8480 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8482 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8483 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8484 * registry.c (registry_alloc_data): Likewise.
8485 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8486 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8487 * serial.c (serial_fdopen_ops): Likewise.
8488 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8490 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8491 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8494 2014-01-13 Tom Tromey <tromey@redhat.com>
8496 * defs.h (XMALLOC): Remove.
8497 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8498 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8499 * cli-out.c (struct ui_out *): Likewise.
8500 * cli/cli-dump.c (add_dump_command): Likewise.
8501 (add_dump_command): Likewise.
8502 * complaints.c (get_complaints): Likewise.
8503 (find_complaint): Likewise.
8504 * dwarf2-frame.c (execute_cfa_program): Likewise.
8505 * dwarf2read.c (abbrev_table_read_table): Likewise.
8506 * gdbarch.sh: Likewise.
8507 * gdbarch.c: Rebuild.
8508 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8509 * interps.c (interp_new): Likewise.
8510 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8511 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8512 * mi/mi-console.c (mi_console_file_new): Likewise.
8513 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8514 * mi/mi-out.c (mi_out_new): Likewise.
8515 * mi/mi-parse.c (mi_parse): Likewise.
8516 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8517 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8518 * observer.c (xalloc_observer_list_node): Likewise.
8519 * regcache.c (regcache_xmalloc_1): Likewise.
8520 * reggroups.c (reggroup_new): Likewise.
8521 (_initialize_reggroup): Likewise.
8522 * registry.c (register_data_with_cleanup): Likewise.
8523 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8524 * ser-base.c (serial_ttystate): Likewise.
8525 * ser-mingw.c (make_pipe_state): Likewise.
8526 * ser-pipe.c (pipe_open): Likewise.
8527 * serial.c (serial_open): Likewise.
8528 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8529 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8530 (tui_alloc_win_info): Likewise.
8531 (tui_add_content_elements): Likewise.
8532 * tui/tui-file.c (tui_file_new): Likewise.
8533 * tui/tui-out.c (tui_out_new): Likewise.
8534 * ui-file.c (mem_file_new): Likewise.
8535 * ui-out.c (push_level): Likewise.
8536 (make_cleanup_ui_out_end): Likewise.
8537 (append_header_to_list): Likewise.
8538 (ui_out_new): Likewise.
8539 * user-regs.c (user_reg_add_builtin): Likewise.
8541 2014-01-13 Tom Tromey <tromey@redhat.com>
8543 * defs.h (XZALLOC): Remove.
8544 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8545 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8546 (get_ada_tasks_inferior_data): Likewise.
8547 * auto-load.c (get_auto_load_pspace_data): Likewise.
8548 * auxv.c (get_auxv_inferior_data): Likewise.
8549 * bfd-target.c (target_bfd_reopen): Likewise.
8550 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8551 (deprecated_insert_raw_breakpoint): Likewise.
8552 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8553 * corelow.c (core_open): Likewise.
8554 * darwin-nat.c (darwin_check_new_threads): Likewise.
8555 (darwin_attach_pid): Likewise.
8556 * dummy-frame.c (dummy_frame_push): Likewise.
8557 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8558 * dwarf2loc.c (allocate_piece_closure): Likewise.
8559 * elfread.c (elf_symfile_segments): Likewise.
8560 * eval.c (ptrmath_type_p): Likewise.
8561 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8562 * gdbtypes.c (alloc_type_arch): Likewise.
8563 (alloc_type_instance): Likewise.
8564 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8565 * inf-child.c (inf_child_can_use_agent): Likewise.
8566 * inflow.c (get_inflow_inferior_data): Likewise.
8567 * infrun.c (save_infcall_suspend_state): Likewise.
8568 * jit.c (jit_reader_load): Likewise.
8569 (get_jit_objfile_data): Likewise.
8570 (get_jit_program_space_data): Likewise.
8571 (jit_object_open_impl): Likewise.
8572 (jit_symtab_open_impl): Likewise.
8573 (jit_block_open_impl): Likewise.
8574 (jit_frame_sniffer): Likewise.
8575 * linux-fork.c (add_fork): Likewise.
8576 * maint.c (make_command_stats_cleanup): Likewise.
8577 * objfiles.c (get_objfile_pspace_data): Likewise.
8578 * opencl-lang.c (struct lval_closure): Likewise.
8579 * osdata.c (osdata_start_osdata): Likewise.
8580 * progspace.c (new_address_space): Likewise.
8581 (add_program_space): Likewise.
8582 * remote-sim.c (get_sim_inferior_data): Likewise.
8583 * sh-tdep.c (sh_gdbarch_init): Likewise.
8584 * skip.c (Ignore): Likewise.
8585 (skip_delete_command): Likewise.
8586 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8587 (library_list_start_library): Likewise.
8588 (solib_aix_current_sos): Likewise.
8589 * solib-darwin.c (get_darwin_info): Likewise.
8590 (darwin_current_sos): Likewise.
8591 * solib-dsbt.c (get_dsbt_info): Likewise.
8592 * solib-ia64-hpux.c (new_so_list): Likewise.
8593 (ia64_hpux_get_solib_linkage_addr): Likewise.
8594 * solib-spu.c (append_ocl_sos): Likewise.
8595 (spu_current_sos): Likewise.
8596 * solib-svr4.c (get_svr4_info): Likewise.
8597 (svr4_keep_data_in_core): Likewise.
8598 (library_list_start_library): Likewise.
8599 (svr4_default_sos): Likewise.
8600 (svr4_read_so_list): Likewise.
8601 * solib-target.c (library_list_start_library): Likewise.
8602 (solib_target_current_sos): Likewise.
8603 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8604 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8605 * symfile.c (default_symfile_segments): Likewise.
8606 * target-descriptions.c (tdesc_data_init): Likewise.
8607 (tdesc_create_reg): Likewise.
8608 (struct tdesc_type *): Likewise.
8609 (tdesc_create_vector): Likewise.
8610 (tdesc_set_struct_size): Likewise.
8611 (struct tdesc_type *): Likewise.
8612 (tdesc_free_feature): Likewise.
8613 (tdesc_create_feature): Likewise.
8614 * windows-nat.c (windows_add_thread): Likewise.
8615 (windows_make_so): Likewise.
8616 * xml-support.c (gdb_xml_body_text): Likewise.
8617 (gdb_xml_create_parser_and_cleanup): Likewise.
8618 (xml_process_xincludes): Likewise.
8619 * xml-syscall.c (allocate_syscalls_info): Likewise.
8620 (syscall_create_syscall_desc): Likewise.
8622 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8624 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8625 function, with code from i386_stap_parse_special_token.
8626 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8627 (i386_stap_parse_special_token): Move code to the two functions
8630 2014-01-09 Pedro Alves <palves@redhat.com>
8631 Hui Zhu <hui@codesourcery.com>
8634 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8635 bp_err_string. Don't mark the location shlib_disabled if the
8636 error thrown wasn't a generic or memory error. Catch errors
8637 thrown while inserting breakpoints in overlayed code. Output
8638 error message of software breakpoints.
8639 * remote.c (remote_insert_breakpoint): If this breakpoint has
8640 target-side commands but this stub doesn't support Z0 packets,
8641 throw NOT_SUPPORTED_ERROR error.
8642 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8643 * target.h (target_insert_breakpoint): Extend comment.
8644 (target_insert_hw_breakpoint): Add comment.
8646 2014-01-08 Pedro Alves <palves@redhat.com>
8648 * remote.c (remote_add_thread): Add threads silently if starting
8650 (remote_notice_new_inferior): If in all-stop, and starting up,
8651 don't call notice_new_inferior.
8652 (get_current_thread): New function, factored out from ...
8653 (add_current_inferior_and_thread): ... this. Adjust.
8654 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8655 found any thread, then select the remote's current thread as GDB's
8658 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8660 * NEWS: Create a new section for the next release branch.
8661 Rename the section of the current branch, now that it has
8664 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8666 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8667 * version.in: Bump version to 7.7.50.DATE-cvs.
8669 2014-01-08 Yao Qi <yao@codesourcery.com>
8671 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8672 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8673 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8675 2014-01-08 Yao Qi <yao@codesourcery.com>
8677 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8678 return value of bfd_get_filename to symbol_file_add_from_bfd.
8680 2014-01-08 Pierre Muller <muller@sourceware.org>
8683 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8684 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8685 to prim_record_mininal_symbol_and_info.
8686 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8687 in call to prim_record_minimal_symbol_and_info.
8688 (read_pe_exported_syms): Set index field of section_data.
8690 2014-01-07 Andrew Pinski <apinski@cavium.com>
8692 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8693 * features/aarch64.c: Regenerate.
8695 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8697 * target.c (return_null): Define.
8698 (update_current_target): Use it instead of return_zero for
8699 functions that return a pointer.
8701 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8703 * source.c (add_path): Fix check for duplicated paths in the previously
8706 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8708 * ada-lang.c: Remove duplicated include statements.
8709 * alphabsd-nat.c: Ditto.
8710 * amd64-darwin-tdep.c: Ditto.
8711 * amd64fbsd-nat.c: Ditto.
8712 * auto-load.c: Ditto.
8714 * breakpoint.c: Ditto.
8716 * fork-child.c: Ditto.
8717 * gdb_usleep.c: Ditto.
8718 * i386-darwin-tdep.c: Ditto.
8719 * i386fbsd-nat.c: Ditto.
8721 * inferior.c: Ditto.
8723 * linux-nat.c: Ditto.
8724 * linux-tdep.c: Ditto.
8725 * m68kbsd-nat.c: Ditto.
8726 * m68klinux-nat.c: Ditto.
8727 * microblaze-tdep.c: Ditto.
8728 * mips-linux-tdep.c: Ditto.
8729 * mn10300-tdep.c: Ditto.
8730 * nto-tdep.c: Ditto.
8731 * opencl-lang.c: Ditto.
8733 * printcmd.c: Ditto.
8734 * regcache.c: Ditto.
8735 * remote-m32r-sdi.c: Ditto.
8739 * tilegx-linux-nat.c: Ditto.
8740 * tilegx-tdep.c: Ditto.
8741 * tracepoint.c: Ditto.
8743 * vaxbsd-nat.c: Ditto.
8744 * windows-nat.c: Ditto.
8745 * xtensa-tdep.c: Ditto.
8747 2014-01-07 Yao Qi <yao@codesourcery.com>
8749 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8751 2014-01-07 Yao Qi <yao@codesourcery.com>
8752 Joel Brobecker <brobecker@adacore.com>
8754 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8755 (pdc_write_regs): Likewise.
8756 (fetch_regs_kernel_thread): Likewise.
8757 (store_regs_kernel_thread): Likewise.
8759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8761 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8762 tagged type objects to their actual type.
8764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8766 * ada-valprint.c (print_field_values): Add "language" parameter.
8767 Update calls to print_field_values and print_variant_part.
8768 Pass new parameter "language" in call to val_print instead
8769 of "current_language". Replace call to ada_val_print by call
8771 (print_variant_part): Add "language" parameter.
8772 (ada_val_print_struct_union): Update call to print_field_values.
8774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8776 * ada-valprint.c (ui_memcpy): Delete.
8777 (ada_print_floating): Update documentation. Add empty line
8778 between between function documentation and implementation.
8779 Delete variable "buffer". Use ui_file_xstrdup in place of
8780 ui_file_put. Minor adjustments following this change.
8782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8784 * ada-valprint.c (ada_val_print_string): New function,
8785 extracted from ada_val_print_array.
8786 (ada_val_print_array): Replace extracted code by call
8787 to ada_val_print_string followed by a return. Move
8788 "else" branch to the function's top block.
8790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8792 * ada-valprint.c (ada_val_print_array): Move implementation
8793 down. Rename parameter "offset" and "val" into "offset_aligned"
8794 and "original_value" respectively. Add parameter "offset".
8796 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8798 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8799 re-organizing the code. Change the "???" message printed
8800 when target type is a TYPE_CODE_UNDEF into
8801 "<ref to undefined type>".
8803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8805 * ada-valprint.c (print_record): Delete, implementation inlined...
8806 (ada_val_print_struct_union): ... here. Remove call to
8807 ada_check_typedef in inlined implementation.
8809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8811 * ada-valprint.c (ada_val_print_gnat_array): New function,
8812 extracted from ada_val_print_1;
8813 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8814 (ada_val_print_flt, ada_val_print_struct_union)
8815 (ada_val_print_ref): Likewise.
8816 (ada_val_print_1): Delete variables i and elttype.
8817 Replace extracted-out code by call to corresponding
8820 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8822 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8824 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8826 * ada-valprint.c (ada_val_print_1): Replace calls to
8827 ada_val_print_1 by calls to val_print.
8829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8831 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8832 Update calls to self accordingly. Replace calls to c_val_print
8833 by calls to val_print.
8835 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8837 * ada-valprint.c (print_record): Delete declaration.
8838 (adjust_type_signedness, ada_val_print_1): Likewise.
8839 (ada_val_print): Move function implementation down.
8840 (print_variant_part, print_field_values, print_record):
8841 Move function implementation up.
8843 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8845 * python/py-type.c (typy_get_name): New function.
8846 (type_object_getset): Add entry for attribute "name".
8847 * NEWS: Add entry mentioning this new attribute.
8849 2014-01-07 Yao Qi <yao@codesourcery.com>
8851 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8854 2014-01-07 Yao Qi <yao@codesourcery.com>
8856 * gnu-nat.c (info_port_rights): Add qualifier const to
8859 2014-01-07 Yao Qi <yao@codesourcery.com>
8861 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8863 2014-01-07 Yao Qi <yao@codesourcery.com>
8865 * gnu-nat.c (make_inf) Update declaration.
8866 (make_inf): Make it static.
8867 (inf_set_traced): Likewise.
8868 (inf_port_to_thread, inf_task_died_status): Likewise.
8870 2014-01-07 Yao Qi <yao@codesourcery.com>
8872 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8874 2014-01-07 Yao Qi <yao@codesourcery.com>
8876 * gnu-nat.c (_initialize_gnu_nat): Declare.
8878 2014-01-07 Yao Qi <yao@codesourcery.com>
8880 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8882 (struct gdbarch_info) <byte_order>: Change type to
8884 <byte_order_for_code>: Likewise.
8885 * gdbarch.c, gdbarch.h: Regenerated.
8887 2014-01-06 Sasha Smundak <asmundak@google.com>
8889 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8891 2014-01-06 Tom Tromey <tromey@redhat.com>
8893 * doublest.c (convert_doublest_to_floatformat): Use const, not
8895 * somread.c (som_symtab_read): Likewise.
8897 2014-01-07 Hui Zhu <hui@codesourcery.com>
8899 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8900 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8901 (gdb_bfd_fopen): Ditto.
8902 (gdb_bfd_openr): Ditto.
8903 (gdb_bfd_openw): Ditto.
8904 (gdb_bfd_openr_iovec): Ditto.
8905 (gdb_bfd_fdopenr): Ditto.
8906 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8907 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8909 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8911 * symfile-mem.c (symbol_file_add_from_memory): Removed
8912 gdb_bfd_stash_filename.
8914 2014-01-03 Doug Evans <dje@google.com>
8916 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8919 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8921 Update year range in copyright notice of all files.
8923 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8925 * top.c (print_gdb_version): Set copyright year to 2014.
8927 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8929 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8931 For older changes see ChangeLog-2013.
8937 version-control: never