1 2014-06-06 Doug Evans <xdje42@gmail.com>
3 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5 (gdbscm_guile_version_is_at_least): Declare.
6 (gdbscm_scm_string_to_int): Declare.
7 * guile/guile.c (gdbscm_guile_major_version): New global.
8 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
9 (guile_datadir): New static global.
10 (gdbscm_guile_data_directory): New function.
11 (initialize_scheme_side): Update.
12 (misc_guile_functions): Add guile-data-directory.
13 (initialize_gdb_module): Fetch guile version number.
14 * guile/lib/gdb.scm: Remove call to add-to-load-path.
15 * guile/lib/gdb/init.scm (%initialize!): Ditto.
16 * guile/lib/gdb/boot.scm: Use guile-data-directory.
17 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
19 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
20 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
21 * guile/scm-value.c (gdbscm_value_to_string): Only call
22 scm_port_conversion_strategy if Guile version >= 2.0.6.
24 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
26 * main.c (print_gdb_help): Add -q and --silent.
28 2014-06-06 Gary Benson <gbenson@redhat.com>
30 * common/signals.c: Remove preprocessor conditionals for
31 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
33 * proc-events.c: Likewise.
35 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
37 * symfile.c (symfile_free_objfile): Remove restriction to
39 * symfile-mem.c (symbol_file_add_from_memory): Call
40 add_target_sections_of_objfile.
42 2014-06-05 Ludovic Courtès <ludo@gnu.org>
44 * guile/scm-value.c (gdbscm_history_append_x): Use
45 'vlscm_get_value_smob_arg_unsafe' instead of
48 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
51 * utils.c (printchar): Don't escape at all if quoter is NUL.
52 Update function documentation to clarify effect of parameter
54 * remote.c (escape_buffer): Pass '\\' as the quoter to
56 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
58 (mi_solib_unloaded): Same.
60 2014-06-05 Joel Brobecker <brobecker@adacore.com>
62 * development.sh: Delete.
63 * Makefile.in (config.status): Adjust dependency on development.sh.
64 * configure.ac: Adjust development.sh source call.
65 * configure: Regenerate.
67 2014-06-04 Doug Evans <xdje42@gmail.com>
69 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
71 (bpscm_make_breakpoint_smob): Initialize new members.
72 (gdbscm_create_breakpoint_x): Split into two ...
73 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
74 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
75 (scheme_function breakpoint_functions): Update.
76 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
77 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
80 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
83 * mem-break.c (z_type_supported): Return zero if
84 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
86 2014-06-04 Tom Tromey <tromey@redhat.com>
88 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
89 value_from_contents_and_address_unresolved.
90 (ada_template_to_fixed_record_type_1): Likewise.
91 (ada_which_variant_applies): Likewise.
92 * value.h (value_from_contents_and_address_unresolved): Declare.
93 * value.c (value_from_contents_and_address_unresolved): New
95 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
96 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
97 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
99 2014-06-04 Tom Tromey <tromey@redhat.com>
101 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
103 2014-06-04 Tom Tromey <tromey@redhat.com>
105 * procfs.c (procfs_attach): Make "args" const.
106 * windows-nat.c (windows_attach): Make "args" const.
107 * nto-procfs.c (procfs_attach): Make "args" const.
108 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
109 * go32-nat.c (go32_attach): Make "args" const.
110 * gnu-nat.c (gnu_attach): Make "args" const.
111 * darwin-nat.c (darwin_attach): Make "args" const.
112 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
113 * linux-nat.c (linux_nat_attach): Make "args" const.
114 * remote.c (extended_remote_attach_1, extended_remote_attach):
116 * target.h (struct target_ops) <to_attach>: Make "args" const.
117 (find_default_attach): Likewise.
118 * utils.c (parse_pid_to_attach): Make "args" const.
119 * utils.h (parse_pid_to_attach): Update.
121 2014-06-04 Tom Tromey <tromey@redhat.com>
123 * target-delegates.c: Rebuild.
124 * target.c (default_thread_address_space): New function.
125 (target_thread_address_space): Simplify.
126 * target.h (struct target_ops) <to_thread_address_space>: Add
129 2014-06-04 Doug Evans <xdje42@gmail.com>
131 * guile/scm-type.c (type_smob): Remove duplicate typedef.
133 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
135 * record-btrace.c: Include event-loop.h and inf-loop.h.
136 (record_btrace_resume_exec_dir)
137 (record_btrace_async_inferior_event_handler)
138 (record_btrace_handle_async_inferior_event): New.
139 (record_btrace_open): Create async event handler.
140 (record_btrace_close): Delete async event handler.
141 (record_btrace_resume): Set record_btrace_resume_exec_dir,
142 Mark async event handler.
143 (record_btrace_execution_direction): New.
144 (init_record_btrace_ops): Initialize to_execution_direction.
146 2014-06-03 Doug Evans <xdje42@gmail.com>
148 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
149 (gdbscm_make_parameter): Ditto.
151 2014-06-03 Doug Evans <dje@google.com>
153 * exec.c (exec_close_1): Call clear_section_table instead of
154 resize_section_table.
155 (clear_section_table): New function.
156 (resize_section_table): Make static. Rename arg num_added to
158 * exec.h (clear_section_table): Declare.
159 (resize_section_table): Delete.
160 * progspace.c (release_program_space): Call clear_section_table
161 instead of resize_section_table.
163 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
165 * NEWS (Python Scripting): Add entry about the new xmethods
168 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
170 * python/py-xmethods.c: New file.
171 * python/py-objfile.c (objfile_object): New field 'xmethods'.
172 (objfpy_dealloc): XDECREF on the new xmethods field.
173 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
175 (objfpy_get_xmethods): New function.
176 (objfile_getset): New entry 'xmethods'.
177 * python/py-progspace.c (pspace_object): New field 'xmethods'.
178 (pspy_dealloc): XDECREF on the new xmethods field.
179 (pspy_new, pspace_to_pspace_object): Initialize xmethods
181 (pspy_get_xmethods): New function.
182 (pspace_getset): New entry 'xmethods'.
183 * python/python-internal.h: Add declarations for new functions.
184 * python/python.c (_initialize_python): Invoke
185 gdbpy_initialize_xmethods.
186 * python/lib/gdb/__init__.py (xmethods): New
188 * python/lib/gdb/xmethod.py: New file.
189 * python/lib/gdb/command/xmethods.py: New file.
191 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
193 * eval.c (evaluate_subexp_standard): Call the xmethod if the
194 best match method returned by find_overload_match is an xmethod.
195 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
196 the best matching operator returned by find_overload_match is an
198 * valops.c: #include "extension.h".
199 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
200 Return void. The list of matching source methods is returned in
201 "fn_list" and a vector of matching debug method workers is
202 returned in "xm_worker_vec". Update all callers.
203 (value_find_oload_method_list): Likewise.
204 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
205 non-NULL, then the index of the best matching method in this
206 vector is returned. Update all callers.
207 (find_overload_match): Include xmethods while performing overload
210 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
212 * defs.h (enum lval_type): New enumerator "lval_xcallable".
213 * extension-priv.h (struct extension_language_ops): Add the
215 * extension.c (new_xmethod_worker, clone_xmethod_worker,
216 get_matching_xmethod_workers, get_xmethod_argtypes,
217 invoke_xmethod, free_xmethod_worker,
218 free_xmethod_worker_vec): New functions.
219 * extension.h: #include "common/vec.h".
220 New function declarations.
221 (struct xmethod_worker): New struct.
222 (VEC (xmethod_worker_ptr)): New vector type.
223 (xmethod_worker_ptr): New typedef.
224 (xmethod_worker_vec): Likewise.
225 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
227 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
228 (struct builtin_type): New field "xmethod".
229 * valarith.c (value_ptradd): Assert that the value argument is not
231 * valops.c (value_must_coerce_to_target): Return 0 for
232 lval_xcallable values.
233 * value.c (struct value): New field XM_WORKER in the field
235 (value_address, value_raw_address): Return 0 for lval_xcallable
237 (set_value_address): Assert that the value is not an
239 (value_free): Free the associated xmethod worker when freeing
240 lval_xcallable values.
241 (set_value_component_location): Assert that the WHOLE value is not
243 (value_of_xmethod, call_xmethod): New functions.
244 * value.h: Declare "struct xmethod_worker".
245 Declare new functions value_of_xmethod, call_xmethod.
247 2014-06-03 Joel Brobecker <brobecker@adacore.com>
248 Pedro Alves <palves@redhat.com>
251 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
252 New function, extracted from software_breakpoint_inserted_here_p.
253 (software_breakpoint_inserted_here_p): Replace factored out code
254 by call to find_non_raw_software_breakpoint_inserted_here.
255 (bp_target_info_copy_insertion_state): New function.
256 (bkpt_insert_location): Handle the case of a single-step
257 breakpoint already inserted at the same address.
258 (bkpt_remove_location): Handle the case of a single-step
259 breakpoint still inserted at the same address.
260 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
261 breakpoint already inserted at the same address.
262 (deprecated_remove_raw_breakpoint): Handle the case of a
263 non-raw breakpoint still inserted at the same address.
264 (find_single_step_breakpoint): New function, extracted from
265 single_step_breakpoint_inserted_here_p.
266 (find_single_step_breakpoint): New function,
267 factored out from single_step_breakpoint_inserted_here_p.
268 (single_step_breakpoint_inserted_here_p): Reimplement.
270 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
272 Pushed by Joel Brobecker <brobecker@adacore.com>
273 * source.c (show_substitute_path_command): Fix display of matching
276 2014-06-03 Gary Benson <gbenson@redhat.com>
278 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
280 2014-06-02 Doug Evans <xdje42@gmail.com>
282 Add parameter support for Guile.
283 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
284 (SUBDIR_GUILE_SRCS): Add scm-param.c.
285 (scm-param.o): New rule.
286 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
287 (gdbscm_misc_error): Declare.
288 (gdbscm_canonicalize_command_name): Declare.
289 (gdbscm_scm_to_host_string): Declare.
290 (gdbscm_scm_from_host_string): Declare.
291 (gdbscm_initialize_parameters): Declare.
292 * guile/guile.c (initialize_gdb_module): Call
293 gdbscm_initialize_parameters.
294 * guile/lib/gdb.scm: Export parameter symbols.
295 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
296 cmdscm_canonicalize_name and made public. All callers updated.
297 * guile/scm-exception.c (gdbscm_misc_error): New function.
298 * guile/scm-param.c: New file.
299 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
300 (gdbscm_scm_to_host_string): New function.
301 (gdbscm_scm_from_host_string): New function.
302 * scm-utils.c (gdbscm_gc_dup_argv): New function.
304 2014-06-02 Doug Evans <xdje42@gmail.com>
306 Add command support for Guile.
307 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
308 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
309 (scm-cmd.o): New rule.
310 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
311 (gdbscm_user_error_p): Declare.
312 (gdbscm_parse_command_name): Declare.
313 (gdbscm_valid_command_class_p): Declare.
314 (gdbscm_initialize_commands): Declare.
315 * guile/guile.c (initialize_gdb_module): Call
316 gdbscm_initialize_commands.
317 * guile/lib/gdb.scm: Export command symbols.
318 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
319 (throw-user-error): New function.
320 * guile/scm-cmd.c: New file.
321 * guile/scm-exception.c (user_error_symbol): New static global.
322 (gdbscm_user_error_p): New function.
323 (gdbscm_initialize_exceptions): Set user_error_symbol.
324 * scm-utils.c (gdbscm_gc_xstrdup): New function.
326 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
328 * top.c (command_loop): Handle comments here...
329 (command_line_input): ... not here.
331 2014-06-02 Doug Evans <xdje42@gmail.com>
333 Add progspace support for Guile.
334 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
335 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
336 (scm-progspace.o): New rule.
337 * guile/guile-internal.h (pspace_smob): New typedef.
338 (psscm_pspace_smob_pretty_printers): Declare.
339 (psscm_pspace_smob_from_pspace): Declare.
340 (psscm_scm_from_pspace): Declare.
341 * guile/guile.c (initialize_gdb_module): Call
342 gdbscm_initialize_pspaces.
343 * guile/lib/gdb.scm: Export progspace symbols.
344 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
346 (append-pretty-printer!): Ditto.
347 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
349 * guile/scm-progspace.c: New file.
351 2014-06-03 Alan Modra <amodra@gmail.com>
353 * ppc64-tdep.c (ppc64_standard_linkage8): New.
354 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
356 2014-06-02 Doug Evans <dje@google.com>
358 Add support for skeletonless type units.
359 * dwarf2read.c (struct dwarf2_per_objfile): New member
360 n_allocated_type_units.
361 (struct dwarf2_per_objfile) <tu_stats>: New member
362 nr_all_type_units_reallocs.
363 (create_signatured_type_table_from_index): Initialize
364 n_allocated_type_units
365 (create_all_type_units): Ditto.
366 (add_type_unit): Move up in file. New arg slot.
367 All callers updated. Increase space for all_type_units more
369 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
370 (lookup_dwo_signatured_type): Handle skeletonless TUs.
371 (lookup_dwp_signatured_type): Ditto.
372 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
374 (build_type_psymtabs_1): Leave type_unit_groups as
375 NULL if no TUs present.
376 (print_tu_stats): New function.
377 (process_skeletonless_type_unit): New function.
378 (process_dwo_file_for_skeletonless_type_units): New
380 (process_skeletonless_type_units): New function.
381 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
382 Call print tu_stats if debugging enabled.
384 2014-06-02 Pedro Alves <palves@redhat.com>
386 * breakpoint.c (build_target_command_list): Don't build a command
387 list if we have any duplicate location that isn't a dprintf.
389 2014-06-02 Pedro Alves <palves@redhat.com>
391 * breakpoint.c (dprintf_breakpoint_hit): New function.
392 (initialize_breakpoint_ops): Install it as dprintf's
393 breakpoint_hit method.
395 2014-06-02 Joel Brobecker <brobecker@adacore.com>
397 * source.c (substitute_path_rule_matches): Simplify using
398 filename_ncmp instead of FILENAME_CMP.
400 2014-06-02 Joel Brobecker <brobecker@adacore.com>
402 * source.c (substitute_path_rule_matches): Remove trailing spaces.
404 2014-06-01 Ludovic Courtès <ludo@gnu.org>
406 * configure.ac: When Guile is available, check for the
407 availability of 'scm_new_smob'.
408 * configure, config.h.in: Regenerate.
409 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
412 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
414 * frame.c (struct frame_info): Add stop_string field.
415 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
416 (get_prev_frame_always): Old content moved into
417 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
418 TRY_CATCH, handle MEMORY_ERROR exceptions.
419 (frame_stop_reason_string): New function definition.
420 * frame.h (unwind_stop_reason_to_string): Extend comment to
421 mention frame_stop_reason_string.
422 (frame_stop_reason_string): New function declaration.
423 * stack.c (frame_info): Switch to frame_stop_reason_string.
424 (backtrace_command_1): Switch to frame_stop_reason_string.
425 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
426 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
427 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
429 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
431 * frame.c (frame_stop_reason_string): Rename to ...
432 (unwind_stop_reason_to_string): this.
433 * frame.h (frame_stop_reason_string): Rename to ...
434 (unwind_stop_reason_to_string): this.
435 * stack.c (frame_info): Update call to frame_stop_reason_string.
436 (backtrace_command_1): Likewise.
437 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
438 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
440 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
442 * frame.c (remove_prev_frame): New function.
443 (get_prev_frame_if_no_cycle): Create / discard cleanup using
446 2014-05-29 Pedro Alves <palves@redhat.com>
448 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
449 and make it const. When a single-step decays to a continue,
450 clear 'step', not 'hw_step'. Pass whether the caller wanted
451 to step to user_visible_resume_ptid, not what we ask the
454 2014-05-29 Pedro Alves <palves@redhat.com>
456 * infrun.c (process_event_stop_test, handle_step_into_function)
457 (handle_step_into_function_backward): Adjust.
458 Don't set the even thread's stop_step and call stop_waiting before
459 calling end_stepping_range. Instead do that ...
460 (end_stepping_range): ... here. Take an ecs pointer parameter.
462 2014-05-29 Pedro Alves <palves@redhat.com>
464 * infrun.c (stop_stepping): Rename to ...
465 (stop_waiting): ... this.
466 (proceed): Update comment.
467 (process_event_stop_test, handle_inferior_event)
468 (handle_signal_stop, handle_step_into_function)
469 (handle_step_into_function_backward): Update.
471 2014-05-29 Pedro Alves <palves@redhat.com>
473 * infcall.c (run_inferior_call): Don't check whether the current
474 thread is running after the proceed call.
476 2014-05-29 Pedro Alves <palves@redhat.com>
477 Tom Tromey <tromey@redhat.com>
479 * NEWS: Mention "maint set target-async", "set mi-async", and that
480 background execution commands are now always available.
481 * target.h (target_async_permitted): Update comment.
482 * target.c (target_async_permitted, target_async_permitted_1):
484 (set_target_async_command): Rename to ...
485 (maint_set_target_async_command): ... this.
486 (show_target_async_command): Rename to ...
487 (maint_show_target_async_command): ... this.
488 (_initialize_target): Adjust.
489 * infcmd.c (prepare_execution_command): Make extern.
490 * inferior.h (prepare_execution_command): Declare.
491 * infrun.c (set_observer_mode): Leave target async alone.
492 * mi/mi-interp.c (mi_interpreter_init): Install
493 mi_on_sync_execution_done as sync_execution_done observer.
494 (mi_on_sync_execution_done): New function.
495 (mi_execute_command_input_handler): Don't print the prompt if we
496 just started a synchronous command with an async target.
497 (mi_on_resume): Check sync_execution before printing prompt.
498 * mi/mi-main.h (mi_async_p): Declare.
499 * mi/mi-main.c: Include gdbcmd.h.
500 (mi_async_p): New function.
501 (mi_async, mi_async_1): New globals.
502 (set_mi_async_command, show_mi_async_command, mi_async): New
504 (exec_continue): Call prepare_execution_command.
505 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
506 (mi_execute_async_cli_command): Use mi_async_p.
507 (_initialize_mi_main): Install "set mi-async". Make
508 "target-async" a deprecated alias.
510 2014-05-29 Pedro Alves <palves@redhat.com>
512 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
513 (_initialize_cli_interp): Adjust.
514 * event-loop.c: Include "observer.h".
515 (start_event_loop): Notify 'command_error' observers instead of
516 calling display_gdb_prompt. Remove FIXME comment.
517 * event-top.c (display_gdb_prompt): Remove call into the
519 * inf-loop.c: Include "observer.h".
520 (inferior_event_handler): Notify 'command_error' observers instead
521 of calling display_gdb_prompt.
522 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
523 observers instead of calling display_gdb_prompt.
524 * interps.c (interp_set): Don't call display_gdb_prompt.
525 (current_interp_display_prompt_p): Delete.
526 * interps.h (interp_prompt_p): Delete declaration.
527 (interp_prompt_p_ftype): Delete.
528 (struct interp_procs) <prompt_proc_p>: Delete field.
529 (current_interp_display_prompt_p): Delete declaration.
530 * mi-interp.c (mi_interpreter_prompt_p): Delete.
531 (_initialize_mi_interp): Adjust.
532 * tui-interp.c (tui_init): Install 'sync_execution_done' and
533 'command_error' observers.
534 (tui_on_sync_execution_done, tui_on_command_error): New
536 (tui_display_prompt_p): Delete.
537 (_initialize_tui_interp): Adjust.
539 2014-05-29 Pedro Alves <palves@redhat.com>
542 * cli/cli-interp.c: Include infrun.h and observer.h.
543 (cli_uiout, cli_interp): New globals.
544 (cli_on_signal_received, cli_on_end_stepping_range)
545 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
547 (cli_interpreter_init): Install them as 'end_stepping_range',
548 'signal_received' 'signal_exited', 'exited' and 'no_history'
550 (_initialize_cli_interp): Remove cli_interp local.
551 * infrun.c (handle_inferior_event): Call the several stop reason
552 observers instead of printing the stop reason directly.
553 (end_stepping_range): New function.
554 (print_end_stepping_range_reason, print_signal_exited_reason)
555 (print_exited_reason, print_signal_received_reason)
556 (print_no_history_reason): Make static, and add an uiout
557 parameter. Print to that instead of to CURRENT_UIOUT.
558 * infrun.h (print_end_stepping_range_reason)
559 (print_signal_exited_reason, print_exited_reason)
560 (print_signal_received_reason print_no_history_reason): New
562 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
564 <cli_uiout>: New field.
565 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
566 uiout for CLI output. Install 'signal_received',
567 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
569 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
570 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
571 (mi_on_no_history): New functions.
572 (ui_out_free_cleanup): Delete function.
573 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
574 instead use the one already stored in the MI interpreter data.
576 * tui/tui-interp.c: Include infrun.h and observer.h.
577 (tui_interp): New global.
578 (tui_on_signal_received, tui_on_end_stepping_range)
579 (tui_on_signal_exited, tui_on_exited)
580 (tui_on_no_history): New functions.
581 (tui_init): Install them as 'end_stepping_range',
582 'signal_received' 'signal_exited', 'exited' and 'no_history'
584 (_initialize_tui_interp): Delete tui_interp local.
586 2014-05-29 Pedro Alves <palves@redhat.com>
589 * linux-nat.c (linux_nat_resume_callback): Rename the second
590 parameter to 'except'. Skip LP if it points to EXCEPT.
591 (linux_nat_resume): Don't mark the event lwp as not stopped
592 before resuming sibling lwps. Instead ask
593 linux_nat_resume_callback to skip the event lwp. Mark it as not
594 stopped after actually resuming it.
595 (linux_handle_syscall_trap): Mark the lwp as not stopped after
597 (wait_lwp): Mark the lwp as stopped here.
598 (stop_wait_callback): Mark the lwp as not stopped right after
599 resuming it. Don't mark lwps as stopped here.
600 (linux_nat_filter_event): Mark the lwp as stopped earlier.
601 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
603 2014-05-29 Pedro Alves <palves@redhat.com>
606 * infrun.c (resume): Determine how much to resume depending on
607 whether the caller wanted a step, not whether we can hardware step
608 the target. Mark all threads that we intend to run as running,
609 unless we're calling an inferior function.
610 (normal_stop): If the thread is running an infcall, don't finish
612 * target.c (target_resume): Don't mark threads as running here.
614 2014-05-28 Joel Brobecker <brobecker@adacore.com>
616 * serial.c (_initialize_serial): Remove support for
617 the "set remotebaud" and "show remotebaud" commands.
618 * NEWS: Add entry documenting the removal of that command.
620 2014-05-28 Yao Qi <yao@codesourcery.com>
622 * charset.c: Fix typo in comments.
624 2014-05-27 Gary Benson <gbenson@redhat.com>
626 * utils.c (internal_vproblem): Prompt for a bug report.
628 2014-05-26 Andy Wingo <wingo@igalia.com>
630 * guile/scm-arch.c (arscm_mark_arch_smob):
631 * guile/scm-block.c (bkscm_mark_block_smob)
632 (bkscm_mark_block_syms_progress_smob):
633 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
634 * guile/scm-exception.c (exscm_mark_exception_smob):
635 * guile/scm-frame.c (frscm_mark_frame_smob):
636 * guile/scm-iterator.c (itscm_mark_iterator_smob):
637 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
638 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
639 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
640 (ppscm_mark_pretty_printer_worker_smob):
641 * guile/scm-symbol.c (syscm_mark_symbol_smob):
642 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
643 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
644 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
646 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
649 2014-05-26 Andy Wingo <wingo@igalia.com>
650 Doug Evans <xdje42@gmail.com>
652 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
653 empty_base_class. All uses updated.
654 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
655 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
657 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
658 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
659 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
660 (gdbscm_gsmob_has_property_p, add_property_name)
661 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
662 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
663 (gdb-object-has-property?, gdb-object-properties): Remove.
664 (gdb-object-kind): Renamed from gsmob-kind.
666 2014-05-26 Andy Wingo <wingo@igalia.com>
668 * configure.ac (try_guile_versions): Allow building with guile 2.2.
669 * configure: Regenerate.
671 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
673 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
675 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
677 * record-btrace.c (record_btrace_allow_memory_access): Remove.
678 (replay_memory_access_read_only, replay_memory_access_read_write)
679 (replay_memory_access_types, replay_memory_access)
680 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
681 (cmd_set_record_btrace, cmd_show_record_btrace)
682 (cmd_show_replay_memory_access): New.
683 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
684 (record_btrace_remove_breakpoint): Replace
685 record_btrace_allow_memory_access with replay_memory_access.
686 (_initialize_record_btrace): Add commands.
689 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
691 * aarch64-linux-nat.c (asm/ptrace.h): Include.
693 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
695 * MAINTAINERS (Write After Approval): Move self back from
698 2014-05-22 Pedro Alves <palves@redhat.com>
700 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
701 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
702 (disable_randomization, enum exec_direction_kind)
703 (execution_direction, stop_registers, start_remote)
704 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
705 (wait_for_inferior, normal_stop, get_last_target_status)
706 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
707 (insert_step_resume_breakpoint_at_sal)
708 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
709 (set_step_info, print_stop_event, signal_stop_state)
710 (signal_print_state, signal_pass_state, signal_stop_update)
711 (signal_print_update, signal_pass_update)
712 (update_signals_program_target, clear_exit_convenience_vars)
713 (displaced_step_dump_bytes, update_observer_mode)
714 (signal_catch_update, gdb_signal_from_command): Move
716 * infrun.h: ... to this new file.
717 * amd64-tdep.c: Include infrun.h.
718 * annotate.c: Include infrun.h.
719 * arch-utils.c: Include infrun.h.
720 * arm-linux-tdep.c: Include infrun.h.
721 * arm-tdep.c: Include infrun.h.
722 * break-catch-sig.c: Include infrun.h.
723 * breakpoint.c: Include infrun.h.
724 * common/agent.c: Include infrun.h instead of inferior.h.
725 * corelow.c: Include infrun.h.
726 * event-top.c: Include infrun.h.
727 * go32-nat.c: Include infrun.h.
728 * i386-tdep.c: Include infrun.h.
729 * inf-loop.c: Include infrun.h.
730 * infcall.c: Include infrun.h.
731 * infcmd.c: Include infrun.h.
732 * infrun.c: Include infrun.h.
733 * linux-fork.c: Include infrun.h.
734 * linux-nat.c: Include infrun.h.
735 * linux-thread-db.c: Include infrun.h.
736 * monitor.c: Include infrun.h.
737 * nto-tdep.c: Include infrun.h.
738 * procfs.c: Include infrun.h.
739 * record-btrace.c: Include infrun.h.
740 * record-full.c: Include infrun.h.
741 * remote-m32r-sdi.c: Include infrun.h.
742 * remote-mips.c: Include infrun.h.
743 * remote-notif.c: Include infrun.h.
744 * remote-sim.c: Include infrun.h.
745 * remote.c: Include infrun.h.
746 * reverse.c: Include infrun.h.
747 * rs6000-tdep.c: Include infrun.h.
748 * s390-linux-tdep.c: Include infrun.h.
749 * solib-irix.c: Include infrun.h.
750 * solib-osf.c: Include infrun.h.
751 * solib-svr4.c: Include infrun.h.
752 * target.c: Include infrun.h.
753 * top.c: Include infrun.h.
754 * windows-nat.c: Include infrun.h.
755 * mi/mi-interp.c: Include infrun.h.
756 * mi/mi-main.c: Include infrun.h.
757 * python/py-threadevent.c: Include infrun.h.
759 2014-05-22 Pedro Alves <palves@redhat.com>
761 * infrun.c (handle_inferior_event): Store the exit code for
762 --return-child-result here, instead of ...
763 (print_exited_reason): ... here.
765 2014-05-21 Pedro Alves <palves@redhat.com>
768 * gdbthread.h (struct thread_control_state): New field
770 * infrun.c (follow_fork): Copy the new thread control field to the
772 (clear_proceed_status_thread): Clear the new thread control field.
773 (proceed): Set the new thread control field.
774 * interps.h (command_interp): Declare.
775 * interps.c (command_interpreter): New global.
776 (command_interp): New function.
777 (interp_exec): Set `command_interpreter' while here.
778 * cli-out.c (cli_uiout_dtor): New function.
779 (cli_ui_out_impl): Install it.
780 * mi/mi-interp.c: Include cli-out.h.
781 (mi_cmd_interpreter_exec): Add comment.
782 (restore_current_uiout_cleanup): New function.
783 (ui_out_free_cleanup): New function.
784 (mi_on_normal_stop): If finishing an execution command started by
785 a CLI command, or any kind of breakpoint-like event triggered,
786 print the stop event to the output (CLI) stream.
787 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
789 2014-05-21 Pedro Alves <palves@redhat.com>
791 * cli/cli-cmds.c (list_command): Handle the first "list" after the
792 current source line having changed.
793 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
794 * infrun.c (normal_stop): Adjust call to
795 set_current_sal_from_frame.
796 * source.c (clear_lines_listed_range): New function.
797 (set_current_source_symtab_and_line, identify_source_line): Clear
798 the lines listed range.
799 (line_info): Handle the first "info line" after the current source
801 * stack.c (print_stack_frame): Remove center handling.
802 (set_current_sal_from_frame): Remove 'center' parameter. Don't
805 2014-05-21 Pedro Alves <palves@redhat.com>
807 * inf-child.c (inf_child_mourn_inferior): New function.
808 * inf-child.h (inf_child_mourn_inferior): New declaration.
809 * darwin-nat.c (darwin_mourn_inferior): Use
810 inf_child_mourn_inferior.
811 * gnu-nat.c (gnu_mourn_inferior): Likewise.
812 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
813 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
814 * nto-procfs.c (procfs_mourn_inferior): Likewise.
815 * windows-nat.c (windows_mourn_inferior): Likewise.
817 2014-05-21 Doug Evans <xdje42@gmail.com>
819 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
821 2014-05-21 Doug Evans <xdje42@gmail.com>
823 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
824 (gdbscm_out_of_range_error): Ditto.
825 (gdbscm_memory_error): Ditto.
826 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
827 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
828 (gdbscm_out_of_range_error): Update.
829 (gdbscm_memory_error): Update.
830 (gdbscm_scm_to_target_string_unsafe): Delete.
832 2014-05-21 Pedro Alves <palves@redhat.com>
834 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
836 (inf_child_open_target): New function.
837 (inf_child_open): Use inf_child_open_target to push the target
838 instead of erroring out.
839 (inf_child_disconnect, inf_child_close)
840 (inf_child_maybe_unpush_target): New functions.
841 (inf_child_target): Install inf_child_disconnect and
842 inf_child_close. Store a pointer to the returned object.
843 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
845 * target.c (auto_connect_native_target): New global.
846 (show_default_run_target): New function.
847 (find_default_run_target): Return NULL if automatically connecting
848 to the native target is disabled.
849 (_initialize_target): Install set/show auto-connect-native-target.
850 * NEWS: Mention "set auto-connect-native-target", and "target
852 * linux-nat.c (super_close): New global.
853 (linux_nat_close): Call super_close.
854 (linux_nat_add_target): Store a pointer to the base class's
856 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
857 inf_child_maybe_unpush.
858 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
860 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
861 the inferior. Use inf_child_maybe_unpush_target.
862 (inf_ttrace_attach): Don't push the target if it is already
864 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
865 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
866 after mourning the inferior. Use inf_child_maybe_unpush_target.
867 (darwin_attach_pid): Don't push the target if it is already
869 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
870 mourning the inferior. Use inf_child_maybe_unpush_target.
871 (gnu_detach): Use inf_child_maybe_unpush_target.
872 * go32-nat.c (go32_create_inferior): Don't push the target if it
874 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
875 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
876 (procfs_open): Rename to ...
877 (procfs_open_1): ... this. Add target_ops parameter. Adjust
878 comments. Can target_preopen before changing node. Call
879 inf_child_open_target to push the target explicitly.
880 (procfs_attach): Don't push the target if it is already pushed.
881 (procfs_detach): Use inf_child_maybe_unpush_target.
882 (procfs_create_inferior): Don't push the target if it is already
884 (nto_native_ops): New global.
885 (procfs_open): Reimplement.
886 (procfs_native_open): New function.
887 (init_procfs_targets): Install procfs_native_open as to_open of
888 "target native". Store a pointer to the "native" target in
890 * procfs.c (procfs_attach): Don't push the target if it is already
892 (procfs_detach): Use inf_child_maybe_unpush_target.
893 (procfs_mourn_inferior): Only unpush the target after mourning the
894 inferior. Use inf_child_maybe_unpush_target.
895 (procfs_init_inferior): Don't push the target if it is already
897 * windows-nat.c (do_initial_windows_stuff): Don't push the target
898 if it is already pushed.
900 2014-05-21 Pedro Alves <palves@redhat.com>
902 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
903 and "procfs" targets are now called "native" instead.
905 2014-05-21 Pedro Alves <palves@redhat.com>
907 * go32-nat.c (go32_open): Delete.
908 (go32_target): Don't override the to_open method.
910 2014-05-21 Pedro Alves <palves@redhat.com>
912 * nto-procfs.c (procfs_can_run): New function.
913 (nto_procfs_ops): New global.
914 (init_procfs_targets): New, based on procfs_target. Install
915 "target native" in addition to "target procfs".
916 (_initialize_procfs): Call init_procfs_targets instead of adding
919 2014-05-21 Pedro Alves <palves@redhat.com>
921 * windows-nat.c (windows_target): Don't override to_shortname,
922 to_longname or to_doc.
924 2014-05-21 Pedro Alves <palves@redhat.com>
926 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
929 2014-05-21 Pedro Alves <palves@redhat.com>
931 * darwin-nat.c (_initialize_darwin_inferior): Don't override
932 to_shortname, to_longname or to_doc.
934 2014-05-21 Pedro Alves <palves@redhat.com>
936 * go32-nat.c (go32_target): Don't override to_shortname,
937 to_longname or to_doc.
939 2014-05-21 Pedro Alves <palves@redhat.com>
941 * inf-child.c (inf_child_open): Remove mention of "child".
942 (inf_child_target): Rename target to "native" instead of "child".
944 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
946 * Makefile.in (SFILES): Delete "regset.c".
947 (COMMON_OBS): Delete "regset.o".
949 * regset.h (regset_alloc): Delete prototype.
951 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
953 * sparc-linux-tdep.c (sparc32_linux_gregset)
954 (sparc32_linux_fpregset): New static regset structures.
955 (sparc32_linux_init_abi): Drop dynamic regset allocations.
956 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
958 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
959 (sparc64_linux_fpregset): New static regset structures.
960 (sparc64_linux_init_abi): Drop dynamic regset allocations.
961 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
962 New static regset structures.
963 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
964 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
965 New static regset structures.
966 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
967 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
968 New static regset structures.
969 (sparc64obsd_init_abi): Drop dynamic regset allocations.
970 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
971 New static regset structures.
972 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
974 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
976 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
977 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
978 register maps ("regmaps") from "*regset" to "*regmap". Do this
979 for all regmap types and variables.
980 * sparc-linux-tdep.c (sparc32_linux_step_trap)
981 (sparc32_linux_supply_core_gregset)
982 (sparc32_linux_collect_core_gregset)
983 (sparc32_linux_supply_core_fpregset)
984 (sparc32_linux_collect_core_fpregset): Likewise.
985 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
986 (sparc_gregmap, sparc_fpregmap): ... these.
987 (sparc_supply_gregset, sparc_collect_gregset)
988 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
989 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
990 (_initialize_sparc_nat): Rename regmaps.
991 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
992 (sparc_gregmap, sparc_fpregmap): ... these.
993 (sparc_supply_gregset, sparc_collect_gregset)
994 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
995 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
997 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
998 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1000 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1002 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1003 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1004 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1006 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1007 (sparc32_bsd_fpregset): Rename to...
1008 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1009 (sparc32_bsd_fpregmap): ... these.
1010 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1011 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1012 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1013 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1014 (struct sparc_gregmap, struct sparc_fpregmap)
1015 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1016 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1017 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1018 (sparc32_supply_regset, sparc32_collect_gregset)
1019 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1021 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1022 (sparc64_linux_ptrace_gregmap): ... this.
1023 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1024 (_initialize_sparc64_linux_nat): Rename regmaps.
1025 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1026 (sparc64_linux_core_gregmap): ... this.
1027 (sparc64_linux_supply_core_gregset)
1028 (sparc64_linux_collect_core_gregset)
1029 (sparc64_linux_supply_core_fpregset)
1030 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1031 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1032 (sparc64_sol2_fpregset): Rename to...
1033 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1034 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1035 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1037 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1038 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1039 (sparc64_bsd_fpregset): Rename to...
1040 (struct sparc_gregmap, sparc64_sol2_gregmap)
1041 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1042 (sparc64_bsd_fpregmap): ... these.
1043 (sparc64_supply_gregset, sparc64_collect_gregset)
1044 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1046 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1047 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1048 (sparc64fbsd_gregmap): ... this.
1049 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1050 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1052 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1053 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1054 (sparc64nbsd_collect_fpregset): Likewise.
1055 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1056 (sparc64nbsd_gregmap): ... this.
1057 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1059 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1060 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1061 (sparc64obsd_gregmap): ... this.
1062 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1064 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1065 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1066 (sparc32nbsd_gregmap): ... this.
1067 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1072 * score-tdep.c (score7_linux_gregset): New static regset
1074 (score7_linux_regset_from_core_section): Remove dynamic regset
1076 (score_gdbarch_init): Drop allocation of tdep structure.
1077 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1083 (am33_regset_from_core_section): Remove dynamic regset
1086 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1088 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1089 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1091 (mips_linux_regset_from_core_section): Remove dynamic regset
1093 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1094 'gregset64', 'fpregset', and 'fpregset64'.
1095 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1096 deleted tdep fields.
1098 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1100 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1102 (amd64_regset_from_core_section): Remove dynamic regset
1104 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1106 (amd64obsd_regset_from_core_section): Remove dynamic regset
1108 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1110 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1111 x86-common regset supply function.
1112 * i386-tdep.c (i386_collect_gregset): Make static.
1113 (i386_gregset): New global regset structure.
1114 (i386_fpregset, i386_xstateregset): New static regset structures.
1115 (i386_regset_from_core_section): Remove dynamic regset
1117 (i386_gdbarch_init): Remove initialization of tdep fields
1118 'gregset', 'fpregset', and 'xstateregset'.
1119 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1120 'fpregset', and 'xstateregset'.
1121 (i386_collect_gregset): Remove prototype.
1122 (i386_gregset): New declaration.
1123 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1125 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1128 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1131 (arm_linux_vfpregset): New static regset structures.
1132 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1134 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1135 and 'vfpregset' fields.
1137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1139 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1140 (aarch64_linux_fpregset): New static regset structures.
1141 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1142 of regset structures.
1143 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1146 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148 * regset.h (struct regset): Remove gdbarch field.
1149 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1150 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1151 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1153 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1154 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1155 (ppc32_linux_vsxregset): Likewise.
1156 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1157 via the regcache instead of the regset.
1158 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1159 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1160 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1161 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1164 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1167 Constify structures.
1168 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1169 (alphanbsd_aout_gregset): Likewise.
1170 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1171 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1173 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1174 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1176 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1177 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1178 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1179 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1180 * m88k-tdep.c (m88k_gregset): Likewise.
1181 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1182 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1183 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1184 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1185 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1186 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1187 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1188 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1189 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1191 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1192 * sh-tdep.h (sh_corefile_gregset): Likewise.
1193 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1194 * vax-tdep.c (vax_gregset): Likewise.
1196 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1198 Fix TLS access for -static -pthread.
1199 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1200 (try_thread_db_load_1): Initialize it.
1201 (thread_db_get_thread_local_address): Call it if LM is zero.
1202 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1203 * target.h (struct target_ops) (to_get_thread_local_address): Add
1204 load_module_addr comment.
1206 2014-05-21 Pedro Alves <palves@redhat.com>
1208 * dcache.c (dcache_read_memory_partial): If reading the cache line
1209 fails, fallback to reading just the memory the caller wanted.
1211 2014-05-20 Doug Evans <dje@google.com>
1213 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1214 instead of get_current_arch.
1216 2014-05-20 Pedro Alves <palves@redhat.com>
1218 * NEWS: Mention that compare-sections now works with all targets.
1220 * remote.c (PACKET_qCRC): New enum value.
1221 (remote_verify_memory): Don't send qCRC if the target has no
1222 execution. Use packet_support/packet_ok. If the target doesn't
1223 support the qCRC packet, fallback to a deep memory copy.
1224 (compare_sections_command): Say "target image" instead of "remote
1226 (_initialize_remote): Add PACKET_qCRC to the list of config
1227 packets that have no associated command. Extend comment.
1228 * target.c (simple_verify_memory, default_verify_memory): New
1230 * target.h (struct target_ops) <to_verify_memory>: Default to
1231 default_verify_memory.
1232 (simple_verify_memory): New declaration.
1233 * target-delegates.c: Regenerate.
1235 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1237 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1239 2014-05-20 Hui Zhu <hui@codesourcery.com>
1240 Yao Qi <yao@codesourcery.com>
1243 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1244 and change address of sp and pc.
1246 2014-05-19 Tom Tromey <tromey@redhat.com>
1248 * gdbtypes.c (rank_function): Use XNEWVEC.
1249 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1251 2014-05-19 Doug Evans <dje@google.com>
1253 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1254 build_type_unit_groups and moved closer to only caller. Remove
1255 arguments. All references updated. Remove outdated .gdb_index
1257 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1258 build_type_psymtabs_1.
1260 2014-05-19 Doug Evans <dje@google.com>
1262 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1263 n_type_unit_groups, all_type_unit_groups. All uses removed.
1264 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1265 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1266 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1267 (add_type_unit_group_to_table): Delete.
1269 2014-05-19 Doug Evans <dje@google.com>
1271 * eval.c (evaluate_subexp_standard): Add some comments.
1273 2014-05-17 Doug Evans <xdje42@gmail.com>
1275 * progspace.c (remove_program_space): Delete, unused.
1276 * progspace.h (remove_program_space): Ditto.
1278 2014-05-17 Doug Evans <xdje42@gmail.com>
1280 * inferior.c (prune_inferiors): Fix comment.
1281 (remove_inferior_command): Call prune_program_spaces.
1283 2014-05-16 Doug Evans <dje@google.com>
1285 New command line option -D.
1287 * main.c (set_gdb_data_directory): New function.
1288 (captured_main): Recognize -D. Flag error for --data-directory "".
1289 Call set_gdb_data_directory.
1290 (print_gdb_help): Print --data-directory, -D.
1291 * main.h (set_gdb_data_directory): Declare.
1292 * top.c (staged_gdb_datadir): New static global.
1293 (set_gdb_datadir): Call set_gdb_data_directory
1294 (show_gdb_datadir): New function.
1295 (init_main): Update init of data-directory parameter.
1297 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1299 Import the "dirfd" gnulib module.
1300 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1301 * gnulib/aclocal.m4: Update.
1302 * gnulib/config.in: Update.
1303 * gnulib/configure: Update.
1304 * gnulib/import/Makefile.am: Update.
1305 * gnulib/import/Makefile.in: Update.
1306 * gnulib/import/dirfd.c: New.
1307 * gnulib/import/m4/dirfd.m4: New.
1308 * gnulib/import/m4/gnulib-cache.m4: Update.
1309 * gnulib/import/m4/gnulib-comp.m4: Update.
1311 2014-05-16 Pierre Muller <muller@sourceware.org>
1312 Yao Qi <yao@codesourcery.com>
1314 * valprint.c (print_wchar): Move the code on checking whether
1315 W is a printable wide char to the default branch of switch
1316 statement below. Call wchar_printable instead of gdb_iswprint.
1318 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1320 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1321 ldr.w and ldrd instructions.
1323 2014-05-15 Doug Evans <dje@google.com>
1325 * dwarf2read.c (read_structure_type): Delete outdated comments.
1327 2014-05-14 Tom Tromey <tromey@redhat.com>
1329 * macrocmd.c (print_macro_definition): Reindent.
1331 2014-05-13 Doug Evans <xdje42@gmail.com>
1333 * python/py-cmd.c (cmdpy_completer): Add comment.
1334 (completers): Make const.
1336 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1338 * infrun.c (resume): Remove should_resume (unused). Move up
1339 declaration of resume_ptid.
1341 2014-05-13 Tom Tromey <tromey@redhat.com>
1343 * language.h (unop_type_check): Remove.
1344 (binop_type_check): Don't declare.
1346 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1348 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1349 call to regcache_raw_collect.
1351 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1353 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1354 mi_console->quote as the quoting character.
1356 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1358 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1360 2014-04-29 Tom Tromey <tromey@redhat.com>
1362 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1363 "show debug varobj".
1365 2014-05-07 Kyle McMartin <kyle@redhat.com>
1367 Pushed by Joel Brobecker <brobecker@adacore.com>.
1368 * aarch64-tdep.c (aarch64_software_single_step): New function.
1369 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1370 with aarch64_software_single_step.
1372 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1376 2014-05-05 Keith Seitz <keiths@redhat.com>
1378 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1379 variable or history value is successfully parsed.
1381 2014-05-05 Yao Qi <yao@codesourcery.com>
1382 Pedro Alves <palves@redhat.com>
1384 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1385 address of blocks that intersects the requested range. Trim
1386 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1388 * ctf.c (ctf_xfer_partial): Likewise.
1390 2014-05-05 Yao Qi <yao@codesourcery.com>
1392 * printcmd.c (display_command): Remove the check to
1393 target_has_execution.
1395 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1397 * ppcobsd-nat.c: Include "obsd-nat.h".
1398 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1400 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1402 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1404 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1405 and 16-bit signed and unsigned arguments. Update comment.
1406 (stap_parse_probe_arguments): Extend code to handle such
1407 arguments. Use warning instead of complaint to notify about
1408 unrecognized bitness.
1410 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1412 PR breakpoints/16889
1413 * stap-probe.c (stap_parse_probe_arguments): Simplify
1414 check for non-prefixed probes (i.e., probes whose
1415 arguments do not start with "N@"). Always set the
1416 argument type to a sane value.
1418 2014-05-01 David Taylor <dtaylor@emc.com>
1420 * remote.c (compare_sections_command): Add -r option to compare
1421 all loadable read-only sections.
1423 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1425 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1426 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1428 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1429 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1430 Remove unused CORE_ADDR argument. Update all callers.
1432 2014-04-29 Pedro Alves <palves@redhat.com>
1434 * remote.c (struct packet_config) <detect>: Extend comment.
1435 (add_packet_config_cmd): Don't set the config's detect or support
1437 (init_all_packet_configs): Also initialize the config's 'detect'
1439 (reset_all_packet_configs_support): New function.
1440 (remote_open_1): Call reset_all_packet_configs_support instead of
1441 init_all_packet_configs.
1442 (_initialize_remote): Initialize all packet configs. Assert that
1443 all packets have an associated command, except a few known
1446 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1448 * dwarf2read.c (read_subrange_type): Handle dynamic
1449 DW_AT_lower_bound attributes.
1451 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1453 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1454 dynamic bounds before computing its upper bound.
1455 (ada_discrete_type_low_bound): Same as above with the lower bound.
1457 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1459 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1460 range types. Adjust the array handling implementation to
1461 take advantage of this change.
1462 (resolve_dynamic_range): New function, mostly extracted from
1463 resolve_dynamic_bounds.
1464 (resolve_dynamic_array): New function, mostly extracted from
1465 resolve_dynamic_bounds.
1466 (resolve_dynamic_bounds): Delete.
1467 (resolve_dynamic_type): Reimplement. Add handling of
1468 TYPE_CODE_RANGE types.
1470 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1472 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1473 handling of parallel ___XA types.
1475 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1477 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1478 unnecessary second call to static_unwrap_type.
1480 2014-04-27 Hui Zhu <hui@codesourcery.com>
1482 * stack.c (print_frame_info): Call do_gdb_disassembly with
1483 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1485 2014-04-26 Doug Evans <xdje42@gmail.com>
1487 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1489 2014-04-25 Pedro Alves <palves@redhat.com>
1492 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1493 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1494 and newline from built string.
1495 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1496 (linux_ptrace_attach_fail_reason): ... this.
1497 * linux-nat.c (linux_nat_attach): Adjust to use
1498 linux_ptrace_attach_fail_reason.
1500 2014-04-25 Pedro Alves <palves@redhat.com>
1502 * remote.c (struct remote_state): Remove multi_process_aware,
1503 non_stop_aware, cond_tracepoints, cond_breakpoints,
1504 breakpoint_commands, fast_tracepoints, static_tracepoints,
1505 install_in_trace, disconnected_tracing,
1506 enable_disable_tracepoints, string_tracing, and
1507 augmented_libraries_svr4_read fields.
1508 (remote_multi_process_p): Move further below in the file.
1509 (struct packet_config): Add comments.
1510 (update_packet_config): Delete function.
1511 (show_packet_config_cmd): Use packet_config_support.
1512 (add_packet_config_cmd): Use NULL as set callback.
1513 (packet_ok): "set remote foo-packet"-style commands no longer
1514 change config->supported -- adjust.
1515 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1516 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1517 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1518 (PACKET_QNonStop, PACKET_multiprocess_feature)
1519 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1520 (PACKET_DisconnectedTracing_feature)
1521 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1522 (set_remote_protocol_packet_cmd): Delete function.
1523 (packet_config_support, packet_support): New functions.
1524 (set_remote_protocol_Z_packet_cmd): Don't call
1525 update_packet_config.
1526 (remote_query_attached, remote_pass_signals)
1527 (remote_program_signals, remote_threads_info)
1528 (remote_threads_extra_info, remote_start_remote): Use
1530 (remote_start_remote): Use packet_config_support and
1532 (init_all_packet_configs): Set all packets to unknown support,
1533 instead of calling update_packet_config.
1534 (remote_check_symbols): Use packet_support.
1535 (remote_supported_packet): Unconditionally set the packet config's
1537 (remote_multi_process_feature, remote_non_stop_feature)
1538 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1539 (remote_breakpoint_commands_feature)
1540 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1541 (remote_install_in_trace_feature)
1542 (remote_disconnected_tracing_feature)
1543 (remote_enable_disable_tracepoint_feature)
1544 (remote_string_tracing_feature)
1545 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1546 (remote_protocol_features): Adjust to use remote_supported_packet
1547 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1548 "ConditionalTracepoints", "ConditionalBreakpoints",
1549 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1550 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1551 "EnableDisableTracepoints", and "tracenz".
1552 (remote_query_supported): Use packet_support.
1553 (remote_open_1): Adjust.
1554 (extended_remote_attach_1): Use packet_support. Switch on the
1555 result of packet_ok instead of checking whether the packet ended
1557 (remote_vcont_resume): Use packet_support.
1558 (remote_resume, remote_stop_ns, fetch_register_using_p)
1559 (remote_prepare_to_store, store_register_using_P)
1560 (check_binary_download, remote_write_bytes): Use packet_support.
1561 (remote_vkill): Use packet_support. Switch on the result of
1562 packet_ok instead of checking whether the packet ended up
1564 (extended_remote_supports_disable_randomization): Use
1566 (extended_remote_run): Switch on the result of packet_ok instead
1567 of checking whether the packet ended up disabled.
1568 (remote_insert_breakpoint, remote_remove_breakpoint)
1569 (remote_insert_watchpoint, remote_remove_watchpoint)
1570 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1572 (remote_search_memory): Use packet_config_support.
1573 (remote_get_thread_local_address, remote_get_tib_address)
1574 (remote_hostio_send_command, remote_can_execute_reverse): Use
1576 (remote_supports_cond_tracepoints)
1577 (remote_supports_cond_breakpoints)
1578 (remote_supports_fast_tracepoints)
1579 (remote_supports_static_tracepoints)
1580 (remote_supports_install_in_trace)
1581 (remote_supports_enable_disable_tracepoint)
1582 (remote_supports_string_tracing)
1583 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1584 the packet config says the feature is enabled or disabled.
1585 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1586 (remote_get_trace_status): Use packet_support.
1587 (remote_set_disconnected_tracing): Adjust to check whether the
1588 feature is enabled with packet_support.
1589 (remote_set_trace_buffer_size, remote_use_agent)
1590 (remote_can_use_agent, remote_supports_btrace): Use
1592 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1593 Use packet_config_support.
1594 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1595 the packet config says the feature is enabled or disabled.
1596 (set_range_stepping): Use packet_support.
1598 2014-04-25 Tom Tromey <tromey@redhat.com>
1600 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1603 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1605 * NEWS: Mention support for C99 variable length arrays.
1607 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1609 * ada-lang.c (standard_exc): Expand introductory comment.
1611 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1612 Walfred Tedeschi <walfred.tedeschi@intel.com>
1614 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1616 (amd64_linux_read_description): Add code to handle AVX512 xstate
1617 mask and return respective tdesc.
1618 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1619 and features/i386/x32-avx512-linux.c.
1620 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1621 (amd64_linux_core_read_description): Add code to handle AVX512
1622 xstate mask and return respective tdesc.
1623 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1624 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1626 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1627 (tdesc_amd64_avx512_linux): New prototype.
1628 (tdesc_x32_avx512_linux): Likewise.
1629 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1630 features/i386/x32-avx512.c.
1631 (amd64_ymm_avx512_names): New register names for pseudo
1633 (amd64_ymmh_avx512_names): New register names for raw registers
1635 (amd64_k_names): New register names for K registers.
1636 (amd64_zmmh_names): New register names for ZMM raw registers.
1637 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1638 (amd64_xmm_avx512_names): New register names for XMM16-31
1640 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1642 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1643 if feature is present.
1644 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1645 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1646 (AMD64_NUM_REGS): Adjust to new number of registers.
1647 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1648 registers supplied via XSTATE by AVX512 registers.
1649 (i386_linux_read_description): Add case for AVX512.
1650 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1651 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1652 (i386_linux_core_read_description): Add case for AVX512.
1653 (i386_linux_init_abi): Install supported register note section
1655 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1657 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1658 registers to be number of zmm7h + 1.
1659 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1660 * i386-tdep.c: Include features/i386/i386-avx512.c.
1661 (i386_zmm_names): Add ZMM pseudo register names array.
1662 (i386_zmmh_names): Add ZMM raw register names array.
1663 (i386_k_names): Add K raw register names array.
1664 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1665 registers. AVX512 has 16 more ZMM registers than there are YMM
1667 (i386_zmmh_regnum_p): Add function to look up register number of
1669 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1670 (i386_k_regnum_p): Likewise for K raw registers.
1671 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1672 registers added by AVX512.
1673 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1674 registers added by AVX512.
1675 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1677 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1678 (i386_pseudo_register_name): Add ZMM pseudo registers.
1679 (i386_zmm_type): Construct and return vector registers type for ZMM
1681 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1682 ZMM0-31 pseudo registers and K registers.
1683 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1684 and YMM16-31 registers from register cache.
1685 (i386_pseudo_register_write): Add code to write K, ZMM and
1687 (i386_register_reggroup_p): Add code to include/exclude AVX512
1688 registers in/from respective register groups.
1689 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1690 registers if feature is present in xcr0.
1691 (i386_gdbarch_init): Add code to initialize AVX512 feature
1692 variables in tdep structure, wire in pseudo registers and call
1693 initialize_tdesc_i386_avx512.
1694 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1696 (i386_regnum): Add AVX512 registers.
1697 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1698 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1699 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1700 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1702 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1703 (i386_ymm_avx512_regnum_p): Likewise.
1704 (i386_k_regnum_p): Likewise.
1705 (i386_zmm_regnum_p): Likewise.
1706 (i386_zmmh_regnum_p): Likewise.
1707 * i387-tdep.c : Update year in copyright notice.
1708 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1710 (XSAVE_YMM_AVX512_ADDR): New macro.
1711 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1713 (XSAVE_XMM_AVX512_ADDR): New macro.
1714 (xsave_avx512_k_offset): New table for K register offsets in
1716 (XSAVE_AVX512_K_ADDR): New macro.
1717 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1719 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1720 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1722 (i387_collect_xsave): Add code to collect AVX512 registers from
1724 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1725 of XMM16-31 registers.
1726 (I387_NUM_K_REGS): New define for number of K registers.
1727 (I387_K0_REGNUM): New define for K0 register number.
1728 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1729 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1730 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1732 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1733 (I387_XMM16_REGNUM): New define for XMM16 register number.
1734 (I387_YMM0_REGNUM): New define for YMM0 register number.
1735 (I387_KEND_REGNUM): New define for last K register number.
1736 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1737 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1739 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1741 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1743 * features/Makefile: Add AVX512 related files.
1744 * features/i386/32bit-avx512.xml: New file.
1745 * features/i386/64bit-avx512.xml: Likewise.
1746 * features/i386/amd64-avx512-linux.c: Likewise.
1747 * features/i386/amd64-avx512-linux.xml: Likewise.
1748 * features/i386/amd64-avx512.c: Likewise.
1749 * features/i386/amd64-avx512.xml: Likewise.
1750 * features/i386/i386-avx512-linux.c: Likewise.
1751 * features/i386/i386-avx512-linux.xml: Likewise.
1752 * features/i386/i386-avx512.c: Likewise.
1753 * features/i386/i386-avx512.xml: Likewise.
1754 * features/i386/x32-avx512-linux.c: Likewise.
1755 * features/i386/x32-avx512-linux.xml: Likewise.
1756 * features/i386/x32-avx512.c: Likewise.
1757 * features/i386/x32-avx512.xml: Likewise.
1758 * regformats/i386/amd64-avx512-linux.dat: New file.
1759 * regformats/i386/amd64-avx512.dat: Likewise.
1760 * regformats/i386/i386-avx512-linux.dat: Likewise.
1761 * regformats/i386/i386-avx512.dat: Likewise.
1762 * regformats/i386/x32-avx512-linux.dat: Likewise.
1763 * regformats/i386/x32-avx512.dat: Likewise.
1764 * NEWS: Add note about new support for AVX512.
1767 2014-04-23 Pedro Alves <palves@redhat.com>
1769 * breakpoint.c (insert_bp_location): Tolerate errors if the
1770 breakpoint is set in a user-loaded objfile.
1771 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1772 location is marked shlib_disabled. If the breakpoint is set in a
1773 user-loaded objfile is a GDB-side memory breakpoint, validate it
1774 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1775 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1777 * mem-break.c (memory_validate_breakpoint): New function.
1778 * objfiles.c (userloaded_objfile_contains_address_p): New
1780 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1781 * target.h (memory_validate_breakpoint): New declaration.
1783 2014-04-23 Pedro Alves <palves@redhat.com>
1785 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1786 the breakpoint is set in a shared library, only suppress
1787 errors for software breakpoints, not hardware breakpoints.
1789 2014-04-22 Pedro Alves <palves@redhat.com>
1791 * infrun.c (schedlock_applies): New function, factored out from
1792 find_thread_needs_step_over.
1793 (find_thread_needs_step_over): Use it.
1794 (switch_back_to_stepped_thread): Always clear trap_expected if the
1795 step over is finished. Return early if scheduler locking applies.
1796 Look for the stepping thread and a potential step-over thread with
1798 (currently_stepping_or_nexting_callback): Delete.
1800 2014-04-22 Nick Clifton <nickc@redhat.com>
1802 * NEWS: Mention that ARM sim now supports tracing.
1804 2014-04-22 Yao Qi <yao@codesourcery.com>
1806 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1808 * tracefile.c (tracefile_fetch_registers): ... it. New
1810 * tracefile.h (tracefile_fetch_registers): Declare.
1811 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1812 tracefile_fetch_registers.
1814 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1817 * windows-nat.c (thread_rec): Don't display a warning when
1818 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1819 fails for any reason, set th->suspended to -1, so that we don't
1820 try to resume such a thread. Also, don't return NULL in these
1821 cases, to avoid completely ruin the session due to "PC register is
1822 not available" error.
1823 (do_windows_fetch_inferior_registers): Check errors in
1824 GetThreadContext call.
1825 (windows_continue): Accept an additional argument KILLED; if not
1826 zero, ignore errors in the SetThreadContext call, since the
1827 inferior was killed and is shutting down.
1828 (windows_resume, get_windows_debug_event)
1829 (windows_create_inferior, windows_mourn_inferior)
1830 (windows_kill_inferior): All callers of windows_continue changed
1831 to adjust to its new calling sequence.
1833 2014-04-19 Yao Qi <yao@codesourcery.com>
1835 * ctf.c (ctf_open): Call post_create_inferior.
1837 2014-04-19 Yao Qi <yao@codesourcery.com>
1839 * ctf.c (handle_id): New static variable.
1840 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1841 value. Get the declaration of event "register" and get length
1842 of field "contents".
1844 2014-04-19 Yao Qi <yao@codesourcery.com>
1846 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1848 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1850 * valops.c (oload_method_static): Remove unnecessary argument
1851 METHOD. Update all callers.
1853 2014-04-18 Pedro alves <palves@redhat.com>
1854 Tom Tromey <tromey@redhat.com>
1857 * frame.c (get_prev_frame_1): Rename to ...
1858 (get_prev_frame_always): ... this, and make extern. Adjust.
1859 (skip_artificial_frames): Use get_prev_frame_always.
1860 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1861 (get_frame_unwind_stop_reason): Adjust to rename.
1862 * frame.h (get_prev_frame_always): Declare.
1863 * inline-frame.c: Include frame.h.
1864 (inline_frame_this_id): Use get_prev_frame_always.
1866 2014-04-18 Tristan Gingold <gingold@adacore.com>
1868 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1869 code by using bfd_mach_o_get_base_address.
1871 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1873 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1874 (spu_ax_pseudo_register_collect): New function.
1875 (spu_ax_pseudo_register_push_stack): Likewise.
1876 (spu_dwarf_reg_to_regnum): Likewise.
1877 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1879 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1881 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1882 Replace FRAME argument with FRAME_ID.
1883 * gdbarch.c, gdbarch.h: Regenerate.
1884 * findvar.c (default_value_from_register): Add GDBARCH argument;
1885 replace FRAME by FRAME_ID. No longer call get_frame_id.
1886 (value_from_register): Update call to gdbarch_value_from_register.
1887 * value.h (default_value_from_register): Update prototype.
1888 * s390-linux-tdep.c (s390_value_from_register): Update interface
1889 and call to default_value_from_register.
1890 * spu-tdep.c (spu_value_from_register): Likewise.
1892 * findvar.c (address_from_register): Remove TYPE argument.
1893 Do not call value_from_register; use gdbarch_value_from_register
1894 with null_frame_id instead.
1895 * value.h (address_from_register): Update prototype.
1896 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1897 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1898 address_from_register interface change.
1900 2014-04-17 Yao Qi <yao@codesourcery.com>
1902 * gdbtypes.h: Update comments to link to types and macros'
1905 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1907 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1909 2014-04-16 Keith Seitz <keiths@redhat.com>
1912 * dwarf2read.c (skip_one_die): Check that all relative-offset
1913 sibling DIEs fall within range of the current reader's buffer.
1914 (read_partial_die): Likewise.
1916 2014-04-16 Keith Seitz <keiths@redhat.com>
1919 * cp-namespace.c (lookup_symbol_file): If the type name of
1920 `this' is NULL, return immediately.
1922 2014-04-14 Keith Seitz <keiths@redhat.com>
1925 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1926 from symbol_matches_domain in symtab.c. All local callers
1927 of symbol_matches_domain updated.
1928 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1929 search STRUCT_DOMAIN.
1930 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1931 independently. standard_lookup will do that automatically.
1932 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1933 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1934 (cp_lookup_symbol_in_namespace): Likewise.
1935 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1936 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1937 may return a STRUCT_DOMAIN match.
1938 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1939 * cp-support.c: Include language.h.
1940 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1942 * psymtab.c (match_partial_symbol): Compare the requested
1943 domain with the symbol's domain directly.
1944 (lookup_partial_symbol): Likewise.
1945 * symtab.c (lookup_symbol_in_language): Explain when/why
1946 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1947 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1948 appropriate languages.
1949 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1950 and moved to ada-lang.c
1951 (lookup_block_symbol): Explain that this function only returns
1952 symbol matching the requested DOMAIN.
1953 Compare the requested domain with the symbol's domain directly.
1954 (iterate_over_symbols): Compare the requested domain with the
1955 symbol's domain directly.
1956 * symtab.h (symbol_matches_domain): Remove.
1958 2014-04-14 Tom Tromey <tromey@redhat.com>
1961 * c-exp.y (type_aggregate_p): New function.
1962 (qualified_name, classify_inner_name): Use it.
1963 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1964 and TYPE_TARGET_TYPE of an enum type.
1965 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1967 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1968 handle TYPE_DECLARED_CLASS.
1969 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1971 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1972 * valops.c (enum_constant_from_type): New function.
1973 (value_aggregate_elt): Use it.
1974 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1977 2014-04-14 Tom Tromey <tromey@redhat.com>
1979 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1980 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1982 * value.h (value_aggregate_elt): Update.
1984 2014-04-14 Tom Tromey <tromey@redhat.com>
1986 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1988 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1990 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1991 (evaluate_subexp_standard): Pass noside argument.
1992 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1993 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1994 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1995 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1996 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1998 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2000 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2001 points to a constant blob.
2003 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2005 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2006 property and store it as the high bound and flag the range accordingly.
2007 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2008 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2009 * gdbtypes.h (enum range_flags): New enum.
2010 (struct range_bounds): Add flags member.
2012 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2014 * c-typeprint.c (c_type_print_varspec_suffix): Added
2015 check for not yet resolved high bound. If unresolved, print
2016 "variable length" string to the console instead of random
2019 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2021 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2023 (ada_template_to_fixed_record_type_1): Likewise.
2024 (ada_to_fixed_type_1): Likewise.
2025 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2026 (cp_print_value): Likewise.
2027 * d-valprint.c (dynamic_array_type): Likewise.
2028 * findvar.c (address_of_variable): Likewise.
2029 * jv-valprint.c (java_value_print): Likewise.
2030 * valops.c (value_ind): Likewise.
2031 * value.c (coerce_ref): Likewise.
2033 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2035 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2036 value and retrieve the dynamic type size.
2038 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2040 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2041 passed to sizeof is dynamic evaluate the argument to compute the length.
2043 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2044 Joel Brobecker <brobecker@adacore.com>
2046 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2047 (dwarf2_evaluate_property): New function.
2048 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2049 * dwarf2read.c (attr_to_dynamic_prop): New function.
2050 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2052 * gdbtypes.c: Include dwarf2loc.h.
2053 (is_dynamic_type): New function.
2054 (resolve_dynamic_type): New function.
2055 (resolve_dynamic_bounds): New function.
2056 (get_type_length): New function.
2057 (check_typedef): Use get_type_length to compute type length.
2058 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2059 (TYPE_LOW_BOUND_KIND): New macro.
2060 (is_dynamic_type): New function prototype.
2061 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2062 to resolve dynamic properties of the type. Update comment.
2063 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2065 2014-04-14 Richard Henderson <rth@redhat.com>
2067 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2069 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2070 Doug Evans <xdje42@gmail.com>
2072 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2073 dereference TYPE_CODE_REF values.
2075 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2077 Revert the following changes due to regressions:
2079 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2080 (dwarf2_evaluate_property): New function.
2081 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2082 * dwarf2read.c (attr_to_dynamic_prop): New function.
2083 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2085 * gdbtypes.c: Include dwarf2loc.h.
2086 (is_dynamic_type): New function.
2087 (resolve_dynamic_type): New function.
2088 (resolve_dynamic_bounds): New function.
2089 (get_type_length): New function.
2090 (check_typedef): Use get_type_length to compute type length.
2091 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2092 (TYPE_LOW_BOUND_KIND): New macro.
2093 (is_dynamic_type): New function prototype.
2094 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2095 to resolve dynamic properties of the type. Update comment.
2096 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2098 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2099 passed to sizeof is dynamic evaluate the argument to compute the length.
2101 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2102 value and retrieve the dynamic type size.
2104 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2105 (ada_template_to_fixed_record_type_1): Likewise.
2106 (ada_to_fixed_type_1): Likewise.
2107 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2108 (cp_print_value): Likewise.
2109 * d-valprint.c (dynamic_array_type): Likewise.
2110 * eval.c (evaluate_subexp_with_coercion): Likewise.
2111 * findvar.c (address_of_variable): Likewise.
2112 * jv-valprint.c (java_value_print): Likewise.
2113 * valops.c (value_ind): Likewise.
2114 * value.c (coerce_ref): Likewise.
2116 * c-typeprint.c (c_type_print_varspec_suffix): Added
2117 check for not yet resolved high bound. If unresolved, print
2118 "variable length" string to the console instead of random
2121 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2122 property and store it as the high bound and flag the range accordingly.
2123 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2124 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2125 * gdbtypes.h (enum range_flags): New enum.
2126 (struct range_bounds): Add flags member.
2128 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2129 points to a constant blob.
2131 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2132 (evaluate_subexp_standard): Pass noside argument.
2133 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2134 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2135 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2136 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2137 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2139 2014-04-11 Keith Seitz <keiths@redhat.com>
2142 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2143 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2146 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2148 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2149 (evaluate_subexp_standard): Pass noside argument.
2150 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2151 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2152 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2153 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2154 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2156 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2158 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2159 points to a constant blob.
2161 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2163 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2164 property and store it as the high bound and flag the range accordingly.
2165 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2166 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2167 * gdbtypes.h (enum range_flags): New enum.
2168 (struct range_bounds): Add flags member.
2170 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2172 * c-typeprint.c (c_type_print_varspec_suffix): Added
2173 check for not yet resolved high bound. If unresolved, print
2174 "variable length" string to the console instead of random
2177 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2179 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2180 (ada_template_to_fixed_record_type_1): Likewise.
2181 (ada_to_fixed_type_1): Likewise.
2182 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2183 (cp_print_value): Likewise.
2184 * d-valprint.c (dynamic_array_type): Likewise.
2185 * eval.c (evaluate_subexp_with_coercion): Likewise.
2186 * findvar.c (address_of_variable): Likewise.
2187 * jv-valprint.c (java_value_print): Likewise.
2188 * valops.c (value_ind): Likewise.
2189 * value.c (coerce_ref): Likewise.
2191 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2193 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2194 value and retrieve the dynamic type size.
2196 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2198 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2199 passed to sizeof is dynamic evaluate the argument to compute the length.
2201 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2203 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2204 (dwarf2_evaluate_property): New function.
2205 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2206 * dwarf2read.c (attr_to_dynamic_prop): New function.
2207 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2209 * gdbtypes.c: Include dwarf2loc.h.
2210 (is_dynamic_type): New function.
2211 (resolve_dynamic_type): New function.
2212 (resolve_dynamic_bounds): New function.
2213 (get_type_length): New function.
2214 (check_typedef): Use get_type_length to compute type length.
2215 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2216 (TYPE_LOW_BOUND_KIND): New macro.
2217 (is_dynamic_type): New function prototype.
2218 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2219 to resolve dynamic properties of the type. Update comment.
2220 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2222 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2224 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2225 declaring high/low bounds and change uses accordingly. Call
2226 create_range_type instead of create_static_range_type.
2227 * gdbtypes.c (create_range_type): New function.
2228 (create_range_type): Convert bounds into struct bound_prop and pass
2229 them to create_range_type.
2230 * gdbtypes.h (struct bound_prop): New struct.
2231 (create_range_type): New function prototype.
2232 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2233 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2234 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2236 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2238 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2240 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2241 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2242 * ada-lang.c: All uses of create_range_type updated.
2243 * coffread.c: All uses of create_range_type updated.
2244 * dwarf2read.c: All uses of create_range_type updated.
2245 * f-exp.y: All uses of create_range_type updated.
2246 * m2-valprint.c: All uses of create_range_type updated.
2247 * mdebugread.c: All uses of create_range_type updated.
2248 * stabsread.c: All uses of create_range_type updated.
2249 * valops.c: All uses of create_range_type updated.
2250 * valprint.c: All uses of create_range_type updated.
2252 2014-04-10 Pedro Alves <palves@redhat.com>
2254 * breakpoint.c (single_step_breakpoints)
2255 (single_step_gdbarch): Move up in the file.
2256 (one_breakpoint_xfer_memory): New function, factored out from ...
2257 (breakpoint_xfer_memory): ... here. Also process single-step
2260 2014-04-09 Tristan Gingold <gingold@adacore.com>
2262 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2264 (darwin_decode_exception_message): Free port only after use.
2266 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2268 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2269 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2270 when setting the size of call_length.
2272 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2274 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2275 dereference TYPE_CODE_REF values.
2277 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2279 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2280 end of warning message.
2282 2014-04-03 Doug Evans <dje@google.com>
2284 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2285 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2287 2014-04-02 Alan Modra <amodra@gmail.com>
2289 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2290 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2291 (struct symbol_file_add_from_memory_args): Add size field.
2292 (find_vdso_size): New function.
2293 (add_vsyscall_page): Attempt to find vdso size.
2295 2014-04-01 Doug Evans <dje@google.com>
2297 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2299 2014-04-01 Tristan Gingold <gingold@adacore.com>
2301 * darwin-nat.c (darwin_encode_reply): Add prototype.
2302 (darwin_decode_exception_message): Reply to unknown inferiors.
2303 (darwin_decode_message): Handle message by id. Ignore message
2304 to unknown inferior.
2305 (darwin_wait): Discard unknown messages, add debug trace.
2307 2014-03-31 Doug Evans <dje@google.com>
2309 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2312 2014-03-31 Doug Evans <dje@google.com>
2314 New option "set print symbol-loading".
2316 * solib.c (solib_read_symbols): Only print symbol loading messages
2318 (solib_add): If symbol loading is in "brief" mode, notify user
2319 symbols are being loaded.
2320 (reload_shared_libraries_1): Ditto.
2321 * symfile.c (print_symbol_loading_off): New static global.
2322 (print_symbol_loading_brief): New static global.
2323 (print_symbol_loading_full): New static global.
2324 (print_symbol_loading_enums): New static global.
2325 (print_symbol_loading): New static global.
2326 (print_symbol_loading_p): New function.
2327 (symbol_file_add_with_addrs): Only print symbol loading messages
2329 (_initialize_symfile): Register "print symbol-loading" set/show
2331 * symfile.h (print_symbol_loading_p): Declare.
2333 2014-03-30 Doug Evans <xdje42@gmail.com>
2335 * infrun.c (set_last_target_status): New function.
2336 (handle_inferior_event): Call it.
2338 2014-03-30 Doug Evans <xdje42@gmail.com>
2340 * inferior.h (enum stop_kind): Improve comment.
2342 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2344 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2345 a reference, strip the reference layer before calling
2346 the lang_ops value_has_mutated callback.
2348 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2350 Remove some globals from our parser.
2351 * language.c (unk_lang_parser): Add "struct parser_state"
2353 * language.h (struct language_defn) <la_parser>: Likewise.
2354 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2355 (initialize_expout): Add "struct parser_state" argument.
2356 Rewrite function to use the parser state.
2357 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2358 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2359 write_exp_elt_longcst, write_exp_elt_dblcst,
2360 write_exp_elt_decfloatcst, write_exp_elt_type,
2361 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2362 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2363 write_dollar_variable): Likewise.
2364 (parse_exp_in_context_1): Use parser state.
2365 (insert_type_address_space): Add "struct parser_state" argument.
2367 (increase_expout_size): New function.
2368 * parser-defs.h: Forward declare "struct language_defn" and
2369 "struct parser_state".
2370 (expout, expout_size, expout_ptr): Remove extern declarations.
2371 (parse_gdbarch, parse_language): Rewrite macro declarations to
2372 accept the parser state.
2373 (struct parser_state): New struct.
2374 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2375 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2376 write_exp_elt_decfloatcst, write_exp_elt_type,
2377 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2378 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2379 write_exp_msymbol, write_dollar_variable,
2380 mark_struct_expression, insert_type_address_space): Add "struct
2381 parser_state" argument.
2382 (increase_expout_size): New function.
2383 * utils.c (do_clear_parser_state): New function.
2384 (make_cleanup_clear_parser_state): Likewise.
2385 * utils.h (make_cleanup_clear_parser_state): New function
2387 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2388 Update calls to write_exp* in order to pass the parser state.
2389 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2390 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2391 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2392 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2393 * stap-probe.c (stap_parse_register_operand): Likewise.
2394 (stap_parse_single_operand): Likewise.
2395 (stap_parse_argument_1): Likewise.
2396 (stap_parse_argument): Use parser state.
2397 * stap-probe.h: Include "parser-defs.h".
2398 (struct stap_parse_info) <pstate>: New field.
2399 * c-exp.y (parse_type): Rewrite to use parser state.
2400 (yyparse): Redefine to c_parse_internal.
2401 (pstate): New global variable.
2402 (parse_number): Add "struct parser_state" argument.
2403 (write_destructor_name): Likewise.
2404 (type_exp): Update calls to write_exp* and similars in order to
2406 (exp1, exp, variable, qualified_name, space_identifier,
2407 typename, typebase): Likewise.
2408 (write_destructor_name, parse_number, lex_one_token,
2409 classify_name, classify_inner_name, c_parse): Add "struct
2410 parser_state" argument. Update function to use parser state.
2411 * c-lang.h: Forward declare "struct parser_state".
2412 (c_parse): Add "struct parser_state" argument.
2413 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2414 (yyparse): Redefine macro to ada_parse_internal.
2415 (pstate): New variable.
2416 (write_int, write_object_renaming, write_var_or_type,
2417 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2418 type_int, type_long, type_long_long, type_float, type_double,
2419 type_long_double, type_char, type_boolean, type_system_address):
2420 Add "struct parser_state" argument.
2421 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2422 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2423 var_or_type, aggregate, aggregate_component_list,
2424 positional_list, others, component_group,
2425 component_associations): Update calls to write_exp* and similar
2426 functions in order to use parser state.
2427 (ada_parse, write_var_from_sym, write_int,
2428 write_exp_op_with_string, write_object_renaming,
2429 find_primitive_type, write_selectors, write_ambiguous_var,
2430 write_var_or_type, write_name_assoc, type_int, type_long,
2431 type_long_long, type_float, type_double, type_long_double,
2432 type_char, type_boolean, type_system_address): Add "struct
2433 parser_state" argument. Adjust function to use parser state.
2434 * ada-lang.c (parse): Likewise.
2435 * ada-lang.h: Forward declare "struct parser_state".
2436 (ada_parse): Add "struct parser_state" argument.
2437 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2438 calls to both functions.
2439 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2441 (yyparse): Redefine macro to f_parse_internal.
2442 (pstate): New variable.
2443 (parse_number): Add "struct parser_state" argument.
2444 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2445 and similars in order to use parser state.
2446 (parse_number): Adjust code to use parser state.
2448 (f_parse): New function.
2449 * f-lang.h: Forward declare "struct parser_state".
2450 (f_parse): Add "struct parser_state" argument.
2451 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2453 (yyparse): Redefine macro for java_parse_internal.
2454 (pstate): New variable.
2455 (push_expression_name, push_expression_name, insert_exp): Add
2456 "struct parser_state" argument.
2457 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2458 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2459 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2460 PostIncrementExpression, PostDecrementExpression,
2461 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2462 UnaryExpressionNotPlusMinus, CastExpression,
2463 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2464 RelationalExpression, EqualityExpression, AndExpression,
2465 ExclusiveOrExpression, InclusiveOrExpression,
2466 ConditionalAndExpression, ConditionalOrExpression,
2467 ConditionalExpression, Assignment, LeftHandSide): Update
2468 calls to write_exp* and similars in order to use parser state.
2469 (parse_number): Ajust code to use parser state.
2471 (java_parse): New function.
2472 (push_variable): Add "struct parser_state" argument. Adjust
2473 code to user parser state.
2474 (push_fieldnames, push_qualified_expression_name,
2475 push_expression_name, insert_exp): Likewise.
2476 * jv-lang.h: Forward declare "struct parser_state".
2477 (java_parse): Add "struct parser_state" argument.
2478 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2480 (yyparse): Redefine macro to m2_parse_internal.
2481 (pstate): New variable.
2482 (type_exp, exp, fblock, variable, type): Update calls to
2483 write_exp* and similars to use parser state.
2485 (m2_parse): New function.
2486 * m2-lang.h: Forward declare "struct parser_state".
2487 (m2_parse): Add "struct parser_state" argument.
2488 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2489 * objc-lang.h: Forward declare "struct parser_state".
2490 (end_msglist): Add "struct parser_state" argument.
2491 * p-exp.y (parse_type): Rewrite macro to use parser state.
2492 (yyparse): Redefine macro to pascal_parse_internal.
2493 (pstate): New variable.
2494 (parse_number): Add "struct parser_state" argument.
2495 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2496 write_exp* and similars in order to use parser state.
2497 (parse_number, yylex): Adjust code to use parser state.
2498 (pascal_parse): New function.
2499 * p-lang.h: Forward declare "struct parser_state".
2500 (pascal_parse): Add "struct parser_state" argument.
2501 * go-exp.y (parse_type): Rewrite macro to use parser state.
2502 (yyparse): Redefine macro to go_parse_internal.
2503 (pstate): New variable.
2504 (parse_number): Add "struct parser_state" argument.
2505 (type_exp, exp1, exp, variable, type): Update calls to
2506 write_exp* and similars in order to use parser state.
2507 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2508 to use parser state.
2509 (go_parse): Likewise.
2510 * go-lang.h: Forward declare "struct parser_state".
2511 (go_parse): Add "struct parser_state" argument.
2513 2014-03-27 Doug Evans <dje@google.com>
2515 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2517 2014-03-27 Doug Evans <dje@google.com>
2519 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2520 Remove argument abbrev_section. All callers updated.
2522 2014-03-27 Doug Evans <dje@google.com>
2524 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2525 addr_base, ranges_base.
2527 2014-03-26 Keith Seitz <keiths@redhat.com>
2529 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2530 types, not VAR_DOMAIN.
2532 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2534 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2536 * features/nios2-linux.c: Regenerated.
2537 * features/nios2.c: Regenerated.
2539 2014-03-25 Pedro Alves <palves@redhat.com>
2541 * cli/cli-script.c (script_from_file): Force the interpreter to
2544 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2546 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2547 small stack allocation.
2549 2014-03-24 Tristan Gingold <gingold@adacore.com>
2551 * darwin-nat.c (exc_server): Remove unused prototype.
2552 (darwin_dump_message): Correctly display data on x86_64.
2553 (darwin_encode_reply): Fix style.
2554 Add comments and fix indentation.
2556 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2558 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2560 2014-03-22 Doug Evans <xdje42@gmail.com>
2562 * infcmd.c: Whitespace fixes.
2563 (interrupt_command): Merge two function comments into one.
2565 2014-03-22 Doug Evans <xdje42@gmail.com>
2567 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2570 2014-03-22 Yao Qi <yao@codesourcery.com>
2572 * remote.c (target_read_live_memory): Remove.
2573 (memory_xfer_live_readonly_partial): Rename it to
2574 remote_xfer_live_readonly_partial. Remove argument 'object'.
2575 All callers updated. Call remote_read_bytes_1
2576 instead of target_read_live_memory.
2577 * tracepoint.c (set_traceframe_number): Remove.
2578 (make_cleanup_restore_traceframe_number): Likewise .
2579 * tracepoint.h (set_traceframe_number): Remove declaration.
2580 (make_cleanup_restore_traceframe_number): Likewise.
2582 2014-03-22 Yao Qi <yao@codesourcery.com>
2584 * remote.c (remote_read_bytes): Move code on reading from the
2586 (remote_read_bytes_1): ... here. New function.
2588 2014-03-22 Yao Qi <yao@codesourcery.com>
2590 * ctf.c (ctf_xfer_partial): Check the return value of
2591 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2592 return TARGET_XFER_UNAVAILABLE.
2593 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2594 * target.c (target_read_live_memory): Move it to remote.c.
2595 (memory_xfer_live_readonly_partial): Likewise.
2596 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2597 * remote.c (target_read_live_memory): Moved from target.c.
2598 (memory_xfer_live_readonly_partial): Likewise.
2599 (remote_read_bytes): Factored out from
2600 memory_xfer_partial_1.
2602 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2604 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2607 2014-03-21 Pedro Alves <palves@redhat.com>
2609 * infrun.c (normal_stop): Extend comment.
2611 2014-03-21 Hui Zhu <hui@codesourcery.com>
2612 Pedro Alves <palves@redhat.com>
2614 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2616 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2617 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2618 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2620 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2622 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2623 `z' formatted output modifier.
2625 2014-03-20 Tom Tromey <tromey@redhat.com>
2626 Sergio Durigan Junior <sergiodj@redhat.com>
2628 * probe.c (parse_probes): Turn assert into an ordinary error.
2629 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2630 exceptions when parsing probes. Rearrange the code for clarity.
2632 2014-03-20 Tom Tromey <tromey@redhat.com>
2635 * top.c (execute_command): Only dispatch events if the command
2638 2014-03-20 Tom Tromey <tromey@redhat.com>
2641 * infcall.c: Include event-top.h.
2642 (run_inferior_call): Call async_disable_stdin if needed.
2644 2014-03-20 Pedro Alves <palves@redhat.com>
2646 * infrun.c (prepare_to_proceed): Delete.
2647 (thread_still_needs_step_over): New function.
2648 (find_thread_needs_step_over): New function.
2649 (proceed): If the current thread needs a step-over, set its
2650 steping_over_breakpoint flag. Adjust to use
2651 find_thread_needs_step_over instead of prepare_to_proceed.
2652 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2653 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2655 (switch_back_to_stepped_thread): Step over breakpoints of all
2656 threads not the stepping thread, before switching back to the
2659 2014-03-20 Pedro Alves <palves@redhat.com>
2661 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2663 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2664 * infrun.c (saved_singlestep_ptid)
2665 (stepping_past_singlestep_breakpoint): Delete.
2666 (resume): Remove stepping_past_singlestep_breakpoint handling.
2667 (proceed): Store the prev_pc of the stepping thread too.
2668 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2670 (enum infwait_states): Delete infwait_thread_hop_state.
2671 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2673 (handle_inferior_event): Adjust.
2674 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2675 handling and the thread-hop code. Before removing single-step
2676 breakpoints, check whether the thread hit a single-step breakpoint
2677 of another thread. If it did, the trap is not a random signal.
2678 (switch_back_to_stepped_thread): If the event thread hit a
2679 single-step breakpoint, unblock it before switching to the
2680 stepping thread. Handle the case of the stepped thread having
2682 (keep_going): Handle the case of the current thread moving past a
2683 single-step breakpoint.
2685 2014-03-20 Pedro Alves <palves@redhat.com>
2688 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2689 are being stepped over.
2690 (breakpoint_address_match): Make extern.
2691 * breakpoint.h (breakpoint_address_match): New declaration.
2692 * inferior.h (stepping_past_instruction_at): New declaration.
2693 * infrun.c (struct step_over_info): New type.
2694 (step_over_info): New global.
2695 (set_step_over_info, clear_step_over_info)
2696 (stepping_past_instruction_at): New functions.
2697 (handle_inferior_event): Clear the step-over info when
2698 trap_expected is cleared.
2699 (resume): Remove now stale comment.
2700 (clear_proceed_status): Clear step-over info.
2701 (proceed): Adjust step-over handling to set or clear the step-over
2702 info instead of removing all breakpoints.
2703 (handle_signal_stop): When setting up a thread-hop, don't remove
2705 (stop_stepping): Clear step-over info.
2706 (keep_going): Adjust step-over handling to set or clear step-over
2707 info and then always inserting breakpoints, instead of removing
2708 all breakpoints when stepping over one.
2710 2014-03-20 Pedro Alves <palves@redhat.com>
2712 * infrun.c (previous_inferior_ptid): Adjust comment.
2713 (deferred_step_ptid): Delete.
2714 (infrun_thread_ptid_changed, prepare_to_proceed)
2715 (init_wait_for_inferior): Adjust.
2716 (handle_signal_stop): Delete deferred_step_ptid handling.
2718 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2721 * defs.h (sync_quit_force_run): New declaration.
2722 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2723 * event-top.c (async_sigterm_handler): New declaration.
2724 (async_sigterm_token): New variable.
2725 (async_init_signals): Create also async_sigterm_token.
2726 (async_sigterm_handler): New function.
2727 (sync_quit_force_run): New variable.
2728 (handle_sigterm): Replace quit_force call by other calls.
2729 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2731 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2733 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2734 offset into SPE pseudo registers.
2736 2014-03-18 Pedro Alves <palves@redhat.com>
2739 * inferior.h (print_stop_event): Declare.
2740 * infrun.c (print_stop_event): New, factored out from ...
2741 (normal_stop): ... this.
2742 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2743 of bpstat_print/print_stack_frame.
2745 2014-03-17 Tom Tromey <tromey@redhat.com>
2747 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2749 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2751 * ada-lang.c (decode_constrained_packed_array): Perform a
2752 minimal coercion for reference with coerce_ref instead of
2755 2014-03-17 Tristan Gingold <gingold@adacore.com>
2757 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2758 (darwin_solib_create_inferior_hook): Emit a warning if version
2761 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2763 * python/py-value.c (get_field_flag): Cast flag_name argument to
2764 PyObject_GetAttrString to support Python 2.4.
2766 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2768 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2769 (Global Maintainers): Remove Jan Kratochvil.
2771 2014-03-14 Pedro Alves <palves@redhat.com>
2773 * inferior.h (terminal_ours_for_output): Rename to ...
2774 (child_terminal_ours_for_output): ... this.
2775 (terminal_save_ours): Rename to ...
2776 (child_terminal_save_ours): ... this.
2777 (terminal_ours): Rename to ...
2778 (child_terminal_ours): ... this.
2779 (terminal_inferior): Rename to ...
2780 (child_terminal_inferior): ... this.
2781 (terminal_init_inferior): Rename to ...
2782 (child_terminal_init_inferior): ... this.
2783 (terminal_init_inferior_with_pgrp): Rename to ...
2784 (child_terminal_init_inferior_with_pgrp): ... this.
2785 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2786 (child_terminal_init_with_pgrp): ... this.
2787 (terminal_save_ours): Rename to ...
2788 (child_terminal_save_ours): ... this.
2789 (terminal_init_inferior): Rename to ...
2790 (child_terminal_init): ... this. Adjust.
2791 (terminal_inferior): Rename to ...
2792 (child_terminal_inferior): ... this.
2793 (terminal_ours_for_output): Rename to ...
2794 (child_terminal_ours_for_output): ... this. Adjust.
2795 (terminal_ours): Rename to ...
2796 (child_terminal_ours): ... this.
2797 (terminal_ours_1): Rename to ...
2798 (child_terminal_ours_1): ... this. Adjust.
2799 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2800 * windows-nat.c (do_initial_windows_stuff): Adjust.
2801 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2802 (gnu_terminal_init): ... this. Adjust.
2803 (gnu_target): Adjust.
2804 * inf-child.c (inf_child_target): Adjust.
2806 2014-03-13 Doug Evans <xdje42@gmail.com>
2809 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2812 2014-03-13 Doug Evans <xdje42@gmail.com>
2814 * value.c (record_latest_value): Call release_value_or_incref
2815 instead of release_value.
2817 2014-03-13 Pedro Alves <palves@redhat.com>
2819 * procfs.c (procfs_target): Don't override to_shortname,
2820 to_longname or to_doc.
2822 2014-03-13 Pedro Alves <palves@redhat.com>
2824 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2825 Unix in user visible strings.
2827 2014-03-12 Stan Shebs <stan@codesourcery.com>
2829 * gdbtypes.h: Annotate comments for Doxygen, add a page
2830 block comment with some general info.
2832 2014-03-12 Pedro Alves <palves@redhat.com>
2834 * infcmd.c (prepare_execution_command): New function, factored out
2835 from several execution commands.
2836 (run_command_1, continue_command, step_1, jump_command)
2837 (signal_command, until_command, advance_command, finish_command)
2838 (attach_command): Use prepare_execution_command.
2840 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2842 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2845 (struct arm_linux_thread_points): Removed.
2846 (struct arm_linux_process_info): New.
2847 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2848 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2849 (arm_linux_find_breakpoints_by_tid): Removed.
2850 (struct arch_lwp_info): New.
2851 (arm_linux_find_process_pid): New functions.
2852 (arm_linux_add_process): New functions.
2853 (arm_linux_process_info_get): New functions.
2854 (arm_linux_forget_process): New function.
2855 (arm_linux_get_debug_reg_state): New function.
2856 (struct update_registers_data): New.
2857 (update_registers_callback): New function.
2858 (arm_linux_insert_hw_breakpoint1): Updated.
2859 (arm_linux_remove_hw_breakpoint1): Updated.
2860 (arm_linux_insert_hw_breakpoint): Updated.
2861 (arm_linux_remove_hw_breakpoint): Updated.
2862 (arm_linux_insert_watchpoint): Updated.
2863 (arm_linux_remove_watchpoint): Updated.
2864 (arm_linux_new_thread): Updated.
2865 (arm_linux_prepare_to_resume): New function.
2866 (arm_linux_new_fork): New function.
2867 (_initialize_arm_linux_nat): Updated.
2869 2014-03-12 Pedro Alves <palves@redhat.com>
2871 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2873 2014-03-12 Tom Tromey <tromey@redhat.com>
2875 * inf-child.c (return_zero): New function.
2876 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2877 * aix-thread.c (aix_thread_inferior_created): New function.
2878 (aix_thread_attach): Remove.
2879 (init_aix_thread_ops): Don't set to_attach.
2880 (_initialize_aix_thread): Register inferior_created observer.
2881 * corelow.c (init_core_ops): Don't set to_attach or
2883 * exec.c (init_exec_ops): Don't set to_attach or
2885 * infcmd.c (run_command_1): Use find_run_target. Make direct
2887 (attach_command): Use find_attach_target. Make direct target
2889 * record-btrace.c (init_record_btrace_ops): Don't set
2891 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2893 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2894 set to_create_inferior.
2895 * target.c (complete_target_initialization): Add assertion.
2896 (target_create_inferior): Remove.
2897 (find_default_attach, find_default_create_inferior): Remove.
2898 (find_attach_target, find_run_target): New functions.
2899 (find_default_is_async_p, find_default_can_async_p)
2900 (target_supports_non_stop, target_attach): Remove.
2901 (init_dummy_target): Don't set to_create_inferior or
2902 to_supports_non_stop.
2903 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2904 TARGET_DEFAULT_FUNC.
2905 <to_create_inferior>: Add comment.
2906 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2907 TARGET_DEFAULT_RETURN.
2908 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2909 (find_attach_target, find_run_target): Declare.
2910 (target_create_inferior): Remove.
2911 (target_has_execution_1): Update comment.
2912 (target_supports_non_stop): Remove.
2913 * target-delegates.c: Rebuild.
2915 2014-03-12 Pedro Alves <palves@redhat.com>
2917 * inf-child.h: Update comment to not mention Unix.
2919 2014-03-12 Pedro Alves <palves@redhat.com>
2921 * inf-child.c: Update top comment to not mention Unix. Add
2922 generic comment describing how this target is meant to be used.
2923 (inf_child_post_attach, inf_child_post_startup_inferior)
2924 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2927 2014-03-12 Pedro Alves <palves@redhat.com>
2929 * nto-procfs.c: Include inf-child.h.
2930 (procfs_ops): Delete global.
2931 (procfs_can_run): Delete method.
2932 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2933 target pointer instead of referencing procfs_ops.
2934 (procfs_prepare_to_store): Delete.
2935 (init_procfs_ops): Delete function.
2936 (procfs_target): New function, based on init_procfs_ops, but
2937 inherit inf_child_target.
2938 (_initialize_procfs): Use procfs_target.
2940 2014-03-12 Pedro Alves <palves@redhat.com>
2942 * windows-nat.c: Include inf-child.h.
2943 (windows_ops): Delete global.
2944 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2946 (init_windows_ops): Delete function.
2947 (windows_target): New function, based on init_windows_ops, but
2948 inherit inf_child_target.
2949 (_initialize_windows_nat): Use windows_target. Install x86
2950 specific target methods here.
2952 2014-03-10 Doug Evans <xdje42@gmail.com>
2954 * guile/guile.c (call_initialize_gdb_module): New function.
2955 (initialize_guile): Replace call to scm_init_guile with call to
2958 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2960 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2961 in call to TYPE_CODE macro.
2963 2014-03-10 Jerome Guitton <guitton@adacore.com>
2965 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2966 Resolve tagged types to full view.
2968 2014-03-10 Hui Zhu <hui@codesourcery.com>
2970 * target.h (target_insert_breakpoint): Remove "hardware" from its
2973 2014-03-07 Doug Evans <dje@google.com>
2975 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2977 2014-03-07 Doug Evans <dje@google.com>
2979 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2980 Remove unused local comp_dir_attr. Assert exactly one of
2981 stub_comp_unit_die, stub_comp_dir is non-NULL.
2983 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2985 * target.h (complete_target_initialization, add_target):
2988 2014-03-07 Pedro Alves <palves@redhat.com>
2990 * go32-nat.c: Include inf-child.h.
2991 (go32_ops): Delete global.
2992 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2994 (go32_create_inferior): Push the passed in target pointer instead
2995 of referencing go32_ops.
2996 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2997 (go32_target): New function, based on init_go32_ops, but inherit
2999 (_initialize_go32_nat): Use go32_target. Move parts of
3002 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3004 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3005 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3006 SYMBOL_VALUE_ADDRESS.
3007 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3009 2014-03-06 Yao Qi <yao@codesourcery.com>
3011 * breakpoint.c (get_tracepoint_by_number): Remove argument
3012 optional_p. All callers updated. Adjust comments. Update
3014 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3016 2014-03-06 Yao Qi <yao@codesourcery.com>
3018 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3019 early if get_number returns zero. Use 'p' instead of 'args'.
3021 2014-03-06 Yao Qi <yao@codesourcery.com>
3023 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3026 2014-03-06 Yao Qi <yao@codesourcery.com>
3028 PR breakpoints/16508
3029 * tracepoint.c (check_trace_running): New function.
3030 (trace_find_command): Move code to check_trace_running and
3031 call check_trace_running.
3032 (trace_find_pc_command): Likewise.
3033 (trace_find_tracepoint_command): Likewise.
3034 (trace_find_line_command): Likewise.
3035 (trace_find_range_command): Likewise.
3036 * tracepoint.h (check_trace_running): Likewise.
3037 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3039 2014-03-06 Yao Qi <yao@codesourcery.com>
3041 * target.h (struct target_ops) <to_traceframe_info>: Use
3042 TARGET_DEFAULT_NORETURN (tcomplain ()).
3043 * target-delegates.c: Regenerated.
3045 2014-03-05 Pedro Alves <palves@redhat.com>
3048 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3049 void. Update comment.
3050 (dcache_xfer_memory): Delete.
3051 (dcache_read_memory_partial): New, based on the read bits of
3053 (dcache_update): Add status parameter. Use ULONGEST for len, and
3054 adjust. Discard cache lines if the reason for the update was
3056 * dcache.h (dcache_xfer_memory): Delete declaration.
3057 (dcache_read_memory_partial): New declaration.
3058 (dcache_update): Update prototype.
3059 * target.c (raw_memory_xfer_partial): Update the dcache here.
3060 (memory_xfer_partial_1): Don't handle dcache writes here.
3062 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3064 * remote-sim.c (gdbsim_load): Add const to prog.
3066 2014-03-03 Tom Tromey <tromey@redhat.com>
3068 * elfread.c (probe_key): Change to bfd_data.
3069 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3070 now per-BFD, not per-objfile.
3071 * stap-probe.c (stap_probe_destroy): Update comment.
3072 (handle_stap_probe): Allocate on the per-BFD obstack.
3074 2014-03-03 Tom Tromey <tromey@redhat.com>
3076 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3077 * breakpoint.c (create_longjmp_master_breakpoint): Use
3079 (add_location_to_breakpoint, bkpt_probe_insert_location)
3080 (bkpt_probe_remove_location): Update.
3081 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3082 * elfread.c (elf_symfile_relocate_probe): Remove.
3083 (elf_probe_fns): Update.
3084 (insert_exception_resume_breakpoint): Change type of "probe"
3085 parameter to bound_probe.
3086 (check_exception_resume): Update.
3087 * objfiles.c (objfile_relocate1): Don't relocate probes.
3088 * probe.c (bound_probe_s): New typedef.
3089 (parse_probes): Use get_probe_address. Set sal's objfile.
3090 (find_probe_by_pc): Return a bound_probe.
3091 (collect_probes): Return a VEC(bound_probe_s).
3092 (compare_probes): Update.
3093 (gen_ui_out_table_header_info): Change type of "probes"
3095 (info_probes_for_ops): Update.
3096 (get_probe_address): New function.
3097 (probe_safe_evaluate_at_pc): Update.
3098 * probe.h (struct probe_ops) <get_probe_address>: New field.
3099 <set_semaphore, clear_semaphore>: Add objfile parameter.
3100 (struct probe) <objfile>: Remove field.
3102 <address>: Update comment.
3103 (struct bound_probe): New.
3104 (find_probe_by_pc): Return a bound_probe.
3105 (get_probe_address): Declare.
3106 * solib-svr4.c (struct probe_and_action) <address>: New field.
3107 (hash_probe_and_action, equal_probe_and_action): Update.
3108 (register_solib_event_probe): Add address parameter.
3109 (solib_event_probe_at): Update.
3110 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3112 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3113 (stap_get_probe_address): New function.
3114 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3115 (compile_probe_arg): Update.
3116 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3118 (handle_stap_probe): Don't relocate the probe.
3119 (stap_relocate): Remove.
3120 (stap_gen_info_probes_table_values): Update.
3121 (stap_probe_ops): Remove stap_relocate.
3122 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3123 (debug_sym_probe_fns): Update.
3124 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3125 * symtab.c (init_sal): Use memset.
3126 * symtab.h (struct symtab_and_line) <objfile>: New field.
3127 * tracepoint.c (start_tracing, stop_tracing): Update.
3129 2014-03-03 Tom Tromey <tromey@redhat.com>
3131 * probe.h (parse_probes, find_probe_by_pc)
3132 (find_probes_in_objfile): Fix comments.
3134 2014-03-02 Doug Evans <xdje42@gmail.com>
3136 * infrun.c (handle_signal_stop): Replace test for
3137 TARGET_WAITKIND_STOPPED with an assert.
3139 2014-03-02 Doug Evans <xdje42@gmail.com>
3141 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3143 2014-03-02 Doug Evans <xdje42@gmail.com>
3145 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3147 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3149 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3151 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3153 * i386obsd-nat.c: Include "obsd-nat.h".
3154 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3156 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3158 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3160 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3162 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3164 * mips64obsd-nat.c: Include "obsd-nath".
3165 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3167 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3169 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3171 * amd64obsd-nat.c: Include "obsd-nat,h.
3172 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3174 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3176 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3178 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3179 (find_overload_match): Update call to find_oload_champ.
3180 (find_oload_champ_namespace_loop): Likewise
3182 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3184 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3186 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3187 * config/sparc/obsd64.mh: New file.
3188 * sparc64obsd-nat.c: New file.
3190 * obsd-nat.h: New file.
3191 * obsd-nat.c: New file.
3192 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3193 (ALLDEPFILES): Add obsd-nat.c.
3195 2014-02-28 Tom Tromey <tromey@redhat.com>
3197 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3198 * cli-out.h (cli_ui_out_impl): Now const.
3199 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3200 * ui-out.c (struct ui_out) <impl>: Now const.
3201 (default_ui_out_impl): Now const.
3202 (ui_out_new): Make 'impl' parameter const.
3203 * ui-out.h (ui_out_new): Update.
3205 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3207 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3209 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3211 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3213 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3215 Additional PR 8882 fix.
3216 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3218 2014-02-27 Pedro Alves <palves@redhat.com>
3220 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3223 2014-02-27 Pedro Alves <palves@redhat.com>
3226 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3227 * nat/linux-waitpid.c: Include string.h.
3228 (status_to_str): Moved here and made extern.
3229 * nat/linux-waitpid.h (status_to_str): New declaration.
3231 2014-02-27 Hui Zhu <hui@codesourcery.com>
3234 * infrun.c (ptid_match): Move ...
3235 * common/ptid.c (ptid_match): ... here.
3236 * inferior.h (ptid_match): Move ...
3237 * common/ptid.h (ptid_match): ... here.
3239 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3241 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3242 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3245 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3247 * obsd-tdep.c (obsd_auxv_parse): New function.
3248 (obsd_init_abi): Set auxv_parse.
3250 * gdbarch.sh (auxv_parse): New.
3251 * gdbarch.h: Regenerated.
3252 * gdbarch.c: Regenerated.
3253 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3255 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3257 * guile/scm-value.c (gdbscm_history_append_x): New function.
3258 (value_functions): Add it.
3260 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3262 * dwarf2read.c (attr_value_as_address): New function.
3263 (dwarf2_find_base_address, read_call_site_scope): Use
3264 attr_value_as_address in place of DW_ADDR.
3265 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3266 the low and high addresses. Slight rework of the handling
3267 of the high pc being a constant form, and limit it to
3268 DWARF verson 4 or higher.
3269 (dwarf2_record_block_ranges): Likewise.
3270 (read_partial_die): Likewise.
3271 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3273 2014-02-26 Tom Tromey <tromey@redhat.com>
3275 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3277 2014-02-26 Tom Tromey <tromey@redhat.com>
3279 * elfread.c (elf_read_minimal_symbols): Return early if
3280 minimal symbols have already been read. Add "ei" parameter.
3281 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3282 * minsyms.c (prim_record_minimal_symbol_full): Update.
3283 * objfiles.h (struct objstats) <n_minsyms>: Move...
3284 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3285 * symmisc.c (print_objfile_statistics): Update.
3287 2014-02-26 Tom Tromey <tromey@redhat.com>
3289 * elfread.c (elf_read_minimal_symbols): New function, from
3291 (elf_symfile_read): Call it.
3293 2014-02-26 Tom Tromey <tromey@redhat.com>
3295 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3296 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3297 (lookup_minimal_symbol_solib_trampoline)
3298 (lookup_minimal_symbol_by_pc_section_1)
3299 (lookup_minimal_symbol_and_objfile): Update.
3300 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3301 Don't allocate a minimal symbol if minsyms have already been read.
3302 (build_minimal_symbol_hash_tables): Update.
3303 (install_minimal_symbols): Do nothing if minsyms already read.
3304 Use the per-BFD obstack.
3305 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3306 * objfiles.c (allocate_objfile): Call
3307 terminate_minimal_symbol_table later.
3308 (have_minimal_symbols): Update.
3309 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3310 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3311 Move from struct objfile.
3312 <minsyms_read>: New field.
3313 (struct objfile) <msymbols, minimal_symbol_count,
3314 msymbol_hash, msymbol_demangled_hash>: Move.
3315 (ALL_OBJFILE_MSYMBOLS): Update.
3316 * symfile.c (read_symbols): Set minsyms_read.
3317 (reread_symbols): Update.
3318 * symmisc.c (dump_objfile, dump_msymbols): Update.
3320 2014-02-26 Tom Tromey <tromey@redhat.com>
3322 * minsyms.c (msymbols_sort): Remove.
3323 * minsyms.h (msymbols_sort): Remove.
3324 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3325 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3326 * elfread.c (elf_symtab_read): Don't add section offsets.
3327 * xcoffread.c (record_minimal_symbol): Don't add section offset
3328 to minimal symbol address.
3329 * somread.c (text_offset, data_offset): Remove.
3330 (som_symtab_read): Don't add section offsets to minimal symbol
3332 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3333 Don't add section offsets to minimal symbols.
3334 * coffread.c (coff_symtab_read): Don't add section offsets
3335 to minimal symbol addresses.
3336 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3337 to minimal symbol addresses.
3338 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3339 section offset to minimal symbol addresses.
3340 * mdebugread.c (parse_partial_symbols): Don't add section
3341 offset to minimal symbol addresses.
3342 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3343 offset to minimal symbol addresses.
3345 2014-02-26 Tom Tromey <tromey@redhat.com>
3347 * ada-lang.c (ada_main_name): Update.
3348 (ada_add_standard_exceptions): Update.
3349 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3350 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3351 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3352 * auxv.c (ld_so_xfer_auxv): Update.
3353 * avr-tdep.c (avr_scan_prologue): Update.
3354 * ax-gdb.c (gen_var_ref): Update.
3355 * blockframe.c (get_pc_function_start)
3356 (find_pc_partial_function_gnu_ifunc): Update.
3357 * breakpoint.c (create_overlay_event_breakpoint)
3358 (create_longjmp_master_breakpoint)
3359 (create_std_terminate_master_breakpoint)
3360 (create_exception_master_breakpoint): Update.
3361 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3362 * c-valprint.c (c_val_print): Update.
3363 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3364 * common/agent.c (agent_look_up_symbols): Update.
3365 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3366 * dwarf2loc.c (call_site_to_target_addr): Update.
3367 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3368 * elfread.c (elf_gnu_ifunc_record_cache)
3369 (elf_gnu_ifunc_resolve_by_got): Update.
3370 * findvar.c (default_read_var_value): Update.
3371 * frame.c (inside_main_func): Update.
3372 * frv-tdep.c (frv_frame_this_id): Update.
3373 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3374 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3376 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3377 (hppa_hpux_find_dummy_bpaddr): Update.
3378 * hppa-tdep.c (hppa_symbol_address): Update.
3379 * infcmd.c (until_next_command): Update.
3380 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3382 * linespec.c (minsym_found, add_minsym): Update.
3383 * linux-nat.c (get_signo): Update.
3384 * linux-thread-db.c (inferior_has_bug): Update.
3385 * m32c-tdep.c (m32c_return_value)
3386 (m32c_m16c_address_to_pointer): Update.
3387 * m32r-tdep.c (m32r_frame_this_id): Update.
3388 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3389 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3390 * maint.c (maintenance_translate_address): Update.
3391 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3392 (frob_address): New function.
3393 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3394 frob_address. Rename parameter to "pc_in".
3395 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3397 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3399 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3400 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3401 * objc-lang.c (find_objc_msgsend): Update.
3402 * objfiles.c (objfile_relocate1): Update.
3403 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3404 * p-valprint.c (pascal_val_print): Update.
3405 * parse.c (write_exp_msymbol): Update.
3406 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3407 (ppc_elfv2_skip_entrypoint): Update.
3408 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3409 * printcmd.c (build_address_symbolic, msym_info)
3410 (address_info): Update.
3411 * proc-service.c (ps_pglobal_lookup): Update.
3412 * psymtab.c (find_pc_sect_psymtab_closer)
3413 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3414 Change msymbol parameter to bound_minimal_symbol.
3415 * ravenscar-thread.c (get_running_thread_id): Update.
3416 * remote.c (remote_check_symbols): Update.
3417 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3419 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3420 * solib-dsbt.c (lm_base): Update.
3421 * solib-frv.c (lm_base, main_got): Update.
3422 * solib-irix.c (locate_base): Update.
3423 * solib-som.c (som_solib_create_inferior_hook)
3424 (link_map_start): Update.
3425 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3426 * solib-svr4.c (elf_locate_base, enable_break): Update.
3427 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3428 (flush_ea_cache): Update.
3429 * stabsread.c (define_symbol, scan_file_globals): Update.
3430 * stack.c (find_frame_funname): Update.
3431 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3432 (debug_qf_find_pc_sect_symtab): Update.
3433 * symfile.c (simple_read_overlay_table)
3434 (simple_overlay_update): Update.
3435 * symfile.h (struct quick_symbol_functions)
3436 <find_pc_sect_symtab>: Change type of msymbol to
3437 bound_minimal_symbol.
3438 * symmisc.c (dump_msymbols): Update.
3439 * symtab.c (find_pc_sect_symtab_via_partial)
3440 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3441 (search_symbols, print_msymbol_info): Update.
3442 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3443 (MSYMBOL_VALUE_ADDRESS): Redefine.
3444 (BMSYMBOL_VALUE_ADDRESS): New macro.
3445 * tracepoint.c (scope_info): Update.
3446 * tui/tui-disasm.c (tui_find_disassembly_address)
3447 (tui_get_begin_asm_address): Update.
3448 * valops.c (find_function_in_inferior): Update.
3449 * value.c (value_static_field, value_fn_field): Update.
3451 2014-02-26 Tom Tromey <tromey@redhat.com>
3453 * ada-lang.c (ada_update_initial_language): Update.
3454 (ada_main_name, ada_has_this_exception_support): Update.
3455 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3456 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3457 * arm-tdep.c (arm_skip_stub): Update.
3458 * auxv.c (ld_so_xfer_auxv): Update.
3459 * avr-tdep.c (avr_scan_prologue): Update.
3460 * ax-gdb.c (gen_var_ref): Update.
3461 * breakpoint.c (struct breakpoint_objfile_data)
3462 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3463 type to bound_minimal_symbol.
3464 (create_overlay_event_breakpoint)
3465 (create_longjmp_master_breakpoint)
3466 (create_std_terminate_master_breakpoint)
3467 (create_exception_master_breakpoint): Update.
3468 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3469 * c-exp.y (classify_name): Update.
3470 * coffread.c (coff_symfile_read): Update.
3471 * common/agent.c (agent_look_up_symbols): Update.
3472 * d-lang.c (d_main_name): Update.
3473 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3474 * dec-thread.c (enable_dec_thread): Update.
3475 * dwarf2loc.c (call_site_to_target_addr): Update.
3476 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3477 * eval.c (evaluate_subexp_standard): Update.
3478 * findvar.c (struct minsym_lookup_data) <result>: Change type
3479 to bound_minimal_symbol.
3481 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3482 * frame.c (inside_main_func): Update.
3483 * frv-tdep.c (frv_frame_this_id): Update.
3484 * gcore.c (call_target_sbrk): Update.
3485 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3486 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3488 * go-lang.c (go_main_name): Update.
3489 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3490 (hppa_hpux_find_import_stub_for_addr): Update.
3491 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3492 Update. Change return type.
3493 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3495 * jit.c (jit_breakpoint_re_set_internal): Update.
3496 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3498 * linux-nat.c (get_signo): Update.
3499 * linux-thread-db.c (inferior_has_bug): Update
3500 * m32c-tdep.c (m32c_return_value)
3501 (m32c_m16c_address_to_pointer): Update.
3502 * m32r-tdep.c (m32r_frame_this_id): Update.
3503 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3504 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3505 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3506 lookup_minimal_symbol. Change return type.
3507 (lookup_minimal_symbol): Remove.
3508 (lookup_bound_minimal_symbol): Update.
3509 (lookup_minimal_symbol_text): Change return type.
3510 (lookup_minimal_symbol_solib_trampoline): Change return type.
3511 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3512 (lookup_minimal_symbol_solib_trampoline): Change return type.
3513 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3514 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3515 (value_nsstring, find_imps): Update.
3516 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3517 * p-lang.c (pascal_main_name): Update.
3518 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3519 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3520 * proc-service.c (ps_pglobal_lookup): Update.
3521 * ravenscar-thread.c (get_running_thread_msymbol): Change
3523 (has_ravenscar_runtime, get_running_thread_id): Update.
3524 * remote.c (remote_check_symbols): Update.
3525 * sol-thread.c (ps_pglobal_lookup): Update.
3526 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3527 * solib-dsbt.c (lm_base): Update.
3528 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3530 * solib-irix.c (locate_base): Update.
3531 * solib-som.c (som_solib_create_inferior_hook)
3532 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3534 * solib-spu.c (spu_enable_break): Update.
3535 * solib-svr4.c (elf_locate_base, enable_break): Update.
3536 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3537 (flush_ea_cache): Update.
3538 * stabsread.c (define_symbol): Update.
3539 * symfile.c (simple_read_overlay_table): Update.
3540 * symtab.c (find_pc_sect_line): Update.
3541 * tracepoint.c (scope_info): Update.
3542 * tui-disasm.c (tui_get_begin_asm_address): Update.
3543 * value.c (value_static_field): Update.
3545 2014-02-26 Tom Tromey <tromey@redhat.com>
3547 * minsyms.c (prim_record_minimal_symbol_full): Use
3548 SET_MSYMBOL_VALUE_ADDRESS.
3549 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3550 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3551 SET_MSYMBOL_VALUE_ADDRESS.
3552 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3553 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3555 2014-02-26 Tom Tromey <tromey@redhat.com>
3557 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3558 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3559 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3560 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3561 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3562 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3563 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3564 * ada-lang.c (ada_main_name): Update.
3565 (ada_lookup_simple_minsym): Update.
3566 (ada_make_symbol_completion_list): Update.
3567 (ada_add_standard_exceptions): Update.
3568 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3569 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3570 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3571 * arm-tdep.c (skip_prologue_function): Update.
3572 (arm_skip_stack_protector, arm_skip_stub): Update.
3573 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3574 (arm_wince_skip_main_prologue): Update.
3575 * auxv.c (ld_so_xfer_auxv): Update.
3576 * avr-tdep.c (avr_scan_prologue): Update.
3577 * ax-gdb.c (gen_var_ref): Update.
3578 * block.c (call_site_for_pc): Update.
3579 * blockframe.c (get_pc_function_start): Update.
3580 (find_pc_partial_function_gnu_ifunc): Update.
3581 * breakpoint.c (create_overlay_event_breakpoint): Update.
3582 (create_longjmp_master_breakpoint): Update.
3583 (create_std_terminate_master_breakpoint): Update.
3584 (create_exception_master_breakpoint): Update.
3585 (resolve_sal_pc): Update.
3586 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3587 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3589 * c-valprint.c (c_val_print): Update.
3590 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3591 * coffread.c (coff_symfile_read): Update.
3592 * common/agent.c (agent_look_up_symbols): Update.
3593 * dbxread.c (find_stab_function_addr): Update.
3594 (end_psymtab): Update.
3595 * dwarf2loc.c (call_site_to_target_addr): Update.
3596 (func_verify_no_selftailcall): Update.
3597 (tailcall_dump): Update.
3598 (call_site_find_chain_1): Update.
3599 (dwarf_expr_reg_to_entry_parameter): Update.
3600 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3601 (elf_gnu_ifunc_resolve_by_got): Update.
3602 * f-valprint.c (info_common_command): Update.
3603 * findvar.c (read_var_value): Update.
3604 * frame.c (get_prev_frame_1): Update.
3605 (inside_main_func): Update.
3606 * frv-tdep.c (frv_skip_main_prologue): Update.
3607 (frv_frame_this_id): Update.
3608 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3609 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3610 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3611 (gnuv3_skip_trampoline): Update.
3612 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3613 (hppa64_hpux_in_solib_call_trampoline): Update.
3614 (hppa_hpux_skip_trampoline_code): Update.
3615 (hppa64_hpux_search_dummy_call_sequence): Update.
3616 (hppa_hpux_find_import_stub_for_addr): Update.
3617 (hppa_hpux_find_dummy_bpaddr): Update.
3618 * hppa-tdep.c (hppa_symbol_address)
3619 (hppa_lookup_stub_minimal_symbol): Update.
3620 * i386-tdep.c (i386_skip_main_prologue): Update.
3621 (i386_pe_skip_trampoline_code): Update.
3622 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3623 * infcall.c (get_function_name): Update.
3624 * infcmd.c (until_next_command): Update.
3625 * jit.c (jit_breakpoint_re_set_internal): Update.
3626 (jit_inferior_init): Update.
3627 * linespec.c (minsym_found): Update.
3628 (add_minsym): Update.
3629 * linux-fork.c (info_checkpoints_command): Update.
3630 * linux-nat.c (get_signo): Update.
3631 * linux-thread-db.c (inferior_has_bug): Update.
3632 * m32c-tdep.c (m32c_return_value): Update.
3633 (m32c_m16c_address_to_pointer): Update.
3634 (m32c_m16c_pointer_to_address): Update.
3635 * m32r-tdep.c (m32r_frame_this_id): Update.
3636 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3637 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3638 * maint.c (maintenance_translate_address): Update.
3639 * minsyms.c (add_minsym_to_hash_table): Update.
3640 (add_minsym_to_demangled_hash_table): Update.
3641 (msymbol_objfile): Update.
3642 (lookup_minimal_symbol): Update.
3643 (iterate_over_minimal_symbols): Update.
3644 (lookup_minimal_symbol_text): Update.
3645 (lookup_minimal_symbol_by_pc_name): Update.
3646 (lookup_minimal_symbol_solib_trampoline): Update.
3647 (lookup_minimal_symbol_by_pc_section_1): Update.
3648 (lookup_minimal_symbol_and_objfile): Update.
3649 (prim_record_minimal_symbol_full): Update.
3650 (compare_minimal_symbols): Update.
3651 (compact_minimal_symbols): Update.
3652 (build_minimal_symbol_hash_tables): Update.
3653 (install_minimal_symbols): Update.
3654 (terminate_minimal_symbol_table): Update.
3655 (find_solib_trampoline_target): Update.
3656 (minimal_symbol_upper_bound): Update.
3657 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3658 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3659 (mips_skip_pic_trampoline_code): Update.
3660 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3661 * objc-lang.c (selectors_info): Update.
3662 (classes_info): Update.
3663 (find_methods): Update.
3664 (find_imps): Update.
3665 (find_objc_msgsend): Update.
3666 * objfiles.c (objfile_relocate1): Update.
3667 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3668 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3669 * p-valprint.c (pascal_val_print): Update.
3670 * parse.c (write_exp_msymbol): Update.
3671 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3672 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3673 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3674 * printcmd.c (build_address_symbolic): Update.
3676 (address_info): Update.
3677 * proc-service.c (ps_pglobal_lookup): Update.
3678 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3679 (find_pc_sect_psymtab): Update.
3680 * python/py-framefilter.c (py_print_frame): Update.
3681 * ravenscar-thread.c (get_running_thread_id): Update.
3682 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3684 * remote.c (remote_check_symbols): Update.
3685 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3686 (rs6000_skip_trampoline_code): Update.
3687 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3688 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3689 * solib-dsbt.c (lm_base): Update.
3690 * solib-frv.c (lm_base): Update.
3692 * solib-irix.c (locate_base): Update.
3693 * solib-som.c (som_solib_create_inferior_hook): Update.
3694 (som_solib_desire_dynamic_linker_symbols): Update.
3695 (link_map_start): Update.
3696 * solib-spu.c (spu_enable_break): Update.
3697 (ocl_enable_break): Update.
3698 * solib-svr4.c (elf_locate_base): Update.
3699 (enable_break): Update.
3700 * spu-tdep.c (spu_get_overlay_table): Update.
3701 (spu_catch_start): Update.
3702 (flush_ea_cache): Update.
3703 * stabsread.c (define_symbol): Update.
3704 (scan_file_globals): Update.
3705 * stack.c (find_frame_funname): Update.
3706 (frame_info): Update.
3707 * symfile.c (simple_read_overlay_table): Update.
3708 (simple_overlay_update): Update.
3709 * symmisc.c (dump_msymbols): Update.
3710 * symtab.c (fixup_section): Update.
3711 (find_pc_sect_line): Update.
3712 (skip_prologue_sal): Update.
3713 (search_symbols): Update.
3714 (print_msymbol_info): Update.
3715 (rbreak_command): Update.
3716 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3717 (completion_list_objc_symbol): Update.
3718 (default_make_symbol_completion_list_break_on): Update.
3719 * tracepoint.c (scope_info): Update.
3720 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3721 (tui_get_begin_asm_address): Update.
3722 * valops.c (find_function_in_inferior): Update.
3723 * value.c (value_static_field): Update.
3724 (value_fn_field): Update.
3726 2014-02-26 Tom Tromey <tromey@redhat.com>
3728 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3729 bound minimal symbols. Move code that knows about minsym
3731 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3733 * minsyms.h (minimal_symbol_upper_bound): Declare.
3734 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3735 minimal_symbol_upper_bound.
3737 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3739 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3740 Use the type's name if its basic type does not have a tag.
3742 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3744 * dwarf2read.c (read_subrange_type): Add comment.
3746 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3748 * dwarf2read.c (update_enumeration_type_from_children): New
3749 function, mostly extracted from process_structure_scope.
3750 (read_enumeration_type): Call update_enumeration_type_from_children.
3751 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3752 and flag_flag_enum fields.
3754 2014-02-26 Pedro Alves <palves@redhat.com>
3756 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3757 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3758 to_xfer_partial method.
3760 2014-02-26 Pedro Alves <palves@redhat.com>
3762 * target.c (complete_target_initialization): Don't install
3763 default_xfer_partial as to_xfer_partial hook.
3765 (update_current_target): Don't INHERIT nor de_fault
3766 deprecated_xfer_memory. Delete de_fault macro.
3767 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3768 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3769 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3772 2014-02-26 Pedro Alves <palves@redhat.com>
3774 * go32-nat.c (my_write_child): New function.
3775 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3776 (go32_xfer_partial): New function.
3777 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3778 Instead install a to_xfer_partial hook.
3780 2014-02-26 Pedro Alves <palves@redhat.com>
3782 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3783 to_xfer_partial helper. Rewrite.
3784 (procfs_xfer_partial): New function.
3785 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3786 Install a to_xfer_partial hook.
3788 2014-02-26 Pedro Alves <palves@redhat.com>
3790 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3791 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3792 (m32r_xfer_partial): New function.
3793 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3794 Install a to_xfer_partial hook.
3796 2014-02-26 Pedro Alves <palves@redhat.com>
3798 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3800 (mips_xfer_partial): New function.
3801 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3802 hook. Install a to_xfer_partial hook.
3804 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3806 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3807 * gdbtypes.c (create_array_type_with_stride): New function,
3808 renaming create_array_type, but with an added parameter
3809 called "bit_stride".
3810 (create_array_type): Re-implement using
3811 create_array_type_with_stride.
3812 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3813 and DW_AT_bit_stride attributes.
3815 2014-02-26 Pedro Alves <palves@redhat.com>
3817 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3818 task-specific breakpoints.
3820 2014-02-25 Pedro Alves <palves@redhat.com>
3822 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3823 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3825 2014-02-25 Stan Shebs <stan@codesourcery.com>
3827 * defs.h: Annotate comments for Doxygen.
3829 2014-02-25 Tom Tromey <tromey@redhat.com>
3831 * target.h (target_ignore): Don't declare.
3832 * target.c (target_ignore): Remove.
3834 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 * auto-load.c (auto_load_objfile_script_1): Change filename to
3840 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3842 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3843 documentation. Adjust prototype to match the target_ops
3844 to_xfer_partial method. Adjust implementation accordingly.
3846 2014-02-25 Hui Zhu <hui@codesourcery.com>
3848 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3851 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3853 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3854 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3855 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3856 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3857 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3858 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3859 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3860 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3862 (rl78_register_type): Use a data pointer type for SP and
3863 new pseudo registers mentioned above. Use a 16 bit integer
3864 type for all other register pairs.
3865 (rl78_register_name, rl78_g10_register_name): Update for
3866 new pseudo registers.
3867 (rl78_pseudo_register_read): Likewise.
3868 (rl78_pseudo_register_write): Likewise.
3869 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3870 to the newly added pseudo registers.
3872 2014-02-24 Doug Evans <dje@google.com>
3874 * value.c (record_latest_value): Fix comment.
3875 * printcmd.c (print_command_1): Remove code to handle -1 return from
3876 record_latest_value.
3878 2014-02-24 Pedro Alves <palves@redhat.com>
3880 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3881 deprecated_xfer_memory hook.
3882 (procfs_xfer_partial): Call procfs_xfer_memory instead
3883 of the deprecated_xfer_memory target hook.
3884 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3887 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3889 * windows-nat.c (windows_xfer_shared_libraries): Return
3890 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3891 requested object is TARGET_OBJECT_LIBRARIES.
3893 2014-02-24 Yao Qi <yao@codesourcery.com>
3895 * target.h (enum target_xfer_status)
3896 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3897 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3899 * corefile.c (memory_error_message): User updated.
3900 * exec.c (section_table_read_available_memory): Likewise.
3901 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3902 * target.c (target_xfer_status_to_string): Likewise.
3903 (raw_memory_xfer_partial): Likewise.
3904 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3905 * valops.c (read_value_memory): Likewise.
3906 * exec.h: Update comments.
3908 2014-02-24 Yao Qi <yao@codesourcery.com>
3910 * target.c (target_xfer_status_to_string): Rename argument err
3912 * target.h (target_xfer_status_to_string): Update declaration.
3913 Replace target_xfer_error_to_string with
3914 target_xfer_status_to_string in comment.
3916 2014-02-24 Yao Qi <yao@codesourcery.com>
3918 * mips-linux-nat.c (super_close): Update its type.
3919 (mips_linux_close): Pass 'self' to super_close.
3921 2014-02-24 Yao Qi <yao@codesourcery.com>
3923 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3924 * corefile.c (read_memory): Adjusted.
3925 * target.c (target_write_with_progress): Adjusted.
3927 2014-02-23 Yao Qi <yao@codesourcery.com>
3931 2013-10-25 Yao Qi <yao@codesourcery.com>
3933 * remote.c (remote_traceframe_info): Return early if
3934 traceframe is not selected.
3936 2013-07-19 Yao Qi <yao@codesourcery.com>
3938 * target.c (update_current_target): Change the default action
3939 of 'to_traceframe_info' from tcomplain to return_zero.
3940 * target.h (struct target_ops) <to_traceframe_info>: Add more
3943 2014-02-23 Yao Qi <yao@codesourcery.com>
3945 * valops.c (read_value_memory): Rewrite it. Call
3946 target_xfer_partial in a loop.
3947 * exec.h (section_table_available_memory): Remove declaration.
3948 Move comments to ...
3949 * exec.c (section_table_available_memory): ... here. Make it
3952 2014-02-23 Yao Qi <yao@codesourcery.com>
3954 * exec.c (section_table_read_available_memory): New function.
3955 * exec.h (section_table_read_available_memory): Declare.
3956 * ctf.c (ctf_xfer_partial): Call
3957 section_table_read_available_memory.
3958 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3960 2014-02-23 Yao Qi <yao@codesourcery.com>
3962 * ctf.c (ctf_xfer_partial): Move code to ...
3963 * exec.c (exec_read_partial_read_only): ... it. New function.
3964 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3965 * tracefile.c: Include "exec.h".
3966 * exec.h (exec_read_partial_read_only): Declare.
3968 2014-02-23 Yao Qi <yao@codesourcery.com>
3970 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3971 (tfile_has_memory): Remove.
3972 (init_tfile_ops): Don't set fields to_has_all_memory and
3973 to_has_memory of tfile_ops.
3974 * tracefile.c (tracefile_has_all_memory): New function.
3975 (tracefile_has_memory): New function.
3976 (init_tracefile_ops): Initialize fields to_has_all_memory and
3977 to_has_memory of 'ops'.
3979 2014-02-23 Yao Qi <yao@codesourcery.com>
3981 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3982 (ctf_thread_alive, ctf_get_trace_status): Remove.
3983 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3985 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3986 (tfile_has_stack, tfile_has_registers): Remove.
3987 (tfile_thread_alive): Remove.
3988 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3990 * tracefile.c (tracefile_has_stack): New function.
3991 (tracefile_has_registers): New function.
3992 (tracefile_thread_alive): New function.
3993 (tracefile_get_trace_status): New function.
3994 (init_tracefile_ops): New function.
3995 * tracefile.h (init_tracefile_ops): Declare.
3997 2014-02-23 Yao Qi <yao@codesourcery.com>
3999 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4000 (O_LARGEFILE): Likewise.
4001 (tfile_ops): Likewise.
4002 (TRACE_HEADER_SIZE): Likewise.
4003 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4004 (cur_data_size): Likewise.
4005 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4006 (tfile_close, tfile_files_info): Likewise.
4007 (tfile_get_trace_status): Likewise.
4008 (tfile_get_tracepoint_status): Likewise.
4009 (tfile_get_traceframe_address): Likewise.
4010 (tfile_trace_find, match_blocktype): Likewise.
4011 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4012 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4013 (tfile_get_trace_state_variable_value): Likewise.
4014 (tfile_has_all_memory, tfile_has_memory): Likewise.
4015 (tfile_has_stack, tfile_has_registers): Likewise.
4016 (tfile_thread_alive, build_traceframe_info): Likewise.
4017 (tfile_traceframe_info, init_tfile_ops): Likewise.
4018 (_initialize_tracepoint): Don't call init_tfile_ops
4019 and add_target_with_completer.
4020 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4021 exec.h, completer.h and filenames.h.
4022 (_initialize_tracefile_tfile): New function.
4024 2014-02-23 Yao Qi <yao@codesourcery.com>
4026 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4028 (HFILES_NO_SRCDIR): Add tracefile.h.
4029 * ctf.c: Include "tracefile.h".
4030 * tracefile.h: New file.
4031 * tracefile.c: New file
4032 * tracefile-tfile.c: New file.
4033 * tracepoint.c: Include "tracefile.h".
4034 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4035 (stop_reason_names): Add const.
4036 (trace_file_writer_xfree): Move it to tracefile.c.
4037 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4038 (trace_save_ctf): Likewise.
4039 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4040 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4041 (tfile_write_header, tfile_write_regblock_type): Likewise.
4042 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4043 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4044 (tfile_write_raw_data, tfile_end): Likewise.
4045 (tfile_trace_file_writer_new): Likewise.
4046 (free_uploaded_tp): Make it extern.
4047 (free_uploaded_tsv): Make it extern.
4048 (_initialize_tracepoint): Move code to register command 'tsave'
4050 * tracepoint.h (stop_reason_names): Declare.
4051 (struct trace_frame_write_ops): Move it to tracefile.h.
4052 (struct trace_file_write_ops): Likewise.
4053 (struct trace_file_writer): Likewise.
4054 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4056 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4059 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4061 (get_cores_used_by_process): New parameter num_cores, use it.
4062 (linux_xfer_osdata_processes): Pass num_cores to it.
4063 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4066 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4068 * target.c (memory_xfer_partial): Fix length arg in call to
4069 breakpoint_xfer_memory.
4071 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4074 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4075 number comes after the + or - signs. Adjust length of register
4076 name to be extracted.
4078 2014-02-20 Tom Tromey <tromey@redhat.com>
4080 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4081 (ada_varobj_ops): Mark "extern".
4083 2014-02-20 Tom Tromey <tromey@redhat.com>
4085 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4087 2014-02-20 Doug Evans <xdje42@gmail.com>
4089 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4090 All callers updated.
4091 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4092 All callers updated.
4093 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4094 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4096 2014-02-20 lin zuojian <manjian2006@gmail.com>
4097 Joel Brobecker <brobecker@adacore.com>
4098 Doug Evans <xdje42@gmail.com>
4101 * dwarf2read.c (struct die_info): New member in_process.
4102 (reset_die_in_process): New function.
4103 (process_die): Set it at the start, reset when returning.
4104 (inherit_abstract_dies): Only call process_die if origin_child_die
4105 not already being processed.
4107 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4109 * windows-nat.c (handle_unload_dll): Add function documentation.
4110 (do_initial_windows_stuff): Add comment explaining why we wait
4111 until after inferior initialization has finished before
4112 processing all DLLs.
4114 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4116 * windows-nat.c (get_module_name): Delete.
4117 (windows_get_exec_module_filename): New function, mostly
4118 inspired from get_module_name.
4119 (windows_pid_to_exec_file): Replace call to get_module_name
4120 by call to windows_get_exec_module_filename.
4122 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4124 * windows-nat.c (handle_load_dll): Rewrite this function's
4125 introductory comment. Remove code using get_module_name
4126 to get the DLL's name.
4128 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4130 * windows-nat.c (get_windows_debug_event): Ignore
4131 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4132 if windows_initialization_done == 0.
4133 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4134 Adjust implementation to always load all DLLs.
4135 (do_initial_windows_stuff): Replace call to
4136 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4138 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4140 * windows-nat.c (_initialize_windows_nat): Deprecate the
4141 "dll-symbols" command. Turn the "add-shared-symbol-files"
4142 and "assf" aliases into commands, and deprecate them as well.
4143 * NEWS: Add entry explaining that "dll-symbols" and its two
4144 aliases are now deprecated.
4146 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4148 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4149 new-line in debug string. Remove trailing spaces.
4151 2014-02-19 Stan Shebs <stan@codesourcery.com>
4153 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4155 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4157 * NEWS: Add entry for the new feature
4158 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4161 2014-02-19 Stan Shebs <stan@codesourcery.com>
4163 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4165 2014-02-19 Pedro Alves <palves@redhat.com>
4167 * common/ptid.h (struct ptid): Mention that process_stratum
4168 targets should prefer ptid.lwp.
4170 2014-02-19 Pedro Alves <palves@redhat.com>
4172 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4173 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4174 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4175 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4176 store remote thread ids rather than ptid.tid.
4177 (_initialize_remote): Adjust.
4179 2014-02-19 Tom Tromey <tromey@redhat.com>
4181 * target.c (target_get_unwinder): Rewrite.
4182 (target_get_tailcall_unwinder): Rewrite.
4183 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4184 (record_btrace_to_get_tailcall_unwinder): New function.
4185 (init_record_btrace_ops): Update.
4186 * target.h (struct target_ops) <to_get_unwinder,
4187 to_get_tailcall_unwinder>: Now function pointers. Use
4188 TARGET_DEFAULT_RETURN.
4190 2014-02-19 Tom Tromey <tromey@redhat.com>
4192 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4194 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4196 2014-02-19 Tom Tromey <tromey@redhat.com>
4198 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4200 * target-delegates.c: Rebuild.
4201 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4202 TARGET_DEFAULT_FUNC.
4203 * target.c (default_target_decr_pc_after_break): Rename from
4204 forward_target_decr_pc_after_break. Simplify.
4205 (target_decr_pc_after_break): Rely on delegation.
4207 2014-02-19 Tom Tromey <tromey@redhat.com>
4209 * target.c (update_current_target): Do not INHERIT to_doc or
4210 to_magic. Do not de_fault to_open or to_close.
4212 2014-02-19 Tom Tromey <tromey@redhat.com>
4214 * gcore.h (objfile_find_memory_regions): Declare.
4215 * gcore.c (objfile_find_memory_regions): No longer static. Add
4217 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4218 * exec.c: Include gcore.h.
4219 (exec_set_find_memory_regions): Remove.
4220 (exec_find_memory_regions): Remove.
4221 (exec_do_find_memory_regions): Remove.
4222 (init_exec_ops): Update.
4223 * defs.h (exec_set_find_memory_regions): Remove.
4225 2014-02-19 Tom Tromey <tromey@redhat.com>
4227 * target-delegates.c: Rebuild.
4228 * target.h (struct target_ops) <to_extra_thread_info,
4229 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4230 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4231 not 0, in TARGET_DEFAULT_RETURN.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target.c (complete_target_initialization): Remove casts. Use
4236 return_zero_has_execution.
4237 (return_zero): Add "ignore" argument.
4238 (return_zero_has_execution): New function.
4239 (init_dummy_target): Remove casts. Use
4240 return_zero_has_execution.
4242 2014-02-19 Tom Tromey <tromey@redhat.com>
4244 * target.c (update_current_target): Update comments. Do not
4247 2014-02-19 Tom Tromey <tromey@redhat.com>
4249 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4251 * corelow.c (core_read_description): Delegate when needed.
4252 * remote.c (remote_read_description): Delegate when needed.
4253 * target-delegates.c: Rebuild.
4254 * target.c (target_read_description): Rewrite.
4255 * target.h (struct target_ops) <to_read_description>: Update
4256 comment. Use TARGET_DEFAULT_RETURN.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target-delegates.c: Rebuild.
4261 * target.c (update_current_target): Don't inherit or default
4263 (find_default_run_target): Check against delegate_can_run.
4264 * target.h (struct target_ops) <to_can_run>: Use
4265 TARGET_DEFAULT_RETURN.
4267 2014-02-19 Tom Tromey <tromey@redhat.com>
4269 * target-delegates.c: Rebuild.
4270 * target.c (target_disconnect): Unconditionally delegate.
4271 * target.h (struct target_ops) <to_disconnect>: Use
4272 TARGET_DEFAULT_NORETURN.
4274 2014-02-19 Tom Tromey <tromey@redhat.com>
4276 * record.c (record_stop): Unconditionally delegate.
4277 * target-delegates.c: Rebuild.
4278 * target.c (target_stop_recording): Unconditionally delegate.
4279 * target.h (struct target_ops) <to_stop_recording>: Use
4280 TARGET_DEFAULT_IGNORE.
4282 2014-02-19 Tom Tromey <tromey@redhat.com>
4284 * target-delegates.c: Rebuild.
4285 * target.c (target_enable_btrace): Unconditionally delegate.
4286 * target.h (struct target_ops) <to_enable_btrace>: Use
4287 TARGET_DEFAULT_NORETURN.
4289 2014-02-19 Tom Tromey <tromey@redhat.com>
4291 * target-delegates.c: Rebuild.
4292 * target.c (target_read_btrace): Unconditionally delegate.
4293 * target.h (struct target_ops) <to_read_btrace>: Use
4294 TARGET_DEFAULT_NORETURN.
4296 2014-02-19 Tom Tromey <tromey@redhat.com>
4298 * target-delegates.c: Rebuild.
4299 * target.c (target_teardown_btrace): Unconditionally delegate.
4300 * target.h (struct target_ops) <to_teardown_btrace>: Use
4301 TARGET_DEFAULT_NORETURN.
4303 2014-02-19 Tom Tromey <tromey@redhat.com>
4305 * target-delegates.c: Rebuild.
4306 * target.c (target_disable_btrace): Unconditionally delegate.
4307 * target.h (struct target_ops) <to_disable_btrace>: Use
4308 TARGET_DEFAULT_NORETURN.
4310 2014-02-19 Tom Tromey <tromey@redhat.com>
4312 * target-delegates.c: Rebuild.
4313 * target.c (default_search_memory): New function.
4314 (simple_search_memory): Update comment.
4315 (target_search_memory): Unconditionally delegate.
4316 * target.h (struct target_ops) <to_search_memory>: Use
4317 TARGET_DEFAULT_FUNC.
4319 2014-02-19 Tom Tromey <tromey@redhat.com>
4321 * auxv.c (default_auxv_parse): No longer static.
4322 (target_auxv_parse): Unconditionally delegate.
4323 * auxv.h (default_auxv_parse): Declare.
4324 * target-delegates.c: Rebuild.
4325 * target.c: Include auxv.h.
4326 * target.h (struct target_ops) <to_auxv_parse>: Use
4327 TARGET_DEFAULT_FUNC.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target-delegates.c: Rebuild.
4332 * target.c (target_memory_map): Unconditionally delegate.
4333 * target.h (struct target_ops) <to_memory_map>: Use
4334 TARGET_DEFAULT_RETURN.
4336 2014-02-19 Tom Tromey <tromey@redhat.com>
4338 * target-delegates.c: Rebuild.
4339 * target.c (target_thread_alive): Unconditionally delegate.
4340 * target.h (struct target_ops) <to_thread_alive>: Use
4341 TARGET_DEFAULT_RETURN.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target-delegates.c: Rebuild.
4346 * target.c (target_save_record): Unconditionally delegate.
4347 * target.h (struct target_ops) <to_save_record>: Use
4348 TARGET_DEFAULT_NORETURN.
4350 2014-02-19 Tom Tromey <tromey@redhat.com>
4352 * target-delegates.c: Rebuild.
4353 * target.c (target_delete_record): Unconditionally delegate.
4354 * target.h (struct target_ops) <to_delete_record>: Use
4355 TARGET_DEFAULT_NORETURN.
4357 2014-02-19 Tom Tromey <tromey@redhat.com>
4359 * target-delegates.c: Rebuild.
4360 * target.c (target_record_is_replaying): Unconditionally
4362 * target.h (struct target_ops) <to_record_is_replaying>: Use
4363 TARGET_DEFAULT_RETURN.
4365 2014-02-19 Tom Tromey <tromey@redhat.com>
4367 * target-delegates.c: Rebuild.
4368 * target.c (target_goto_record_begin): Unconditionally delegate.
4369 * target.h (struct target_ops) <to_goto_record_begin>: Use
4370 TARGET_DEFAULT_NORETURN.
4372 2014-02-19 Tom Tromey <tromey@redhat.com>
4374 * target-delegates.c: Rebuild.
4375 * target.c (target_goto_record_end): Unconditionally delegate.
4376 * target.h (struct target_ops) <to_goto_record_end>: Use
4377 TARGET_DEFAULT_NORETURN.
4379 2014-02-19 Tom Tromey <tromey@redhat.com>
4381 * target-delegates.c: Rebuild.
4382 * target.c (target_goto_record): Unconditionally delegate.
4383 * target.h (struct target_ops) <to_goto_record>: Use
4384 TARGET_DEFAULT_NORETURN.
4386 2014-02-19 Tom Tromey <tromey@redhat.com>
4388 * target-delegates.c: Rebuild.
4389 * target.c (target_insn_history): Unconditionally delegate.
4390 * target.h (struct target_ops) <to_insn_history>: Use
4391 TARGET_DEFAULT_NORETURN.
4393 2014-02-19 Tom Tromey <tromey@redhat.com>
4395 * target-delegates.c: Rebuild.
4396 * target.c (target_insn_history_from): Unconditionally delegate.
4397 * target.h (struct target_ops) <to_insn_history_from>: Use
4398 TARGET_DEFAULT_NORETURN.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target-delegates.c: Rebuild.
4403 * target.c (target_insn_history_range): Unconditionally delegate.
4404 * target.h (struct target_ops) <to_insn_history_range>: Use
4405 TARGET_DEFAULT_NORETURN.
4407 2014-02-19 Tom Tromey <tromey@redhat.com>
4409 * target-delegates.c: Rebuild.
4410 * target.c (target_call_history): Unconditionally delegate.
4411 * target.h (struct target_ops) <to_call_history>: Use
4412 TARGET_DEFAULT_NORETURN.
4414 2014-02-19 Tom Tromey <tromey@redhat.com>
4416 * target-delegates.c: Rebuild.
4417 * target.c (target_call_history_from): Unconditionally delegate.
4418 * target.h (struct target_ops) <to_call_history_from>: Use
4419 TARGET_DEFAULT_NORETURN.
4421 2014-02-19 Tom Tromey <tromey@redhat.com>
4423 * target-delegates.c: Rebuild.
4424 * target.c (target_call_history_range): Unconditionally delegate.
4425 * target.h (struct target_ops) <to_call_history_range>: Use
4426 TARGET_DEFAULT_NORETURN.
4428 2014-02-19 Tom Tromey <tromey@redhat.com>
4430 * target-delegates.c: Rebuild.
4431 * target.c (target_verify_memory): Unconditionally delegate.
4432 * target.h (struct target_ops) <to_verify_memory>: Use
4433 TARGET_DEFAULT_NORETURN.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (target_core_of_thread): Unconditionally delegate.
4439 * target.h (struct target_ops) <to_core_of_thread>: Use
4440 TARGET_DEFAULT_RETURN.
4442 2014-02-19 Tom Tromey <tromey@redhat.com>
4444 * target-delegates.c: Rebuild.
4445 * target.c (target_flash_done): Unconditionally delegate.
4446 * target.h (struct target_ops) <to_flash_done>: Use
4447 TARGET_DEFAULT_NORETURN.
4449 2014-02-19 Tom Tromey <tromey@redhat.com>
4451 * target-delegates.c: Rebuild.
4452 * target.c (target_flash_erase): Unconditionally delegate.
4453 * target.h (struct target_ops) <to_flash_erase>: Use
4454 TARGET_DEFAULT_NORETURN.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target-delegates.c: Rebuild.
4459 * target.c (target_get_section_table): Unconditionally delegate.
4460 * target.h (struct target_ops) <to_get_section_table>: Use
4461 TARGET_DEFAULT_RETURN.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target-delegates.c: Rebuild.
4466 * target.c (target_pid_to_str): Unconditionally delegate.
4467 (init_dummy_target): Don't initialize to_pid_to_str.
4468 (default_pid_to_str): Rename from dummy_pid_to_str.
4469 * target.h (struct target_ops) <to_pid_to_str>: Use
4470 TARGET_DEFAULT_FUNC.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (target_find_new_threads): Unconditionally delegate.
4476 * target.h (struct target_ops) <to_find_new_threads>: Use
4477 TARGET_DEFAULT_RETURN.
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target-delegates.c: Rebuild.
4482 * target.c (target_program_signals): Unconditionally delegate.
4483 * target.h (struct target_ops) <to_program_signals>: Use
4484 TARGET_DEFAULT_IGNORE.
4486 2014-02-19 Tom Tromey <tromey@redhat.com>
4488 * target-delegates.c: Rebuild.
4489 * target.c (target_pass_signals): Unconditionally delegate.
4490 * target.h (struct target_ops) <to_pass_signals>: Use
4491 TARGET_DEFAULT_IGNORE.
4493 2014-02-19 Tom Tromey <tromey@redhat.com>
4495 * target-delegates.c: Rebuild.
4496 * target.c (default_mourn_inferior): New function.
4497 (target_mourn_inferior): Unconditionally delegate.
4498 * target.h (struct target_ops) <to_mourn_inferior>: Use
4499 TARGET_DEFAULT_FUNC.
4501 2014-02-19 Tom Tromey <tromey@redhat.com>
4503 * target-delegates.c: Rebuild.
4504 * target.c (default_follow_fork): New function.
4505 (target_follow_fork): Unconditionally delegate.
4506 * target.h (struct target_ops) <to_follow_fork>: Use
4507 TARGET_DEFAULT_FUNC.
4509 2014-02-19 Tom Tromey <tromey@redhat.com>
4511 * target-delegates.c: Rebuild.
4512 * target.c (target_kill): Unconditionally delegate.
4513 * target.h (struct target_ops) <to_kill>: Use
4514 TARGET_DEFAULT_NORETURN.
4516 2014-02-19 Tom Tromey <tromey@redhat.com>
4518 * target-delegates.c: Rebuild.
4519 * target.c (target_masked_watch_num_registers): Unconditionally
4521 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4522 Use TARGET_DEFAULT_RETURN.
4524 2014-02-19 Tom Tromey <tromey@redhat.com>
4526 * target-delegates.c: Rebuild.
4527 * target.c (target_remove_mask_watchpoint): Unconditionally
4529 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4530 TARGET_DEFAULT_RETURN.
4532 2014-02-19 Tom Tromey <tromey@redhat.com>
4534 * target-delegates.c: Rebuild.
4535 * target.c (target_insert_mask_watchpoint): Unconditionally
4537 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4538 TARGET_DEFAULT_RETURN.
4540 2014-02-19 Tom Tromey <tromey@redhat.com>
4542 * target-delegates.c: Rebuild.
4543 * target.c (target_ranged_break_num_registers): Unconditionally
4545 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4546 Use TARGET_DEFAULT_RETURN.
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target-delegates.c: Rebuild.
4551 * target.c (target_fetch_registers): Unconditionally delegate.
4552 * target.h (struct target_ops) <to_fetch_registers>: Use
4553 TARGET_DEFAULT_NORETURN.
4555 2014-02-19 Tom Tromey <tromey@redhat.com>
4557 * target-delegates.c: Rebuild.
4558 * target.c (update_current_target): Don't inherit or default
4560 * target.h (struct target_ops) <to_stop>: Use
4561 TARGET_DEFAULT_IGNORE.
4563 2014-02-19 Tom Tromey <tromey@redhat.com>
4565 * target-delegates.c: Rebuild.
4566 * target.c (update_current_target): Don't inherit or default
4567 to_can_run_breakpoint_commands.
4568 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4569 Use TARGET_DEFAULT_RETURN.
4571 2014-02-19 Tom Tromey <tromey@redhat.com>
4573 * target-delegates.c: Rebuild.
4574 * target.c (update_current_target): Don't inherit or default
4575 to_supports_evaluation_of_breakpoint_conditions.
4576 * target.h (struct target_ops)
4577 <to_supports_evaluation_of_breakpoint_conditions>: Use
4578 TARGET_DEFAULT_RETURN.
4580 2014-02-19 Tom Tromey <tromey@redhat.com>
4582 * target-delegates.c: Rebuild.
4583 * target.c (update_current_target): Don't inherit or default
4584 to_augmented_libraries_svr4_read.
4585 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4586 Use TARGET_DEFAULT_RETURN.
4588 2014-02-19 Tom Tromey <tromey@redhat.com>
4590 * target-delegates.c: Rebuild.
4591 * target.c (update_current_target): Don't inherit or default
4593 * target.h (struct target_ops) <to_can_use_agent>: Use
4594 TARGET_DEFAULT_RETURN.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target-delegates.c: Rebuild.
4599 * target.c (update_current_target): Don't inherit or default
4601 * target.h (struct target_ops) <to_use_agent>: Use
4602 TARGET_DEFAULT_NORETURN.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target-delegates.c: Rebuild.
4607 * target.c (update_current_target): Don't inherit or default
4609 (return_null): Remove.
4610 * target.h (struct target_ops) <to_traceframe_info>: Use
4611 TARGET_DEFAULT_RETURN.
4613 2014-02-19 Tom Tromey <tromey@redhat.com>
4615 * target-delegates.c: Rebuild.
4616 * target.c (update_current_target): Don't inherit or default
4617 to_static_tracepoint_markers_by_strid.
4618 * target.h (struct target_ops)
4619 <to_static_tracepoint_markers_by_strid>: Use
4620 TARGET_DEFAULT_NORETURN.
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * target-delegates.c: Rebuild.
4625 * target.c (update_current_target): Don't inherit or default
4626 to_static_tracepoint_marker_at.
4627 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4628 Use TARGET_DEFAULT_RETURN.
4630 2014-02-19 Tom Tromey <tromey@redhat.com>
4632 * target-delegates.c: Rebuild.
4633 * target.c (update_current_target): Don't inherit or default
4635 * target.h (struct target_ops) <to_set_permissions>: Use
4636 TARGET_DEFAULT_IGNORE.
4638 2014-02-19 Tom Tromey <tromey@redhat.com>
4640 * target-delegates.c: Rebuild.
4641 * target.c (update_current_target): Don't inherit or default
4643 * target.h (struct target_ops) <to_get_tib_address>: Use
4644 TARGET_DEFAULT_NORETURN.
4646 2014-02-19 Tom Tromey <tromey@redhat.com>
4648 * target-delegates.c: Rebuild.
4649 * target.c (update_current_target): Don't inherit or default
4651 * target.h (struct target_ops) <to_set_trace_notes>: Use
4652 TARGET_DEFAULT_RETURN.
4654 2014-02-19 Tom Tromey <tromey@redhat.com>
4656 * target-delegates.c: Rebuild.
4657 * target.c (update_current_target): Don't initialize
4658 to_set_trace_buffer_size.
4659 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4660 TARGET_DEFAULT_IGNORE.
4662 2014-02-19 Tom Tromey <tromey@redhat.com>
4664 * target-delegates.c: Rebuild.
4665 * target.c (update_current_target): Don't inherit or default
4666 to_set_circular_trace_buffer.
4667 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4668 TARGET_DEFAULT_IGNORE.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target-delegates.c: Rebuild.
4673 * target.c (update_current_target): Don't inherit or default
4674 to_set_disconnected_tracing.
4675 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4676 TARGET_DEFAULT_IGNORE.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (update_current_target): Don't inherit or default
4682 to_get_min_fast_tracepoint_insn_len.
4683 (return_minus_one): Remove.
4684 * target.h (struct target_ops)
4685 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4687 2014-02-19 Tom Tromey <tromey@redhat.com>
4689 * target-delegates.c: Rebuild.
4690 * target.c (update_current_target): Don't inherit or default
4691 to_get_raw_trace_data.
4692 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4693 TARGET_DEFAULT_NORETURN.
4695 2014-02-19 Tom Tromey <tromey@redhat.com>
4697 * target-delegates.c: Rebuild.
4698 * target.c (update_current_target): Don't inherit or default
4699 to_upload_trace_state_variables.
4700 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4701 Use TARGET_DEFAULT_RETURN.
4703 2014-02-19 Tom Tromey <tromey@redhat.com>
4705 * target-delegates.c: Rebuild.
4706 * target.c (update_current_target): Don't inherit or default
4707 to_upload_tracepoints.
4708 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4709 TARGET_DEFAULT_RETURN.
4711 2014-02-19 Tom Tromey <tromey@redhat.com>
4713 * target-delegates.c: Rebuild.
4714 * target.c (update_current_target): Don't inherit or default
4716 * target.h (struct target_ops) <to_save_trace_data>: Use
4717 TARGET_DEFAULT_NORETURN.
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target-delegates.c: Rebuild.
4722 * target.c (update_current_target): Don't inherit or default
4723 to_get_trace_state_variable_value.
4724 * target.h (struct target_ops)
4725 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4727 2014-02-19 Tom Tromey <tromey@redhat.com>
4729 * target-delegates.c: Rebuild.
4730 * target.c (update_current_target): Don't inherit or default
4732 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4734 2014-02-19 Tom Tromey <tromey@redhat.com>
4736 * target-delegates.c: Rebuild.
4737 * target.c (update_current_target): Don't inherit or default
4739 * target.h (struct target_ops) <to_trace_stop>: Use
4740 TARGET_DEFAULT_NORETURN.
4742 2014-02-19 Tom Tromey <tromey@redhat.com>
4744 * target-delegates.c: Rebuild.
4745 * target.c (update_current_target): Don't inherit or default
4746 to_get_tracepoint_status.
4747 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4748 TARGET_DEFAULT_NORETURN.
4750 2014-02-19 Tom Tromey <tromey@redhat.com>
4752 * target-delegates.c: Rebuild.
4753 * target.c (update_current_target): Don't inherit or default
4754 to_get_trace_status.
4755 * target.h (struct target_ops) <to_get_trace_status>: Use
4756 TARGET_DEFAULT_RETURN.
4758 2014-02-19 Tom Tromey <tromey@redhat.com>
4760 * target-delegates.c: Rebuild.
4761 * target.c (update_current_target): Don't inherit or default
4763 * target.h (struct target_ops) <to_trace_start>: Use
4764 TARGET_DEFAULT_NORETURN.
4766 2014-02-19 Tom Tromey <tromey@redhat.com>
4768 * target-delegates.c: Rebuild.
4769 * target.c (update_current_target): Don't inherit or default
4770 to_trace_set_readonly_regions.
4771 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4772 Use TARGET_DEFAULT_NORETURN.
4774 2014-02-19 Tom Tromey <tromey@redhat.com>
4776 * target-delegates.c: Rebuild.
4777 * target.c (update_current_target): Don't inherit or default
4778 to_disable_tracepoint.
4779 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4780 TARGET_DEFAULT_NORETURN.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target-delegates.c: Rebuild.
4785 * target.c (update_current_target): Don't inherit or default
4786 to_enable_tracepoint.
4787 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4788 TARGET_DEFAULT_NORETURN.
4790 2014-02-19 Tom Tromey <tromey@redhat.com>
4792 * target-delegates.c: Rebuild.
4793 * target.c (update_current_target): Don't inherit or default
4794 to_download_trace_state_variable.
4795 * target.h (struct target_ops) <to_download_trace_state_variable>:
4796 Use TARGET_DEFAULT_NORETURN.
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * target-delegates.c: Rebuild.
4801 * target.c (update_current_target): Don't inherit or default
4802 to_can_download_tracepoint.
4803 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4804 TARGET_DEFAULT_RETURN.
4806 2014-02-19 Tom Tromey <tromey@redhat.com>
4808 * target-delegates.c: Rebuild.
4809 * target.c (update_current_target): Don't inherit or default
4810 to_download_tracepoint.
4811 * target.h (struct target_ops) <to_download_tracepoint>: Use
4812 TARGET_DEFAULT_NORETURN.
4814 2014-02-19 Tom Tromey <tromey@redhat.com>
4816 * target-delegates.c: Rebuild.
4817 * target.c (update_current_target): Don't inherit or default
4819 * target.h (struct target_ops) <to_trace_init>: Use
4820 TARGET_DEFAULT_RETURN.
4822 2014-02-19 Tom Tromey <tromey@redhat.com>
4824 * target-delegates.c: Rebuild.
4825 * target.c (update_current_target): Don't inherit or default
4826 to_supports_string_tracing.
4827 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4828 TARGET_DEFAULT_RETURN.
4830 2014-02-19 Tom Tromey <tromey@redhat.com>
4832 * target-delegates.c: Rebuild.
4833 * target.c (update_current_target): Don't inherit or default
4834 to_supports_enable_disable_tracepoint.
4835 * target.h (struct target_ops)
4836 <to_supports_enable_disable_tracepoint>: Use
4837 TARGET_DEFAULT_RETURN.
4839 2014-02-19 Tom Tromey <tromey@redhat.com>
4841 * target-delegates.c: Rebuild.
4842 * target.c (update_current_target): Don't inherit or default
4843 to_supports_multi_process.
4844 * target.h (struct target_ops) <to_supports_multi_process>: Use
4845 TARGET_DEFAULT_RETURN.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target-delegates.c: Rebuild.
4850 * target.c (update_current_target): Don't inherit or default
4851 to_get_ada_task_ptid.
4852 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4853 TARGET_DEFAULT_FUNC.
4855 2014-02-19 Tom Tromey <tromey@redhat.com>
4857 * target-delegates.c: Rebuild.
4858 * target.c (update_current_target): Don't inherit or default
4859 to_thread_architecture.
4860 * target.h (struct target_ops) <to_thread_architecture>: Use
4861 TARGET_DEFAULT_FUNC.
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
4867 to_execution_direction.
4868 * target.h (struct target_ops) <to_execution_direction>: Use
4869 TARGET_DEFAULT_FUNC.
4871 2014-02-19 Tom Tromey <tromey@redhat.com>
4873 * target-delegates.c: Rebuild.
4874 * target.c (update_current_target): Don't inherit or default
4875 to_can_execute_reverse.
4876 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4877 TARGET_DEFAULT_RETURN.
4878 (target_can_execute_reverse): Unconditionally delegate.
4880 2014-02-19 Tom Tromey <tromey@redhat.com>
4882 * target-delegates.c: Rebuild.
4883 * target.c (update_current_target): Don't inherit or default
4885 (dummy_goto_bookmark): Remove.
4886 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4887 * target.h (struct target_ops) <to_goto_bookmark>: Use
4888 TARGET_DEFAULT_NORETURN.
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target-delegates.c: Rebuild.
4893 * target.c (update_current_target): Don't inherit or default
4895 (dummy_get_bookmark): Remove.
4896 (init_dummy_target): Don't inherit or default to_get_bookmark.
4897 * target.h (struct target_ops) <to_get_bookmark>: Use
4898 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
4905 (init_dummy_target): Don't initialize to_make_corefile_notes.
4906 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4907 TARGET_DEFAULT_FUNC.
4909 2014-02-19 Tom Tromey <tromey@redhat.com>
4911 * target-delegates.c: Rebuild.
4912 * target.c (update_current_target): Don't inherit or default
4913 to_find_memory_regions.
4914 (init_dummy_target): Don't initialize to_find_memory_regions.
4915 * target.h (struct target_ops) <to_find_memory_regions>: Use
4916 TARGET_DEFAULT_FUNC.
4918 2014-02-19 Tom Tromey <tromey@redhat.com>
4920 * target-delegates.c: Rebuild.
4921 * target.c (update_current_target): Don't inherit or default
4923 * target.h (struct target_ops) <to_log_command>: Use
4924 TARGET_DEFAULT_IGNORE.
4925 (target_log_command): Unconditionally delegate.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (update_current_target): Don't inherit or default
4931 to_pid_to_exec_file.
4932 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4933 TARGET_DEFAULT_RETURN.
4935 2014-02-19 Tom Tromey <tromey@redhat.com>
4937 * target-delegates.c: Rebuild.
4938 * target.c (update_current_target): Don't inherit or default
4940 (target_thread_name): Unconditionally delegate.
4941 * target.h (struct target_ops) <to_thread_name>: Use
4942 TARGET_DEFAULT_RETURN.
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target-delegates.c: Rebuild.
4947 * target.c (update_current_target): Don't inherit or default
4948 to_extra_thread_info.
4949 * target.h (struct target_ops) <to_extra_thread_info>: Use
4950 TARGET_DEFAULT_RETURN.
4952 2014-02-19 Tom Tromey <tromey@redhat.com>
4954 * target-delegates.c: Rebuild.
4955 * target.c (update_current_target): Don't inherit or default
4957 * target.h (struct target_ops) <to_has_exited>: Use
4958 TARGET_DEFAULT_RETURN..
4960 2014-02-19 Tom Tromey <tromey@redhat.com>
4962 * target-delegates.c: Rebuild.
4963 * target.c (update_current_target): Don't inherit or default
4964 to_set_syscall_catchpoint.
4965 (return_one): Remove.
4966 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4967 TARGET_DEFAULT_RETURN.
4969 2014-02-19 Tom Tromey <tromey@redhat.com>
4971 * target-delegates.c: Rebuild.
4972 * target.c (update_current_target): Don't inherit or default
4973 to_insert_exec_catchpoint.
4974 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4975 TARGET_DEFAULT_RETURN.
4977 2014-01-08 Tom Tromey <tromey@redhat.com>
4979 * target-delegates.c: Rebuild.
4980 * target.c (update_current_target): Don't inherit or default
4981 to_insert_exec_catchpoint.
4982 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4983 TARGET_DEFAULT_RETURN.
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * target-delegates.c: Rebuild.
4988 * target.c (update_current_target): Don't inherit or default
4989 to_remove_vfork_catchpoint.
4990 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4991 TARGET_DEFAULT_RETURN.
4993 2014-02-19 Tom Tromey <tromey@redhat.com>
4995 * target-delegates.c: Rebuild.
4996 * target.c (update_current_target): Don't inherit or default
4997 to_insert_vfork_catchpoint.
4998 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4999 TARGET_DEFAULT_RETURN.
5001 2014-02-19 Tom Tromey <tromey@redhat.com>
5003 * target-delegates.c: Rebuild.
5004 * target.c (update_current_target): Don't inherit or default
5005 to_remove_fork_catchpoint.
5006 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5007 TARGET_DEFAULT_RETURN.
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target-delegates.c: Rebuild.
5012 * target.c (update_current_target): Don't inherit or default
5013 to_insert_fork_catchpoint.
5014 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5015 TARGET_DEFAULT_RETURN.
5017 2014-02-19 Tom Tromey <tromey@redhat.com>
5019 * target-delegates.c: Rebuild.
5020 * target.c (update_current_target): Don't inherit or default
5021 to_post_startup_inferior.
5022 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5023 TARGET_DEFAULT_IGNORE.
5025 2014-02-19 Tom Tromey <tromey@redhat.com>
5027 * target-delegates.c: Rebuild.
5028 * target.c (update_current_target): Don't inherit or default
5030 * target.h (struct target_ops) <to_load>: Use
5031 TARGET_DEFAULT_NORETURN.
5033 2014-02-19 Tom Tromey <tromey@redhat.com>
5035 * target-delegates.c: Rebuild.
5036 * target.c (update_current_target): Don't inherit or default
5038 * target.h (struct target_ops) <to_terminal_info>: Use
5039 TARGET_DEFAULT_FUNC.
5041 2014-02-19 Tom Tromey <tromey@redhat.com>
5043 * target-delegates.c: Rebuild.
5044 * target.c (update_current_target): Don't inherit or default
5045 to_terminal_save_ours.
5046 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5047 TARGET_DEFAULT_IGNORE.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target-delegates.c: Rebuild.
5052 * target.c (update_current_target): Don't inherit or default
5054 * target.h (struct target_ops) <to_terminal_ours>: Use
5055 TARGET_DEFAULT_IGNORE.
5057 2014-02-19 Tom Tromey <tromey@redhat.com>
5059 * target-delegates.c: Rebuild.
5060 * target.c (update_current_target): Don't inherit or default
5061 to_terminal_ours_for_output.
5062 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5063 TARGET_DEFAULT_IGNORE.
5065 2014-02-19 Tom Tromey <tromey@redhat.com>
5067 * target-delegates.c: Rebuild.
5068 * target.c (update_current_target): Don't inherit or default
5069 to_terminal_inferior.
5070 * target.h (struct target_ops) <to_terminal_inferior>: Use
5071 TARGET_DEFAULT_IGNORE.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (update_current_target): Don't inherit or default
5078 * target.h (struct target_ops) <to_terminal_init>: Use
5079 TARGET_DEFAULT_IGNORE.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (update_current_target): Don't inherit or default
5085 to_can_accel_watchpoint_condition.
5086 * target.h (struct target_ops)
5087 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5089 2014-02-19 Tom Tromey <tromey@redhat.com>
5091 * target-delegates.c: Rebuild.
5092 * target.c (update_current_target): Don't inherit or default
5093 to_region_ok_for_hw_watchpoint.
5094 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5095 Use TARGET_DEFAULT_FUNC.
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5099 * target-delegates.c: Rebuild.
5100 * target.c (update_current_target): Don't inherit or default
5101 to_watchpoint_addr_within_range.
5102 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5103 Use TARGET_DEFAULT_FUNC.
5105 2014-02-19 Tom Tromey <tromey@redhat.com>
5107 * target-delegates.c: Rebuild.
5108 * target.c (update_current_target): Don't inherit or default
5109 to_remove_watchpoint.
5110 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5111 TARGET_DEFAULT_NORETURN.
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target-delegates.c: Rebuild.
5116 * target.c (update_current_target): Don't inherit or default
5117 to_insert_watchpoint.
5118 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5119 TARGET_DEFAULT_RETURN.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target-delegates.c: Rebuild.
5124 * target.c (update_current_target): Don't inherit or default
5125 to_remove_hw_breakpoint.
5126 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5127 TARGET_DEFAULT_RETURN.
5129 2014-02-19 Tom Tromey <tromey@redhat.com>
5131 * target-delegates.c: Rebuild.
5132 * target.c (update_current_target): Don't inherit or default
5133 to_insert_hw_breakpoint.
5134 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5135 TARGET_DEFAULT_RETURN.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (update_current_target): Don't inherit or default
5141 to_can_use_hw_breakpoint.
5142 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5143 TARGET_DEFAULT_RETURN.
5145 2014-02-19 Tom Tromey <tromey@redhat.com>
5147 * target-delegates.c: Rebuild.
5148 * target.c (update_current_target): Don't inherit or default
5150 * target.h (struct target_ops) <to_files_info>: Use
5151 TARGET_DEFAULT_IGNORE.
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5155 * target-delegates.c: Rebuild.
5156 * target.c (update_current_target): Don't inherit or default
5158 * target.h (struct target_ops) <to_store>: Use
5159 TARGET_DEFAULT_NORETURN.
5161 2014-02-19 Tom Tromey <tromey@redhat.com>
5163 * target-delegates.c: Rebuild.
5164 * target.c (update_current_target): Don't inherit or default
5166 * target.h (struct target_ops) <to_post_attach>: Use
5167 TARGET_DEFAULT_IGNORE.
5169 2014-02-19 Tom Tromey <tromey@redhat.com>
5171 * target-delegates.c: Rebuild.
5172 * target.c (update_current_target): Don't inherit or default
5174 (default_rcmd): New function.
5175 (do_monitor_command): Unconditionally delegate.
5176 * target.h (struct target_ops) <to_rmcd>: Use
5177 TARGET_DEFAULT_FUNC.
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target-delegates.c: Rebuild.
5182 * target.c (init_dummy_target): Don't initialize to_attach.
5183 (target_attach): Unconditionally delegate.
5184 * target.h (struct target_ops) <to_attach>: Use
5185 TARGET_DEFAULT_FUNC.
5187 2014-02-19 Tom Tromey <tromey@redhat.com>
5189 * target-delegates.c: Rebuild.
5190 * target.c (target_detach): Unconditionally delegate.
5191 (init_dummy_target): Don't initialize to_detach.
5192 * target.h (struct target_ops) <to_detach>: Use
5193 TARGET_DEFAULT_IGNORE.
5195 2014-02-19 Tom Tromey <tromey@redhat.com>
5197 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5199 (target_augmented_libraries_svr4_read): Add argument.
5200 * target.c (update_current_target): Update.
5201 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5204 2014-02-19 Tom Tromey <tromey@redhat.com>
5206 * target.h (struct target_ops) <to_call_history_range>: Add
5208 * target.c (target_call_history_range): Add argument.
5209 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5211 (record_btrace_call_history_from): Update.
5213 2014-02-19 Tom Tromey <tromey@redhat.com>
5215 * target.h (struct target_ops) <to_call_history_from>: Add
5217 * target.c (target_call_history_from): Add argument.
5218 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5221 2014-02-19 Tom Tromey <tromey@redhat.com>
5223 * target.h (struct target_ops) <to_call_history>: Add argument.
5224 * target.c (target_call_history): Add argument.
5225 * record-btrace.c (record_btrace_call_history): Add 'self'
5228 2014-02-19 Tom Tromey <tromey@redhat.com>
5230 * target.h (struct target_ops) <to_insn_history_range>: Add
5232 * target.c (target_insn_history_range): Add argument.
5233 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5235 (record_btrace_insn_history_from): Update.
5237 2014-02-19 Tom Tromey <tromey@redhat.com>
5239 * target.h (struct target_ops) <to_insn_history_from>: Add
5241 * target.c (target_insn_history_from): Add argument.
5242 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5245 2014-02-19 Tom Tromey <tromey@redhat.com>
5247 * target.h (struct target_ops) <to_insn_history>: Add argument.
5248 * target.c (target_insn_history): Add argument.
5249 * record-btrace.c (record_btrace_insn_history): Add 'self'
5252 2014-02-19 Tom Tromey <tromey@redhat.com>
5254 * target.h (struct target_ops) <to_goto_record>: Add argument.
5255 * target.c (target_goto_record): Add argument.
5256 * record-full.c (record_full_goto): Add 'self' argument.
5257 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5259 2014-02-19 Tom Tromey <tromey@redhat.com>
5261 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5262 * target.c (target_goto_record_end): Add argument.
5263 * record-full.c (record_full_goto_end): Add 'self' argument.
5264 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5266 2014-02-19 Tom Tromey <tromey@redhat.com>
5268 * target.h (struct target_ops) <to_goto_record_begin>: Add
5270 * target.c (target_goto_record_begin): Add argument.
5271 * record-full.c (record_full_goto_begin): Add 'self' argument.
5272 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5275 2014-02-19 Tom Tromey <tromey@redhat.com>
5277 * target.h (struct target_ops) <to_record_is_replaying>: Add
5279 * target.c (target_record_is_replaying): Add argument.
5280 * record-full.c (record_full_is_replaying): Add 'self' argument.
5281 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5283 (record_btrace_xfer_partial, record_btrace_store_registers)
5284 (record_btrace_prepare_to_store, record_btrace_resume)
5285 (record_btrace_wait, record_btrace_decr_pc_after_break)
5286 (record_btrace_find_new_threads, record_btrace_thread_alive):
5289 2014-02-19 Tom Tromey <tromey@redhat.com>
5291 * target.h (struct target_ops) <to_delete_record>: Add argument.
5292 * target.c (target_delete_record): Add argument.
5293 * record-full.c (record_full_delete): Add 'self' argument.
5295 2014-02-19 Tom Tromey <tromey@redhat.com>
5297 * target.h (struct target_ops) <to_save_record>: Add argument.
5298 * target.c (target_save_record): Add argument.
5299 * record-full.c (record_full_save): Add 'self' argument.
5300 (record_full_save): Add 'self' argument.
5302 2014-02-19 Tom Tromey <tromey@redhat.com>
5304 * target.h (struct target_ops) <to_info_record>: Add argument.
5305 * target.c (target_info_record): Add argument.
5306 * record.c (info_record_command): Add argument.
5307 * record-full.c (record_full_info): Add 'self' argument.
5308 * record-btrace.c (record_btrace_info): Add 'self' argument.
5310 2014-02-19 Tom Tromey <tromey@redhat.com>
5312 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5313 * target.c (target_stop_recording): Add argument.
5314 * record.c (record_stop): Add argument.
5315 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5321 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5322 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5324 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5325 (_initialize_amd64_linux_nat): Use it.
5326 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5327 (_initialize_i386_linux_nat): Use it.
5329 2014-02-19 Tom Tromey <tromey@redhat.com>
5331 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5332 * target.c (target_teardown_btrace): Add argument.
5333 * remote.c (remote_teardown_btrace): Add 'self' argument.
5334 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5336 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5339 2014-02-19 Tom Tromey <tromey@redhat.com>
5341 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5342 * target.c (target_disable_btrace): Add argument.
5343 * remote.c (remote_disable_btrace): Add 'self' argument.
5344 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5346 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5352 * target.c (target_enable_btrace): Add argument.
5353 * remote.c (remote_enable_btrace): Add 'self' argument.
5354 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5356 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5359 2014-02-19 Tom Tromey <tromey@redhat.com>
5361 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5362 (target_can_use_agent): Add argument.
5363 * target.c (update_current_target): Update.
5364 * remote.c (remote_can_use_agent): Add 'self' argument.
5365 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5367 2014-02-19 Tom Tromey <tromey@redhat.com>
5369 * target.h (struct target_ops) <to_use_agent>: Add argument.
5370 (target_use_agent): Add argument.
5371 * target.c (update_current_target): Update.
5372 * remote.c (remote_use_agent): Add 'self' argument.
5373 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5375 2014-02-19 Tom Tromey <tromey@redhat.com>
5377 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5378 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5379 (target_traceframe_info): Add argument.
5380 * target.c (update_current_target): Update.
5381 * remote.c (remote_traceframe_info): Add 'self' argument.
5382 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5384 2014-02-19 Tom Tromey <tromey@redhat.com>
5386 * target.h (target_static_tracepoint_markers_by_strid): Add
5388 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5390 * target.c (update_current_target): Update.
5391 * remote.c (struct target_ops)
5392 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5393 * linux-nat.c (struct target_ops)
5394 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5400 (target_static_tracepoint_marker_at): Add argument.
5401 * target.c (update_current_target): Update.
5402 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5405 2014-02-19 Tom Tromey <tromey@redhat.com>
5407 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5408 (target_set_permissions): Add argument.
5409 * target.c (update_current_target): Update.
5410 * remote.c (remote_set_permissions): Add 'self' argument.
5411 (remote_start_remote): Update.
5413 2014-02-19 Tom Tromey <tromey@redhat.com>
5415 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5416 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5417 (target_get_tib_address): Add argument.
5418 * target.c (update_current_target): Update.
5419 * remote.c (remote_get_tib_address): Add 'self' argument.
5421 2014-02-19 Tom Tromey <tromey@redhat.com>
5423 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5424 (target_set_trace_notes): Add argument.
5425 * target.c (update_current_target): Update.
5426 * remote.c (remote_set_trace_notes): Add 'self' argument.
5428 2014-02-19 Tom Tromey <tromey@redhat.com>
5430 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5432 (target_set_trace_buffer_size): Add argument.
5433 * target.c (update_current_target): Update.
5434 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5436 2014-02-19 Tom Tromey <tromey@redhat.com>
5438 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5440 (target_set_circular_trace_buffer): Add argument.
5441 * target.c (update_current_target): Update.
5442 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5445 2014-02-19 Tom Tromey <tromey@redhat.com>
5447 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5449 (target_set_disconnected_tracing): Add argument.
5450 * target.c (update_current_target): Update.
5451 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5453 2014-02-19 Tom Tromey <tromey@redhat.com>
5455 * target.h (struct target_ops)
5456 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5457 (target_get_min_fast_tracepoint_insn_len): Add argument.
5458 * target.c (update_current_target): Update.
5459 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5462 2014-02-19 Tom Tromey <tromey@redhat.com>
5464 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5466 (target_get_raw_trace_data): Add argument.
5467 * target.c (update_current_target): Update.
5468 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5474 (target_upload_trace_state_variables): Add argument.
5475 * target.c (update_current_target): Update.
5476 * remote.c (remote_upload_trace_state_variables): Add 'self'
5478 (remote_start_remote): Update.
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5482 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5484 (target_upload_tracepoints): Add argument.
5485 * target.c (update_current_target): Update.
5486 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5487 (remote_start_remote): Update.
5489 2014-02-19 Tom Tromey <tromey@redhat.com>
5491 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5492 (target_save_trace_data): Add argument.
5493 * target.c (update_current_target): Update.
5494 * remote.c (remote_save_trace_data): Add 'self' argument.
5496 2014-02-19 Tom Tromey <tromey@redhat.com>
5498 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5500 * target.h (struct target_ops)
5501 <to_get_trace_state_variable_value>: Add argument.
5502 (target_get_trace_state_variable_value): Add argument.
5503 * target.c (update_current_target): Update.
5504 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5506 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5511 * target.h (struct target_ops) <to_trace_find>: Add argument.
5512 (target_trace_find): Add argument.
5513 * target.c (update_current_target): Update.
5514 * remote.c (remote_trace_find): Add 'self' argument.
5515 * ctf.c (ctf_trace_find): Add 'self' argument.
5517 2014-02-19 Tom Tromey <tromey@redhat.com>
5519 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5520 (target_trace_stop): Add argument.
5521 * target.c (update_current_target): Update.
5522 * remote.c (remote_trace_stop): Add 'self' argument.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5527 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5529 (target_get_tracepoint_status): Add argument.
5530 * target.c (update_current_target): Update.
5531 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5536 * target.h (struct target_ops) <to_get_trace_status>: Add
5538 (target_get_trace_status): Add argument.
5539 * target.c (update_current_target): Update.
5540 * remote.c (remote_get_trace_status): Add 'self' argument.
5541 (remote_start_remote, remote_can_download_tracepoint): Update.
5542 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5544 2014-02-19 Tom Tromey <tromey@redhat.com>
5546 * target.h (struct target_ops) <to_trace_start>: Add argument.
5547 (target_trace_start): Add argument.
5548 * target.c (update_current_target): Update.
5549 * remote.c (remote_trace_start): Add 'self' argument.
5551 2014-02-19 Tom Tromey <tromey@redhat.com>
5553 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5555 (target_trace_set_readonly_regions): Add argument.
5556 * target.c (update_current_target): Update.
5557 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5560 2014-02-19 Tom Tromey <tromey@redhat.com>
5562 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5564 (target_disable_tracepoint): Add argument.
5565 * target.c (update_current_target): Update.
5566 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5568 2014-02-19 Tom Tromey <tromey@redhat.com>
5570 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5572 (target_enable_tracepoint): Add argument.
5573 * target.c (update_current_target): Update.
5574 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5576 2014-02-19 Tom Tromey <tromey@redhat.com>
5578 * target.h (struct target_ops) <to_download_trace_state_variable>:
5580 (target_download_trace_state_variable): Add argument.
5581 * target.c (update_current_target): Update.
5582 * remote.c (remote_download_trace_state_variable): Add 'self'
5585 2014-02-19 Tom Tromey <tromey@redhat.com>
5587 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5589 (target_can_download_tracepoint): Add argument.
5590 * target.c (update_current_target): Update.
5591 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5593 2014-02-19 Tom Tromey <tromey@redhat.com>
5595 * target.h (struct target_ops) <to_download_tracepoint>: Add
5597 (target_download_tracepoint): Add argument.
5598 * target.c (update_current_target): Update.
5599 * remote.c (remote_download_tracepoint): Add 'self' argument.
5601 2014-02-19 Tom Tromey <tromey@redhat.com>
5603 * target.h (struct target_ops) <to_trace_init>: Add argument.
5604 (target_trace_init): Add argument.
5605 * target.c (update_current_target): Update.
5606 * remote.c (remote_trace_init): Add 'self' argument.
5608 2014-02-19 Tom Tromey <tromey@redhat.com>
5610 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5611 * target.c (target_fileio_readlink): Add argument.
5612 * remote.c (remote_hostio_readlink): Add 'self' argument.
5613 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5615 2014-02-19 Tom Tromey <tromey@redhat.com>
5617 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5618 * target.c (target_fileio_unlink): Add argument.
5619 * remote.c (remote_hostio_unlink): Add 'self' argument.
5620 (remote_file_delete): Update.
5621 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5623 2014-02-19 Tom Tromey <tromey@redhat.com>
5625 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5626 * target.c (target_fileio_close): Add argument.
5627 * remote.c (remote_hostio_close): Add 'self' argument.
5628 (remote_hostio_close_cleanup): Update.
5629 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5631 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5633 2014-02-19 Tom Tromey <tromey@redhat.com>
5635 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5636 * target.c (target_fileio_pread): Add argument.
5637 * remote.c (remote_hostio_pread): Add 'self' argument.
5638 (remote_bfd_iovec_pread, remote_file_get): Update.
5639 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5641 2014-02-19 Tom Tromey <tromey@redhat.com>
5643 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5644 * target.c (target_fileio_pwrite): Add argument.
5645 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5646 (remote_file_put): Update.
5647 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5652 * target.c (target_fileio_open): Add argument.
5653 * remote.c (remote_hostio_open): Add 'self' argument.
5654 (remote_bfd_iovec_open): Add 'self' argument.
5655 (remote_file_put): Add 'self' argument.
5656 (remote_file_get): Add 'self' argument.
5657 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5661 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5663 (target_can_run_breakpoint_commands): Add argument.
5664 * target.c (update_current_target): Update.
5665 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5667 (remote_insert_breakpoint): Add 'self' argument.
5668 (remote_insert_hw_breakpoint): Add 'self' argument.
5669 (remote_can_run_breakpoint_commands): Add 'self' argument.
5671 2014-02-19 Tom Tromey <tromey@redhat.com>
5673 * target.h (struct target_ops)
5674 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5675 (target_supports_evaluation_of_breakpoint_conditions): Add
5677 * target.c (update_current_target): Update.
5678 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5680 (remote_insert_breakpoint): Add 'self' argument.
5681 (remote_insert_hw_breakpoint): Add 'self' argument.
5682 (remote_supports_cond_breakpoints): Add 'self' argument.
5684 2014-02-19 Tom Tromey <tromey@redhat.com>
5686 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5688 (target_supports_string_tracing): Add argument.
5689 * target.c (update_current_target): Update.
5690 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5692 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target.h (struct target_ops)
5695 <to_supports_disable_randomization>: Add argument.
5696 * target.c (find_default_supports_disable_randomization): Add
5698 (target_supports_disable_randomization): Add argument.
5699 (find_default_supports_disable_randomization): Add 'self'
5701 * remote.c (extended_remote_supports_disable_randomization): Add
5703 (remote_supports_disable_randomization): Add 'self' argument.
5704 (extended_remote_create_inferior): Update.
5705 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5708 2014-02-19 Tom Tromey <tromey@redhat.com>
5710 * target.h (struct target_ops)
5711 <to_supports_enable_disable_tracepoint>: Add argument.
5712 (target_supports_enable_disable_tracepoint): Add argument.
5713 * target.c (update_current_target): Update.
5714 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5717 2014-02-19 Tom Tromey <tromey@redhat.com>
5719 * target.h (struct target_ops) <to_supports_multi_process>: Add
5721 (target_supports_multi_process): Add argument.
5722 * target.c (update_current_target): Update.
5723 * remote.c (remote_supports_multi_process): Add 'self' argument.
5724 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5726 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops) <to_execution_direction>: Add
5733 (target_execution_direction): Add argument.
5734 * target.c (default_execution_direction): Add 'self' argument.
5735 * record-full.c (record_full_execution_direction): Add 'self'
5738 2014-02-19 Tom Tromey <tromey@redhat.com>
5740 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5742 (target_can_execute_reverse): Add argument.
5743 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5744 * record-full.c (record_full_can_execute_reverse): Add 'self'
5746 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5749 2014-02-19 Tom Tromey <tromey@redhat.com>
5751 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5752 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5754 (target_get_ada_task_ptid): Add argument.
5755 * target.c (update_current_target): Update.
5756 (default_get_ada_task_ptid): Add 'self' argument.
5757 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5758 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5759 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5761 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5763 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5765 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5767 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5768 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5773 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5774 (target_goto_bookmark): Add argument.
5775 * target.c (dummy_goto_bookmark): Add 'self' argument.
5776 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5778 2014-02-19 Tom Tromey <tromey@redhat.com>
5780 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5781 (target_get_bookmark): Add argument.
5782 * target.c (dummy_get_bookmark): Add 'self' argument.
5783 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5785 2014-02-19 Tom Tromey <tromey@redhat.com>
5787 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5789 (target_make_corefile_notes): Add argument.
5790 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5791 * procfs.c (procfs_make_note_section): Add 'self' argument.
5792 (procfs_make_note_section): Add 'self' argument.
5793 (procfs_make_note_section): Add 'self' argument.
5794 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5796 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5797 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5798 * exec.c (exec_make_note_section): Add 'self' argument.
5799 (exec_make_note_section): Add 'self' argument.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_find_memory_regions>: Add
5805 (target_find_memory_regions): Add argument.
5806 * target.c (dummy_find_memory_regions): Add 'self' argument.
5807 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5808 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5809 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5810 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5811 * exec. (exec_do_find_memory_regions): New global.
5812 (exec_set_find_memory_regions): Rewrite.
5813 (exec_find_memory_regions): New function.
5814 (init_exec_ops): Use exec_find_memory_regions.
5816 2014-02-19 Tom Tromey <tromey@redhat.com>
5818 * target.h (struct target_ops) <to_supports_non_stop>: Add
5820 * target.c (find_default_supports_non_stop): Add argument.
5821 (target_supports_non_stop): Add argument.
5822 (find_default_supports_non_stop): Add 'self' argument.
5823 * remote.c (remote_supports_non_stop): Add 'self' argument.
5824 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5826 2014-02-19 Tom Tromey <tromey@redhat.com>
5828 * target.h (struct target_ops) <to_log_command>: Add argument.
5829 (target_log_command): Add argument.
5830 * serial.h (serial_log_command): Add 'self' argument.
5831 * serial.c (serial_log_command): Add 'self' argument.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5836 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5838 (target_pid_to_exec_file): Add argument.
5839 * target.c (debug_to_pid_to_exec_file): Add argument.
5840 (update_current_target): Update.
5841 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5842 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5843 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5844 (linux_handle_extended_wait): Update.
5845 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5846 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5847 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5848 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target.h (struct target_ops) <to_rcmd>: Add argument.
5853 (target_rcmd): Add argument.
5854 * target.c (debug_to_rcmd): Add argument.
5855 (update_current_target, do_monitor_command): Update.
5856 * remote.c (remote_rcmd): Add 'self' argument.
5857 * monitor.c (monitor_rcmd): Add 'self' argument.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * windows-nat.c (windows_stop): Add 'self' argument.
5862 * target.h (struct target_ops) <to_stop>: Add argument.
5863 * target.c (target_stop): Add argument.
5864 (debug_to_stop): Add argument.
5865 (update_current_target): Update.
5866 * remote.c (remote_stop): Add 'self' argument.
5867 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5868 (gdbsim_cntrl_c): Update.
5869 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5870 * procfs.c (procfs_stop): Add 'self' argument.
5871 * nto-procfs.c (procfs_stop): Add 'self' argument.
5872 * monitor.c (monitor_stop): Add 'self' argument.
5873 (monitor_open): Update.
5874 * linux-nat.c (linux_nat_stop): Add argument.
5875 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5876 * gnu-nat.c (gnu_stop): Add 'self' argument.
5877 * darwin-nat.c (darwin_stop): Add 'self' argument.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target.h (struct target_ops) <to_thread_name>: Add argument.
5882 * target.c (target_thread_name): Add argument.
5883 (update_current_target): Update.
5884 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5888 * target.h (struct target_ops) <to_extra_thread_info>: Add
5890 (target_extra_thread_info): Add argument.
5891 * target.c (update_current_target): Update.
5892 * remote.c (remote_threads_extra_info): Add 'self' argument.
5893 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5895 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5896 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5897 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5899 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5901 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5903 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target.h (struct target_ops) <to_program_signals>: Add argument.
5909 * target.c (target_program_signals): Add argument.
5910 * remote.c (remote_program_signals): Add 'self' argument.
5912 2014-02-19 Tom Tromey <tromey@redhat.com>
5914 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5915 * target.c (target_pass_signals): Add argument.
5916 * remote.c (remote_pass_signals): Add 'self' argument.
5917 (remote_start_remote): Update.
5918 * procfs.c (procfs_pass_signals): Add 'self' argument.
5919 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5920 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5921 (linux_nat_create_inferior, linux_nat_attach): Update.
5923 2014-02-19 Tom Tromey <tromey@redhat.com>
5925 * windows-nat.c (windows_can_run): Add 'self' argument.
5926 * target.h (struct target_ops) <to_can_run>: Add argument.
5927 (target_can_run): Add argument.
5928 * target.c (debug_to_can_run): Add argument.
5929 (update_current_target): Update.
5930 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5931 * inf-child.c (inf_child_can_run): Add 'self' argument.
5932 * go32-nat.c (go32_can_run): Add 'self' argument.
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * target.h (struct target_ops) <to_has_exited>: Add argument.
5937 (target_has_exited): Add argument.
5938 * target.c (debug_to_has_exited): Add argument.
5939 (update_current_target): Update.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5945 (target_set_syscall_catchpoint): Add argument.
5946 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5948 * target.c (update_current_target): Update.
5950 2014-02-19 Tom Tromey <tromey@redhat.com>
5952 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5954 (target_remove_exec_catchpoint): Add argument.
5955 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5956 (update_current_target): Update.
5957 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5960 2014-02-19 Tom Tromey <tromey@redhat.com>
5962 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5964 (target_insert_exec_catchpoint): Add argument.
5965 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5966 (update_current_target): Update.
5967 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5974 (target_remove_vfork_catchpoint): Add argument.
5975 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5976 (update_current_target): Update.
5977 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5980 2014-02-19 Tom Tromey <tromey@redhat.com>
5982 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5984 (target_insert_vfork_catchpoint): Add argument.
5985 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5986 (update_current_target): Update.
5987 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5990 2014-02-19 Tom Tromey <tromey@redhat.com>
5992 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5994 (target_remove_fork_catchpoint): Add argument.
5995 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5996 (update_current_target): Update.
5997 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6000 2014-02-19 Tom Tromey <tromey@redhat.com>
6002 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6004 (target_insert_fork_catchpoint): Add argument.
6005 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6006 (update_current_target): Update.
6007 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6010 2014-02-19 Tom Tromey <tromey@redhat.com>
6012 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6014 (target_post_startup_inferior): Add argument.
6015 * target.c (debug_to_post_startup_inferior): Add argument.
6016 (update_current_target): Update.
6017 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6019 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6021 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6023 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6025 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6027 (super_post_startup_inferior): Likewise.
6028 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6030 (super_post_startup_inferior): Likewise.
6031 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6032 Add 'self' argument.
6033 (super_post_startup_inferior): Likewise.
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target.h (struct target_ops) <to_load>: Add argument.
6038 * target.c (target_load): Add argument.
6039 (debug_to_load): Add argument.
6040 (update_current_target): Update.
6041 * remote.c (remote_load): Add 'self' argument.
6042 * remote-sim.c (gdbsim_load): Add 'self' argument.
6043 * remote-mips.c (mips_load): Add 'self' argument.
6044 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6045 * monitor.c (monitor_load): Add 'self' argument.
6046 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6050 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6051 (target_terminal_info): Add argument.
6052 * target.c (debug_to_terminal_info): Add argument.
6053 (default_terminal_info): Likewise.
6054 * inflow.c (child_terminal_info): Add 'self' argument.
6055 * inferior.h (child_terminal_info): Add 'self' argument.
6056 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6062 (target_terminal_save_ours): Add argument.
6063 * target.c (debug_to_terminal_save_ours): Add argument.
6064 (update_current_target): Update.
6065 * inflow.c (terminal_save_ours): Add 'self' argument.
6066 * inferior.h (terminal_save_ours): Add 'self' argument.
6068 2014-02-19 Tom Tromey <tromey@redhat.com>
6070 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6071 (target_terminal_ours): Add argument.
6072 * target.c (debug_to_terminal_ours): Add argument.
6073 (update_current_target): Update.
6074 * remote.c (remote_terminal_ours): Add 'self' argument.
6075 (remote_close): Update.
6076 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6077 * inflow.c (terminal_ours): Add 'self' argument.
6078 * inferior.h (terminal_ours): Add 'self' argument.
6079 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6081 2014-02-19 Pedro Alves <palves@redhat.com>
6082 Tom Tromey <tromey@redhat.com>
6084 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6086 (target_terminal_ours_for_output): Add argument.
6087 * target.c (debug_to_terminal_ours_for_output): Add argument.
6088 (update_current_target): Update.
6089 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6090 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6091 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6095 * target.h (struct target_ops) <to_terminal_inferior>: Add
6097 * target.c (target_terminal_inferior): Add argument.
6098 (update_current_target): Update.
6099 * remote.c (remote_terminal_inferior): Add 'self' argument.
6100 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6101 * inflow.c (terminal_inferior): Add 'self' argument.
6102 * inferior.h (terminal_inferior): Add 'self' argument.
6103 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6104 (go32_terminal_inferior): Add 'self' argument.
6106 2014-02-19 Tom Tromey <tromey@redhat.com>
6108 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6109 (target_terminal_init): Add argument.
6110 * target.c (debug_to_terminal_init): Add argument.
6111 (update_current_target): Update.
6112 * inflow.c (terminal_init_inferior): Add 'self' argument.
6113 * inferior.h (terminal_init_inferior): Add 'self' argument.
6114 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6115 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6117 2014-02-19 Tom Tromey <tromey@redhat.com>
6119 * target.h (struct target_ops)
6120 <to_can_accel_watchpoint_condition>: Add argument.
6121 (target_can_accel_watchpoint_condition): Add argument.
6122 * target.c (debug_to_can_accel_watchpoint_condition): Add
6124 (update_current_target): Update.
6125 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6132 (target_region_ok_for_hw_watchpoint): Add argument.
6133 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6134 (default_region_ok_for_hw_watchpoint): Add argument.
6135 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6136 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6138 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6140 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6142 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6144 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6146 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6148 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6149 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6151 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6152 Add 'self' argument.
6154 2014-02-19 Tom Tromey <tromey@redhat.com>
6156 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6158 (target_insert_watchpoint): Add argument.
6159 * target.c (debug_to_insert_watchpoint): Add argument.
6160 (update_current_target): Update.
6161 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6162 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6163 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6164 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6165 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6166 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6168 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6169 (procfs_insert_hw_watchpoint): Add 'self' argument.
6170 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6172 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6174 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6176 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6177 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6179 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6182 2014-02-19 Tom Tromey <tromey@redhat.com>
6184 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6186 (target_remove_watchpoint): Add argument.
6187 * target.c (debug_to_remove_watchpoint): Add argument.
6188 (update_current_target): Update.
6189 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6190 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6191 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6192 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6193 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6194 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6196 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6197 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6199 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6201 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6203 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6204 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6206 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6213 (target_remove_hw_breakpoint): Add argument.
6214 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6215 (update_current_target): Update.
6216 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6217 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6219 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6220 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6222 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6225 2014-02-19 Tom Tromey <tromey@redhat.com>
6227 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6229 (target_insert_hw_breakpoint): Add argument.
6230 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6231 (update_current_target): Update.
6232 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6233 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6235 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6236 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6237 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6239 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6242 2014-02-19 Tom Tromey <tromey@redhat.com>
6244 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6246 (target_can_use_hardware_watchpoint): Add argument.
6247 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6248 (update_current_target): Update.
6249 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6251 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6253 * remote.c (remote_check_watch_resources): Add 'self' argument.
6254 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6255 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6257 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6258 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6260 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6262 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6264 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6266 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6268 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6270 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6271 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6273 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6276 2014-02-19 Tom Tromey <tromey@redhat.com>
6278 * target.h (struct target_ops) <to_post_attach>: Add argument.
6279 (target_post_attach): Add argument.
6280 * target.c (debug_to_post_attach): Add argument.
6281 (update_current_target): Update.
6282 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6283 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6284 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6285 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6286 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6288 2014-02-19 Tom Tromey <tromey@redhat.com>
6290 * windows-nat.c (windows_close): Add 'self' argument.
6291 * tracepoint.c (tfile_close): Add 'self' argument.
6292 * target.h (struct target_ops) <to_close>: Add argument.
6293 * target.c (target_close): Add argument.
6294 (update_current_target): Update.
6295 * remote.c (remote_close): Add 'self' argument.
6296 * remote-sim.c (gdbsim_close): Add 'self' argument.
6297 * remote-mips.c (mips_close): Add 'self' argument.
6298 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6299 * record-full.c (record_full_close): Add 'self' argument.
6300 * record-btrace.c (record_btrace_close): Add 'self' argument.
6301 * monitor.h (monitor_close): Add 'self' argument.
6302 * monitor.c (monitor_close): Add 'self' argument.
6303 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6304 * linux-nat.c (linux_nat_close): Add argument.
6305 * go32-nat.c (go32_close): Add 'self' argument.
6306 * exec.c (exec_close_1): Add 'self' argument.
6307 * ctf.c (ctf_close): Add 'self' argument.
6308 * corelow.c (core_close): Add 'self' argument.
6309 (core_close_cleanup): Update.
6310 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6311 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * remote.c (remote_load): New function.
6316 (init_remote_ops): Use it.
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6322 * common/linux-btrace.h (linux_supports_btrace): Update.
6323 * remote.c (remote_supports_btrace): Add "self" argument.
6324 * target-delegates.c: Rebuild.
6325 * target.c (target_supports_btrace): Remove.
6326 * target.h (struct target_ops) <to_supports_btrace>: Add
6327 target_ops argument.
6328 (target_supports_btrace): New define.
6330 2014-02-19 Tom Tromey <tromey@redhat.com>
6332 * record-full.c (record_full_beneath_to_resume_ops)
6333 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6334 (record_full_beneath_to_wait)
6335 (record_full_beneath_to_store_registers_ops)
6336 (record_full_beneath_to_store_registers)
6337 (record_full_beneath_to_xfer_partial_ops)
6338 (record_full_beneath_to_xfer_partial)
6339 (record_full_beneath_to_insert_breakpoint_ops)
6340 (record_full_beneath_to_insert_breakpoint)
6341 (record_full_beneath_to_remove_breakpoint_ops)
6342 (record_full_beneath_to_remove_breakpoint)
6343 (record_full_beneath_to_stopped_by_watchpoint)
6344 (record_full_beneath_to_stopped_data_address)
6345 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6346 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6347 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6348 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6349 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6350 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6351 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6352 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6353 (record_full_resume, record_full_wait_1)
6354 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6355 (record_full_store_registers, record_full_xfer_partial)
6356 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6357 (record_full_async, record_full_core_xfer_partial): Use target
6359 * target-delegates.c: Rebuild.
6360 * target.c (current_xfer_partial): Remove.
6361 (update_current_target): Do not INHERIT or de_fault
6362 to_insert_breakpoint, to_remove_breakpoint,
6363 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6364 to_is_async_p, to_async. Do not set to_xfer_partial field.
6365 (default_xfer_partial): Simplify.
6366 (current_xfer_partial): Remove.
6367 (target_wait, target_resume): Simplify.
6368 (find_default_can_async_p, find_default_is_async_p): Update.
6369 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6370 to_xfer_partial, to_stopped_by_watchpoint,
6371 to_stopped_data_address.
6372 (target_store_registers): Simplify.
6373 (forward_target_remove_breakpoint)
6374 (forward_target_insert_breakpoint): Remove.
6375 (target_remove_breakpoint, target_insert_breakpoint)
6376 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6377 * target.h (struct target_ops) <to_resume, to_wait,
6378 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6379 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6380 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6382 (forward_target_remove_breakpoint)
6383 (forward_target_insert_breakpoint): Remove.
6384 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6386 (record_btrace_insert_breakpoint): Delegate directly.
6388 2014-02-19 Tom Tromey <tromey@redhat.com>
6391 * target-delegates.c: New file.
6392 * target.c: Include target-delegates.c.
6393 (init_dummy_target): Call install_dummy_methods.
6394 (complete_target_initialization): Call install_delegators.
6395 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6396 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6397 * make-target-delegates: New file.
6399 2014-02-19 Tom Tromey <tromey@redhat.com>
6401 * record.c (find_record_target): Use find_target_at.
6402 * target.c (find_target_at): New function.
6403 * target.h (find_target_at): Declare.
6405 2014-02-19 Tom Tromey <tromey@redhat.com>
6407 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6409 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6411 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6412 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6414 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6416 * linux-nat.c (save_sigtrap): Update.
6417 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6418 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6419 (linux_nat_close): Update.
6420 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6422 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6424 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6425 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6426 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6427 (tmp_to_async): Add 'ops' argument.
6428 (record_full_stopped_by_watchpoint, record_full_async)
6429 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6431 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6432 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6433 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6434 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6435 (remote_is_async_p, remote_async): Add 'ops' argument.
6436 (remote_stopped_data_address): Update.
6437 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6438 * target.c (update_current_target)
6439 (find_default_can_async_p, find_default_is_async_p): Update.
6440 (init_dummy_target): Update.
6441 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6442 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6443 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6444 (target_can_async_p, target_is_async_p, target_async)
6445 (target_stopped_by_watchpoint): Update.
6447 2014-02-19 Yao Qi <yao@codesourcery.com>
6450 * gdbarch.sh: Remove startup_gdbarch.
6451 * gdbarch.c: Regenerated.
6452 * gdbarch.h: Likewise.
6454 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6456 * rl78-tdep.c (rl78_g10_register_name): New function.
6457 (rl78_return_value): Add g10 support.
6458 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6461 2014-02-17 Doug Evans <xdje42@gmail.com>
6463 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6464 (SUBDIR_GUILE_SRCS): Ditto.
6465 (scm-gsmob.o): Ditto.
6467 2014-02-17 Yao Qi <yao@codesourcery.com>
6469 * gnu-nat.c (ILL_RPC): Declare defined function.
6471 2014-02-17 Yao Qi <yao@codesourcery.com>
6473 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6474 mach_msg_type_number_t.
6475 (gnu_write_inferior): Likewise.
6477 2014-02-17 Yao Qi <yao@codesourcery.com>
6479 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6481 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6482 (inf_validate_procs, inf_signal): Likewise.
6483 (S_exception_raise_request): Likewise.
6484 (do_mach_notify_dead_name): Likewise.
6485 (steal_exc_port): Likewise.
6486 (gnu_read_inferior): Change 'copy_count''s type to
6487 mach_msg_type_number_t.
6488 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6491 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6493 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6494 flag. Adjust all users; in particular...
6495 (gnu_wait): ..., don't decrement its value in here...
6496 (gnu_create_inferior): ..., and instead set the flag in here,
6497 around the startup_inferior call, and call that one with
6498 START_INFERIOR_TRAPS_EXPECTED.
6500 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6501 (ILL_RPC): ... new macro.
6502 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6503 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6504 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6505 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6506 functions with ILL_RPC macro.
6507 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6508 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6509 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6510 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6511 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6512 (S_proc_getlogin_reply, S_proc_getsid_reply)
6513 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6514 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6515 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6516 (S_proc_getnports_reply, S_proc_is_important_reply)
6517 (S_proc_get_code_reply): New stub functions, generated with
6520 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6521 collected the type check structures.
6523 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6525 2014-02-14 Doug Evans <dje@google.com>
6527 * target.c (target_write_partial): Fix result type.
6529 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6531 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6532 the proper offsets to access fpregset_t.
6534 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6536 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6537 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6538 * h8300-tdep.c (setmachinelist): Remove global.
6539 * hppa-tdep.c (hppa_sigtramp): Remove global.
6540 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6541 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6542 * ravenscar-thread.c (update_target_observer): Remove global.
6543 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6545 2014-02-12 Tom Tromey <tromey@redhat.com>
6547 * common/rsp-low.c: Update comments.
6548 * common/rsp-low.h: Update comments.
6550 2014-02-12 Tom Tromey <tromey@redhat.com>
6552 * common/rsp-low.c (convert_ascii_to_int): Remove.
6553 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6555 2014-02-12 Tom Tromey <tromey@redhat.com>
6557 * common/rsp-low.h (unhexify): Don't declare.
6558 * common/rsp-low.c (unhexify): Remove.
6560 2014-02-12 Tom Tromey <tromey@redhat.com>
6562 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6563 * common/rsp-low.c (convert_int_to_ascii): Remove.
6565 2014-02-12 Tom Tromey <tromey@redhat.com>
6567 * common/rsp-low.h (hexify): Don't declare.
6568 * common/rsp-low.c (hexify): Remove.
6570 2014-02-12 Tom Tromey <tromey@redhat.com>
6572 * common/rsp-low.c (hexify): Never take strlen of argument.
6574 2014-02-12 Tom Tromey <tromey@redhat.com>
6576 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6577 * remote.c (extended_remote_run, remote_rcmd)
6578 (remote_download_trace_state_variable, remote_save_trace_data)
6579 (remote_set_trace_notes): Update.
6580 * tracepoint.c (encode_source_string, tfile_write_status)
6581 (tfile_write_uploaded_tsv): Update.
6583 2014-02-12 Tom Tromey <tromey@redhat.com>
6585 * tracepoint.c: Include rsp-low.h.
6586 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6587 * remote.c: Include rsp-low.h.
6588 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6589 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6590 (remote_unescape_input): Move to common/rsp-low.c.
6591 * common/rsp-low.h: New file.
6592 * common/rsp-low.c: New file.
6593 * Makefile.in (SFILES): Add common/rsp-low.c.
6594 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6595 (COMMON_OBS): Add rsp-low.o.
6596 (rsp-low.o): New target.
6598 2014-02-12 Tom Tromey <tromey@redhat.com>
6600 * utils.h: Include print-utils.h.
6601 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6602 (int_string, core_addr_to_string, core_addr_to_string_nz)
6603 (hex_string, hex_string_custom): Don't declare.
6604 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6605 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6606 (hex_string_custom, int_string, core_addr_to_string)
6607 (core_addr_to_string_nz, host_address_to_string): Move to
6608 common/print-utils.c.
6609 * common/print-utils.h: New file.
6610 * common/print-utils.c: New file
6611 * Makefile.in (SFILES): Add common/print-utils.c.
6612 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6613 (COMMON_OBS): Add print-utils.o.
6614 (print-utils.o): New target.
6616 2014-02-12 Tom Tromey <tromey@redhat.com>
6618 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6620 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6622 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6624 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6626 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6627 if a PT_IO ptrace request returns sucessfully but indicates that 0
6628 bytes were transferred.
6630 2014-02-12 Pedro Alves <palves@redhat.com>
6631 Kevin Buettner <kevinb@redhat.com>
6633 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6634 TYPE_INSTANCE_FLAG_CODE_SPACE.
6636 2014-02-12 Pedro Alves <palves@redhat.com>
6638 * h8300-tdep.c (pseudo_from_raw_register)
6639 (raw_from_pseudo_register): New functions.
6640 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6643 2014-02-12 Pedro Alves <palves@redhat.com>
6645 * h8300-tdep.c (h8300_register_sim_regno): New function.
6646 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6647 gdbarch_register_sim_regno hook.
6649 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6651 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6653 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6655 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6657 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6659 * obsd-tdep.h (obsd_init_abi): New prototype.
6660 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6661 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6662 (obsd_init_abi): New functions.
6663 * i386obsd-tdep.c: Include "obsd-tdep.h".
6664 (i386obsd_init_abi): Call obsd_init_abi.
6665 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6666 (amd64obsd_init_abi): Call obsd_init_abi.
6667 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6668 obsd-tdep.c to gdb_target_obs.
6670 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6672 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6673 double float arguments to 16-byte in the argument slots.
6675 2014-02-11 Doug Evans <xdje42@gmail.com>
6677 * configure.ac: Don't crash if pkg-config is not found and guile
6678 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6680 * configure: Regenerate.
6682 2014-02-11 Yao Qi <yao@codesourcery.com>
6684 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6685 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6686 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6687 * gnu-nat.c (gnu_xfer_memory): Likewise.
6688 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6689 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6690 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6691 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6693 2014-02-11 Yao Qi <yao@codesourcery.com>
6695 * target.h (enum target_xfer_error): Rename to ...
6696 (enum target_xfer_status): ... it. New. All users updated.
6697 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6699 (TARGET_XFER_STATUS_ERROR_P): New macro.
6700 (target_xfer_error_to_string): Remove declaration.
6701 (target_xfer_status_to_string): Declare.
6702 (target_xfer_partial_ftype): Adjust it.
6703 (struct target_ops) <to_xfer_partial>: Return
6704 target_xfer_status. Add argument xfered_len. Update
6706 * target.c (target_xfer_error_to_string): Rename to ...
6707 (target_xfer_status_to_string): ... it. New. All callers
6709 (target_read_live_memory): Likewise. Call target_xfer_partial
6710 instead of target_read.
6711 (memory_xfer_live_readonly_partial): Return
6712 target_xfer_status. Add argument xfered_len.
6713 (raw_memory_xfer_partial): Likewise.
6714 (memory_xfer_partial_1): Likewise.
6715 (memory_xfer_partial): Likewise.
6716 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6717 properly. Update debug message.
6718 (default_xfer_partial, current_xfer_partial): Likewise.
6719 (target_write_partial): Likewise.
6720 (target_read_partial): Likewise. All callers updated.
6721 (read_whatever_is_readable): Likewise.
6722 (target_write_with_progress): Likewise.
6723 (target_read_alloc_1): Likewise.
6725 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6726 * auxv.c (procfs_xfer_auxv): Likewise.
6727 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6728 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6729 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6730 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6731 * corefile.c (read_memory): Adjust.
6732 * corelow.c (core_xfer_partial): Likewise.
6733 * ctf.c (ctf_xfer_partial): Likewise.
6734 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6736 (darwin_xfer_partial): Likewise.
6737 * exec.c (section_table_xfer_memory_partial): Likewise. All
6739 (exec_xfer_partial): Likewise.
6740 * exec.h (section_table_xfer_memory_partial): Update
6742 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6744 (gnu_xfer_partial): Likewise.
6745 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6746 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6747 (ia64_hpux_xfer_solib_got): Likewise.
6748 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6749 type of 'partial_len' to ULONGEST.
6750 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6751 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6752 (linux_nat_xfer_partial): Likewise.
6753 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6754 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6755 * monitor.c (monitor_xfer_memory): Likewise.
6756 (monitor_xfer_partial): Likewise.
6757 * procfs.c (procfs_xfer_partial): Likewise.
6758 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6759 * record-full.c (record_full_xfer_partial): Likewise.
6760 (record_full_core_xfer_partial): Likewise.
6761 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6762 (gdbsim_xfer_partial): Likewise.
6763 * remote.c (remote_write_bytes_aux): Likewise. All callers
6765 (remote_write_bytes, remote_read_bytes): Likewise. All
6767 (remote_flash_erase): Likewise. All callers updated.
6768 (remote_write_qxfer): Likewise. All callers updated.
6769 (remote_read_qxfer): Likewise. All callers updated.
6770 (remote_xfer_partial): Likewise.
6771 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6772 (rs6000_xfer_shared_libraries): Likewise.
6773 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6774 (sol_thread_xfer_partial): Likewise.
6775 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6776 (sparc_xfer_partial): Likewise.
6777 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6779 (spu_xfer_partial): Likewise.
6780 * spu-multiarch.c (spu_xfer_partial): Likewise.
6781 * tracepoint.c (tfile_xfer_partial): Likewise.
6782 * windows-nat.c (windows_xfer_memory): Likewise.
6783 (windows_xfer_shared_libraries): Likewise.
6784 (windows_xfer_partial): Likewise.
6785 * valprint.c: Replace 'target_xfer_error' with
6786 'target_xfer_status' in comments.
6788 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6790 Checked in by Joel Brobecker <brobecker@adacore.com>.
6791 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6793 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6795 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6796 function parameters.
6798 2014-02-10 Will Newton <will.newton@linaro.org>
6800 * elfread.c (elf_rel_plt_read): Look for a .got section if
6801 looking up .got.plt fails.
6802 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6803 on address passed to elf_gnu_ifunc_record_cache.
6804 (elf_gnu_ifunc_resolve_addr): Likewise.
6805 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6807 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6809 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6810 (X_RETTURN): New macro.
6811 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6813 * sparc64-tdep.c (sparc64_init_abi): Hook
6814 sparc_in_function_epilogue_p.
6816 2014-02-10 Gary Benson <gbenson@redhat.com>
6818 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6819 Rename name_matcher to symbol_matcher.
6821 2014-02-10 Gary Benson <gbenson@redhat.com>
6823 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6824 Use expand_symtabs_file_matcher_ftype and
6825 expand_symtabs_symbol_matcher_ftype.
6827 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6829 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6830 (struct ada_symbol_cache): New.
6831 (ada_free_symbol_cache): Forward declare.
6832 (struct ada_pspace_data): New.
6833 (ada_pspace_data_handle): New static global.
6834 (get_ada_pspace_data, ada_pspace_data_cleanup)
6835 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6836 (cache_space, cache): Delete, now folded inside struct
6838 (ada_get_symbol_cache): New function.
6839 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6841 (_initialize_ada_language): Remove initialization of cache_space.
6842 Move call to observer_attach_inferior_exit up, grouping it
6843 with the other observer registrations inside this function.
6844 Rename command to be more general. Add call to
6845 register_program_space_data_with_cleanup.
6847 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6849 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6850 ada_new_objfile_observer.
6851 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6852 (_initialize_tasks): Update uses of ada_new_objfile_observer
6853 and ada_tasks_normal_stop_observer.
6855 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6857 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6858 returned by the 'Length attribute to integer.
6860 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6862 * ada-lang.c (_initialize_ada_language): Initialize
6863 cache_space obstack.
6865 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6867 * ada-lang.c (HASH_SIZE): New macro.
6868 (struct cache_entry): New type.
6869 (cache_space, cache): New static globals.
6870 (ada_clear_symbol_cache, find_entry): New functions.
6871 (lookup_cached_symbol, cache_symbol): Implement.
6872 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6873 (_initialize_ada_language): Attach ada_new_objfile_observer
6874 and ada_free_objfile_observer.
6876 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6878 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6879 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6880 struct block * parameter.
6881 (ada_lookup_symbol_list_worker): Constify local variable "block".
6882 Remove cast which is no longer necessary.
6884 2014-02-10 Doug Evans <xdje42@gmail.com>
6886 Add Guile as an extension language.
6887 * NEWS: Mention Guile scripting.
6888 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6889 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6890 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6891 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6892 (CLIBS): Add GUILE_LIBS.
6893 (install-guile): New rule.
6894 (guile.o): New rule.
6895 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6896 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6897 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6898 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6899 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6900 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6901 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6902 * configure.ac: New option --with-guile.
6903 * configure: Regenerate.
6904 * config.in: Regenerate.
6905 * auto-load.c: Remove #include "python/python.h". Add #include
6906 "gdb/section-scripts.h".
6907 (source_section_scripts): Handle Guile scripts.
6908 (_initialize_auto_load): Add name of Guile objfile script to
6909 scripts-directory help text.
6910 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6911 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6912 (struct breakpoint): New member scm_bp_object.
6913 * defs.h (enum command_control_type): New value guile_control.
6914 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6916 (show_user): Update comment.
6917 (_initialize_cli_cmds): Update help text for "show user". Update help
6918 text for max-user-call-depth.
6919 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6921 (multi_line_command_p): Add guile_control.
6922 (print_command_lines): Handle guile_control.
6923 (execute_control_command, recurse_read_control_structure): Ditto.
6924 (process_next_line): Recognize "guile" commands.
6925 * disasm.c (gdb_disassemble_info): Make non-static.
6926 * disasm.h: #include "dis-asm.h".
6927 (struct gdbarch): Add forward decl.
6928 (gdb_disassemble_info): Declare.
6929 * extension.c: #include "guile/guile.h".
6930 (extension_languages): Add guile.
6931 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6932 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6933 * gdbtypes.c (get_unsigned_type_max): New function.
6934 (get_signed_type_minmax): New function.
6935 * gdbtypes.h (get_unsigned_type_max): Declare.
6936 (get_signed_type_minmax): Declare.
6937 * guile/README: New file.
6938 * guile/guile-internal.h: New file.
6939 * guile/guile.c: New file.
6940 * guile/guile.h: New file.
6941 * guile/scm-arch.c: New file.
6942 * guile/scm-auto-load.c: New file.
6943 * guile/scm-block.c: New file.
6944 * guile/scm-breakpoint.c: New file.
6945 * guile/scm-disasm.c: New file.
6946 * guile/scm-exception.c: New file.
6947 * guile/scm-frame.c: New file.
6948 * guile/scm-gsmob.c: New file.
6949 * guile/scm-iterator.c: New file.
6950 * guile/scm-lazy-string.c: New file.
6951 * guile/scm-math.c: New file.
6952 * guile/scm-objfile.c: New file.
6953 * guile/scm-ports.c: New file.
6954 * guile/scm-pretty-print.c: New file.
6955 * guile/scm-safe-call.c: New file.
6956 * guile/scm-string.c: New file.
6957 * guile/scm-symbol.c: New file.
6958 * guile/scm-symtab.c: New file.
6959 * guile/scm-type.c: New file.
6960 * guile/scm-utils.c: New file.
6961 * guile/scm-value.c: New file.
6962 * guile/lib/gdb.scm: New file.
6963 * guile/lib/gdb/boot.scm: New file.
6964 * guile/lib/gdb/experimental.scm: New file.
6965 * guile/lib/gdb/init.scm: New file.
6966 * guile/lib/gdb/iterator.scm: New file.
6967 * guile/lib/gdb/printing.scm: New file.
6968 * guile/lib/gdb/types.scm: New file.
6969 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6970 (VPATH): Add $(GUILE_SRCDIR).
6971 (GUILE_DIR): New variable.
6972 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6973 (all): Add stamp-guile dependency.
6974 (stamp-guile): New rule.
6975 (clean-guile, install-guile, uninstall-guile): New rules.
6976 (install-only): Add install-guile dependency.
6977 (uninstall): Add uninstall-guile dependency.
6978 (clean): Add clean-guile dependency.
6980 2014-02-09 Doug Evans <xdje42@gmail.com>
6982 Revert this patch (which I approved, mea culpa).
6984 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6986 * Makefile.in (all-lib): Remove.
6987 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6989 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6991 Fix Python stack corruption.
6992 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6995 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6997 * Makefile.in (all-lib): Remove.
6998 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7000 2014-02-07 Doug Evans <dje@google.com>
7002 * extension-priv.h (extension_language_script_ops): Add comment.
7003 (extension_language_ops): Add comment.
7004 (active_ext_lang_state): Fix typo in comment.
7006 2014-02-07 Pedro Alves <palves@redhat.com>
7008 PR breakpoints/16292
7009 * infrun.c (handle_signal_stop) <signal arrives while stepping
7010 over a breakpoint>: Switch back to the stepping thread.
7012 2014-02-07 Yao Qi <yao@codesourcery.com>
7014 * target.c (target_xfer_partial): Return zero if LEN is zero.
7016 2014-02-07 Yao Qi <yao@codesourcery.com>
7018 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7019 (ld_so_xfer_auxv): Likewise.
7020 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7021 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7022 * corelow.c (core_xfer_partial): Likewise.
7023 * ctf.c (ctf_xfer_partial): Likewise.
7024 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7025 (darwin_xfer_partial): Likewise.
7026 * exec.c (exec_xfer_partial): Likewise.
7027 * gnu-nat.c (gnu_xfer_partial): Likewise.
7028 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7029 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7030 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7031 * linux-nat.c (linux_xfer_siginfo): Likewise.
7032 (linux_proc_xfer_spu): Likewise.
7033 * procfs.c (procfs_xfer_partial): Likewise.
7034 * record-full.c (record_full_xfer_partial): Likewise.
7035 (record_full_core_xfer_partial): Likewise.
7036 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7037 * remote.c (remote_write_qxfer): Likewise.
7038 (remote_write_qxfer, remote_read_qxfer): Likewise.
7039 (remote_xfer_partial): Likewise.
7040 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7041 (rs6000_xfer_shared_libraries): Likewise.
7042 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7043 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7044 (spu_xfer_partial): Likewise.
7045 * target.c (memory_xfer_partial_1): Likewise.
7046 * tracepoint.c (tfile_xfer_partial): Likewise.
7047 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7048 (windows_xfer_partial): Likewise.
7050 2014-02-07 Yao Qi <yao@codesourcery.com>
7052 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7054 (core_xfer_shared_libraries_aix): Likewise.
7055 * gdbarch.c, gdbarch.h: Regenerated.
7056 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7057 ULONGEST. Change 'len_avail' type to ULONGEST.
7058 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7059 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7061 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7063 2014-02-07 Yao Qi <yao@codesourcery.com>
7065 * corefile.c (memory_error): Get 'exception' from ERR and pass
7066 'exception' to throw_error.
7068 2014-02-06 Doug Evans <xdje42@gmail.com>
7070 * configure.ac (libpython checking): Remove all but python.o from
7071 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7072 * configure: Regenerate.
7074 * Makefile.in (SFILES): Add extension.c.
7075 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7076 (COMMON_OBS): Add extension.o.
7077 * extension.h: New file.
7078 * extension-priv.h: New file.
7079 * extension.c: New file.
7081 * python/python-internal.h: #include "extension.h".
7082 (gdbpy_auto_load_enabled): Declare.
7083 (gdbpy_apply_val_pretty_printer): Declare.
7084 (gdbpy_apply_frame_filter): Declare.
7085 (gdbpy_preserve_values): Declare.
7086 (gdbpy_breakpoint_cond_says_stop): Declare.
7087 (gdbpy_breakpoint_has_cond): Declare.
7088 (void source_python_script_for_objfile): Delete.
7089 * python/python.c: #include "extension-priv.h".
7090 Delete inclusion of "observer.h".
7091 (extension_language_python): Moved here and renamed from
7092 script_language_python in py-auto-load.c.
7093 Redefined to be of type extension_language_defn.
7094 (python_extension_script_ops): New global.
7095 (python_extension_ops): New global.
7096 (struct python_env): New member previous_active.
7097 (restore_python_env): Call restore_active_ext_lang.
7098 (ensure_python_env): Call set_active_ext_lang.
7099 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7101 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7103 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7105 (gdbpy_eval_from_control_command): Renamed from
7106 eval_python_from_control_command, made static. New arg extlang.
7107 (gdbpy_source_script) Renamed from source_python_script, made static.
7109 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7110 result to int. New arg extlang.
7111 (gdbpy_source_objfile_script): Renamed from
7112 source_python_script_for_objfile, made static. New arg extlang.
7113 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7114 static. New args extlang, extlang_printers. Change result type to
7116 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7117 static. New arg extlang. Rename arg printers to extlang_printers
7118 and change type to ext_lang_type_printers *.
7119 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7120 static. Replace argument arg with extlang, extlang_printers.
7121 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7122 (!HAVE_PYTHON, source_python_script): Delete.
7123 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7124 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7125 (!HAVE_PYTHON, start_type_printers): Delete.
7126 (!HAVE_PYTHON, apply_type_printers): Delete.
7127 (!HAVE_PYTHON, free_type_printers): Delete.
7128 (_initialize_python): Delete call to observer_attach_before_prompt.
7129 (finalize_python): Set/restore active extension language.
7130 (gdbpy_finish_initialization) Renamed from
7131 finish_python_initialization, made static. New arg extlang.
7132 (gdbpy_initialized): New function.
7133 * python/python.h: #include "extension.h". Delete #include
7134 "value.h", "mi/mi-cmds.h".
7135 (extension_language_python): Declare.
7136 (GDBPY_AUTO_FILE_NAME): Delete.
7137 (enum py_bt_status): Moved to extension.h and renamed to
7139 (enum frame_filter_flags): Moved to extension.h.
7140 (enum py_frame_args): Moved to extension.h and renamed to
7141 ext_lang_frame_args.
7142 (finish_python_initialization): Delete.
7143 (eval_python_from_control_command): Delete.
7144 (source_python_script): Delete.
7145 (apply_val_pretty_printer): Delete.
7146 (apply_frame_filter): Delete.
7147 (preserve_python_values): Delete.
7148 (gdbpy_script_language_defn): Delete.
7149 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7150 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7152 * auto-load.c: #include "extension.h".
7153 (GDB_AUTO_FILE_NAME): Delete.
7154 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7155 (script_language_gdb): Delete, moved to extension.c and renamed to
7156 extension_language_gdb.
7157 (source_gdb_script_for_objfile): Delete.
7158 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7159 (loaded_script): Change type of language member to
7160 struct extension_language_defn *.
7161 (init_loaded_scripts_info): Initialize
7162 unsupported_script_warning_printed.
7163 (maybe_add_script): Make static. Change type of language arg to
7164 struct extension_language_defn *.
7165 (clear_section_scripts): Reset unsupported_script_warning_printed.
7166 (auto_load_objfile_script_1): Rewrite to use extension language API.
7167 (auto_load_objfile_script): Make public. Remove support-compiled-in
7168 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7169 (source_section_scripts): Rewrite to use extension language API.
7170 (load_auto_scripts_for_objfile): Rewrite to use
7171 auto_load_scripts_for_objfile.
7172 (collect_matching_scripts_data): Change type of language member to
7173 struct extension_language_defn *.
7174 (auto_load_info_scripts): Change type of language arg to
7175 struct extension_language_defn *.
7176 (unsupported_script_warning_print): New function.
7177 (script_not_found_warning_print): Make static.
7178 (_initialize_auto_load): Rewrite construction of scripts-directory
7180 * auto-load.h (struct objfile): Add forward decl.
7181 (struct script_language): Delete.
7182 (struct auto_load_pspace_info): Add forward decl.
7183 (struct extension_language_defn): Add forward decl.
7184 (maybe_add_script): Delete.
7185 (auto_load_objfile_script): Declare.
7186 (script_not_found_warning_print): Delete.
7187 (auto_load_info_scripts): Update prototype.
7188 (auto_load_gdb_scripts_enabled): Declare.
7189 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7190 auto_load_python_scripts_enabled and made public.
7191 (script_language_python): Delete, moved to python.c.
7192 (gdbpy_script_language_defn): Delete.
7193 (info_auto_load_python_scripts): Update to use
7194 extension_language_python.
7196 * breakpoint.c (condition_command): Replace call to
7197 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7198 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7199 with call to breakpoint_ext_lang_cond_says_stop.
7200 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7201 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7202 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7203 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7205 (local_setattro): Print name of extension language with existing
7208 * valprint.c (val_print, value_print): Update to call
7209 apply_ext_lang_val_pretty_printer.
7210 * cp-valprint.c (cp_print_value): Update call to
7211 apply_ext_lang_val_pretty_printer.
7212 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7213 (gdbpy_apply_val_pretty_printer): Renamed from
7214 apply_val_pretty_printer. New arg extlang.
7215 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7217 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7218 extension language API.
7219 * cli/cli-script.c (execute_control_command): Update to call
7220 eval_ext_lang_from_control_command.
7222 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7223 enum ext_lang_bt_status values. Update call to
7224 apply_ext_lang_frame_filter.
7225 (mi_cmd_stack_list_locals): Ditto.
7226 (mi_cmd_stack_list_args): Ditto.
7227 (mi_cmd_stack_list_variables): Ditto.
7228 * mi/mi-main.c: Delete #include "python/python-internal.h".
7229 Add #include "extension.h".
7230 (mi_cmd_list_features): Replace reference to python internal variable
7231 gdb_python_initialized with call to ext_lang_initialized_p.
7233 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7234 Update to use enum ext_lang_frame_args. Update to call
7235 apply_ext_lang_frame_filter.
7236 * python/py-framefilter.c (extract_sym): Update to use enum
7238 (extract_value, py_print_type, py_print_value): Ditto.
7239 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7240 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7241 (py_print_frame): Ditto.
7242 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7243 New arg extlang. Update to use enum ext_lang_bt_status.
7245 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7246 finish_python_initialization. Replace with call to
7247 finish_ext_lang_initialization.
7249 * typeprint.c (do_free_global_table): Update to call
7250 free_ext_lang_type_printers.
7251 (create_global_typedef_table): Update to call
7252 start_ext_lang_type_printers.
7253 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7254 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7255 (type_print_options): Change type of global_printers from "void *"
7256 to "struct ext_lang_type_printers *".
7258 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7259 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7260 (gdbpy_preserve_values): Renamed from preserve_python_values.
7262 (!HAVE_PYTHON, preserve_python_values): Delete.
7264 * utils.c (quit_flag): Delete, moved to extension.c.
7265 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7268 * eval.c: Delete #include "python/python.h".
7269 * main.c: Delete #include "python/python.h".
7271 * defs.h: Update comment.
7273 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7277 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7279 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7282 2014-02-05 Yao Qi <yao@codesourcery.com>
7284 * remote.c (remote_pass_signals): Remove local 'buf' and use
7286 (remote_program_signals): Likewise.
7288 2014-02-05 Yao Qi <yao@codesourcery.com>
7290 * ctf.c: Include "inferior.h" and "gdbthread.h".
7291 (CTF_PID): A new macro.
7292 (ctf_open): Call inferior_appeared and add_thread_silent.
7293 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7294 (ctf_thread_alive): New function.
7295 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7297 2014-02-05 Yao Qi <yao@codesourcery.com>
7301 2013-05-24 Yao Qi <yao@codesourcery.com>
7303 * tracepoint.c (TFILE_PID): Remove.
7304 (tfile_open): Don't add thread and inferior.
7305 (tfile_close): Don't set 'inferior_ptid'. Don't call
7306 exit_inferior_silent.
7307 (tfile_thread_alive): Remove.
7308 (init_tfile_ops): Don't set field 'to_thread_alive' of
7311 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7313 * remote.c (remote_start_remote): Call remote_check_symbols even
7314 if only symbol-file (not file) has been given.
7316 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7318 * gdbarch.sh (skip_entrypoint): New callback.
7319 * gdbarch.c, gdbarch.h: Regenerate.
7320 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7321 * infrun.c (fill_in_stop_func): Likewise.
7322 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7323 (ppc_elfv2_elf_make_msymbol_special): New function.
7324 (ppc_elfv2_skip_entrypoint): Likewise.
7325 (ppc_linux_init_abi): Install them for ELFv2.
7327 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7329 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7330 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7331 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7332 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7333 structures returned in GPRs.
7335 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7337 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7338 offset to the stack parameter list for the ELFv2 ABI.
7340 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7342 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7343 set_gdbarch_convert_from_func_ptr_addr and
7344 set_gdbarch_elf_make_msymbol_special for ELFv1.
7345 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7346 function descriptors on ELFv1.
7347 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7348 set up r12 at function entry.
7350 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7352 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7353 (struct gdbarch_tdep): New member elf_abi.
7355 * rs6000-tdep.c: Include "elf/ppc64.h".
7356 (rs6000_gdbarch_init): Detect ELF ABI version.
7358 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7360 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7361 within a register pair holding a DFP 128-bit value on little-endian.
7362 (ppc64_sysv_abi_return_value_base): Likewise.
7363 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7364 (dfp_pseudo_register_write): Likewise.
7366 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7368 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7369 offset on little-endian when passing _Decimal32.
7370 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7372 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7374 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7375 of the overlapped FP register within the VSX register on little-
7377 (efpr_pseudo_register_write): Likewise.
7379 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7381 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7382 offset on little-endian when passing small structures.
7384 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7386 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7387 (struct ppc64_sysv_argpos): New data structure.
7388 (ppc64_sysv_abi_push_float): Remove.
7389 (ppc64_sysv_abi_push_val): New function.
7390 (ppc64_sysv_abi_push_integer): Likewise.
7391 (ppc64_sysv_abi_push_freg): Likewise.
7392 (ppc64_sysv_abi_push_vreg): Likewise.
7393 (ppc64_sysv_abi_push_param): Likewise.
7394 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7395 (ppc64_sysv_abi_return_value_base): New function.
7396 (ppc64_sysv_abi_return_value): Refactor to use it.
7398 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7400 * NEWS: Document new target powerpc64le-*-linux*.
7402 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7404 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7405 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7407 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7408 register set used in ELF core dumps. Add floating-point register set.
7410 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7412 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7413 dwarf2_to_gdb[] table using symbolic constants. Adjust
7414 penultimate entry from number representing the PC register
7415 to symbolic constant representing the MDR register. Add
7416 constant for the PC register to the end of the table.
7418 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7420 * bsd-kvm.c: Include <sys/param.h>
7422 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7424 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7426 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7428 * ada-lang.h (clear_ada_sym_cache): Delete.
7430 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7432 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7434 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7436 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7437 the sigreturn register save area only if the syscall is
7440 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7442 * valops.c (value_slice): Minor reformatting.
7444 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7446 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7448 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7450 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7452 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7453 (ada_ignore_descriptive_types_p): New static global.
7454 (find_parallel_type_by_descriptive_type): Return immediately
7455 if ada_ignore_descriptive_types_p is set.
7456 (_initialize_ada_language): Register new commands "maintenance
7457 set ada", "maintenance show ada", "maintenance set ada
7458 ignore-descriptive-types" and "maintenance show ada
7459 ignore-descriptive-types".
7460 * NEWS: Add entry for new "maint ada set/show
7461 ignore-descriptive-types" commands.
7463 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7465 * record-btrace.c (record_btrace_close): Call btrace_teardown
7468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7470 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7473 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7475 * ada-typeprint (type_is_full_subrange_of_target_type):
7477 (print_range): Add parameter bounds_prefered_p. If not set,
7478 try printing range types using the name of their base type.
7479 (print_range_type): Add parameter bounds_prefered_p.
7480 Use it in call to print_range.
7481 (print_array_type, ada_print_type): Update calls to print_range
7482 and print_range_type.
7484 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7486 * ada-typeprint.c (print_array_type, print_choices, print_range)
7487 (print_range_bound, print_dynamic_range_bound, print_range_type):
7490 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7492 * ada-typeprint.c (print_range): Add missing empty line
7493 after local declaration.
7495 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7497 * ada-valprint.c (print_optional_low_bound): Get index_type's
7498 target type for as long as it is a TYPE_CODE_RANGE.
7500 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7502 * procfs.c (procfs_make_note_section): Remove assertion and
7505 2014-01-24 Yao Qi <yao@codesourcery.com>
7507 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7508 * corelow.c (get_core_siginfo): Likewise.
7510 2014-01-24 Yao Qi <yao@codesourcery.com>
7512 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7513 ULONGEST. Don't check 'len' is negative.
7514 (remote_write_bytes): Change type of 'len' to ULONGEST.
7516 2014-01-23 Tom Tromey <tromey@redhat.com>
7519 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7520 Handle exception from frame.block.
7521 (FrameVars.fetch_frame_locals): Likewise.
7523 2014-01-23 Tom Tromey <tromey@redhat.com>
7526 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7527 on a NULL pointer. Move "goto error" to correct place.
7529 2014-01-23 Tom Tromey <tromey@redhat.com>
7532 * python/py-framefilter.c (apply_frame_filter): Call
7533 ensure_python_env after computing gdbarch.
7535 2014-01-23 Yao Qi <yao@codesourcery.com>
7537 * target.c (raw_memory_xfer_partial): Change argument type
7538 from void * to gdb_byte *.
7539 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7541 2014-01-22 Doug Evans <dje@google.com>
7543 New gdbserver option --debug-format=timestamp.
7546 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7548 * syscalls/s390x-linux.xml: New file.
7549 * syscalls/s390-linux.xml: New file.
7550 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7551 (XML_SYSCALL_FILENAME_S390X): Likewise.
7552 (op_svc): New enum value for SVC opcode.
7553 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7554 (s390_linux_get_syscall_number): New function.
7555 (s390_gdbarch_init): Register '*get_syscall_number' and the
7556 syscall xml file name.
7557 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7558 "s390-linux.xml" and "s390x-linux.xml".
7559 * NEWS: Announce new feature.
7561 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7563 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7565 2014-01-22 Pedro Alves <palves@redhat.com>
7567 * xtensa-config.c: Include defs.h.
7569 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7571 * common/common-utils.h: Add "ARI:" comment beside __func__
7574 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7576 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7577 documentation a bit.
7579 2014-01-21 Roland McGrath <mcgrathr@google.com>
7581 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7582 * configure: Regenerate.
7583 * aclocal.m4: Regenerate.
7584 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7585 New substituted variables.
7586 (install-strip): New target.
7587 (INSTALL_SCRIPT): New substituted variable.
7588 (FLAGS_TO_PASS): Add it.
7589 (install-only): Use $(INSTALL_SCRIPT) rather than
7590 $(INSTALL_PROGRAM) for gcore.
7592 2014-01-20 Tom Tromey <tromey@redhat.com>
7594 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7597 2014-01-20 Tom Tromey <tromey@redhat.com>
7599 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7600 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7601 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7602 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7603 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7604 (struct cmd_list_element) <flags>: Remove.
7605 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7606 doc_allocated>: New fields.
7607 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7609 * maint.c (maintenance_do_deprecate): Update.
7610 * top.c (execute_command): Update.
7612 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7614 * xtensa-linux-nat.c: Include asm/ptrace.h.
7616 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7618 * Makefile.in (SFILES): Add d-support.c.
7619 (COMMON_OBS): Add d-support.o.
7620 * d-lang.h (d_parse_symbol): Add comment, now defined in
7622 * d-lang.c (parse_call_convention)
7623 (parse_attributes, parse_function_types)
7624 (parse_function_args, parse_type, parse_identifier)
7625 (call_convention_p, d_parse_symbol): Move functions to ...
7626 * d-support.c: ... New file.
7628 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7630 * d-lang.h (d_parse_symbol): Add declaration.
7631 * d-lang.c (extract_identifiers)
7632 (extract_type_info): Remove functions.
7633 (parse_call_convention, parse_attributes)
7634 (parse_function_types, parse_function_args)
7635 (parse_type, parse_identifier, call_convention_p)
7636 (d_parse_symbol): New functions.
7637 (d_demangle): Use d_parse_symbol to demangle D symbols.
7639 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7641 * d-lang.h (struct builtin_d_type): New data type.
7642 (builtin_d_type): Add declaration.
7643 * d-lang.c (d_language_arch_info, build_d_types)
7644 (builtin_d_type): New functions.
7645 (enum d_primitive_types): New data type.
7646 (d_language_defn): Change c_language_arch_info to
7647 d_language_arch_info.
7648 (d_type_data): New static variable.
7649 (_initialize_d_language): Initialize d_type_data.
7651 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7653 * d-lang.h (d_main_name): Add declaration.
7654 * d-lang.c (d_main_name): New function.
7655 * symtab.c (find_main_name): Add call to d_main_name.
7657 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7659 * d-lang.c (d_language_defn): Change macro_expansion_c to
7662 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7664 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7666 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7668 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7669 gdb_exception" declaration.
7670 * remote.c (getpkt_or_notif_sane): Likewise.
7672 2014-01-17 Doug Evans <dje@google.com>
7674 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7675 function, contents of dirnames_to_char_ptr_vec_append moved here.
7676 (delim_string_to_char_ptr_vec): New function.
7677 (dirnames_to_char_ptr_vec_append): Rewrite.
7678 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7680 2014-01-17 Doug Evans <dje@google.com>
7682 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7684 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7685 #include "common-utils.h".
7686 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7687 * common/vec.h (VEC_ASSERT_PASS): Update.
7688 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7689 (MACH_CHECK_ERROR): Update.
7691 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7693 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7695 * gdbarch.h: Regenerate.
7697 2014-01-16 Tom Tromey <tromey@redhat.com>
7699 * value.c (struct value) <regnum>: Move earlier.
7701 2014-01-16 Tom Tromey <tromey@redhat.com>
7703 * remote.c (extended_remote_create_inferior): Rename from
7704 extended_remote_create_inferior_1. Add "ops" argument. Remove
7707 2014-01-16 Pedro Alves <palves@redhat.com>
7709 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7710 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7713 2014-01-16 Doug Evans <dje@google.com>
7715 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7719 * btrace.h (btrace_thread_flag): New.
7720 (struct btrace_thread_info) <flags>: New.
7721 * record-btrace.c (record_btrace_resume_thread)
7722 (record_btrace_find_thread_to_move, btrace_step_no_history)
7723 (btrace_step_stopped, record_btrace_start_replaying)
7724 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7725 (record_btrace_find_resume_thread): New.
7726 (record_btrace_resume, record_btrace_wait): Extend.
7727 (record_btrace_can_execute_reverse): New.
7728 (record_btrace_open): Fail in non-stop mode.
7729 (record_btrace_set_replay): Split into this, ...
7730 (record_btrace_stop_replaying): ... this, ...
7731 (record_btrace_clear_histories): ... and this.
7732 (init_record_btrace_ops): Init to_can_execute_reverse.
7733 * NEWS: Announce it.
7735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7737 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7738 (forward_target_decr_pc_after_break)
7739 (target_decr_pc_after_break): New.
7740 * target.c (forward_target_decr_pc_after_break)
7741 (target_decr_pc_after_break): New.
7742 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7743 instead of gdbarch_decr_pc_after_break.
7744 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7745 instead of gdbarch_decr_pc_after_break.
7746 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7747 instead of gdbarch_decr_pc_after_break.
7748 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7749 instead of gdbarch_decr_pc_after_break.
7750 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7751 instead of gdbarch_decr_pc_after_break.
7752 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7753 instead of gdbarch_decr_pc_after_break.
7755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7757 * btrace.c: Include regcache.h.
7758 (btrace_add_pc): New.
7759 (btrace_enable): Call btrace_add_pc.
7760 (btrace_is_empty): New.
7761 * btrace.h (btrace_is_empty): New.
7762 * record-btrace.c (require_btrace, record_btrace_info): Call
7765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7767 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7768 Support delta reads.
7769 (linux_disable_btrace): Change return type.
7770 * common/linux-btrace.h (linux_read_btrace): Change parameters
7771 and return type to allow error reporting. Update users.
7772 (linux_disable_btrace): Change return type. Update users.
7773 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7775 (btrace_error): New.
7776 (btrace_block) <begin>: Comment on BEGIN == 0.
7777 * btrace.c (btrace_compute_ftrace): Start from the end of
7779 (btrace_stitch_trace, btrace_clear_history): New.
7780 (btrace_fetch): Read delta trace, return if replaying.
7781 (btrace_clear): Move clear history code to btrace_clear_history.
7782 (parse_xml_btrace): Throw an error if parsing failed.
7783 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7784 and return type to allow error reporting.
7785 (target_read_btrace): Change parameters and return type to allow
7787 * target.c (target_read_btrace): Update.
7788 * remote.c (remote_read_btrace): Support delta reads. Pass
7790 * NEWS: Announce it.
7792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7794 * record.h (record_btrace_frame_unwind)
7795 (record_btrace_tailcall_frame_unwind): New declarations.
7796 * dwarf2-frame: Include record.h
7797 (dwarf2_frame_cfa): Throw an error for btrace frames.
7798 * record-btrace.c: Include hashtab.h.
7799 (btrace_get_bfun_name): New.
7800 (btrace_call_history): Call btrace_get_bfun_name.
7801 (struct btrace_frame_cache): New.
7803 (bfcache_hash, bfcache_eq, bfcache_new): New.
7804 (btrace_get_frame_function): New.
7805 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7806 (record_btrace_frame_this_id): Compute own id.
7807 (record_btrace_frame_prev_register): Provide PC, throw_error
7808 for all other registers.
7809 (record_btrace_frame_sniffer): Detect btrace frames.
7810 (record_btrace_tailcall_frame_sniffer): New.
7811 (record_btrace_frame_dealloc_cache): New.
7812 (record_btrace_frame_unwind): Add new functions.
7813 (record_btrace_tailcall_frame_unwind): New.
7814 (_initialize_record_btrace): Allocate cache.
7815 * btrace.c (btrace_clear): Call reinit_frame_cache.
7816 * NEWS: Announce it.
7818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7820 * record-btrace.c (record_btrace_set_replay)
7821 (record_btrace_goto_begin, record_btrace_goto_end)
7822 (record_btrace_goto): New.
7823 (init_record_btrace_ops): Initialize them.
7824 * NEWS: Announce it.
7826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7828 * record-btrace.c (record_btrace_find_new_threads)
7829 (record_btrace_thread_alive): New.
7830 (init_record_btrace_ops): Initialize to_find_new_threads and
7833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7835 * record-btrace.c (record_btrace_resume): New.
7836 (record_btrace_wait): New.
7837 (init_record_btrace_ops): Initialize to_wait and to_resume.
7839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7841 * record-btrace.c (record_btrace_xfer_partial)
7842 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7843 (record_btrace_allow_memory_access): New.
7844 (init_record_btrace_ops): Initialize new methods.
7845 * target.c (raw_memory_xfer_partial): Bail out if target reports
7846 that this memory is not available.
7848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7850 * target.h (target_ops) <to_insert_breakpoint>
7851 <to_remove_breakpoint>: Add target_ops parameter.
7852 (forward_target_insert_breakpoint): New.
7853 (forward_target_remove_breakpoint): New.
7854 (memory_remove_breakpoint, memory_insert_breakpoint):
7855 Add target_ops parameter.
7856 * target.c (target_insert_breakpoint): Split into this and ...
7857 (forward_target_insert_breakpoint): ... this.
7858 (target_remove_breakpoint): Split into this and ...
7859 (forward_target_remove_breakpoint): ... this.
7860 (debug_to_insert_breakpoint): Add target_ops parameter.
7861 Call forward_target_insert_breakpoint.
7862 (debug_to_remove_breakpoint): Add target_ops parameter.
7863 Call forward_target_remove_breakpoint.
7864 (update_current_target): Do not inherit or default to_insert_breakpoint
7865 and to_remove_breakpoint.
7866 * corelow.c (ignore): Add target_ops parameter.
7867 * exec.c (ignore): Add target_ops parameter.
7868 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7869 Add target_ops parameter.
7870 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7871 Add target_ops parameter.
7872 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7873 Add target_ops parameter.
7874 * record-full.c (record_full_beneath_to_insert_breakpoint)
7875 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7876 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7877 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7878 (record_full_core_remove_breakpoint): Add target_ops parameter.
7880 (record_full_beneath_to_insert_breakpoint_ops)
7881 (record_full_beneath_to_remove_breakpoint_ops)
7882 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7883 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7884 tmp_to_remove_breakpoint_ops,
7885 record_full_beneath_to_insert_breakpoint_ops, and
7886 record_full_beneath_to_remove_breakpoint_ops.
7887 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7888 (m32r_remove_breakpoint): Add target_ops parameter.
7889 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7890 Add target_ops parameter.
7891 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7892 Add target_ops parameter.
7894 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7895 Markus Metzger <markus.t.metzger@intel.com>
7897 * record-btrace.c: Include frame-unwind.h.
7898 (record_btrace_frame_unwind_stop_reason)
7899 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7900 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7902 (init_record_btrace_ops): Install it.
7904 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7909 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7911 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7914 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7916 * frame-unwind.c: Include target.h.
7917 (frame_unwind_try_unwinder): New function with code from ...
7918 (frame_unwind_find_by_frame): ... here. New variable
7919 unwinder_from_target, call also target_get_unwinder)
7920 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7921 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7922 * target.h (struct target_ops): New fields to_get_unwinder and
7923 to_get_tailcall_unwinder.
7924 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7928 * record-btrace.c (record_btrace_fetch_registers)
7929 (record_btrace_store_registers)
7930 (record_btrace_to_prepare_to_store): New.
7931 (init_record_btrace_ops): Add the above.
7933 2014-01-16 Tom Tromey <tromey@redhat.com>
7935 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7936 * target.h (struct target_ops) <to_prepare_to_store>: Add
7938 (target_prepare_to_store): Add argument.
7939 * target.c (debug_to_prepare_to_store): Add argument.
7940 (update_current_target): Update.
7941 * remote.c (remote_prepare_to_store): Add 'self' argument.
7942 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7943 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7944 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7945 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7947 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7948 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7949 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7950 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7951 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7955 * btrace.h (replay) <replay>: New.
7956 (btrace_is_replaying): New.
7957 * btrace.c (btrace_clear): Free replay iterator.
7958 (btrace_is_replaying): New.
7959 * record-btrace.c (record_btrace_is_replaying): New.
7960 (record_btrace_info): Print insn number if replaying.
7961 (record_btrace_insn_history): Start at replay position.
7962 (record_btrace_call_history): Start at replay position.
7963 (init_record_btrace_ops): Init to_record_is_replaying.
7965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7967 * record-btrace.c (record_btrace_insn_history_range): Include
7969 (record_btrace_insn_history_from): Adjust range.
7970 (record_btrace_call_history_range): Include
7972 (record_btrace_call_history_from): Adjust range.
7973 * NEWS: Announce changes.
7975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7977 * record.h (enum record_print_flag)
7978 <record_print_indent_calls>: New.
7979 * record.c (get_call_history_modifiers): Recognize /c modifier.
7980 (_initialize_record): Document /c modifier.
7981 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7982 Reorder fields. Optionally indent the function name. Update
7984 * NEWS: Announce changes.
7986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7988 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7990 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7992 * btrace.c (ftrace_new_function): Start counting at one.
7993 * record-btrace.c (record_btrace_info): Adjust number of calls
7995 * NEWS: Announce it.
7997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7999 * record-btrace.c (btrace_call_history_insn_range): Print
8000 insn range as [begin, end].
8002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8004 * btrace.h (struct btrace_func_link): New.
8005 (enum btrace_function_flag): New.
8006 (struct btrace_inst): Rename to ...
8007 (struct btrace_insn): ...this. Update all users.
8008 (struct btrace_func) <ibegin, iend>: Remove.
8009 (struct btrace_func_link): New.
8010 (struct btrace_func): Rename to ...
8011 (struct btrace_function): ...this. Update all users.
8012 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8013 (number, level, flags>: New.
8014 (struct btrace_insn_iterator): Rename to ...
8015 (struct btrace_insn_history): ...this.
8017 (struct btrace_insn_iterator, btrace_call_iterator): New.
8018 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8019 (struct btrace_target_info) <begin, end, level>
8020 <insn_history, call_history>: New.
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 * btrace.c (btrace_init_insn_iterator)
8029 (btrace_init_func_iterator, compute_itrace): Remove.
8030 (ftrace_print_function_name, ftrace_print_filename)
8031 (ftrace_skip_file): Change
8033 (ftrace_init_func): Remove.
8034 (ftrace_debug): Use new btrace_function fields.
8035 (ftrace_function_switched): Also consider gaining and
8036 losing symbol information).
8037 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8038 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8039 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8041 (ftrace_new_function): Move. Remove debug print.
8042 (ftrace_update_lines, ftrace_update_insns): New.
8043 (ftrace_update_function): Check for call, ret, and jump.
8044 (compute_ftrace): Renamed to ...
8045 (btrace_compute_ftrace): ...this. Rewritten to compute call
8047 (btrace_fetch, btrace_clear): Updated.
8048 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8049 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8050 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8051 (btrace_call_number, btrace_call_begin, btrace_call_end)
8052 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8053 (btrace_find_function_by_number, btrace_set_insn_history)
8054 (btrace_set_call_history): New.
8055 * record-btrace.c (require_btrace): Use new btrace thread
8057 (record_btrace_info, btrace_insn_history)
8058 (record_btrace_insn_history, record_btrace_insn_history_range):
8059 Use new btrace thread info fields and new iterator.
8060 (btrace_func_history_src_line): Rename to ...
8061 (btrace_call_history_src_line): ...this. Use new btrace
8063 (btrace_func_history): Rename to ...
8064 (btrace_call_history): ...this. Use new btrace thread info
8065 fields and new iterator.
8066 (record_btrace_call_history, record_btrace_call_history_range):
8067 Use new btrace thread info fields and new iterator.
8069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8071 * frame.h (frame_id_build_unavailable_stack_special): New.
8072 * frame.c (frame_id_build_unavailable_stack_special): New.
8074 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8076 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8077 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8078 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8080 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8081 (i386_insn_is_jump, i386_jmp_p): New.
8082 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8083 insn_is_jump to gdbarch.
8084 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8085 * gdbarch.h: Regenerated.
8086 * gdbarch.c: Regenerated.
8087 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8088 (default_insn_is_jump): New.
8089 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8090 (default_insn_is_jump): New.
8092 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8094 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8096 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8097 (btrace_read_type) <btrace_read_new>: Change to ...
8098 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8102 * common/linux-btrace.c (linux_read_btrace): Free trace from
8105 2014-01-15 Doug Evans <dje@google.com>
8107 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8110 2014-01-15 Tom Tromey <tromey@redhat.com>
8112 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8113 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8114 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8115 (set_objfile_main_name): New function.
8116 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8117 language_of_main>: New fields.
8118 (set_objfile_main_name): Declare.
8119 * symtab.c (find_main_name): Loop over objfiles to find the main
8121 (set_main_name): Now static.
8122 (get_main_info): Add comment.
8123 * symtab.h (set_main_name): Don't declare.
8125 2014-01-15 Tom Tromey <tromey@redhat.com>
8127 * symtab.c (main_progspace_key): New global.
8128 (struct main_info): New.
8129 (name_of_main, language_of_main): Remove.
8130 (get_main_info, main_info_cleanup): New function.
8131 (set_main_name, main_name, main_language): Use get_main_info.
8132 (_initialize_symtab): Initialize main_progspace_key.
8134 2014-01-15 Tom Tromey <tromey@redhat.com>
8136 * dbxread.c (process_one_symbol): Update.
8137 * dwarf2read.c (read_partial_die): Update.
8138 * symfile.c (set_initial_language): Call main_language.
8139 * symtab.c (language_of_main): Now static.
8140 (set_main_name): Add 'lang' parameter.
8141 (find_main_name): Update.
8142 (main_language): New function.
8143 (symtab_observer_executable_changed): Update.
8144 * symtab.h (set_main_name): Update.
8145 (language_of_main): Remove.
8146 (main_language): Declare.
8148 2014-01-15 Tom Tromey <tromey@redhat.com>
8150 * symfile.c (init_entry_point_info): Use new "initialized" field.
8152 * objfiles.h (struct entry_point) <initialized>: New field.
8153 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8154 (struct objfile) <ei>: ...here. Remove.
8155 * objfiles.c (entry_point_address_query): Update.
8157 2014-01-15 Tom Tromey <tromey@redhat.com>
8159 * objfiles.c (entry_point_address_query): Relocate entry point
8161 (objfile_relocate1): Do not relocate entry point address.
8162 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8163 <the_bfd_section_index>: New field.
8164 * symfile.c (init_entry_point_info): Find the entry point's
8167 2014-01-15 Tom Tromey <tromey@redhat.com>
8169 * solib-frv.c (enable_break): Use entry_point_address_query.
8171 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8173 * NEWS: Add note on improved process record-replay on
8174 arm*-linux* targets.
8176 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8178 * arm-tdep.c (enum arm_record_result): New enum.
8179 (arm_record_unsupported_insn): New function.
8180 (arm_record_coproc_data_proc): Removed.
8181 (thumb2_record_ld_st_multiple): New function.
8182 (thumb2_record_ld_st_dual_ex_tbb): New function.
8183 (thumb2_record_data_proc_sreg_mimm): New function.
8184 (thumb2_record_ps_dest_generic): New function.
8185 (thumb2_record_branch_misc_cntrl): New function.
8186 (thumb2_record_str_single_data): New function.
8187 (thumb2_record_ld_mem_hints): New function.
8188 (thumb2_record_ld_word): New function.
8189 (thumb2_record_lmul_lmla_div): New function.
8190 (thumb2_record_decode_insn_handler): New function.
8191 (decode_insn): Add thumb32 instruction handlers.
8193 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8195 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8196 (struct arm_linux_record_tdep): Declare.
8197 (arm_canonicalize_syscall): New function.
8198 (arm_all_but_pc_registers_record): New function.
8199 (arm_linux_syscall_record): New function.
8200 (arm_linux_init_abi): Add syscall recording constructs.
8201 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8202 decoding. (arm_record_coproc_data_proc): Update arm syscall
8204 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8205 <arm_syscall_record>: New field.
8206 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8209 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8211 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8212 register for push instruction recording.
8214 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8216 * arm-tdep.c (thumb_record_misc): Update to correct logical
8217 error while recording ldm, ldmia and pop instructions.
8219 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8221 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8223 2014-01-15 Pedro Alves <palves@redhat.com>
8225 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8226 (go32_resume, go32_fetch_registers, store_register)
8227 (go32_store_registers, go32_prepare_to_store)
8228 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8229 (go32_create_inferior, go32_can_run, go32_terminal_init)
8230 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8233 2014-01-15 Tom Tromey <tromey@redhat.com>
8235 * target.h (async_callback_ftype): New typedef.
8236 (struct target_ops) <to_async>: Use it.
8238 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8240 * python/py-value.c (get_field_type): Remove unnecessary curly
8241 braces for single-statement if block.
8243 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8245 * python/py-type.c (convert_field): Add missing empty line
8248 2014-01-14 Doug Evans <dje@google.com>
8250 * symfile.h (expand_symtabs_matching): Renamed from
8251 expand_partial_symbol_names. Update prototype.
8252 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8253 * symfile.c (expand_symtabs_matching): Renamed from
8254 expand_partial_symbol_names. New args file_matcher, kind.
8255 Rename arg fun to symbol_matcher.
8256 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8257 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8258 ada_expand_partial_symbol_name.
8259 (ada_make_symbol_completion_list): Update to call
8260 expand_symtabs_matching.
8261 (ada_add_global_exceptions): Call expand_symtabs_matching.
8262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8263 call map_symbol_filenames.
8264 * symtab.c (sources_info): Update to call map_symbol_filenames.
8265 (search_symbols): Call expand_symtabs_matching.
8266 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8267 (default_make_symbol_completion_list_break_on): Update to call
8268 expand_symtabs_matching.
8269 (make_source_files_completion_list): Update to call
8270 map_symbol_filenames.
8272 2014-01-14 Doug Evans <dje@google.com>
8274 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8275 (expand_symtabs_symbol_matcher_ftype): New typedef.
8276 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8277 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8278 * symfile.c (expand_partial_symbol_names): Update to use
8279 expand_symtabs_symbol_matcher_ftype.
8280 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8281 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8282 Arg name_matcher renamed to symbol_matcher.
8283 * psymtab.c (recursively_search_psymtabs): Update to use
8284 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8286 (expand_symtabs_matching_via_partial): Update to use
8287 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8288 Arg name_matcher renamed to symbol_matcher.
8290 2014-01-14 Doug Evans <dje@google.com>
8292 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8293 (map_partial_symbol_filenames): Ditto.
8294 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8295 (map_partial_symbol_filenames): Ditto.
8296 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8297 (map_partial_symbol_filenames): Ditto.
8298 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8299 (map_partial_symbol_filenames): Ditto.
8300 * symtab.c: Delete #include "psymtab.h".
8302 2014-01-14 Pedro Alves <palves@redhat.com>
8303 Tom Tromey <tromey@redhat.com>
8305 * infrun.c (use_displaced_stepping): Use find_record_target
8306 instead of RECORD_IS_USED.
8307 (adjust_pc_after_break): Use record_full_is_used instead of
8309 * record-btrace.c (record_btrace_open): Call record_preopen
8310 instead of checking RECORD_IS_USED.
8311 * record-full.c (record_full_shortname)
8312 (record_full_core_shortname): New globals.
8313 (record_full_is_used): New function.
8314 (find_full_open): Call record_preopen instead of checking
8316 (init_record_full_ops): Set the target's shortname to
8317 record_full_shortname.
8318 (init_record_full_core_ops): Set the target's shortname to
8319 record_full_core_shortname.
8320 * record-full.h (record_full_is_used): Declare.
8321 * record.c (find_record_target): Make extern.
8322 (record_preopen): New function.
8323 * record.h (RECORD_IS_USED): Delete macro.
8324 (find_record_target, record_preopen): Declare functions.
8326 2014-01-14 Yao Qi <yao@codesourcery.com>
8328 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8329 'len''s type to ULONGEST.
8330 (core_xfer_shared_libraries_aix): Likewise.
8331 * gdbarch.c, gdbarch.h: Regenerated.
8332 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8333 Change type of 'len' to ULONGEST.
8334 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8335 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8337 2014-01-14 Yao Qi <yao@codesourcery.com>
8339 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8340 type of 'len' to ULONGEST.
8341 (linux_xfer_osdata_processgroups): Likewise.
8342 (linux_xfer_osdata_threads): Likewise.
8343 (linux_xfer_osdata_fds): Likewise.
8344 (linux_xfer_osdata_isockets): Likewise.
8345 (linux_xfer_osdata_shm): Likewise.
8346 (linux_xfer_osdata_sem): Likewise.
8347 (linux_xfer_osdata_msg): Likewise.
8348 (linux_common_xfer_osdata): Likewise.
8349 (struct osdata_type) <getter>: Likewise.
8350 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8353 2014-01-14 Yao Qi <yao@codesourcery.com>
8355 * target.h (target_xfer_partial_ftype): Update.
8356 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8358 * aix-thread.c (aix_thread_xfer_partial): Change type of
8359 argument 'len' to ULONGEST.
8360 * auxv.c (procfs_xfer_auxv): Likewise.
8361 (ld_so_xfer_auxv): Likewise.
8362 (memory_xfer_auxv): Likewise.
8363 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8364 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8365 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8366 * corelow.c (core_xfer_partial): Likewise.
8367 * ctf.c (ctf_xfer_partial): Likewise.
8368 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8370 (darwin_read_dyld_info): Likewise.
8371 (darwin_xfer_partial): Likewise.
8372 * exec.c (section_table_xfer_memory_partial): Likewise.
8373 (exec_xfer_partial): Likewise.
8374 * exec.h (section_table_xfer_memory_partial): Update
8376 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8377 instead of plongest.
8378 (gnu_xfer_partial): Likewise.
8379 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8380 (ia64_hpux_xfer_solib_got): Likewise.
8381 (ia64_hpux_xfer_partial): Likewise.
8382 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8383 * inf-ptrace.c (inf_ptrace_xfer_partial):
8384 * inf-ttrace.c (inf_ttrace_xfer_partial):
8385 * linux-nat.c (linux_xfer_siginfo): Likewise.
8386 (linux_nat_xfer_partial): Likewise.
8387 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8388 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8389 * monitor.c (monitor_xfer_memory): Likewise.
8390 (monitor_xfer_partial): Likewise.
8391 * procfs.c (procfs_xfer_partial): Likewise.
8392 * record-full.c (record_full_xfer_partial): Likewise.
8393 (record_full_core_xfer_partial): Likewise.
8394 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8395 instead of plongest.
8396 (gdbsim_xfer_partial): Likewise.
8397 * remote.c (remote_xfer_partial): Likewise.
8398 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8399 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8401 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8402 (rs6000_xfer_shared_libraries): Likewise.
8403 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8404 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8405 (sparc_xfer_partial): Likewise.
8406 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8407 (spu_xfer_partial): Likewise.
8408 * spu-multiarch.c (spu_xfer_partial): Likewise.
8409 * target.c (target_read_live_memory): Likewise.
8410 (memory_xfer_live_readonly_partial): Likewise.
8411 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8412 (target_xfer_partial, default_xfer_partial): Likewise.
8413 (current_xfer_partial): Likewise.
8414 * tracepoint.c (tfile_xfer_partial): Likewise.
8415 * windows-nat.c (windows_xfer_memory): Likewise. Call
8416 pulongest instead of plongest.
8417 (windows_xfer_partial): Likewise.
8418 (windows_xfer_shared_libraries): Likewise.
8420 2014-01-14 Yao Qi <yao@codesourcery.com>
8422 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8423 target_xfer_partial_ftype.
8425 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8429 * valops.c (value_struct_elt_bitpos): New function
8430 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8431 object to 'None' if the field name is an empty string ("").
8432 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8433 attribute to look for a field when 'name' is 'None'.
8434 (get_field_type): New function
8436 2014-01-13 Doug Evans <dje@google.com>
8439 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8440 (try_open_dwop_file): Ditto.
8441 * gdb_bfd.c: #include "vec.h".
8442 (bfdp): New typedef.
8443 (struct gdb_bfd_data): New member included_bfds.
8444 (gdb_bfd_unref): Unref all included bfds.
8445 (gdb_bfd_record_inclusion): New function.
8446 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8448 2014-01-13 Tom Tromey <tromey@redhat.com>
8450 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8452 2014-01-13 Tom Tromey <tromey@redhat.com>
8454 * defs.h (use_windows): Remove.
8455 * gdb.c (main): Update.
8456 * main.c (captured_main, gdb_main): Update.
8457 * main.h (struct captured_main_args) <use_windows>: Remove.
8458 * top.c (use_windows): Remove.
8460 2014-01-13 Tom Tromey <tromey@redhat.com>
8462 * defs.h (deprecated_flush_hook): Remove.
8464 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8467 * linux-thread-db.c (try_thread_db_load): Add parameter
8468 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8469 (try_thread_db_load_from_pdir_1): Move it there from here.
8470 (try_thread_db_load_from_sdir): Update caller.
8471 (try_thread_db_load_from_dir): Move it there from here.
8473 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8475 * regformats/regdat.sh: Always rewrite the register file.
8477 2014-01-13 Pedro Alves <palves@redhat.com>
8479 * Makefile.in (CHECK_HEADERS): New variable.
8480 (check-headers:): New rule.
8482 2014-01-13 Tom Tromey <tromey@redhat.com>
8484 * cli/cli-setshow.c (do_set_command): Update.
8485 * defs.h (deprecated_set_hook): Remove.
8486 * top.c (deprecated_set_hook): Remove.
8488 2014-01-13 Pedro Alves <palves@redhat.com>
8490 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8491 the tracepoint if the PC is a pseudo-register.
8493 2014-01-13 Tom Tromey <tromey@redhat.com>
8495 * defs.h (XCALLOC): Remove.
8496 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8497 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8498 * dwarf2loc.c (allocate_piece_closure): Likewise.
8499 * elfread.c (elf_symfile_segments): Likewise.
8500 (elf_symfile_segments): Likewise.
8501 * gdbtypes.c (copy_type_recursive): Likewise.
8502 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8503 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8504 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8506 * mt-tdep.c (mt_gdbarch_init): Likewise.
8507 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8509 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8510 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8511 * registry.c (registry_alloc_data): Likewise.
8512 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8513 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8514 * serial.c (serial_fdopen_ops): Likewise.
8515 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8517 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8518 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8521 2014-01-13 Tom Tromey <tromey@redhat.com>
8523 * defs.h (XMALLOC): Remove.
8524 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8525 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8526 * cli-out.c (struct ui_out *): Likewise.
8527 * cli/cli-dump.c (add_dump_command): Likewise.
8528 (add_dump_command): Likewise.
8529 * complaints.c (get_complaints): Likewise.
8530 (find_complaint): Likewise.
8531 * dwarf2-frame.c (execute_cfa_program): Likewise.
8532 * dwarf2read.c (abbrev_table_read_table): Likewise.
8533 * gdbarch.sh: Likewise.
8534 * gdbarch.c: Rebuild.
8535 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8536 * interps.c (interp_new): Likewise.
8537 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8538 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8539 * mi/mi-console.c (mi_console_file_new): Likewise.
8540 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8541 * mi/mi-out.c (mi_out_new): Likewise.
8542 * mi/mi-parse.c (mi_parse): Likewise.
8543 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8544 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8545 * observer.c (xalloc_observer_list_node): Likewise.
8546 * regcache.c (regcache_xmalloc_1): Likewise.
8547 * reggroups.c (reggroup_new): Likewise.
8548 (_initialize_reggroup): Likewise.
8549 * registry.c (register_data_with_cleanup): Likewise.
8550 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8551 * ser-base.c (serial_ttystate): Likewise.
8552 * ser-mingw.c (make_pipe_state): Likewise.
8553 * ser-pipe.c (pipe_open): Likewise.
8554 * serial.c (serial_open): Likewise.
8555 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8556 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8557 (tui_alloc_win_info): Likewise.
8558 (tui_add_content_elements): Likewise.
8559 * tui/tui-file.c (tui_file_new): Likewise.
8560 * tui/tui-out.c (tui_out_new): Likewise.
8561 * ui-file.c (mem_file_new): Likewise.
8562 * ui-out.c (push_level): Likewise.
8563 (make_cleanup_ui_out_end): Likewise.
8564 (append_header_to_list): Likewise.
8565 (ui_out_new): Likewise.
8566 * user-regs.c (user_reg_add_builtin): Likewise.
8568 2014-01-13 Tom Tromey <tromey@redhat.com>
8570 * defs.h (XZALLOC): Remove.
8571 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8572 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8573 (get_ada_tasks_inferior_data): Likewise.
8574 * auto-load.c (get_auto_load_pspace_data): Likewise.
8575 * auxv.c (get_auxv_inferior_data): Likewise.
8576 * bfd-target.c (target_bfd_reopen): Likewise.
8577 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8578 (deprecated_insert_raw_breakpoint): Likewise.
8579 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8580 * corelow.c (core_open): Likewise.
8581 * darwin-nat.c (darwin_check_new_threads): Likewise.
8582 (darwin_attach_pid): Likewise.
8583 * dummy-frame.c (dummy_frame_push): Likewise.
8584 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8585 * dwarf2loc.c (allocate_piece_closure): Likewise.
8586 * elfread.c (elf_symfile_segments): Likewise.
8587 * eval.c (ptrmath_type_p): Likewise.
8588 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8589 * gdbtypes.c (alloc_type_arch): Likewise.
8590 (alloc_type_instance): Likewise.
8591 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8592 * inf-child.c (inf_child_can_use_agent): Likewise.
8593 * inflow.c (get_inflow_inferior_data): Likewise.
8594 * infrun.c (save_infcall_suspend_state): Likewise.
8595 * jit.c (jit_reader_load): Likewise.
8596 (get_jit_objfile_data): Likewise.
8597 (get_jit_program_space_data): Likewise.
8598 (jit_object_open_impl): Likewise.
8599 (jit_symtab_open_impl): Likewise.
8600 (jit_block_open_impl): Likewise.
8601 (jit_frame_sniffer): Likewise.
8602 * linux-fork.c (add_fork): Likewise.
8603 * maint.c (make_command_stats_cleanup): Likewise.
8604 * objfiles.c (get_objfile_pspace_data): Likewise.
8605 * opencl-lang.c (struct lval_closure): Likewise.
8606 * osdata.c (osdata_start_osdata): Likewise.
8607 * progspace.c (new_address_space): Likewise.
8608 (add_program_space): Likewise.
8609 * remote-sim.c (get_sim_inferior_data): Likewise.
8610 * sh-tdep.c (sh_gdbarch_init): Likewise.
8611 * skip.c (Ignore): Likewise.
8612 (skip_delete_command): Likewise.
8613 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8614 (library_list_start_library): Likewise.
8615 (solib_aix_current_sos): Likewise.
8616 * solib-darwin.c (get_darwin_info): Likewise.
8617 (darwin_current_sos): Likewise.
8618 * solib-dsbt.c (get_dsbt_info): Likewise.
8619 * solib-ia64-hpux.c (new_so_list): Likewise.
8620 (ia64_hpux_get_solib_linkage_addr): Likewise.
8621 * solib-spu.c (append_ocl_sos): Likewise.
8622 (spu_current_sos): Likewise.
8623 * solib-svr4.c (get_svr4_info): Likewise.
8624 (svr4_keep_data_in_core): Likewise.
8625 (library_list_start_library): Likewise.
8626 (svr4_default_sos): Likewise.
8627 (svr4_read_so_list): Likewise.
8628 * solib-target.c (library_list_start_library): Likewise.
8629 (solib_target_current_sos): Likewise.
8630 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8631 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8632 * symfile.c (default_symfile_segments): Likewise.
8633 * target-descriptions.c (tdesc_data_init): Likewise.
8634 (tdesc_create_reg): Likewise.
8635 (struct tdesc_type *): Likewise.
8636 (tdesc_create_vector): Likewise.
8637 (tdesc_set_struct_size): Likewise.
8638 (struct tdesc_type *): Likewise.
8639 (tdesc_free_feature): Likewise.
8640 (tdesc_create_feature): Likewise.
8641 * windows-nat.c (windows_add_thread): Likewise.
8642 (windows_make_so): Likewise.
8643 * xml-support.c (gdb_xml_body_text): Likewise.
8644 (gdb_xml_create_parser_and_cleanup): Likewise.
8645 (xml_process_xincludes): Likewise.
8646 * xml-syscall.c (allocate_syscalls_info): Likewise.
8647 (syscall_create_syscall_desc): Likewise.
8649 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8651 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8652 function, with code from i386_stap_parse_special_token.
8653 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8654 (i386_stap_parse_special_token): Move code to the two functions
8657 2014-01-09 Pedro Alves <palves@redhat.com>
8658 Hui Zhu <hui@codesourcery.com>
8661 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8662 bp_err_string. Don't mark the location shlib_disabled if the
8663 error thrown wasn't a generic or memory error. Catch errors
8664 thrown while inserting breakpoints in overlayed code. Output
8665 error message of software breakpoints.
8666 * remote.c (remote_insert_breakpoint): If this breakpoint has
8667 target-side commands but this stub doesn't support Z0 packets,
8668 throw NOT_SUPPORTED_ERROR error.
8669 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8670 * target.h (target_insert_breakpoint): Extend comment.
8671 (target_insert_hw_breakpoint): Add comment.
8673 2014-01-08 Pedro Alves <palves@redhat.com>
8675 * remote.c (remote_add_thread): Add threads silently if starting
8677 (remote_notice_new_inferior): If in all-stop, and starting up,
8678 don't call notice_new_inferior.
8679 (get_current_thread): New function, factored out from ...
8680 (add_current_inferior_and_thread): ... this. Adjust.
8681 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8682 found any thread, then select the remote's current thread as GDB's
8685 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8687 * NEWS: Create a new section for the next release branch.
8688 Rename the section of the current branch, now that it has
8691 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8693 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8694 * version.in: Bump version to 7.7.50.DATE-cvs.
8696 2014-01-08 Yao Qi <yao@codesourcery.com>
8698 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8699 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8700 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8702 2014-01-08 Yao Qi <yao@codesourcery.com>
8704 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8705 return value of bfd_get_filename to symbol_file_add_from_bfd.
8707 2014-01-08 Pierre Muller <muller@sourceware.org>
8710 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8711 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8712 to prim_record_mininal_symbol_and_info.
8713 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8714 in call to prim_record_minimal_symbol_and_info.
8715 (read_pe_exported_syms): Set index field of section_data.
8717 2014-01-07 Andrew Pinski <apinski@cavium.com>
8719 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8720 * features/aarch64.c: Regenerate.
8722 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8724 * target.c (return_null): Define.
8725 (update_current_target): Use it instead of return_zero for
8726 functions that return a pointer.
8728 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8730 * source.c (add_path): Fix check for duplicated paths in the previously
8733 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8735 * ada-lang.c: Remove duplicated include statements.
8736 * alphabsd-nat.c: Ditto.
8737 * amd64-darwin-tdep.c: Ditto.
8738 * amd64fbsd-nat.c: Ditto.
8739 * auto-load.c: Ditto.
8741 * breakpoint.c: Ditto.
8743 * fork-child.c: Ditto.
8744 * gdb_usleep.c: Ditto.
8745 * i386-darwin-tdep.c: Ditto.
8746 * i386fbsd-nat.c: Ditto.
8748 * inferior.c: Ditto.
8750 * linux-nat.c: Ditto.
8751 * linux-tdep.c: Ditto.
8752 * m68kbsd-nat.c: Ditto.
8753 * m68klinux-nat.c: Ditto.
8754 * microblaze-tdep.c: Ditto.
8755 * mips-linux-tdep.c: Ditto.
8756 * mn10300-tdep.c: Ditto.
8757 * nto-tdep.c: Ditto.
8758 * opencl-lang.c: Ditto.
8760 * printcmd.c: Ditto.
8761 * regcache.c: Ditto.
8762 * remote-m32r-sdi.c: Ditto.
8766 * tilegx-linux-nat.c: Ditto.
8767 * tilegx-tdep.c: Ditto.
8768 * tracepoint.c: Ditto.
8770 * vaxbsd-nat.c: Ditto.
8771 * windows-nat.c: Ditto.
8772 * xtensa-tdep.c: Ditto.
8774 2014-01-07 Yao Qi <yao@codesourcery.com>
8776 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8778 2014-01-07 Yao Qi <yao@codesourcery.com>
8779 Joel Brobecker <brobecker@adacore.com>
8781 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8782 (pdc_write_regs): Likewise.
8783 (fetch_regs_kernel_thread): Likewise.
8784 (store_regs_kernel_thread): Likewise.
8786 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8788 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8789 tagged type objects to their actual type.
8791 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8793 * ada-valprint.c (print_field_values): Add "language" parameter.
8794 Update calls to print_field_values and print_variant_part.
8795 Pass new parameter "language" in call to val_print instead
8796 of "current_language". Replace call to ada_val_print by call
8798 (print_variant_part): Add "language" parameter.
8799 (ada_val_print_struct_union): Update call to print_field_values.
8801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8803 * ada-valprint.c (ui_memcpy): Delete.
8804 (ada_print_floating): Update documentation. Add empty line
8805 between between function documentation and implementation.
8806 Delete variable "buffer". Use ui_file_xstrdup in place of
8807 ui_file_put. Minor adjustments following this change.
8809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8811 * ada-valprint.c (ada_val_print_string): New function,
8812 extracted from ada_val_print_array.
8813 (ada_val_print_array): Replace extracted code by call
8814 to ada_val_print_string followed by a return. Move
8815 "else" branch to the function's top block.
8817 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8819 * ada-valprint.c (ada_val_print_array): Move implementation
8820 down. Rename parameter "offset" and "val" into "offset_aligned"
8821 and "original_value" respectively. Add parameter "offset".
8823 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8825 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8826 re-organizing the code. Change the "???" message printed
8827 when target type is a TYPE_CODE_UNDEF into
8828 "<ref to undefined type>".
8830 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8832 * ada-valprint.c (print_record): Delete, implementation inlined...
8833 (ada_val_print_struct_union): ... here. Remove call to
8834 ada_check_typedef in inlined implementation.
8836 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8838 * ada-valprint.c (ada_val_print_gnat_array): New function,
8839 extracted from ada_val_print_1;
8840 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8841 (ada_val_print_flt, ada_val_print_struct_union)
8842 (ada_val_print_ref): Likewise.
8843 (ada_val_print_1): Delete variables i and elttype.
8844 Replace extracted-out code by call to corresponding
8847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8849 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8851 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8853 * ada-valprint.c (ada_val_print_1): Replace calls to
8854 ada_val_print_1 by calls to val_print.
8856 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8858 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8859 Update calls to self accordingly. Replace calls to c_val_print
8860 by calls to val_print.
8862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8864 * ada-valprint.c (print_record): Delete declaration.
8865 (adjust_type_signedness, ada_val_print_1): Likewise.
8866 (ada_val_print): Move function implementation down.
8867 (print_variant_part, print_field_values, print_record):
8868 Move function implementation up.
8870 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8872 * python/py-type.c (typy_get_name): New function.
8873 (type_object_getset): Add entry for attribute "name".
8874 * NEWS: Add entry mentioning this new attribute.
8876 2014-01-07 Yao Qi <yao@codesourcery.com>
8878 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8881 2014-01-07 Yao Qi <yao@codesourcery.com>
8883 * gnu-nat.c (info_port_rights): Add qualifier const to
8886 2014-01-07 Yao Qi <yao@codesourcery.com>
8888 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8890 2014-01-07 Yao Qi <yao@codesourcery.com>
8892 * gnu-nat.c (make_inf) Update declaration.
8893 (make_inf): Make it static.
8894 (inf_set_traced): Likewise.
8895 (inf_port_to_thread, inf_task_died_status): Likewise.
8897 2014-01-07 Yao Qi <yao@codesourcery.com>
8899 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8901 2014-01-07 Yao Qi <yao@codesourcery.com>
8903 * gnu-nat.c (_initialize_gnu_nat): Declare.
8905 2014-01-07 Yao Qi <yao@codesourcery.com>
8907 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8909 (struct gdbarch_info) <byte_order>: Change type to
8911 <byte_order_for_code>: Likewise.
8912 * gdbarch.c, gdbarch.h: Regenerated.
8914 2014-01-06 Sasha Smundak <asmundak@google.com>
8916 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8918 2014-01-06 Tom Tromey <tromey@redhat.com>
8920 * doublest.c (convert_doublest_to_floatformat): Use const, not
8922 * somread.c (som_symtab_read): Likewise.
8924 2014-01-07 Hui Zhu <hui@codesourcery.com>
8926 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8927 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8928 (gdb_bfd_fopen): Ditto.
8929 (gdb_bfd_openr): Ditto.
8930 (gdb_bfd_openw): Ditto.
8931 (gdb_bfd_openr_iovec): Ditto.
8932 (gdb_bfd_fdopenr): Ditto.
8933 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8934 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8936 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8938 * symfile-mem.c (symbol_file_add_from_memory): Removed
8939 gdb_bfd_stash_filename.
8941 2014-01-03 Doug Evans <dje@google.com>
8943 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8946 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8948 Update year range in copyright notice of all files.
8950 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8952 * top.c (print_gdb_version): Set copyright year to 2014.
8954 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8956 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8958 For older changes see ChangeLog-2013.
8964 version-control: never