1 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3 * gdbtypes (resolve_dynamic_range): Add function description.
5 2014-06-09 Gary Benson <gbenson@redhat.com>
7 * common/signals.c (gdb_signal_from_host): Reorder to separate
8 the always-available ANSI-standard signals from the signals that
10 (do_gdb_signal_to_host): Likewise.
11 * proc-events.c (signal_table): Likewise.
13 2014-06-08 Hui Zhu <hui@codesourcery.com>
15 * common/linux-ptrace.c (linux_disable_event_reporting): New
17 * common/linux-ptrace.h (linux_disable_event_reporting): New
19 * linux-nat.c (linux_child_follow_fork): Do a single step before
22 2014-06-07 Keith Seitz <keiths@redhat.com>
26 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
27 from symbol_matches_domain in symtab.c. All local callers
28 of symbol_matches_domain updated.
29 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
31 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
32 independently. standard_lookup will do that automatically.
33 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
34 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
35 (cp_lookup_symbol_in_namespace): Likewise.
36 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
37 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
38 may return a STRUCT_DOMAIN match.
39 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
40 * cp-support.c: Include language.h.
41 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
43 * psymtab.c (match_partial_symbol): Compare the requested
44 domain with the symbol's domain directly.
45 (lookup_partial_symbol): Likewise.
46 * symtab.c (lookup_symbol_in_language): Explain when/why
47 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
48 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
49 appropriate languages.
50 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
51 and moved to ada-lang.c
52 (lookup_block_symbol): Explain that this function only returns
53 symbol matching the requested DOMAIN.
54 Compare the requested domain with the symbol's domain directly.
55 (iterate_over_symbols): Compare the requested domain with the
56 symbol's domain directly.
57 * symtab.h (symbol_matches_domain): Remove.
59 2014-06-06 Doug Evans <xdje42@gmail.com>
61 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
62 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
63 (gdbscm_guile_version_is_at_least): Declare.
64 (gdbscm_scm_string_to_int): Declare.
65 * guile/guile.c (gdbscm_guile_major_version): New global.
66 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
67 (guile_datadir): New static global.
68 (gdbscm_guile_data_directory): New function.
69 (initialize_scheme_side): Update.
70 (misc_guile_functions): Add guile-data-directory.
71 (initialize_gdb_module): Fetch guile version number.
72 * guile/lib/gdb.scm: Remove call to add-to-load-path.
73 * guile/lib/gdb/init.scm (%initialize!): Ditto.
74 * guile/lib/gdb/boot.scm: Use guile-data-directory.
75 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
77 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
78 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
79 * guile/scm-value.c (gdbscm_value_to_string): Only call
80 scm_port_conversion_strategy if Guile version >= 2.0.6.
82 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
84 * main.c (print_gdb_help): Add -q and --silent.
86 2014-06-06 Gary Benson <gbenson@redhat.com>
88 * common/signals.c: Remove preprocessor conditionals for
89 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
91 * proc-events.c: Likewise.
93 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
95 * symfile.c (symfile_free_objfile): Remove restriction to
97 * symfile-mem.c (symbol_file_add_from_memory): Call
98 add_target_sections_of_objfile.
100 2014-06-05 Ludovic Courtès <ludo@gnu.org>
102 * guile/scm-value.c (gdbscm_history_append_x): Use
103 'vlscm_get_value_smob_arg_unsafe' instead of
104 'vlscm_scm_to_value'.
106 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
109 * utils.c (printchar): Don't escape at all if quoter is NUL.
110 Update function documentation to clarify effect of parameter
112 * remote.c (escape_buffer): Pass '\\' as the quoter to
114 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
116 (mi_solib_unloaded): Same.
118 2014-06-05 Joel Brobecker <brobecker@adacore.com>
120 * development.sh: Delete.
121 * Makefile.in (config.status): Adjust dependency on development.sh.
122 * configure.ac: Adjust development.sh source call.
123 * configure: Regenerate.
125 2014-06-04 Doug Evans <xdje42@gmail.com>
127 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
128 is_scheme_bkpt, spec.
129 (bpscm_make_breakpoint_smob): Initialize new members.
130 (gdbscm_create_breakpoint_x): Split into two ...
131 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
132 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
133 (scheme_function breakpoint_functions): Update.
134 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
135 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
136 register-breakpoint!.
138 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
141 * mem-break.c (z_type_supported): Return zero if
142 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
144 2014-06-04 Tom Tromey <tromey@redhat.com>
146 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
147 value_from_contents_and_address_unresolved.
148 (ada_template_to_fixed_record_type_1): Likewise.
149 (ada_which_variant_applies): Likewise.
150 * value.h (value_from_contents_and_address_unresolved): Declare.
151 * value.c (value_from_contents_and_address_unresolved): New
153 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
154 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
155 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
157 2014-06-04 Tom Tromey <tromey@redhat.com>
159 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
161 2014-06-04 Tom Tromey <tromey@redhat.com>
163 * procfs.c (procfs_attach): Make "args" const.
164 * windows-nat.c (windows_attach): Make "args" const.
165 * nto-procfs.c (procfs_attach): Make "args" const.
166 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
167 * go32-nat.c (go32_attach): Make "args" const.
168 * gnu-nat.c (gnu_attach): Make "args" const.
169 * darwin-nat.c (darwin_attach): Make "args" const.
170 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
171 * linux-nat.c (linux_nat_attach): Make "args" const.
172 * remote.c (extended_remote_attach_1, extended_remote_attach):
174 * target.h (struct target_ops) <to_attach>: Make "args" const.
175 (find_default_attach): Likewise.
176 * utils.c (parse_pid_to_attach): Make "args" const.
177 * utils.h (parse_pid_to_attach): Update.
179 2014-06-04 Tom Tromey <tromey@redhat.com>
181 * target-delegates.c: Rebuild.
182 * target.c (default_thread_address_space): New function.
183 (target_thread_address_space): Simplify.
184 * target.h (struct target_ops) <to_thread_address_space>: Add
187 2014-06-04 Doug Evans <xdje42@gmail.com>
189 * guile/scm-type.c (type_smob): Remove duplicate typedef.
191 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
193 * record-btrace.c: Include event-loop.h and inf-loop.h.
194 (record_btrace_resume_exec_dir)
195 (record_btrace_async_inferior_event_handler)
196 (record_btrace_handle_async_inferior_event): New.
197 (record_btrace_open): Create async event handler.
198 (record_btrace_close): Delete async event handler.
199 (record_btrace_resume): Set record_btrace_resume_exec_dir,
200 Mark async event handler.
201 (record_btrace_execution_direction): New.
202 (init_record_btrace_ops): Initialize to_execution_direction.
204 2014-06-03 Doug Evans <xdje42@gmail.com>
206 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
207 (gdbscm_make_parameter): Ditto.
209 2014-06-03 Doug Evans <dje@google.com>
211 * exec.c (exec_close_1): Call clear_section_table instead of
212 resize_section_table.
213 (clear_section_table): New function.
214 (resize_section_table): Make static. Rename arg num_added to
216 * exec.h (clear_section_table): Declare.
217 (resize_section_table): Delete.
218 * progspace.c (release_program_space): Call clear_section_table
219 instead of resize_section_table.
221 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
223 * NEWS (Python Scripting): Add entry about the new xmethods
226 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
228 * python/py-xmethods.c: New file.
229 * python/py-objfile.c (objfile_object): New field 'xmethods'.
230 (objfpy_dealloc): XDECREF on the new xmethods field.
231 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
233 (objfpy_get_xmethods): New function.
234 (objfile_getset): New entry 'xmethods'.
235 * python/py-progspace.c (pspace_object): New field 'xmethods'.
236 (pspy_dealloc): XDECREF on the new xmethods field.
237 (pspy_new, pspace_to_pspace_object): Initialize xmethods
239 (pspy_get_xmethods): New function.
240 (pspace_getset): New entry 'xmethods'.
241 * python/python-internal.h: Add declarations for new functions.
242 * python/python.c (_initialize_python): Invoke
243 gdbpy_initialize_xmethods.
244 * python/lib/gdb/__init__.py (xmethods): New
246 * python/lib/gdb/xmethod.py: New file.
247 * python/lib/gdb/command/xmethods.py: New file.
249 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
251 * eval.c (evaluate_subexp_standard): Call the xmethod if the
252 best match method returned by find_overload_match is an xmethod.
253 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
254 the best matching operator returned by find_overload_match is an
256 * valops.c: #include "extension.h".
257 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
258 Return void. The list of matching source methods is returned in
259 "fn_list" and a vector of matching debug method workers is
260 returned in "xm_worker_vec". Update all callers.
261 (value_find_oload_method_list): Likewise.
262 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
263 non-NULL, then the index of the best matching method in this
264 vector is returned. Update all callers.
265 (find_overload_match): Include xmethods while performing overload
268 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
270 * defs.h (enum lval_type): New enumerator "lval_xcallable".
271 * extension-priv.h (struct extension_language_ops): Add the
273 * extension.c (new_xmethod_worker, clone_xmethod_worker,
274 get_matching_xmethod_workers, get_xmethod_argtypes,
275 invoke_xmethod, free_xmethod_worker,
276 free_xmethod_worker_vec): New functions.
277 * extension.h: #include "common/vec.h".
278 New function declarations.
279 (struct xmethod_worker): New struct.
280 (VEC (xmethod_worker_ptr)): New vector type.
281 (xmethod_worker_ptr): New typedef.
282 (xmethod_worker_vec): Likewise.
283 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
285 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
286 (struct builtin_type): New field "xmethod".
287 * valarith.c (value_ptradd): Assert that the value argument is not
289 * valops.c (value_must_coerce_to_target): Return 0 for
290 lval_xcallable values.
291 * value.c (struct value): New field XM_WORKER in the field
293 (value_address, value_raw_address): Return 0 for lval_xcallable
295 (set_value_address): Assert that the value is not an
297 (value_free): Free the associated xmethod worker when freeing
298 lval_xcallable values.
299 (set_value_component_location): Assert that the WHOLE value is not
301 (value_of_xmethod, call_xmethod): New functions.
302 * value.h: Declare "struct xmethod_worker".
303 Declare new functions value_of_xmethod, call_xmethod.
305 2014-06-03 Joel Brobecker <brobecker@adacore.com>
306 Pedro Alves <palves@redhat.com>
309 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
310 New function, extracted from software_breakpoint_inserted_here_p.
311 (software_breakpoint_inserted_here_p): Replace factored out code
312 by call to find_non_raw_software_breakpoint_inserted_here.
313 (bp_target_info_copy_insertion_state): New function.
314 (bkpt_insert_location): Handle the case of a single-step
315 breakpoint already inserted at the same address.
316 (bkpt_remove_location): Handle the case of a single-step
317 breakpoint still inserted at the same address.
318 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
319 breakpoint already inserted at the same address.
320 (deprecated_remove_raw_breakpoint): Handle the case of a
321 non-raw breakpoint still inserted at the same address.
322 (find_single_step_breakpoint): New function, extracted from
323 single_step_breakpoint_inserted_here_p.
324 (find_single_step_breakpoint): New function,
325 factored out from single_step_breakpoint_inserted_here_p.
326 (single_step_breakpoint_inserted_here_p): Reimplement.
328 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
330 Pushed by Joel Brobecker <brobecker@adacore.com>
331 * source.c (show_substitute_path_command): Fix display of matching
334 2014-06-03 Gary Benson <gbenson@redhat.com>
336 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
338 2014-06-02 Doug Evans <xdje42@gmail.com>
340 Add parameter support for Guile.
341 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
342 (SUBDIR_GUILE_SRCS): Add scm-param.c.
343 (scm-param.o): New rule.
344 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
345 (gdbscm_misc_error): Declare.
346 (gdbscm_canonicalize_command_name): Declare.
347 (gdbscm_scm_to_host_string): Declare.
348 (gdbscm_scm_from_host_string): Declare.
349 (gdbscm_initialize_parameters): Declare.
350 * guile/guile.c (initialize_gdb_module): Call
351 gdbscm_initialize_parameters.
352 * guile/lib/gdb.scm: Export parameter symbols.
353 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
354 cmdscm_canonicalize_name and made public. All callers updated.
355 * guile/scm-exception.c (gdbscm_misc_error): New function.
356 * guile/scm-param.c: New file.
357 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
358 (gdbscm_scm_to_host_string): New function.
359 (gdbscm_scm_from_host_string): New function.
360 * scm-utils.c (gdbscm_gc_dup_argv): New function.
362 2014-06-02 Doug Evans <xdje42@gmail.com>
364 Add command support for Guile.
365 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
366 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
367 (scm-cmd.o): New rule.
368 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
369 (gdbscm_user_error_p): Declare.
370 (gdbscm_parse_command_name): Declare.
371 (gdbscm_valid_command_class_p): Declare.
372 (gdbscm_initialize_commands): Declare.
373 * guile/guile.c (initialize_gdb_module): Call
374 gdbscm_initialize_commands.
375 * guile/lib/gdb.scm: Export command symbols.
376 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
377 (throw-user-error): New function.
378 * guile/scm-cmd.c: New file.
379 * guile/scm-exception.c (user_error_symbol): New static global.
380 (gdbscm_user_error_p): New function.
381 (gdbscm_initialize_exceptions): Set user_error_symbol.
382 * scm-utils.c (gdbscm_gc_xstrdup): New function.
384 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
386 * top.c (command_loop): Handle comments here...
387 (command_line_input): ... not here.
389 2014-06-02 Doug Evans <xdje42@gmail.com>
391 Add progspace support for Guile.
392 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
393 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
394 (scm-progspace.o): New rule.
395 * guile/guile-internal.h (pspace_smob): New typedef.
396 (psscm_pspace_smob_pretty_printers): Declare.
397 (psscm_pspace_smob_from_pspace): Declare.
398 (psscm_scm_from_pspace): Declare.
399 * guile/guile.c (initialize_gdb_module): Call
400 gdbscm_initialize_pspaces.
401 * guile/lib/gdb.scm: Export progspace symbols.
402 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
404 (append-pretty-printer!): Ditto.
405 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
407 * guile/scm-progspace.c: New file.
409 2014-06-03 Alan Modra <amodra@gmail.com>
411 * ppc64-tdep.c (ppc64_standard_linkage8): New.
412 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
414 2014-06-02 Doug Evans <dje@google.com>
416 Add support for skeletonless type units.
417 * dwarf2read.c (struct dwarf2_per_objfile): New member
418 n_allocated_type_units.
419 (struct dwarf2_per_objfile) <tu_stats>: New member
420 nr_all_type_units_reallocs.
421 (create_signatured_type_table_from_index): Initialize
422 n_allocated_type_units
423 (create_all_type_units): Ditto.
424 (add_type_unit): Move up in file. New arg slot.
425 All callers updated. Increase space for all_type_units more
427 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
428 (lookup_dwo_signatured_type): Handle skeletonless TUs.
429 (lookup_dwp_signatured_type): Ditto.
430 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
432 (build_type_psymtabs_1): Leave type_unit_groups as
433 NULL if no TUs present.
434 (print_tu_stats): New function.
435 (process_skeletonless_type_unit): New function.
436 (process_dwo_file_for_skeletonless_type_units): New
438 (process_skeletonless_type_units): New function.
439 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
440 Call print tu_stats if debugging enabled.
442 2014-06-02 Pedro Alves <palves@redhat.com>
444 * breakpoint.c (build_target_command_list): Don't build a command
445 list if we have any duplicate location that isn't a dprintf.
447 2014-06-02 Pedro Alves <palves@redhat.com>
449 * breakpoint.c (dprintf_breakpoint_hit): New function.
450 (initialize_breakpoint_ops): Install it as dprintf's
451 breakpoint_hit method.
453 2014-06-02 Joel Brobecker <brobecker@adacore.com>
455 * source.c (substitute_path_rule_matches): Simplify using
456 filename_ncmp instead of FILENAME_CMP.
458 2014-06-02 Joel Brobecker <brobecker@adacore.com>
460 * source.c (substitute_path_rule_matches): Remove trailing spaces.
462 2014-06-01 Ludovic Courtès <ludo@gnu.org>
464 * configure.ac: When Guile is available, check for the
465 availability of 'scm_new_smob'.
466 * configure, config.h.in: Regenerate.
467 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
470 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
472 * frame.c (struct frame_info): Add stop_string field.
473 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
474 (get_prev_frame_always): Old content moved into
475 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
476 TRY_CATCH, handle MEMORY_ERROR exceptions.
477 (frame_stop_reason_string): New function definition.
478 * frame.h (unwind_stop_reason_to_string): Extend comment to
479 mention frame_stop_reason_string.
480 (frame_stop_reason_string): New function declaration.
481 * stack.c (frame_info): Switch to frame_stop_reason_string.
482 (backtrace_command_1): Switch to frame_stop_reason_string.
483 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
484 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
485 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
487 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
489 * frame.c (frame_stop_reason_string): Rename to ...
490 (unwind_stop_reason_to_string): this.
491 * frame.h (frame_stop_reason_string): Rename to ...
492 (unwind_stop_reason_to_string): this.
493 * stack.c (frame_info): Update call to frame_stop_reason_string.
494 (backtrace_command_1): Likewise.
495 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
496 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
498 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
500 * frame.c (remove_prev_frame): New function.
501 (get_prev_frame_if_no_cycle): Create / discard cleanup using
504 2014-05-29 Pedro Alves <palves@redhat.com>
506 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
507 and make it const. When a single-step decays to a continue,
508 clear 'step', not 'hw_step'. Pass whether the caller wanted
509 to step to user_visible_resume_ptid, not what we ask the
512 2014-05-29 Pedro Alves <palves@redhat.com>
514 * infrun.c (process_event_stop_test, handle_step_into_function)
515 (handle_step_into_function_backward): Adjust.
516 Don't set the even thread's stop_step and call stop_waiting before
517 calling end_stepping_range. Instead do that ...
518 (end_stepping_range): ... here. Take an ecs pointer parameter.
520 2014-05-29 Pedro Alves <palves@redhat.com>
522 * infrun.c (stop_stepping): Rename to ...
523 (stop_waiting): ... this.
524 (proceed): Update comment.
525 (process_event_stop_test, handle_inferior_event)
526 (handle_signal_stop, handle_step_into_function)
527 (handle_step_into_function_backward): Update.
529 2014-05-29 Pedro Alves <palves@redhat.com>
531 * infcall.c (run_inferior_call): Don't check whether the current
532 thread is running after the proceed call.
534 2014-05-29 Pedro Alves <palves@redhat.com>
535 Tom Tromey <tromey@redhat.com>
537 * NEWS: Mention "maint set target-async", "set mi-async", and that
538 background execution commands are now always available.
539 * target.h (target_async_permitted): Update comment.
540 * target.c (target_async_permitted, target_async_permitted_1):
542 (set_target_async_command): Rename to ...
543 (maint_set_target_async_command): ... this.
544 (show_target_async_command): Rename to ...
545 (maint_show_target_async_command): ... this.
546 (_initialize_target): Adjust.
547 * infcmd.c (prepare_execution_command): Make extern.
548 * inferior.h (prepare_execution_command): Declare.
549 * infrun.c (set_observer_mode): Leave target async alone.
550 * mi/mi-interp.c (mi_interpreter_init): Install
551 mi_on_sync_execution_done as sync_execution_done observer.
552 (mi_on_sync_execution_done): New function.
553 (mi_execute_command_input_handler): Don't print the prompt if we
554 just started a synchronous command with an async target.
555 (mi_on_resume): Check sync_execution before printing prompt.
556 * mi/mi-main.h (mi_async_p): Declare.
557 * mi/mi-main.c: Include gdbcmd.h.
558 (mi_async_p): New function.
559 (mi_async, mi_async_1): New globals.
560 (set_mi_async_command, show_mi_async_command, mi_async): New
562 (exec_continue): Call prepare_execution_command.
563 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
564 (mi_execute_async_cli_command): Use mi_async_p.
565 (_initialize_mi_main): Install "set mi-async". Make
566 "target-async" a deprecated alias.
568 2014-05-29 Pedro Alves <palves@redhat.com>
570 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
571 (_initialize_cli_interp): Adjust.
572 * event-loop.c: Include "observer.h".
573 (start_event_loop): Notify 'command_error' observers instead of
574 calling display_gdb_prompt. Remove FIXME comment.
575 * event-top.c (display_gdb_prompt): Remove call into the
577 * inf-loop.c: Include "observer.h".
578 (inferior_event_handler): Notify 'command_error' observers instead
579 of calling display_gdb_prompt.
580 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
581 observers instead of calling display_gdb_prompt.
582 * interps.c (interp_set): Don't call display_gdb_prompt.
583 (current_interp_display_prompt_p): Delete.
584 * interps.h (interp_prompt_p): Delete declaration.
585 (interp_prompt_p_ftype): Delete.
586 (struct interp_procs) <prompt_proc_p>: Delete field.
587 (current_interp_display_prompt_p): Delete declaration.
588 * mi-interp.c (mi_interpreter_prompt_p): Delete.
589 (_initialize_mi_interp): Adjust.
590 * tui-interp.c (tui_init): Install 'sync_execution_done' and
591 'command_error' observers.
592 (tui_on_sync_execution_done, tui_on_command_error): New
594 (tui_display_prompt_p): Delete.
595 (_initialize_tui_interp): Adjust.
597 2014-05-29 Pedro Alves <palves@redhat.com>
600 * cli/cli-interp.c: Include infrun.h and observer.h.
601 (cli_uiout, cli_interp): New globals.
602 (cli_on_signal_received, cli_on_end_stepping_range)
603 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
605 (cli_interpreter_init): Install them as 'end_stepping_range',
606 'signal_received' 'signal_exited', 'exited' and 'no_history'
608 (_initialize_cli_interp): Remove cli_interp local.
609 * infrun.c (handle_inferior_event): Call the several stop reason
610 observers instead of printing the stop reason directly.
611 (end_stepping_range): New function.
612 (print_end_stepping_range_reason, print_signal_exited_reason)
613 (print_exited_reason, print_signal_received_reason)
614 (print_no_history_reason): Make static, and add an uiout
615 parameter. Print to that instead of to CURRENT_UIOUT.
616 * infrun.h (print_end_stepping_range_reason)
617 (print_signal_exited_reason, print_exited_reason)
618 (print_signal_received_reason print_no_history_reason): New
620 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
622 <cli_uiout>: New field.
623 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
624 uiout for CLI output. Install 'signal_received',
625 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
627 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
628 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
629 (mi_on_no_history): New functions.
630 (ui_out_free_cleanup): Delete function.
631 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
632 instead use the one already stored in the MI interpreter data.
634 * tui/tui-interp.c: Include infrun.h and observer.h.
635 (tui_interp): New global.
636 (tui_on_signal_received, tui_on_end_stepping_range)
637 (tui_on_signal_exited, tui_on_exited)
638 (tui_on_no_history): New functions.
639 (tui_init): Install them as 'end_stepping_range',
640 'signal_received' 'signal_exited', 'exited' and 'no_history'
642 (_initialize_tui_interp): Delete tui_interp local.
644 2014-05-29 Pedro Alves <palves@redhat.com>
647 * linux-nat.c (linux_nat_resume_callback): Rename the second
648 parameter to 'except'. Skip LP if it points to EXCEPT.
649 (linux_nat_resume): Don't mark the event lwp as not stopped
650 before resuming sibling lwps. Instead ask
651 linux_nat_resume_callback to skip the event lwp. Mark it as not
652 stopped after actually resuming it.
653 (linux_handle_syscall_trap): Mark the lwp as not stopped after
655 (wait_lwp): Mark the lwp as stopped here.
656 (stop_wait_callback): Mark the lwp as not stopped right after
657 resuming it. Don't mark lwps as stopped here.
658 (linux_nat_filter_event): Mark the lwp as stopped earlier.
659 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
661 2014-05-29 Pedro Alves <palves@redhat.com>
664 * infrun.c (resume): Determine how much to resume depending on
665 whether the caller wanted a step, not whether we can hardware step
666 the target. Mark all threads that we intend to run as running,
667 unless we're calling an inferior function.
668 (normal_stop): If the thread is running an infcall, don't finish
670 * target.c (target_resume): Don't mark threads as running here.
672 2014-05-28 Joel Brobecker <brobecker@adacore.com>
674 * serial.c (_initialize_serial): Remove support for
675 the "set remotebaud" and "show remotebaud" commands.
676 * NEWS: Add entry documenting the removal of that command.
678 2014-05-28 Yao Qi <yao@codesourcery.com>
680 * charset.c: Fix typo in comments.
682 2014-05-27 Gary Benson <gbenson@redhat.com>
684 * utils.c (internal_vproblem): Prompt for a bug report.
686 2014-05-26 Andy Wingo <wingo@igalia.com>
688 * guile/scm-arch.c (arscm_mark_arch_smob):
689 * guile/scm-block.c (bkscm_mark_block_smob)
690 (bkscm_mark_block_syms_progress_smob):
691 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
692 * guile/scm-exception.c (exscm_mark_exception_smob):
693 * guile/scm-frame.c (frscm_mark_frame_smob):
694 * guile/scm-iterator.c (itscm_mark_iterator_smob):
695 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
696 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
697 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
698 (ppscm_mark_pretty_printer_worker_smob):
699 * guile/scm-symbol.c (syscm_mark_symbol_smob):
700 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
701 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
702 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
704 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
707 2014-05-26 Andy Wingo <wingo@igalia.com>
708 Doug Evans <xdje42@gmail.com>
710 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
711 empty_base_class. All uses updated.
712 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
713 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
715 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
716 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
717 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
718 (gdbscm_gsmob_has_property_p, add_property_name)
719 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
720 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
721 (gdb-object-has-property?, gdb-object-properties): Remove.
722 (gdb-object-kind): Renamed from gsmob-kind.
724 2014-05-26 Andy Wingo <wingo@igalia.com>
726 * configure.ac (try_guile_versions): Allow building with guile 2.2.
727 * configure: Regenerate.
729 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
731 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
733 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
735 * record-btrace.c (record_btrace_allow_memory_access): Remove.
736 (replay_memory_access_read_only, replay_memory_access_read_write)
737 (replay_memory_access_types, replay_memory_access)
738 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
739 (cmd_set_record_btrace, cmd_show_record_btrace)
740 (cmd_show_replay_memory_access): New.
741 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
742 (record_btrace_remove_breakpoint): Replace
743 record_btrace_allow_memory_access with replay_memory_access.
744 (_initialize_record_btrace): Add commands.
747 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
749 * aarch64-linux-nat.c (asm/ptrace.h): Include.
751 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
753 * MAINTAINERS (Write After Approval): Move self back from
756 2014-05-22 Pedro Alves <palves@redhat.com>
758 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
759 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
760 (disable_randomization, enum exec_direction_kind)
761 (execution_direction, stop_registers, start_remote)
762 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
763 (wait_for_inferior, normal_stop, get_last_target_status)
764 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
765 (insert_step_resume_breakpoint_at_sal)
766 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
767 (set_step_info, print_stop_event, signal_stop_state)
768 (signal_print_state, signal_pass_state, signal_stop_update)
769 (signal_print_update, signal_pass_update)
770 (update_signals_program_target, clear_exit_convenience_vars)
771 (displaced_step_dump_bytes, update_observer_mode)
772 (signal_catch_update, gdb_signal_from_command): Move
774 * infrun.h: ... to this new file.
775 * amd64-tdep.c: Include infrun.h.
776 * annotate.c: Include infrun.h.
777 * arch-utils.c: Include infrun.h.
778 * arm-linux-tdep.c: Include infrun.h.
779 * arm-tdep.c: Include infrun.h.
780 * break-catch-sig.c: Include infrun.h.
781 * breakpoint.c: Include infrun.h.
782 * common/agent.c: Include infrun.h instead of inferior.h.
783 * corelow.c: Include infrun.h.
784 * event-top.c: Include infrun.h.
785 * go32-nat.c: Include infrun.h.
786 * i386-tdep.c: Include infrun.h.
787 * inf-loop.c: Include infrun.h.
788 * infcall.c: Include infrun.h.
789 * infcmd.c: Include infrun.h.
790 * infrun.c: Include infrun.h.
791 * linux-fork.c: Include infrun.h.
792 * linux-nat.c: Include infrun.h.
793 * linux-thread-db.c: Include infrun.h.
794 * monitor.c: Include infrun.h.
795 * nto-tdep.c: Include infrun.h.
796 * procfs.c: Include infrun.h.
797 * record-btrace.c: Include infrun.h.
798 * record-full.c: Include infrun.h.
799 * remote-m32r-sdi.c: Include infrun.h.
800 * remote-mips.c: Include infrun.h.
801 * remote-notif.c: Include infrun.h.
802 * remote-sim.c: Include infrun.h.
803 * remote.c: Include infrun.h.
804 * reverse.c: Include infrun.h.
805 * rs6000-tdep.c: Include infrun.h.
806 * s390-linux-tdep.c: Include infrun.h.
807 * solib-irix.c: Include infrun.h.
808 * solib-osf.c: Include infrun.h.
809 * solib-svr4.c: Include infrun.h.
810 * target.c: Include infrun.h.
811 * top.c: Include infrun.h.
812 * windows-nat.c: Include infrun.h.
813 * mi/mi-interp.c: Include infrun.h.
814 * mi/mi-main.c: Include infrun.h.
815 * python/py-threadevent.c: Include infrun.h.
817 2014-05-22 Pedro Alves <palves@redhat.com>
819 * infrun.c (handle_inferior_event): Store the exit code for
820 --return-child-result here, instead of ...
821 (print_exited_reason): ... here.
823 2014-05-21 Pedro Alves <palves@redhat.com>
826 * gdbthread.h (struct thread_control_state): New field
828 * infrun.c (follow_fork): Copy the new thread control field to the
830 (clear_proceed_status_thread): Clear the new thread control field.
831 (proceed): Set the new thread control field.
832 * interps.h (command_interp): Declare.
833 * interps.c (command_interpreter): New global.
834 (command_interp): New function.
835 (interp_exec): Set `command_interpreter' while here.
836 * cli-out.c (cli_uiout_dtor): New function.
837 (cli_ui_out_impl): Install it.
838 * mi/mi-interp.c: Include cli-out.h.
839 (mi_cmd_interpreter_exec): Add comment.
840 (restore_current_uiout_cleanup): New function.
841 (ui_out_free_cleanup): New function.
842 (mi_on_normal_stop): If finishing an execution command started by
843 a CLI command, or any kind of breakpoint-like event triggered,
844 print the stop event to the output (CLI) stream.
845 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
847 2014-05-21 Pedro Alves <palves@redhat.com>
849 * cli/cli-cmds.c (list_command): Handle the first "list" after the
850 current source line having changed.
851 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
852 * infrun.c (normal_stop): Adjust call to
853 set_current_sal_from_frame.
854 * source.c (clear_lines_listed_range): New function.
855 (set_current_source_symtab_and_line, identify_source_line): Clear
856 the lines listed range.
857 (line_info): Handle the first "info line" after the current source
859 * stack.c (print_stack_frame): Remove center handling.
860 (set_current_sal_from_frame): Remove 'center' parameter. Don't
863 2014-05-21 Pedro Alves <palves@redhat.com>
865 * inf-child.c (inf_child_mourn_inferior): New function.
866 * inf-child.h (inf_child_mourn_inferior): New declaration.
867 * darwin-nat.c (darwin_mourn_inferior): Use
868 inf_child_mourn_inferior.
869 * gnu-nat.c (gnu_mourn_inferior): Likewise.
870 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
871 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
872 * nto-procfs.c (procfs_mourn_inferior): Likewise.
873 * windows-nat.c (windows_mourn_inferior): Likewise.
875 2014-05-21 Doug Evans <xdje42@gmail.com>
877 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
879 2014-05-21 Doug Evans <xdje42@gmail.com>
881 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
882 (gdbscm_out_of_range_error): Ditto.
883 (gdbscm_memory_error): Ditto.
884 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
885 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
886 (gdbscm_out_of_range_error): Update.
887 (gdbscm_memory_error): Update.
888 (gdbscm_scm_to_target_string_unsafe): Delete.
890 2014-05-21 Pedro Alves <palves@redhat.com>
892 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
894 (inf_child_open_target): New function.
895 (inf_child_open): Use inf_child_open_target to push the target
896 instead of erroring out.
897 (inf_child_disconnect, inf_child_close)
898 (inf_child_maybe_unpush_target): New functions.
899 (inf_child_target): Install inf_child_disconnect and
900 inf_child_close. Store a pointer to the returned object.
901 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
903 * target.c (auto_connect_native_target): New global.
904 (show_default_run_target): New function.
905 (find_default_run_target): Return NULL if automatically connecting
906 to the native target is disabled.
907 (_initialize_target): Install set/show auto-connect-native-target.
908 * NEWS: Mention "set auto-connect-native-target", and "target
910 * linux-nat.c (super_close): New global.
911 (linux_nat_close): Call super_close.
912 (linux_nat_add_target): Store a pointer to the base class's
914 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
915 inf_child_maybe_unpush.
916 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
918 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
919 the inferior. Use inf_child_maybe_unpush_target.
920 (inf_ttrace_attach): Don't push the target if it is already
922 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
923 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
924 after mourning the inferior. Use inf_child_maybe_unpush_target.
925 (darwin_attach_pid): Don't push the target if it is already
927 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
928 mourning the inferior. Use inf_child_maybe_unpush_target.
929 (gnu_detach): Use inf_child_maybe_unpush_target.
930 * go32-nat.c (go32_create_inferior): Don't push the target if it
932 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
933 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
934 (procfs_open): Rename to ...
935 (procfs_open_1): ... this. Add target_ops parameter. Adjust
936 comments. Can target_preopen before changing node. Call
937 inf_child_open_target to push the target explicitly.
938 (procfs_attach): Don't push the target if it is already pushed.
939 (procfs_detach): Use inf_child_maybe_unpush_target.
940 (procfs_create_inferior): Don't push the target if it is already
942 (nto_native_ops): New global.
943 (procfs_open): Reimplement.
944 (procfs_native_open): New function.
945 (init_procfs_targets): Install procfs_native_open as to_open of
946 "target native". Store a pointer to the "native" target in
948 * procfs.c (procfs_attach): Don't push the target if it is already
950 (procfs_detach): Use inf_child_maybe_unpush_target.
951 (procfs_mourn_inferior): Only unpush the target after mourning the
952 inferior. Use inf_child_maybe_unpush_target.
953 (procfs_init_inferior): Don't push the target if it is already
955 * windows-nat.c (do_initial_windows_stuff): Don't push the target
956 if it is already pushed.
958 2014-05-21 Pedro Alves <palves@redhat.com>
960 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
961 and "procfs" targets are now called "native" instead.
963 2014-05-21 Pedro Alves <palves@redhat.com>
965 * go32-nat.c (go32_open): Delete.
966 (go32_target): Don't override the to_open method.
968 2014-05-21 Pedro Alves <palves@redhat.com>
970 * nto-procfs.c (procfs_can_run): New function.
971 (nto_procfs_ops): New global.
972 (init_procfs_targets): New, based on procfs_target. Install
973 "target native" in addition to "target procfs".
974 (_initialize_procfs): Call init_procfs_targets instead of adding
977 2014-05-21 Pedro Alves <palves@redhat.com>
979 * windows-nat.c (windows_target): Don't override to_shortname,
980 to_longname or to_doc.
982 2014-05-21 Pedro Alves <palves@redhat.com>
984 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
987 2014-05-21 Pedro Alves <palves@redhat.com>
989 * darwin-nat.c (_initialize_darwin_inferior): Don't override
990 to_shortname, to_longname or to_doc.
992 2014-05-21 Pedro Alves <palves@redhat.com>
994 * go32-nat.c (go32_target): Don't override to_shortname,
995 to_longname or to_doc.
997 2014-05-21 Pedro Alves <palves@redhat.com>
999 * inf-child.c (inf_child_open): Remove mention of "child".
1000 (inf_child_target): Rename target to "native" instead of "child".
1002 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1004 * Makefile.in (SFILES): Delete "regset.c".
1005 (COMMON_OBS): Delete "regset.o".
1007 * regset.h (regset_alloc): Delete prototype.
1009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1011 * sparc-linux-tdep.c (sparc32_linux_gregset)
1012 (sparc32_linux_fpregset): New static regset structures.
1013 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1014 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1016 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1017 (sparc64_linux_fpregset): New static regset structures.
1018 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1019 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1020 New static regset structures.
1021 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1022 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1023 New static regset structures.
1024 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1025 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1026 New static regset structures.
1027 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1028 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1029 New static regset structures.
1030 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1032 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1034 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1035 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1036 register maps ("regmaps") from "*regset" to "*regmap". Do this
1037 for all regmap types and variables.
1038 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1039 (sparc32_linux_supply_core_gregset)
1040 (sparc32_linux_collect_core_gregset)
1041 (sparc32_linux_supply_core_fpregset)
1042 (sparc32_linux_collect_core_fpregset): Likewise.
1043 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1044 (sparc_gregmap, sparc_fpregmap): ... these.
1045 (sparc_supply_gregset, sparc_collect_gregset)
1046 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1047 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1048 (_initialize_sparc_nat): Rename regmaps.
1049 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1050 (sparc_gregmap, sparc_fpregmap): ... these.
1051 (sparc_supply_gregset, sparc_collect_gregset)
1052 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1053 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1055 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1056 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1058 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1060 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1061 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1062 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1064 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1065 (sparc32_bsd_fpregset): Rename to...
1066 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1067 (sparc32_bsd_fpregmap): ... these.
1068 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1069 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1070 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1071 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1072 (struct sparc_gregmap, struct sparc_fpregmap)
1073 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1074 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1075 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1076 (sparc32_supply_regset, sparc32_collect_gregset)
1077 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1079 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1080 (sparc64_linux_ptrace_gregmap): ... this.
1081 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1082 (_initialize_sparc64_linux_nat): Rename regmaps.
1083 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1084 (sparc64_linux_core_gregmap): ... this.
1085 (sparc64_linux_supply_core_gregset)
1086 (sparc64_linux_collect_core_gregset)
1087 (sparc64_linux_supply_core_fpregset)
1088 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1089 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1090 (sparc64_sol2_fpregset): Rename to...
1091 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1092 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1093 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1095 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1096 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1097 (sparc64_bsd_fpregset): Rename to...
1098 (struct sparc_gregmap, sparc64_sol2_gregmap)
1099 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1100 (sparc64_bsd_fpregmap): ... these.
1101 (sparc64_supply_gregset, sparc64_collect_gregset)
1102 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1104 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1105 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1106 (sparc64fbsd_gregmap): ... this.
1107 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1108 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1110 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1111 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1112 (sparc64nbsd_collect_fpregset): Likewise.
1113 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1114 (sparc64nbsd_gregmap): ... this.
1115 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1117 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1118 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1119 (sparc64obsd_gregmap): ... this.
1120 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1122 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1123 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1124 (sparc32nbsd_gregmap): ... this.
1125 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1128 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130 * score-tdep.c (score7_linux_gregset): New static regset
1132 (score7_linux_regset_from_core_section): Remove dynamic regset
1134 (score_gdbarch_init): Drop allocation of tdep structure.
1135 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1139 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1141 (am33_regset_from_core_section): Remove dynamic regset
1144 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1146 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1147 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1149 (mips_linux_regset_from_core_section): Remove dynamic regset
1151 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1152 'gregset64', 'fpregset', and 'fpregset64'.
1153 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1154 deleted tdep fields.
1156 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1160 (amd64_regset_from_core_section): Remove dynamic regset
1162 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1164 (amd64obsd_regset_from_core_section): Remove dynamic regset
1166 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1168 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1169 x86-common regset supply function.
1170 * i386-tdep.c (i386_collect_gregset): Make static.
1171 (i386_gregset): New global regset structure.
1172 (i386_fpregset, i386_xstateregset): New static regset structures.
1173 (i386_regset_from_core_section): Remove dynamic regset
1175 (i386_gdbarch_init): Remove initialization of tdep fields
1176 'gregset', 'fpregset', and 'xstateregset'.
1177 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1178 'fpregset', and 'xstateregset'.
1179 (i386_collect_gregset): Remove prototype.
1180 (i386_gregset): New declaration.
1181 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1183 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1186 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1188 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1189 (arm_linux_vfpregset): New static regset structures.
1190 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1192 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1193 and 'vfpregset' fields.
1195 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1198 (aarch64_linux_fpregset): New static regset structures.
1199 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1200 of regset structures.
1201 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1204 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206 * regset.h (struct regset): Remove gdbarch field.
1207 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1208 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1209 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1211 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1212 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1213 (ppc32_linux_vsxregset): Likewise.
1214 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1215 via the regcache instead of the regset.
1216 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1217 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1218 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1219 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1222 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1224 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1225 Constify structures.
1226 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1227 (alphanbsd_aout_gregset): Likewise.
1228 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1229 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1231 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1232 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1234 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1235 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1236 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1237 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1238 * m88k-tdep.c (m88k_gregset): Likewise.
1239 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1240 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1241 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1242 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1243 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1244 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1245 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1246 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1247 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1249 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1250 * sh-tdep.h (sh_corefile_gregset): Likewise.
1251 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1252 * vax-tdep.c (vax_gregset): Likewise.
1254 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 Fix TLS access for -static -pthread.
1257 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1258 (try_thread_db_load_1): Initialize it.
1259 (thread_db_get_thread_local_address): Call it if LM is zero.
1260 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1261 * target.h (struct target_ops) (to_get_thread_local_address): Add
1262 load_module_addr comment.
1264 2014-05-21 Pedro Alves <palves@redhat.com>
1266 * dcache.c (dcache_read_memory_partial): If reading the cache line
1267 fails, fallback to reading just the memory the caller wanted.
1269 2014-05-20 Doug Evans <dje@google.com>
1271 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1272 instead of get_current_arch.
1274 2014-05-20 Pedro Alves <palves@redhat.com>
1276 * NEWS: Mention that compare-sections now works with all targets.
1278 * remote.c (PACKET_qCRC): New enum value.
1279 (remote_verify_memory): Don't send qCRC if the target has no
1280 execution. Use packet_support/packet_ok. If the target doesn't
1281 support the qCRC packet, fallback to a deep memory copy.
1282 (compare_sections_command): Say "target image" instead of "remote
1284 (_initialize_remote): Add PACKET_qCRC to the list of config
1285 packets that have no associated command. Extend comment.
1286 * target.c (simple_verify_memory, default_verify_memory): New
1288 * target.h (struct target_ops) <to_verify_memory>: Default to
1289 default_verify_memory.
1290 (simple_verify_memory): New declaration.
1291 * target-delegates.c: Regenerate.
1293 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1295 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1297 2014-05-20 Hui Zhu <hui@codesourcery.com>
1298 Yao Qi <yao@codesourcery.com>
1301 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1302 and change address of sp and pc.
1304 2014-05-19 Tom Tromey <tromey@redhat.com>
1306 * gdbtypes.c (rank_function): Use XNEWVEC.
1307 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1309 2014-05-19 Doug Evans <dje@google.com>
1311 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1312 build_type_unit_groups and moved closer to only caller. Remove
1313 arguments. All references updated. Remove outdated .gdb_index
1315 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1316 build_type_psymtabs_1.
1318 2014-05-19 Doug Evans <dje@google.com>
1320 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1321 n_type_unit_groups, all_type_unit_groups. All uses removed.
1322 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1323 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1324 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1325 (add_type_unit_group_to_table): Delete.
1327 2014-05-19 Doug Evans <dje@google.com>
1329 * eval.c (evaluate_subexp_standard): Add some comments.
1331 2014-05-17 Doug Evans <xdje42@gmail.com>
1333 * progspace.c (remove_program_space): Delete, unused.
1334 * progspace.h (remove_program_space): Ditto.
1336 2014-05-17 Doug Evans <xdje42@gmail.com>
1338 * inferior.c (prune_inferiors): Fix comment.
1339 (remove_inferior_command): Call prune_program_spaces.
1341 2014-05-16 Doug Evans <dje@google.com>
1343 New command line option -D.
1345 * main.c (set_gdb_data_directory): New function.
1346 (captured_main): Recognize -D. Flag error for --data-directory "".
1347 Call set_gdb_data_directory.
1348 (print_gdb_help): Print --data-directory, -D.
1349 * main.h (set_gdb_data_directory): Declare.
1350 * top.c (staged_gdb_datadir): New static global.
1351 (set_gdb_datadir): Call set_gdb_data_directory
1352 (show_gdb_datadir): New function.
1353 (init_main): Update init of data-directory parameter.
1355 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1357 Import the "dirfd" gnulib module.
1358 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1359 * gnulib/aclocal.m4: Update.
1360 * gnulib/config.in: Update.
1361 * gnulib/configure: Update.
1362 * gnulib/import/Makefile.am: Update.
1363 * gnulib/import/Makefile.in: Update.
1364 * gnulib/import/dirfd.c: New.
1365 * gnulib/import/m4/dirfd.m4: New.
1366 * gnulib/import/m4/gnulib-cache.m4: Update.
1367 * gnulib/import/m4/gnulib-comp.m4: Update.
1369 2014-05-16 Pierre Muller <muller@sourceware.org>
1370 Yao Qi <yao@codesourcery.com>
1372 * valprint.c (print_wchar): Move the code on checking whether
1373 W is a printable wide char to the default branch of switch
1374 statement below. Call wchar_printable instead of gdb_iswprint.
1376 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1378 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1379 ldr.w and ldrd instructions.
1381 2014-05-15 Doug Evans <dje@google.com>
1383 * dwarf2read.c (read_structure_type): Delete outdated comments.
1385 2014-05-14 Tom Tromey <tromey@redhat.com>
1387 * macrocmd.c (print_macro_definition): Reindent.
1389 2014-05-13 Doug Evans <xdje42@gmail.com>
1391 * python/py-cmd.c (cmdpy_completer): Add comment.
1392 (completers): Make const.
1394 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1396 * infrun.c (resume): Remove should_resume (unused). Move up
1397 declaration of resume_ptid.
1399 2014-05-13 Tom Tromey <tromey@redhat.com>
1401 * language.h (unop_type_check): Remove.
1402 (binop_type_check): Don't declare.
1404 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1406 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1407 call to regcache_raw_collect.
1409 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1411 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1412 mi_console->quote as the quoting character.
1414 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1416 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1418 2014-04-29 Tom Tromey <tromey@redhat.com>
1420 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1421 "show debug varobj".
1423 2014-05-07 Kyle McMartin <kyle@redhat.com>
1425 Pushed by Joel Brobecker <brobecker@adacore.com>.
1426 * aarch64-tdep.c (aarch64_software_single_step): New function.
1427 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1428 with aarch64_software_single_step.
1430 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1434 2014-05-05 Keith Seitz <keiths@redhat.com>
1436 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1437 variable or history value is successfully parsed.
1439 2014-05-05 Yao Qi <yao@codesourcery.com>
1440 Pedro Alves <palves@redhat.com>
1442 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1443 address of blocks that intersects the requested range. Trim
1444 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1446 * ctf.c (ctf_xfer_partial): Likewise.
1448 2014-05-05 Yao Qi <yao@codesourcery.com>
1450 * printcmd.c (display_command): Remove the check to
1451 target_has_execution.
1453 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1455 * ppcobsd-nat.c: Include "obsd-nat.h".
1456 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1458 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1460 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1462 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1463 and 16-bit signed and unsigned arguments. Update comment.
1464 (stap_parse_probe_arguments): Extend code to handle such
1465 arguments. Use warning instead of complaint to notify about
1466 unrecognized bitness.
1468 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1470 PR breakpoints/16889
1471 * stap-probe.c (stap_parse_probe_arguments): Simplify
1472 check for non-prefixed probes (i.e., probes whose
1473 arguments do not start with "N@"). Always set the
1474 argument type to a sane value.
1476 2014-05-01 David Taylor <dtaylor@emc.com>
1478 * remote.c (compare_sections_command): Add -r option to compare
1479 all loadable read-only sections.
1481 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1483 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1484 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1486 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1487 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1488 Remove unused CORE_ADDR argument. Update all callers.
1490 2014-04-29 Pedro Alves <palves@redhat.com>
1492 * remote.c (struct packet_config) <detect>: Extend comment.
1493 (add_packet_config_cmd): Don't set the config's detect or support
1495 (init_all_packet_configs): Also initialize the config's 'detect'
1497 (reset_all_packet_configs_support): New function.
1498 (remote_open_1): Call reset_all_packet_configs_support instead of
1499 init_all_packet_configs.
1500 (_initialize_remote): Initialize all packet configs. Assert that
1501 all packets have an associated command, except a few known
1504 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1506 * dwarf2read.c (read_subrange_type): Handle dynamic
1507 DW_AT_lower_bound attributes.
1509 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1511 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1512 dynamic bounds before computing its upper bound.
1513 (ada_discrete_type_low_bound): Same as above with the lower bound.
1515 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1517 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1518 range types. Adjust the array handling implementation to
1519 take advantage of this change.
1520 (resolve_dynamic_range): New function, mostly extracted from
1521 resolve_dynamic_bounds.
1522 (resolve_dynamic_array): New function, mostly extracted from
1523 resolve_dynamic_bounds.
1524 (resolve_dynamic_bounds): Delete.
1525 (resolve_dynamic_type): Reimplement. Add handling of
1526 TYPE_CODE_RANGE types.
1528 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1530 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1531 handling of parallel ___XA types.
1533 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1535 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1536 unnecessary second call to static_unwrap_type.
1538 2014-04-27 Hui Zhu <hui@codesourcery.com>
1540 * stack.c (print_frame_info): Call do_gdb_disassembly with
1541 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1543 2014-04-26 Doug Evans <xdje42@gmail.com>
1545 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1547 2014-04-25 Pedro Alves <palves@redhat.com>
1550 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1551 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1552 and newline from built string.
1553 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1554 (linux_ptrace_attach_fail_reason): ... this.
1555 * linux-nat.c (linux_nat_attach): Adjust to use
1556 linux_ptrace_attach_fail_reason.
1558 2014-04-25 Pedro Alves <palves@redhat.com>
1560 * remote.c (struct remote_state): Remove multi_process_aware,
1561 non_stop_aware, cond_tracepoints, cond_breakpoints,
1562 breakpoint_commands, fast_tracepoints, static_tracepoints,
1563 install_in_trace, disconnected_tracing,
1564 enable_disable_tracepoints, string_tracing, and
1565 augmented_libraries_svr4_read fields.
1566 (remote_multi_process_p): Move further below in the file.
1567 (struct packet_config): Add comments.
1568 (update_packet_config): Delete function.
1569 (show_packet_config_cmd): Use packet_config_support.
1570 (add_packet_config_cmd): Use NULL as set callback.
1571 (packet_ok): "set remote foo-packet"-style commands no longer
1572 change config->supported -- adjust.
1573 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1574 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1575 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1576 (PACKET_QNonStop, PACKET_multiprocess_feature)
1577 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1578 (PACKET_DisconnectedTracing_feature)
1579 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1580 (set_remote_protocol_packet_cmd): Delete function.
1581 (packet_config_support, packet_support): New functions.
1582 (set_remote_protocol_Z_packet_cmd): Don't call
1583 update_packet_config.
1584 (remote_query_attached, remote_pass_signals)
1585 (remote_program_signals, remote_threads_info)
1586 (remote_threads_extra_info, remote_start_remote): Use
1588 (remote_start_remote): Use packet_config_support and
1590 (init_all_packet_configs): Set all packets to unknown support,
1591 instead of calling update_packet_config.
1592 (remote_check_symbols): Use packet_support.
1593 (remote_supported_packet): Unconditionally set the packet config's
1595 (remote_multi_process_feature, remote_non_stop_feature)
1596 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1597 (remote_breakpoint_commands_feature)
1598 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1599 (remote_install_in_trace_feature)
1600 (remote_disconnected_tracing_feature)
1601 (remote_enable_disable_tracepoint_feature)
1602 (remote_string_tracing_feature)
1603 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1604 (remote_protocol_features): Adjust to use remote_supported_packet
1605 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1606 "ConditionalTracepoints", "ConditionalBreakpoints",
1607 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1608 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1609 "EnableDisableTracepoints", and "tracenz".
1610 (remote_query_supported): Use packet_support.
1611 (remote_open_1): Adjust.
1612 (extended_remote_attach_1): Use packet_support. Switch on the
1613 result of packet_ok instead of checking whether the packet ended
1615 (remote_vcont_resume): Use packet_support.
1616 (remote_resume, remote_stop_ns, fetch_register_using_p)
1617 (remote_prepare_to_store, store_register_using_P)
1618 (check_binary_download, remote_write_bytes): Use packet_support.
1619 (remote_vkill): Use packet_support. Switch on the result of
1620 packet_ok instead of checking whether the packet ended up
1622 (extended_remote_supports_disable_randomization): Use
1624 (extended_remote_run): Switch on the result of packet_ok instead
1625 of checking whether the packet ended up disabled.
1626 (remote_insert_breakpoint, remote_remove_breakpoint)
1627 (remote_insert_watchpoint, remote_remove_watchpoint)
1628 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1630 (remote_search_memory): Use packet_config_support.
1631 (remote_get_thread_local_address, remote_get_tib_address)
1632 (remote_hostio_send_command, remote_can_execute_reverse): Use
1634 (remote_supports_cond_tracepoints)
1635 (remote_supports_cond_breakpoints)
1636 (remote_supports_fast_tracepoints)
1637 (remote_supports_static_tracepoints)
1638 (remote_supports_install_in_trace)
1639 (remote_supports_enable_disable_tracepoint)
1640 (remote_supports_string_tracing)
1641 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1642 the packet config says the feature is enabled or disabled.
1643 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1644 (remote_get_trace_status): Use packet_support.
1645 (remote_set_disconnected_tracing): Adjust to check whether the
1646 feature is enabled with packet_support.
1647 (remote_set_trace_buffer_size, remote_use_agent)
1648 (remote_can_use_agent, remote_supports_btrace): Use
1650 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1651 Use packet_config_support.
1652 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1653 the packet config says the feature is enabled or disabled.
1654 (set_range_stepping): Use packet_support.
1656 2014-04-25 Tom Tromey <tromey@redhat.com>
1658 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1661 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1663 * NEWS: Mention support for C99 variable length arrays.
1665 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1667 * ada-lang.c (standard_exc): Expand introductory comment.
1669 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1670 Walfred Tedeschi <walfred.tedeschi@intel.com>
1672 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1674 (amd64_linux_read_description): Add code to handle AVX512 xstate
1675 mask and return respective tdesc.
1676 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1677 and features/i386/x32-avx512-linux.c.
1678 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1679 (amd64_linux_core_read_description): Add code to handle AVX512
1680 xstate mask and return respective tdesc.
1681 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1682 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1684 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1685 (tdesc_amd64_avx512_linux): New prototype.
1686 (tdesc_x32_avx512_linux): Likewise.
1687 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1688 features/i386/x32-avx512.c.
1689 (amd64_ymm_avx512_names): New register names for pseudo
1691 (amd64_ymmh_avx512_names): New register names for raw registers
1693 (amd64_k_names): New register names for K registers.
1694 (amd64_zmmh_names): New register names for ZMM raw registers.
1695 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1696 (amd64_xmm_avx512_names): New register names for XMM16-31
1698 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1700 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1701 if feature is present.
1702 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1703 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1704 (AMD64_NUM_REGS): Adjust to new number of registers.
1705 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1706 registers supplied via XSTATE by AVX512 registers.
1707 (i386_linux_read_description): Add case for AVX512.
1708 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1709 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1710 (i386_linux_core_read_description): Add case for AVX512.
1711 (i386_linux_init_abi): Install supported register note section
1713 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1715 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1716 registers to be number of zmm7h + 1.
1717 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1718 * i386-tdep.c: Include features/i386/i386-avx512.c.
1719 (i386_zmm_names): Add ZMM pseudo register names array.
1720 (i386_zmmh_names): Add ZMM raw register names array.
1721 (i386_k_names): Add K raw register names array.
1722 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1723 registers. AVX512 has 16 more ZMM registers than there are YMM
1725 (i386_zmmh_regnum_p): Add function to look up register number of
1727 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1728 (i386_k_regnum_p): Likewise for K raw registers.
1729 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1730 registers added by AVX512.
1731 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1732 registers added by AVX512.
1733 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1735 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1736 (i386_pseudo_register_name): Add ZMM pseudo registers.
1737 (i386_zmm_type): Construct and return vector registers type for ZMM
1739 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1740 ZMM0-31 pseudo registers and K registers.
1741 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1742 and YMM16-31 registers from register cache.
1743 (i386_pseudo_register_write): Add code to write K, ZMM and
1745 (i386_register_reggroup_p): Add code to include/exclude AVX512
1746 registers in/from respective register groups.
1747 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1748 registers if feature is present in xcr0.
1749 (i386_gdbarch_init): Add code to initialize AVX512 feature
1750 variables in tdep structure, wire in pseudo registers and call
1751 initialize_tdesc_i386_avx512.
1752 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1754 (i386_regnum): Add AVX512 registers.
1755 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1756 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1757 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1758 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1760 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1761 (i386_ymm_avx512_regnum_p): Likewise.
1762 (i386_k_regnum_p): Likewise.
1763 (i386_zmm_regnum_p): Likewise.
1764 (i386_zmmh_regnum_p): Likewise.
1765 * i387-tdep.c : Update year in copyright notice.
1766 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1768 (XSAVE_YMM_AVX512_ADDR): New macro.
1769 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1771 (XSAVE_XMM_AVX512_ADDR): New macro.
1772 (xsave_avx512_k_offset): New table for K register offsets in
1774 (XSAVE_AVX512_K_ADDR): New macro.
1775 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1777 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1778 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1780 (i387_collect_xsave): Add code to collect AVX512 registers from
1782 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1783 of XMM16-31 registers.
1784 (I387_NUM_K_REGS): New define for number of K registers.
1785 (I387_K0_REGNUM): New define for K0 register number.
1786 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1787 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1788 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1790 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1791 (I387_XMM16_REGNUM): New define for XMM16 register number.
1792 (I387_YMM0_REGNUM): New define for YMM0 register number.
1793 (I387_KEND_REGNUM): New define for last K register number.
1794 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1795 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1797 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1799 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1801 * features/Makefile: Add AVX512 related files.
1802 * features/i386/32bit-avx512.xml: New file.
1803 * features/i386/64bit-avx512.xml: Likewise.
1804 * features/i386/amd64-avx512-linux.c: Likewise.
1805 * features/i386/amd64-avx512-linux.xml: Likewise.
1806 * features/i386/amd64-avx512.c: Likewise.
1807 * features/i386/amd64-avx512.xml: Likewise.
1808 * features/i386/i386-avx512-linux.c: Likewise.
1809 * features/i386/i386-avx512-linux.xml: Likewise.
1810 * features/i386/i386-avx512.c: Likewise.
1811 * features/i386/i386-avx512.xml: Likewise.
1812 * features/i386/x32-avx512-linux.c: Likewise.
1813 * features/i386/x32-avx512-linux.xml: Likewise.
1814 * features/i386/x32-avx512.c: Likewise.
1815 * features/i386/x32-avx512.xml: Likewise.
1816 * regformats/i386/amd64-avx512-linux.dat: New file.
1817 * regformats/i386/amd64-avx512.dat: Likewise.
1818 * regformats/i386/i386-avx512-linux.dat: Likewise.
1819 * regformats/i386/i386-avx512.dat: Likewise.
1820 * regformats/i386/x32-avx512-linux.dat: Likewise.
1821 * regformats/i386/x32-avx512.dat: Likewise.
1822 * NEWS: Add note about new support for AVX512.
1825 2014-04-23 Pedro Alves <palves@redhat.com>
1827 * breakpoint.c (insert_bp_location): Tolerate errors if the
1828 breakpoint is set in a user-loaded objfile.
1829 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1830 location is marked shlib_disabled. If the breakpoint is set in a
1831 user-loaded objfile is a GDB-side memory breakpoint, validate it
1832 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1833 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1835 * mem-break.c (memory_validate_breakpoint): New function.
1836 * objfiles.c (userloaded_objfile_contains_address_p): New
1838 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1839 * target.h (memory_validate_breakpoint): New declaration.
1841 2014-04-23 Pedro Alves <palves@redhat.com>
1843 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1844 the breakpoint is set in a shared library, only suppress
1845 errors for software breakpoints, not hardware breakpoints.
1847 2014-04-22 Pedro Alves <palves@redhat.com>
1849 * infrun.c (schedlock_applies): New function, factored out from
1850 find_thread_needs_step_over.
1851 (find_thread_needs_step_over): Use it.
1852 (switch_back_to_stepped_thread): Always clear trap_expected if the
1853 step over is finished. Return early if scheduler locking applies.
1854 Look for the stepping thread and a potential step-over thread with
1856 (currently_stepping_or_nexting_callback): Delete.
1858 2014-04-22 Nick Clifton <nickc@redhat.com>
1860 * NEWS: Mention that ARM sim now supports tracing.
1862 2014-04-22 Yao Qi <yao@codesourcery.com>
1864 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1866 * tracefile.c (tracefile_fetch_registers): ... it. New
1868 * tracefile.h (tracefile_fetch_registers): Declare.
1869 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1870 tracefile_fetch_registers.
1872 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1875 * windows-nat.c (thread_rec): Don't display a warning when
1876 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1877 fails for any reason, set th->suspended to -1, so that we don't
1878 try to resume such a thread. Also, don't return NULL in these
1879 cases, to avoid completely ruin the session due to "PC register is
1880 not available" error.
1881 (do_windows_fetch_inferior_registers): Check errors in
1882 GetThreadContext call.
1883 (windows_continue): Accept an additional argument KILLED; if not
1884 zero, ignore errors in the SetThreadContext call, since the
1885 inferior was killed and is shutting down.
1886 (windows_resume, get_windows_debug_event)
1887 (windows_create_inferior, windows_mourn_inferior)
1888 (windows_kill_inferior): All callers of windows_continue changed
1889 to adjust to its new calling sequence.
1891 2014-04-19 Yao Qi <yao@codesourcery.com>
1893 * ctf.c (ctf_open): Call post_create_inferior.
1895 2014-04-19 Yao Qi <yao@codesourcery.com>
1897 * ctf.c (handle_id): New static variable.
1898 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1899 value. Get the declaration of event "register" and get length
1900 of field "contents".
1902 2014-04-19 Yao Qi <yao@codesourcery.com>
1904 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1906 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1908 * valops.c (oload_method_static): Remove unnecessary argument
1909 METHOD. Update all callers.
1911 2014-04-18 Pedro alves <palves@redhat.com>
1912 Tom Tromey <tromey@redhat.com>
1915 * frame.c (get_prev_frame_1): Rename to ...
1916 (get_prev_frame_always): ... this, and make extern. Adjust.
1917 (skip_artificial_frames): Use get_prev_frame_always.
1918 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1919 (get_frame_unwind_stop_reason): Adjust to rename.
1920 * frame.h (get_prev_frame_always): Declare.
1921 * inline-frame.c: Include frame.h.
1922 (inline_frame_this_id): Use get_prev_frame_always.
1924 2014-04-18 Tristan Gingold <gingold@adacore.com>
1926 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1927 code by using bfd_mach_o_get_base_address.
1929 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1931 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1932 (spu_ax_pseudo_register_collect): New function.
1933 (spu_ax_pseudo_register_push_stack): Likewise.
1934 (spu_dwarf_reg_to_regnum): Likewise.
1935 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1937 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1939 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1940 Replace FRAME argument with FRAME_ID.
1941 * gdbarch.c, gdbarch.h: Regenerate.
1942 * findvar.c (default_value_from_register): Add GDBARCH argument;
1943 replace FRAME by FRAME_ID. No longer call get_frame_id.
1944 (value_from_register): Update call to gdbarch_value_from_register.
1945 * value.h (default_value_from_register): Update prototype.
1946 * s390-linux-tdep.c (s390_value_from_register): Update interface
1947 and call to default_value_from_register.
1948 * spu-tdep.c (spu_value_from_register): Likewise.
1950 * findvar.c (address_from_register): Remove TYPE argument.
1951 Do not call value_from_register; use gdbarch_value_from_register
1952 with null_frame_id instead.
1953 * value.h (address_from_register): Update prototype.
1954 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1955 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1956 address_from_register interface change.
1958 2014-04-17 Yao Qi <yao@codesourcery.com>
1960 * gdbtypes.h: Update comments to link to types and macros'
1963 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1965 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1967 2014-04-16 Keith Seitz <keiths@redhat.com>
1970 * dwarf2read.c (skip_one_die): Check that all relative-offset
1971 sibling DIEs fall within range of the current reader's buffer.
1972 (read_partial_die): Likewise.
1974 2014-04-16 Keith Seitz <keiths@redhat.com>
1977 * cp-namespace.c (lookup_symbol_file): If the type name of
1978 `this' is NULL, return immediately.
1980 2014-04-14 Keith Seitz <keiths@redhat.com>
1983 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1984 from symbol_matches_domain in symtab.c. All local callers
1985 of symbol_matches_domain updated.
1986 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1987 search STRUCT_DOMAIN.
1988 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1989 independently. standard_lookup will do that automatically.
1990 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1991 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1992 (cp_lookup_symbol_in_namespace): Likewise.
1993 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1994 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1995 may return a STRUCT_DOMAIN match.
1996 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1997 * cp-support.c: Include language.h.
1998 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2000 * psymtab.c (match_partial_symbol): Compare the requested
2001 domain with the symbol's domain directly.
2002 (lookup_partial_symbol): Likewise.
2003 * symtab.c (lookup_symbol_in_language): Explain when/why
2004 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2005 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2006 appropriate languages.
2007 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2008 and moved to ada-lang.c
2009 (lookup_block_symbol): Explain that this function only returns
2010 symbol matching the requested DOMAIN.
2011 Compare the requested domain with the symbol's domain directly.
2012 (iterate_over_symbols): Compare the requested domain with the
2013 symbol's domain directly.
2014 * symtab.h (symbol_matches_domain): Remove.
2016 2014-04-14 Tom Tromey <tromey@redhat.com>
2019 * c-exp.y (type_aggregate_p): New function.
2020 (qualified_name, classify_inner_name): Use it.
2021 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2022 and TYPE_TARGET_TYPE of an enum type.
2023 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2025 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2026 handle TYPE_DECLARED_CLASS.
2027 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2029 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2030 * valops.c (enum_constant_from_type): New function.
2031 (value_aggregate_elt): Use it.
2032 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2035 2014-04-14 Tom Tromey <tromey@redhat.com>
2037 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2038 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2040 * value.h (value_aggregate_elt): Update.
2042 2014-04-14 Tom Tromey <tromey@redhat.com>
2044 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2046 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2048 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2049 (evaluate_subexp_standard): Pass noside argument.
2050 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2051 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2052 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2053 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2054 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2056 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2058 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2059 points to a constant blob.
2061 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2063 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2064 property and store it as the high bound and flag the range accordingly.
2065 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2066 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2067 * gdbtypes.h (enum range_flags): New enum.
2068 (struct range_bounds): Add flags member.
2070 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2072 * c-typeprint.c (c_type_print_varspec_suffix): Added
2073 check for not yet resolved high bound. If unresolved, print
2074 "variable length" string to the console instead of random
2077 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2079 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2081 (ada_template_to_fixed_record_type_1): Likewise.
2082 (ada_to_fixed_type_1): Likewise.
2083 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2084 (cp_print_value): Likewise.
2085 * d-valprint.c (dynamic_array_type): Likewise.
2086 * findvar.c (address_of_variable): Likewise.
2087 * jv-valprint.c (java_value_print): Likewise.
2088 * valops.c (value_ind): Likewise.
2089 * value.c (coerce_ref): Likewise.
2091 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2093 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2094 value and retrieve the dynamic type size.
2096 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2102 Joel Brobecker <brobecker@adacore.com>
2104 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2105 (dwarf2_evaluate_property): New function.
2106 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2107 * dwarf2read.c (attr_to_dynamic_prop): New function.
2108 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2110 * gdbtypes.c: Include dwarf2loc.h.
2111 (is_dynamic_type): New function.
2112 (resolve_dynamic_type): New function.
2113 (resolve_dynamic_bounds): New function.
2114 (get_type_length): New function.
2115 (check_typedef): Use get_type_length to compute type length.
2116 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2117 (TYPE_LOW_BOUND_KIND): New macro.
2118 (is_dynamic_type): New function prototype.
2119 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2120 to resolve dynamic properties of the type. Update comment.
2121 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2123 2014-04-14 Richard Henderson <rth@redhat.com>
2125 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2127 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2128 Doug Evans <xdje42@gmail.com>
2130 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2131 dereference TYPE_CODE_REF values.
2133 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2135 Revert the following changes due to regressions:
2137 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2138 (dwarf2_evaluate_property): New function.
2139 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2140 * dwarf2read.c (attr_to_dynamic_prop): New function.
2141 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2143 * gdbtypes.c: Include dwarf2loc.h.
2144 (is_dynamic_type): New function.
2145 (resolve_dynamic_type): New function.
2146 (resolve_dynamic_bounds): New function.
2147 (get_type_length): New function.
2148 (check_typedef): Use get_type_length to compute type length.
2149 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2150 (TYPE_LOW_BOUND_KIND): New macro.
2151 (is_dynamic_type): New function prototype.
2152 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2153 to resolve dynamic properties of the type. Update comment.
2154 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2156 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2157 passed to sizeof is dynamic evaluate the argument to compute the length.
2159 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2160 value and retrieve the dynamic type size.
2162 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2163 (ada_template_to_fixed_record_type_1): Likewise.
2164 (ada_to_fixed_type_1): Likewise.
2165 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2166 (cp_print_value): Likewise.
2167 * d-valprint.c (dynamic_array_type): Likewise.
2168 * eval.c (evaluate_subexp_with_coercion): Likewise.
2169 * findvar.c (address_of_variable): Likewise.
2170 * jv-valprint.c (java_value_print): Likewise.
2171 * valops.c (value_ind): Likewise.
2172 * value.c (coerce_ref): Likewise.
2174 * c-typeprint.c (c_type_print_varspec_suffix): Added
2175 check for not yet resolved high bound. If unresolved, print
2176 "variable length" string to the console instead of random
2179 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2180 property and store it as the high bound and flag the range accordingly.
2181 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2182 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2183 * gdbtypes.h (enum range_flags): New enum.
2184 (struct range_bounds): Add flags member.
2186 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2187 points to a constant blob.
2189 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2190 (evaluate_subexp_standard): Pass noside argument.
2191 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2192 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2193 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2194 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2195 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2197 2014-04-11 Keith Seitz <keiths@redhat.com>
2200 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2201 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2204 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2206 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2207 (evaluate_subexp_standard): Pass noside argument.
2208 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2209 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2210 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2211 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2212 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2214 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2216 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2217 points to a constant blob.
2219 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2221 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2222 property and store it as the high bound and flag the range accordingly.
2223 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2224 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2225 * gdbtypes.h (enum range_flags): New enum.
2226 (struct range_bounds): Add flags member.
2228 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2230 * c-typeprint.c (c_type_print_varspec_suffix): Added
2231 check for not yet resolved high bound. If unresolved, print
2232 "variable length" string to the console instead of random
2235 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2237 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2238 (ada_template_to_fixed_record_type_1): Likewise.
2239 (ada_to_fixed_type_1): Likewise.
2240 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2241 (cp_print_value): Likewise.
2242 * d-valprint.c (dynamic_array_type): Likewise.
2243 * eval.c (evaluate_subexp_with_coercion): Likewise.
2244 * findvar.c (address_of_variable): Likewise.
2245 * jv-valprint.c (java_value_print): Likewise.
2246 * valops.c (value_ind): Likewise.
2247 * value.c (coerce_ref): Likewise.
2249 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2251 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2252 value and retrieve the dynamic type size.
2254 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2256 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2257 passed to sizeof is dynamic evaluate the argument to compute the length.
2259 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2261 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2262 (dwarf2_evaluate_property): New function.
2263 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2264 * dwarf2read.c (attr_to_dynamic_prop): New function.
2265 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2267 * gdbtypes.c: Include dwarf2loc.h.
2268 (is_dynamic_type): New function.
2269 (resolve_dynamic_type): New function.
2270 (resolve_dynamic_bounds): New function.
2271 (get_type_length): New function.
2272 (check_typedef): Use get_type_length to compute type length.
2273 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2274 (TYPE_LOW_BOUND_KIND): New macro.
2275 (is_dynamic_type): New function prototype.
2276 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2277 to resolve dynamic properties of the type. Update comment.
2278 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2280 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2282 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2283 declaring high/low bounds and change uses accordingly. Call
2284 create_range_type instead of create_static_range_type.
2285 * gdbtypes.c (create_range_type): New function.
2286 (create_range_type): Convert bounds into struct bound_prop and pass
2287 them to create_range_type.
2288 * gdbtypes.h (struct bound_prop): New struct.
2289 (create_range_type): New function prototype.
2290 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2291 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2292 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2294 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2296 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2298 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2299 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2300 * ada-lang.c: All uses of create_range_type updated.
2301 * coffread.c: All uses of create_range_type updated.
2302 * dwarf2read.c: All uses of create_range_type updated.
2303 * f-exp.y: All uses of create_range_type updated.
2304 * m2-valprint.c: All uses of create_range_type updated.
2305 * mdebugread.c: All uses of create_range_type updated.
2306 * stabsread.c: All uses of create_range_type updated.
2307 * valops.c: All uses of create_range_type updated.
2308 * valprint.c: All uses of create_range_type updated.
2310 2014-04-10 Pedro Alves <palves@redhat.com>
2312 * breakpoint.c (single_step_breakpoints)
2313 (single_step_gdbarch): Move up in the file.
2314 (one_breakpoint_xfer_memory): New function, factored out from ...
2315 (breakpoint_xfer_memory): ... here. Also process single-step
2318 2014-04-09 Tristan Gingold <gingold@adacore.com>
2320 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2322 (darwin_decode_exception_message): Free port only after use.
2324 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2326 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2327 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2328 when setting the size of call_length.
2330 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2332 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2333 dereference TYPE_CODE_REF values.
2335 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2337 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2338 end of warning message.
2340 2014-04-03 Doug Evans <dje@google.com>
2342 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2343 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2345 2014-04-02 Alan Modra <amodra@gmail.com>
2347 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2348 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2349 (struct symbol_file_add_from_memory_args): Add size field.
2350 (find_vdso_size): New function.
2351 (add_vsyscall_page): Attempt to find vdso size.
2353 2014-04-01 Doug Evans <dje@google.com>
2355 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2357 2014-04-01 Tristan Gingold <gingold@adacore.com>
2359 * darwin-nat.c (darwin_encode_reply): Add prototype.
2360 (darwin_decode_exception_message): Reply to unknown inferiors.
2361 (darwin_decode_message): Handle message by id. Ignore message
2362 to unknown inferior.
2363 (darwin_wait): Discard unknown messages, add debug trace.
2365 2014-03-31 Doug Evans <dje@google.com>
2367 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2370 2014-03-31 Doug Evans <dje@google.com>
2372 New option "set print symbol-loading".
2374 * solib.c (solib_read_symbols): Only print symbol loading messages
2376 (solib_add): If symbol loading is in "brief" mode, notify user
2377 symbols are being loaded.
2378 (reload_shared_libraries_1): Ditto.
2379 * symfile.c (print_symbol_loading_off): New static global.
2380 (print_symbol_loading_brief): New static global.
2381 (print_symbol_loading_full): New static global.
2382 (print_symbol_loading_enums): New static global.
2383 (print_symbol_loading): New static global.
2384 (print_symbol_loading_p): New function.
2385 (symbol_file_add_with_addrs): Only print symbol loading messages
2387 (_initialize_symfile): Register "print symbol-loading" set/show
2389 * symfile.h (print_symbol_loading_p): Declare.
2391 2014-03-30 Doug Evans <xdje42@gmail.com>
2393 * infrun.c (set_last_target_status): New function.
2394 (handle_inferior_event): Call it.
2396 2014-03-30 Doug Evans <xdje42@gmail.com>
2398 * inferior.h (enum stop_kind): Improve comment.
2400 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2402 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2403 a reference, strip the reference layer before calling
2404 the lang_ops value_has_mutated callback.
2406 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2408 Remove some globals from our parser.
2409 * language.c (unk_lang_parser): Add "struct parser_state"
2411 * language.h (struct language_defn) <la_parser>: Likewise.
2412 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2413 (initialize_expout): Add "struct parser_state" argument.
2414 Rewrite function to use the parser state.
2415 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2416 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2417 write_exp_elt_longcst, write_exp_elt_dblcst,
2418 write_exp_elt_decfloatcst, write_exp_elt_type,
2419 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2420 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2421 write_dollar_variable): Likewise.
2422 (parse_exp_in_context_1): Use parser state.
2423 (insert_type_address_space): Add "struct parser_state" argument.
2425 (increase_expout_size): New function.
2426 * parser-defs.h: Forward declare "struct language_defn" and
2427 "struct parser_state".
2428 (expout, expout_size, expout_ptr): Remove extern declarations.
2429 (parse_gdbarch, parse_language): Rewrite macro declarations to
2430 accept the parser state.
2431 (struct parser_state): New struct.
2432 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2433 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2434 write_exp_elt_decfloatcst, write_exp_elt_type,
2435 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2436 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2437 write_exp_msymbol, write_dollar_variable,
2438 mark_struct_expression, insert_type_address_space): Add "struct
2439 parser_state" argument.
2440 (increase_expout_size): New function.
2441 * utils.c (do_clear_parser_state): New function.
2442 (make_cleanup_clear_parser_state): Likewise.
2443 * utils.h (make_cleanup_clear_parser_state): New function
2445 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2446 Update calls to write_exp* in order to pass the parser state.
2447 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2448 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2449 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2450 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2451 * stap-probe.c (stap_parse_register_operand): Likewise.
2452 (stap_parse_single_operand): Likewise.
2453 (stap_parse_argument_1): Likewise.
2454 (stap_parse_argument): Use parser state.
2455 * stap-probe.h: Include "parser-defs.h".
2456 (struct stap_parse_info) <pstate>: New field.
2457 * c-exp.y (parse_type): Rewrite to use parser state.
2458 (yyparse): Redefine to c_parse_internal.
2459 (pstate): New global variable.
2460 (parse_number): Add "struct parser_state" argument.
2461 (write_destructor_name): Likewise.
2462 (type_exp): Update calls to write_exp* and similars in order to
2464 (exp1, exp, variable, qualified_name, space_identifier,
2465 typename, typebase): Likewise.
2466 (write_destructor_name, parse_number, lex_one_token,
2467 classify_name, classify_inner_name, c_parse): Add "struct
2468 parser_state" argument. Update function to use parser state.
2469 * c-lang.h: Forward declare "struct parser_state".
2470 (c_parse): Add "struct parser_state" argument.
2471 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2472 (yyparse): Redefine macro to ada_parse_internal.
2473 (pstate): New variable.
2474 (write_int, write_object_renaming, write_var_or_type,
2475 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2476 type_int, type_long, type_long_long, type_float, type_double,
2477 type_long_double, type_char, type_boolean, type_system_address):
2478 Add "struct parser_state" argument.
2479 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2480 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2481 var_or_type, aggregate, aggregate_component_list,
2482 positional_list, others, component_group,
2483 component_associations): Update calls to write_exp* and similar
2484 functions in order to use parser state.
2485 (ada_parse, write_var_from_sym, write_int,
2486 write_exp_op_with_string, write_object_renaming,
2487 find_primitive_type, write_selectors, write_ambiguous_var,
2488 write_var_or_type, write_name_assoc, type_int, type_long,
2489 type_long_long, type_float, type_double, type_long_double,
2490 type_char, type_boolean, type_system_address): Add "struct
2491 parser_state" argument. Adjust function to use parser state.
2492 * ada-lang.c (parse): Likewise.
2493 * ada-lang.h: Forward declare "struct parser_state".
2494 (ada_parse): Add "struct parser_state" argument.
2495 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2496 calls to both functions.
2497 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2499 (yyparse): Redefine macro to f_parse_internal.
2500 (pstate): New variable.
2501 (parse_number): Add "struct parser_state" argument.
2502 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2503 and similars in order to use parser state.
2504 (parse_number): Adjust code to use parser state.
2506 (f_parse): New function.
2507 * f-lang.h: Forward declare "struct parser_state".
2508 (f_parse): Add "struct parser_state" argument.
2509 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2511 (yyparse): Redefine macro for java_parse_internal.
2512 (pstate): New variable.
2513 (push_expression_name, push_expression_name, insert_exp): Add
2514 "struct parser_state" argument.
2515 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2516 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2517 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2518 PostIncrementExpression, PostDecrementExpression,
2519 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2520 UnaryExpressionNotPlusMinus, CastExpression,
2521 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2522 RelationalExpression, EqualityExpression, AndExpression,
2523 ExclusiveOrExpression, InclusiveOrExpression,
2524 ConditionalAndExpression, ConditionalOrExpression,
2525 ConditionalExpression, Assignment, LeftHandSide): Update
2526 calls to write_exp* and similars in order to use parser state.
2527 (parse_number): Ajust code to use parser state.
2529 (java_parse): New function.
2530 (push_variable): Add "struct parser_state" argument. Adjust
2531 code to user parser state.
2532 (push_fieldnames, push_qualified_expression_name,
2533 push_expression_name, insert_exp): Likewise.
2534 * jv-lang.h: Forward declare "struct parser_state".
2535 (java_parse): Add "struct parser_state" argument.
2536 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2538 (yyparse): Redefine macro to m2_parse_internal.
2539 (pstate): New variable.
2540 (type_exp, exp, fblock, variable, type): Update calls to
2541 write_exp* and similars to use parser state.
2543 (m2_parse): New function.
2544 * m2-lang.h: Forward declare "struct parser_state".
2545 (m2_parse): Add "struct parser_state" argument.
2546 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2547 * objc-lang.h: Forward declare "struct parser_state".
2548 (end_msglist): Add "struct parser_state" argument.
2549 * p-exp.y (parse_type): Rewrite macro to use parser state.
2550 (yyparse): Redefine macro to pascal_parse_internal.
2551 (pstate): New variable.
2552 (parse_number): Add "struct parser_state" argument.
2553 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2554 write_exp* and similars in order to use parser state.
2555 (parse_number, yylex): Adjust code to use parser state.
2556 (pascal_parse): New function.
2557 * p-lang.h: Forward declare "struct parser_state".
2558 (pascal_parse): Add "struct parser_state" argument.
2559 * go-exp.y (parse_type): Rewrite macro to use parser state.
2560 (yyparse): Redefine macro to go_parse_internal.
2561 (pstate): New variable.
2562 (parse_number): Add "struct parser_state" argument.
2563 (type_exp, exp1, exp, variable, type): Update calls to
2564 write_exp* and similars in order to use parser state.
2565 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2566 to use parser state.
2567 (go_parse): Likewise.
2568 * go-lang.h: Forward declare "struct parser_state".
2569 (go_parse): Add "struct parser_state" argument.
2571 2014-03-27 Doug Evans <dje@google.com>
2573 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2575 2014-03-27 Doug Evans <dje@google.com>
2577 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2578 Remove argument abbrev_section. All callers updated.
2580 2014-03-27 Doug Evans <dje@google.com>
2582 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2583 addr_base, ranges_base.
2585 2014-03-26 Keith Seitz <keiths@redhat.com>
2587 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2588 types, not VAR_DOMAIN.
2590 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2592 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2594 * features/nios2-linux.c: Regenerated.
2595 * features/nios2.c: Regenerated.
2597 2014-03-25 Pedro Alves <palves@redhat.com>
2599 * cli/cli-script.c (script_from_file): Force the interpreter to
2602 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2604 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2605 small stack allocation.
2607 2014-03-24 Tristan Gingold <gingold@adacore.com>
2609 * darwin-nat.c (exc_server): Remove unused prototype.
2610 (darwin_dump_message): Correctly display data on x86_64.
2611 (darwin_encode_reply): Fix style.
2612 Add comments and fix indentation.
2614 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2616 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2618 2014-03-22 Doug Evans <xdje42@gmail.com>
2620 * infcmd.c: Whitespace fixes.
2621 (interrupt_command): Merge two function comments into one.
2623 2014-03-22 Doug Evans <xdje42@gmail.com>
2625 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2628 2014-03-22 Yao Qi <yao@codesourcery.com>
2630 * remote.c (target_read_live_memory): Remove.
2631 (memory_xfer_live_readonly_partial): Rename it to
2632 remote_xfer_live_readonly_partial. Remove argument 'object'.
2633 All callers updated. Call remote_read_bytes_1
2634 instead of target_read_live_memory.
2635 * tracepoint.c (set_traceframe_number): Remove.
2636 (make_cleanup_restore_traceframe_number): Likewise .
2637 * tracepoint.h (set_traceframe_number): Remove declaration.
2638 (make_cleanup_restore_traceframe_number): Likewise.
2640 2014-03-22 Yao Qi <yao@codesourcery.com>
2642 * remote.c (remote_read_bytes): Move code on reading from the
2644 (remote_read_bytes_1): ... here. New function.
2646 2014-03-22 Yao Qi <yao@codesourcery.com>
2648 * ctf.c (ctf_xfer_partial): Check the return value of
2649 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2650 return TARGET_XFER_UNAVAILABLE.
2651 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2652 * target.c (target_read_live_memory): Move it to remote.c.
2653 (memory_xfer_live_readonly_partial): Likewise.
2654 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2655 * remote.c (target_read_live_memory): Moved from target.c.
2656 (memory_xfer_live_readonly_partial): Likewise.
2657 (remote_read_bytes): Factored out from
2658 memory_xfer_partial_1.
2660 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2662 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2665 2014-03-21 Pedro Alves <palves@redhat.com>
2667 * infrun.c (normal_stop): Extend comment.
2669 2014-03-21 Hui Zhu <hui@codesourcery.com>
2670 Pedro Alves <palves@redhat.com>
2672 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2674 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2675 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2676 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2678 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2680 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2681 `z' formatted output modifier.
2683 2014-03-20 Tom Tromey <tromey@redhat.com>
2684 Sergio Durigan Junior <sergiodj@redhat.com>
2686 * probe.c (parse_probes): Turn assert into an ordinary error.
2687 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2688 exceptions when parsing probes. Rearrange the code for clarity.
2690 2014-03-20 Tom Tromey <tromey@redhat.com>
2693 * top.c (execute_command): Only dispatch events if the command
2696 2014-03-20 Tom Tromey <tromey@redhat.com>
2699 * infcall.c: Include event-top.h.
2700 (run_inferior_call): Call async_disable_stdin if needed.
2702 2014-03-20 Pedro Alves <palves@redhat.com>
2704 * infrun.c (prepare_to_proceed): Delete.
2705 (thread_still_needs_step_over): New function.
2706 (find_thread_needs_step_over): New function.
2707 (proceed): If the current thread needs a step-over, set its
2708 steping_over_breakpoint flag. Adjust to use
2709 find_thread_needs_step_over instead of prepare_to_proceed.
2710 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2711 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2713 (switch_back_to_stepped_thread): Step over breakpoints of all
2714 threads not the stepping thread, before switching back to the
2717 2014-03-20 Pedro Alves <palves@redhat.com>
2719 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2721 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2722 * infrun.c (saved_singlestep_ptid)
2723 (stepping_past_singlestep_breakpoint): Delete.
2724 (resume): Remove stepping_past_singlestep_breakpoint handling.
2725 (proceed): Store the prev_pc of the stepping thread too.
2726 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2728 (enum infwait_states): Delete infwait_thread_hop_state.
2729 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2731 (handle_inferior_event): Adjust.
2732 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2733 handling and the thread-hop code. Before removing single-step
2734 breakpoints, check whether the thread hit a single-step breakpoint
2735 of another thread. If it did, the trap is not a random signal.
2736 (switch_back_to_stepped_thread): If the event thread hit a
2737 single-step breakpoint, unblock it before switching to the
2738 stepping thread. Handle the case of the stepped thread having
2740 (keep_going): Handle the case of the current thread moving past a
2741 single-step breakpoint.
2743 2014-03-20 Pedro Alves <palves@redhat.com>
2746 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2747 are being stepped over.
2748 (breakpoint_address_match): Make extern.
2749 * breakpoint.h (breakpoint_address_match): New declaration.
2750 * inferior.h (stepping_past_instruction_at): New declaration.
2751 * infrun.c (struct step_over_info): New type.
2752 (step_over_info): New global.
2753 (set_step_over_info, clear_step_over_info)
2754 (stepping_past_instruction_at): New functions.
2755 (handle_inferior_event): Clear the step-over info when
2756 trap_expected is cleared.
2757 (resume): Remove now stale comment.
2758 (clear_proceed_status): Clear step-over info.
2759 (proceed): Adjust step-over handling to set or clear the step-over
2760 info instead of removing all breakpoints.
2761 (handle_signal_stop): When setting up a thread-hop, don't remove
2763 (stop_stepping): Clear step-over info.
2764 (keep_going): Adjust step-over handling to set or clear step-over
2765 info and then always inserting breakpoints, instead of removing
2766 all breakpoints when stepping over one.
2768 2014-03-20 Pedro Alves <palves@redhat.com>
2770 * infrun.c (previous_inferior_ptid): Adjust comment.
2771 (deferred_step_ptid): Delete.
2772 (infrun_thread_ptid_changed, prepare_to_proceed)
2773 (init_wait_for_inferior): Adjust.
2774 (handle_signal_stop): Delete deferred_step_ptid handling.
2776 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2779 * defs.h (sync_quit_force_run): New declaration.
2780 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2781 * event-top.c (async_sigterm_handler): New declaration.
2782 (async_sigterm_token): New variable.
2783 (async_init_signals): Create also async_sigterm_token.
2784 (async_sigterm_handler): New function.
2785 (sync_quit_force_run): New variable.
2786 (handle_sigterm): Replace quit_force call by other calls.
2787 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2789 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2791 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2792 offset into SPE pseudo registers.
2794 2014-03-18 Pedro Alves <palves@redhat.com>
2797 * inferior.h (print_stop_event): Declare.
2798 * infrun.c (print_stop_event): New, factored out from ...
2799 (normal_stop): ... this.
2800 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2801 of bpstat_print/print_stack_frame.
2803 2014-03-17 Tom Tromey <tromey@redhat.com>
2805 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2807 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2809 * ada-lang.c (decode_constrained_packed_array): Perform a
2810 minimal coercion for reference with coerce_ref instead of
2813 2014-03-17 Tristan Gingold <gingold@adacore.com>
2815 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2816 (darwin_solib_create_inferior_hook): Emit a warning if version
2819 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2821 * python/py-value.c (get_field_flag): Cast flag_name argument to
2822 PyObject_GetAttrString to support Python 2.4.
2824 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2826 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2827 (Global Maintainers): Remove Jan Kratochvil.
2829 2014-03-14 Pedro Alves <palves@redhat.com>
2831 * inferior.h (terminal_ours_for_output): Rename to ...
2832 (child_terminal_ours_for_output): ... this.
2833 (terminal_save_ours): Rename to ...
2834 (child_terminal_save_ours): ... this.
2835 (terminal_ours): Rename to ...
2836 (child_terminal_ours): ... this.
2837 (terminal_inferior): Rename to ...
2838 (child_terminal_inferior): ... this.
2839 (terminal_init_inferior): Rename to ...
2840 (child_terminal_init_inferior): ... this.
2841 (terminal_init_inferior_with_pgrp): Rename to ...
2842 (child_terminal_init_inferior_with_pgrp): ... this.
2843 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2844 (child_terminal_init_with_pgrp): ... this.
2845 (terminal_save_ours): Rename to ...
2846 (child_terminal_save_ours): ... this.
2847 (terminal_init_inferior): Rename to ...
2848 (child_terminal_init): ... this. Adjust.
2849 (terminal_inferior): Rename to ...
2850 (child_terminal_inferior): ... this.
2851 (terminal_ours_for_output): Rename to ...
2852 (child_terminal_ours_for_output): ... this. Adjust.
2853 (terminal_ours): Rename to ...
2854 (child_terminal_ours): ... this.
2855 (terminal_ours_1): Rename to ...
2856 (child_terminal_ours_1): ... this. Adjust.
2857 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2858 * windows-nat.c (do_initial_windows_stuff): Adjust.
2859 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2860 (gnu_terminal_init): ... this. Adjust.
2861 (gnu_target): Adjust.
2862 * inf-child.c (inf_child_target): Adjust.
2864 2014-03-13 Doug Evans <xdje42@gmail.com>
2867 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2870 2014-03-13 Doug Evans <xdje42@gmail.com>
2872 * value.c (record_latest_value): Call release_value_or_incref
2873 instead of release_value.
2875 2014-03-13 Pedro Alves <palves@redhat.com>
2877 * procfs.c (procfs_target): Don't override to_shortname,
2878 to_longname or to_doc.
2880 2014-03-13 Pedro Alves <palves@redhat.com>
2882 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2883 Unix in user visible strings.
2885 2014-03-12 Stan Shebs <stan@codesourcery.com>
2887 * gdbtypes.h: Annotate comments for Doxygen, add a page
2888 block comment with some general info.
2890 2014-03-12 Pedro Alves <palves@redhat.com>
2892 * infcmd.c (prepare_execution_command): New function, factored out
2893 from several execution commands.
2894 (run_command_1, continue_command, step_1, jump_command)
2895 (signal_command, until_command, advance_command, finish_command)
2896 (attach_command): Use prepare_execution_command.
2898 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2900 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2903 (struct arm_linux_thread_points): Removed.
2904 (struct arm_linux_process_info): New.
2905 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2906 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2907 (arm_linux_find_breakpoints_by_tid): Removed.
2908 (struct arch_lwp_info): New.
2909 (arm_linux_find_process_pid): New functions.
2910 (arm_linux_add_process): New functions.
2911 (arm_linux_process_info_get): New functions.
2912 (arm_linux_forget_process): New function.
2913 (arm_linux_get_debug_reg_state): New function.
2914 (struct update_registers_data): New.
2915 (update_registers_callback): New function.
2916 (arm_linux_insert_hw_breakpoint1): Updated.
2917 (arm_linux_remove_hw_breakpoint1): Updated.
2918 (arm_linux_insert_hw_breakpoint): Updated.
2919 (arm_linux_remove_hw_breakpoint): Updated.
2920 (arm_linux_insert_watchpoint): Updated.
2921 (arm_linux_remove_watchpoint): Updated.
2922 (arm_linux_new_thread): Updated.
2923 (arm_linux_prepare_to_resume): New function.
2924 (arm_linux_new_fork): New function.
2925 (_initialize_arm_linux_nat): Updated.
2927 2014-03-12 Pedro Alves <palves@redhat.com>
2929 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2931 2014-03-12 Tom Tromey <tromey@redhat.com>
2933 * inf-child.c (return_zero): New function.
2934 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2935 * aix-thread.c (aix_thread_inferior_created): New function.
2936 (aix_thread_attach): Remove.
2937 (init_aix_thread_ops): Don't set to_attach.
2938 (_initialize_aix_thread): Register inferior_created observer.
2939 * corelow.c (init_core_ops): Don't set to_attach or
2941 * exec.c (init_exec_ops): Don't set to_attach or
2943 * infcmd.c (run_command_1): Use find_run_target. Make direct
2945 (attach_command): Use find_attach_target. Make direct target
2947 * record-btrace.c (init_record_btrace_ops): Don't set
2949 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2951 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2952 set to_create_inferior.
2953 * target.c (complete_target_initialization): Add assertion.
2954 (target_create_inferior): Remove.
2955 (find_default_attach, find_default_create_inferior): Remove.
2956 (find_attach_target, find_run_target): New functions.
2957 (find_default_is_async_p, find_default_can_async_p)
2958 (target_supports_non_stop, target_attach): Remove.
2959 (init_dummy_target): Don't set to_create_inferior or
2960 to_supports_non_stop.
2961 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2962 TARGET_DEFAULT_FUNC.
2963 <to_create_inferior>: Add comment.
2964 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2965 TARGET_DEFAULT_RETURN.
2966 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2967 (find_attach_target, find_run_target): Declare.
2968 (target_create_inferior): Remove.
2969 (target_has_execution_1): Update comment.
2970 (target_supports_non_stop): Remove.
2971 * target-delegates.c: Rebuild.
2973 2014-03-12 Pedro Alves <palves@redhat.com>
2975 * inf-child.h: Update comment to not mention Unix.
2977 2014-03-12 Pedro Alves <palves@redhat.com>
2979 * inf-child.c: Update top comment to not mention Unix. Add
2980 generic comment describing how this target is meant to be used.
2981 (inf_child_post_attach, inf_child_post_startup_inferior)
2982 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2985 2014-03-12 Pedro Alves <palves@redhat.com>
2987 * nto-procfs.c: Include inf-child.h.
2988 (procfs_ops): Delete global.
2989 (procfs_can_run): Delete method.
2990 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2991 target pointer instead of referencing procfs_ops.
2992 (procfs_prepare_to_store): Delete.
2993 (init_procfs_ops): Delete function.
2994 (procfs_target): New function, based on init_procfs_ops, but
2995 inherit inf_child_target.
2996 (_initialize_procfs): Use procfs_target.
2998 2014-03-12 Pedro Alves <palves@redhat.com>
3000 * windows-nat.c: Include inf-child.h.
3001 (windows_ops): Delete global.
3002 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3004 (init_windows_ops): Delete function.
3005 (windows_target): New function, based on init_windows_ops, but
3006 inherit inf_child_target.
3007 (_initialize_windows_nat): Use windows_target. Install x86
3008 specific target methods here.
3010 2014-03-10 Doug Evans <xdje42@gmail.com>
3012 * guile/guile.c (call_initialize_gdb_module): New function.
3013 (initialize_guile): Replace call to scm_init_guile with call to
3016 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3018 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3019 in call to TYPE_CODE macro.
3021 2014-03-10 Jerome Guitton <guitton@adacore.com>
3023 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3024 Resolve tagged types to full view.
3026 2014-03-10 Hui Zhu <hui@codesourcery.com>
3028 * target.h (target_insert_breakpoint): Remove "hardware" from its
3031 2014-03-07 Doug Evans <dje@google.com>
3033 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3035 2014-03-07 Doug Evans <dje@google.com>
3037 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3038 Remove unused local comp_dir_attr. Assert exactly one of
3039 stub_comp_unit_die, stub_comp_dir is non-NULL.
3041 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3043 * target.h (complete_target_initialization, add_target):
3046 2014-03-07 Pedro Alves <palves@redhat.com>
3048 * go32-nat.c: Include inf-child.h.
3049 (go32_ops): Delete global.
3050 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3052 (go32_create_inferior): Push the passed in target pointer instead
3053 of referencing go32_ops.
3054 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3055 (go32_target): New function, based on init_go32_ops, but inherit
3057 (_initialize_go32_nat): Use go32_target. Move parts of
3060 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3062 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3063 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3064 SYMBOL_VALUE_ADDRESS.
3065 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3067 2014-03-06 Yao Qi <yao@codesourcery.com>
3069 * breakpoint.c (get_tracepoint_by_number): Remove argument
3070 optional_p. All callers updated. Adjust comments. Update
3072 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3074 2014-03-06 Yao Qi <yao@codesourcery.com>
3076 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3077 early if get_number returns zero. Use 'p' instead of 'args'.
3079 2014-03-06 Yao Qi <yao@codesourcery.com>
3081 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3084 2014-03-06 Yao Qi <yao@codesourcery.com>
3086 PR breakpoints/16508
3087 * tracepoint.c (check_trace_running): New function.
3088 (trace_find_command): Move code to check_trace_running and
3089 call check_trace_running.
3090 (trace_find_pc_command): Likewise.
3091 (trace_find_tracepoint_command): Likewise.
3092 (trace_find_line_command): Likewise.
3093 (trace_find_range_command): Likewise.
3094 * tracepoint.h (check_trace_running): Likewise.
3095 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3097 2014-03-06 Yao Qi <yao@codesourcery.com>
3099 * target.h (struct target_ops) <to_traceframe_info>: Use
3100 TARGET_DEFAULT_NORETURN (tcomplain ()).
3101 * target-delegates.c: Regenerated.
3103 2014-03-05 Pedro Alves <palves@redhat.com>
3106 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3107 void. Update comment.
3108 (dcache_xfer_memory): Delete.
3109 (dcache_read_memory_partial): New, based on the read bits of
3111 (dcache_update): Add status parameter. Use ULONGEST for len, and
3112 adjust. Discard cache lines if the reason for the update was
3114 * dcache.h (dcache_xfer_memory): Delete declaration.
3115 (dcache_read_memory_partial): New declaration.
3116 (dcache_update): Update prototype.
3117 * target.c (raw_memory_xfer_partial): Update the dcache here.
3118 (memory_xfer_partial_1): Don't handle dcache writes here.
3120 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3122 * remote-sim.c (gdbsim_load): Add const to prog.
3124 2014-03-03 Tom Tromey <tromey@redhat.com>
3126 * elfread.c (probe_key): Change to bfd_data.
3127 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3128 now per-BFD, not per-objfile.
3129 * stap-probe.c (stap_probe_destroy): Update comment.
3130 (handle_stap_probe): Allocate on the per-BFD obstack.
3132 2014-03-03 Tom Tromey <tromey@redhat.com>
3134 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3135 * breakpoint.c (create_longjmp_master_breakpoint): Use
3137 (add_location_to_breakpoint, bkpt_probe_insert_location)
3138 (bkpt_probe_remove_location): Update.
3139 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3140 * elfread.c (elf_symfile_relocate_probe): Remove.
3141 (elf_probe_fns): Update.
3142 (insert_exception_resume_breakpoint): Change type of "probe"
3143 parameter to bound_probe.
3144 (check_exception_resume): Update.
3145 * objfiles.c (objfile_relocate1): Don't relocate probes.
3146 * probe.c (bound_probe_s): New typedef.
3147 (parse_probes): Use get_probe_address. Set sal's objfile.
3148 (find_probe_by_pc): Return a bound_probe.
3149 (collect_probes): Return a VEC(bound_probe_s).
3150 (compare_probes): Update.
3151 (gen_ui_out_table_header_info): Change type of "probes"
3153 (info_probes_for_ops): Update.
3154 (get_probe_address): New function.
3155 (probe_safe_evaluate_at_pc): Update.
3156 * probe.h (struct probe_ops) <get_probe_address>: New field.
3157 <set_semaphore, clear_semaphore>: Add objfile parameter.
3158 (struct probe) <objfile>: Remove field.
3160 <address>: Update comment.
3161 (struct bound_probe): New.
3162 (find_probe_by_pc): Return a bound_probe.
3163 (get_probe_address): Declare.
3164 * solib-svr4.c (struct probe_and_action) <address>: New field.
3165 (hash_probe_and_action, equal_probe_and_action): Update.
3166 (register_solib_event_probe): Add address parameter.
3167 (solib_event_probe_at): Update.
3168 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3170 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3171 (stap_get_probe_address): New function.
3172 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3173 (compile_probe_arg): Update.
3174 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3176 (handle_stap_probe): Don't relocate the probe.
3177 (stap_relocate): Remove.
3178 (stap_gen_info_probes_table_values): Update.
3179 (stap_probe_ops): Remove stap_relocate.
3180 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3181 (debug_sym_probe_fns): Update.
3182 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3183 * symtab.c (init_sal): Use memset.
3184 * symtab.h (struct symtab_and_line) <objfile>: New field.
3185 * tracepoint.c (start_tracing, stop_tracing): Update.
3187 2014-03-03 Tom Tromey <tromey@redhat.com>
3189 * probe.h (parse_probes, find_probe_by_pc)
3190 (find_probes_in_objfile): Fix comments.
3192 2014-03-02 Doug Evans <xdje42@gmail.com>
3194 * infrun.c (handle_signal_stop): Replace test for
3195 TARGET_WAITKIND_STOPPED with an assert.
3197 2014-03-02 Doug Evans <xdje42@gmail.com>
3199 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3201 2014-03-02 Doug Evans <xdje42@gmail.com>
3203 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3205 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3207 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3209 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3211 * i386obsd-nat.c: Include "obsd-nat.h".
3212 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3214 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3216 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3218 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3220 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3222 * mips64obsd-nat.c: Include "obsd-nath".
3223 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3225 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3227 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3229 * amd64obsd-nat.c: Include "obsd-nat,h.
3230 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3232 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3234 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3236 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3237 (find_overload_match): Update call to find_oload_champ.
3238 (find_oload_champ_namespace_loop): Likewise
3240 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3242 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3244 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3245 * config/sparc/obsd64.mh: New file.
3246 * sparc64obsd-nat.c: New file.
3248 * obsd-nat.h: New file.
3249 * obsd-nat.c: New file.
3250 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3251 (ALLDEPFILES): Add obsd-nat.c.
3253 2014-02-28 Tom Tromey <tromey@redhat.com>
3255 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3256 * cli-out.h (cli_ui_out_impl): Now const.
3257 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3258 * ui-out.c (struct ui_out) <impl>: Now const.
3259 (default_ui_out_impl): Now const.
3260 (ui_out_new): Make 'impl' parameter const.
3261 * ui-out.h (ui_out_new): Update.
3263 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3265 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3267 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3269 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3271 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3273 Additional PR 8882 fix.
3274 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3276 2014-02-27 Pedro Alves <palves@redhat.com>
3278 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3281 2014-02-27 Pedro Alves <palves@redhat.com>
3284 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3285 * nat/linux-waitpid.c: Include string.h.
3286 (status_to_str): Moved here and made extern.
3287 * nat/linux-waitpid.h (status_to_str): New declaration.
3289 2014-02-27 Hui Zhu <hui@codesourcery.com>
3292 * infrun.c (ptid_match): Move ...
3293 * common/ptid.c (ptid_match): ... here.
3294 * inferior.h (ptid_match): Move ...
3295 * common/ptid.h (ptid_match): ... here.
3297 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3299 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3300 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3303 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3305 * obsd-tdep.c (obsd_auxv_parse): New function.
3306 (obsd_init_abi): Set auxv_parse.
3308 * gdbarch.sh (auxv_parse): New.
3309 * gdbarch.h: Regenerated.
3310 * gdbarch.c: Regenerated.
3311 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3313 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3315 * guile/scm-value.c (gdbscm_history_append_x): New function.
3316 (value_functions): Add it.
3318 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3320 * dwarf2read.c (attr_value_as_address): New function.
3321 (dwarf2_find_base_address, read_call_site_scope): Use
3322 attr_value_as_address in place of DW_ADDR.
3323 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3324 the low and high addresses. Slight rework of the handling
3325 of the high pc being a constant form, and limit it to
3326 DWARF verson 4 or higher.
3327 (dwarf2_record_block_ranges): Likewise.
3328 (read_partial_die): Likewise.
3329 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3331 2014-02-26 Tom Tromey <tromey@redhat.com>
3333 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3335 2014-02-26 Tom Tromey <tromey@redhat.com>
3337 * elfread.c (elf_read_minimal_symbols): Return early if
3338 minimal symbols have already been read. Add "ei" parameter.
3339 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3340 * minsyms.c (prim_record_minimal_symbol_full): Update.
3341 * objfiles.h (struct objstats) <n_minsyms>: Move...
3342 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3343 * symmisc.c (print_objfile_statistics): Update.
3345 2014-02-26 Tom Tromey <tromey@redhat.com>
3347 * elfread.c (elf_read_minimal_symbols): New function, from
3349 (elf_symfile_read): Call it.
3351 2014-02-26 Tom Tromey <tromey@redhat.com>
3353 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3354 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3355 (lookup_minimal_symbol_solib_trampoline)
3356 (lookup_minimal_symbol_by_pc_section_1)
3357 (lookup_minimal_symbol_and_objfile): Update.
3358 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3359 Don't allocate a minimal symbol if minsyms have already been read.
3360 (build_minimal_symbol_hash_tables): Update.
3361 (install_minimal_symbols): Do nothing if minsyms already read.
3362 Use the per-BFD obstack.
3363 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3364 * objfiles.c (allocate_objfile): Call
3365 terminate_minimal_symbol_table later.
3366 (have_minimal_symbols): Update.
3367 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3368 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3369 Move from struct objfile.
3370 <minsyms_read>: New field.
3371 (struct objfile) <msymbols, minimal_symbol_count,
3372 msymbol_hash, msymbol_demangled_hash>: Move.
3373 (ALL_OBJFILE_MSYMBOLS): Update.
3374 * symfile.c (read_symbols): Set minsyms_read.
3375 (reread_symbols): Update.
3376 * symmisc.c (dump_objfile, dump_msymbols): Update.
3378 2014-02-26 Tom Tromey <tromey@redhat.com>
3380 * minsyms.c (msymbols_sort): Remove.
3381 * minsyms.h (msymbols_sort): Remove.
3382 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3383 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3384 * elfread.c (elf_symtab_read): Don't add section offsets.
3385 * xcoffread.c (record_minimal_symbol): Don't add section offset
3386 to minimal symbol address.
3387 * somread.c (text_offset, data_offset): Remove.
3388 (som_symtab_read): Don't add section offsets to minimal symbol
3390 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3391 Don't add section offsets to minimal symbols.
3392 * coffread.c (coff_symtab_read): Don't add section offsets
3393 to minimal symbol addresses.
3394 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3395 to minimal symbol addresses.
3396 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3397 section offset to minimal symbol addresses.
3398 * mdebugread.c (parse_partial_symbols): Don't add section
3399 offset to minimal symbol addresses.
3400 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3401 offset to minimal symbol addresses.
3403 2014-02-26 Tom Tromey <tromey@redhat.com>
3405 * ada-lang.c (ada_main_name): Update.
3406 (ada_add_standard_exceptions): Update.
3407 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3408 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3409 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3410 * auxv.c (ld_so_xfer_auxv): Update.
3411 * avr-tdep.c (avr_scan_prologue): Update.
3412 * ax-gdb.c (gen_var_ref): Update.
3413 * blockframe.c (get_pc_function_start)
3414 (find_pc_partial_function_gnu_ifunc): Update.
3415 * breakpoint.c (create_overlay_event_breakpoint)
3416 (create_longjmp_master_breakpoint)
3417 (create_std_terminate_master_breakpoint)
3418 (create_exception_master_breakpoint): Update.
3419 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3420 * c-valprint.c (c_val_print): Update.
3421 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3422 * common/agent.c (agent_look_up_symbols): Update.
3423 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3424 * dwarf2loc.c (call_site_to_target_addr): Update.
3425 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3426 * elfread.c (elf_gnu_ifunc_record_cache)
3427 (elf_gnu_ifunc_resolve_by_got): Update.
3428 * findvar.c (default_read_var_value): Update.
3429 * frame.c (inside_main_func): Update.
3430 * frv-tdep.c (frv_frame_this_id): Update.
3431 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3432 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3434 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3435 (hppa_hpux_find_dummy_bpaddr): Update.
3436 * hppa-tdep.c (hppa_symbol_address): Update.
3437 * infcmd.c (until_next_command): Update.
3438 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3440 * linespec.c (minsym_found, add_minsym): Update.
3441 * linux-nat.c (get_signo): Update.
3442 * linux-thread-db.c (inferior_has_bug): Update.
3443 * m32c-tdep.c (m32c_return_value)
3444 (m32c_m16c_address_to_pointer): Update.
3445 * m32r-tdep.c (m32r_frame_this_id): Update.
3446 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3447 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3448 * maint.c (maintenance_translate_address): Update.
3449 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3450 (frob_address): New function.
3451 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3452 frob_address. Rename parameter to "pc_in".
3453 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3455 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3457 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3458 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3459 * objc-lang.c (find_objc_msgsend): Update.
3460 * objfiles.c (objfile_relocate1): Update.
3461 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3462 * p-valprint.c (pascal_val_print): Update.
3463 * parse.c (write_exp_msymbol): Update.
3464 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3465 (ppc_elfv2_skip_entrypoint): Update.
3466 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3467 * printcmd.c (build_address_symbolic, msym_info)
3468 (address_info): Update.
3469 * proc-service.c (ps_pglobal_lookup): Update.
3470 * psymtab.c (find_pc_sect_psymtab_closer)
3471 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3472 Change msymbol parameter to bound_minimal_symbol.
3473 * ravenscar-thread.c (get_running_thread_id): Update.
3474 * remote.c (remote_check_symbols): Update.
3475 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3477 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3478 * solib-dsbt.c (lm_base): Update.
3479 * solib-frv.c (lm_base, main_got): Update.
3480 * solib-irix.c (locate_base): Update.
3481 * solib-som.c (som_solib_create_inferior_hook)
3482 (link_map_start): Update.
3483 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3484 * solib-svr4.c (elf_locate_base, enable_break): Update.
3485 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3486 (flush_ea_cache): Update.
3487 * stabsread.c (define_symbol, scan_file_globals): Update.
3488 * stack.c (find_frame_funname): Update.
3489 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3490 (debug_qf_find_pc_sect_symtab): Update.
3491 * symfile.c (simple_read_overlay_table)
3492 (simple_overlay_update): Update.
3493 * symfile.h (struct quick_symbol_functions)
3494 <find_pc_sect_symtab>: Change type of msymbol to
3495 bound_minimal_symbol.
3496 * symmisc.c (dump_msymbols): Update.
3497 * symtab.c (find_pc_sect_symtab_via_partial)
3498 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3499 (search_symbols, print_msymbol_info): Update.
3500 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3501 (MSYMBOL_VALUE_ADDRESS): Redefine.
3502 (BMSYMBOL_VALUE_ADDRESS): New macro.
3503 * tracepoint.c (scope_info): Update.
3504 * tui/tui-disasm.c (tui_find_disassembly_address)
3505 (tui_get_begin_asm_address): Update.
3506 * valops.c (find_function_in_inferior): Update.
3507 * value.c (value_static_field, value_fn_field): Update.
3509 2014-02-26 Tom Tromey <tromey@redhat.com>
3511 * ada-lang.c (ada_update_initial_language): Update.
3512 (ada_main_name, ada_has_this_exception_support): Update.
3513 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3514 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3515 * arm-tdep.c (arm_skip_stub): Update.
3516 * auxv.c (ld_so_xfer_auxv): Update.
3517 * avr-tdep.c (avr_scan_prologue): Update.
3518 * ax-gdb.c (gen_var_ref): Update.
3519 * breakpoint.c (struct breakpoint_objfile_data)
3520 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3521 type to bound_minimal_symbol.
3522 (create_overlay_event_breakpoint)
3523 (create_longjmp_master_breakpoint)
3524 (create_std_terminate_master_breakpoint)
3525 (create_exception_master_breakpoint): Update.
3526 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3527 * c-exp.y (classify_name): Update.
3528 * coffread.c (coff_symfile_read): Update.
3529 * common/agent.c (agent_look_up_symbols): Update.
3530 * d-lang.c (d_main_name): Update.
3531 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3532 * dec-thread.c (enable_dec_thread): Update.
3533 * dwarf2loc.c (call_site_to_target_addr): Update.
3534 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3535 * eval.c (evaluate_subexp_standard): Update.
3536 * findvar.c (struct minsym_lookup_data) <result>: Change type
3537 to bound_minimal_symbol.
3539 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3540 * frame.c (inside_main_func): Update.
3541 * frv-tdep.c (frv_frame_this_id): Update.
3542 * gcore.c (call_target_sbrk): Update.
3543 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3544 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3546 * go-lang.c (go_main_name): Update.
3547 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3548 (hppa_hpux_find_import_stub_for_addr): Update.
3549 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3550 Update. Change return type.
3551 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3553 * jit.c (jit_breakpoint_re_set_internal): Update.
3554 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3556 * linux-nat.c (get_signo): Update.
3557 * linux-thread-db.c (inferior_has_bug): Update
3558 * m32c-tdep.c (m32c_return_value)
3559 (m32c_m16c_address_to_pointer): Update.
3560 * m32r-tdep.c (m32r_frame_this_id): Update.
3561 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3562 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3563 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3564 lookup_minimal_symbol. Change return type.
3565 (lookup_minimal_symbol): Remove.
3566 (lookup_bound_minimal_symbol): Update.
3567 (lookup_minimal_symbol_text): Change return type.
3568 (lookup_minimal_symbol_solib_trampoline): Change return type.
3569 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3570 (lookup_minimal_symbol_solib_trampoline): Change return type.
3571 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3572 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3573 (value_nsstring, find_imps): Update.
3574 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3575 * p-lang.c (pascal_main_name): Update.
3576 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3577 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3578 * proc-service.c (ps_pglobal_lookup): Update.
3579 * ravenscar-thread.c (get_running_thread_msymbol): Change
3581 (has_ravenscar_runtime, get_running_thread_id): Update.
3582 * remote.c (remote_check_symbols): Update.
3583 * sol-thread.c (ps_pglobal_lookup): Update.
3584 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3585 * solib-dsbt.c (lm_base): Update.
3586 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3588 * solib-irix.c (locate_base): Update.
3589 * solib-som.c (som_solib_create_inferior_hook)
3590 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3592 * solib-spu.c (spu_enable_break): Update.
3593 * solib-svr4.c (elf_locate_base, enable_break): Update.
3594 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3595 (flush_ea_cache): Update.
3596 * stabsread.c (define_symbol): Update.
3597 * symfile.c (simple_read_overlay_table): Update.
3598 * symtab.c (find_pc_sect_line): Update.
3599 * tracepoint.c (scope_info): Update.
3600 * tui-disasm.c (tui_get_begin_asm_address): Update.
3601 * value.c (value_static_field): Update.
3603 2014-02-26 Tom Tromey <tromey@redhat.com>
3605 * minsyms.c (prim_record_minimal_symbol_full): Use
3606 SET_MSYMBOL_VALUE_ADDRESS.
3607 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3608 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3609 SET_MSYMBOL_VALUE_ADDRESS.
3610 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3611 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3613 2014-02-26 Tom Tromey <tromey@redhat.com>
3615 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3616 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3617 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3618 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3619 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3620 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3621 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3622 * ada-lang.c (ada_main_name): Update.
3623 (ada_lookup_simple_minsym): Update.
3624 (ada_make_symbol_completion_list): Update.
3625 (ada_add_standard_exceptions): Update.
3626 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3627 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3628 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3629 * arm-tdep.c (skip_prologue_function): Update.
3630 (arm_skip_stack_protector, arm_skip_stub): Update.
3631 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3632 (arm_wince_skip_main_prologue): Update.
3633 * auxv.c (ld_so_xfer_auxv): Update.
3634 * avr-tdep.c (avr_scan_prologue): Update.
3635 * ax-gdb.c (gen_var_ref): Update.
3636 * block.c (call_site_for_pc): Update.
3637 * blockframe.c (get_pc_function_start): Update.
3638 (find_pc_partial_function_gnu_ifunc): Update.
3639 * breakpoint.c (create_overlay_event_breakpoint): Update.
3640 (create_longjmp_master_breakpoint): Update.
3641 (create_std_terminate_master_breakpoint): Update.
3642 (create_exception_master_breakpoint): Update.
3643 (resolve_sal_pc): Update.
3644 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3645 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3647 * c-valprint.c (c_val_print): Update.
3648 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3649 * coffread.c (coff_symfile_read): Update.
3650 * common/agent.c (agent_look_up_symbols): Update.
3651 * dbxread.c (find_stab_function_addr): Update.
3652 (end_psymtab): Update.
3653 * dwarf2loc.c (call_site_to_target_addr): Update.
3654 (func_verify_no_selftailcall): Update.
3655 (tailcall_dump): Update.
3656 (call_site_find_chain_1): Update.
3657 (dwarf_expr_reg_to_entry_parameter): Update.
3658 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3659 (elf_gnu_ifunc_resolve_by_got): Update.
3660 * f-valprint.c (info_common_command): Update.
3661 * findvar.c (read_var_value): Update.
3662 * frame.c (get_prev_frame_1): Update.
3663 (inside_main_func): Update.
3664 * frv-tdep.c (frv_skip_main_prologue): Update.
3665 (frv_frame_this_id): Update.
3666 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3667 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3668 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3669 (gnuv3_skip_trampoline): Update.
3670 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3671 (hppa64_hpux_in_solib_call_trampoline): Update.
3672 (hppa_hpux_skip_trampoline_code): Update.
3673 (hppa64_hpux_search_dummy_call_sequence): Update.
3674 (hppa_hpux_find_import_stub_for_addr): Update.
3675 (hppa_hpux_find_dummy_bpaddr): Update.
3676 * hppa-tdep.c (hppa_symbol_address)
3677 (hppa_lookup_stub_minimal_symbol): Update.
3678 * i386-tdep.c (i386_skip_main_prologue): Update.
3679 (i386_pe_skip_trampoline_code): Update.
3680 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3681 * infcall.c (get_function_name): Update.
3682 * infcmd.c (until_next_command): Update.
3683 * jit.c (jit_breakpoint_re_set_internal): Update.
3684 (jit_inferior_init): Update.
3685 * linespec.c (minsym_found): Update.
3686 (add_minsym): Update.
3687 * linux-fork.c (info_checkpoints_command): Update.
3688 * linux-nat.c (get_signo): Update.
3689 * linux-thread-db.c (inferior_has_bug): Update.
3690 * m32c-tdep.c (m32c_return_value): Update.
3691 (m32c_m16c_address_to_pointer): Update.
3692 (m32c_m16c_pointer_to_address): Update.
3693 * m32r-tdep.c (m32r_frame_this_id): Update.
3694 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3695 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3696 * maint.c (maintenance_translate_address): Update.
3697 * minsyms.c (add_minsym_to_hash_table): Update.
3698 (add_minsym_to_demangled_hash_table): Update.
3699 (msymbol_objfile): Update.
3700 (lookup_minimal_symbol): Update.
3701 (iterate_over_minimal_symbols): Update.
3702 (lookup_minimal_symbol_text): Update.
3703 (lookup_minimal_symbol_by_pc_name): Update.
3704 (lookup_minimal_symbol_solib_trampoline): Update.
3705 (lookup_minimal_symbol_by_pc_section_1): Update.
3706 (lookup_minimal_symbol_and_objfile): Update.
3707 (prim_record_minimal_symbol_full): Update.
3708 (compare_minimal_symbols): Update.
3709 (compact_minimal_symbols): Update.
3710 (build_minimal_symbol_hash_tables): Update.
3711 (install_minimal_symbols): Update.
3712 (terminate_minimal_symbol_table): Update.
3713 (find_solib_trampoline_target): Update.
3714 (minimal_symbol_upper_bound): Update.
3715 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3716 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3717 (mips_skip_pic_trampoline_code): Update.
3718 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3719 * objc-lang.c (selectors_info): Update.
3720 (classes_info): Update.
3721 (find_methods): Update.
3722 (find_imps): Update.
3723 (find_objc_msgsend): Update.
3724 * objfiles.c (objfile_relocate1): Update.
3725 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3726 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3727 * p-valprint.c (pascal_val_print): Update.
3728 * parse.c (write_exp_msymbol): Update.
3729 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3730 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3731 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3732 * printcmd.c (build_address_symbolic): Update.
3734 (address_info): Update.
3735 * proc-service.c (ps_pglobal_lookup): Update.
3736 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3737 (find_pc_sect_psymtab): Update.
3738 * python/py-framefilter.c (py_print_frame): Update.
3739 * ravenscar-thread.c (get_running_thread_id): Update.
3740 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3742 * remote.c (remote_check_symbols): Update.
3743 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3744 (rs6000_skip_trampoline_code): Update.
3745 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3746 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3747 * solib-dsbt.c (lm_base): Update.
3748 * solib-frv.c (lm_base): Update.
3750 * solib-irix.c (locate_base): Update.
3751 * solib-som.c (som_solib_create_inferior_hook): Update.
3752 (som_solib_desire_dynamic_linker_symbols): Update.
3753 (link_map_start): Update.
3754 * solib-spu.c (spu_enable_break): Update.
3755 (ocl_enable_break): Update.
3756 * solib-svr4.c (elf_locate_base): Update.
3757 (enable_break): Update.
3758 * spu-tdep.c (spu_get_overlay_table): Update.
3759 (spu_catch_start): Update.
3760 (flush_ea_cache): Update.
3761 * stabsread.c (define_symbol): Update.
3762 (scan_file_globals): Update.
3763 * stack.c (find_frame_funname): Update.
3764 (frame_info): Update.
3765 * symfile.c (simple_read_overlay_table): Update.
3766 (simple_overlay_update): Update.
3767 * symmisc.c (dump_msymbols): Update.
3768 * symtab.c (fixup_section): Update.
3769 (find_pc_sect_line): Update.
3770 (skip_prologue_sal): Update.
3771 (search_symbols): Update.
3772 (print_msymbol_info): Update.
3773 (rbreak_command): Update.
3774 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3775 (completion_list_objc_symbol): Update.
3776 (default_make_symbol_completion_list_break_on): Update.
3777 * tracepoint.c (scope_info): Update.
3778 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3779 (tui_get_begin_asm_address): Update.
3780 * valops.c (find_function_in_inferior): Update.
3781 * value.c (value_static_field): Update.
3782 (value_fn_field): Update.
3784 2014-02-26 Tom Tromey <tromey@redhat.com>
3786 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3787 bound minimal symbols. Move code that knows about minsym
3789 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3791 * minsyms.h (minimal_symbol_upper_bound): Declare.
3792 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3793 minimal_symbol_upper_bound.
3795 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3797 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3798 Use the type's name if its basic type does not have a tag.
3800 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3802 * dwarf2read.c (read_subrange_type): Add comment.
3804 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3806 * dwarf2read.c (update_enumeration_type_from_children): New
3807 function, mostly extracted from process_structure_scope.
3808 (read_enumeration_type): Call update_enumeration_type_from_children.
3809 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3810 and flag_flag_enum fields.
3812 2014-02-26 Pedro Alves <palves@redhat.com>
3814 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3815 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3816 to_xfer_partial method.
3818 2014-02-26 Pedro Alves <palves@redhat.com>
3820 * target.c (complete_target_initialization): Don't install
3821 default_xfer_partial as to_xfer_partial hook.
3823 (update_current_target): Don't INHERIT nor de_fault
3824 deprecated_xfer_memory. Delete de_fault macro.
3825 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3826 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3827 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3830 2014-02-26 Pedro Alves <palves@redhat.com>
3832 * go32-nat.c (my_write_child): New function.
3833 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3834 (go32_xfer_partial): New function.
3835 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3836 Instead install a to_xfer_partial hook.
3838 2014-02-26 Pedro Alves <palves@redhat.com>
3840 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3841 to_xfer_partial helper. Rewrite.
3842 (procfs_xfer_partial): New function.
3843 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3844 Install a to_xfer_partial hook.
3846 2014-02-26 Pedro Alves <palves@redhat.com>
3848 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3849 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3850 (m32r_xfer_partial): New function.
3851 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3852 Install a to_xfer_partial hook.
3854 2014-02-26 Pedro Alves <palves@redhat.com>
3856 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3858 (mips_xfer_partial): New function.
3859 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3860 hook. Install a to_xfer_partial hook.
3862 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3864 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3865 * gdbtypes.c (create_array_type_with_stride): New function,
3866 renaming create_array_type, but with an added parameter
3867 called "bit_stride".
3868 (create_array_type): Re-implement using
3869 create_array_type_with_stride.
3870 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3871 and DW_AT_bit_stride attributes.
3873 2014-02-26 Pedro Alves <palves@redhat.com>
3875 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3876 task-specific breakpoints.
3878 2014-02-25 Pedro Alves <palves@redhat.com>
3880 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3881 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3883 2014-02-25 Stan Shebs <stan@codesourcery.com>
3885 * defs.h: Annotate comments for Doxygen.
3887 2014-02-25 Tom Tromey <tromey@redhat.com>
3889 * target.h (target_ignore): Don't declare.
3890 * target.c (target_ignore): Remove.
3892 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3895 * auto-load.c (auto_load_objfile_script_1): Change filename to
3898 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3900 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3901 documentation. Adjust prototype to match the target_ops
3902 to_xfer_partial method. Adjust implementation accordingly.
3904 2014-02-25 Hui Zhu <hui@codesourcery.com>
3906 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3909 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3911 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3912 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3913 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3914 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3915 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3916 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3917 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3918 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3920 (rl78_register_type): Use a data pointer type for SP and
3921 new pseudo registers mentioned above. Use a 16 bit integer
3922 type for all other register pairs.
3923 (rl78_register_name, rl78_g10_register_name): Update for
3924 new pseudo registers.
3925 (rl78_pseudo_register_read): Likewise.
3926 (rl78_pseudo_register_write): Likewise.
3927 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3928 to the newly added pseudo registers.
3930 2014-02-24 Doug Evans <dje@google.com>
3932 * value.c (record_latest_value): Fix comment.
3933 * printcmd.c (print_command_1): Remove code to handle -1 return from
3934 record_latest_value.
3936 2014-02-24 Pedro Alves <palves@redhat.com>
3938 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3939 deprecated_xfer_memory hook.
3940 (procfs_xfer_partial): Call procfs_xfer_memory instead
3941 of the deprecated_xfer_memory target hook.
3942 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3945 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3947 * windows-nat.c (windows_xfer_shared_libraries): Return
3948 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3949 requested object is TARGET_OBJECT_LIBRARIES.
3951 2014-02-24 Yao Qi <yao@codesourcery.com>
3953 * target.h (enum target_xfer_status)
3954 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3955 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3957 * corefile.c (memory_error_message): User updated.
3958 * exec.c (section_table_read_available_memory): Likewise.
3959 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3960 * target.c (target_xfer_status_to_string): Likewise.
3961 (raw_memory_xfer_partial): Likewise.
3962 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3963 * valops.c (read_value_memory): Likewise.
3964 * exec.h: Update comments.
3966 2014-02-24 Yao Qi <yao@codesourcery.com>
3968 * target.c (target_xfer_status_to_string): Rename argument err
3970 * target.h (target_xfer_status_to_string): Update declaration.
3971 Replace target_xfer_error_to_string with
3972 target_xfer_status_to_string in comment.
3974 2014-02-24 Yao Qi <yao@codesourcery.com>
3976 * mips-linux-nat.c (super_close): Update its type.
3977 (mips_linux_close): Pass 'self' to super_close.
3979 2014-02-24 Yao Qi <yao@codesourcery.com>
3981 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3982 * corefile.c (read_memory): Adjusted.
3983 * target.c (target_write_with_progress): Adjusted.
3985 2014-02-23 Yao Qi <yao@codesourcery.com>
3989 2013-10-25 Yao Qi <yao@codesourcery.com>
3991 * remote.c (remote_traceframe_info): Return early if
3992 traceframe is not selected.
3994 2013-07-19 Yao Qi <yao@codesourcery.com>
3996 * target.c (update_current_target): Change the default action
3997 of 'to_traceframe_info' from tcomplain to return_zero.
3998 * target.h (struct target_ops) <to_traceframe_info>: Add more
4001 2014-02-23 Yao Qi <yao@codesourcery.com>
4003 * valops.c (read_value_memory): Rewrite it. Call
4004 target_xfer_partial in a loop.
4005 * exec.h (section_table_available_memory): Remove declaration.
4006 Move comments to ...
4007 * exec.c (section_table_available_memory): ... here. Make it
4010 2014-02-23 Yao Qi <yao@codesourcery.com>
4012 * exec.c (section_table_read_available_memory): New function.
4013 * exec.h (section_table_read_available_memory): Declare.
4014 * ctf.c (ctf_xfer_partial): Call
4015 section_table_read_available_memory.
4016 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4018 2014-02-23 Yao Qi <yao@codesourcery.com>
4020 * ctf.c (ctf_xfer_partial): Move code to ...
4021 * exec.c (exec_read_partial_read_only): ... it. New function.
4022 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4023 * tracefile.c: Include "exec.h".
4024 * exec.h (exec_read_partial_read_only): Declare.
4026 2014-02-23 Yao Qi <yao@codesourcery.com>
4028 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4029 (tfile_has_memory): Remove.
4030 (init_tfile_ops): Don't set fields to_has_all_memory and
4031 to_has_memory of tfile_ops.
4032 * tracefile.c (tracefile_has_all_memory): New function.
4033 (tracefile_has_memory): New function.
4034 (init_tracefile_ops): Initialize fields to_has_all_memory and
4035 to_has_memory of 'ops'.
4037 2014-02-23 Yao Qi <yao@codesourcery.com>
4039 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4040 (ctf_thread_alive, ctf_get_trace_status): Remove.
4041 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4043 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4044 (tfile_has_stack, tfile_has_registers): Remove.
4045 (tfile_thread_alive): Remove.
4046 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4048 * tracefile.c (tracefile_has_stack): New function.
4049 (tracefile_has_registers): New function.
4050 (tracefile_thread_alive): New function.
4051 (tracefile_get_trace_status): New function.
4052 (init_tracefile_ops): New function.
4053 * tracefile.h (init_tracefile_ops): Declare.
4055 2014-02-23 Yao Qi <yao@codesourcery.com>
4057 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4058 (O_LARGEFILE): Likewise.
4059 (tfile_ops): Likewise.
4060 (TRACE_HEADER_SIZE): Likewise.
4061 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4062 (cur_data_size): Likewise.
4063 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4064 (tfile_close, tfile_files_info): Likewise.
4065 (tfile_get_trace_status): Likewise.
4066 (tfile_get_tracepoint_status): Likewise.
4067 (tfile_get_traceframe_address): Likewise.
4068 (tfile_trace_find, match_blocktype): Likewise.
4069 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4070 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4071 (tfile_get_trace_state_variable_value): Likewise.
4072 (tfile_has_all_memory, tfile_has_memory): Likewise.
4073 (tfile_has_stack, tfile_has_registers): Likewise.
4074 (tfile_thread_alive, build_traceframe_info): Likewise.
4075 (tfile_traceframe_info, init_tfile_ops): Likewise.
4076 (_initialize_tracepoint): Don't call init_tfile_ops
4077 and add_target_with_completer.
4078 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4079 exec.h, completer.h and filenames.h.
4080 (_initialize_tracefile_tfile): New function.
4082 2014-02-23 Yao Qi <yao@codesourcery.com>
4084 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4086 (HFILES_NO_SRCDIR): Add tracefile.h.
4087 * ctf.c: Include "tracefile.h".
4088 * tracefile.h: New file.
4089 * tracefile.c: New file
4090 * tracefile-tfile.c: New file.
4091 * tracepoint.c: Include "tracefile.h".
4092 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4093 (stop_reason_names): Add const.
4094 (trace_file_writer_xfree): Move it to tracefile.c.
4095 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4096 (trace_save_ctf): Likewise.
4097 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4098 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4099 (tfile_write_header, tfile_write_regblock_type): Likewise.
4100 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4101 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4102 (tfile_write_raw_data, tfile_end): Likewise.
4103 (tfile_trace_file_writer_new): Likewise.
4104 (free_uploaded_tp): Make it extern.
4105 (free_uploaded_tsv): Make it extern.
4106 (_initialize_tracepoint): Move code to register command 'tsave'
4108 * tracepoint.h (stop_reason_names): Declare.
4109 (struct trace_frame_write_ops): Move it to tracefile.h.
4110 (struct trace_file_write_ops): Likewise.
4111 (struct trace_file_writer): Likewise.
4112 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4114 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4117 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4119 (get_cores_used_by_process): New parameter num_cores, use it.
4120 (linux_xfer_osdata_processes): Pass num_cores to it.
4121 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4124 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4126 * target.c (memory_xfer_partial): Fix length arg in call to
4127 breakpoint_xfer_memory.
4129 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4132 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4133 number comes after the + or - signs. Adjust length of register
4134 name to be extracted.
4136 2014-02-20 Tom Tromey <tromey@redhat.com>
4138 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4139 (ada_varobj_ops): Mark "extern".
4141 2014-02-20 Tom Tromey <tromey@redhat.com>
4143 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4145 2014-02-20 Doug Evans <xdje42@gmail.com>
4147 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4148 All callers updated.
4149 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4150 All callers updated.
4151 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4152 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4154 2014-02-20 lin zuojian <manjian2006@gmail.com>
4155 Joel Brobecker <brobecker@adacore.com>
4156 Doug Evans <xdje42@gmail.com>
4159 * dwarf2read.c (struct die_info): New member in_process.
4160 (reset_die_in_process): New function.
4161 (process_die): Set it at the start, reset when returning.
4162 (inherit_abstract_dies): Only call process_die if origin_child_die
4163 not already being processed.
4165 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4167 * windows-nat.c (handle_unload_dll): Add function documentation.
4168 (do_initial_windows_stuff): Add comment explaining why we wait
4169 until after inferior initialization has finished before
4170 processing all DLLs.
4172 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4174 * windows-nat.c (get_module_name): Delete.
4175 (windows_get_exec_module_filename): New function, mostly
4176 inspired from get_module_name.
4177 (windows_pid_to_exec_file): Replace call to get_module_name
4178 by call to windows_get_exec_module_filename.
4180 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4182 * windows-nat.c (handle_load_dll): Rewrite this function's
4183 introductory comment. Remove code using get_module_name
4184 to get the DLL's name.
4186 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4188 * windows-nat.c (get_windows_debug_event): Ignore
4189 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4190 if windows_initialization_done == 0.
4191 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4192 Adjust implementation to always load all DLLs.
4193 (do_initial_windows_stuff): Replace call to
4194 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4196 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4198 * windows-nat.c (_initialize_windows_nat): Deprecate the
4199 "dll-symbols" command. Turn the "add-shared-symbol-files"
4200 and "assf" aliases into commands, and deprecate them as well.
4201 * NEWS: Add entry explaining that "dll-symbols" and its two
4202 aliases are now deprecated.
4204 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4206 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4207 new-line in debug string. Remove trailing spaces.
4209 2014-02-19 Stan Shebs <stan@codesourcery.com>
4211 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4213 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4215 * NEWS: Add entry for the new feature
4216 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4219 2014-02-19 Stan Shebs <stan@codesourcery.com>
4221 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4223 2014-02-19 Pedro Alves <palves@redhat.com>
4225 * common/ptid.h (struct ptid): Mention that process_stratum
4226 targets should prefer ptid.lwp.
4228 2014-02-19 Pedro Alves <palves@redhat.com>
4230 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4231 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4232 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4233 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4234 store remote thread ids rather than ptid.tid.
4235 (_initialize_remote): Adjust.
4237 2014-02-19 Tom Tromey <tromey@redhat.com>
4239 * target.c (target_get_unwinder): Rewrite.
4240 (target_get_tailcall_unwinder): Rewrite.
4241 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4242 (record_btrace_to_get_tailcall_unwinder): New function.
4243 (init_record_btrace_ops): Update.
4244 * target.h (struct target_ops) <to_get_unwinder,
4245 to_get_tailcall_unwinder>: Now function pointers. Use
4246 TARGET_DEFAULT_RETURN.
4248 2014-02-19 Tom Tromey <tromey@redhat.com>
4250 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4252 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4254 2014-02-19 Tom Tromey <tromey@redhat.com>
4256 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4258 * target-delegates.c: Rebuild.
4259 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4260 TARGET_DEFAULT_FUNC.
4261 * target.c (default_target_decr_pc_after_break): Rename from
4262 forward_target_decr_pc_after_break. Simplify.
4263 (target_decr_pc_after_break): Rely on delegation.
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4267 * target.c (update_current_target): Do not INHERIT to_doc or
4268 to_magic. Do not de_fault to_open or to_close.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * gcore.h (objfile_find_memory_regions): Declare.
4273 * gcore.c (objfile_find_memory_regions): No longer static. Add
4275 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4276 * exec.c: Include gcore.h.
4277 (exec_set_find_memory_regions): Remove.
4278 (exec_find_memory_regions): Remove.
4279 (exec_do_find_memory_regions): Remove.
4280 (init_exec_ops): Update.
4281 * defs.h (exec_set_find_memory_regions): Remove.
4283 2014-02-19 Tom Tromey <tromey@redhat.com>
4285 * target-delegates.c: Rebuild.
4286 * target.h (struct target_ops) <to_extra_thread_info,
4287 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4288 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4289 not 0, in TARGET_DEFAULT_RETURN.
4291 2014-02-19 Tom Tromey <tromey@redhat.com>
4293 * target.c (complete_target_initialization): Remove casts. Use
4294 return_zero_has_execution.
4295 (return_zero): Add "ignore" argument.
4296 (return_zero_has_execution): New function.
4297 (init_dummy_target): Remove casts. Use
4298 return_zero_has_execution.
4300 2014-02-19 Tom Tromey <tromey@redhat.com>
4302 * target.c (update_current_target): Update comments. Do not
4305 2014-02-19 Tom Tromey <tromey@redhat.com>
4307 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4309 * corelow.c (core_read_description): Delegate when needed.
4310 * remote.c (remote_read_description): Delegate when needed.
4311 * target-delegates.c: Rebuild.
4312 * target.c (target_read_description): Rewrite.
4313 * target.h (struct target_ops) <to_read_description>: Update
4314 comment. Use TARGET_DEFAULT_RETURN.
4316 2014-02-19 Tom Tromey <tromey@redhat.com>
4318 * target-delegates.c: Rebuild.
4319 * target.c (update_current_target): Don't inherit or default
4321 (find_default_run_target): Check against delegate_can_run.
4322 * target.h (struct target_ops) <to_can_run>: Use
4323 TARGET_DEFAULT_RETURN.
4325 2014-02-19 Tom Tromey <tromey@redhat.com>
4327 * target-delegates.c: Rebuild.
4328 * target.c (target_disconnect): Unconditionally delegate.
4329 * target.h (struct target_ops) <to_disconnect>: Use
4330 TARGET_DEFAULT_NORETURN.
4332 2014-02-19 Tom Tromey <tromey@redhat.com>
4334 * record.c (record_stop): Unconditionally delegate.
4335 * target-delegates.c: Rebuild.
4336 * target.c (target_stop_recording): Unconditionally delegate.
4337 * target.h (struct target_ops) <to_stop_recording>: Use
4338 TARGET_DEFAULT_IGNORE.
4340 2014-02-19 Tom Tromey <tromey@redhat.com>
4342 * target-delegates.c: Rebuild.
4343 * target.c (target_enable_btrace): Unconditionally delegate.
4344 * target.h (struct target_ops) <to_enable_btrace>: Use
4345 TARGET_DEFAULT_NORETURN.
4347 2014-02-19 Tom Tromey <tromey@redhat.com>
4349 * target-delegates.c: Rebuild.
4350 * target.c (target_read_btrace): Unconditionally delegate.
4351 * target.h (struct target_ops) <to_read_btrace>: Use
4352 TARGET_DEFAULT_NORETURN.
4354 2014-02-19 Tom Tromey <tromey@redhat.com>
4356 * target-delegates.c: Rebuild.
4357 * target.c (target_teardown_btrace): Unconditionally delegate.
4358 * target.h (struct target_ops) <to_teardown_btrace>: Use
4359 TARGET_DEFAULT_NORETURN.
4361 2014-02-19 Tom Tromey <tromey@redhat.com>
4363 * target-delegates.c: Rebuild.
4364 * target.c (target_disable_btrace): Unconditionally delegate.
4365 * target.h (struct target_ops) <to_disable_btrace>: Use
4366 TARGET_DEFAULT_NORETURN.
4368 2014-02-19 Tom Tromey <tromey@redhat.com>
4370 * target-delegates.c: Rebuild.
4371 * target.c (default_search_memory): New function.
4372 (simple_search_memory): Update comment.
4373 (target_search_memory): Unconditionally delegate.
4374 * target.h (struct target_ops) <to_search_memory>: Use
4375 TARGET_DEFAULT_FUNC.
4377 2014-02-19 Tom Tromey <tromey@redhat.com>
4379 * auxv.c (default_auxv_parse): No longer static.
4380 (target_auxv_parse): Unconditionally delegate.
4381 * auxv.h (default_auxv_parse): Declare.
4382 * target-delegates.c: Rebuild.
4383 * target.c: Include auxv.h.
4384 * target.h (struct target_ops) <to_auxv_parse>: Use
4385 TARGET_DEFAULT_FUNC.
4387 2014-02-19 Tom Tromey <tromey@redhat.com>
4389 * target-delegates.c: Rebuild.
4390 * target.c (target_memory_map): Unconditionally delegate.
4391 * target.h (struct target_ops) <to_memory_map>: Use
4392 TARGET_DEFAULT_RETURN.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target-delegates.c: Rebuild.
4397 * target.c (target_thread_alive): Unconditionally delegate.
4398 * target.h (struct target_ops) <to_thread_alive>: Use
4399 TARGET_DEFAULT_RETURN.
4401 2014-02-19 Tom Tromey <tromey@redhat.com>
4403 * target-delegates.c: Rebuild.
4404 * target.c (target_save_record): Unconditionally delegate.
4405 * target.h (struct target_ops) <to_save_record>: Use
4406 TARGET_DEFAULT_NORETURN.
4408 2014-02-19 Tom Tromey <tromey@redhat.com>
4410 * target-delegates.c: Rebuild.
4411 * target.c (target_delete_record): Unconditionally delegate.
4412 * target.h (struct target_ops) <to_delete_record>: Use
4413 TARGET_DEFAULT_NORETURN.
4415 2014-02-19 Tom Tromey <tromey@redhat.com>
4417 * target-delegates.c: Rebuild.
4418 * target.c (target_record_is_replaying): Unconditionally
4420 * target.h (struct target_ops) <to_record_is_replaying>: Use
4421 TARGET_DEFAULT_RETURN.
4423 2014-02-19 Tom Tromey <tromey@redhat.com>
4425 * target-delegates.c: Rebuild.
4426 * target.c (target_goto_record_begin): Unconditionally delegate.
4427 * target.h (struct target_ops) <to_goto_record_begin>: Use
4428 TARGET_DEFAULT_NORETURN.
4430 2014-02-19 Tom Tromey <tromey@redhat.com>
4432 * target-delegates.c: Rebuild.
4433 * target.c (target_goto_record_end): Unconditionally delegate.
4434 * target.h (struct target_ops) <to_goto_record_end>: Use
4435 TARGET_DEFAULT_NORETURN.
4437 2014-02-19 Tom Tromey <tromey@redhat.com>
4439 * target-delegates.c: Rebuild.
4440 * target.c (target_goto_record): Unconditionally delegate.
4441 * target.h (struct target_ops) <to_goto_record>: Use
4442 TARGET_DEFAULT_NORETURN.
4444 2014-02-19 Tom Tromey <tromey@redhat.com>
4446 * target-delegates.c: Rebuild.
4447 * target.c (target_insn_history): Unconditionally delegate.
4448 * target.h (struct target_ops) <to_insn_history>: Use
4449 TARGET_DEFAULT_NORETURN.
4451 2014-02-19 Tom Tromey <tromey@redhat.com>
4453 * target-delegates.c: Rebuild.
4454 * target.c (target_insn_history_from): Unconditionally delegate.
4455 * target.h (struct target_ops) <to_insn_history_from>: Use
4456 TARGET_DEFAULT_NORETURN.
4458 2014-02-19 Tom Tromey <tromey@redhat.com>
4460 * target-delegates.c: Rebuild.
4461 * target.c (target_insn_history_range): Unconditionally delegate.
4462 * target.h (struct target_ops) <to_insn_history_range>: Use
4463 TARGET_DEFAULT_NORETURN.
4465 2014-02-19 Tom Tromey <tromey@redhat.com>
4467 * target-delegates.c: Rebuild.
4468 * target.c (target_call_history): Unconditionally delegate.
4469 * target.h (struct target_ops) <to_call_history>: Use
4470 TARGET_DEFAULT_NORETURN.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (target_call_history_from): Unconditionally delegate.
4476 * target.h (struct target_ops) <to_call_history_from>: Use
4477 TARGET_DEFAULT_NORETURN.
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target-delegates.c: Rebuild.
4482 * target.c (target_call_history_range): Unconditionally delegate.
4483 * target.h (struct target_ops) <to_call_history_range>: Use
4484 TARGET_DEFAULT_NORETURN.
4486 2014-02-19 Tom Tromey <tromey@redhat.com>
4488 * target-delegates.c: Rebuild.
4489 * target.c (target_verify_memory): Unconditionally delegate.
4490 * target.h (struct target_ops) <to_verify_memory>: Use
4491 TARGET_DEFAULT_NORETURN.
4493 2014-02-19 Tom Tromey <tromey@redhat.com>
4495 * target-delegates.c: Rebuild.
4496 * target.c (target_core_of_thread): Unconditionally delegate.
4497 * target.h (struct target_ops) <to_core_of_thread>: Use
4498 TARGET_DEFAULT_RETURN.
4500 2014-02-19 Tom Tromey <tromey@redhat.com>
4502 * target-delegates.c: Rebuild.
4503 * target.c (target_flash_done): Unconditionally delegate.
4504 * target.h (struct target_ops) <to_flash_done>: Use
4505 TARGET_DEFAULT_NORETURN.
4507 2014-02-19 Tom Tromey <tromey@redhat.com>
4509 * target-delegates.c: Rebuild.
4510 * target.c (target_flash_erase): Unconditionally delegate.
4511 * target.h (struct target_ops) <to_flash_erase>: Use
4512 TARGET_DEFAULT_NORETURN.
4514 2014-02-19 Tom Tromey <tromey@redhat.com>
4516 * target-delegates.c: Rebuild.
4517 * target.c (target_get_section_table): Unconditionally delegate.
4518 * target.h (struct target_ops) <to_get_section_table>: Use
4519 TARGET_DEFAULT_RETURN.
4521 2014-02-19 Tom Tromey <tromey@redhat.com>
4523 * target-delegates.c: Rebuild.
4524 * target.c (target_pid_to_str): Unconditionally delegate.
4525 (init_dummy_target): Don't initialize to_pid_to_str.
4526 (default_pid_to_str): Rename from dummy_pid_to_str.
4527 * target.h (struct target_ops) <to_pid_to_str>: Use
4528 TARGET_DEFAULT_FUNC.
4530 2014-02-19 Tom Tromey <tromey@redhat.com>
4532 * target-delegates.c: Rebuild.
4533 * target.c (target_find_new_threads): Unconditionally delegate.
4534 * target.h (struct target_ops) <to_find_new_threads>: Use
4535 TARGET_DEFAULT_RETURN.
4537 2014-02-19 Tom Tromey <tromey@redhat.com>
4539 * target-delegates.c: Rebuild.
4540 * target.c (target_program_signals): Unconditionally delegate.
4541 * target.h (struct target_ops) <to_program_signals>: Use
4542 TARGET_DEFAULT_IGNORE.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target-delegates.c: Rebuild.
4547 * target.c (target_pass_signals): Unconditionally delegate.
4548 * target.h (struct target_ops) <to_pass_signals>: Use
4549 TARGET_DEFAULT_IGNORE.
4551 2014-02-19 Tom Tromey <tromey@redhat.com>
4553 * target-delegates.c: Rebuild.
4554 * target.c (default_mourn_inferior): New function.
4555 (target_mourn_inferior): Unconditionally delegate.
4556 * target.h (struct target_ops) <to_mourn_inferior>: Use
4557 TARGET_DEFAULT_FUNC.
4559 2014-02-19 Tom Tromey <tromey@redhat.com>
4561 * target-delegates.c: Rebuild.
4562 * target.c (default_follow_fork): New function.
4563 (target_follow_fork): Unconditionally delegate.
4564 * target.h (struct target_ops) <to_follow_fork>: Use
4565 TARGET_DEFAULT_FUNC.
4567 2014-02-19 Tom Tromey <tromey@redhat.com>
4569 * target-delegates.c: Rebuild.
4570 * target.c (target_kill): Unconditionally delegate.
4571 * target.h (struct target_ops) <to_kill>: Use
4572 TARGET_DEFAULT_NORETURN.
4574 2014-02-19 Tom Tromey <tromey@redhat.com>
4576 * target-delegates.c: Rebuild.
4577 * target.c (target_masked_watch_num_registers): Unconditionally
4579 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4580 Use TARGET_DEFAULT_RETURN.
4582 2014-02-19 Tom Tromey <tromey@redhat.com>
4584 * target-delegates.c: Rebuild.
4585 * target.c (target_remove_mask_watchpoint): Unconditionally
4587 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4588 TARGET_DEFAULT_RETURN.
4590 2014-02-19 Tom Tromey <tromey@redhat.com>
4592 * target-delegates.c: Rebuild.
4593 * target.c (target_insert_mask_watchpoint): Unconditionally
4595 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4596 TARGET_DEFAULT_RETURN.
4598 2014-02-19 Tom Tromey <tromey@redhat.com>
4600 * target-delegates.c: Rebuild.
4601 * target.c (target_ranged_break_num_registers): Unconditionally
4603 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4604 Use TARGET_DEFAULT_RETURN.
4606 2014-02-19 Tom Tromey <tromey@redhat.com>
4608 * target-delegates.c: Rebuild.
4609 * target.c (target_fetch_registers): Unconditionally delegate.
4610 * target.h (struct target_ops) <to_fetch_registers>: Use
4611 TARGET_DEFAULT_NORETURN.
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
4618 * target.h (struct target_ops) <to_stop>: Use
4619 TARGET_DEFAULT_IGNORE.
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * target-delegates.c: Rebuild.
4624 * target.c (update_current_target): Don't inherit or default
4625 to_can_run_breakpoint_commands.
4626 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4627 Use TARGET_DEFAULT_RETURN.
4629 2014-02-19 Tom Tromey <tromey@redhat.com>
4631 * target-delegates.c: Rebuild.
4632 * target.c (update_current_target): Don't inherit or default
4633 to_supports_evaluation_of_breakpoint_conditions.
4634 * target.h (struct target_ops)
4635 <to_supports_evaluation_of_breakpoint_conditions>: Use
4636 TARGET_DEFAULT_RETURN.
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
4642 to_augmented_libraries_svr4_read.
4643 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4644 Use TARGET_DEFAULT_RETURN.
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_can_use_agent>: 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 inherit or default
4659 * target.h (struct target_ops) <to_use_agent>: Use
4660 TARGET_DEFAULT_NORETURN.
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
4667 (return_null): Remove.
4668 * target.h (struct target_ops) <to_traceframe_info>: Use
4669 TARGET_DEFAULT_RETURN.
4671 2014-02-19 Tom Tromey <tromey@redhat.com>
4673 * target-delegates.c: Rebuild.
4674 * target.c (update_current_target): Don't inherit or default
4675 to_static_tracepoint_markers_by_strid.
4676 * target.h (struct target_ops)
4677 <to_static_tracepoint_markers_by_strid>: Use
4678 TARGET_DEFAULT_NORETURN.
4680 2014-02-19 Tom Tromey <tromey@redhat.com>
4682 * target-delegates.c: Rebuild.
4683 * target.c (update_current_target): Don't inherit or default
4684 to_static_tracepoint_marker_at.
4685 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4686 Use TARGET_DEFAULT_RETURN.
4688 2014-02-19 Tom Tromey <tromey@redhat.com>
4690 * target-delegates.c: Rebuild.
4691 * target.c (update_current_target): Don't inherit or default
4693 * target.h (struct target_ops) <to_set_permissions>: Use
4694 TARGET_DEFAULT_IGNORE.
4696 2014-02-19 Tom Tromey <tromey@redhat.com>
4698 * target-delegates.c: Rebuild.
4699 * target.c (update_current_target): Don't inherit or default
4701 * target.h (struct target_ops) <to_get_tib_address>: Use
4702 TARGET_DEFAULT_NORETURN.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target-delegates.c: Rebuild.
4707 * target.c (update_current_target): Don't inherit or default
4709 * target.h (struct target_ops) <to_set_trace_notes>: Use
4710 TARGET_DEFAULT_RETURN.
4712 2014-02-19 Tom Tromey <tromey@redhat.com>
4714 * target-delegates.c: Rebuild.
4715 * target.c (update_current_target): Don't initialize
4716 to_set_trace_buffer_size.
4717 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4718 TARGET_DEFAULT_IGNORE.
4720 2014-02-19 Tom Tromey <tromey@redhat.com>
4722 * target-delegates.c: Rebuild.
4723 * target.c (update_current_target): Don't inherit or default
4724 to_set_circular_trace_buffer.
4725 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4726 TARGET_DEFAULT_IGNORE.
4728 2014-02-19 Tom Tromey <tromey@redhat.com>
4730 * target-delegates.c: Rebuild.
4731 * target.c (update_current_target): Don't inherit or default
4732 to_set_disconnected_tracing.
4733 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4734 TARGET_DEFAULT_IGNORE.
4736 2014-02-19 Tom Tromey <tromey@redhat.com>
4738 * target-delegates.c: Rebuild.
4739 * target.c (update_current_target): Don't inherit or default
4740 to_get_min_fast_tracepoint_insn_len.
4741 (return_minus_one): Remove.
4742 * target.h (struct target_ops)
4743 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4745 2014-02-19 Tom Tromey <tromey@redhat.com>
4747 * target-delegates.c: Rebuild.
4748 * target.c (update_current_target): Don't inherit or default
4749 to_get_raw_trace_data.
4750 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4751 TARGET_DEFAULT_NORETURN.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target-delegates.c: Rebuild.
4756 * target.c (update_current_target): Don't inherit or default
4757 to_upload_trace_state_variables.
4758 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4759 Use TARGET_DEFAULT_RETURN.
4761 2014-02-19 Tom Tromey <tromey@redhat.com>
4763 * target-delegates.c: Rebuild.
4764 * target.c (update_current_target): Don't inherit or default
4765 to_upload_tracepoints.
4766 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4767 TARGET_DEFAULT_RETURN.
4769 2014-02-19 Tom Tromey <tromey@redhat.com>
4771 * target-delegates.c: Rebuild.
4772 * target.c (update_current_target): Don't inherit or default
4774 * target.h (struct target_ops) <to_save_trace_data>: Use
4775 TARGET_DEFAULT_NORETURN.
4777 2014-02-19 Tom Tromey <tromey@redhat.com>
4779 * target-delegates.c: Rebuild.
4780 * target.c (update_current_target): Don't inherit or default
4781 to_get_trace_state_variable_value.
4782 * target.h (struct target_ops)
4783 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4785 2014-02-19 Tom Tromey <tromey@redhat.com>
4787 * target-delegates.c: Rebuild.
4788 * target.c (update_current_target): Don't inherit or default
4790 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * target-delegates.c: Rebuild.
4795 * target.c (update_current_target): Don't inherit or default
4797 * target.h (struct target_ops) <to_trace_stop>: Use
4798 TARGET_DEFAULT_NORETURN.
4800 2014-02-19 Tom Tromey <tromey@redhat.com>
4802 * target-delegates.c: Rebuild.
4803 * target.c (update_current_target): Don't inherit or default
4804 to_get_tracepoint_status.
4805 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4806 TARGET_DEFAULT_NORETURN.
4808 2014-02-19 Tom Tromey <tromey@redhat.com>
4810 * target-delegates.c: Rebuild.
4811 * target.c (update_current_target): Don't inherit or default
4812 to_get_trace_status.
4813 * target.h (struct target_ops) <to_get_trace_status>: Use
4814 TARGET_DEFAULT_RETURN.
4816 2014-02-19 Tom Tromey <tromey@redhat.com>
4818 * target-delegates.c: Rebuild.
4819 * target.c (update_current_target): Don't inherit or default
4821 * target.h (struct target_ops) <to_trace_start>: Use
4822 TARGET_DEFAULT_NORETURN.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target-delegates.c: Rebuild.
4827 * target.c (update_current_target): Don't inherit or default
4828 to_trace_set_readonly_regions.
4829 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4830 Use TARGET_DEFAULT_NORETURN.
4832 2014-02-19 Tom Tromey <tromey@redhat.com>
4834 * target-delegates.c: Rebuild.
4835 * target.c (update_current_target): Don't inherit or default
4836 to_disable_tracepoint.
4837 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4838 TARGET_DEFAULT_NORETURN.
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target-delegates.c: Rebuild.
4843 * target.c (update_current_target): Don't inherit or default
4844 to_enable_tracepoint.
4845 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4846 TARGET_DEFAULT_NORETURN.
4848 2014-02-19 Tom Tromey <tromey@redhat.com>
4850 * target-delegates.c: Rebuild.
4851 * target.c (update_current_target): Don't inherit or default
4852 to_download_trace_state_variable.
4853 * target.h (struct target_ops) <to_download_trace_state_variable>:
4854 Use TARGET_DEFAULT_NORETURN.
4856 2014-02-19 Tom Tromey <tromey@redhat.com>
4858 * target-delegates.c: Rebuild.
4859 * target.c (update_current_target): Don't inherit or default
4860 to_can_download_tracepoint.
4861 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4862 TARGET_DEFAULT_RETURN.
4864 2014-02-19 Tom Tromey <tromey@redhat.com>
4866 * target-delegates.c: Rebuild.
4867 * target.c (update_current_target): Don't inherit or default
4868 to_download_tracepoint.
4869 * target.h (struct target_ops) <to_download_tracepoint>: Use
4870 TARGET_DEFAULT_NORETURN.
4872 2014-02-19 Tom Tromey <tromey@redhat.com>
4874 * target-delegates.c: Rebuild.
4875 * target.c (update_current_target): Don't inherit or default
4877 * target.h (struct target_ops) <to_trace_init>: Use
4878 TARGET_DEFAULT_RETURN.
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
4884 to_supports_string_tracing.
4885 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4886 TARGET_DEFAULT_RETURN.
4888 2014-02-19 Tom Tromey <tromey@redhat.com>
4890 * target-delegates.c: Rebuild.
4891 * target.c (update_current_target): Don't inherit or default
4892 to_supports_enable_disable_tracepoint.
4893 * target.h (struct target_ops)
4894 <to_supports_enable_disable_tracepoint>: Use
4895 TARGET_DEFAULT_RETURN.
4897 2014-02-19 Tom Tromey <tromey@redhat.com>
4899 * target-delegates.c: Rebuild.
4900 * target.c (update_current_target): Don't inherit or default
4901 to_supports_multi_process.
4902 * target.h (struct target_ops) <to_supports_multi_process>: Use
4903 TARGET_DEFAULT_RETURN.
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target-delegates.c: Rebuild.
4908 * target.c (update_current_target): Don't inherit or default
4909 to_get_ada_task_ptid.
4910 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4911 TARGET_DEFAULT_FUNC.
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * target-delegates.c: Rebuild.
4916 * target.c (update_current_target): Don't inherit or default
4917 to_thread_architecture.
4918 * target.h (struct target_ops) <to_thread_architecture>: Use
4919 TARGET_DEFAULT_FUNC.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target-delegates.c: Rebuild.
4924 * target.c (update_current_target): Don't inherit or default
4925 to_execution_direction.
4926 * target.h (struct target_ops) <to_execution_direction>: Use
4927 TARGET_DEFAULT_FUNC.
4929 2014-02-19 Tom Tromey <tromey@redhat.com>
4931 * target-delegates.c: Rebuild.
4932 * target.c (update_current_target): Don't inherit or default
4933 to_can_execute_reverse.
4934 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4935 TARGET_DEFAULT_RETURN.
4936 (target_can_execute_reverse): Unconditionally delegate.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * target-delegates.c: Rebuild.
4941 * target.c (update_current_target): Don't inherit or default
4943 (dummy_goto_bookmark): Remove.
4944 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4945 * target.h (struct target_ops) <to_goto_bookmark>: Use
4946 TARGET_DEFAULT_NORETURN.
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * target-delegates.c: Rebuild.
4951 * target.c (update_current_target): Don't inherit or default
4953 (dummy_get_bookmark): Remove.
4954 (init_dummy_target): Don't inherit or default to_get_bookmark.
4955 * target.h (struct target_ops) <to_get_bookmark>: Use
4956 TARGET_DEFAULT_NORETURN
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * target-delegates.c: Rebuild.
4961 * target.c (update_current_target): Don't inherit or default
4962 to_make_corefile_notes.
4963 (init_dummy_target): Don't initialize to_make_corefile_notes.
4964 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4965 TARGET_DEFAULT_FUNC.
4967 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * target-delegates.c: Rebuild.
4970 * target.c (update_current_target): Don't inherit or default
4971 to_find_memory_regions.
4972 (init_dummy_target): Don't initialize to_find_memory_regions.
4973 * target.h (struct target_ops) <to_find_memory_regions>: Use
4974 TARGET_DEFAULT_FUNC.
4976 2014-02-19 Tom Tromey <tromey@redhat.com>
4978 * target-delegates.c: Rebuild.
4979 * target.c (update_current_target): Don't inherit or default
4981 * target.h (struct target_ops) <to_log_command>: Use
4982 TARGET_DEFAULT_IGNORE.
4983 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
4990 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
4998 (target_thread_name): Unconditionally delegate.
4999 * target.h (struct target_ops) <to_thread_name>: Use
5000 TARGET_DEFAULT_RETURN.
5002 2014-02-19 Tom Tromey <tromey@redhat.com>
5004 * target-delegates.c: Rebuild.
5005 * target.c (update_current_target): Don't inherit or default
5006 to_extra_thread_info.
5007 * target.h (struct target_ops) <to_extra_thread_info>: Use
5008 TARGET_DEFAULT_RETURN.
5010 2014-02-19 Tom Tromey <tromey@redhat.com>
5012 * target-delegates.c: Rebuild.
5013 * target.c (update_current_target): Don't inherit or default
5015 * target.h (struct target_ops) <to_has_exited>: Use
5016 TARGET_DEFAULT_RETURN..
5018 2014-02-19 Tom Tromey <tromey@redhat.com>
5020 * target-delegates.c: Rebuild.
5021 * target.c (update_current_target): Don't inherit or default
5022 to_set_syscall_catchpoint.
5023 (return_one): Remove.
5024 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5025 TARGET_DEFAULT_RETURN.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target-delegates.c: Rebuild.
5030 * target.c (update_current_target): Don't inherit or default
5031 to_insert_exec_catchpoint.
5032 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5033 TARGET_DEFAULT_RETURN.
5035 2014-01-08 Tom Tromey <tromey@redhat.com>
5037 * target-delegates.c: Rebuild.
5038 * target.c (update_current_target): Don't inherit or default
5039 to_insert_exec_catchpoint.
5040 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5041 TARGET_DEFAULT_RETURN.
5043 2014-02-19 Tom Tromey <tromey@redhat.com>
5045 * target-delegates.c: Rebuild.
5046 * target.c (update_current_target): Don't inherit or default
5047 to_remove_vfork_catchpoint.
5048 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5049 TARGET_DEFAULT_RETURN.
5051 2014-02-19 Tom Tromey <tromey@redhat.com>
5053 * target-delegates.c: Rebuild.
5054 * target.c (update_current_target): Don't inherit or default
5055 to_insert_vfork_catchpoint.
5056 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5057 TARGET_DEFAULT_RETURN.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: Rebuild.
5062 * target.c (update_current_target): Don't inherit or default
5063 to_remove_fork_catchpoint.
5064 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5065 TARGET_DEFAULT_RETURN.
5067 2014-02-19 Tom Tromey <tromey@redhat.com>
5069 * target-delegates.c: Rebuild.
5070 * target.c (update_current_target): Don't inherit or default
5071 to_insert_fork_catchpoint.
5072 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5073 TARGET_DEFAULT_RETURN.
5075 2014-02-19 Tom Tromey <tromey@redhat.com>
5077 * target-delegates.c: Rebuild.
5078 * target.c (update_current_target): Don't inherit or default
5079 to_post_startup_inferior.
5080 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5081 TARGET_DEFAULT_IGNORE.
5083 2014-02-19 Tom Tromey <tromey@redhat.com>
5085 * target-delegates.c: Rebuild.
5086 * target.c (update_current_target): Don't inherit or default
5088 * target.h (struct target_ops) <to_load>: Use
5089 TARGET_DEFAULT_NORETURN.
5091 2014-02-19 Tom Tromey <tromey@redhat.com>
5093 * target-delegates.c: Rebuild.
5094 * target.c (update_current_target): Don't inherit or default
5096 * target.h (struct target_ops) <to_terminal_info>: Use
5097 TARGET_DEFAULT_FUNC.
5099 2014-02-19 Tom Tromey <tromey@redhat.com>
5101 * target-delegates.c: Rebuild.
5102 * target.c (update_current_target): Don't inherit or default
5103 to_terminal_save_ours.
5104 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5105 TARGET_DEFAULT_IGNORE.
5107 2014-02-19 Tom Tromey <tromey@redhat.com>
5109 * target-delegates.c: Rebuild.
5110 * target.c (update_current_target): Don't inherit or default
5112 * target.h (struct target_ops) <to_terminal_ours>: Use
5113 TARGET_DEFAULT_IGNORE.
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target-delegates.c: Rebuild.
5118 * target.c (update_current_target): Don't inherit or default
5119 to_terminal_ours_for_output.
5120 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5121 TARGET_DEFAULT_IGNORE.
5123 2014-02-19 Tom Tromey <tromey@redhat.com>
5125 * target-delegates.c: Rebuild.
5126 * target.c (update_current_target): Don't inherit or default
5127 to_terminal_inferior.
5128 * target.h (struct target_ops) <to_terminal_inferior>: Use
5129 TARGET_DEFAULT_IGNORE.
5131 2014-02-19 Tom Tromey <tromey@redhat.com>
5133 * target-delegates.c: Rebuild.
5134 * target.c (update_current_target): Don't inherit or default
5136 * target.h (struct target_ops) <to_terminal_init>: Use
5137 TARGET_DEFAULT_IGNORE.
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target-delegates.c: Rebuild.
5142 * target.c (update_current_target): Don't inherit or default
5143 to_can_accel_watchpoint_condition.
5144 * target.h (struct target_ops)
5145 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5147 2014-02-19 Tom Tromey <tromey@redhat.com>
5149 * target-delegates.c: Rebuild.
5150 * target.c (update_current_target): Don't inherit or default
5151 to_region_ok_for_hw_watchpoint.
5152 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5153 Use TARGET_DEFAULT_FUNC.
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * target-delegates.c: Rebuild.
5158 * target.c (update_current_target): Don't inherit or default
5159 to_watchpoint_addr_within_range.
5160 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5161 Use TARGET_DEFAULT_FUNC.
5163 2014-02-19 Tom Tromey <tromey@redhat.com>
5165 * target-delegates.c: Rebuild.
5166 * target.c (update_current_target): Don't inherit or default
5167 to_remove_watchpoint.
5168 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5169 TARGET_DEFAULT_NORETURN.
5171 2014-02-19 Tom Tromey <tromey@redhat.com>
5173 * target-delegates.c: Rebuild.
5174 * target.c (update_current_target): Don't inherit or default
5175 to_insert_watchpoint.
5176 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5177 TARGET_DEFAULT_RETURN.
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target-delegates.c: Rebuild.
5182 * target.c (update_current_target): Don't inherit or default
5183 to_remove_hw_breakpoint.
5184 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5185 TARGET_DEFAULT_RETURN.
5187 2014-02-19 Tom Tromey <tromey@redhat.com>
5189 * target-delegates.c: Rebuild.
5190 * target.c (update_current_target): Don't inherit or default
5191 to_insert_hw_breakpoint.
5192 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5193 TARGET_DEFAULT_RETURN.
5195 2014-02-19 Tom Tromey <tromey@redhat.com>
5197 * target-delegates.c: Rebuild.
5198 * target.c (update_current_target): Don't inherit or default
5199 to_can_use_hw_breakpoint.
5200 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5201 TARGET_DEFAULT_RETURN.
5203 2014-02-19 Tom Tromey <tromey@redhat.com>
5205 * target-delegates.c: Rebuild.
5206 * target.c (update_current_target): Don't inherit or default
5208 * target.h (struct target_ops) <to_files_info>: Use
5209 TARGET_DEFAULT_IGNORE.
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (update_current_target): Don't inherit or default
5216 * target.h (struct target_ops) <to_store>: Use
5217 TARGET_DEFAULT_NORETURN.
5219 2014-02-19 Tom Tromey <tromey@redhat.com>
5221 * target-delegates.c: Rebuild.
5222 * target.c (update_current_target): Don't inherit or default
5224 * target.h (struct target_ops) <to_post_attach>: Use
5225 TARGET_DEFAULT_IGNORE.
5227 2014-02-19 Tom Tromey <tromey@redhat.com>
5229 * target-delegates.c: Rebuild.
5230 * target.c (update_current_target): Don't inherit or default
5232 (default_rcmd): New function.
5233 (do_monitor_command): Unconditionally delegate.
5234 * target.h (struct target_ops) <to_rmcd>: Use
5235 TARGET_DEFAULT_FUNC.
5237 2014-02-19 Tom Tromey <tromey@redhat.com>
5239 * target-delegates.c: Rebuild.
5240 * target.c (init_dummy_target): Don't initialize to_attach.
5241 (target_attach): Unconditionally delegate.
5242 * target.h (struct target_ops) <to_attach>: Use
5243 TARGET_DEFAULT_FUNC.
5245 2014-02-19 Tom Tromey <tromey@redhat.com>
5247 * target-delegates.c: Rebuild.
5248 * target.c (target_detach): Unconditionally delegate.
5249 (init_dummy_target): Don't initialize to_detach.
5250 * target.h (struct target_ops) <to_detach>: Use
5251 TARGET_DEFAULT_IGNORE.
5253 2014-02-19 Tom Tromey <tromey@redhat.com>
5255 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5257 (target_augmented_libraries_svr4_read): Add argument.
5258 * target.c (update_current_target): Update.
5259 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5262 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target.h (struct target_ops) <to_call_history_range>: Add
5266 * target.c (target_call_history_range): Add argument.
5267 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5269 (record_btrace_call_history_from): Update.
5271 2014-02-19 Tom Tromey <tromey@redhat.com>
5273 * target.h (struct target_ops) <to_call_history_from>: Add
5275 * target.c (target_call_history_from): Add argument.
5276 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5279 2014-02-19 Tom Tromey <tromey@redhat.com>
5281 * target.h (struct target_ops) <to_call_history>: Add argument.
5282 * target.c (target_call_history): Add argument.
5283 * record-btrace.c (record_btrace_call_history): Add 'self'
5286 2014-02-19 Tom Tromey <tromey@redhat.com>
5288 * target.h (struct target_ops) <to_insn_history_range>: Add
5290 * target.c (target_insn_history_range): Add argument.
5291 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5293 (record_btrace_insn_history_from): Update.
5295 2014-02-19 Tom Tromey <tromey@redhat.com>
5297 * target.h (struct target_ops) <to_insn_history_from>: Add
5299 * target.c (target_insn_history_from): Add argument.
5300 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5303 2014-02-19 Tom Tromey <tromey@redhat.com>
5305 * target.h (struct target_ops) <to_insn_history>: Add argument.
5306 * target.c (target_insn_history): Add argument.
5307 * record-btrace.c (record_btrace_insn_history): Add 'self'
5310 2014-02-19 Tom Tromey <tromey@redhat.com>
5312 * target.h (struct target_ops) <to_goto_record>: Add argument.
5313 * target.c (target_goto_record): Add argument.
5314 * record-full.c (record_full_goto): Add 'self' argument.
5315 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5317 2014-02-19 Tom Tromey <tromey@redhat.com>
5319 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5320 * target.c (target_goto_record_end): Add argument.
5321 * record-full.c (record_full_goto_end): Add 'self' argument.
5322 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5324 2014-02-19 Tom Tromey <tromey@redhat.com>
5326 * target.h (struct target_ops) <to_goto_record_begin>: Add
5328 * target.c (target_goto_record_begin): Add argument.
5329 * record-full.c (record_full_goto_begin): Add 'self' argument.
5330 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5333 2014-02-19 Tom Tromey <tromey@redhat.com>
5335 * target.h (struct target_ops) <to_record_is_replaying>: Add
5337 * target.c (target_record_is_replaying): Add argument.
5338 * record-full.c (record_full_is_replaying): Add 'self' argument.
5339 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5341 (record_btrace_xfer_partial, record_btrace_store_registers)
5342 (record_btrace_prepare_to_store, record_btrace_resume)
5343 (record_btrace_wait, record_btrace_decr_pc_after_break)
5344 (record_btrace_find_new_threads, record_btrace_thread_alive):
5347 2014-02-19 Tom Tromey <tromey@redhat.com>
5349 * target.h (struct target_ops) <to_delete_record>: Add argument.
5350 * target.c (target_delete_record): Add argument.
5351 * record-full.c (record_full_delete): Add 'self' argument.
5353 2014-02-19 Tom Tromey <tromey@redhat.com>
5355 * target.h (struct target_ops) <to_save_record>: Add argument.
5356 * target.c (target_save_record): Add argument.
5357 * record-full.c (record_full_save): Add 'self' argument.
5358 (record_full_save): Add 'self' argument.
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5362 * target.h (struct target_ops) <to_info_record>: Add argument.
5363 * target.c (target_info_record): Add argument.
5364 * record.c (info_record_command): Add argument.
5365 * record-full.c (record_full_info): Add 'self' argument.
5366 * record-btrace.c (record_btrace_info): Add 'self' argument.
5368 2014-02-19 Tom Tromey <tromey@redhat.com>
5370 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5371 * target.c (target_stop_recording): Add argument.
5372 * record.c (record_stop): Add argument.
5373 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5376 2014-02-19 Tom Tromey <tromey@redhat.com>
5378 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5379 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5380 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5382 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5383 (_initialize_amd64_linux_nat): Use it.
5384 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5385 (_initialize_i386_linux_nat): Use it.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5390 * target.c (target_teardown_btrace): Add argument.
5391 * remote.c (remote_teardown_btrace): Add 'self' argument.
5392 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5394 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5400 * target.c (target_disable_btrace): Add argument.
5401 * remote.c (remote_disable_btrace): Add 'self' argument.
5402 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5404 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5407 2014-02-19 Tom Tromey <tromey@redhat.com>
5409 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5410 * target.c (target_enable_btrace): Add argument.
5411 * remote.c (remote_enable_btrace): Add 'self' argument.
5412 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5414 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5417 2014-02-19 Tom Tromey <tromey@redhat.com>
5419 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5420 (target_can_use_agent): Add argument.
5421 * target.c (update_current_target): Update.
5422 * remote.c (remote_can_use_agent): Add 'self' argument.
5423 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target.h (struct target_ops) <to_use_agent>: Add argument.
5428 (target_use_agent): Add argument.
5429 * target.c (update_current_target): Update.
5430 * remote.c (remote_use_agent): Add 'self' argument.
5431 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5433 2014-02-19 Tom Tromey <tromey@redhat.com>
5435 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5436 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5437 (target_traceframe_info): Add argument.
5438 * target.c (update_current_target): Update.
5439 * remote.c (remote_traceframe_info): Add 'self' argument.
5440 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5442 2014-02-19 Tom Tromey <tromey@redhat.com>
5444 * target.h (target_static_tracepoint_markers_by_strid): Add
5446 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5448 * target.c (update_current_target): Update.
5449 * remote.c (struct target_ops)
5450 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5451 * linux-nat.c (struct target_ops)
5452 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5454 2014-02-19 Tom Tromey <tromey@redhat.com>
5456 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5458 (target_static_tracepoint_marker_at): Add argument.
5459 * target.c (update_current_target): Update.
5460 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5463 2014-02-19 Tom Tromey <tromey@redhat.com>
5465 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5466 (target_set_permissions): Add argument.
5467 * target.c (update_current_target): Update.
5468 * remote.c (remote_set_permissions): Add 'self' argument.
5469 (remote_start_remote): Update.
5471 2014-02-19 Tom Tromey <tromey@redhat.com>
5473 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5474 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5475 (target_get_tib_address): Add argument.
5476 * target.c (update_current_target): Update.
5477 * remote.c (remote_get_tib_address): Add 'self' argument.
5479 2014-02-19 Tom Tromey <tromey@redhat.com>
5481 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5482 (target_set_trace_notes): Add argument.
5483 * target.c (update_current_target): Update.
5484 * remote.c (remote_set_trace_notes): Add 'self' argument.
5486 2014-02-19 Tom Tromey <tromey@redhat.com>
5488 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5490 (target_set_trace_buffer_size): Add argument.
5491 * target.c (update_current_target): Update.
5492 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5494 2014-02-19 Tom Tromey <tromey@redhat.com>
5496 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5498 (target_set_circular_trace_buffer): Add argument.
5499 * target.c (update_current_target): Update.
5500 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5503 2014-02-19 Tom Tromey <tromey@redhat.com>
5505 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5507 (target_set_disconnected_tracing): Add argument.
5508 * target.c (update_current_target): Update.
5509 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5511 2014-02-19 Tom Tromey <tromey@redhat.com>
5513 * target.h (struct target_ops)
5514 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5515 (target_get_min_fast_tracepoint_insn_len): Add argument.
5516 * target.c (update_current_target): Update.
5517 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5520 2014-02-19 Tom Tromey <tromey@redhat.com>
5522 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5524 (target_get_raw_trace_data): Add argument.
5525 * target.c (update_current_target): Update.
5526 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5528 2014-02-19 Tom Tromey <tromey@redhat.com>
5530 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5532 (target_upload_trace_state_variables): Add argument.
5533 * target.c (update_current_target): Update.
5534 * remote.c (remote_upload_trace_state_variables): Add 'self'
5536 (remote_start_remote): Update.
5538 2014-02-19 Tom Tromey <tromey@redhat.com>
5540 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5542 (target_upload_tracepoints): Add argument.
5543 * target.c (update_current_target): Update.
5544 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5545 (remote_start_remote): Update.
5547 2014-02-19 Tom Tromey <tromey@redhat.com>
5549 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5550 (target_save_trace_data): Add argument.
5551 * target.c (update_current_target): Update.
5552 * remote.c (remote_save_trace_data): Add 'self' argument.
5554 2014-02-19 Tom Tromey <tromey@redhat.com>
5556 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5558 * target.h (struct target_ops)
5559 <to_get_trace_state_variable_value>: Add argument.
5560 (target_get_trace_state_variable_value): Add argument.
5561 * target.c (update_current_target): Update.
5562 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5564 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5566 2014-02-19 Tom Tromey <tromey@redhat.com>
5568 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5569 * target.h (struct target_ops) <to_trace_find>: Add argument.
5570 (target_trace_find): Add argument.
5571 * target.c (update_current_target): Update.
5572 * remote.c (remote_trace_find): Add 'self' argument.
5573 * ctf.c (ctf_trace_find): Add 'self' argument.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5578 (target_trace_stop): Add argument.
5579 * target.c (update_current_target): Update.
5580 * remote.c (remote_trace_stop): Add 'self' argument.
5582 2014-02-19 Tom Tromey <tromey@redhat.com>
5584 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5585 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5587 (target_get_tracepoint_status): Add argument.
5588 * target.c (update_current_target): Update.
5589 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5591 2014-02-19 Tom Tromey <tromey@redhat.com>
5593 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5594 * target.h (struct target_ops) <to_get_trace_status>: Add
5596 (target_get_trace_status): Add argument.
5597 * target.c (update_current_target): Update.
5598 * remote.c (remote_get_trace_status): Add 'self' argument.
5599 (remote_start_remote, remote_can_download_tracepoint): Update.
5600 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5602 2014-02-19 Tom Tromey <tromey@redhat.com>
5604 * target.h (struct target_ops) <to_trace_start>: Add argument.
5605 (target_trace_start): Add argument.
5606 * target.c (update_current_target): Update.
5607 * remote.c (remote_trace_start): Add 'self' argument.
5609 2014-02-19 Tom Tromey <tromey@redhat.com>
5611 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5613 (target_trace_set_readonly_regions): Add argument.
5614 * target.c (update_current_target): Update.
5615 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5622 (target_disable_tracepoint): Add argument.
5623 * target.c (update_current_target): Update.
5624 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5626 2014-02-19 Tom Tromey <tromey@redhat.com>
5628 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5630 (target_enable_tracepoint): Add argument.
5631 * target.c (update_current_target): Update.
5632 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5634 2014-02-19 Tom Tromey <tromey@redhat.com>
5636 * target.h (struct target_ops) <to_download_trace_state_variable>:
5638 (target_download_trace_state_variable): Add argument.
5639 * target.c (update_current_target): Update.
5640 * remote.c (remote_download_trace_state_variable): Add 'self'
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5647 (target_can_download_tracepoint): Add argument.
5648 * target.c (update_current_target): Update.
5649 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target.h (struct target_ops) <to_download_tracepoint>: Add
5655 (target_download_tracepoint): Add argument.
5656 * target.c (update_current_target): Update.
5657 * remote.c (remote_download_tracepoint): Add 'self' argument.
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5661 * target.h (struct target_ops) <to_trace_init>: Add argument.
5662 (target_trace_init): Add argument.
5663 * target.c (update_current_target): Update.
5664 * remote.c (remote_trace_init): Add 'self' argument.
5666 2014-02-19 Tom Tromey <tromey@redhat.com>
5668 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5669 * target.c (target_fileio_readlink): Add argument.
5670 * remote.c (remote_hostio_readlink): Add 'self' argument.
5671 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5676 * target.c (target_fileio_unlink): Add argument.
5677 * remote.c (remote_hostio_unlink): Add 'self' argument.
5678 (remote_file_delete): Update.
5679 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5684 * target.c (target_fileio_close): Add argument.
5685 * remote.c (remote_hostio_close): Add 'self' argument.
5686 (remote_hostio_close_cleanup): Update.
5687 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5689 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5691 2014-02-19 Tom Tromey <tromey@redhat.com>
5693 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5694 * target.c (target_fileio_pread): Add argument.
5695 * remote.c (remote_hostio_pread): Add 'self' argument.
5696 (remote_bfd_iovec_pread, remote_file_get): Update.
5697 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5699 2014-02-19 Tom Tromey <tromey@redhat.com>
5701 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5702 * target.c (target_fileio_pwrite): Add argument.
5703 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5704 (remote_file_put): Update.
5705 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5710 * target.c (target_fileio_open): Add argument.
5711 * remote.c (remote_hostio_open): Add 'self' argument.
5712 (remote_bfd_iovec_open): Add 'self' argument.
5713 (remote_file_put): Add 'self' argument.
5714 (remote_file_get): Add 'self' argument.
5715 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5717 2014-02-19 Tom Tromey <tromey@redhat.com>
5719 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5721 (target_can_run_breakpoint_commands): Add argument.
5722 * target.c (update_current_target): Update.
5723 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5725 (remote_insert_breakpoint): Add 'self' argument.
5726 (remote_insert_hw_breakpoint): Add 'self' argument.
5727 (remote_can_run_breakpoint_commands): Add 'self' argument.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops)
5732 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5733 (target_supports_evaluation_of_breakpoint_conditions): Add
5735 * target.c (update_current_target): Update.
5736 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5738 (remote_insert_breakpoint): Add 'self' argument.
5739 (remote_insert_hw_breakpoint): Add 'self' argument.
5740 (remote_supports_cond_breakpoints): Add 'self' argument.
5742 2014-02-19 Tom Tromey <tromey@redhat.com>
5744 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5746 (target_supports_string_tracing): Add argument.
5747 * target.c (update_current_target): Update.
5748 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * target.h (struct target_ops)
5753 <to_supports_disable_randomization>: Add argument.
5754 * target.c (find_default_supports_disable_randomization): Add
5756 (target_supports_disable_randomization): Add argument.
5757 (find_default_supports_disable_randomization): Add 'self'
5759 * remote.c (extended_remote_supports_disable_randomization): Add
5761 (remote_supports_disable_randomization): Add 'self' argument.
5762 (extended_remote_create_inferior): Update.
5763 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target.h (struct target_ops)
5769 <to_supports_enable_disable_tracepoint>: Add argument.
5770 (target_supports_enable_disable_tracepoint): Add argument.
5771 * target.c (update_current_target): Update.
5772 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5775 2014-02-19 Tom Tromey <tromey@redhat.com>
5777 * target.h (struct target_ops) <to_supports_multi_process>: Add
5779 (target_supports_multi_process): Add argument.
5780 * target.c (update_current_target): Update.
5781 * remote.c (remote_supports_multi_process): Add 'self' argument.
5782 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5784 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * target.h (struct target_ops) <to_execution_direction>: Add
5791 (target_execution_direction): Add argument.
5792 * target.c (default_execution_direction): Add 'self' argument.
5793 * record-full.c (record_full_execution_direction): Add 'self'
5796 2014-02-19 Tom Tromey <tromey@redhat.com>
5798 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5800 (target_can_execute_reverse): Add argument.
5801 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5802 * record-full.c (record_full_can_execute_reverse): Add 'self'
5804 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5810 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5812 (target_get_ada_task_ptid): Add argument.
5813 * target.c (update_current_target): Update.
5814 (default_get_ada_task_ptid): Add 'self' argument.
5815 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5816 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5817 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5819 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5821 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5823 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5825 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5826 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5829 2014-02-19 Tom Tromey <tromey@redhat.com>
5831 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5832 (target_goto_bookmark): Add argument.
5833 * target.c (dummy_goto_bookmark): Add 'self' argument.
5834 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5836 2014-02-19 Tom Tromey <tromey@redhat.com>
5838 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5839 (target_get_bookmark): Add argument.
5840 * target.c (dummy_get_bookmark): Add 'self' argument.
5841 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5843 2014-02-19 Tom Tromey <tromey@redhat.com>
5845 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5847 (target_make_corefile_notes): Add argument.
5848 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5849 * procfs.c (procfs_make_note_section): Add 'self' argument.
5850 (procfs_make_note_section): Add 'self' argument.
5851 (procfs_make_note_section): Add 'self' argument.
5852 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5854 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5855 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5856 * exec.c (exec_make_note_section): Add 'self' argument.
5857 (exec_make_note_section): Add 'self' argument.
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5861 * target.h (struct target_ops) <to_find_memory_regions>: Add
5863 (target_find_memory_regions): Add argument.
5864 * target.c (dummy_find_memory_regions): Add 'self' argument.
5865 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5866 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5867 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5868 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5869 * exec. (exec_do_find_memory_regions): New global.
5870 (exec_set_find_memory_regions): Rewrite.
5871 (exec_find_memory_regions): New function.
5872 (init_exec_ops): Use exec_find_memory_regions.
5874 2014-02-19 Tom Tromey <tromey@redhat.com>
5876 * target.h (struct target_ops) <to_supports_non_stop>: Add
5878 * target.c (find_default_supports_non_stop): Add argument.
5879 (target_supports_non_stop): Add argument.
5880 (find_default_supports_non_stop): Add 'self' argument.
5881 * remote.c (remote_supports_non_stop): Add 'self' argument.
5882 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5884 2014-02-19 Tom Tromey <tromey@redhat.com>
5886 * target.h (struct target_ops) <to_log_command>: Add argument.
5887 (target_log_command): Add argument.
5888 * serial.h (serial_log_command): Add 'self' argument.
5889 * serial.c (serial_log_command): Add 'self' argument.
5891 2014-02-19 Tom Tromey <tromey@redhat.com>
5893 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5894 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5896 (target_pid_to_exec_file): Add argument.
5897 * target.c (debug_to_pid_to_exec_file): Add argument.
5898 (update_current_target): Update.
5899 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5900 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5901 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5902 (linux_handle_extended_wait): Update.
5903 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5904 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5905 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5906 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target.h (struct target_ops) <to_rcmd>: Add argument.
5911 (target_rcmd): Add argument.
5912 * target.c (debug_to_rcmd): Add argument.
5913 (update_current_target, do_monitor_command): Update.
5914 * remote.c (remote_rcmd): Add 'self' argument.
5915 * monitor.c (monitor_rcmd): Add 'self' argument.
5917 2014-02-19 Tom Tromey <tromey@redhat.com>
5919 * windows-nat.c (windows_stop): Add 'self' argument.
5920 * target.h (struct target_ops) <to_stop>: Add argument.
5921 * target.c (target_stop): Add argument.
5922 (debug_to_stop): Add argument.
5923 (update_current_target): Update.
5924 * remote.c (remote_stop): Add 'self' argument.
5925 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5926 (gdbsim_cntrl_c): Update.
5927 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5928 * procfs.c (procfs_stop): Add 'self' argument.
5929 * nto-procfs.c (procfs_stop): Add 'self' argument.
5930 * monitor.c (monitor_stop): Add 'self' argument.
5931 (monitor_open): Update.
5932 * linux-nat.c (linux_nat_stop): Add argument.
5933 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5934 * gnu-nat.c (gnu_stop): Add 'self' argument.
5935 * darwin-nat.c (darwin_stop): Add 'self' argument.
5937 2014-02-19 Tom Tromey <tromey@redhat.com>
5939 * target.h (struct target_ops) <to_thread_name>: Add argument.
5940 * target.c (target_thread_name): Add argument.
5941 (update_current_target): Update.
5942 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target.h (struct target_ops) <to_extra_thread_info>: Add
5948 (target_extra_thread_info): Add argument.
5949 * target.c (update_current_target): Update.
5950 * remote.c (remote_threads_extra_info): Add 'self' argument.
5951 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5953 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5954 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5955 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5957 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5959 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5961 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.h (struct target_ops) <to_program_signals>: Add argument.
5967 * target.c (target_program_signals): Add argument.
5968 * remote.c (remote_program_signals): Add 'self' argument.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5973 * target.c (target_pass_signals): Add argument.
5974 * remote.c (remote_pass_signals): Add 'self' argument.
5975 (remote_start_remote): Update.
5976 * procfs.c (procfs_pass_signals): Add 'self' argument.
5977 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5978 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5979 (linux_nat_create_inferior, linux_nat_attach): Update.
5981 2014-02-19 Tom Tromey <tromey@redhat.com>
5983 * windows-nat.c (windows_can_run): Add 'self' argument.
5984 * target.h (struct target_ops) <to_can_run>: Add argument.
5985 (target_can_run): Add argument.
5986 * target.c (debug_to_can_run): Add argument.
5987 (update_current_target): Update.
5988 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5989 * inf-child.c (inf_child_can_run): Add 'self' argument.
5990 * go32-nat.c (go32_can_run): Add 'self' argument.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target.h (struct target_ops) <to_has_exited>: Add argument.
5995 (target_has_exited): Add argument.
5996 * target.c (debug_to_has_exited): Add argument.
5997 (update_current_target): Update.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6003 (target_set_syscall_catchpoint): Add argument.
6004 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6006 * target.c (update_current_target): Update.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6012 (target_remove_exec_catchpoint): Add argument.
6013 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6014 (update_current_target): Update.
6015 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6018 2014-02-19 Tom Tromey <tromey@redhat.com>
6020 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6022 (target_insert_exec_catchpoint): Add argument.
6023 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6024 (update_current_target): Update.
6025 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6032 (target_remove_vfork_catchpoint): Add argument.
6033 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6034 (update_current_target): Update.
6035 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6038 2014-02-19 Tom Tromey <tromey@redhat.com>
6040 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6042 (target_insert_vfork_catchpoint): Add argument.
6043 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6044 (update_current_target): Update.
6045 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6050 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6052 (target_remove_fork_catchpoint): Add argument.
6053 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6054 (update_current_target): Update.
6055 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6062 (target_insert_fork_catchpoint): Add argument.
6063 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6064 (update_current_target): Update.
6065 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6068 2014-02-19 Tom Tromey <tromey@redhat.com>
6070 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6072 (target_post_startup_inferior): Add argument.
6073 * target.c (debug_to_post_startup_inferior): Add argument.
6074 (update_current_target): Update.
6075 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6077 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6079 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6081 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6083 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6085 (super_post_startup_inferior): Likewise.
6086 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6088 (super_post_startup_inferior): Likewise.
6089 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6090 Add 'self' argument.
6091 (super_post_startup_inferior): Likewise.
6093 2014-02-19 Tom Tromey <tromey@redhat.com>
6095 * target.h (struct target_ops) <to_load>: Add argument.
6096 * target.c (target_load): Add argument.
6097 (debug_to_load): Add argument.
6098 (update_current_target): Update.
6099 * remote.c (remote_load): Add 'self' argument.
6100 * remote-sim.c (gdbsim_load): Add 'self' argument.
6101 * remote-mips.c (mips_load): Add 'self' argument.
6102 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6103 * monitor.c (monitor_load): Add 'self' argument.
6104 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6106 2014-02-19 Tom Tromey <tromey@redhat.com>
6108 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6109 (target_terminal_info): Add argument.
6110 * target.c (debug_to_terminal_info): Add argument.
6111 (default_terminal_info): Likewise.
6112 * inflow.c (child_terminal_info): Add 'self' argument.
6113 * inferior.h (child_terminal_info): Add 'self' argument.
6114 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6120 (target_terminal_save_ours): Add argument.
6121 * target.c (debug_to_terminal_save_ours): Add argument.
6122 (update_current_target): Update.
6123 * inflow.c (terminal_save_ours): Add 'self' argument.
6124 * inferior.h (terminal_save_ours): Add 'self' argument.
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6129 (target_terminal_ours): Add argument.
6130 * target.c (debug_to_terminal_ours): Add argument.
6131 (update_current_target): Update.
6132 * remote.c (remote_terminal_ours): Add 'self' argument.
6133 (remote_close): Update.
6134 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6135 * inflow.c (terminal_ours): Add 'self' argument.
6136 * inferior.h (terminal_ours): Add 'self' argument.
6137 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6139 2014-02-19 Pedro Alves <palves@redhat.com>
6140 Tom Tromey <tromey@redhat.com>
6142 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6144 (target_terminal_ours_for_output): Add argument.
6145 * target.c (debug_to_terminal_ours_for_output): Add argument.
6146 (update_current_target): Update.
6147 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6148 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6149 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6151 2014-02-19 Tom Tromey <tromey@redhat.com>
6153 * target.h (struct target_ops) <to_terminal_inferior>: Add
6155 * target.c (target_terminal_inferior): Add argument.
6156 (update_current_target): Update.
6157 * remote.c (remote_terminal_inferior): Add 'self' argument.
6158 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6159 * inflow.c (terminal_inferior): Add 'self' argument.
6160 * inferior.h (terminal_inferior): Add 'self' argument.
6161 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6162 (go32_terminal_inferior): Add 'self' argument.
6164 2014-02-19 Tom Tromey <tromey@redhat.com>
6166 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6167 (target_terminal_init): Add argument.
6168 * target.c (debug_to_terminal_init): Add argument.
6169 (update_current_target): Update.
6170 * inflow.c (terminal_init_inferior): Add 'self' argument.
6171 * inferior.h (terminal_init_inferior): Add 'self' argument.
6172 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6173 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6175 2014-02-19 Tom Tromey <tromey@redhat.com>
6177 * target.h (struct target_ops)
6178 <to_can_accel_watchpoint_condition>: Add argument.
6179 (target_can_accel_watchpoint_condition): Add argument.
6180 * target.c (debug_to_can_accel_watchpoint_condition): Add
6182 (update_current_target): Update.
6183 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6188 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6190 (target_region_ok_for_hw_watchpoint): Add argument.
6191 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6192 (default_region_ok_for_hw_watchpoint): Add argument.
6193 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6194 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6196 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6198 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6200 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6202 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6204 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6206 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6207 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6209 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6210 Add 'self' argument.
6212 2014-02-19 Tom Tromey <tromey@redhat.com>
6214 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6216 (target_insert_watchpoint): Add argument.
6217 * target.c (debug_to_insert_watchpoint): Add argument.
6218 (update_current_target): Update.
6219 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6220 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6221 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6222 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6223 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6224 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6226 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6227 (procfs_insert_hw_watchpoint): Add 'self' argument.
6228 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6230 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6232 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6234 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6235 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6237 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6240 2014-02-19 Tom Tromey <tromey@redhat.com>
6242 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6244 (target_remove_watchpoint): Add argument.
6245 * target.c (debug_to_remove_watchpoint): Add argument.
6246 (update_current_target): Update.
6247 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6248 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6249 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6250 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6251 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6252 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6254 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6255 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6257 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6259 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6261 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6262 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6264 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6271 (target_remove_hw_breakpoint): Add argument.
6272 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6273 (update_current_target): Update.
6274 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6275 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6277 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6278 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6280 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6287 (target_insert_hw_breakpoint): Add argument.
6288 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6289 (update_current_target): Update.
6290 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6291 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6293 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6294 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6295 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6297 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6300 2014-02-19 Tom Tromey <tromey@redhat.com>
6302 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6304 (target_can_use_hardware_watchpoint): Add argument.
6305 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6306 (update_current_target): Update.
6307 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6309 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6311 * remote.c (remote_check_watch_resources): Add 'self' argument.
6312 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6313 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6315 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6316 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6318 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6320 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6322 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6324 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6326 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6328 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6329 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6331 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6334 2014-02-19 Tom Tromey <tromey@redhat.com>
6336 * target.h (struct target_ops) <to_post_attach>: Add argument.
6337 (target_post_attach): Add argument.
6338 * target.c (debug_to_post_attach): Add argument.
6339 (update_current_target): Update.
6340 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6341 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6342 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6343 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6344 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * windows-nat.c (windows_close): Add 'self' argument.
6349 * tracepoint.c (tfile_close): Add 'self' argument.
6350 * target.h (struct target_ops) <to_close>: Add argument.
6351 * target.c (target_close): Add argument.
6352 (update_current_target): Update.
6353 * remote.c (remote_close): Add 'self' argument.
6354 * remote-sim.c (gdbsim_close): Add 'self' argument.
6355 * remote-mips.c (mips_close): Add 'self' argument.
6356 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6357 * record-full.c (record_full_close): Add 'self' argument.
6358 * record-btrace.c (record_btrace_close): Add 'self' argument.
6359 * monitor.h (monitor_close): Add 'self' argument.
6360 * monitor.c (monitor_close): Add 'self' argument.
6361 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6362 * linux-nat.c (linux_nat_close): Add argument.
6363 * go32-nat.c (go32_close): Add 'self' argument.
6364 * exec.c (exec_close_1): Add 'self' argument.
6365 * ctf.c (ctf_close): Add 'self' argument.
6366 * corelow.c (core_close): Add 'self' argument.
6367 (core_close_cleanup): Update.
6368 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6369 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6371 2014-02-19 Tom Tromey <tromey@redhat.com>
6373 * remote.c (remote_load): New function.
6374 (init_remote_ops): Use it.
6376 2014-02-19 Tom Tromey <tromey@redhat.com>
6378 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6380 * common/linux-btrace.h (linux_supports_btrace): Update.
6381 * remote.c (remote_supports_btrace): Add "self" argument.
6382 * target-delegates.c: Rebuild.
6383 * target.c (target_supports_btrace): Remove.
6384 * target.h (struct target_ops) <to_supports_btrace>: Add
6385 target_ops argument.
6386 (target_supports_btrace): New define.
6388 2014-02-19 Tom Tromey <tromey@redhat.com>
6390 * record-full.c (record_full_beneath_to_resume_ops)
6391 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6392 (record_full_beneath_to_wait)
6393 (record_full_beneath_to_store_registers_ops)
6394 (record_full_beneath_to_store_registers)
6395 (record_full_beneath_to_xfer_partial_ops)
6396 (record_full_beneath_to_xfer_partial)
6397 (record_full_beneath_to_insert_breakpoint_ops)
6398 (record_full_beneath_to_insert_breakpoint)
6399 (record_full_beneath_to_remove_breakpoint_ops)
6400 (record_full_beneath_to_remove_breakpoint)
6401 (record_full_beneath_to_stopped_by_watchpoint)
6402 (record_full_beneath_to_stopped_data_address)
6403 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6404 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6405 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6406 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6407 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6408 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6409 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6410 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6411 (record_full_resume, record_full_wait_1)
6412 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6413 (record_full_store_registers, record_full_xfer_partial)
6414 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6415 (record_full_async, record_full_core_xfer_partial): Use target
6417 * target-delegates.c: Rebuild.
6418 * target.c (current_xfer_partial): Remove.
6419 (update_current_target): Do not INHERIT or de_fault
6420 to_insert_breakpoint, to_remove_breakpoint,
6421 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6422 to_is_async_p, to_async. Do not set to_xfer_partial field.
6423 (default_xfer_partial): Simplify.
6424 (current_xfer_partial): Remove.
6425 (target_wait, target_resume): Simplify.
6426 (find_default_can_async_p, find_default_is_async_p): Update.
6427 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6428 to_xfer_partial, to_stopped_by_watchpoint,
6429 to_stopped_data_address.
6430 (target_store_registers): Simplify.
6431 (forward_target_remove_breakpoint)
6432 (forward_target_insert_breakpoint): Remove.
6433 (target_remove_breakpoint, target_insert_breakpoint)
6434 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6435 * target.h (struct target_ops) <to_resume, to_wait,
6436 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6437 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6438 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6440 (forward_target_remove_breakpoint)
6441 (forward_target_insert_breakpoint): Remove.
6442 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6444 (record_btrace_insert_breakpoint): Delegate directly.
6446 2014-02-19 Tom Tromey <tromey@redhat.com>
6449 * target-delegates.c: New file.
6450 * target.c: Include target-delegates.c.
6451 (init_dummy_target): Call install_dummy_methods.
6452 (complete_target_initialization): Call install_delegators.
6453 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6454 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6455 * make-target-delegates: New file.
6457 2014-02-19 Tom Tromey <tromey@redhat.com>
6459 * record.c (find_record_target): Use find_target_at.
6460 * target.c (find_target_at): New function.
6461 * target.h (find_target_at): Declare.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6467 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6469 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6470 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6472 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6474 * linux-nat.c (save_sigtrap): Update.
6475 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6476 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6477 (linux_nat_close): Update.
6478 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6480 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6482 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6483 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6484 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6485 (tmp_to_async): Add 'ops' argument.
6486 (record_full_stopped_by_watchpoint, record_full_async)
6487 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6489 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6490 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6491 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6492 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6493 (remote_is_async_p, remote_async): Add 'ops' argument.
6494 (remote_stopped_data_address): Update.
6495 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6496 * target.c (update_current_target)
6497 (find_default_can_async_p, find_default_is_async_p): Update.
6498 (init_dummy_target): Update.
6499 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6500 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6501 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6502 (target_can_async_p, target_is_async_p, target_async)
6503 (target_stopped_by_watchpoint): Update.
6505 2014-02-19 Yao Qi <yao@codesourcery.com>
6508 * gdbarch.sh: Remove startup_gdbarch.
6509 * gdbarch.c: Regenerated.
6510 * gdbarch.h: Likewise.
6512 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6514 * rl78-tdep.c (rl78_g10_register_name): New function.
6515 (rl78_return_value): Add g10 support.
6516 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6519 2014-02-17 Doug Evans <xdje42@gmail.com>
6521 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6522 (SUBDIR_GUILE_SRCS): Ditto.
6523 (scm-gsmob.o): Ditto.
6525 2014-02-17 Yao Qi <yao@codesourcery.com>
6527 * gnu-nat.c (ILL_RPC): Declare defined function.
6529 2014-02-17 Yao Qi <yao@codesourcery.com>
6531 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6532 mach_msg_type_number_t.
6533 (gnu_write_inferior): Likewise.
6535 2014-02-17 Yao Qi <yao@codesourcery.com>
6537 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6539 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6540 (inf_validate_procs, inf_signal): Likewise.
6541 (S_exception_raise_request): Likewise.
6542 (do_mach_notify_dead_name): Likewise.
6543 (steal_exc_port): Likewise.
6544 (gnu_read_inferior): Change 'copy_count''s type to
6545 mach_msg_type_number_t.
6546 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6549 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6551 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6552 flag. Adjust all users; in particular...
6553 (gnu_wait): ..., don't decrement its value in here...
6554 (gnu_create_inferior): ..., and instead set the flag in here,
6555 around the startup_inferior call, and call that one with
6556 START_INFERIOR_TRAPS_EXPECTED.
6558 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6559 (ILL_RPC): ... new macro.
6560 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6561 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6562 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6563 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6564 functions with ILL_RPC macro.
6565 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6566 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6567 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6568 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6569 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6570 (S_proc_getlogin_reply, S_proc_getsid_reply)
6571 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6572 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6573 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6574 (S_proc_getnports_reply, S_proc_is_important_reply)
6575 (S_proc_get_code_reply): New stub functions, generated with
6578 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6579 collected the type check structures.
6581 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6583 2014-02-14 Doug Evans <dje@google.com>
6585 * target.c (target_write_partial): Fix result type.
6587 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6589 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6590 the proper offsets to access fpregset_t.
6592 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6594 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6595 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6596 * h8300-tdep.c (setmachinelist): Remove global.
6597 * hppa-tdep.c (hppa_sigtramp): Remove global.
6598 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6599 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6600 * ravenscar-thread.c (update_target_observer): Remove global.
6601 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6603 2014-02-12 Tom Tromey <tromey@redhat.com>
6605 * common/rsp-low.c: Update comments.
6606 * common/rsp-low.h: Update comments.
6608 2014-02-12 Tom Tromey <tromey@redhat.com>
6610 * common/rsp-low.c (convert_ascii_to_int): Remove.
6611 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6613 2014-02-12 Tom Tromey <tromey@redhat.com>
6615 * common/rsp-low.h (unhexify): Don't declare.
6616 * common/rsp-low.c (unhexify): Remove.
6618 2014-02-12 Tom Tromey <tromey@redhat.com>
6620 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6621 * common/rsp-low.c (convert_int_to_ascii): Remove.
6623 2014-02-12 Tom Tromey <tromey@redhat.com>
6625 * common/rsp-low.h (hexify): Don't declare.
6626 * common/rsp-low.c (hexify): Remove.
6628 2014-02-12 Tom Tromey <tromey@redhat.com>
6630 * common/rsp-low.c (hexify): Never take strlen of argument.
6632 2014-02-12 Tom Tromey <tromey@redhat.com>
6634 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6635 * remote.c (extended_remote_run, remote_rcmd)
6636 (remote_download_trace_state_variable, remote_save_trace_data)
6637 (remote_set_trace_notes): Update.
6638 * tracepoint.c (encode_source_string, tfile_write_status)
6639 (tfile_write_uploaded_tsv): Update.
6641 2014-02-12 Tom Tromey <tromey@redhat.com>
6643 * tracepoint.c: Include rsp-low.h.
6644 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6645 * remote.c: Include rsp-low.h.
6646 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6647 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6648 (remote_unescape_input): Move to common/rsp-low.c.
6649 * common/rsp-low.h: New file.
6650 * common/rsp-low.c: New file.
6651 * Makefile.in (SFILES): Add common/rsp-low.c.
6652 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6653 (COMMON_OBS): Add rsp-low.o.
6654 (rsp-low.o): New target.
6656 2014-02-12 Tom Tromey <tromey@redhat.com>
6658 * utils.h: Include print-utils.h.
6659 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6660 (int_string, core_addr_to_string, core_addr_to_string_nz)
6661 (hex_string, hex_string_custom): Don't declare.
6662 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6663 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6664 (hex_string_custom, int_string, core_addr_to_string)
6665 (core_addr_to_string_nz, host_address_to_string): Move to
6666 common/print-utils.c.
6667 * common/print-utils.h: New file.
6668 * common/print-utils.c: New file
6669 * Makefile.in (SFILES): Add common/print-utils.c.
6670 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6671 (COMMON_OBS): Add print-utils.o.
6672 (print-utils.o): New target.
6674 2014-02-12 Tom Tromey <tromey@redhat.com>
6676 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6678 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6680 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6682 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6684 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6685 if a PT_IO ptrace request returns sucessfully but indicates that 0
6686 bytes were transferred.
6688 2014-02-12 Pedro Alves <palves@redhat.com>
6689 Kevin Buettner <kevinb@redhat.com>
6691 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6692 TYPE_INSTANCE_FLAG_CODE_SPACE.
6694 2014-02-12 Pedro Alves <palves@redhat.com>
6696 * h8300-tdep.c (pseudo_from_raw_register)
6697 (raw_from_pseudo_register): New functions.
6698 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6701 2014-02-12 Pedro Alves <palves@redhat.com>
6703 * h8300-tdep.c (h8300_register_sim_regno): New function.
6704 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6705 gdbarch_register_sim_regno hook.
6707 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6709 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6711 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6713 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6715 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6717 * obsd-tdep.h (obsd_init_abi): New prototype.
6718 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6719 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6720 (obsd_init_abi): New functions.
6721 * i386obsd-tdep.c: Include "obsd-tdep.h".
6722 (i386obsd_init_abi): Call obsd_init_abi.
6723 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6724 (amd64obsd_init_abi): Call obsd_init_abi.
6725 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6726 obsd-tdep.c to gdb_target_obs.
6728 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6730 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6731 double float arguments to 16-byte in the argument slots.
6733 2014-02-11 Doug Evans <xdje42@gmail.com>
6735 * configure.ac: Don't crash if pkg-config is not found and guile
6736 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6738 * configure: Regenerate.
6740 2014-02-11 Yao Qi <yao@codesourcery.com>
6742 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6743 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6744 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6745 * gnu-nat.c (gnu_xfer_memory): Likewise.
6746 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6747 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6748 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6749 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6751 2014-02-11 Yao Qi <yao@codesourcery.com>
6753 * target.h (enum target_xfer_error): Rename to ...
6754 (enum target_xfer_status): ... it. New. All users updated.
6755 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6757 (TARGET_XFER_STATUS_ERROR_P): New macro.
6758 (target_xfer_error_to_string): Remove declaration.
6759 (target_xfer_status_to_string): Declare.
6760 (target_xfer_partial_ftype): Adjust it.
6761 (struct target_ops) <to_xfer_partial>: Return
6762 target_xfer_status. Add argument xfered_len. Update
6764 * target.c (target_xfer_error_to_string): Rename to ...
6765 (target_xfer_status_to_string): ... it. New. All callers
6767 (target_read_live_memory): Likewise. Call target_xfer_partial
6768 instead of target_read.
6769 (memory_xfer_live_readonly_partial): Return
6770 target_xfer_status. Add argument xfered_len.
6771 (raw_memory_xfer_partial): Likewise.
6772 (memory_xfer_partial_1): Likewise.
6773 (memory_xfer_partial): Likewise.
6774 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6775 properly. Update debug message.
6776 (default_xfer_partial, current_xfer_partial): Likewise.
6777 (target_write_partial): Likewise.
6778 (target_read_partial): Likewise. All callers updated.
6779 (read_whatever_is_readable): Likewise.
6780 (target_write_with_progress): Likewise.
6781 (target_read_alloc_1): Likewise.
6783 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6784 * auxv.c (procfs_xfer_auxv): Likewise.
6785 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6786 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6787 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6788 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6789 * corefile.c (read_memory): Adjust.
6790 * corelow.c (core_xfer_partial): Likewise.
6791 * ctf.c (ctf_xfer_partial): Likewise.
6792 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6794 (darwin_xfer_partial): Likewise.
6795 * exec.c (section_table_xfer_memory_partial): Likewise. All
6797 (exec_xfer_partial): Likewise.
6798 * exec.h (section_table_xfer_memory_partial): Update
6800 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6802 (gnu_xfer_partial): Likewise.
6803 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6804 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6805 (ia64_hpux_xfer_solib_got): Likewise.
6806 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6807 type of 'partial_len' to ULONGEST.
6808 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6809 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6810 (linux_nat_xfer_partial): Likewise.
6811 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6812 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6813 * monitor.c (monitor_xfer_memory): Likewise.
6814 (monitor_xfer_partial): Likewise.
6815 * procfs.c (procfs_xfer_partial): Likewise.
6816 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6817 * record-full.c (record_full_xfer_partial): Likewise.
6818 (record_full_core_xfer_partial): Likewise.
6819 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6820 (gdbsim_xfer_partial): Likewise.
6821 * remote.c (remote_write_bytes_aux): Likewise. All callers
6823 (remote_write_bytes, remote_read_bytes): Likewise. All
6825 (remote_flash_erase): Likewise. All callers updated.
6826 (remote_write_qxfer): Likewise. All callers updated.
6827 (remote_read_qxfer): Likewise. All callers updated.
6828 (remote_xfer_partial): Likewise.
6829 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6830 (rs6000_xfer_shared_libraries): Likewise.
6831 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6832 (sol_thread_xfer_partial): Likewise.
6833 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6834 (sparc_xfer_partial): Likewise.
6835 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6837 (spu_xfer_partial): Likewise.
6838 * spu-multiarch.c (spu_xfer_partial): Likewise.
6839 * tracepoint.c (tfile_xfer_partial): Likewise.
6840 * windows-nat.c (windows_xfer_memory): Likewise.
6841 (windows_xfer_shared_libraries): Likewise.
6842 (windows_xfer_partial): Likewise.
6843 * valprint.c: Replace 'target_xfer_error' with
6844 'target_xfer_status' in comments.
6846 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6848 Checked in by Joel Brobecker <brobecker@adacore.com>.
6849 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6851 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6853 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6854 function parameters.
6856 2014-02-10 Will Newton <will.newton@linaro.org>
6858 * elfread.c (elf_rel_plt_read): Look for a .got section if
6859 looking up .got.plt fails.
6860 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6861 on address passed to elf_gnu_ifunc_record_cache.
6862 (elf_gnu_ifunc_resolve_addr): Likewise.
6863 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6865 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6867 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6868 (X_RETTURN): New macro.
6869 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6871 * sparc64-tdep.c (sparc64_init_abi): Hook
6872 sparc_in_function_epilogue_p.
6874 2014-02-10 Gary Benson <gbenson@redhat.com>
6876 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6877 Rename name_matcher to symbol_matcher.
6879 2014-02-10 Gary Benson <gbenson@redhat.com>
6881 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6882 Use expand_symtabs_file_matcher_ftype and
6883 expand_symtabs_symbol_matcher_ftype.
6885 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6887 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6888 (struct ada_symbol_cache): New.
6889 (ada_free_symbol_cache): Forward declare.
6890 (struct ada_pspace_data): New.
6891 (ada_pspace_data_handle): New static global.
6892 (get_ada_pspace_data, ada_pspace_data_cleanup)
6893 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6894 (cache_space, cache): Delete, now folded inside struct
6896 (ada_get_symbol_cache): New function.
6897 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6899 (_initialize_ada_language): Remove initialization of cache_space.
6900 Move call to observer_attach_inferior_exit up, grouping it
6901 with the other observer registrations inside this function.
6902 Rename command to be more general. Add call to
6903 register_program_space_data_with_cleanup.
6905 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6907 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6908 ada_new_objfile_observer.
6909 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6910 (_initialize_tasks): Update uses of ada_new_objfile_observer
6911 and ada_tasks_normal_stop_observer.
6913 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6915 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6916 returned by the 'Length attribute to integer.
6918 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6920 * ada-lang.c (_initialize_ada_language): Initialize
6921 cache_space obstack.
6923 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6925 * ada-lang.c (HASH_SIZE): New macro.
6926 (struct cache_entry): New type.
6927 (cache_space, cache): New static globals.
6928 (ada_clear_symbol_cache, find_entry): New functions.
6929 (lookup_cached_symbol, cache_symbol): Implement.
6930 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6931 (_initialize_ada_language): Attach ada_new_objfile_observer
6932 and ada_free_objfile_observer.
6934 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6936 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6937 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6938 struct block * parameter.
6939 (ada_lookup_symbol_list_worker): Constify local variable "block".
6940 Remove cast which is no longer necessary.
6942 2014-02-10 Doug Evans <xdje42@gmail.com>
6944 Add Guile as an extension language.
6945 * NEWS: Mention Guile scripting.
6946 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6947 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6948 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6949 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6950 (CLIBS): Add GUILE_LIBS.
6951 (install-guile): New rule.
6952 (guile.o): New rule.
6953 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6954 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6955 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6956 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6957 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6958 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6959 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6960 * configure.ac: New option --with-guile.
6961 * configure: Regenerate.
6962 * config.in: Regenerate.
6963 * auto-load.c: Remove #include "python/python.h". Add #include
6964 "gdb/section-scripts.h".
6965 (source_section_scripts): Handle Guile scripts.
6966 (_initialize_auto_load): Add name of Guile objfile script to
6967 scripts-directory help text.
6968 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6969 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6970 (struct breakpoint): New member scm_bp_object.
6971 * defs.h (enum command_control_type): New value guile_control.
6972 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6974 (show_user): Update comment.
6975 (_initialize_cli_cmds): Update help text for "show user". Update help
6976 text for max-user-call-depth.
6977 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6979 (multi_line_command_p): Add guile_control.
6980 (print_command_lines): Handle guile_control.
6981 (execute_control_command, recurse_read_control_structure): Ditto.
6982 (process_next_line): Recognize "guile" commands.
6983 * disasm.c (gdb_disassemble_info): Make non-static.
6984 * disasm.h: #include "dis-asm.h".
6985 (struct gdbarch): Add forward decl.
6986 (gdb_disassemble_info): Declare.
6987 * extension.c: #include "guile/guile.h".
6988 (extension_languages): Add guile.
6989 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6990 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6991 * gdbtypes.c (get_unsigned_type_max): New function.
6992 (get_signed_type_minmax): New function.
6993 * gdbtypes.h (get_unsigned_type_max): Declare.
6994 (get_signed_type_minmax): Declare.
6995 * guile/README: New file.
6996 * guile/guile-internal.h: New file.
6997 * guile/guile.c: New file.
6998 * guile/guile.h: New file.
6999 * guile/scm-arch.c: New file.
7000 * guile/scm-auto-load.c: New file.
7001 * guile/scm-block.c: New file.
7002 * guile/scm-breakpoint.c: New file.
7003 * guile/scm-disasm.c: New file.
7004 * guile/scm-exception.c: New file.
7005 * guile/scm-frame.c: New file.
7006 * guile/scm-gsmob.c: New file.
7007 * guile/scm-iterator.c: New file.
7008 * guile/scm-lazy-string.c: New file.
7009 * guile/scm-math.c: New file.
7010 * guile/scm-objfile.c: New file.
7011 * guile/scm-ports.c: New file.
7012 * guile/scm-pretty-print.c: New file.
7013 * guile/scm-safe-call.c: New file.
7014 * guile/scm-string.c: New file.
7015 * guile/scm-symbol.c: New file.
7016 * guile/scm-symtab.c: New file.
7017 * guile/scm-type.c: New file.
7018 * guile/scm-utils.c: New file.
7019 * guile/scm-value.c: New file.
7020 * guile/lib/gdb.scm: New file.
7021 * guile/lib/gdb/boot.scm: New file.
7022 * guile/lib/gdb/experimental.scm: New file.
7023 * guile/lib/gdb/init.scm: New file.
7024 * guile/lib/gdb/iterator.scm: New file.
7025 * guile/lib/gdb/printing.scm: New file.
7026 * guile/lib/gdb/types.scm: New file.
7027 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7028 (VPATH): Add $(GUILE_SRCDIR).
7029 (GUILE_DIR): New variable.
7030 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7031 (all): Add stamp-guile dependency.
7032 (stamp-guile): New rule.
7033 (clean-guile, install-guile, uninstall-guile): New rules.
7034 (install-only): Add install-guile dependency.
7035 (uninstall): Add uninstall-guile dependency.
7036 (clean): Add clean-guile dependency.
7038 2014-02-09 Doug Evans <xdje42@gmail.com>
7040 Revert this patch (which I approved, mea culpa).
7042 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7044 * Makefile.in (all-lib): Remove.
7045 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7047 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7049 Fix Python stack corruption.
7050 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7053 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7055 * Makefile.in (all-lib): Remove.
7056 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7058 2014-02-07 Doug Evans <dje@google.com>
7060 * extension-priv.h (extension_language_script_ops): Add comment.
7061 (extension_language_ops): Add comment.
7062 (active_ext_lang_state): Fix typo in comment.
7064 2014-02-07 Pedro Alves <palves@redhat.com>
7066 PR breakpoints/16292
7067 * infrun.c (handle_signal_stop) <signal arrives while stepping
7068 over a breakpoint>: Switch back to the stepping thread.
7070 2014-02-07 Yao Qi <yao@codesourcery.com>
7072 * target.c (target_xfer_partial): Return zero if LEN is zero.
7074 2014-02-07 Yao Qi <yao@codesourcery.com>
7076 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7077 (ld_so_xfer_auxv): Likewise.
7078 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7079 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7080 * corelow.c (core_xfer_partial): Likewise.
7081 * ctf.c (ctf_xfer_partial): Likewise.
7082 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7083 (darwin_xfer_partial): Likewise.
7084 * exec.c (exec_xfer_partial): Likewise.
7085 * gnu-nat.c (gnu_xfer_partial): Likewise.
7086 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7087 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7088 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7089 * linux-nat.c (linux_xfer_siginfo): Likewise.
7090 (linux_proc_xfer_spu): Likewise.
7091 * procfs.c (procfs_xfer_partial): Likewise.
7092 * record-full.c (record_full_xfer_partial): Likewise.
7093 (record_full_core_xfer_partial): Likewise.
7094 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7095 * remote.c (remote_write_qxfer): Likewise.
7096 (remote_write_qxfer, remote_read_qxfer): Likewise.
7097 (remote_xfer_partial): Likewise.
7098 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7099 (rs6000_xfer_shared_libraries): Likewise.
7100 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7101 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7102 (spu_xfer_partial): Likewise.
7103 * target.c (memory_xfer_partial_1): Likewise.
7104 * tracepoint.c (tfile_xfer_partial): Likewise.
7105 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7106 (windows_xfer_partial): Likewise.
7108 2014-02-07 Yao Qi <yao@codesourcery.com>
7110 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7112 (core_xfer_shared_libraries_aix): Likewise.
7113 * gdbarch.c, gdbarch.h: Regenerated.
7114 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7115 ULONGEST. Change 'len_avail' type to ULONGEST.
7116 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7117 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7119 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7121 2014-02-07 Yao Qi <yao@codesourcery.com>
7123 * corefile.c (memory_error): Get 'exception' from ERR and pass
7124 'exception' to throw_error.
7126 2014-02-06 Doug Evans <xdje42@gmail.com>
7128 * configure.ac (libpython checking): Remove all but python.o from
7129 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7130 * configure: Regenerate.
7132 * Makefile.in (SFILES): Add extension.c.
7133 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7134 (COMMON_OBS): Add extension.o.
7135 * extension.h: New file.
7136 * extension-priv.h: New file.
7137 * extension.c: New file.
7139 * python/python-internal.h: #include "extension.h".
7140 (gdbpy_auto_load_enabled): Declare.
7141 (gdbpy_apply_val_pretty_printer): Declare.
7142 (gdbpy_apply_frame_filter): Declare.
7143 (gdbpy_preserve_values): Declare.
7144 (gdbpy_breakpoint_cond_says_stop): Declare.
7145 (gdbpy_breakpoint_has_cond): Declare.
7146 (void source_python_script_for_objfile): Delete.
7147 * python/python.c: #include "extension-priv.h".
7148 Delete inclusion of "observer.h".
7149 (extension_language_python): Moved here and renamed from
7150 script_language_python in py-auto-load.c.
7151 Redefined to be of type extension_language_defn.
7152 (python_extension_script_ops): New global.
7153 (python_extension_ops): New global.
7154 (struct python_env): New member previous_active.
7155 (restore_python_env): Call restore_active_ext_lang.
7156 (ensure_python_env): Call set_active_ext_lang.
7157 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7159 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7161 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7163 (gdbpy_eval_from_control_command): Renamed from
7164 eval_python_from_control_command, made static. New arg extlang.
7165 (gdbpy_source_script) Renamed from source_python_script, made static.
7167 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7168 result to int. New arg extlang.
7169 (gdbpy_source_objfile_script): Renamed from
7170 source_python_script_for_objfile, made static. New arg extlang.
7171 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7172 static. New args extlang, extlang_printers. Change result type to
7174 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7175 static. New arg extlang. Rename arg printers to extlang_printers
7176 and change type to ext_lang_type_printers *.
7177 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7178 static. Replace argument arg with extlang, extlang_printers.
7179 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7180 (!HAVE_PYTHON, source_python_script): Delete.
7181 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7182 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7183 (!HAVE_PYTHON, start_type_printers): Delete.
7184 (!HAVE_PYTHON, apply_type_printers): Delete.
7185 (!HAVE_PYTHON, free_type_printers): Delete.
7186 (_initialize_python): Delete call to observer_attach_before_prompt.
7187 (finalize_python): Set/restore active extension language.
7188 (gdbpy_finish_initialization) Renamed from
7189 finish_python_initialization, made static. New arg extlang.
7190 (gdbpy_initialized): New function.
7191 * python/python.h: #include "extension.h". Delete #include
7192 "value.h", "mi/mi-cmds.h".
7193 (extension_language_python): Declare.
7194 (GDBPY_AUTO_FILE_NAME): Delete.
7195 (enum py_bt_status): Moved to extension.h and renamed to
7197 (enum frame_filter_flags): Moved to extension.h.
7198 (enum py_frame_args): Moved to extension.h and renamed to
7199 ext_lang_frame_args.
7200 (finish_python_initialization): Delete.
7201 (eval_python_from_control_command): Delete.
7202 (source_python_script): Delete.
7203 (apply_val_pretty_printer): Delete.
7204 (apply_frame_filter): Delete.
7205 (preserve_python_values): Delete.
7206 (gdbpy_script_language_defn): Delete.
7207 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7208 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7210 * auto-load.c: #include "extension.h".
7211 (GDB_AUTO_FILE_NAME): Delete.
7212 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7213 (script_language_gdb): Delete, moved to extension.c and renamed to
7214 extension_language_gdb.
7215 (source_gdb_script_for_objfile): Delete.
7216 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7217 (loaded_script): Change type of language member to
7218 struct extension_language_defn *.
7219 (init_loaded_scripts_info): Initialize
7220 unsupported_script_warning_printed.
7221 (maybe_add_script): Make static. Change type of language arg to
7222 struct extension_language_defn *.
7223 (clear_section_scripts): Reset unsupported_script_warning_printed.
7224 (auto_load_objfile_script_1): Rewrite to use extension language API.
7225 (auto_load_objfile_script): Make public. Remove support-compiled-in
7226 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7227 (source_section_scripts): Rewrite to use extension language API.
7228 (load_auto_scripts_for_objfile): Rewrite to use
7229 auto_load_scripts_for_objfile.
7230 (collect_matching_scripts_data): Change type of language member to
7231 struct extension_language_defn *.
7232 (auto_load_info_scripts): Change type of language arg to
7233 struct extension_language_defn *.
7234 (unsupported_script_warning_print): New function.
7235 (script_not_found_warning_print): Make static.
7236 (_initialize_auto_load): Rewrite construction of scripts-directory
7238 * auto-load.h (struct objfile): Add forward decl.
7239 (struct script_language): Delete.
7240 (struct auto_load_pspace_info): Add forward decl.
7241 (struct extension_language_defn): Add forward decl.
7242 (maybe_add_script): Delete.
7243 (auto_load_objfile_script): Declare.
7244 (script_not_found_warning_print): Delete.
7245 (auto_load_info_scripts): Update prototype.
7246 (auto_load_gdb_scripts_enabled): Declare.
7247 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7248 auto_load_python_scripts_enabled and made public.
7249 (script_language_python): Delete, moved to python.c.
7250 (gdbpy_script_language_defn): Delete.
7251 (info_auto_load_python_scripts): Update to use
7252 extension_language_python.
7254 * breakpoint.c (condition_command): Replace call to
7255 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7256 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7257 with call to breakpoint_ext_lang_cond_says_stop.
7258 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7259 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7260 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7261 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7263 (local_setattro): Print name of extension language with existing
7266 * valprint.c (val_print, value_print): Update to call
7267 apply_ext_lang_val_pretty_printer.
7268 * cp-valprint.c (cp_print_value): Update call to
7269 apply_ext_lang_val_pretty_printer.
7270 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7271 (gdbpy_apply_val_pretty_printer): Renamed from
7272 apply_val_pretty_printer. New arg extlang.
7273 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7275 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7276 extension language API.
7277 * cli/cli-script.c (execute_control_command): Update to call
7278 eval_ext_lang_from_control_command.
7280 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7281 enum ext_lang_bt_status values. Update call to
7282 apply_ext_lang_frame_filter.
7283 (mi_cmd_stack_list_locals): Ditto.
7284 (mi_cmd_stack_list_args): Ditto.
7285 (mi_cmd_stack_list_variables): Ditto.
7286 * mi/mi-main.c: Delete #include "python/python-internal.h".
7287 Add #include "extension.h".
7288 (mi_cmd_list_features): Replace reference to python internal variable
7289 gdb_python_initialized with call to ext_lang_initialized_p.
7291 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7292 Update to use enum ext_lang_frame_args. Update to call
7293 apply_ext_lang_frame_filter.
7294 * python/py-framefilter.c (extract_sym): Update to use enum
7296 (extract_value, py_print_type, py_print_value): Ditto.
7297 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7298 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7299 (py_print_frame): Ditto.
7300 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7301 New arg extlang. Update to use enum ext_lang_bt_status.
7303 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7304 finish_python_initialization. Replace with call to
7305 finish_ext_lang_initialization.
7307 * typeprint.c (do_free_global_table): Update to call
7308 free_ext_lang_type_printers.
7309 (create_global_typedef_table): Update to call
7310 start_ext_lang_type_printers.
7311 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7312 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7313 (type_print_options): Change type of global_printers from "void *"
7314 to "struct ext_lang_type_printers *".
7316 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7317 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7318 (gdbpy_preserve_values): Renamed from preserve_python_values.
7320 (!HAVE_PYTHON, preserve_python_values): Delete.
7322 * utils.c (quit_flag): Delete, moved to extension.c.
7323 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7326 * eval.c: Delete #include "python/python.h".
7327 * main.c: Delete #include "python/python.h".
7329 * defs.h: Update comment.
7331 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7335 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7337 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7340 2014-02-05 Yao Qi <yao@codesourcery.com>
7342 * remote.c (remote_pass_signals): Remove local 'buf' and use
7344 (remote_program_signals): Likewise.
7346 2014-02-05 Yao Qi <yao@codesourcery.com>
7348 * ctf.c: Include "inferior.h" and "gdbthread.h".
7349 (CTF_PID): A new macro.
7350 (ctf_open): Call inferior_appeared and add_thread_silent.
7351 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7352 (ctf_thread_alive): New function.
7353 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7355 2014-02-05 Yao Qi <yao@codesourcery.com>
7359 2013-05-24 Yao Qi <yao@codesourcery.com>
7361 * tracepoint.c (TFILE_PID): Remove.
7362 (tfile_open): Don't add thread and inferior.
7363 (tfile_close): Don't set 'inferior_ptid'. Don't call
7364 exit_inferior_silent.
7365 (tfile_thread_alive): Remove.
7366 (init_tfile_ops): Don't set field 'to_thread_alive' of
7369 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7371 * remote.c (remote_start_remote): Call remote_check_symbols even
7372 if only symbol-file (not file) has been given.
7374 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7376 * gdbarch.sh (skip_entrypoint): New callback.
7377 * gdbarch.c, gdbarch.h: Regenerate.
7378 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7379 * infrun.c (fill_in_stop_func): Likewise.
7380 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7381 (ppc_elfv2_elf_make_msymbol_special): New function.
7382 (ppc_elfv2_skip_entrypoint): Likewise.
7383 (ppc_linux_init_abi): Install them for ELFv2.
7385 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7387 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7388 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7389 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7390 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7391 structures returned in GPRs.
7393 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7395 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7396 offset to the stack parameter list for the ELFv2 ABI.
7398 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7400 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7401 set_gdbarch_convert_from_func_ptr_addr and
7402 set_gdbarch_elf_make_msymbol_special for ELFv1.
7403 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7404 function descriptors on ELFv1.
7405 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7406 set up r12 at function entry.
7408 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7410 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7411 (struct gdbarch_tdep): New member elf_abi.
7413 * rs6000-tdep.c: Include "elf/ppc64.h".
7414 (rs6000_gdbarch_init): Detect ELF ABI version.
7416 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7418 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7419 within a register pair holding a DFP 128-bit value on little-endian.
7420 (ppc64_sysv_abi_return_value_base): Likewise.
7421 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7422 (dfp_pseudo_register_write): Likewise.
7424 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7426 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7427 offset on little-endian when passing _Decimal32.
7428 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7430 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7432 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7433 of the overlapped FP register within the VSX register on little-
7435 (efpr_pseudo_register_write): Likewise.
7437 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7439 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7440 offset on little-endian when passing small structures.
7442 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7444 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7445 (struct ppc64_sysv_argpos): New data structure.
7446 (ppc64_sysv_abi_push_float): Remove.
7447 (ppc64_sysv_abi_push_val): New function.
7448 (ppc64_sysv_abi_push_integer): Likewise.
7449 (ppc64_sysv_abi_push_freg): Likewise.
7450 (ppc64_sysv_abi_push_vreg): Likewise.
7451 (ppc64_sysv_abi_push_param): Likewise.
7452 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7453 (ppc64_sysv_abi_return_value_base): New function.
7454 (ppc64_sysv_abi_return_value): Refactor to use it.
7456 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7458 * NEWS: Document new target powerpc64le-*-linux*.
7460 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7462 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7463 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7465 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7466 register set used in ELF core dumps. Add floating-point register set.
7468 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7470 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7471 dwarf2_to_gdb[] table using symbolic constants. Adjust
7472 penultimate entry from number representing the PC register
7473 to symbolic constant representing the MDR register. Add
7474 constant for the PC register to the end of the table.
7476 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7478 * bsd-kvm.c: Include <sys/param.h>
7480 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7482 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7484 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7486 * ada-lang.h (clear_ada_sym_cache): Delete.
7488 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7490 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7492 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7494 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7495 the sigreturn register save area only if the syscall is
7498 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7500 * valops.c (value_slice): Minor reformatting.
7502 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7504 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7506 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7508 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7510 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7511 (ada_ignore_descriptive_types_p): New static global.
7512 (find_parallel_type_by_descriptive_type): Return immediately
7513 if ada_ignore_descriptive_types_p is set.
7514 (_initialize_ada_language): Register new commands "maintenance
7515 set ada", "maintenance show ada", "maintenance set ada
7516 ignore-descriptive-types" and "maintenance show ada
7517 ignore-descriptive-types".
7518 * NEWS: Add entry for new "maint ada set/show
7519 ignore-descriptive-types" commands.
7521 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7523 * record-btrace.c (record_btrace_close): Call btrace_teardown
7526 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7528 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7531 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7533 * ada-typeprint (type_is_full_subrange_of_target_type):
7535 (print_range): Add parameter bounds_prefered_p. If not set,
7536 try printing range types using the name of their base type.
7537 (print_range_type): Add parameter bounds_prefered_p.
7538 Use it in call to print_range.
7539 (print_array_type, ada_print_type): Update calls to print_range
7540 and print_range_type.
7542 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7544 * ada-typeprint.c (print_array_type, print_choices, print_range)
7545 (print_range_bound, print_dynamic_range_bound, print_range_type):
7548 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7550 * ada-typeprint.c (print_range): Add missing empty line
7551 after local declaration.
7553 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7555 * ada-valprint.c (print_optional_low_bound): Get index_type's
7556 target type for as long as it is a TYPE_CODE_RANGE.
7558 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7560 * procfs.c (procfs_make_note_section): Remove assertion and
7563 2014-01-24 Yao Qi <yao@codesourcery.com>
7565 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7566 * corelow.c (get_core_siginfo): Likewise.
7568 2014-01-24 Yao Qi <yao@codesourcery.com>
7570 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7571 ULONGEST. Don't check 'len' is negative.
7572 (remote_write_bytes): Change type of 'len' to ULONGEST.
7574 2014-01-23 Tom Tromey <tromey@redhat.com>
7577 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7578 Handle exception from frame.block.
7579 (FrameVars.fetch_frame_locals): Likewise.
7581 2014-01-23 Tom Tromey <tromey@redhat.com>
7584 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7585 on a NULL pointer. Move "goto error" to correct place.
7587 2014-01-23 Tom Tromey <tromey@redhat.com>
7590 * python/py-framefilter.c (apply_frame_filter): Call
7591 ensure_python_env after computing gdbarch.
7593 2014-01-23 Yao Qi <yao@codesourcery.com>
7595 * target.c (raw_memory_xfer_partial): Change argument type
7596 from void * to gdb_byte *.
7597 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7599 2014-01-22 Doug Evans <dje@google.com>
7601 New gdbserver option --debug-format=timestamp.
7604 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7606 * syscalls/s390x-linux.xml: New file.
7607 * syscalls/s390-linux.xml: New file.
7608 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7609 (XML_SYSCALL_FILENAME_S390X): Likewise.
7610 (op_svc): New enum value for SVC opcode.
7611 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7612 (s390_linux_get_syscall_number): New function.
7613 (s390_gdbarch_init): Register '*get_syscall_number' and the
7614 syscall xml file name.
7615 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7616 "s390-linux.xml" and "s390x-linux.xml".
7617 * NEWS: Announce new feature.
7619 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7621 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7623 2014-01-22 Pedro Alves <palves@redhat.com>
7625 * xtensa-config.c: Include defs.h.
7627 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7629 * common/common-utils.h: Add "ARI:" comment beside __func__
7632 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7634 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7635 documentation a bit.
7637 2014-01-21 Roland McGrath <mcgrathr@google.com>
7639 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7640 * configure: Regenerate.
7641 * aclocal.m4: Regenerate.
7642 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7643 New substituted variables.
7644 (install-strip): New target.
7645 (INSTALL_SCRIPT): New substituted variable.
7646 (FLAGS_TO_PASS): Add it.
7647 (install-only): Use $(INSTALL_SCRIPT) rather than
7648 $(INSTALL_PROGRAM) for gcore.
7650 2014-01-20 Tom Tromey <tromey@redhat.com>
7652 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7655 2014-01-20 Tom Tromey <tromey@redhat.com>
7657 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7658 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7659 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7660 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7661 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7662 (struct cmd_list_element) <flags>: Remove.
7663 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7664 doc_allocated>: New fields.
7665 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7667 * maint.c (maintenance_do_deprecate): Update.
7668 * top.c (execute_command): Update.
7670 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7672 * xtensa-linux-nat.c: Include asm/ptrace.h.
7674 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7676 * Makefile.in (SFILES): Add d-support.c.
7677 (COMMON_OBS): Add d-support.o.
7678 * d-lang.h (d_parse_symbol): Add comment, now defined in
7680 * d-lang.c (parse_call_convention)
7681 (parse_attributes, parse_function_types)
7682 (parse_function_args, parse_type, parse_identifier)
7683 (call_convention_p, d_parse_symbol): Move functions to ...
7684 * d-support.c: ... New file.
7686 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7688 * d-lang.h (d_parse_symbol): Add declaration.
7689 * d-lang.c (extract_identifiers)
7690 (extract_type_info): Remove functions.
7691 (parse_call_convention, parse_attributes)
7692 (parse_function_types, parse_function_args)
7693 (parse_type, parse_identifier, call_convention_p)
7694 (d_parse_symbol): New functions.
7695 (d_demangle): Use d_parse_symbol to demangle D symbols.
7697 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7699 * d-lang.h (struct builtin_d_type): New data type.
7700 (builtin_d_type): Add declaration.
7701 * d-lang.c (d_language_arch_info, build_d_types)
7702 (builtin_d_type): New functions.
7703 (enum d_primitive_types): New data type.
7704 (d_language_defn): Change c_language_arch_info to
7705 d_language_arch_info.
7706 (d_type_data): New static variable.
7707 (_initialize_d_language): Initialize d_type_data.
7709 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7711 * d-lang.h (d_main_name): Add declaration.
7712 * d-lang.c (d_main_name): New function.
7713 * symtab.c (find_main_name): Add call to d_main_name.
7715 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7717 * d-lang.c (d_language_defn): Change macro_expansion_c to
7720 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7722 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7724 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7726 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7727 gdb_exception" declaration.
7728 * remote.c (getpkt_or_notif_sane): Likewise.
7730 2014-01-17 Doug Evans <dje@google.com>
7732 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7733 function, contents of dirnames_to_char_ptr_vec_append moved here.
7734 (delim_string_to_char_ptr_vec): New function.
7735 (dirnames_to_char_ptr_vec_append): Rewrite.
7736 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7738 2014-01-17 Doug Evans <dje@google.com>
7740 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7742 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7743 #include "common-utils.h".
7744 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7745 * common/vec.h (VEC_ASSERT_PASS): Update.
7746 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7747 (MACH_CHECK_ERROR): Update.
7749 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7751 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7753 * gdbarch.h: Regenerate.
7755 2014-01-16 Tom Tromey <tromey@redhat.com>
7757 * value.c (struct value) <regnum>: Move earlier.
7759 2014-01-16 Tom Tromey <tromey@redhat.com>
7761 * remote.c (extended_remote_create_inferior): Rename from
7762 extended_remote_create_inferior_1. Add "ops" argument. Remove
7765 2014-01-16 Pedro Alves <palves@redhat.com>
7767 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7768 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7771 2014-01-16 Doug Evans <dje@google.com>
7773 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7777 * btrace.h (btrace_thread_flag): New.
7778 (struct btrace_thread_info) <flags>: New.
7779 * record-btrace.c (record_btrace_resume_thread)
7780 (record_btrace_find_thread_to_move, btrace_step_no_history)
7781 (btrace_step_stopped, record_btrace_start_replaying)
7782 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7783 (record_btrace_find_resume_thread): New.
7784 (record_btrace_resume, record_btrace_wait): Extend.
7785 (record_btrace_can_execute_reverse): New.
7786 (record_btrace_open): Fail in non-stop mode.
7787 (record_btrace_set_replay): Split into this, ...
7788 (record_btrace_stop_replaying): ... this, ...
7789 (record_btrace_clear_histories): ... and this.
7790 (init_record_btrace_ops): Init to_can_execute_reverse.
7791 * NEWS: Announce it.
7793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7795 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7796 (forward_target_decr_pc_after_break)
7797 (target_decr_pc_after_break): New.
7798 * target.c (forward_target_decr_pc_after_break)
7799 (target_decr_pc_after_break): New.
7800 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7801 instead of gdbarch_decr_pc_after_break.
7802 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7803 instead of gdbarch_decr_pc_after_break.
7804 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7805 instead of gdbarch_decr_pc_after_break.
7806 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7807 instead of gdbarch_decr_pc_after_break.
7808 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7809 instead of gdbarch_decr_pc_after_break.
7810 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7811 instead of gdbarch_decr_pc_after_break.
7813 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7815 * btrace.c: Include regcache.h.
7816 (btrace_add_pc): New.
7817 (btrace_enable): Call btrace_add_pc.
7818 (btrace_is_empty): New.
7819 * btrace.h (btrace_is_empty): New.
7820 * record-btrace.c (require_btrace, record_btrace_info): Call
7823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7825 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7826 Support delta reads.
7827 (linux_disable_btrace): Change return type.
7828 * common/linux-btrace.h (linux_read_btrace): Change parameters
7829 and return type to allow error reporting. Update users.
7830 (linux_disable_btrace): Change return type. Update users.
7831 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7833 (btrace_error): New.
7834 (btrace_block) <begin>: Comment on BEGIN == 0.
7835 * btrace.c (btrace_compute_ftrace): Start from the end of
7837 (btrace_stitch_trace, btrace_clear_history): New.
7838 (btrace_fetch): Read delta trace, return if replaying.
7839 (btrace_clear): Move clear history code to btrace_clear_history.
7840 (parse_xml_btrace): Throw an error if parsing failed.
7841 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7842 and return type to allow error reporting.
7843 (target_read_btrace): Change parameters and return type to allow
7845 * target.c (target_read_btrace): Update.
7846 * remote.c (remote_read_btrace): Support delta reads. Pass
7848 * NEWS: Announce it.
7850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7852 * record.h (record_btrace_frame_unwind)
7853 (record_btrace_tailcall_frame_unwind): New declarations.
7854 * dwarf2-frame: Include record.h
7855 (dwarf2_frame_cfa): Throw an error for btrace frames.
7856 * record-btrace.c: Include hashtab.h.
7857 (btrace_get_bfun_name): New.
7858 (btrace_call_history): Call btrace_get_bfun_name.
7859 (struct btrace_frame_cache): New.
7861 (bfcache_hash, bfcache_eq, bfcache_new): New.
7862 (btrace_get_frame_function): New.
7863 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7864 (record_btrace_frame_this_id): Compute own id.
7865 (record_btrace_frame_prev_register): Provide PC, throw_error
7866 for all other registers.
7867 (record_btrace_frame_sniffer): Detect btrace frames.
7868 (record_btrace_tailcall_frame_sniffer): New.
7869 (record_btrace_frame_dealloc_cache): New.
7870 (record_btrace_frame_unwind): Add new functions.
7871 (record_btrace_tailcall_frame_unwind): New.
7872 (_initialize_record_btrace): Allocate cache.
7873 * btrace.c (btrace_clear): Call reinit_frame_cache.
7874 * NEWS: Announce it.
7876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7878 * record-btrace.c (record_btrace_set_replay)
7879 (record_btrace_goto_begin, record_btrace_goto_end)
7880 (record_btrace_goto): New.
7881 (init_record_btrace_ops): Initialize them.
7882 * NEWS: Announce it.
7884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7886 * record-btrace.c (record_btrace_find_new_threads)
7887 (record_btrace_thread_alive): New.
7888 (init_record_btrace_ops): Initialize to_find_new_threads and
7891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7893 * record-btrace.c (record_btrace_resume): New.
7894 (record_btrace_wait): New.
7895 (init_record_btrace_ops): Initialize to_wait and to_resume.
7897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7899 * record-btrace.c (record_btrace_xfer_partial)
7900 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7901 (record_btrace_allow_memory_access): New.
7902 (init_record_btrace_ops): Initialize new methods.
7903 * target.c (raw_memory_xfer_partial): Bail out if target reports
7904 that this memory is not available.
7906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7908 * target.h (target_ops) <to_insert_breakpoint>
7909 <to_remove_breakpoint>: Add target_ops parameter.
7910 (forward_target_insert_breakpoint): New.
7911 (forward_target_remove_breakpoint): New.
7912 (memory_remove_breakpoint, memory_insert_breakpoint):
7913 Add target_ops parameter.
7914 * target.c (target_insert_breakpoint): Split into this and ...
7915 (forward_target_insert_breakpoint): ... this.
7916 (target_remove_breakpoint): Split into this and ...
7917 (forward_target_remove_breakpoint): ... this.
7918 (debug_to_insert_breakpoint): Add target_ops parameter.
7919 Call forward_target_insert_breakpoint.
7920 (debug_to_remove_breakpoint): Add target_ops parameter.
7921 Call forward_target_remove_breakpoint.
7922 (update_current_target): Do not inherit or default to_insert_breakpoint
7923 and to_remove_breakpoint.
7924 * corelow.c (ignore): Add target_ops parameter.
7925 * exec.c (ignore): Add target_ops parameter.
7926 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7927 Add target_ops parameter.
7928 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7929 Add target_ops parameter.
7930 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7931 Add target_ops parameter.
7932 * record-full.c (record_full_beneath_to_insert_breakpoint)
7933 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7934 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7935 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7936 (record_full_core_remove_breakpoint): Add target_ops parameter.
7938 (record_full_beneath_to_insert_breakpoint_ops)
7939 (record_full_beneath_to_remove_breakpoint_ops)
7940 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7941 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7942 tmp_to_remove_breakpoint_ops,
7943 record_full_beneath_to_insert_breakpoint_ops, and
7944 record_full_beneath_to_remove_breakpoint_ops.
7945 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7946 (m32r_remove_breakpoint): Add target_ops parameter.
7947 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7948 Add target_ops parameter.
7949 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7950 Add target_ops parameter.
7952 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7953 Markus Metzger <markus.t.metzger@intel.com>
7955 * record-btrace.c: Include frame-unwind.h.
7956 (record_btrace_frame_unwind_stop_reason)
7957 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7958 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7960 (init_record_btrace_ops): Install it.
7962 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7964 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7967 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7969 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7972 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 * frame-unwind.c: Include target.h.
7975 (frame_unwind_try_unwinder): New function with code from ...
7976 (frame_unwind_find_by_frame): ... here. New variable
7977 unwinder_from_target, call also target_get_unwinder)
7978 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7979 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7980 * target.h (struct target_ops): New fields to_get_unwinder and
7981 to_get_tailcall_unwinder.
7982 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7986 * record-btrace.c (record_btrace_fetch_registers)
7987 (record_btrace_store_registers)
7988 (record_btrace_to_prepare_to_store): New.
7989 (init_record_btrace_ops): Add the above.
7991 2014-01-16 Tom Tromey <tromey@redhat.com>
7993 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7994 * target.h (struct target_ops) <to_prepare_to_store>: Add
7996 (target_prepare_to_store): Add argument.
7997 * target.c (debug_to_prepare_to_store): Add argument.
7998 (update_current_target): Update.
7999 * remote.c (remote_prepare_to_store): Add 'self' argument.
8000 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8001 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8002 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8003 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8005 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8006 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8007 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8008 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8009 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8013 * btrace.h (replay) <replay>: New.
8014 (btrace_is_replaying): New.
8015 * btrace.c (btrace_clear): Free replay iterator.
8016 (btrace_is_replaying): New.
8017 * record-btrace.c (record_btrace_is_replaying): New.
8018 (record_btrace_info): Print insn number if replaying.
8019 (record_btrace_insn_history): Start at replay position.
8020 (record_btrace_call_history): Start at replay position.
8021 (init_record_btrace_ops): Init to_record_is_replaying.
8023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8025 * record-btrace.c (record_btrace_insn_history_range): Include
8027 (record_btrace_insn_history_from): Adjust range.
8028 (record_btrace_call_history_range): Include
8030 (record_btrace_call_history_from): Adjust range.
8031 * NEWS: Announce changes.
8033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8035 * record.h (enum record_print_flag)
8036 <record_print_indent_calls>: New.
8037 * record.c (get_call_history_modifiers): Recognize /c modifier.
8038 (_initialize_record): Document /c modifier.
8039 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8040 Reorder fields. Optionally indent the function name. Update
8042 * NEWS: Announce changes.
8044 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8046 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8048 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8050 * btrace.c (ftrace_new_function): Start counting at one.
8051 * record-btrace.c (record_btrace_info): Adjust number of calls
8053 * NEWS: Announce it.
8055 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8057 * record-btrace.c (btrace_call_history_insn_range): Print
8058 insn range as [begin, end].
8060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8062 * btrace.h (struct btrace_func_link): New.
8063 (enum btrace_function_flag): New.
8064 (struct btrace_inst): Rename to ...
8065 (struct btrace_insn): ...this. Update all users.
8066 (struct btrace_func) <ibegin, iend>: Remove.
8067 (struct btrace_func_link): New.
8068 (struct btrace_func): Rename to ...
8069 (struct btrace_function): ...this. Update all users.
8070 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8071 (number, level, flags>: New.
8072 (struct btrace_insn_iterator): Rename to ...
8073 (struct btrace_insn_history): ...this.
8075 (struct btrace_insn_iterator, btrace_call_iterator): New.
8076 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8077 (struct btrace_target_info) <begin, end, level>
8078 <insn_history, call_history>: New.
8079 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8080 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8081 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8082 (btrace_call_number, btrace_call_begin, btrace_call_end)
8083 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8084 (btrace_find_function_by_number, btrace_set_insn_history)
8085 (btrace_set_call_history): New.
8086 * btrace.c (btrace_init_insn_iterator)
8087 (btrace_init_func_iterator, compute_itrace): Remove.
8088 (ftrace_print_function_name, ftrace_print_filename)
8089 (ftrace_skip_file): Change
8091 (ftrace_init_func): Remove.
8092 (ftrace_debug): Use new btrace_function fields.
8093 (ftrace_function_switched): Also consider gaining and
8094 losing symbol information).
8095 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8096 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8097 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8099 (ftrace_new_function): Move. Remove debug print.
8100 (ftrace_update_lines, ftrace_update_insns): New.
8101 (ftrace_update_function): Check for call, ret, and jump.
8102 (compute_ftrace): Renamed to ...
8103 (btrace_compute_ftrace): ...this. Rewritten to compute call
8105 (btrace_fetch, btrace_clear): Updated.
8106 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8107 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8108 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8109 (btrace_call_number, btrace_call_begin, btrace_call_end)
8110 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8111 (btrace_find_function_by_number, btrace_set_insn_history)
8112 (btrace_set_call_history): New.
8113 * record-btrace.c (require_btrace): Use new btrace thread
8115 (record_btrace_info, btrace_insn_history)
8116 (record_btrace_insn_history, record_btrace_insn_history_range):
8117 Use new btrace thread info fields and new iterator.
8118 (btrace_func_history_src_line): Rename to ...
8119 (btrace_call_history_src_line): ...this. Use new btrace
8121 (btrace_func_history): Rename to ...
8122 (btrace_call_history): ...this. Use new btrace thread info
8123 fields and new iterator.
8124 (record_btrace_call_history, record_btrace_call_history_range):
8125 Use new btrace thread info fields and new iterator.
8127 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8129 * frame.h (frame_id_build_unavailable_stack_special): New.
8130 * frame.c (frame_id_build_unavailable_stack_special): New.
8132 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8134 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8135 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8136 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8138 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8139 (i386_insn_is_jump, i386_jmp_p): New.
8140 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8141 insn_is_jump to gdbarch.
8142 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8143 * gdbarch.h: Regenerated.
8144 * gdbarch.c: Regenerated.
8145 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8146 (default_insn_is_jump): New.
8147 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8148 (default_insn_is_jump): New.
8150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8152 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8154 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8155 (btrace_read_type) <btrace_read_new>: Change to ...
8156 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8158 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8160 * common/linux-btrace.c (linux_read_btrace): Free trace from
8163 2014-01-15 Doug Evans <dje@google.com>
8165 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8168 2014-01-15 Tom Tromey <tromey@redhat.com>
8170 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8171 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8172 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8173 (set_objfile_main_name): New function.
8174 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8175 language_of_main>: New fields.
8176 (set_objfile_main_name): Declare.
8177 * symtab.c (find_main_name): Loop over objfiles to find the main
8179 (set_main_name): Now static.
8180 (get_main_info): Add comment.
8181 * symtab.h (set_main_name): Don't declare.
8183 2014-01-15 Tom Tromey <tromey@redhat.com>
8185 * symtab.c (main_progspace_key): New global.
8186 (struct main_info): New.
8187 (name_of_main, language_of_main): Remove.
8188 (get_main_info, main_info_cleanup): New function.
8189 (set_main_name, main_name, main_language): Use get_main_info.
8190 (_initialize_symtab): Initialize main_progspace_key.
8192 2014-01-15 Tom Tromey <tromey@redhat.com>
8194 * dbxread.c (process_one_symbol): Update.
8195 * dwarf2read.c (read_partial_die): Update.
8196 * symfile.c (set_initial_language): Call main_language.
8197 * symtab.c (language_of_main): Now static.
8198 (set_main_name): Add 'lang' parameter.
8199 (find_main_name): Update.
8200 (main_language): New function.
8201 (symtab_observer_executable_changed): Update.
8202 * symtab.h (set_main_name): Update.
8203 (language_of_main): Remove.
8204 (main_language): Declare.
8206 2014-01-15 Tom Tromey <tromey@redhat.com>
8208 * symfile.c (init_entry_point_info): Use new "initialized" field.
8210 * objfiles.h (struct entry_point) <initialized>: New field.
8211 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8212 (struct objfile) <ei>: ...here. Remove.
8213 * objfiles.c (entry_point_address_query): Update.
8215 2014-01-15 Tom Tromey <tromey@redhat.com>
8217 * objfiles.c (entry_point_address_query): Relocate entry point
8219 (objfile_relocate1): Do not relocate entry point address.
8220 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8221 <the_bfd_section_index>: New field.
8222 * symfile.c (init_entry_point_info): Find the entry point's
8225 2014-01-15 Tom Tromey <tromey@redhat.com>
8227 * solib-frv.c (enable_break): Use entry_point_address_query.
8229 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8231 * NEWS: Add note on improved process record-replay on
8232 arm*-linux* targets.
8234 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8236 * arm-tdep.c (enum arm_record_result): New enum.
8237 (arm_record_unsupported_insn): New function.
8238 (arm_record_coproc_data_proc): Removed.
8239 (thumb2_record_ld_st_multiple): New function.
8240 (thumb2_record_ld_st_dual_ex_tbb): New function.
8241 (thumb2_record_data_proc_sreg_mimm): New function.
8242 (thumb2_record_ps_dest_generic): New function.
8243 (thumb2_record_branch_misc_cntrl): New function.
8244 (thumb2_record_str_single_data): New function.
8245 (thumb2_record_ld_mem_hints): New function.
8246 (thumb2_record_ld_word): New function.
8247 (thumb2_record_lmul_lmla_div): New function.
8248 (thumb2_record_decode_insn_handler): New function.
8249 (decode_insn): Add thumb32 instruction handlers.
8251 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8253 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8254 (struct arm_linux_record_tdep): Declare.
8255 (arm_canonicalize_syscall): New function.
8256 (arm_all_but_pc_registers_record): New function.
8257 (arm_linux_syscall_record): New function.
8258 (arm_linux_init_abi): Add syscall recording constructs.
8259 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8260 decoding. (arm_record_coproc_data_proc): Update arm syscall
8262 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8263 <arm_syscall_record>: New field.
8264 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8267 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8269 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8270 register for push instruction recording.
8272 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8274 * arm-tdep.c (thumb_record_misc): Update to correct logical
8275 error while recording ldm, ldmia and pop instructions.
8277 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8279 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8281 2014-01-15 Pedro Alves <palves@redhat.com>
8283 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8284 (go32_resume, go32_fetch_registers, store_register)
8285 (go32_store_registers, go32_prepare_to_store)
8286 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8287 (go32_create_inferior, go32_can_run, go32_terminal_init)
8288 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8291 2014-01-15 Tom Tromey <tromey@redhat.com>
8293 * target.h (async_callback_ftype): New typedef.
8294 (struct target_ops) <to_async>: Use it.
8296 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8298 * python/py-value.c (get_field_type): Remove unnecessary curly
8299 braces for single-statement if block.
8301 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8303 * python/py-type.c (convert_field): Add missing empty line
8306 2014-01-14 Doug Evans <dje@google.com>
8308 * symfile.h (expand_symtabs_matching): Renamed from
8309 expand_partial_symbol_names. Update prototype.
8310 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8311 * symfile.c (expand_symtabs_matching): Renamed from
8312 expand_partial_symbol_names. New args file_matcher, kind.
8313 Rename arg fun to symbol_matcher.
8314 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8315 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8316 ada_expand_partial_symbol_name.
8317 (ada_make_symbol_completion_list): Update to call
8318 expand_symtabs_matching.
8319 (ada_add_global_exceptions): Call expand_symtabs_matching.
8320 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8321 call map_symbol_filenames.
8322 * symtab.c (sources_info): Update to call map_symbol_filenames.
8323 (search_symbols): Call expand_symtabs_matching.
8324 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8325 (default_make_symbol_completion_list_break_on): Update to call
8326 expand_symtabs_matching.
8327 (make_source_files_completion_list): Update to call
8328 map_symbol_filenames.
8330 2014-01-14 Doug Evans <dje@google.com>
8332 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8333 (expand_symtabs_symbol_matcher_ftype): New typedef.
8334 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8335 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8336 * symfile.c (expand_partial_symbol_names): Update to use
8337 expand_symtabs_symbol_matcher_ftype.
8338 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8339 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8340 Arg name_matcher renamed to symbol_matcher.
8341 * psymtab.c (recursively_search_psymtabs): Update to use
8342 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8344 (expand_symtabs_matching_via_partial): Update to use
8345 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8346 Arg name_matcher renamed to symbol_matcher.
8348 2014-01-14 Doug Evans <dje@google.com>
8350 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8351 (map_partial_symbol_filenames): Ditto.
8352 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8353 (map_partial_symbol_filenames): Ditto.
8354 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8355 (map_partial_symbol_filenames): Ditto.
8356 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8357 (map_partial_symbol_filenames): Ditto.
8358 * symtab.c: Delete #include "psymtab.h".
8360 2014-01-14 Pedro Alves <palves@redhat.com>
8361 Tom Tromey <tromey@redhat.com>
8363 * infrun.c (use_displaced_stepping): Use find_record_target
8364 instead of RECORD_IS_USED.
8365 (adjust_pc_after_break): Use record_full_is_used instead of
8367 * record-btrace.c (record_btrace_open): Call record_preopen
8368 instead of checking RECORD_IS_USED.
8369 * record-full.c (record_full_shortname)
8370 (record_full_core_shortname): New globals.
8371 (record_full_is_used): New function.
8372 (find_full_open): Call record_preopen instead of checking
8374 (init_record_full_ops): Set the target's shortname to
8375 record_full_shortname.
8376 (init_record_full_core_ops): Set the target's shortname to
8377 record_full_core_shortname.
8378 * record-full.h (record_full_is_used): Declare.
8379 * record.c (find_record_target): Make extern.
8380 (record_preopen): New function.
8381 * record.h (RECORD_IS_USED): Delete macro.
8382 (find_record_target, record_preopen): Declare functions.
8384 2014-01-14 Yao Qi <yao@codesourcery.com>
8386 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8387 'len''s type to ULONGEST.
8388 (core_xfer_shared_libraries_aix): Likewise.
8389 * gdbarch.c, gdbarch.h: Regenerated.
8390 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8391 Change type of 'len' to ULONGEST.
8392 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8393 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8395 2014-01-14 Yao Qi <yao@codesourcery.com>
8397 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8398 type of 'len' to ULONGEST.
8399 (linux_xfer_osdata_processgroups): Likewise.
8400 (linux_xfer_osdata_threads): Likewise.
8401 (linux_xfer_osdata_fds): Likewise.
8402 (linux_xfer_osdata_isockets): Likewise.
8403 (linux_xfer_osdata_shm): Likewise.
8404 (linux_xfer_osdata_sem): Likewise.
8405 (linux_xfer_osdata_msg): Likewise.
8406 (linux_common_xfer_osdata): Likewise.
8407 (struct osdata_type) <getter>: Likewise.
8408 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8411 2014-01-14 Yao Qi <yao@codesourcery.com>
8413 * target.h (target_xfer_partial_ftype): Update.
8414 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8416 * aix-thread.c (aix_thread_xfer_partial): Change type of
8417 argument 'len' to ULONGEST.
8418 * auxv.c (procfs_xfer_auxv): Likewise.
8419 (ld_so_xfer_auxv): Likewise.
8420 (memory_xfer_auxv): Likewise.
8421 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8422 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8423 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8424 * corelow.c (core_xfer_partial): Likewise.
8425 * ctf.c (ctf_xfer_partial): Likewise.
8426 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8428 (darwin_read_dyld_info): Likewise.
8429 (darwin_xfer_partial): Likewise.
8430 * exec.c (section_table_xfer_memory_partial): Likewise.
8431 (exec_xfer_partial): Likewise.
8432 * exec.h (section_table_xfer_memory_partial): Update
8434 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8435 instead of plongest.
8436 (gnu_xfer_partial): Likewise.
8437 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8438 (ia64_hpux_xfer_solib_got): Likewise.
8439 (ia64_hpux_xfer_partial): Likewise.
8440 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8441 * inf-ptrace.c (inf_ptrace_xfer_partial):
8442 * inf-ttrace.c (inf_ttrace_xfer_partial):
8443 * linux-nat.c (linux_xfer_siginfo): Likewise.
8444 (linux_nat_xfer_partial): Likewise.
8445 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8446 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8447 * monitor.c (monitor_xfer_memory): Likewise.
8448 (monitor_xfer_partial): Likewise.
8449 * procfs.c (procfs_xfer_partial): Likewise.
8450 * record-full.c (record_full_xfer_partial): Likewise.
8451 (record_full_core_xfer_partial): Likewise.
8452 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8453 instead of plongest.
8454 (gdbsim_xfer_partial): Likewise.
8455 * remote.c (remote_xfer_partial): Likewise.
8456 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8457 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8459 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8460 (rs6000_xfer_shared_libraries): Likewise.
8461 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8462 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8463 (sparc_xfer_partial): Likewise.
8464 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8465 (spu_xfer_partial): Likewise.
8466 * spu-multiarch.c (spu_xfer_partial): Likewise.
8467 * target.c (target_read_live_memory): Likewise.
8468 (memory_xfer_live_readonly_partial): Likewise.
8469 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8470 (target_xfer_partial, default_xfer_partial): Likewise.
8471 (current_xfer_partial): Likewise.
8472 * tracepoint.c (tfile_xfer_partial): Likewise.
8473 * windows-nat.c (windows_xfer_memory): Likewise. Call
8474 pulongest instead of plongest.
8475 (windows_xfer_partial): Likewise.
8476 (windows_xfer_shared_libraries): Likewise.
8478 2014-01-14 Yao Qi <yao@codesourcery.com>
8480 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8481 target_xfer_partial_ftype.
8483 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8487 * valops.c (value_struct_elt_bitpos): New function
8488 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8489 object to 'None' if the field name is an empty string ("").
8490 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8491 attribute to look for a field when 'name' is 'None'.
8492 (get_field_type): New function
8494 2014-01-13 Doug Evans <dje@google.com>
8497 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8498 (try_open_dwop_file): Ditto.
8499 * gdb_bfd.c: #include "vec.h".
8500 (bfdp): New typedef.
8501 (struct gdb_bfd_data): New member included_bfds.
8502 (gdb_bfd_unref): Unref all included bfds.
8503 (gdb_bfd_record_inclusion): New function.
8504 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8506 2014-01-13 Tom Tromey <tromey@redhat.com>
8508 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8510 2014-01-13 Tom Tromey <tromey@redhat.com>
8512 * defs.h (use_windows): Remove.
8513 * gdb.c (main): Update.
8514 * main.c (captured_main, gdb_main): Update.
8515 * main.h (struct captured_main_args) <use_windows>: Remove.
8516 * top.c (use_windows): Remove.
8518 2014-01-13 Tom Tromey <tromey@redhat.com>
8520 * defs.h (deprecated_flush_hook): Remove.
8522 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8525 * linux-thread-db.c (try_thread_db_load): Add parameter
8526 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8527 (try_thread_db_load_from_pdir_1): Move it there from here.
8528 (try_thread_db_load_from_sdir): Update caller.
8529 (try_thread_db_load_from_dir): Move it there from here.
8531 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8533 * regformats/regdat.sh: Always rewrite the register file.
8535 2014-01-13 Pedro Alves <palves@redhat.com>
8537 * Makefile.in (CHECK_HEADERS): New variable.
8538 (check-headers:): New rule.
8540 2014-01-13 Tom Tromey <tromey@redhat.com>
8542 * cli/cli-setshow.c (do_set_command): Update.
8543 * defs.h (deprecated_set_hook): Remove.
8544 * top.c (deprecated_set_hook): Remove.
8546 2014-01-13 Pedro Alves <palves@redhat.com>
8548 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8549 the tracepoint if the PC is a pseudo-register.
8551 2014-01-13 Tom Tromey <tromey@redhat.com>
8553 * defs.h (XCALLOC): Remove.
8554 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8555 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8556 * dwarf2loc.c (allocate_piece_closure): Likewise.
8557 * elfread.c (elf_symfile_segments): Likewise.
8558 (elf_symfile_segments): Likewise.
8559 * gdbtypes.c (copy_type_recursive): Likewise.
8560 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8561 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8562 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8564 * mt-tdep.c (mt_gdbarch_init): Likewise.
8565 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8567 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8568 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8569 * registry.c (registry_alloc_data): Likewise.
8570 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8571 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8572 * serial.c (serial_fdopen_ops): Likewise.
8573 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8575 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8576 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8579 2014-01-13 Tom Tromey <tromey@redhat.com>
8581 * defs.h (XMALLOC): Remove.
8582 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8583 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8584 * cli-out.c (struct ui_out *): Likewise.
8585 * cli/cli-dump.c (add_dump_command): Likewise.
8586 (add_dump_command): Likewise.
8587 * complaints.c (get_complaints): Likewise.
8588 (find_complaint): Likewise.
8589 * dwarf2-frame.c (execute_cfa_program): Likewise.
8590 * dwarf2read.c (abbrev_table_read_table): Likewise.
8591 * gdbarch.sh: Likewise.
8592 * gdbarch.c: Rebuild.
8593 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8594 * interps.c (interp_new): Likewise.
8595 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8596 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8597 * mi/mi-console.c (mi_console_file_new): Likewise.
8598 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8599 * mi/mi-out.c (mi_out_new): Likewise.
8600 * mi/mi-parse.c (mi_parse): Likewise.
8601 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8602 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8603 * observer.c (xalloc_observer_list_node): Likewise.
8604 * regcache.c (regcache_xmalloc_1): Likewise.
8605 * reggroups.c (reggroup_new): Likewise.
8606 (_initialize_reggroup): Likewise.
8607 * registry.c (register_data_with_cleanup): Likewise.
8608 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8609 * ser-base.c (serial_ttystate): Likewise.
8610 * ser-mingw.c (make_pipe_state): Likewise.
8611 * ser-pipe.c (pipe_open): Likewise.
8612 * serial.c (serial_open): Likewise.
8613 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8614 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8615 (tui_alloc_win_info): Likewise.
8616 (tui_add_content_elements): Likewise.
8617 * tui/tui-file.c (tui_file_new): Likewise.
8618 * tui/tui-out.c (tui_out_new): Likewise.
8619 * ui-file.c (mem_file_new): Likewise.
8620 * ui-out.c (push_level): Likewise.
8621 (make_cleanup_ui_out_end): Likewise.
8622 (append_header_to_list): Likewise.
8623 (ui_out_new): Likewise.
8624 * user-regs.c (user_reg_add_builtin): Likewise.
8626 2014-01-13 Tom Tromey <tromey@redhat.com>
8628 * defs.h (XZALLOC): Remove.
8629 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8630 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8631 (get_ada_tasks_inferior_data): Likewise.
8632 * auto-load.c (get_auto_load_pspace_data): Likewise.
8633 * auxv.c (get_auxv_inferior_data): Likewise.
8634 * bfd-target.c (target_bfd_reopen): Likewise.
8635 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8636 (deprecated_insert_raw_breakpoint): Likewise.
8637 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8638 * corelow.c (core_open): Likewise.
8639 * darwin-nat.c (darwin_check_new_threads): Likewise.
8640 (darwin_attach_pid): Likewise.
8641 * dummy-frame.c (dummy_frame_push): Likewise.
8642 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8643 * dwarf2loc.c (allocate_piece_closure): Likewise.
8644 * elfread.c (elf_symfile_segments): Likewise.
8645 * eval.c (ptrmath_type_p): Likewise.
8646 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8647 * gdbtypes.c (alloc_type_arch): Likewise.
8648 (alloc_type_instance): Likewise.
8649 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8650 * inf-child.c (inf_child_can_use_agent): Likewise.
8651 * inflow.c (get_inflow_inferior_data): Likewise.
8652 * infrun.c (save_infcall_suspend_state): Likewise.
8653 * jit.c (jit_reader_load): Likewise.
8654 (get_jit_objfile_data): Likewise.
8655 (get_jit_program_space_data): Likewise.
8656 (jit_object_open_impl): Likewise.
8657 (jit_symtab_open_impl): Likewise.
8658 (jit_block_open_impl): Likewise.
8659 (jit_frame_sniffer): Likewise.
8660 * linux-fork.c (add_fork): Likewise.
8661 * maint.c (make_command_stats_cleanup): Likewise.
8662 * objfiles.c (get_objfile_pspace_data): Likewise.
8663 * opencl-lang.c (struct lval_closure): Likewise.
8664 * osdata.c (osdata_start_osdata): Likewise.
8665 * progspace.c (new_address_space): Likewise.
8666 (add_program_space): Likewise.
8667 * remote-sim.c (get_sim_inferior_data): Likewise.
8668 * sh-tdep.c (sh_gdbarch_init): Likewise.
8669 * skip.c (Ignore): Likewise.
8670 (skip_delete_command): Likewise.
8671 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8672 (library_list_start_library): Likewise.
8673 (solib_aix_current_sos): Likewise.
8674 * solib-darwin.c (get_darwin_info): Likewise.
8675 (darwin_current_sos): Likewise.
8676 * solib-dsbt.c (get_dsbt_info): Likewise.
8677 * solib-ia64-hpux.c (new_so_list): Likewise.
8678 (ia64_hpux_get_solib_linkage_addr): Likewise.
8679 * solib-spu.c (append_ocl_sos): Likewise.
8680 (spu_current_sos): Likewise.
8681 * solib-svr4.c (get_svr4_info): Likewise.
8682 (svr4_keep_data_in_core): Likewise.
8683 (library_list_start_library): Likewise.
8684 (svr4_default_sos): Likewise.
8685 (svr4_read_so_list): Likewise.
8686 * solib-target.c (library_list_start_library): Likewise.
8687 (solib_target_current_sos): Likewise.
8688 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8689 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8690 * symfile.c (default_symfile_segments): Likewise.
8691 * target-descriptions.c (tdesc_data_init): Likewise.
8692 (tdesc_create_reg): Likewise.
8693 (struct tdesc_type *): Likewise.
8694 (tdesc_create_vector): Likewise.
8695 (tdesc_set_struct_size): Likewise.
8696 (struct tdesc_type *): Likewise.
8697 (tdesc_free_feature): Likewise.
8698 (tdesc_create_feature): Likewise.
8699 * windows-nat.c (windows_add_thread): Likewise.
8700 (windows_make_so): Likewise.
8701 * xml-support.c (gdb_xml_body_text): Likewise.
8702 (gdb_xml_create_parser_and_cleanup): Likewise.
8703 (xml_process_xincludes): Likewise.
8704 * xml-syscall.c (allocate_syscalls_info): Likewise.
8705 (syscall_create_syscall_desc): Likewise.
8707 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8709 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8710 function, with code from i386_stap_parse_special_token.
8711 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8712 (i386_stap_parse_special_token): Move code to the two functions
8715 2014-01-09 Pedro Alves <palves@redhat.com>
8716 Hui Zhu <hui@codesourcery.com>
8719 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8720 bp_err_string. Don't mark the location shlib_disabled if the
8721 error thrown wasn't a generic or memory error. Catch errors
8722 thrown while inserting breakpoints in overlayed code. Output
8723 error message of software breakpoints.
8724 * remote.c (remote_insert_breakpoint): If this breakpoint has
8725 target-side commands but this stub doesn't support Z0 packets,
8726 throw NOT_SUPPORTED_ERROR error.
8727 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8728 * target.h (target_insert_breakpoint): Extend comment.
8729 (target_insert_hw_breakpoint): Add comment.
8731 2014-01-08 Pedro Alves <palves@redhat.com>
8733 * remote.c (remote_add_thread): Add threads silently if starting
8735 (remote_notice_new_inferior): If in all-stop, and starting up,
8736 don't call notice_new_inferior.
8737 (get_current_thread): New function, factored out from ...
8738 (add_current_inferior_and_thread): ... this. Adjust.
8739 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8740 found any thread, then select the remote's current thread as GDB's
8743 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8745 * NEWS: Create a new section for the next release branch.
8746 Rename the section of the current branch, now that it has
8749 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8751 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8752 * version.in: Bump version to 7.7.50.DATE-cvs.
8754 2014-01-08 Yao Qi <yao@codesourcery.com>
8756 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8757 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8758 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8760 2014-01-08 Yao Qi <yao@codesourcery.com>
8762 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8763 return value of bfd_get_filename to symbol_file_add_from_bfd.
8765 2014-01-08 Pierre Muller <muller@sourceware.org>
8768 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8769 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8770 to prim_record_mininal_symbol_and_info.
8771 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8772 in call to prim_record_minimal_symbol_and_info.
8773 (read_pe_exported_syms): Set index field of section_data.
8775 2014-01-07 Andrew Pinski <apinski@cavium.com>
8777 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8778 * features/aarch64.c: Regenerate.
8780 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8782 * target.c (return_null): Define.
8783 (update_current_target): Use it instead of return_zero for
8784 functions that return a pointer.
8786 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8788 * source.c (add_path): Fix check for duplicated paths in the previously
8791 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8793 * ada-lang.c: Remove duplicated include statements.
8794 * alphabsd-nat.c: Ditto.
8795 * amd64-darwin-tdep.c: Ditto.
8796 * amd64fbsd-nat.c: Ditto.
8797 * auto-load.c: Ditto.
8799 * breakpoint.c: Ditto.
8801 * fork-child.c: Ditto.
8802 * gdb_usleep.c: Ditto.
8803 * i386-darwin-tdep.c: Ditto.
8804 * i386fbsd-nat.c: Ditto.
8806 * inferior.c: Ditto.
8808 * linux-nat.c: Ditto.
8809 * linux-tdep.c: Ditto.
8810 * m68kbsd-nat.c: Ditto.
8811 * m68klinux-nat.c: Ditto.
8812 * microblaze-tdep.c: Ditto.
8813 * mips-linux-tdep.c: Ditto.
8814 * mn10300-tdep.c: Ditto.
8815 * nto-tdep.c: Ditto.
8816 * opencl-lang.c: Ditto.
8818 * printcmd.c: Ditto.
8819 * regcache.c: Ditto.
8820 * remote-m32r-sdi.c: Ditto.
8824 * tilegx-linux-nat.c: Ditto.
8825 * tilegx-tdep.c: Ditto.
8826 * tracepoint.c: Ditto.
8828 * vaxbsd-nat.c: Ditto.
8829 * windows-nat.c: Ditto.
8830 * xtensa-tdep.c: Ditto.
8832 2014-01-07 Yao Qi <yao@codesourcery.com>
8834 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8836 2014-01-07 Yao Qi <yao@codesourcery.com>
8837 Joel Brobecker <brobecker@adacore.com>
8839 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8840 (pdc_write_regs): Likewise.
8841 (fetch_regs_kernel_thread): Likewise.
8842 (store_regs_kernel_thread): Likewise.
8844 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8846 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8847 tagged type objects to their actual type.
8849 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8851 * ada-valprint.c (print_field_values): Add "language" parameter.
8852 Update calls to print_field_values and print_variant_part.
8853 Pass new parameter "language" in call to val_print instead
8854 of "current_language". Replace call to ada_val_print by call
8856 (print_variant_part): Add "language" parameter.
8857 (ada_val_print_struct_union): Update call to print_field_values.
8859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8861 * ada-valprint.c (ui_memcpy): Delete.
8862 (ada_print_floating): Update documentation. Add empty line
8863 between between function documentation and implementation.
8864 Delete variable "buffer". Use ui_file_xstrdup in place of
8865 ui_file_put. Minor adjustments following this change.
8867 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8869 * ada-valprint.c (ada_val_print_string): New function,
8870 extracted from ada_val_print_array.
8871 (ada_val_print_array): Replace extracted code by call
8872 to ada_val_print_string followed by a return. Move
8873 "else" branch to the function's top block.
8875 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8877 * ada-valprint.c (ada_val_print_array): Move implementation
8878 down. Rename parameter "offset" and "val" into "offset_aligned"
8879 and "original_value" respectively. Add parameter "offset".
8881 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8883 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8884 re-organizing the code. Change the "???" message printed
8885 when target type is a TYPE_CODE_UNDEF into
8886 "<ref to undefined type>".
8888 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8890 * ada-valprint.c (print_record): Delete, implementation inlined...
8891 (ada_val_print_struct_union): ... here. Remove call to
8892 ada_check_typedef in inlined implementation.
8894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8896 * ada-valprint.c (ada_val_print_gnat_array): New function,
8897 extracted from ada_val_print_1;
8898 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8899 (ada_val_print_flt, ada_val_print_struct_union)
8900 (ada_val_print_ref): Likewise.
8901 (ada_val_print_1): Delete variables i and elttype.
8902 Replace extracted-out code by call to corresponding
8905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8907 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8909 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8911 * ada-valprint.c (ada_val_print_1): Replace calls to
8912 ada_val_print_1 by calls to val_print.
8914 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8916 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8917 Update calls to self accordingly. Replace calls to c_val_print
8918 by calls to val_print.
8920 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8922 * ada-valprint.c (print_record): Delete declaration.
8923 (adjust_type_signedness, ada_val_print_1): Likewise.
8924 (ada_val_print): Move function implementation down.
8925 (print_variant_part, print_field_values, print_record):
8926 Move function implementation up.
8928 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8930 * python/py-type.c (typy_get_name): New function.
8931 (type_object_getset): Add entry for attribute "name".
8932 * NEWS: Add entry mentioning this new attribute.
8934 2014-01-07 Yao Qi <yao@codesourcery.com>
8936 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8939 2014-01-07 Yao Qi <yao@codesourcery.com>
8941 * gnu-nat.c (info_port_rights): Add qualifier const to
8944 2014-01-07 Yao Qi <yao@codesourcery.com>
8946 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8948 2014-01-07 Yao Qi <yao@codesourcery.com>
8950 * gnu-nat.c (make_inf) Update declaration.
8951 (make_inf): Make it static.
8952 (inf_set_traced): Likewise.
8953 (inf_port_to_thread, inf_task_died_status): Likewise.
8955 2014-01-07 Yao Qi <yao@codesourcery.com>
8957 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8959 2014-01-07 Yao Qi <yao@codesourcery.com>
8961 * gnu-nat.c (_initialize_gnu_nat): Declare.
8963 2014-01-07 Yao Qi <yao@codesourcery.com>
8965 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8967 (struct gdbarch_info) <byte_order>: Change type to
8969 <byte_order_for_code>: Likewise.
8970 * gdbarch.c, gdbarch.h: Regenerated.
8972 2014-01-06 Sasha Smundak <asmundak@google.com>
8974 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8976 2014-01-06 Tom Tromey <tromey@redhat.com>
8978 * doublest.c (convert_doublest_to_floatformat): Use const, not
8980 * somread.c (som_symtab_read): Likewise.
8982 2014-01-07 Hui Zhu <hui@codesourcery.com>
8984 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8985 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8986 (gdb_bfd_fopen): Ditto.
8987 (gdb_bfd_openr): Ditto.
8988 (gdb_bfd_openw): Ditto.
8989 (gdb_bfd_openr_iovec): Ditto.
8990 (gdb_bfd_fdopenr): Ditto.
8991 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8992 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8994 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8996 * symfile-mem.c (symbol_file_add_from_memory): Removed
8997 gdb_bfd_stash_filename.
8999 2014-01-03 Doug Evans <dje@google.com>
9001 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9004 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9006 Update year range in copyright notice of all files.
9008 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9010 * top.c (print_gdb_version): Set copyright year to 2014.
9012 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9014 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9016 For older changes see ChangeLog-2013.
9022 version-control: never