1 2014-06-11 Pedro Alves <palves@redhat.com>
4 * ser-mingw.c (net_windows_socket_check_pending): New function.
5 (net_windows_select_thread): Ignore spurious wakeups. Use
6 net_windows_socket_check_pending.
7 (net_windows_wait_handle): Check for pending events with
8 ioctlsocket, through net_windows_socket_check_pending, instead of
9 checking the socket's event.
11 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
13 * python/python-internal.h (gdb_PyObject_GetAttrString)
14 (gdb_PyObject_HasAttrString): New inline function definitions.
15 * py-value.c (get_field_flag): Remove the now unnecessary cast to
16 char * of the second argument to PyObject_GetAttrString.
18 2014-06-10 Joel Brobecker <brobecker@adacore.com>
20 * serial.c (serial_write): Fix index of character to be printed
21 in call to serial_logchar when serial debug traces are enabled.
23 2014-06-10 Joel Brobecker <brobecker@adacore.com>
25 * gdbtypes (resolve_dynamic_range): Add function description.
27 2014-06-09 Gary Benson <gbenson@redhat.com>
29 * common/signals.c (gdb_signal_from_host): Reorder to separate
30 the always-available ANSI-standard signals from the signals that
32 (do_gdb_signal_to_host): Likewise.
33 * proc-events.c (signal_table): Likewise.
35 2014-06-08 Hui Zhu <hui@codesourcery.com>
37 * common/linux-ptrace.c (linux_disable_event_reporting): New
39 * common/linux-ptrace.h (linux_disable_event_reporting): New
41 * linux-nat.c (linux_child_follow_fork): Do a single step before
44 2014-06-07 Keith Seitz <keiths@redhat.com>
48 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
49 from symbol_matches_domain in symtab.c. All local callers
50 of symbol_matches_domain updated.
51 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
53 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
54 independently. standard_lookup will do that automatically.
55 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
56 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
57 (cp_lookup_symbol_in_namespace): Likewise.
58 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
59 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
60 may return a STRUCT_DOMAIN match.
61 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
62 * cp-support.c: Include language.h.
63 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
65 * psymtab.c (match_partial_symbol): Compare the requested
66 domain with the symbol's domain directly.
67 (lookup_partial_symbol): Likewise.
68 * symtab.c (lookup_symbol_in_language): Explain when/why
69 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
70 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
71 appropriate languages.
72 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
73 and moved to ada-lang.c
74 (lookup_block_symbol): Explain that this function only returns
75 symbol matching the requested DOMAIN.
76 Compare the requested domain with the symbol's domain directly.
77 (iterate_over_symbols): Compare the requested domain with the
78 symbol's domain directly.
79 * symtab.h (symbol_matches_domain): Remove.
81 2014-06-06 Doug Evans <xdje42@gmail.com>
83 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
84 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
85 (gdbscm_guile_version_is_at_least): Declare.
86 (gdbscm_scm_string_to_int): Declare.
87 * guile/guile.c (gdbscm_guile_major_version): New global.
88 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
89 (guile_datadir): New static global.
90 (gdbscm_guile_data_directory): New function.
91 (initialize_scheme_side): Update.
92 (misc_guile_functions): Add guile-data-directory.
93 (initialize_gdb_module): Fetch guile version number.
94 * guile/lib/gdb.scm: Remove call to add-to-load-path.
95 * guile/lib/gdb/init.scm (%initialize!): Ditto.
96 * guile/lib/gdb/boot.scm: Use guile-data-directory.
97 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
99 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
100 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
101 * guile/scm-value.c (gdbscm_value_to_string): Only call
102 scm_port_conversion_strategy if Guile version >= 2.0.6.
104 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
106 * main.c (print_gdb_help): Add -q and --silent.
108 2014-06-06 Gary Benson <gbenson@redhat.com>
110 * common/signals.c: Remove preprocessor conditionals for
111 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
113 * proc-events.c: Likewise.
115 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
117 * symfile.c (symfile_free_objfile): Remove restriction to
119 * symfile-mem.c (symbol_file_add_from_memory): Call
120 add_target_sections_of_objfile.
122 2014-06-05 Ludovic Courtès <ludo@gnu.org>
124 * guile/scm-value.c (gdbscm_history_append_x): Use
125 'vlscm_get_value_smob_arg_unsafe' instead of
126 'vlscm_scm_to_value'.
128 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
131 * utils.c (printchar): Don't escape at all if quoter is NUL.
132 Update function documentation to clarify effect of parameter
134 * remote.c (escape_buffer): Pass '\\' as the quoter to
136 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
138 (mi_solib_unloaded): Same.
140 2014-06-05 Joel Brobecker <brobecker@adacore.com>
142 * development.sh: Delete.
143 * Makefile.in (config.status): Adjust dependency on development.sh.
144 * configure.ac: Adjust development.sh source call.
145 * configure: Regenerate.
147 2014-06-04 Doug Evans <xdje42@gmail.com>
149 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
150 is_scheme_bkpt, spec.
151 (bpscm_make_breakpoint_smob): Initialize new members.
152 (gdbscm_create_breakpoint_x): Split into two ...
153 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
154 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
155 (scheme_function breakpoint_functions): Update.
156 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
157 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
158 register-breakpoint!.
160 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
163 * mem-break.c (z_type_supported): Return zero if
164 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
166 2014-06-04 Tom Tromey <tromey@redhat.com>
168 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
169 value_from_contents_and_address_unresolved.
170 (ada_template_to_fixed_record_type_1): Likewise.
171 (ada_which_variant_applies): Likewise.
172 * value.h (value_from_contents_and_address_unresolved): Declare.
173 * value.c (value_from_contents_and_address_unresolved): New
175 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
176 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
177 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
179 2014-06-04 Tom Tromey <tromey@redhat.com>
181 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
183 2014-06-04 Tom Tromey <tromey@redhat.com>
185 * procfs.c (procfs_attach): Make "args" const.
186 * windows-nat.c (windows_attach): Make "args" const.
187 * nto-procfs.c (procfs_attach): Make "args" const.
188 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
189 * go32-nat.c (go32_attach): Make "args" const.
190 * gnu-nat.c (gnu_attach): Make "args" const.
191 * darwin-nat.c (darwin_attach): Make "args" const.
192 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
193 * linux-nat.c (linux_nat_attach): Make "args" const.
194 * remote.c (extended_remote_attach_1, extended_remote_attach):
196 * target.h (struct target_ops) <to_attach>: Make "args" const.
197 (find_default_attach): Likewise.
198 * utils.c (parse_pid_to_attach): Make "args" const.
199 * utils.h (parse_pid_to_attach): Update.
201 2014-06-04 Tom Tromey <tromey@redhat.com>
203 * target-delegates.c: Rebuild.
204 * target.c (default_thread_address_space): New function.
205 (target_thread_address_space): Simplify.
206 * target.h (struct target_ops) <to_thread_address_space>: Add
209 2014-06-04 Doug Evans <xdje42@gmail.com>
211 * guile/scm-type.c (type_smob): Remove duplicate typedef.
213 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
215 * record-btrace.c: Include event-loop.h and inf-loop.h.
216 (record_btrace_resume_exec_dir)
217 (record_btrace_async_inferior_event_handler)
218 (record_btrace_handle_async_inferior_event): New.
219 (record_btrace_open): Create async event handler.
220 (record_btrace_close): Delete async event handler.
221 (record_btrace_resume): Set record_btrace_resume_exec_dir,
222 Mark async event handler.
223 (record_btrace_execution_direction): New.
224 (init_record_btrace_ops): Initialize to_execution_direction.
226 2014-06-03 Doug Evans <xdje42@gmail.com>
228 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
229 (gdbscm_make_parameter): Ditto.
231 2014-06-03 Doug Evans <dje@google.com>
233 * exec.c (exec_close_1): Call clear_section_table instead of
234 resize_section_table.
235 (clear_section_table): New function.
236 (resize_section_table): Make static. Rename arg num_added to
238 * exec.h (clear_section_table): Declare.
239 (resize_section_table): Delete.
240 * progspace.c (release_program_space): Call clear_section_table
241 instead of resize_section_table.
243 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
245 * NEWS (Python Scripting): Add entry about the new xmethods
248 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
250 * python/py-xmethods.c: New file.
251 * python/py-objfile.c (objfile_object): New field 'xmethods'.
252 (objfpy_dealloc): XDECREF on the new xmethods field.
253 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
255 (objfpy_get_xmethods): New function.
256 (objfile_getset): New entry 'xmethods'.
257 * python/py-progspace.c (pspace_object): New field 'xmethods'.
258 (pspy_dealloc): XDECREF on the new xmethods field.
259 (pspy_new, pspace_to_pspace_object): Initialize xmethods
261 (pspy_get_xmethods): New function.
262 (pspace_getset): New entry 'xmethods'.
263 * python/python-internal.h: Add declarations for new functions.
264 * python/python.c (_initialize_python): Invoke
265 gdbpy_initialize_xmethods.
266 * python/lib/gdb/__init__.py (xmethods): New
268 * python/lib/gdb/xmethod.py: New file.
269 * python/lib/gdb/command/xmethods.py: New file.
271 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
273 * eval.c (evaluate_subexp_standard): Call the xmethod if the
274 best match method returned by find_overload_match is an xmethod.
275 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
276 the best matching operator returned by find_overload_match is an
278 * valops.c: #include "extension.h".
279 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
280 Return void. The list of matching source methods is returned in
281 "fn_list" and a vector of matching debug method workers is
282 returned in "xm_worker_vec". Update all callers.
283 (value_find_oload_method_list): Likewise.
284 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
285 non-NULL, then the index of the best matching method in this
286 vector is returned. Update all callers.
287 (find_overload_match): Include xmethods while performing overload
290 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
292 * defs.h (enum lval_type): New enumerator "lval_xcallable".
293 * extension-priv.h (struct extension_language_ops): Add the
295 * extension.c (new_xmethod_worker, clone_xmethod_worker,
296 get_matching_xmethod_workers, get_xmethod_argtypes,
297 invoke_xmethod, free_xmethod_worker,
298 free_xmethod_worker_vec): New functions.
299 * extension.h: #include "common/vec.h".
300 New function declarations.
301 (struct xmethod_worker): New struct.
302 (VEC (xmethod_worker_ptr)): New vector type.
303 (xmethod_worker_ptr): New typedef.
304 (xmethod_worker_vec): Likewise.
305 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
307 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
308 (struct builtin_type): New field "xmethod".
309 * valarith.c (value_ptradd): Assert that the value argument is not
311 * valops.c (value_must_coerce_to_target): Return 0 for
312 lval_xcallable values.
313 * value.c (struct value): New field XM_WORKER in the field
315 (value_address, value_raw_address): Return 0 for lval_xcallable
317 (set_value_address): Assert that the value is not an
319 (value_free): Free the associated xmethod worker when freeing
320 lval_xcallable values.
321 (set_value_component_location): Assert that the WHOLE value is not
323 (value_of_xmethod, call_xmethod): New functions.
324 * value.h: Declare "struct xmethod_worker".
325 Declare new functions value_of_xmethod, call_xmethod.
327 2014-06-03 Joel Brobecker <brobecker@adacore.com>
328 Pedro Alves <palves@redhat.com>
331 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
332 New function, extracted from software_breakpoint_inserted_here_p.
333 (software_breakpoint_inserted_here_p): Replace factored out code
334 by call to find_non_raw_software_breakpoint_inserted_here.
335 (bp_target_info_copy_insertion_state): New function.
336 (bkpt_insert_location): Handle the case of a single-step
337 breakpoint already inserted at the same address.
338 (bkpt_remove_location): Handle the case of a single-step
339 breakpoint still inserted at the same address.
340 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
341 breakpoint already inserted at the same address.
342 (deprecated_remove_raw_breakpoint): Handle the case of a
343 non-raw breakpoint still inserted at the same address.
344 (find_single_step_breakpoint): New function, extracted from
345 single_step_breakpoint_inserted_here_p.
346 (find_single_step_breakpoint): New function,
347 factored out from single_step_breakpoint_inserted_here_p.
348 (single_step_breakpoint_inserted_here_p): Reimplement.
350 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
352 Pushed by Joel Brobecker <brobecker@adacore.com>
353 * source.c (show_substitute_path_command): Fix display of matching
356 2014-06-03 Gary Benson <gbenson@redhat.com>
358 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
360 2014-06-02 Doug Evans <xdje42@gmail.com>
362 Add parameter support for Guile.
363 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
364 (SUBDIR_GUILE_SRCS): Add scm-param.c.
365 (scm-param.o): New rule.
366 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
367 (gdbscm_misc_error): Declare.
368 (gdbscm_canonicalize_command_name): Declare.
369 (gdbscm_scm_to_host_string): Declare.
370 (gdbscm_scm_from_host_string): Declare.
371 (gdbscm_initialize_parameters): Declare.
372 * guile/guile.c (initialize_gdb_module): Call
373 gdbscm_initialize_parameters.
374 * guile/lib/gdb.scm: Export parameter symbols.
375 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
376 cmdscm_canonicalize_name and made public. All callers updated.
377 * guile/scm-exception.c (gdbscm_misc_error): New function.
378 * guile/scm-param.c: New file.
379 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
380 (gdbscm_scm_to_host_string): New function.
381 (gdbscm_scm_from_host_string): New function.
382 * scm-utils.c (gdbscm_gc_dup_argv): New function.
384 2014-06-02 Doug Evans <xdje42@gmail.com>
386 Add command support for Guile.
387 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
388 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
389 (scm-cmd.o): New rule.
390 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
391 (gdbscm_user_error_p): Declare.
392 (gdbscm_parse_command_name): Declare.
393 (gdbscm_valid_command_class_p): Declare.
394 (gdbscm_initialize_commands): Declare.
395 * guile/guile.c (initialize_gdb_module): Call
396 gdbscm_initialize_commands.
397 * guile/lib/gdb.scm: Export command symbols.
398 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
399 (throw-user-error): New function.
400 * guile/scm-cmd.c: New file.
401 * guile/scm-exception.c (user_error_symbol): New static global.
402 (gdbscm_user_error_p): New function.
403 (gdbscm_initialize_exceptions): Set user_error_symbol.
404 * scm-utils.c (gdbscm_gc_xstrdup): New function.
406 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
408 * top.c (command_loop): Handle comments here...
409 (command_line_input): ... not here.
411 2014-06-02 Doug Evans <xdje42@gmail.com>
413 Add progspace support for Guile.
414 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
415 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
416 (scm-progspace.o): New rule.
417 * guile/guile-internal.h (pspace_smob): New typedef.
418 (psscm_pspace_smob_pretty_printers): Declare.
419 (psscm_pspace_smob_from_pspace): Declare.
420 (psscm_scm_from_pspace): Declare.
421 * guile/guile.c (initialize_gdb_module): Call
422 gdbscm_initialize_pspaces.
423 * guile/lib/gdb.scm: Export progspace symbols.
424 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
426 (append-pretty-printer!): Ditto.
427 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
429 * guile/scm-progspace.c: New file.
431 2014-06-03 Alan Modra <amodra@gmail.com>
433 * ppc64-tdep.c (ppc64_standard_linkage8): New.
434 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
436 2014-06-02 Doug Evans <dje@google.com>
438 Add support for skeletonless type units.
439 * dwarf2read.c (struct dwarf2_per_objfile): New member
440 n_allocated_type_units.
441 (struct dwarf2_per_objfile) <tu_stats>: New member
442 nr_all_type_units_reallocs.
443 (create_signatured_type_table_from_index): Initialize
444 n_allocated_type_units
445 (create_all_type_units): Ditto.
446 (add_type_unit): Move up in file. New arg slot.
447 All callers updated. Increase space for all_type_units more
449 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
450 (lookup_dwo_signatured_type): Handle skeletonless TUs.
451 (lookup_dwp_signatured_type): Ditto.
452 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
454 (build_type_psymtabs_1): Leave type_unit_groups as
455 NULL if no TUs present.
456 (print_tu_stats): New function.
457 (process_skeletonless_type_unit): New function.
458 (process_dwo_file_for_skeletonless_type_units): New
460 (process_skeletonless_type_units): New function.
461 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
462 Call print tu_stats if debugging enabled.
464 2014-06-02 Pedro Alves <palves@redhat.com>
466 * breakpoint.c (build_target_command_list): Don't build a command
467 list if we have any duplicate location that isn't a dprintf.
469 2014-06-02 Pedro Alves <palves@redhat.com>
471 * breakpoint.c (dprintf_breakpoint_hit): New function.
472 (initialize_breakpoint_ops): Install it as dprintf's
473 breakpoint_hit method.
475 2014-06-02 Joel Brobecker <brobecker@adacore.com>
477 * source.c (substitute_path_rule_matches): Simplify using
478 filename_ncmp instead of FILENAME_CMP.
480 2014-06-02 Joel Brobecker <brobecker@adacore.com>
482 * source.c (substitute_path_rule_matches): Remove trailing spaces.
484 2014-06-01 Ludovic Courtès <ludo@gnu.org>
486 * configure.ac: When Guile is available, check for the
487 availability of 'scm_new_smob'.
488 * configure, config.h.in: Regenerate.
489 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
492 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
494 * frame.c (struct frame_info): Add stop_string field.
495 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
496 (get_prev_frame_always): Old content moved into
497 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
498 TRY_CATCH, handle MEMORY_ERROR exceptions.
499 (frame_stop_reason_string): New function definition.
500 * frame.h (unwind_stop_reason_to_string): Extend comment to
501 mention frame_stop_reason_string.
502 (frame_stop_reason_string): New function declaration.
503 * stack.c (frame_info): Switch to frame_stop_reason_string.
504 (backtrace_command_1): Switch to frame_stop_reason_string.
505 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
506 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
507 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
509 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
511 * frame.c (frame_stop_reason_string): Rename to ...
512 (unwind_stop_reason_to_string): this.
513 * frame.h (frame_stop_reason_string): Rename to ...
514 (unwind_stop_reason_to_string): this.
515 * stack.c (frame_info): Update call to frame_stop_reason_string.
516 (backtrace_command_1): Likewise.
517 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
518 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
520 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
522 * frame.c (remove_prev_frame): New function.
523 (get_prev_frame_if_no_cycle): Create / discard cleanup using
526 2014-05-29 Pedro Alves <palves@redhat.com>
528 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
529 and make it const. When a single-step decays to a continue,
530 clear 'step', not 'hw_step'. Pass whether the caller wanted
531 to step to user_visible_resume_ptid, not what we ask the
534 2014-05-29 Pedro Alves <palves@redhat.com>
536 * infrun.c (process_event_stop_test, handle_step_into_function)
537 (handle_step_into_function_backward): Adjust.
538 Don't set the even thread's stop_step and call stop_waiting before
539 calling end_stepping_range. Instead do that ...
540 (end_stepping_range): ... here. Take an ecs pointer parameter.
542 2014-05-29 Pedro Alves <palves@redhat.com>
544 * infrun.c (stop_stepping): Rename to ...
545 (stop_waiting): ... this.
546 (proceed): Update comment.
547 (process_event_stop_test, handle_inferior_event)
548 (handle_signal_stop, handle_step_into_function)
549 (handle_step_into_function_backward): Update.
551 2014-05-29 Pedro Alves <palves@redhat.com>
553 * infcall.c (run_inferior_call): Don't check whether the current
554 thread is running after the proceed call.
556 2014-05-29 Pedro Alves <palves@redhat.com>
557 Tom Tromey <tromey@redhat.com>
559 * NEWS: Mention "maint set target-async", "set mi-async", and that
560 background execution commands are now always available.
561 * target.h (target_async_permitted): Update comment.
562 * target.c (target_async_permitted, target_async_permitted_1):
564 (set_target_async_command): Rename to ...
565 (maint_set_target_async_command): ... this.
566 (show_target_async_command): Rename to ...
567 (maint_show_target_async_command): ... this.
568 (_initialize_target): Adjust.
569 * infcmd.c (prepare_execution_command): Make extern.
570 * inferior.h (prepare_execution_command): Declare.
571 * infrun.c (set_observer_mode): Leave target async alone.
572 * mi/mi-interp.c (mi_interpreter_init): Install
573 mi_on_sync_execution_done as sync_execution_done observer.
574 (mi_on_sync_execution_done): New function.
575 (mi_execute_command_input_handler): Don't print the prompt if we
576 just started a synchronous command with an async target.
577 (mi_on_resume): Check sync_execution before printing prompt.
578 * mi/mi-main.h (mi_async_p): Declare.
579 * mi/mi-main.c: Include gdbcmd.h.
580 (mi_async_p): New function.
581 (mi_async, mi_async_1): New globals.
582 (set_mi_async_command, show_mi_async_command, mi_async): New
584 (exec_continue): Call prepare_execution_command.
585 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
586 (mi_execute_async_cli_command): Use mi_async_p.
587 (_initialize_mi_main): Install "set mi-async". Make
588 "target-async" a deprecated alias.
590 2014-05-29 Pedro Alves <palves@redhat.com>
592 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
593 (_initialize_cli_interp): Adjust.
594 * event-loop.c: Include "observer.h".
595 (start_event_loop): Notify 'command_error' observers instead of
596 calling display_gdb_prompt. Remove FIXME comment.
597 * event-top.c (display_gdb_prompt): Remove call into the
599 * inf-loop.c: Include "observer.h".
600 (inferior_event_handler): Notify 'command_error' observers instead
601 of calling display_gdb_prompt.
602 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
603 observers instead of calling display_gdb_prompt.
604 * interps.c (interp_set): Don't call display_gdb_prompt.
605 (current_interp_display_prompt_p): Delete.
606 * interps.h (interp_prompt_p): Delete declaration.
607 (interp_prompt_p_ftype): Delete.
608 (struct interp_procs) <prompt_proc_p>: Delete field.
609 (current_interp_display_prompt_p): Delete declaration.
610 * mi-interp.c (mi_interpreter_prompt_p): Delete.
611 (_initialize_mi_interp): Adjust.
612 * tui-interp.c (tui_init): Install 'sync_execution_done' and
613 'command_error' observers.
614 (tui_on_sync_execution_done, tui_on_command_error): New
616 (tui_display_prompt_p): Delete.
617 (_initialize_tui_interp): Adjust.
619 2014-05-29 Pedro Alves <palves@redhat.com>
622 * cli/cli-interp.c: Include infrun.h and observer.h.
623 (cli_uiout, cli_interp): New globals.
624 (cli_on_signal_received, cli_on_end_stepping_range)
625 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
627 (cli_interpreter_init): Install them as 'end_stepping_range',
628 'signal_received' 'signal_exited', 'exited' and 'no_history'
630 (_initialize_cli_interp): Remove cli_interp local.
631 * infrun.c (handle_inferior_event): Call the several stop reason
632 observers instead of printing the stop reason directly.
633 (end_stepping_range): New function.
634 (print_end_stepping_range_reason, print_signal_exited_reason)
635 (print_exited_reason, print_signal_received_reason)
636 (print_no_history_reason): Make static, and add an uiout
637 parameter. Print to that instead of to CURRENT_UIOUT.
638 * infrun.h (print_end_stepping_range_reason)
639 (print_signal_exited_reason, print_exited_reason)
640 (print_signal_received_reason print_no_history_reason): New
642 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
644 <cli_uiout>: New field.
645 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
646 uiout for CLI output. Install 'signal_received',
647 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
649 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
650 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
651 (mi_on_no_history): New functions.
652 (ui_out_free_cleanup): Delete function.
653 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
654 instead use the one already stored in the MI interpreter data.
656 * tui/tui-interp.c: Include infrun.h and observer.h.
657 (tui_interp): New global.
658 (tui_on_signal_received, tui_on_end_stepping_range)
659 (tui_on_signal_exited, tui_on_exited)
660 (tui_on_no_history): New functions.
661 (tui_init): Install them as 'end_stepping_range',
662 'signal_received' 'signal_exited', 'exited' and 'no_history'
664 (_initialize_tui_interp): Delete tui_interp local.
666 2014-05-29 Pedro Alves <palves@redhat.com>
669 * linux-nat.c (linux_nat_resume_callback): Rename the second
670 parameter to 'except'. Skip LP if it points to EXCEPT.
671 (linux_nat_resume): Don't mark the event lwp as not stopped
672 before resuming sibling lwps. Instead ask
673 linux_nat_resume_callback to skip the event lwp. Mark it as not
674 stopped after actually resuming it.
675 (linux_handle_syscall_trap): Mark the lwp as not stopped after
677 (wait_lwp): Mark the lwp as stopped here.
678 (stop_wait_callback): Mark the lwp as not stopped right after
679 resuming it. Don't mark lwps as stopped here.
680 (linux_nat_filter_event): Mark the lwp as stopped earlier.
681 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
683 2014-05-29 Pedro Alves <palves@redhat.com>
686 * infrun.c (resume): Determine how much to resume depending on
687 whether the caller wanted a step, not whether we can hardware step
688 the target. Mark all threads that we intend to run as running,
689 unless we're calling an inferior function.
690 (normal_stop): If the thread is running an infcall, don't finish
692 * target.c (target_resume): Don't mark threads as running here.
694 2014-05-28 Joel Brobecker <brobecker@adacore.com>
696 * serial.c (_initialize_serial): Remove support for
697 the "set remotebaud" and "show remotebaud" commands.
698 * NEWS: Add entry documenting the removal of that command.
700 2014-05-28 Yao Qi <yao@codesourcery.com>
702 * charset.c: Fix typo in comments.
704 2014-05-27 Gary Benson <gbenson@redhat.com>
706 * utils.c (internal_vproblem): Prompt for a bug report.
708 2014-05-26 Andy Wingo <wingo@igalia.com>
710 * guile/scm-arch.c (arscm_mark_arch_smob):
711 * guile/scm-block.c (bkscm_mark_block_smob)
712 (bkscm_mark_block_syms_progress_smob):
713 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
714 * guile/scm-exception.c (exscm_mark_exception_smob):
715 * guile/scm-frame.c (frscm_mark_frame_smob):
716 * guile/scm-iterator.c (itscm_mark_iterator_smob):
717 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
718 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
719 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
720 (ppscm_mark_pretty_printer_worker_smob):
721 * guile/scm-symbol.c (syscm_mark_symbol_smob):
722 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
723 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
724 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
726 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
729 2014-05-26 Andy Wingo <wingo@igalia.com>
730 Doug Evans <xdje42@gmail.com>
732 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
733 empty_base_class. All uses updated.
734 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
735 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
737 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
738 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
739 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
740 (gdbscm_gsmob_has_property_p, add_property_name)
741 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
742 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
743 (gdb-object-has-property?, gdb-object-properties): Remove.
744 (gdb-object-kind): Renamed from gsmob-kind.
746 2014-05-26 Andy Wingo <wingo@igalia.com>
748 * configure.ac (try_guile_versions): Allow building with guile 2.2.
749 * configure: Regenerate.
751 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
753 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
755 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
757 * record-btrace.c (record_btrace_allow_memory_access): Remove.
758 (replay_memory_access_read_only, replay_memory_access_read_write)
759 (replay_memory_access_types, replay_memory_access)
760 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
761 (cmd_set_record_btrace, cmd_show_record_btrace)
762 (cmd_show_replay_memory_access): New.
763 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
764 (record_btrace_remove_breakpoint): Replace
765 record_btrace_allow_memory_access with replay_memory_access.
766 (_initialize_record_btrace): Add commands.
769 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
771 * aarch64-linux-nat.c (asm/ptrace.h): Include.
773 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
775 * MAINTAINERS (Write After Approval): Move self back from
778 2014-05-22 Pedro Alves <palves@redhat.com>
780 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
781 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
782 (disable_randomization, enum exec_direction_kind)
783 (execution_direction, stop_registers, start_remote)
784 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
785 (wait_for_inferior, normal_stop, get_last_target_status)
786 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
787 (insert_step_resume_breakpoint_at_sal)
788 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
789 (set_step_info, print_stop_event, signal_stop_state)
790 (signal_print_state, signal_pass_state, signal_stop_update)
791 (signal_print_update, signal_pass_update)
792 (update_signals_program_target, clear_exit_convenience_vars)
793 (displaced_step_dump_bytes, update_observer_mode)
794 (signal_catch_update, gdb_signal_from_command): Move
796 * infrun.h: ... to this new file.
797 * amd64-tdep.c: Include infrun.h.
798 * annotate.c: Include infrun.h.
799 * arch-utils.c: Include infrun.h.
800 * arm-linux-tdep.c: Include infrun.h.
801 * arm-tdep.c: Include infrun.h.
802 * break-catch-sig.c: Include infrun.h.
803 * breakpoint.c: Include infrun.h.
804 * common/agent.c: Include infrun.h instead of inferior.h.
805 * corelow.c: Include infrun.h.
806 * event-top.c: Include infrun.h.
807 * go32-nat.c: Include infrun.h.
808 * i386-tdep.c: Include infrun.h.
809 * inf-loop.c: Include infrun.h.
810 * infcall.c: Include infrun.h.
811 * infcmd.c: Include infrun.h.
812 * infrun.c: Include infrun.h.
813 * linux-fork.c: Include infrun.h.
814 * linux-nat.c: Include infrun.h.
815 * linux-thread-db.c: Include infrun.h.
816 * monitor.c: Include infrun.h.
817 * nto-tdep.c: Include infrun.h.
818 * procfs.c: Include infrun.h.
819 * record-btrace.c: Include infrun.h.
820 * record-full.c: Include infrun.h.
821 * remote-m32r-sdi.c: Include infrun.h.
822 * remote-mips.c: Include infrun.h.
823 * remote-notif.c: Include infrun.h.
824 * remote-sim.c: Include infrun.h.
825 * remote.c: Include infrun.h.
826 * reverse.c: Include infrun.h.
827 * rs6000-tdep.c: Include infrun.h.
828 * s390-linux-tdep.c: Include infrun.h.
829 * solib-irix.c: Include infrun.h.
830 * solib-osf.c: Include infrun.h.
831 * solib-svr4.c: Include infrun.h.
832 * target.c: Include infrun.h.
833 * top.c: Include infrun.h.
834 * windows-nat.c: Include infrun.h.
835 * mi/mi-interp.c: Include infrun.h.
836 * mi/mi-main.c: Include infrun.h.
837 * python/py-threadevent.c: Include infrun.h.
839 2014-05-22 Pedro Alves <palves@redhat.com>
841 * infrun.c (handle_inferior_event): Store the exit code for
842 --return-child-result here, instead of ...
843 (print_exited_reason): ... here.
845 2014-05-21 Pedro Alves <palves@redhat.com>
848 * gdbthread.h (struct thread_control_state): New field
850 * infrun.c (follow_fork): Copy the new thread control field to the
852 (clear_proceed_status_thread): Clear the new thread control field.
853 (proceed): Set the new thread control field.
854 * interps.h (command_interp): Declare.
855 * interps.c (command_interpreter): New global.
856 (command_interp): New function.
857 (interp_exec): Set `command_interpreter' while here.
858 * cli-out.c (cli_uiout_dtor): New function.
859 (cli_ui_out_impl): Install it.
860 * mi/mi-interp.c: Include cli-out.h.
861 (mi_cmd_interpreter_exec): Add comment.
862 (restore_current_uiout_cleanup): New function.
863 (ui_out_free_cleanup): New function.
864 (mi_on_normal_stop): If finishing an execution command started by
865 a CLI command, or any kind of breakpoint-like event triggered,
866 print the stop event to the output (CLI) stream.
867 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
869 2014-05-21 Pedro Alves <palves@redhat.com>
871 * cli/cli-cmds.c (list_command): Handle the first "list" after the
872 current source line having changed.
873 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
874 * infrun.c (normal_stop): Adjust call to
875 set_current_sal_from_frame.
876 * source.c (clear_lines_listed_range): New function.
877 (set_current_source_symtab_and_line, identify_source_line): Clear
878 the lines listed range.
879 (line_info): Handle the first "info line" after the current source
881 * stack.c (print_stack_frame): Remove center handling.
882 (set_current_sal_from_frame): Remove 'center' parameter. Don't
885 2014-05-21 Pedro Alves <palves@redhat.com>
887 * inf-child.c (inf_child_mourn_inferior): New function.
888 * inf-child.h (inf_child_mourn_inferior): New declaration.
889 * darwin-nat.c (darwin_mourn_inferior): Use
890 inf_child_mourn_inferior.
891 * gnu-nat.c (gnu_mourn_inferior): Likewise.
892 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
893 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
894 * nto-procfs.c (procfs_mourn_inferior): Likewise.
895 * windows-nat.c (windows_mourn_inferior): Likewise.
897 2014-05-21 Doug Evans <xdje42@gmail.com>
899 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
901 2014-05-21 Doug Evans <xdje42@gmail.com>
903 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
904 (gdbscm_out_of_range_error): Ditto.
905 (gdbscm_memory_error): Ditto.
906 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
907 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
908 (gdbscm_out_of_range_error): Update.
909 (gdbscm_memory_error): Update.
910 (gdbscm_scm_to_target_string_unsafe): Delete.
912 2014-05-21 Pedro Alves <palves@redhat.com>
914 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
916 (inf_child_open_target): New function.
917 (inf_child_open): Use inf_child_open_target to push the target
918 instead of erroring out.
919 (inf_child_disconnect, inf_child_close)
920 (inf_child_maybe_unpush_target): New functions.
921 (inf_child_target): Install inf_child_disconnect and
922 inf_child_close. Store a pointer to the returned object.
923 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
925 * target.c (auto_connect_native_target): New global.
926 (show_default_run_target): New function.
927 (find_default_run_target): Return NULL if automatically connecting
928 to the native target is disabled.
929 (_initialize_target): Install set/show auto-connect-native-target.
930 * NEWS: Mention "set auto-connect-native-target", and "target
932 * linux-nat.c (super_close): New global.
933 (linux_nat_close): Call super_close.
934 (linux_nat_add_target): Store a pointer to the base class's
936 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
937 inf_child_maybe_unpush.
938 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
940 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
941 the inferior. Use inf_child_maybe_unpush_target.
942 (inf_ttrace_attach): Don't push the target if it is already
944 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
945 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
946 after mourning the inferior. Use inf_child_maybe_unpush_target.
947 (darwin_attach_pid): Don't push the target if it is already
949 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
950 mourning the inferior. Use inf_child_maybe_unpush_target.
951 (gnu_detach): Use inf_child_maybe_unpush_target.
952 * go32-nat.c (go32_create_inferior): Don't push the target if it
954 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
955 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
956 (procfs_open): Rename to ...
957 (procfs_open_1): ... this. Add target_ops parameter. Adjust
958 comments. Can target_preopen before changing node. Call
959 inf_child_open_target to push the target explicitly.
960 (procfs_attach): Don't push the target if it is already pushed.
961 (procfs_detach): Use inf_child_maybe_unpush_target.
962 (procfs_create_inferior): Don't push the target if it is already
964 (nto_native_ops): New global.
965 (procfs_open): Reimplement.
966 (procfs_native_open): New function.
967 (init_procfs_targets): Install procfs_native_open as to_open of
968 "target native". Store a pointer to the "native" target in
970 * procfs.c (procfs_attach): Don't push the target if it is already
972 (procfs_detach): Use inf_child_maybe_unpush_target.
973 (procfs_mourn_inferior): Only unpush the target after mourning the
974 inferior. Use inf_child_maybe_unpush_target.
975 (procfs_init_inferior): Don't push the target if it is already
977 * windows-nat.c (do_initial_windows_stuff): Don't push the target
978 if it is already pushed.
980 2014-05-21 Pedro Alves <palves@redhat.com>
982 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
983 and "procfs" targets are now called "native" instead.
985 2014-05-21 Pedro Alves <palves@redhat.com>
987 * go32-nat.c (go32_open): Delete.
988 (go32_target): Don't override the to_open method.
990 2014-05-21 Pedro Alves <palves@redhat.com>
992 * nto-procfs.c (procfs_can_run): New function.
993 (nto_procfs_ops): New global.
994 (init_procfs_targets): New, based on procfs_target. Install
995 "target native" in addition to "target procfs".
996 (_initialize_procfs): Call init_procfs_targets instead of adding
999 2014-05-21 Pedro Alves <palves@redhat.com>
1001 * windows-nat.c (windows_target): Don't override to_shortname,
1002 to_longname or to_doc.
1004 2014-05-21 Pedro Alves <palves@redhat.com>
1006 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1009 2014-05-21 Pedro Alves <palves@redhat.com>
1011 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1012 to_shortname, to_longname or to_doc.
1014 2014-05-21 Pedro Alves <palves@redhat.com>
1016 * go32-nat.c (go32_target): Don't override to_shortname,
1017 to_longname or to_doc.
1019 2014-05-21 Pedro Alves <palves@redhat.com>
1021 * inf-child.c (inf_child_open): Remove mention of "child".
1022 (inf_child_target): Rename target to "native" instead of "child".
1024 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1026 * Makefile.in (SFILES): Delete "regset.c".
1027 (COMMON_OBS): Delete "regset.o".
1029 * regset.h (regset_alloc): Delete prototype.
1031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1033 * sparc-linux-tdep.c (sparc32_linux_gregset)
1034 (sparc32_linux_fpregset): New static regset structures.
1035 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1036 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1038 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1039 (sparc64_linux_fpregset): New static regset structures.
1040 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1041 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1042 New static regset structures.
1043 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1044 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1045 New static regset structures.
1046 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1047 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1048 New static regset structures.
1049 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1050 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1051 New static regset structures.
1052 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1054 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1056 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1057 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1058 register maps ("regmaps") from "*regset" to "*regmap". Do this
1059 for all regmap types and variables.
1060 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1061 (sparc32_linux_supply_core_gregset)
1062 (sparc32_linux_collect_core_gregset)
1063 (sparc32_linux_supply_core_fpregset)
1064 (sparc32_linux_collect_core_fpregset): Likewise.
1065 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1066 (sparc_gregmap, sparc_fpregmap): ... these.
1067 (sparc_supply_gregset, sparc_collect_gregset)
1068 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1069 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1070 (_initialize_sparc_nat): Rename regmaps.
1071 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1072 (sparc_gregmap, sparc_fpregmap): ... these.
1073 (sparc_supply_gregset, sparc_collect_gregset)
1074 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1075 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1077 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1078 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1080 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1082 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1083 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1084 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1086 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1087 (sparc32_bsd_fpregset): Rename to...
1088 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1089 (sparc32_bsd_fpregmap): ... these.
1090 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1091 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1092 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1093 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1094 (struct sparc_gregmap, struct sparc_fpregmap)
1095 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1096 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1097 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1098 (sparc32_supply_regset, sparc32_collect_gregset)
1099 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1101 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1102 (sparc64_linux_ptrace_gregmap): ... this.
1103 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1104 (_initialize_sparc64_linux_nat): Rename regmaps.
1105 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1106 (sparc64_linux_core_gregmap): ... this.
1107 (sparc64_linux_supply_core_gregset)
1108 (sparc64_linux_collect_core_gregset)
1109 (sparc64_linux_supply_core_fpregset)
1110 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1111 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1112 (sparc64_sol2_fpregset): Rename to...
1113 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1114 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1115 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1117 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1118 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1119 (sparc64_bsd_fpregset): Rename to...
1120 (struct sparc_gregmap, sparc64_sol2_gregmap)
1121 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1122 (sparc64_bsd_fpregmap): ... these.
1123 (sparc64_supply_gregset, sparc64_collect_gregset)
1124 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1126 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1127 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1128 (sparc64fbsd_gregmap): ... this.
1129 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1130 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1132 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1133 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1134 (sparc64nbsd_collect_fpregset): Likewise.
1135 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1136 (sparc64nbsd_gregmap): ... this.
1137 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1139 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1140 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1141 (sparc64obsd_gregmap): ... this.
1142 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1144 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1145 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1146 (sparc32nbsd_gregmap): ... this.
1147 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1150 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1152 * score-tdep.c (score7_linux_gregset): New static regset
1154 (score7_linux_regset_from_core_section): Remove dynamic regset
1156 (score_gdbarch_init): Drop allocation of tdep structure.
1157 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1159 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1161 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1163 (am33_regset_from_core_section): Remove dynamic regset
1166 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1168 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1169 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1171 (mips_linux_regset_from_core_section): Remove dynamic regset
1173 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1174 'gregset64', 'fpregset', and 'fpregset64'.
1175 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1176 deleted tdep fields.
1178 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1180 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1182 (amd64_regset_from_core_section): Remove dynamic regset
1184 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1186 (amd64obsd_regset_from_core_section): Remove dynamic regset
1188 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1190 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1191 x86-common regset supply function.
1192 * i386-tdep.c (i386_collect_gregset): Make static.
1193 (i386_gregset): New global regset structure.
1194 (i386_fpregset, i386_xstateregset): New static regset structures.
1195 (i386_regset_from_core_section): Remove dynamic regset
1197 (i386_gdbarch_init): Remove initialization of tdep fields
1198 'gregset', 'fpregset', and 'xstateregset'.
1199 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1200 'fpregset', and 'xstateregset'.
1201 (i386_collect_gregset): Remove prototype.
1202 (i386_gregset): New declaration.
1203 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1205 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1208 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1211 (arm_linux_vfpregset): New static regset structures.
1212 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1214 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1215 and 'vfpregset' fields.
1217 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1219 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1220 (aarch64_linux_fpregset): New static regset structures.
1221 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1222 of regset structures.
1223 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1226 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1228 * regset.h (struct regset): Remove gdbarch field.
1229 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1230 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1231 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1233 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1234 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1235 (ppc32_linux_vsxregset): Likewise.
1236 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1237 via the regcache instead of the regset.
1238 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1239 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1240 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1241 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1244 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1246 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1247 Constify structures.
1248 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1249 (alphanbsd_aout_gregset): Likewise.
1250 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1251 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1253 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1254 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1256 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1257 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1258 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1259 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1260 * m88k-tdep.c (m88k_gregset): Likewise.
1261 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1262 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1263 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1264 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1265 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1266 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1267 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1268 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1269 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1271 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1272 * sh-tdep.h (sh_corefile_gregset): Likewise.
1273 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1274 * vax-tdep.c (vax_gregset): Likewise.
1276 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1278 Fix TLS access for -static -pthread.
1279 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1280 (try_thread_db_load_1): Initialize it.
1281 (thread_db_get_thread_local_address): Call it if LM is zero.
1282 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1283 * target.h (struct target_ops) (to_get_thread_local_address): Add
1284 load_module_addr comment.
1286 2014-05-21 Pedro Alves <palves@redhat.com>
1288 * dcache.c (dcache_read_memory_partial): If reading the cache line
1289 fails, fallback to reading just the memory the caller wanted.
1291 2014-05-20 Doug Evans <dje@google.com>
1293 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1294 instead of get_current_arch.
1296 2014-05-20 Pedro Alves <palves@redhat.com>
1298 * NEWS: Mention that compare-sections now works with all targets.
1300 * remote.c (PACKET_qCRC): New enum value.
1301 (remote_verify_memory): Don't send qCRC if the target has no
1302 execution. Use packet_support/packet_ok. If the target doesn't
1303 support the qCRC packet, fallback to a deep memory copy.
1304 (compare_sections_command): Say "target image" instead of "remote
1306 (_initialize_remote): Add PACKET_qCRC to the list of config
1307 packets that have no associated command. Extend comment.
1308 * target.c (simple_verify_memory, default_verify_memory): New
1310 * target.h (struct target_ops) <to_verify_memory>: Default to
1311 default_verify_memory.
1312 (simple_verify_memory): New declaration.
1313 * target-delegates.c: Regenerate.
1315 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1317 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1319 2014-05-20 Hui Zhu <hui@codesourcery.com>
1320 Yao Qi <yao@codesourcery.com>
1323 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1324 and change address of sp and pc.
1326 2014-05-19 Tom Tromey <tromey@redhat.com>
1328 * gdbtypes.c (rank_function): Use XNEWVEC.
1329 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1331 2014-05-19 Doug Evans <dje@google.com>
1333 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1334 build_type_unit_groups and moved closer to only caller. Remove
1335 arguments. All references updated. Remove outdated .gdb_index
1337 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1338 build_type_psymtabs_1.
1340 2014-05-19 Doug Evans <dje@google.com>
1342 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1343 n_type_unit_groups, all_type_unit_groups. All uses removed.
1344 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1345 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1346 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1347 (add_type_unit_group_to_table): Delete.
1349 2014-05-19 Doug Evans <dje@google.com>
1351 * eval.c (evaluate_subexp_standard): Add some comments.
1353 2014-05-17 Doug Evans <xdje42@gmail.com>
1355 * progspace.c (remove_program_space): Delete, unused.
1356 * progspace.h (remove_program_space): Ditto.
1358 2014-05-17 Doug Evans <xdje42@gmail.com>
1360 * inferior.c (prune_inferiors): Fix comment.
1361 (remove_inferior_command): Call prune_program_spaces.
1363 2014-05-16 Doug Evans <dje@google.com>
1365 New command line option -D.
1367 * main.c (set_gdb_data_directory): New function.
1368 (captured_main): Recognize -D. Flag error for --data-directory "".
1369 Call set_gdb_data_directory.
1370 (print_gdb_help): Print --data-directory, -D.
1371 * main.h (set_gdb_data_directory): Declare.
1372 * top.c (staged_gdb_datadir): New static global.
1373 (set_gdb_datadir): Call set_gdb_data_directory
1374 (show_gdb_datadir): New function.
1375 (init_main): Update init of data-directory parameter.
1377 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1379 Import the "dirfd" gnulib module.
1380 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1381 * gnulib/aclocal.m4: Update.
1382 * gnulib/config.in: Update.
1383 * gnulib/configure: Update.
1384 * gnulib/import/Makefile.am: Update.
1385 * gnulib/import/Makefile.in: Update.
1386 * gnulib/import/dirfd.c: New.
1387 * gnulib/import/m4/dirfd.m4: New.
1388 * gnulib/import/m4/gnulib-cache.m4: Update.
1389 * gnulib/import/m4/gnulib-comp.m4: Update.
1391 2014-05-16 Pierre Muller <muller@sourceware.org>
1392 Yao Qi <yao@codesourcery.com>
1394 * valprint.c (print_wchar): Move the code on checking whether
1395 W is a printable wide char to the default branch of switch
1396 statement below. Call wchar_printable instead of gdb_iswprint.
1398 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1400 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1401 ldr.w and ldrd instructions.
1403 2014-05-15 Doug Evans <dje@google.com>
1405 * dwarf2read.c (read_structure_type): Delete outdated comments.
1407 2014-05-14 Tom Tromey <tromey@redhat.com>
1409 * macrocmd.c (print_macro_definition): Reindent.
1411 2014-05-13 Doug Evans <xdje42@gmail.com>
1413 * python/py-cmd.c (cmdpy_completer): Add comment.
1414 (completers): Make const.
1416 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1418 * infrun.c (resume): Remove should_resume (unused). Move up
1419 declaration of resume_ptid.
1421 2014-05-13 Tom Tromey <tromey@redhat.com>
1423 * language.h (unop_type_check): Remove.
1424 (binop_type_check): Don't declare.
1426 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1428 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1429 call to regcache_raw_collect.
1431 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1433 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1434 mi_console->quote as the quoting character.
1436 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1438 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1440 2014-04-29 Tom Tromey <tromey@redhat.com>
1442 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1443 "show debug varobj".
1445 2014-05-07 Kyle McMartin <kyle@redhat.com>
1447 Pushed by Joel Brobecker <brobecker@adacore.com>.
1448 * aarch64-tdep.c (aarch64_software_single_step): New function.
1449 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1450 with aarch64_software_single_step.
1452 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1456 2014-05-05 Keith Seitz <keiths@redhat.com>
1458 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1459 variable or history value is successfully parsed.
1461 2014-05-05 Yao Qi <yao@codesourcery.com>
1462 Pedro Alves <palves@redhat.com>
1464 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1465 address of blocks that intersects the requested range. Trim
1466 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1468 * ctf.c (ctf_xfer_partial): Likewise.
1470 2014-05-05 Yao Qi <yao@codesourcery.com>
1472 * printcmd.c (display_command): Remove the check to
1473 target_has_execution.
1475 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1477 * ppcobsd-nat.c: Include "obsd-nat.h".
1478 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1480 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1482 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1484 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1485 and 16-bit signed and unsigned arguments. Update comment.
1486 (stap_parse_probe_arguments): Extend code to handle such
1487 arguments. Use warning instead of complaint to notify about
1488 unrecognized bitness.
1490 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1492 PR breakpoints/16889
1493 * stap-probe.c (stap_parse_probe_arguments): Simplify
1494 check for non-prefixed probes (i.e., probes whose
1495 arguments do not start with "N@"). Always set the
1496 argument type to a sane value.
1498 2014-05-01 David Taylor <dtaylor@emc.com>
1500 * remote.c (compare_sections_command): Add -r option to compare
1501 all loadable read-only sections.
1503 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1505 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1506 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1508 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1509 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1510 Remove unused CORE_ADDR argument. Update all callers.
1512 2014-04-29 Pedro Alves <palves@redhat.com>
1514 * remote.c (struct packet_config) <detect>: Extend comment.
1515 (add_packet_config_cmd): Don't set the config's detect or support
1517 (init_all_packet_configs): Also initialize the config's 'detect'
1519 (reset_all_packet_configs_support): New function.
1520 (remote_open_1): Call reset_all_packet_configs_support instead of
1521 init_all_packet_configs.
1522 (_initialize_remote): Initialize all packet configs. Assert that
1523 all packets have an associated command, except a few known
1526 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1528 * dwarf2read.c (read_subrange_type): Handle dynamic
1529 DW_AT_lower_bound attributes.
1531 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1533 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1534 dynamic bounds before computing its upper bound.
1535 (ada_discrete_type_low_bound): Same as above with the lower bound.
1537 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1539 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1540 range types. Adjust the array handling implementation to
1541 take advantage of this change.
1542 (resolve_dynamic_range): New function, mostly extracted from
1543 resolve_dynamic_bounds.
1544 (resolve_dynamic_array): New function, mostly extracted from
1545 resolve_dynamic_bounds.
1546 (resolve_dynamic_bounds): Delete.
1547 (resolve_dynamic_type): Reimplement. Add handling of
1548 TYPE_CODE_RANGE types.
1550 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1552 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1553 handling of parallel ___XA types.
1555 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1557 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1558 unnecessary second call to static_unwrap_type.
1560 2014-04-27 Hui Zhu <hui@codesourcery.com>
1562 * stack.c (print_frame_info): Call do_gdb_disassembly with
1563 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1565 2014-04-26 Doug Evans <xdje42@gmail.com>
1567 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1569 2014-04-25 Pedro Alves <palves@redhat.com>
1572 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1573 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1574 and newline from built string.
1575 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1576 (linux_ptrace_attach_fail_reason): ... this.
1577 * linux-nat.c (linux_nat_attach): Adjust to use
1578 linux_ptrace_attach_fail_reason.
1580 2014-04-25 Pedro Alves <palves@redhat.com>
1582 * remote.c (struct remote_state): Remove multi_process_aware,
1583 non_stop_aware, cond_tracepoints, cond_breakpoints,
1584 breakpoint_commands, fast_tracepoints, static_tracepoints,
1585 install_in_trace, disconnected_tracing,
1586 enable_disable_tracepoints, string_tracing, and
1587 augmented_libraries_svr4_read fields.
1588 (remote_multi_process_p): Move further below in the file.
1589 (struct packet_config): Add comments.
1590 (update_packet_config): Delete function.
1591 (show_packet_config_cmd): Use packet_config_support.
1592 (add_packet_config_cmd): Use NULL as set callback.
1593 (packet_ok): "set remote foo-packet"-style commands no longer
1594 change config->supported -- adjust.
1595 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1596 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1597 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1598 (PACKET_QNonStop, PACKET_multiprocess_feature)
1599 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1600 (PACKET_DisconnectedTracing_feature)
1601 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1602 (set_remote_protocol_packet_cmd): Delete function.
1603 (packet_config_support, packet_support): New functions.
1604 (set_remote_protocol_Z_packet_cmd): Don't call
1605 update_packet_config.
1606 (remote_query_attached, remote_pass_signals)
1607 (remote_program_signals, remote_threads_info)
1608 (remote_threads_extra_info, remote_start_remote): Use
1610 (remote_start_remote): Use packet_config_support and
1612 (init_all_packet_configs): Set all packets to unknown support,
1613 instead of calling update_packet_config.
1614 (remote_check_symbols): Use packet_support.
1615 (remote_supported_packet): Unconditionally set the packet config's
1617 (remote_multi_process_feature, remote_non_stop_feature)
1618 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1619 (remote_breakpoint_commands_feature)
1620 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1621 (remote_install_in_trace_feature)
1622 (remote_disconnected_tracing_feature)
1623 (remote_enable_disable_tracepoint_feature)
1624 (remote_string_tracing_feature)
1625 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1626 (remote_protocol_features): Adjust to use remote_supported_packet
1627 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1628 "ConditionalTracepoints", "ConditionalBreakpoints",
1629 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1630 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1631 "EnableDisableTracepoints", and "tracenz".
1632 (remote_query_supported): Use packet_support.
1633 (remote_open_1): Adjust.
1634 (extended_remote_attach_1): Use packet_support. Switch on the
1635 result of packet_ok instead of checking whether the packet ended
1637 (remote_vcont_resume): Use packet_support.
1638 (remote_resume, remote_stop_ns, fetch_register_using_p)
1639 (remote_prepare_to_store, store_register_using_P)
1640 (check_binary_download, remote_write_bytes): Use packet_support.
1641 (remote_vkill): Use packet_support. Switch on the result of
1642 packet_ok instead of checking whether the packet ended up
1644 (extended_remote_supports_disable_randomization): Use
1646 (extended_remote_run): Switch on the result of packet_ok instead
1647 of checking whether the packet ended up disabled.
1648 (remote_insert_breakpoint, remote_remove_breakpoint)
1649 (remote_insert_watchpoint, remote_remove_watchpoint)
1650 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1652 (remote_search_memory): Use packet_config_support.
1653 (remote_get_thread_local_address, remote_get_tib_address)
1654 (remote_hostio_send_command, remote_can_execute_reverse): Use
1656 (remote_supports_cond_tracepoints)
1657 (remote_supports_cond_breakpoints)
1658 (remote_supports_fast_tracepoints)
1659 (remote_supports_static_tracepoints)
1660 (remote_supports_install_in_trace)
1661 (remote_supports_enable_disable_tracepoint)
1662 (remote_supports_string_tracing)
1663 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1664 the packet config says the feature is enabled or disabled.
1665 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1666 (remote_get_trace_status): Use packet_support.
1667 (remote_set_disconnected_tracing): Adjust to check whether the
1668 feature is enabled with packet_support.
1669 (remote_set_trace_buffer_size, remote_use_agent)
1670 (remote_can_use_agent, remote_supports_btrace): Use
1672 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1673 Use packet_config_support.
1674 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1675 the packet config says the feature is enabled or disabled.
1676 (set_range_stepping): Use packet_support.
1678 2014-04-25 Tom Tromey <tromey@redhat.com>
1680 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1683 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1685 * NEWS: Mention support for C99 variable length arrays.
1687 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1689 * ada-lang.c (standard_exc): Expand introductory comment.
1691 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1692 Walfred Tedeschi <walfred.tedeschi@intel.com>
1694 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1696 (amd64_linux_read_description): Add code to handle AVX512 xstate
1697 mask and return respective tdesc.
1698 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1699 and features/i386/x32-avx512-linux.c.
1700 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1701 (amd64_linux_core_read_description): Add code to handle AVX512
1702 xstate mask and return respective tdesc.
1703 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1704 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1706 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1707 (tdesc_amd64_avx512_linux): New prototype.
1708 (tdesc_x32_avx512_linux): Likewise.
1709 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1710 features/i386/x32-avx512.c.
1711 (amd64_ymm_avx512_names): New register names for pseudo
1713 (amd64_ymmh_avx512_names): New register names for raw registers
1715 (amd64_k_names): New register names for K registers.
1716 (amd64_zmmh_names): New register names for ZMM raw registers.
1717 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1718 (amd64_xmm_avx512_names): New register names for XMM16-31
1720 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1722 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1723 if feature is present.
1724 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1725 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1726 (AMD64_NUM_REGS): Adjust to new number of registers.
1727 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1728 registers supplied via XSTATE by AVX512 registers.
1729 (i386_linux_read_description): Add case for AVX512.
1730 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1731 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1732 (i386_linux_core_read_description): Add case for AVX512.
1733 (i386_linux_init_abi): Install supported register note section
1735 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1737 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1738 registers to be number of zmm7h + 1.
1739 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1740 * i386-tdep.c: Include features/i386/i386-avx512.c.
1741 (i386_zmm_names): Add ZMM pseudo register names array.
1742 (i386_zmmh_names): Add ZMM raw register names array.
1743 (i386_k_names): Add K raw register names array.
1744 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1745 registers. AVX512 has 16 more ZMM registers than there are YMM
1747 (i386_zmmh_regnum_p): Add function to look up register number of
1749 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1750 (i386_k_regnum_p): Likewise for K raw registers.
1751 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1752 registers added by AVX512.
1753 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1754 registers added by AVX512.
1755 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1757 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1758 (i386_pseudo_register_name): Add ZMM pseudo registers.
1759 (i386_zmm_type): Construct and return vector registers type for ZMM
1761 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1762 ZMM0-31 pseudo registers and K registers.
1763 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1764 and YMM16-31 registers from register cache.
1765 (i386_pseudo_register_write): Add code to write K, ZMM and
1767 (i386_register_reggroup_p): Add code to include/exclude AVX512
1768 registers in/from respective register groups.
1769 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1770 registers if feature is present in xcr0.
1771 (i386_gdbarch_init): Add code to initialize AVX512 feature
1772 variables in tdep structure, wire in pseudo registers and call
1773 initialize_tdesc_i386_avx512.
1774 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1776 (i386_regnum): Add AVX512 registers.
1777 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1778 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1779 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1780 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1782 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1783 (i386_ymm_avx512_regnum_p): Likewise.
1784 (i386_k_regnum_p): Likewise.
1785 (i386_zmm_regnum_p): Likewise.
1786 (i386_zmmh_regnum_p): Likewise.
1787 * i387-tdep.c : Update year in copyright notice.
1788 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1790 (XSAVE_YMM_AVX512_ADDR): New macro.
1791 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1793 (XSAVE_XMM_AVX512_ADDR): New macro.
1794 (xsave_avx512_k_offset): New table for K register offsets in
1796 (XSAVE_AVX512_K_ADDR): New macro.
1797 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1799 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1800 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1802 (i387_collect_xsave): Add code to collect AVX512 registers from
1804 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1805 of XMM16-31 registers.
1806 (I387_NUM_K_REGS): New define for number of K registers.
1807 (I387_K0_REGNUM): New define for K0 register number.
1808 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1809 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1810 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1812 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1813 (I387_XMM16_REGNUM): New define for XMM16 register number.
1814 (I387_YMM0_REGNUM): New define for YMM0 register number.
1815 (I387_KEND_REGNUM): New define for last K register number.
1816 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1817 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1819 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1821 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1823 * features/Makefile: Add AVX512 related files.
1824 * features/i386/32bit-avx512.xml: New file.
1825 * features/i386/64bit-avx512.xml: Likewise.
1826 * features/i386/amd64-avx512-linux.c: Likewise.
1827 * features/i386/amd64-avx512-linux.xml: Likewise.
1828 * features/i386/amd64-avx512.c: Likewise.
1829 * features/i386/amd64-avx512.xml: Likewise.
1830 * features/i386/i386-avx512-linux.c: Likewise.
1831 * features/i386/i386-avx512-linux.xml: Likewise.
1832 * features/i386/i386-avx512.c: Likewise.
1833 * features/i386/i386-avx512.xml: Likewise.
1834 * features/i386/x32-avx512-linux.c: Likewise.
1835 * features/i386/x32-avx512-linux.xml: Likewise.
1836 * features/i386/x32-avx512.c: Likewise.
1837 * features/i386/x32-avx512.xml: Likewise.
1838 * regformats/i386/amd64-avx512-linux.dat: New file.
1839 * regformats/i386/amd64-avx512.dat: Likewise.
1840 * regformats/i386/i386-avx512-linux.dat: Likewise.
1841 * regformats/i386/i386-avx512.dat: Likewise.
1842 * regformats/i386/x32-avx512-linux.dat: Likewise.
1843 * regformats/i386/x32-avx512.dat: Likewise.
1844 * NEWS: Add note about new support for AVX512.
1847 2014-04-23 Pedro Alves <palves@redhat.com>
1849 * breakpoint.c (insert_bp_location): Tolerate errors if the
1850 breakpoint is set in a user-loaded objfile.
1851 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1852 location is marked shlib_disabled. If the breakpoint is set in a
1853 user-loaded objfile is a GDB-side memory breakpoint, validate it
1854 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1855 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1857 * mem-break.c (memory_validate_breakpoint): New function.
1858 * objfiles.c (userloaded_objfile_contains_address_p): New
1860 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1861 * target.h (memory_validate_breakpoint): New declaration.
1863 2014-04-23 Pedro Alves <palves@redhat.com>
1865 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1866 the breakpoint is set in a shared library, only suppress
1867 errors for software breakpoints, not hardware breakpoints.
1869 2014-04-22 Pedro Alves <palves@redhat.com>
1871 * infrun.c (schedlock_applies): New function, factored out from
1872 find_thread_needs_step_over.
1873 (find_thread_needs_step_over): Use it.
1874 (switch_back_to_stepped_thread): Always clear trap_expected if the
1875 step over is finished. Return early if scheduler locking applies.
1876 Look for the stepping thread and a potential step-over thread with
1878 (currently_stepping_or_nexting_callback): Delete.
1880 2014-04-22 Nick Clifton <nickc@redhat.com>
1882 * NEWS: Mention that ARM sim now supports tracing.
1884 2014-04-22 Yao Qi <yao@codesourcery.com>
1886 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1888 * tracefile.c (tracefile_fetch_registers): ... it. New
1890 * tracefile.h (tracefile_fetch_registers): Declare.
1891 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1892 tracefile_fetch_registers.
1894 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1897 * windows-nat.c (thread_rec): Don't display a warning when
1898 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1899 fails for any reason, set th->suspended to -1, so that we don't
1900 try to resume such a thread. Also, don't return NULL in these
1901 cases, to avoid completely ruin the session due to "PC register is
1902 not available" error.
1903 (do_windows_fetch_inferior_registers): Check errors in
1904 GetThreadContext call.
1905 (windows_continue): Accept an additional argument KILLED; if not
1906 zero, ignore errors in the SetThreadContext call, since the
1907 inferior was killed and is shutting down.
1908 (windows_resume, get_windows_debug_event)
1909 (windows_create_inferior, windows_mourn_inferior)
1910 (windows_kill_inferior): All callers of windows_continue changed
1911 to adjust to its new calling sequence.
1913 2014-04-19 Yao Qi <yao@codesourcery.com>
1915 * ctf.c (ctf_open): Call post_create_inferior.
1917 2014-04-19 Yao Qi <yao@codesourcery.com>
1919 * ctf.c (handle_id): New static variable.
1920 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1921 value. Get the declaration of event "register" and get length
1922 of field "contents".
1924 2014-04-19 Yao Qi <yao@codesourcery.com>
1926 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1928 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1930 * valops.c (oload_method_static): Remove unnecessary argument
1931 METHOD. Update all callers.
1933 2014-04-18 Pedro alves <palves@redhat.com>
1934 Tom Tromey <tromey@redhat.com>
1937 * frame.c (get_prev_frame_1): Rename to ...
1938 (get_prev_frame_always): ... this, and make extern. Adjust.
1939 (skip_artificial_frames): Use get_prev_frame_always.
1940 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1941 (get_frame_unwind_stop_reason): Adjust to rename.
1942 * frame.h (get_prev_frame_always): Declare.
1943 * inline-frame.c: Include frame.h.
1944 (inline_frame_this_id): Use get_prev_frame_always.
1946 2014-04-18 Tristan Gingold <gingold@adacore.com>
1948 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1949 code by using bfd_mach_o_get_base_address.
1951 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1953 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1954 (spu_ax_pseudo_register_collect): New function.
1955 (spu_ax_pseudo_register_push_stack): Likewise.
1956 (spu_dwarf_reg_to_regnum): Likewise.
1957 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1959 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1961 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1962 Replace FRAME argument with FRAME_ID.
1963 * gdbarch.c, gdbarch.h: Regenerate.
1964 * findvar.c (default_value_from_register): Add GDBARCH argument;
1965 replace FRAME by FRAME_ID. No longer call get_frame_id.
1966 (value_from_register): Update call to gdbarch_value_from_register.
1967 * value.h (default_value_from_register): Update prototype.
1968 * s390-linux-tdep.c (s390_value_from_register): Update interface
1969 and call to default_value_from_register.
1970 * spu-tdep.c (spu_value_from_register): Likewise.
1972 * findvar.c (address_from_register): Remove TYPE argument.
1973 Do not call value_from_register; use gdbarch_value_from_register
1974 with null_frame_id instead.
1975 * value.h (address_from_register): Update prototype.
1976 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1977 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1978 address_from_register interface change.
1980 2014-04-17 Yao Qi <yao@codesourcery.com>
1982 * gdbtypes.h: Update comments to link to types and macros'
1985 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1987 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1989 2014-04-16 Keith Seitz <keiths@redhat.com>
1992 * dwarf2read.c (skip_one_die): Check that all relative-offset
1993 sibling DIEs fall within range of the current reader's buffer.
1994 (read_partial_die): Likewise.
1996 2014-04-16 Keith Seitz <keiths@redhat.com>
1999 * cp-namespace.c (lookup_symbol_file): If the type name of
2000 `this' is NULL, return immediately.
2002 2014-04-14 Keith Seitz <keiths@redhat.com>
2005 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2006 from symbol_matches_domain in symtab.c. All local callers
2007 of symbol_matches_domain updated.
2008 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2009 search STRUCT_DOMAIN.
2010 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2011 independently. standard_lookup will do that automatically.
2012 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2013 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2014 (cp_lookup_symbol_in_namespace): Likewise.
2015 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2016 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2017 may return a STRUCT_DOMAIN match.
2018 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2019 * cp-support.c: Include language.h.
2020 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2022 * psymtab.c (match_partial_symbol): Compare the requested
2023 domain with the symbol's domain directly.
2024 (lookup_partial_symbol): Likewise.
2025 * symtab.c (lookup_symbol_in_language): Explain when/why
2026 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2027 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2028 appropriate languages.
2029 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2030 and moved to ada-lang.c
2031 (lookup_block_symbol): Explain that this function only returns
2032 symbol matching the requested DOMAIN.
2033 Compare the requested domain with the symbol's domain directly.
2034 (iterate_over_symbols): Compare the requested domain with the
2035 symbol's domain directly.
2036 * symtab.h (symbol_matches_domain): Remove.
2038 2014-04-14 Tom Tromey <tromey@redhat.com>
2041 * c-exp.y (type_aggregate_p): New function.
2042 (qualified_name, classify_inner_name): Use it.
2043 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2044 and TYPE_TARGET_TYPE of an enum type.
2045 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2047 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2048 handle TYPE_DECLARED_CLASS.
2049 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2051 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2052 * valops.c (enum_constant_from_type): New function.
2053 (value_aggregate_elt): Use it.
2054 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2057 2014-04-14 Tom Tromey <tromey@redhat.com>
2059 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2060 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2062 * value.h (value_aggregate_elt): Update.
2064 2014-04-14 Tom Tromey <tromey@redhat.com>
2066 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2068 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2070 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2071 (evaluate_subexp_standard): Pass noside argument.
2072 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2073 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2074 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2075 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2076 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2078 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2080 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2081 points to a constant blob.
2083 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2085 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2086 property and store it as the high bound and flag the range accordingly.
2087 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2088 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2089 * gdbtypes.h (enum range_flags): New enum.
2090 (struct range_bounds): Add flags member.
2092 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2094 * c-typeprint.c (c_type_print_varspec_suffix): Added
2095 check for not yet resolved high bound. If unresolved, print
2096 "variable length" string to the console instead of random
2099 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2101 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2103 (ada_template_to_fixed_record_type_1): Likewise.
2104 (ada_to_fixed_type_1): Likewise.
2105 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2106 (cp_print_value): Likewise.
2107 * d-valprint.c (dynamic_array_type): Likewise.
2108 * findvar.c (address_of_variable): Likewise.
2109 * jv-valprint.c (java_value_print): Likewise.
2110 * valops.c (value_ind): Likewise.
2111 * value.c (coerce_ref): Likewise.
2113 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2115 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2116 value and retrieve the dynamic type size.
2118 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2120 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2121 passed to sizeof is dynamic evaluate the argument to compute the length.
2123 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2124 Joel Brobecker <brobecker@adacore.com>
2126 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2127 (dwarf2_evaluate_property): New function.
2128 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2129 * dwarf2read.c (attr_to_dynamic_prop): New function.
2130 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2132 * gdbtypes.c: Include dwarf2loc.h.
2133 (is_dynamic_type): New function.
2134 (resolve_dynamic_type): New function.
2135 (resolve_dynamic_bounds): New function.
2136 (get_type_length): New function.
2137 (check_typedef): Use get_type_length to compute type length.
2138 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2139 (TYPE_LOW_BOUND_KIND): New macro.
2140 (is_dynamic_type): New function prototype.
2141 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2142 to resolve dynamic properties of the type. Update comment.
2143 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2145 2014-04-14 Richard Henderson <rth@redhat.com>
2147 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2149 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2150 Doug Evans <xdje42@gmail.com>
2152 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2153 dereference TYPE_CODE_REF values.
2155 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2157 Revert the following changes due to regressions:
2159 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2160 (dwarf2_evaluate_property): New function.
2161 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2162 * dwarf2read.c (attr_to_dynamic_prop): New function.
2163 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2165 * gdbtypes.c: Include dwarf2loc.h.
2166 (is_dynamic_type): New function.
2167 (resolve_dynamic_type): New function.
2168 (resolve_dynamic_bounds): New function.
2169 (get_type_length): New function.
2170 (check_typedef): Use get_type_length to compute type length.
2171 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2172 (TYPE_LOW_BOUND_KIND): New macro.
2173 (is_dynamic_type): New function prototype.
2174 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2175 to resolve dynamic properties of the type. Update comment.
2176 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2178 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2179 passed to sizeof is dynamic evaluate the argument to compute the length.
2181 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2182 value and retrieve the dynamic type size.
2184 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2185 (ada_template_to_fixed_record_type_1): Likewise.
2186 (ada_to_fixed_type_1): Likewise.
2187 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2188 (cp_print_value): Likewise.
2189 * d-valprint.c (dynamic_array_type): Likewise.
2190 * eval.c (evaluate_subexp_with_coercion): Likewise.
2191 * findvar.c (address_of_variable): Likewise.
2192 * jv-valprint.c (java_value_print): Likewise.
2193 * valops.c (value_ind): Likewise.
2194 * value.c (coerce_ref): Likewise.
2196 * c-typeprint.c (c_type_print_varspec_suffix): Added
2197 check for not yet resolved high bound. If unresolved, print
2198 "variable length" string to the console instead of random
2201 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2202 property and store it as the high bound and flag the range accordingly.
2203 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2204 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2205 * gdbtypes.h (enum range_flags): New enum.
2206 (struct range_bounds): Add flags member.
2208 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2209 points to a constant blob.
2211 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2212 (evaluate_subexp_standard): Pass noside argument.
2213 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2214 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2215 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2216 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2217 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2219 2014-04-11 Keith Seitz <keiths@redhat.com>
2222 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2223 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2226 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2228 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2229 (evaluate_subexp_standard): Pass noside argument.
2230 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2231 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2232 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2233 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2234 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2236 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2238 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2239 points to a constant blob.
2241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2243 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2244 property and store it as the high bound and flag the range accordingly.
2245 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2246 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2247 * gdbtypes.h (enum range_flags): New enum.
2248 (struct range_bounds): Add flags member.
2250 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2252 * c-typeprint.c (c_type_print_varspec_suffix): Added
2253 check for not yet resolved high bound. If unresolved, print
2254 "variable length" string to the console instead of random
2257 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2259 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2260 (ada_template_to_fixed_record_type_1): Likewise.
2261 (ada_to_fixed_type_1): Likewise.
2262 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2263 (cp_print_value): Likewise.
2264 * d-valprint.c (dynamic_array_type): Likewise.
2265 * eval.c (evaluate_subexp_with_coercion): Likewise.
2266 * findvar.c (address_of_variable): Likewise.
2267 * jv-valprint.c (java_value_print): Likewise.
2268 * valops.c (value_ind): Likewise.
2269 * value.c (coerce_ref): Likewise.
2271 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2273 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2274 value and retrieve the dynamic type size.
2276 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2278 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2279 passed to sizeof is dynamic evaluate the argument to compute the length.
2281 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2283 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2284 (dwarf2_evaluate_property): New function.
2285 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2286 * dwarf2read.c (attr_to_dynamic_prop): New function.
2287 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2289 * gdbtypes.c: Include dwarf2loc.h.
2290 (is_dynamic_type): New function.
2291 (resolve_dynamic_type): New function.
2292 (resolve_dynamic_bounds): New function.
2293 (get_type_length): New function.
2294 (check_typedef): Use get_type_length to compute type length.
2295 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2296 (TYPE_LOW_BOUND_KIND): New macro.
2297 (is_dynamic_type): New function prototype.
2298 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2299 to resolve dynamic properties of the type. Update comment.
2300 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2302 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2304 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2305 declaring high/low bounds and change uses accordingly. Call
2306 create_range_type instead of create_static_range_type.
2307 * gdbtypes.c (create_range_type): New function.
2308 (create_range_type): Convert bounds into struct bound_prop and pass
2309 them to create_range_type.
2310 * gdbtypes.h (struct bound_prop): New struct.
2311 (create_range_type): New function prototype.
2312 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2313 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2314 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2316 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2318 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2320 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2321 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2322 * ada-lang.c: All uses of create_range_type updated.
2323 * coffread.c: All uses of create_range_type updated.
2324 * dwarf2read.c: All uses of create_range_type updated.
2325 * f-exp.y: All uses of create_range_type updated.
2326 * m2-valprint.c: All uses of create_range_type updated.
2327 * mdebugread.c: All uses of create_range_type updated.
2328 * stabsread.c: All uses of create_range_type updated.
2329 * valops.c: All uses of create_range_type updated.
2330 * valprint.c: All uses of create_range_type updated.
2332 2014-04-10 Pedro Alves <palves@redhat.com>
2334 * breakpoint.c (single_step_breakpoints)
2335 (single_step_gdbarch): Move up in the file.
2336 (one_breakpoint_xfer_memory): New function, factored out from ...
2337 (breakpoint_xfer_memory): ... here. Also process single-step
2340 2014-04-09 Tristan Gingold <gingold@adacore.com>
2342 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2344 (darwin_decode_exception_message): Free port only after use.
2346 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2348 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2349 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2350 when setting the size of call_length.
2352 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2354 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2355 dereference TYPE_CODE_REF values.
2357 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2359 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2360 end of warning message.
2362 2014-04-03 Doug Evans <dje@google.com>
2364 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2365 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2367 2014-04-02 Alan Modra <amodra@gmail.com>
2369 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2370 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2371 (struct symbol_file_add_from_memory_args): Add size field.
2372 (find_vdso_size): New function.
2373 (add_vsyscall_page): Attempt to find vdso size.
2375 2014-04-01 Doug Evans <dje@google.com>
2377 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2379 2014-04-01 Tristan Gingold <gingold@adacore.com>
2381 * darwin-nat.c (darwin_encode_reply): Add prototype.
2382 (darwin_decode_exception_message): Reply to unknown inferiors.
2383 (darwin_decode_message): Handle message by id. Ignore message
2384 to unknown inferior.
2385 (darwin_wait): Discard unknown messages, add debug trace.
2387 2014-03-31 Doug Evans <dje@google.com>
2389 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2392 2014-03-31 Doug Evans <dje@google.com>
2394 New option "set print symbol-loading".
2396 * solib.c (solib_read_symbols): Only print symbol loading messages
2398 (solib_add): If symbol loading is in "brief" mode, notify user
2399 symbols are being loaded.
2400 (reload_shared_libraries_1): Ditto.
2401 * symfile.c (print_symbol_loading_off): New static global.
2402 (print_symbol_loading_brief): New static global.
2403 (print_symbol_loading_full): New static global.
2404 (print_symbol_loading_enums): New static global.
2405 (print_symbol_loading): New static global.
2406 (print_symbol_loading_p): New function.
2407 (symbol_file_add_with_addrs): Only print symbol loading messages
2409 (_initialize_symfile): Register "print symbol-loading" set/show
2411 * symfile.h (print_symbol_loading_p): Declare.
2413 2014-03-30 Doug Evans <xdje42@gmail.com>
2415 * infrun.c (set_last_target_status): New function.
2416 (handle_inferior_event): Call it.
2418 2014-03-30 Doug Evans <xdje42@gmail.com>
2420 * inferior.h (enum stop_kind): Improve comment.
2422 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2424 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2425 a reference, strip the reference layer before calling
2426 the lang_ops value_has_mutated callback.
2428 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2430 Remove some globals from our parser.
2431 * language.c (unk_lang_parser): Add "struct parser_state"
2433 * language.h (struct language_defn) <la_parser>: Likewise.
2434 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2435 (initialize_expout): Add "struct parser_state" argument.
2436 Rewrite function to use the parser state.
2437 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2438 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2439 write_exp_elt_longcst, write_exp_elt_dblcst,
2440 write_exp_elt_decfloatcst, write_exp_elt_type,
2441 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2442 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2443 write_dollar_variable): Likewise.
2444 (parse_exp_in_context_1): Use parser state.
2445 (insert_type_address_space): Add "struct parser_state" argument.
2447 (increase_expout_size): New function.
2448 * parser-defs.h: Forward declare "struct language_defn" and
2449 "struct parser_state".
2450 (expout, expout_size, expout_ptr): Remove extern declarations.
2451 (parse_gdbarch, parse_language): Rewrite macro declarations to
2452 accept the parser state.
2453 (struct parser_state): New struct.
2454 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2455 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2456 write_exp_elt_decfloatcst, write_exp_elt_type,
2457 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2458 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2459 write_exp_msymbol, write_dollar_variable,
2460 mark_struct_expression, insert_type_address_space): Add "struct
2461 parser_state" argument.
2462 (increase_expout_size): New function.
2463 * utils.c (do_clear_parser_state): New function.
2464 (make_cleanup_clear_parser_state): Likewise.
2465 * utils.h (make_cleanup_clear_parser_state): New function
2467 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2468 Update calls to write_exp* in order to pass the parser state.
2469 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2470 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2471 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2472 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2473 * stap-probe.c (stap_parse_register_operand): Likewise.
2474 (stap_parse_single_operand): Likewise.
2475 (stap_parse_argument_1): Likewise.
2476 (stap_parse_argument): Use parser state.
2477 * stap-probe.h: Include "parser-defs.h".
2478 (struct stap_parse_info) <pstate>: New field.
2479 * c-exp.y (parse_type): Rewrite to use parser state.
2480 (yyparse): Redefine to c_parse_internal.
2481 (pstate): New global variable.
2482 (parse_number): Add "struct parser_state" argument.
2483 (write_destructor_name): Likewise.
2484 (type_exp): Update calls to write_exp* and similars in order to
2486 (exp1, exp, variable, qualified_name, space_identifier,
2487 typename, typebase): Likewise.
2488 (write_destructor_name, parse_number, lex_one_token,
2489 classify_name, classify_inner_name, c_parse): Add "struct
2490 parser_state" argument. Update function to use parser state.
2491 * c-lang.h: Forward declare "struct parser_state".
2492 (c_parse): Add "struct parser_state" argument.
2493 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2494 (yyparse): Redefine macro to ada_parse_internal.
2495 (pstate): New variable.
2496 (write_int, write_object_renaming, write_var_or_type,
2497 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2498 type_int, type_long, type_long_long, type_float, type_double,
2499 type_long_double, type_char, type_boolean, type_system_address):
2500 Add "struct parser_state" argument.
2501 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2502 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2503 var_or_type, aggregate, aggregate_component_list,
2504 positional_list, others, component_group,
2505 component_associations): Update calls to write_exp* and similar
2506 functions in order to use parser state.
2507 (ada_parse, write_var_from_sym, write_int,
2508 write_exp_op_with_string, write_object_renaming,
2509 find_primitive_type, write_selectors, write_ambiguous_var,
2510 write_var_or_type, write_name_assoc, type_int, type_long,
2511 type_long_long, type_float, type_double, type_long_double,
2512 type_char, type_boolean, type_system_address): Add "struct
2513 parser_state" argument. Adjust function to use parser state.
2514 * ada-lang.c (parse): Likewise.
2515 * ada-lang.h: Forward declare "struct parser_state".
2516 (ada_parse): Add "struct parser_state" argument.
2517 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2518 calls to both functions.
2519 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2521 (yyparse): Redefine macro to f_parse_internal.
2522 (pstate): New variable.
2523 (parse_number): Add "struct parser_state" argument.
2524 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2525 and similars in order to use parser state.
2526 (parse_number): Adjust code to use parser state.
2528 (f_parse): New function.
2529 * f-lang.h: Forward declare "struct parser_state".
2530 (f_parse): Add "struct parser_state" argument.
2531 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2533 (yyparse): Redefine macro for java_parse_internal.
2534 (pstate): New variable.
2535 (push_expression_name, push_expression_name, insert_exp): Add
2536 "struct parser_state" argument.
2537 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2538 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2539 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2540 PostIncrementExpression, PostDecrementExpression,
2541 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2542 UnaryExpressionNotPlusMinus, CastExpression,
2543 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2544 RelationalExpression, EqualityExpression, AndExpression,
2545 ExclusiveOrExpression, InclusiveOrExpression,
2546 ConditionalAndExpression, ConditionalOrExpression,
2547 ConditionalExpression, Assignment, LeftHandSide): Update
2548 calls to write_exp* and similars in order to use parser state.
2549 (parse_number): Ajust code to use parser state.
2551 (java_parse): New function.
2552 (push_variable): Add "struct parser_state" argument. Adjust
2553 code to user parser state.
2554 (push_fieldnames, push_qualified_expression_name,
2555 push_expression_name, insert_exp): Likewise.
2556 * jv-lang.h: Forward declare "struct parser_state".
2557 (java_parse): Add "struct parser_state" argument.
2558 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2560 (yyparse): Redefine macro to m2_parse_internal.
2561 (pstate): New variable.
2562 (type_exp, exp, fblock, variable, type): Update calls to
2563 write_exp* and similars to use parser state.
2565 (m2_parse): New function.
2566 * m2-lang.h: Forward declare "struct parser_state".
2567 (m2_parse): Add "struct parser_state" argument.
2568 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2569 * objc-lang.h: Forward declare "struct parser_state".
2570 (end_msglist): Add "struct parser_state" argument.
2571 * p-exp.y (parse_type): Rewrite macro to use parser state.
2572 (yyparse): Redefine macro to pascal_parse_internal.
2573 (pstate): New variable.
2574 (parse_number): Add "struct parser_state" argument.
2575 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2576 write_exp* and similars in order to use parser state.
2577 (parse_number, yylex): Adjust code to use parser state.
2578 (pascal_parse): New function.
2579 * p-lang.h: Forward declare "struct parser_state".
2580 (pascal_parse): Add "struct parser_state" argument.
2581 * go-exp.y (parse_type): Rewrite macro to use parser state.
2582 (yyparse): Redefine macro to go_parse_internal.
2583 (pstate): New variable.
2584 (parse_number): Add "struct parser_state" argument.
2585 (type_exp, exp1, exp, variable, type): Update calls to
2586 write_exp* and similars in order to use parser state.
2587 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2588 to use parser state.
2589 (go_parse): Likewise.
2590 * go-lang.h: Forward declare "struct parser_state".
2591 (go_parse): Add "struct parser_state" argument.
2593 2014-03-27 Doug Evans <dje@google.com>
2595 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2597 2014-03-27 Doug Evans <dje@google.com>
2599 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2600 Remove argument abbrev_section. All callers updated.
2602 2014-03-27 Doug Evans <dje@google.com>
2604 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2605 addr_base, ranges_base.
2607 2014-03-26 Keith Seitz <keiths@redhat.com>
2609 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2610 types, not VAR_DOMAIN.
2612 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2614 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2616 * features/nios2-linux.c: Regenerated.
2617 * features/nios2.c: Regenerated.
2619 2014-03-25 Pedro Alves <palves@redhat.com>
2621 * cli/cli-script.c (script_from_file): Force the interpreter to
2624 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2626 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2627 small stack allocation.
2629 2014-03-24 Tristan Gingold <gingold@adacore.com>
2631 * darwin-nat.c (exc_server): Remove unused prototype.
2632 (darwin_dump_message): Correctly display data on x86_64.
2633 (darwin_encode_reply): Fix style.
2634 Add comments and fix indentation.
2636 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2638 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2640 2014-03-22 Doug Evans <xdje42@gmail.com>
2642 * infcmd.c: Whitespace fixes.
2643 (interrupt_command): Merge two function comments into one.
2645 2014-03-22 Doug Evans <xdje42@gmail.com>
2647 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2650 2014-03-22 Yao Qi <yao@codesourcery.com>
2652 * remote.c (target_read_live_memory): Remove.
2653 (memory_xfer_live_readonly_partial): Rename it to
2654 remote_xfer_live_readonly_partial. Remove argument 'object'.
2655 All callers updated. Call remote_read_bytes_1
2656 instead of target_read_live_memory.
2657 * tracepoint.c (set_traceframe_number): Remove.
2658 (make_cleanup_restore_traceframe_number): Likewise .
2659 * tracepoint.h (set_traceframe_number): Remove declaration.
2660 (make_cleanup_restore_traceframe_number): Likewise.
2662 2014-03-22 Yao Qi <yao@codesourcery.com>
2664 * remote.c (remote_read_bytes): Move code on reading from the
2666 (remote_read_bytes_1): ... here. New function.
2668 2014-03-22 Yao Qi <yao@codesourcery.com>
2670 * ctf.c (ctf_xfer_partial): Check the return value of
2671 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2672 return TARGET_XFER_UNAVAILABLE.
2673 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2674 * target.c (target_read_live_memory): Move it to remote.c.
2675 (memory_xfer_live_readonly_partial): Likewise.
2676 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2677 * remote.c (target_read_live_memory): Moved from target.c.
2678 (memory_xfer_live_readonly_partial): Likewise.
2679 (remote_read_bytes): Factored out from
2680 memory_xfer_partial_1.
2682 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2684 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2687 2014-03-21 Pedro Alves <palves@redhat.com>
2689 * infrun.c (normal_stop): Extend comment.
2691 2014-03-21 Hui Zhu <hui@codesourcery.com>
2692 Pedro Alves <palves@redhat.com>
2694 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2696 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2697 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2698 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2700 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2702 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2703 `z' formatted output modifier.
2705 2014-03-20 Tom Tromey <tromey@redhat.com>
2706 Sergio Durigan Junior <sergiodj@redhat.com>
2708 * probe.c (parse_probes): Turn assert into an ordinary error.
2709 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2710 exceptions when parsing probes. Rearrange the code for clarity.
2712 2014-03-20 Tom Tromey <tromey@redhat.com>
2715 * top.c (execute_command): Only dispatch events if the command
2718 2014-03-20 Tom Tromey <tromey@redhat.com>
2721 * infcall.c: Include event-top.h.
2722 (run_inferior_call): Call async_disable_stdin if needed.
2724 2014-03-20 Pedro Alves <palves@redhat.com>
2726 * infrun.c (prepare_to_proceed): Delete.
2727 (thread_still_needs_step_over): New function.
2728 (find_thread_needs_step_over): New function.
2729 (proceed): If the current thread needs a step-over, set its
2730 steping_over_breakpoint flag. Adjust to use
2731 find_thread_needs_step_over instead of prepare_to_proceed.
2732 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2733 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2735 (switch_back_to_stepped_thread): Step over breakpoints of all
2736 threads not the stepping thread, before switching back to the
2739 2014-03-20 Pedro Alves <palves@redhat.com>
2741 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2743 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2744 * infrun.c (saved_singlestep_ptid)
2745 (stepping_past_singlestep_breakpoint): Delete.
2746 (resume): Remove stepping_past_singlestep_breakpoint handling.
2747 (proceed): Store the prev_pc of the stepping thread too.
2748 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2750 (enum infwait_states): Delete infwait_thread_hop_state.
2751 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2753 (handle_inferior_event): Adjust.
2754 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2755 handling and the thread-hop code. Before removing single-step
2756 breakpoints, check whether the thread hit a single-step breakpoint
2757 of another thread. If it did, the trap is not a random signal.
2758 (switch_back_to_stepped_thread): If the event thread hit a
2759 single-step breakpoint, unblock it before switching to the
2760 stepping thread. Handle the case of the stepped thread having
2762 (keep_going): Handle the case of the current thread moving past a
2763 single-step breakpoint.
2765 2014-03-20 Pedro Alves <palves@redhat.com>
2768 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2769 are being stepped over.
2770 (breakpoint_address_match): Make extern.
2771 * breakpoint.h (breakpoint_address_match): New declaration.
2772 * inferior.h (stepping_past_instruction_at): New declaration.
2773 * infrun.c (struct step_over_info): New type.
2774 (step_over_info): New global.
2775 (set_step_over_info, clear_step_over_info)
2776 (stepping_past_instruction_at): New functions.
2777 (handle_inferior_event): Clear the step-over info when
2778 trap_expected is cleared.
2779 (resume): Remove now stale comment.
2780 (clear_proceed_status): Clear step-over info.
2781 (proceed): Adjust step-over handling to set or clear the step-over
2782 info instead of removing all breakpoints.
2783 (handle_signal_stop): When setting up a thread-hop, don't remove
2785 (stop_stepping): Clear step-over info.
2786 (keep_going): Adjust step-over handling to set or clear step-over
2787 info and then always inserting breakpoints, instead of removing
2788 all breakpoints when stepping over one.
2790 2014-03-20 Pedro Alves <palves@redhat.com>
2792 * infrun.c (previous_inferior_ptid): Adjust comment.
2793 (deferred_step_ptid): Delete.
2794 (infrun_thread_ptid_changed, prepare_to_proceed)
2795 (init_wait_for_inferior): Adjust.
2796 (handle_signal_stop): Delete deferred_step_ptid handling.
2798 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 * defs.h (sync_quit_force_run): New declaration.
2802 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2803 * event-top.c (async_sigterm_handler): New declaration.
2804 (async_sigterm_token): New variable.
2805 (async_init_signals): Create also async_sigterm_token.
2806 (async_sigterm_handler): New function.
2807 (sync_quit_force_run): New variable.
2808 (handle_sigterm): Replace quit_force call by other calls.
2809 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2811 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2813 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2814 offset into SPE pseudo registers.
2816 2014-03-18 Pedro Alves <palves@redhat.com>
2819 * inferior.h (print_stop_event): Declare.
2820 * infrun.c (print_stop_event): New, factored out from ...
2821 (normal_stop): ... this.
2822 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2823 of bpstat_print/print_stack_frame.
2825 2014-03-17 Tom Tromey <tromey@redhat.com>
2827 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2829 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2831 * ada-lang.c (decode_constrained_packed_array): Perform a
2832 minimal coercion for reference with coerce_ref instead of
2835 2014-03-17 Tristan Gingold <gingold@adacore.com>
2837 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2838 (darwin_solib_create_inferior_hook): Emit a warning if version
2841 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2843 * python/py-value.c (get_field_flag): Cast flag_name argument to
2844 PyObject_GetAttrString to support Python 2.4.
2846 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2848 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2849 (Global Maintainers): Remove Jan Kratochvil.
2851 2014-03-14 Pedro Alves <palves@redhat.com>
2853 * inferior.h (terminal_ours_for_output): Rename to ...
2854 (child_terminal_ours_for_output): ... this.
2855 (terminal_save_ours): Rename to ...
2856 (child_terminal_save_ours): ... this.
2857 (terminal_ours): Rename to ...
2858 (child_terminal_ours): ... this.
2859 (terminal_inferior): Rename to ...
2860 (child_terminal_inferior): ... this.
2861 (terminal_init_inferior): Rename to ...
2862 (child_terminal_init_inferior): ... this.
2863 (terminal_init_inferior_with_pgrp): Rename to ...
2864 (child_terminal_init_inferior_with_pgrp): ... this.
2865 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2866 (child_terminal_init_with_pgrp): ... this.
2867 (terminal_save_ours): Rename to ...
2868 (child_terminal_save_ours): ... this.
2869 (terminal_init_inferior): Rename to ...
2870 (child_terminal_init): ... this. Adjust.
2871 (terminal_inferior): Rename to ...
2872 (child_terminal_inferior): ... this.
2873 (terminal_ours_for_output): Rename to ...
2874 (child_terminal_ours_for_output): ... this. Adjust.
2875 (terminal_ours): Rename to ...
2876 (child_terminal_ours): ... this.
2877 (terminal_ours_1): Rename to ...
2878 (child_terminal_ours_1): ... this. Adjust.
2879 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2880 * windows-nat.c (do_initial_windows_stuff): Adjust.
2881 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2882 (gnu_terminal_init): ... this. Adjust.
2883 (gnu_target): Adjust.
2884 * inf-child.c (inf_child_target): Adjust.
2886 2014-03-13 Doug Evans <xdje42@gmail.com>
2889 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2892 2014-03-13 Doug Evans <xdje42@gmail.com>
2894 * value.c (record_latest_value): Call release_value_or_incref
2895 instead of release_value.
2897 2014-03-13 Pedro Alves <palves@redhat.com>
2899 * procfs.c (procfs_target): Don't override to_shortname,
2900 to_longname or to_doc.
2902 2014-03-13 Pedro Alves <palves@redhat.com>
2904 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2905 Unix in user visible strings.
2907 2014-03-12 Stan Shebs <stan@codesourcery.com>
2909 * gdbtypes.h: Annotate comments for Doxygen, add a page
2910 block comment with some general info.
2912 2014-03-12 Pedro Alves <palves@redhat.com>
2914 * infcmd.c (prepare_execution_command): New function, factored out
2915 from several execution commands.
2916 (run_command_1, continue_command, step_1, jump_command)
2917 (signal_command, until_command, advance_command, finish_command)
2918 (attach_command): Use prepare_execution_command.
2920 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2922 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2925 (struct arm_linux_thread_points): Removed.
2926 (struct arm_linux_process_info): New.
2927 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2928 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2929 (arm_linux_find_breakpoints_by_tid): Removed.
2930 (struct arch_lwp_info): New.
2931 (arm_linux_find_process_pid): New functions.
2932 (arm_linux_add_process): New functions.
2933 (arm_linux_process_info_get): New functions.
2934 (arm_linux_forget_process): New function.
2935 (arm_linux_get_debug_reg_state): New function.
2936 (struct update_registers_data): New.
2937 (update_registers_callback): New function.
2938 (arm_linux_insert_hw_breakpoint1): Updated.
2939 (arm_linux_remove_hw_breakpoint1): Updated.
2940 (arm_linux_insert_hw_breakpoint): Updated.
2941 (arm_linux_remove_hw_breakpoint): Updated.
2942 (arm_linux_insert_watchpoint): Updated.
2943 (arm_linux_remove_watchpoint): Updated.
2944 (arm_linux_new_thread): Updated.
2945 (arm_linux_prepare_to_resume): New function.
2946 (arm_linux_new_fork): New function.
2947 (_initialize_arm_linux_nat): Updated.
2949 2014-03-12 Pedro Alves <palves@redhat.com>
2951 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2953 2014-03-12 Tom Tromey <tromey@redhat.com>
2955 * inf-child.c (return_zero): New function.
2956 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2957 * aix-thread.c (aix_thread_inferior_created): New function.
2958 (aix_thread_attach): Remove.
2959 (init_aix_thread_ops): Don't set to_attach.
2960 (_initialize_aix_thread): Register inferior_created observer.
2961 * corelow.c (init_core_ops): Don't set to_attach or
2963 * exec.c (init_exec_ops): Don't set to_attach or
2965 * infcmd.c (run_command_1): Use find_run_target. Make direct
2967 (attach_command): Use find_attach_target. Make direct target
2969 * record-btrace.c (init_record_btrace_ops): Don't set
2971 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2973 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2974 set to_create_inferior.
2975 * target.c (complete_target_initialization): Add assertion.
2976 (target_create_inferior): Remove.
2977 (find_default_attach, find_default_create_inferior): Remove.
2978 (find_attach_target, find_run_target): New functions.
2979 (find_default_is_async_p, find_default_can_async_p)
2980 (target_supports_non_stop, target_attach): Remove.
2981 (init_dummy_target): Don't set to_create_inferior or
2982 to_supports_non_stop.
2983 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2984 TARGET_DEFAULT_FUNC.
2985 <to_create_inferior>: Add comment.
2986 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2987 TARGET_DEFAULT_RETURN.
2988 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2989 (find_attach_target, find_run_target): Declare.
2990 (target_create_inferior): Remove.
2991 (target_has_execution_1): Update comment.
2992 (target_supports_non_stop): Remove.
2993 * target-delegates.c: Rebuild.
2995 2014-03-12 Pedro Alves <palves@redhat.com>
2997 * inf-child.h: Update comment to not mention Unix.
2999 2014-03-12 Pedro Alves <palves@redhat.com>
3001 * inf-child.c: Update top comment to not mention Unix. Add
3002 generic comment describing how this target is meant to be used.
3003 (inf_child_post_attach, inf_child_post_startup_inferior)
3004 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3007 2014-03-12 Pedro Alves <palves@redhat.com>
3009 * nto-procfs.c: Include inf-child.h.
3010 (procfs_ops): Delete global.
3011 (procfs_can_run): Delete method.
3012 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3013 target pointer instead of referencing procfs_ops.
3014 (procfs_prepare_to_store): Delete.
3015 (init_procfs_ops): Delete function.
3016 (procfs_target): New function, based on init_procfs_ops, but
3017 inherit inf_child_target.
3018 (_initialize_procfs): Use procfs_target.
3020 2014-03-12 Pedro Alves <palves@redhat.com>
3022 * windows-nat.c: Include inf-child.h.
3023 (windows_ops): Delete global.
3024 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3026 (init_windows_ops): Delete function.
3027 (windows_target): New function, based on init_windows_ops, but
3028 inherit inf_child_target.
3029 (_initialize_windows_nat): Use windows_target. Install x86
3030 specific target methods here.
3032 2014-03-10 Doug Evans <xdje42@gmail.com>
3034 * guile/guile.c (call_initialize_gdb_module): New function.
3035 (initialize_guile): Replace call to scm_init_guile with call to
3038 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3040 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3041 in call to TYPE_CODE macro.
3043 2014-03-10 Jerome Guitton <guitton@adacore.com>
3045 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3046 Resolve tagged types to full view.
3048 2014-03-10 Hui Zhu <hui@codesourcery.com>
3050 * target.h (target_insert_breakpoint): Remove "hardware" from its
3053 2014-03-07 Doug Evans <dje@google.com>
3055 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3057 2014-03-07 Doug Evans <dje@google.com>
3059 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3060 Remove unused local comp_dir_attr. Assert exactly one of
3061 stub_comp_unit_die, stub_comp_dir is non-NULL.
3063 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3065 * target.h (complete_target_initialization, add_target):
3068 2014-03-07 Pedro Alves <palves@redhat.com>
3070 * go32-nat.c: Include inf-child.h.
3071 (go32_ops): Delete global.
3072 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3074 (go32_create_inferior): Push the passed in target pointer instead
3075 of referencing go32_ops.
3076 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3077 (go32_target): New function, based on init_go32_ops, but inherit
3079 (_initialize_go32_nat): Use go32_target. Move parts of
3082 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3084 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3085 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3086 SYMBOL_VALUE_ADDRESS.
3087 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3089 2014-03-06 Yao Qi <yao@codesourcery.com>
3091 * breakpoint.c (get_tracepoint_by_number): Remove argument
3092 optional_p. All callers updated. Adjust comments. Update
3094 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3096 2014-03-06 Yao Qi <yao@codesourcery.com>
3098 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3099 early if get_number returns zero. Use 'p' instead of 'args'.
3101 2014-03-06 Yao Qi <yao@codesourcery.com>
3103 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3106 2014-03-06 Yao Qi <yao@codesourcery.com>
3108 PR breakpoints/16508
3109 * tracepoint.c (check_trace_running): New function.
3110 (trace_find_command): Move code to check_trace_running and
3111 call check_trace_running.
3112 (trace_find_pc_command): Likewise.
3113 (trace_find_tracepoint_command): Likewise.
3114 (trace_find_line_command): Likewise.
3115 (trace_find_range_command): Likewise.
3116 * tracepoint.h (check_trace_running): Likewise.
3117 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3119 2014-03-06 Yao Qi <yao@codesourcery.com>
3121 * target.h (struct target_ops) <to_traceframe_info>: Use
3122 TARGET_DEFAULT_NORETURN (tcomplain ()).
3123 * target-delegates.c: Regenerated.
3125 2014-03-05 Pedro Alves <palves@redhat.com>
3128 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3129 void. Update comment.
3130 (dcache_xfer_memory): Delete.
3131 (dcache_read_memory_partial): New, based on the read bits of
3133 (dcache_update): Add status parameter. Use ULONGEST for len, and
3134 adjust. Discard cache lines if the reason for the update was
3136 * dcache.h (dcache_xfer_memory): Delete declaration.
3137 (dcache_read_memory_partial): New declaration.
3138 (dcache_update): Update prototype.
3139 * target.c (raw_memory_xfer_partial): Update the dcache here.
3140 (memory_xfer_partial_1): Don't handle dcache writes here.
3142 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3144 * remote-sim.c (gdbsim_load): Add const to prog.
3146 2014-03-03 Tom Tromey <tromey@redhat.com>
3148 * elfread.c (probe_key): Change to bfd_data.
3149 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3150 now per-BFD, not per-objfile.
3151 * stap-probe.c (stap_probe_destroy): Update comment.
3152 (handle_stap_probe): Allocate on the per-BFD obstack.
3154 2014-03-03 Tom Tromey <tromey@redhat.com>
3156 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3157 * breakpoint.c (create_longjmp_master_breakpoint): Use
3159 (add_location_to_breakpoint, bkpt_probe_insert_location)
3160 (bkpt_probe_remove_location): Update.
3161 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3162 * elfread.c (elf_symfile_relocate_probe): Remove.
3163 (elf_probe_fns): Update.
3164 (insert_exception_resume_breakpoint): Change type of "probe"
3165 parameter to bound_probe.
3166 (check_exception_resume): Update.
3167 * objfiles.c (objfile_relocate1): Don't relocate probes.
3168 * probe.c (bound_probe_s): New typedef.
3169 (parse_probes): Use get_probe_address. Set sal's objfile.
3170 (find_probe_by_pc): Return a bound_probe.
3171 (collect_probes): Return a VEC(bound_probe_s).
3172 (compare_probes): Update.
3173 (gen_ui_out_table_header_info): Change type of "probes"
3175 (info_probes_for_ops): Update.
3176 (get_probe_address): New function.
3177 (probe_safe_evaluate_at_pc): Update.
3178 * probe.h (struct probe_ops) <get_probe_address>: New field.
3179 <set_semaphore, clear_semaphore>: Add objfile parameter.
3180 (struct probe) <objfile>: Remove field.
3182 <address>: Update comment.
3183 (struct bound_probe): New.
3184 (find_probe_by_pc): Return a bound_probe.
3185 (get_probe_address): Declare.
3186 * solib-svr4.c (struct probe_and_action) <address>: New field.
3187 (hash_probe_and_action, equal_probe_and_action): Update.
3188 (register_solib_event_probe): Add address parameter.
3189 (solib_event_probe_at): Update.
3190 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3192 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3193 (stap_get_probe_address): New function.
3194 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3195 (compile_probe_arg): Update.
3196 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3198 (handle_stap_probe): Don't relocate the probe.
3199 (stap_relocate): Remove.
3200 (stap_gen_info_probes_table_values): Update.
3201 (stap_probe_ops): Remove stap_relocate.
3202 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3203 (debug_sym_probe_fns): Update.
3204 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3205 * symtab.c (init_sal): Use memset.
3206 * symtab.h (struct symtab_and_line) <objfile>: New field.
3207 * tracepoint.c (start_tracing, stop_tracing): Update.
3209 2014-03-03 Tom Tromey <tromey@redhat.com>
3211 * probe.h (parse_probes, find_probe_by_pc)
3212 (find_probes_in_objfile): Fix comments.
3214 2014-03-02 Doug Evans <xdje42@gmail.com>
3216 * infrun.c (handle_signal_stop): Replace test for
3217 TARGET_WAITKIND_STOPPED with an assert.
3219 2014-03-02 Doug Evans <xdje42@gmail.com>
3221 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3223 2014-03-02 Doug Evans <xdje42@gmail.com>
3225 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3227 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3229 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3231 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3233 * i386obsd-nat.c: Include "obsd-nat.h".
3234 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3236 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3238 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3240 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3242 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3244 * mips64obsd-nat.c: Include "obsd-nath".
3245 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3247 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3249 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3251 * amd64obsd-nat.c: Include "obsd-nat,h.
3252 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3254 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3256 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3258 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3259 (find_overload_match): Update call to find_oload_champ.
3260 (find_oload_champ_namespace_loop): Likewise
3262 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3264 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3266 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3267 * config/sparc/obsd64.mh: New file.
3268 * sparc64obsd-nat.c: New file.
3270 * obsd-nat.h: New file.
3271 * obsd-nat.c: New file.
3272 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3273 (ALLDEPFILES): Add obsd-nat.c.
3275 2014-02-28 Tom Tromey <tromey@redhat.com>
3277 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3278 * cli-out.h (cli_ui_out_impl): Now const.
3279 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3280 * ui-out.c (struct ui_out) <impl>: Now const.
3281 (default_ui_out_impl): Now const.
3282 (ui_out_new): Make 'impl' parameter const.
3283 * ui-out.h (ui_out_new): Update.
3285 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3287 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3289 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3291 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3293 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3295 Additional PR 8882 fix.
3296 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3298 2014-02-27 Pedro Alves <palves@redhat.com>
3300 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3303 2014-02-27 Pedro Alves <palves@redhat.com>
3306 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3307 * nat/linux-waitpid.c: Include string.h.
3308 (status_to_str): Moved here and made extern.
3309 * nat/linux-waitpid.h (status_to_str): New declaration.
3311 2014-02-27 Hui Zhu <hui@codesourcery.com>
3314 * infrun.c (ptid_match): Move ...
3315 * common/ptid.c (ptid_match): ... here.
3316 * inferior.h (ptid_match): Move ...
3317 * common/ptid.h (ptid_match): ... here.
3319 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3321 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3322 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3325 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3327 * obsd-tdep.c (obsd_auxv_parse): New function.
3328 (obsd_init_abi): Set auxv_parse.
3330 * gdbarch.sh (auxv_parse): New.
3331 * gdbarch.h: Regenerated.
3332 * gdbarch.c: Regenerated.
3333 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3335 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3337 * guile/scm-value.c (gdbscm_history_append_x): New function.
3338 (value_functions): Add it.
3340 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3342 * dwarf2read.c (attr_value_as_address): New function.
3343 (dwarf2_find_base_address, read_call_site_scope): Use
3344 attr_value_as_address in place of DW_ADDR.
3345 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3346 the low and high addresses. Slight rework of the handling
3347 of the high pc being a constant form, and limit it to
3348 DWARF verson 4 or higher.
3349 (dwarf2_record_block_ranges): Likewise.
3350 (read_partial_die): Likewise.
3351 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3353 2014-02-26 Tom Tromey <tromey@redhat.com>
3355 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3357 2014-02-26 Tom Tromey <tromey@redhat.com>
3359 * elfread.c (elf_read_minimal_symbols): Return early if
3360 minimal symbols have already been read. Add "ei" parameter.
3361 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3362 * minsyms.c (prim_record_minimal_symbol_full): Update.
3363 * objfiles.h (struct objstats) <n_minsyms>: Move...
3364 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3365 * symmisc.c (print_objfile_statistics): Update.
3367 2014-02-26 Tom Tromey <tromey@redhat.com>
3369 * elfread.c (elf_read_minimal_symbols): New function, from
3371 (elf_symfile_read): Call it.
3373 2014-02-26 Tom Tromey <tromey@redhat.com>
3375 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3376 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3377 (lookup_minimal_symbol_solib_trampoline)
3378 (lookup_minimal_symbol_by_pc_section_1)
3379 (lookup_minimal_symbol_and_objfile): Update.
3380 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3381 Don't allocate a minimal symbol if minsyms have already been read.
3382 (build_minimal_symbol_hash_tables): Update.
3383 (install_minimal_symbols): Do nothing if minsyms already read.
3384 Use the per-BFD obstack.
3385 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3386 * objfiles.c (allocate_objfile): Call
3387 terminate_minimal_symbol_table later.
3388 (have_minimal_symbols): Update.
3389 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3390 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3391 Move from struct objfile.
3392 <minsyms_read>: New field.
3393 (struct objfile) <msymbols, minimal_symbol_count,
3394 msymbol_hash, msymbol_demangled_hash>: Move.
3395 (ALL_OBJFILE_MSYMBOLS): Update.
3396 * symfile.c (read_symbols): Set minsyms_read.
3397 (reread_symbols): Update.
3398 * symmisc.c (dump_objfile, dump_msymbols): Update.
3400 2014-02-26 Tom Tromey <tromey@redhat.com>
3402 * minsyms.c (msymbols_sort): Remove.
3403 * minsyms.h (msymbols_sort): Remove.
3404 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3405 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3406 * elfread.c (elf_symtab_read): Don't add section offsets.
3407 * xcoffread.c (record_minimal_symbol): Don't add section offset
3408 to minimal symbol address.
3409 * somread.c (text_offset, data_offset): Remove.
3410 (som_symtab_read): Don't add section offsets to minimal symbol
3412 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3413 Don't add section offsets to minimal symbols.
3414 * coffread.c (coff_symtab_read): Don't add section offsets
3415 to minimal symbol addresses.
3416 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3417 to minimal symbol addresses.
3418 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3419 section offset to minimal symbol addresses.
3420 * mdebugread.c (parse_partial_symbols): Don't add section
3421 offset to minimal symbol addresses.
3422 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3423 offset to minimal symbol addresses.
3425 2014-02-26 Tom Tromey <tromey@redhat.com>
3427 * ada-lang.c (ada_main_name): Update.
3428 (ada_add_standard_exceptions): Update.
3429 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3430 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3431 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3432 * auxv.c (ld_so_xfer_auxv): Update.
3433 * avr-tdep.c (avr_scan_prologue): Update.
3434 * ax-gdb.c (gen_var_ref): Update.
3435 * blockframe.c (get_pc_function_start)
3436 (find_pc_partial_function_gnu_ifunc): Update.
3437 * breakpoint.c (create_overlay_event_breakpoint)
3438 (create_longjmp_master_breakpoint)
3439 (create_std_terminate_master_breakpoint)
3440 (create_exception_master_breakpoint): Update.
3441 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3442 * c-valprint.c (c_val_print): Update.
3443 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3444 * common/agent.c (agent_look_up_symbols): Update.
3445 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3446 * dwarf2loc.c (call_site_to_target_addr): Update.
3447 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3448 * elfread.c (elf_gnu_ifunc_record_cache)
3449 (elf_gnu_ifunc_resolve_by_got): Update.
3450 * findvar.c (default_read_var_value): Update.
3451 * frame.c (inside_main_func): Update.
3452 * frv-tdep.c (frv_frame_this_id): Update.
3453 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3454 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3456 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3457 (hppa_hpux_find_dummy_bpaddr): Update.
3458 * hppa-tdep.c (hppa_symbol_address): Update.
3459 * infcmd.c (until_next_command): Update.
3460 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3462 * linespec.c (minsym_found, add_minsym): Update.
3463 * linux-nat.c (get_signo): Update.
3464 * linux-thread-db.c (inferior_has_bug): Update.
3465 * m32c-tdep.c (m32c_return_value)
3466 (m32c_m16c_address_to_pointer): Update.
3467 * m32r-tdep.c (m32r_frame_this_id): Update.
3468 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3469 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3470 * maint.c (maintenance_translate_address): Update.
3471 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3472 (frob_address): New function.
3473 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3474 frob_address. Rename parameter to "pc_in".
3475 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3477 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3479 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3480 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3481 * objc-lang.c (find_objc_msgsend): Update.
3482 * objfiles.c (objfile_relocate1): Update.
3483 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3484 * p-valprint.c (pascal_val_print): Update.
3485 * parse.c (write_exp_msymbol): Update.
3486 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3487 (ppc_elfv2_skip_entrypoint): Update.
3488 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3489 * printcmd.c (build_address_symbolic, msym_info)
3490 (address_info): Update.
3491 * proc-service.c (ps_pglobal_lookup): Update.
3492 * psymtab.c (find_pc_sect_psymtab_closer)
3493 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3494 Change msymbol parameter to bound_minimal_symbol.
3495 * ravenscar-thread.c (get_running_thread_id): Update.
3496 * remote.c (remote_check_symbols): Update.
3497 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3499 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3500 * solib-dsbt.c (lm_base): Update.
3501 * solib-frv.c (lm_base, main_got): Update.
3502 * solib-irix.c (locate_base): Update.
3503 * solib-som.c (som_solib_create_inferior_hook)
3504 (link_map_start): Update.
3505 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3506 * solib-svr4.c (elf_locate_base, enable_break): Update.
3507 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3508 (flush_ea_cache): Update.
3509 * stabsread.c (define_symbol, scan_file_globals): Update.
3510 * stack.c (find_frame_funname): Update.
3511 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3512 (debug_qf_find_pc_sect_symtab): Update.
3513 * symfile.c (simple_read_overlay_table)
3514 (simple_overlay_update): Update.
3515 * symfile.h (struct quick_symbol_functions)
3516 <find_pc_sect_symtab>: Change type of msymbol to
3517 bound_minimal_symbol.
3518 * symmisc.c (dump_msymbols): Update.
3519 * symtab.c (find_pc_sect_symtab_via_partial)
3520 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3521 (search_symbols, print_msymbol_info): Update.
3522 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3523 (MSYMBOL_VALUE_ADDRESS): Redefine.
3524 (BMSYMBOL_VALUE_ADDRESS): New macro.
3525 * tracepoint.c (scope_info): Update.
3526 * tui/tui-disasm.c (tui_find_disassembly_address)
3527 (tui_get_begin_asm_address): Update.
3528 * valops.c (find_function_in_inferior): Update.
3529 * value.c (value_static_field, value_fn_field): Update.
3531 2014-02-26 Tom Tromey <tromey@redhat.com>
3533 * ada-lang.c (ada_update_initial_language): Update.
3534 (ada_main_name, ada_has_this_exception_support): Update.
3535 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3536 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3537 * arm-tdep.c (arm_skip_stub): Update.
3538 * auxv.c (ld_so_xfer_auxv): Update.
3539 * avr-tdep.c (avr_scan_prologue): Update.
3540 * ax-gdb.c (gen_var_ref): Update.
3541 * breakpoint.c (struct breakpoint_objfile_data)
3542 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3543 type to bound_minimal_symbol.
3544 (create_overlay_event_breakpoint)
3545 (create_longjmp_master_breakpoint)
3546 (create_std_terminate_master_breakpoint)
3547 (create_exception_master_breakpoint): Update.
3548 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3549 * c-exp.y (classify_name): Update.
3550 * coffread.c (coff_symfile_read): Update.
3551 * common/agent.c (agent_look_up_symbols): Update.
3552 * d-lang.c (d_main_name): Update.
3553 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3554 * dec-thread.c (enable_dec_thread): Update.
3555 * dwarf2loc.c (call_site_to_target_addr): Update.
3556 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3557 * eval.c (evaluate_subexp_standard): Update.
3558 * findvar.c (struct minsym_lookup_data) <result>: Change type
3559 to bound_minimal_symbol.
3561 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3562 * frame.c (inside_main_func): Update.
3563 * frv-tdep.c (frv_frame_this_id): Update.
3564 * gcore.c (call_target_sbrk): Update.
3565 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3566 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3568 * go-lang.c (go_main_name): Update.
3569 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3570 (hppa_hpux_find_import_stub_for_addr): Update.
3571 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3572 Update. Change return type.
3573 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3575 * jit.c (jit_breakpoint_re_set_internal): Update.
3576 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3578 * linux-nat.c (get_signo): Update.
3579 * linux-thread-db.c (inferior_has_bug): Update
3580 * m32c-tdep.c (m32c_return_value)
3581 (m32c_m16c_address_to_pointer): Update.
3582 * m32r-tdep.c (m32r_frame_this_id): Update.
3583 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3584 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3585 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3586 lookup_minimal_symbol. Change return type.
3587 (lookup_minimal_symbol): Remove.
3588 (lookup_bound_minimal_symbol): Update.
3589 (lookup_minimal_symbol_text): Change return type.
3590 (lookup_minimal_symbol_solib_trampoline): Change return type.
3591 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3592 (lookup_minimal_symbol_solib_trampoline): Change return type.
3593 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3594 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3595 (value_nsstring, find_imps): Update.
3596 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3597 * p-lang.c (pascal_main_name): Update.
3598 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3599 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3600 * proc-service.c (ps_pglobal_lookup): Update.
3601 * ravenscar-thread.c (get_running_thread_msymbol): Change
3603 (has_ravenscar_runtime, get_running_thread_id): Update.
3604 * remote.c (remote_check_symbols): Update.
3605 * sol-thread.c (ps_pglobal_lookup): Update.
3606 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3607 * solib-dsbt.c (lm_base): Update.
3608 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3610 * solib-irix.c (locate_base): Update.
3611 * solib-som.c (som_solib_create_inferior_hook)
3612 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3614 * solib-spu.c (spu_enable_break): Update.
3615 * solib-svr4.c (elf_locate_base, enable_break): Update.
3616 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3617 (flush_ea_cache): Update.
3618 * stabsread.c (define_symbol): Update.
3619 * symfile.c (simple_read_overlay_table): Update.
3620 * symtab.c (find_pc_sect_line): Update.
3621 * tracepoint.c (scope_info): Update.
3622 * tui-disasm.c (tui_get_begin_asm_address): Update.
3623 * value.c (value_static_field): Update.
3625 2014-02-26 Tom Tromey <tromey@redhat.com>
3627 * minsyms.c (prim_record_minimal_symbol_full): Use
3628 SET_MSYMBOL_VALUE_ADDRESS.
3629 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3630 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3631 SET_MSYMBOL_VALUE_ADDRESS.
3632 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3633 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3635 2014-02-26 Tom Tromey <tromey@redhat.com>
3637 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3638 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3639 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3640 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3641 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3642 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3643 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3644 * ada-lang.c (ada_main_name): Update.
3645 (ada_lookup_simple_minsym): Update.
3646 (ada_make_symbol_completion_list): Update.
3647 (ada_add_standard_exceptions): Update.
3648 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3649 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3650 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3651 * arm-tdep.c (skip_prologue_function): Update.
3652 (arm_skip_stack_protector, arm_skip_stub): Update.
3653 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3654 (arm_wince_skip_main_prologue): Update.
3655 * auxv.c (ld_so_xfer_auxv): Update.
3656 * avr-tdep.c (avr_scan_prologue): Update.
3657 * ax-gdb.c (gen_var_ref): Update.
3658 * block.c (call_site_for_pc): Update.
3659 * blockframe.c (get_pc_function_start): Update.
3660 (find_pc_partial_function_gnu_ifunc): Update.
3661 * breakpoint.c (create_overlay_event_breakpoint): Update.
3662 (create_longjmp_master_breakpoint): Update.
3663 (create_std_terminate_master_breakpoint): Update.
3664 (create_exception_master_breakpoint): Update.
3665 (resolve_sal_pc): Update.
3666 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3667 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3669 * c-valprint.c (c_val_print): Update.
3670 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3671 * coffread.c (coff_symfile_read): Update.
3672 * common/agent.c (agent_look_up_symbols): Update.
3673 * dbxread.c (find_stab_function_addr): Update.
3674 (end_psymtab): Update.
3675 * dwarf2loc.c (call_site_to_target_addr): Update.
3676 (func_verify_no_selftailcall): Update.
3677 (tailcall_dump): Update.
3678 (call_site_find_chain_1): Update.
3679 (dwarf_expr_reg_to_entry_parameter): Update.
3680 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3681 (elf_gnu_ifunc_resolve_by_got): Update.
3682 * f-valprint.c (info_common_command): Update.
3683 * findvar.c (read_var_value): Update.
3684 * frame.c (get_prev_frame_1): Update.
3685 (inside_main_func): Update.
3686 * frv-tdep.c (frv_skip_main_prologue): Update.
3687 (frv_frame_this_id): Update.
3688 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3689 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3690 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3691 (gnuv3_skip_trampoline): Update.
3692 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3693 (hppa64_hpux_in_solib_call_trampoline): Update.
3694 (hppa_hpux_skip_trampoline_code): Update.
3695 (hppa64_hpux_search_dummy_call_sequence): Update.
3696 (hppa_hpux_find_import_stub_for_addr): Update.
3697 (hppa_hpux_find_dummy_bpaddr): Update.
3698 * hppa-tdep.c (hppa_symbol_address)
3699 (hppa_lookup_stub_minimal_symbol): Update.
3700 * i386-tdep.c (i386_skip_main_prologue): Update.
3701 (i386_pe_skip_trampoline_code): Update.
3702 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3703 * infcall.c (get_function_name): Update.
3704 * infcmd.c (until_next_command): Update.
3705 * jit.c (jit_breakpoint_re_set_internal): Update.
3706 (jit_inferior_init): Update.
3707 * linespec.c (minsym_found): Update.
3708 (add_minsym): Update.
3709 * linux-fork.c (info_checkpoints_command): Update.
3710 * linux-nat.c (get_signo): Update.
3711 * linux-thread-db.c (inferior_has_bug): Update.
3712 * m32c-tdep.c (m32c_return_value): Update.
3713 (m32c_m16c_address_to_pointer): Update.
3714 (m32c_m16c_pointer_to_address): Update.
3715 * m32r-tdep.c (m32r_frame_this_id): Update.
3716 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3717 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3718 * maint.c (maintenance_translate_address): Update.
3719 * minsyms.c (add_minsym_to_hash_table): Update.
3720 (add_minsym_to_demangled_hash_table): Update.
3721 (msymbol_objfile): Update.
3722 (lookup_minimal_symbol): Update.
3723 (iterate_over_minimal_symbols): Update.
3724 (lookup_minimal_symbol_text): Update.
3725 (lookup_minimal_symbol_by_pc_name): Update.
3726 (lookup_minimal_symbol_solib_trampoline): Update.
3727 (lookup_minimal_symbol_by_pc_section_1): Update.
3728 (lookup_minimal_symbol_and_objfile): Update.
3729 (prim_record_minimal_symbol_full): Update.
3730 (compare_minimal_symbols): Update.
3731 (compact_minimal_symbols): Update.
3732 (build_minimal_symbol_hash_tables): Update.
3733 (install_minimal_symbols): Update.
3734 (terminate_minimal_symbol_table): Update.
3735 (find_solib_trampoline_target): Update.
3736 (minimal_symbol_upper_bound): Update.
3737 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3738 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3739 (mips_skip_pic_trampoline_code): Update.
3740 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3741 * objc-lang.c (selectors_info): Update.
3742 (classes_info): Update.
3743 (find_methods): Update.
3744 (find_imps): Update.
3745 (find_objc_msgsend): Update.
3746 * objfiles.c (objfile_relocate1): Update.
3747 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3748 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3749 * p-valprint.c (pascal_val_print): Update.
3750 * parse.c (write_exp_msymbol): Update.
3751 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3752 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3753 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3754 * printcmd.c (build_address_symbolic): Update.
3756 (address_info): Update.
3757 * proc-service.c (ps_pglobal_lookup): Update.
3758 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3759 (find_pc_sect_psymtab): Update.
3760 * python/py-framefilter.c (py_print_frame): Update.
3761 * ravenscar-thread.c (get_running_thread_id): Update.
3762 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3764 * remote.c (remote_check_symbols): Update.
3765 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3766 (rs6000_skip_trampoline_code): Update.
3767 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3768 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3769 * solib-dsbt.c (lm_base): Update.
3770 * solib-frv.c (lm_base): Update.
3772 * solib-irix.c (locate_base): Update.
3773 * solib-som.c (som_solib_create_inferior_hook): Update.
3774 (som_solib_desire_dynamic_linker_symbols): Update.
3775 (link_map_start): Update.
3776 * solib-spu.c (spu_enable_break): Update.
3777 (ocl_enable_break): Update.
3778 * solib-svr4.c (elf_locate_base): Update.
3779 (enable_break): Update.
3780 * spu-tdep.c (spu_get_overlay_table): Update.
3781 (spu_catch_start): Update.
3782 (flush_ea_cache): Update.
3783 * stabsread.c (define_symbol): Update.
3784 (scan_file_globals): Update.
3785 * stack.c (find_frame_funname): Update.
3786 (frame_info): Update.
3787 * symfile.c (simple_read_overlay_table): Update.
3788 (simple_overlay_update): Update.
3789 * symmisc.c (dump_msymbols): Update.
3790 * symtab.c (fixup_section): Update.
3791 (find_pc_sect_line): Update.
3792 (skip_prologue_sal): Update.
3793 (search_symbols): Update.
3794 (print_msymbol_info): Update.
3795 (rbreak_command): Update.
3796 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3797 (completion_list_objc_symbol): Update.
3798 (default_make_symbol_completion_list_break_on): Update.
3799 * tracepoint.c (scope_info): Update.
3800 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3801 (tui_get_begin_asm_address): Update.
3802 * valops.c (find_function_in_inferior): Update.
3803 * value.c (value_static_field): Update.
3804 (value_fn_field): Update.
3806 2014-02-26 Tom Tromey <tromey@redhat.com>
3808 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3809 bound minimal symbols. Move code that knows about minsym
3811 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3813 * minsyms.h (minimal_symbol_upper_bound): Declare.
3814 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3815 minimal_symbol_upper_bound.
3817 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3819 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3820 Use the type's name if its basic type does not have a tag.
3822 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3824 * dwarf2read.c (read_subrange_type): Add comment.
3826 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3828 * dwarf2read.c (update_enumeration_type_from_children): New
3829 function, mostly extracted from process_structure_scope.
3830 (read_enumeration_type): Call update_enumeration_type_from_children.
3831 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3832 and flag_flag_enum fields.
3834 2014-02-26 Pedro Alves <palves@redhat.com>
3836 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3837 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3838 to_xfer_partial method.
3840 2014-02-26 Pedro Alves <palves@redhat.com>
3842 * target.c (complete_target_initialization): Don't install
3843 default_xfer_partial as to_xfer_partial hook.
3845 (update_current_target): Don't INHERIT nor de_fault
3846 deprecated_xfer_memory. Delete de_fault macro.
3847 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3848 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3849 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3852 2014-02-26 Pedro Alves <palves@redhat.com>
3854 * go32-nat.c (my_write_child): New function.
3855 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3856 (go32_xfer_partial): New function.
3857 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3858 Instead install a to_xfer_partial hook.
3860 2014-02-26 Pedro Alves <palves@redhat.com>
3862 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3863 to_xfer_partial helper. Rewrite.
3864 (procfs_xfer_partial): New function.
3865 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3866 Install a to_xfer_partial hook.
3868 2014-02-26 Pedro Alves <palves@redhat.com>
3870 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3871 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3872 (m32r_xfer_partial): New function.
3873 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3874 Install a to_xfer_partial hook.
3876 2014-02-26 Pedro Alves <palves@redhat.com>
3878 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3880 (mips_xfer_partial): New function.
3881 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3882 hook. Install a to_xfer_partial hook.
3884 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3886 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3887 * gdbtypes.c (create_array_type_with_stride): New function,
3888 renaming create_array_type, but with an added parameter
3889 called "bit_stride".
3890 (create_array_type): Re-implement using
3891 create_array_type_with_stride.
3892 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3893 and DW_AT_bit_stride attributes.
3895 2014-02-26 Pedro Alves <palves@redhat.com>
3897 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3898 task-specific breakpoints.
3900 2014-02-25 Pedro Alves <palves@redhat.com>
3902 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3903 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3905 2014-02-25 Stan Shebs <stan@codesourcery.com>
3907 * defs.h: Annotate comments for Doxygen.
3909 2014-02-25 Tom Tromey <tromey@redhat.com>
3911 * target.h (target_ignore): Don't declare.
3912 * target.c (target_ignore): Remove.
3914 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3917 * auto-load.c (auto_load_objfile_script_1): Change filename to
3920 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3922 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3923 documentation. Adjust prototype to match the target_ops
3924 to_xfer_partial method. Adjust implementation accordingly.
3926 2014-02-25 Hui Zhu <hui@codesourcery.com>
3928 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3931 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3933 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3934 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3935 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3936 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3937 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3938 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3939 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3940 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3942 (rl78_register_type): Use a data pointer type for SP and
3943 new pseudo registers mentioned above. Use a 16 bit integer
3944 type for all other register pairs.
3945 (rl78_register_name, rl78_g10_register_name): Update for
3946 new pseudo registers.
3947 (rl78_pseudo_register_read): Likewise.
3948 (rl78_pseudo_register_write): Likewise.
3949 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3950 to the newly added pseudo registers.
3952 2014-02-24 Doug Evans <dje@google.com>
3954 * value.c (record_latest_value): Fix comment.
3955 * printcmd.c (print_command_1): Remove code to handle -1 return from
3956 record_latest_value.
3958 2014-02-24 Pedro Alves <palves@redhat.com>
3960 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3961 deprecated_xfer_memory hook.
3962 (procfs_xfer_partial): Call procfs_xfer_memory instead
3963 of the deprecated_xfer_memory target hook.
3964 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3967 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3969 * windows-nat.c (windows_xfer_shared_libraries): Return
3970 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3971 requested object is TARGET_OBJECT_LIBRARIES.
3973 2014-02-24 Yao Qi <yao@codesourcery.com>
3975 * target.h (enum target_xfer_status)
3976 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3977 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3979 * corefile.c (memory_error_message): User updated.
3980 * exec.c (section_table_read_available_memory): Likewise.
3981 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3982 * target.c (target_xfer_status_to_string): Likewise.
3983 (raw_memory_xfer_partial): Likewise.
3984 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3985 * valops.c (read_value_memory): Likewise.
3986 * exec.h: Update comments.
3988 2014-02-24 Yao Qi <yao@codesourcery.com>
3990 * target.c (target_xfer_status_to_string): Rename argument err
3992 * target.h (target_xfer_status_to_string): Update declaration.
3993 Replace target_xfer_error_to_string with
3994 target_xfer_status_to_string in comment.
3996 2014-02-24 Yao Qi <yao@codesourcery.com>
3998 * mips-linux-nat.c (super_close): Update its type.
3999 (mips_linux_close): Pass 'self' to super_close.
4001 2014-02-24 Yao Qi <yao@codesourcery.com>
4003 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4004 * corefile.c (read_memory): Adjusted.
4005 * target.c (target_write_with_progress): Adjusted.
4007 2014-02-23 Yao Qi <yao@codesourcery.com>
4011 2013-10-25 Yao Qi <yao@codesourcery.com>
4013 * remote.c (remote_traceframe_info): Return early if
4014 traceframe is not selected.
4016 2013-07-19 Yao Qi <yao@codesourcery.com>
4018 * target.c (update_current_target): Change the default action
4019 of 'to_traceframe_info' from tcomplain to return_zero.
4020 * target.h (struct target_ops) <to_traceframe_info>: Add more
4023 2014-02-23 Yao Qi <yao@codesourcery.com>
4025 * valops.c (read_value_memory): Rewrite it. Call
4026 target_xfer_partial in a loop.
4027 * exec.h (section_table_available_memory): Remove declaration.
4028 Move comments to ...
4029 * exec.c (section_table_available_memory): ... here. Make it
4032 2014-02-23 Yao Qi <yao@codesourcery.com>
4034 * exec.c (section_table_read_available_memory): New function.
4035 * exec.h (section_table_read_available_memory): Declare.
4036 * ctf.c (ctf_xfer_partial): Call
4037 section_table_read_available_memory.
4038 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4040 2014-02-23 Yao Qi <yao@codesourcery.com>
4042 * ctf.c (ctf_xfer_partial): Move code to ...
4043 * exec.c (exec_read_partial_read_only): ... it. New function.
4044 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4045 * tracefile.c: Include "exec.h".
4046 * exec.h (exec_read_partial_read_only): Declare.
4048 2014-02-23 Yao Qi <yao@codesourcery.com>
4050 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4051 (tfile_has_memory): Remove.
4052 (init_tfile_ops): Don't set fields to_has_all_memory and
4053 to_has_memory of tfile_ops.
4054 * tracefile.c (tracefile_has_all_memory): New function.
4055 (tracefile_has_memory): New function.
4056 (init_tracefile_ops): Initialize fields to_has_all_memory and
4057 to_has_memory of 'ops'.
4059 2014-02-23 Yao Qi <yao@codesourcery.com>
4061 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4062 (ctf_thread_alive, ctf_get_trace_status): Remove.
4063 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4065 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4066 (tfile_has_stack, tfile_has_registers): Remove.
4067 (tfile_thread_alive): Remove.
4068 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4070 * tracefile.c (tracefile_has_stack): New function.
4071 (tracefile_has_registers): New function.
4072 (tracefile_thread_alive): New function.
4073 (tracefile_get_trace_status): New function.
4074 (init_tracefile_ops): New function.
4075 * tracefile.h (init_tracefile_ops): Declare.
4077 2014-02-23 Yao Qi <yao@codesourcery.com>
4079 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4080 (O_LARGEFILE): Likewise.
4081 (tfile_ops): Likewise.
4082 (TRACE_HEADER_SIZE): Likewise.
4083 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4084 (cur_data_size): Likewise.
4085 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4086 (tfile_close, tfile_files_info): Likewise.
4087 (tfile_get_trace_status): Likewise.
4088 (tfile_get_tracepoint_status): Likewise.
4089 (tfile_get_traceframe_address): Likewise.
4090 (tfile_trace_find, match_blocktype): Likewise.
4091 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4092 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4093 (tfile_get_trace_state_variable_value): Likewise.
4094 (tfile_has_all_memory, tfile_has_memory): Likewise.
4095 (tfile_has_stack, tfile_has_registers): Likewise.
4096 (tfile_thread_alive, build_traceframe_info): Likewise.
4097 (tfile_traceframe_info, init_tfile_ops): Likewise.
4098 (_initialize_tracepoint): Don't call init_tfile_ops
4099 and add_target_with_completer.
4100 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4101 exec.h, completer.h and filenames.h.
4102 (_initialize_tracefile_tfile): New function.
4104 2014-02-23 Yao Qi <yao@codesourcery.com>
4106 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4108 (HFILES_NO_SRCDIR): Add tracefile.h.
4109 * ctf.c: Include "tracefile.h".
4110 * tracefile.h: New file.
4111 * tracefile.c: New file
4112 * tracefile-tfile.c: New file.
4113 * tracepoint.c: Include "tracefile.h".
4114 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4115 (stop_reason_names): Add const.
4116 (trace_file_writer_xfree): Move it to tracefile.c.
4117 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4118 (trace_save_ctf): Likewise.
4119 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4120 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4121 (tfile_write_header, tfile_write_regblock_type): Likewise.
4122 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4123 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4124 (tfile_write_raw_data, tfile_end): Likewise.
4125 (tfile_trace_file_writer_new): Likewise.
4126 (free_uploaded_tp): Make it extern.
4127 (free_uploaded_tsv): Make it extern.
4128 (_initialize_tracepoint): Move code to register command 'tsave'
4130 * tracepoint.h (stop_reason_names): Declare.
4131 (struct trace_frame_write_ops): Move it to tracefile.h.
4132 (struct trace_file_write_ops): Likewise.
4133 (struct trace_file_writer): Likewise.
4134 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4136 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4139 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4141 (get_cores_used_by_process): New parameter num_cores, use it.
4142 (linux_xfer_osdata_processes): Pass num_cores to it.
4143 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4146 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4148 * target.c (memory_xfer_partial): Fix length arg in call to
4149 breakpoint_xfer_memory.
4151 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4154 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4155 number comes after the + or - signs. Adjust length of register
4156 name to be extracted.
4158 2014-02-20 Tom Tromey <tromey@redhat.com>
4160 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4161 (ada_varobj_ops): Mark "extern".
4163 2014-02-20 Tom Tromey <tromey@redhat.com>
4165 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4167 2014-02-20 Doug Evans <xdje42@gmail.com>
4169 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4170 All callers updated.
4171 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4172 All callers updated.
4173 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4174 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4176 2014-02-20 lin zuojian <manjian2006@gmail.com>
4177 Joel Brobecker <brobecker@adacore.com>
4178 Doug Evans <xdje42@gmail.com>
4181 * dwarf2read.c (struct die_info): New member in_process.
4182 (reset_die_in_process): New function.
4183 (process_die): Set it at the start, reset when returning.
4184 (inherit_abstract_dies): Only call process_die if origin_child_die
4185 not already being processed.
4187 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4189 * windows-nat.c (handle_unload_dll): Add function documentation.
4190 (do_initial_windows_stuff): Add comment explaining why we wait
4191 until after inferior initialization has finished before
4192 processing all DLLs.
4194 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4196 * windows-nat.c (get_module_name): Delete.
4197 (windows_get_exec_module_filename): New function, mostly
4198 inspired from get_module_name.
4199 (windows_pid_to_exec_file): Replace call to get_module_name
4200 by call to windows_get_exec_module_filename.
4202 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4204 * windows-nat.c (handle_load_dll): Rewrite this function's
4205 introductory comment. Remove code using get_module_name
4206 to get the DLL's name.
4208 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4210 * windows-nat.c (get_windows_debug_event): Ignore
4211 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4212 if windows_initialization_done == 0.
4213 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4214 Adjust implementation to always load all DLLs.
4215 (do_initial_windows_stuff): Replace call to
4216 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4218 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4220 * windows-nat.c (_initialize_windows_nat): Deprecate the
4221 "dll-symbols" command. Turn the "add-shared-symbol-files"
4222 and "assf" aliases into commands, and deprecate them as well.
4223 * NEWS: Add entry explaining that "dll-symbols" and its two
4224 aliases are now deprecated.
4226 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4228 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4229 new-line in debug string. Remove trailing spaces.
4231 2014-02-19 Stan Shebs <stan@codesourcery.com>
4233 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4235 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4237 * NEWS: Add entry for the new feature
4238 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4241 2014-02-19 Stan Shebs <stan@codesourcery.com>
4243 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4245 2014-02-19 Pedro Alves <palves@redhat.com>
4247 * common/ptid.h (struct ptid): Mention that process_stratum
4248 targets should prefer ptid.lwp.
4250 2014-02-19 Pedro Alves <palves@redhat.com>
4252 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4253 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4254 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4255 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4256 store remote thread ids rather than ptid.tid.
4257 (_initialize_remote): Adjust.
4259 2014-02-19 Tom Tromey <tromey@redhat.com>
4261 * target.c (target_get_unwinder): Rewrite.
4262 (target_get_tailcall_unwinder): Rewrite.
4263 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4264 (record_btrace_to_get_tailcall_unwinder): New function.
4265 (init_record_btrace_ops): Update.
4266 * target.h (struct target_ops) <to_get_unwinder,
4267 to_get_tailcall_unwinder>: Now function pointers. Use
4268 TARGET_DEFAULT_RETURN.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4274 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4276 2014-02-19 Tom Tromey <tromey@redhat.com>
4278 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4280 * target-delegates.c: Rebuild.
4281 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4282 TARGET_DEFAULT_FUNC.
4283 * target.c (default_target_decr_pc_after_break): Rename from
4284 forward_target_decr_pc_after_break. Simplify.
4285 (target_decr_pc_after_break): Rely on delegation.
4287 2014-02-19 Tom Tromey <tromey@redhat.com>
4289 * target.c (update_current_target): Do not INHERIT to_doc or
4290 to_magic. Do not de_fault to_open or to_close.
4292 2014-02-19 Tom Tromey <tromey@redhat.com>
4294 * gcore.h (objfile_find_memory_regions): Declare.
4295 * gcore.c (objfile_find_memory_regions): No longer static. Add
4297 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4298 * exec.c: Include gcore.h.
4299 (exec_set_find_memory_regions): Remove.
4300 (exec_find_memory_regions): Remove.
4301 (exec_do_find_memory_regions): Remove.
4302 (init_exec_ops): Update.
4303 * defs.h (exec_set_find_memory_regions): Remove.
4305 2014-02-19 Tom Tromey <tromey@redhat.com>
4307 * target-delegates.c: Rebuild.
4308 * target.h (struct target_ops) <to_extra_thread_info,
4309 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4310 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4311 not 0, in TARGET_DEFAULT_RETURN.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * target.c (complete_target_initialization): Remove casts. Use
4316 return_zero_has_execution.
4317 (return_zero): Add "ignore" argument.
4318 (return_zero_has_execution): New function.
4319 (init_dummy_target): Remove casts. Use
4320 return_zero_has_execution.
4322 2014-02-19 Tom Tromey <tromey@redhat.com>
4324 * target.c (update_current_target): Update comments. Do not
4327 2014-02-19 Tom Tromey <tromey@redhat.com>
4329 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4331 * corelow.c (core_read_description): Delegate when needed.
4332 * remote.c (remote_read_description): Delegate when needed.
4333 * target-delegates.c: Rebuild.
4334 * target.c (target_read_description): Rewrite.
4335 * target.h (struct target_ops) <to_read_description>: Update
4336 comment. Use TARGET_DEFAULT_RETURN.
4338 2014-02-19 Tom Tromey <tromey@redhat.com>
4340 * target-delegates.c: Rebuild.
4341 * target.c (update_current_target): Don't inherit or default
4343 (find_default_run_target): Check against delegate_can_run.
4344 * target.h (struct target_ops) <to_can_run>: Use
4345 TARGET_DEFAULT_RETURN.
4347 2014-02-19 Tom Tromey <tromey@redhat.com>
4349 * target-delegates.c: Rebuild.
4350 * target.c (target_disconnect): Unconditionally delegate.
4351 * target.h (struct target_ops) <to_disconnect>: Use
4352 TARGET_DEFAULT_NORETURN.
4354 2014-02-19 Tom Tromey <tromey@redhat.com>
4356 * record.c (record_stop): Unconditionally delegate.
4357 * target-delegates.c: Rebuild.
4358 * target.c (target_stop_recording): Unconditionally delegate.
4359 * target.h (struct target_ops) <to_stop_recording>: Use
4360 TARGET_DEFAULT_IGNORE.
4362 2014-02-19 Tom Tromey <tromey@redhat.com>
4364 * target-delegates.c: Rebuild.
4365 * target.c (target_enable_btrace): Unconditionally delegate.
4366 * target.h (struct target_ops) <to_enable_btrace>: Use
4367 TARGET_DEFAULT_NORETURN.
4369 2014-02-19 Tom Tromey <tromey@redhat.com>
4371 * target-delegates.c: Rebuild.
4372 * target.c (target_read_btrace): Unconditionally delegate.
4373 * target.h (struct target_ops) <to_read_btrace>: Use
4374 TARGET_DEFAULT_NORETURN.
4376 2014-02-19 Tom Tromey <tromey@redhat.com>
4378 * target-delegates.c: Rebuild.
4379 * target.c (target_teardown_btrace): Unconditionally delegate.
4380 * target.h (struct target_ops) <to_teardown_btrace>: Use
4381 TARGET_DEFAULT_NORETURN.
4383 2014-02-19 Tom Tromey <tromey@redhat.com>
4385 * target-delegates.c: Rebuild.
4386 * target.c (target_disable_btrace): Unconditionally delegate.
4387 * target.h (struct target_ops) <to_disable_btrace>: Use
4388 TARGET_DEFAULT_NORETURN.
4390 2014-02-19 Tom Tromey <tromey@redhat.com>
4392 * target-delegates.c: Rebuild.
4393 * target.c (default_search_memory): New function.
4394 (simple_search_memory): Update comment.
4395 (target_search_memory): Unconditionally delegate.
4396 * target.h (struct target_ops) <to_search_memory>: Use
4397 TARGET_DEFAULT_FUNC.
4399 2014-02-19 Tom Tromey <tromey@redhat.com>
4401 * auxv.c (default_auxv_parse): No longer static.
4402 (target_auxv_parse): Unconditionally delegate.
4403 * auxv.h (default_auxv_parse): Declare.
4404 * target-delegates.c: Rebuild.
4405 * target.c: Include auxv.h.
4406 * target.h (struct target_ops) <to_auxv_parse>: Use
4407 TARGET_DEFAULT_FUNC.
4409 2014-02-19 Tom Tromey <tromey@redhat.com>
4411 * target-delegates.c: Rebuild.
4412 * target.c (target_memory_map): Unconditionally delegate.
4413 * target.h (struct target_ops) <to_memory_map>: Use
4414 TARGET_DEFAULT_RETURN.
4416 2014-02-19 Tom Tromey <tromey@redhat.com>
4418 * target-delegates.c: Rebuild.
4419 * target.c (target_thread_alive): Unconditionally delegate.
4420 * target.h (struct target_ops) <to_thread_alive>: Use
4421 TARGET_DEFAULT_RETURN.
4423 2014-02-19 Tom Tromey <tromey@redhat.com>
4425 * target-delegates.c: Rebuild.
4426 * target.c (target_save_record): Unconditionally delegate.
4427 * target.h (struct target_ops) <to_save_record>: Use
4428 TARGET_DEFAULT_NORETURN.
4430 2014-02-19 Tom Tromey <tromey@redhat.com>
4432 * target-delegates.c: Rebuild.
4433 * target.c (target_delete_record): Unconditionally delegate.
4434 * target.h (struct target_ops) <to_delete_record>: Use
4435 TARGET_DEFAULT_NORETURN.
4437 2014-02-19 Tom Tromey <tromey@redhat.com>
4439 * target-delegates.c: Rebuild.
4440 * target.c (target_record_is_replaying): Unconditionally
4442 * target.h (struct target_ops) <to_record_is_replaying>: Use
4443 TARGET_DEFAULT_RETURN.
4445 2014-02-19 Tom Tromey <tromey@redhat.com>
4447 * target-delegates.c: Rebuild.
4448 * target.c (target_goto_record_begin): Unconditionally delegate.
4449 * target.h (struct target_ops) <to_goto_record_begin>: Use
4450 TARGET_DEFAULT_NORETURN.
4452 2014-02-19 Tom Tromey <tromey@redhat.com>
4454 * target-delegates.c: Rebuild.
4455 * target.c (target_goto_record_end): Unconditionally delegate.
4456 * target.h (struct target_ops) <to_goto_record_end>: Use
4457 TARGET_DEFAULT_NORETURN.
4459 2014-02-19 Tom Tromey <tromey@redhat.com>
4461 * target-delegates.c: Rebuild.
4462 * target.c (target_goto_record): Unconditionally delegate.
4463 * target.h (struct target_ops) <to_goto_record>: Use
4464 TARGET_DEFAULT_NORETURN.
4466 2014-02-19 Tom Tromey <tromey@redhat.com>
4468 * target-delegates.c: Rebuild.
4469 * target.c (target_insn_history): Unconditionally delegate.
4470 * target.h (struct target_ops) <to_insn_history>: Use
4471 TARGET_DEFAULT_NORETURN.
4473 2014-02-19 Tom Tromey <tromey@redhat.com>
4475 * target-delegates.c: Rebuild.
4476 * target.c (target_insn_history_from): Unconditionally delegate.
4477 * target.h (struct target_ops) <to_insn_history_from>: Use
4478 TARGET_DEFAULT_NORETURN.
4480 2014-02-19 Tom Tromey <tromey@redhat.com>
4482 * target-delegates.c: Rebuild.
4483 * target.c (target_insn_history_range): Unconditionally delegate.
4484 * target.h (struct target_ops) <to_insn_history_range>: Use
4485 TARGET_DEFAULT_NORETURN.
4487 2014-02-19 Tom Tromey <tromey@redhat.com>
4489 * target-delegates.c: Rebuild.
4490 * target.c (target_call_history): Unconditionally delegate.
4491 * target.h (struct target_ops) <to_call_history>: Use
4492 TARGET_DEFAULT_NORETURN.
4494 2014-02-19 Tom Tromey <tromey@redhat.com>
4496 * target-delegates.c: Rebuild.
4497 * target.c (target_call_history_from): Unconditionally delegate.
4498 * target.h (struct target_ops) <to_call_history_from>: Use
4499 TARGET_DEFAULT_NORETURN.
4501 2014-02-19 Tom Tromey <tromey@redhat.com>
4503 * target-delegates.c: Rebuild.
4504 * target.c (target_call_history_range): Unconditionally delegate.
4505 * target.h (struct target_ops) <to_call_history_range>: Use
4506 TARGET_DEFAULT_NORETURN.
4508 2014-02-19 Tom Tromey <tromey@redhat.com>
4510 * target-delegates.c: Rebuild.
4511 * target.c (target_verify_memory): Unconditionally delegate.
4512 * target.h (struct target_ops) <to_verify_memory>: Use
4513 TARGET_DEFAULT_NORETURN.
4515 2014-02-19 Tom Tromey <tromey@redhat.com>
4517 * target-delegates.c: Rebuild.
4518 * target.c (target_core_of_thread): Unconditionally delegate.
4519 * target.h (struct target_ops) <to_core_of_thread>: Use
4520 TARGET_DEFAULT_RETURN.
4522 2014-02-19 Tom Tromey <tromey@redhat.com>
4524 * target-delegates.c: Rebuild.
4525 * target.c (target_flash_done): Unconditionally delegate.
4526 * target.h (struct target_ops) <to_flash_done>: Use
4527 TARGET_DEFAULT_NORETURN.
4529 2014-02-19 Tom Tromey <tromey@redhat.com>
4531 * target-delegates.c: Rebuild.
4532 * target.c (target_flash_erase): Unconditionally delegate.
4533 * target.h (struct target_ops) <to_flash_erase>: Use
4534 TARGET_DEFAULT_NORETURN.
4536 2014-02-19 Tom Tromey <tromey@redhat.com>
4538 * target-delegates.c: Rebuild.
4539 * target.c (target_get_section_table): Unconditionally delegate.
4540 * target.h (struct target_ops) <to_get_section_table>: Use
4541 TARGET_DEFAULT_RETURN.
4543 2014-02-19 Tom Tromey <tromey@redhat.com>
4545 * target-delegates.c: Rebuild.
4546 * target.c (target_pid_to_str): Unconditionally delegate.
4547 (init_dummy_target): Don't initialize to_pid_to_str.
4548 (default_pid_to_str): Rename from dummy_pid_to_str.
4549 * target.h (struct target_ops) <to_pid_to_str>: Use
4550 TARGET_DEFAULT_FUNC.
4552 2014-02-19 Tom Tromey <tromey@redhat.com>
4554 * target-delegates.c: Rebuild.
4555 * target.c (target_find_new_threads): Unconditionally delegate.
4556 * target.h (struct target_ops) <to_find_new_threads>: Use
4557 TARGET_DEFAULT_RETURN.
4559 2014-02-19 Tom Tromey <tromey@redhat.com>
4561 * target-delegates.c: Rebuild.
4562 * target.c (target_program_signals): Unconditionally delegate.
4563 * target.h (struct target_ops) <to_program_signals>: Use
4564 TARGET_DEFAULT_IGNORE.
4566 2014-02-19 Tom Tromey <tromey@redhat.com>
4568 * target-delegates.c: Rebuild.
4569 * target.c (target_pass_signals): Unconditionally delegate.
4570 * target.h (struct target_ops) <to_pass_signals>: Use
4571 TARGET_DEFAULT_IGNORE.
4573 2014-02-19 Tom Tromey <tromey@redhat.com>
4575 * target-delegates.c: Rebuild.
4576 * target.c (default_mourn_inferior): New function.
4577 (target_mourn_inferior): Unconditionally delegate.
4578 * target.h (struct target_ops) <to_mourn_inferior>: Use
4579 TARGET_DEFAULT_FUNC.
4581 2014-02-19 Tom Tromey <tromey@redhat.com>
4583 * target-delegates.c: Rebuild.
4584 * target.c (default_follow_fork): New function.
4585 (target_follow_fork): Unconditionally delegate.
4586 * target.h (struct target_ops) <to_follow_fork>: Use
4587 TARGET_DEFAULT_FUNC.
4589 2014-02-19 Tom Tromey <tromey@redhat.com>
4591 * target-delegates.c: Rebuild.
4592 * target.c (target_kill): Unconditionally delegate.
4593 * target.h (struct target_ops) <to_kill>: Use
4594 TARGET_DEFAULT_NORETURN.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target-delegates.c: Rebuild.
4599 * target.c (target_masked_watch_num_registers): Unconditionally
4601 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4602 Use TARGET_DEFAULT_RETURN.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target-delegates.c: Rebuild.
4607 * target.c (target_remove_mask_watchpoint): Unconditionally
4609 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4610 TARGET_DEFAULT_RETURN.
4612 2014-02-19 Tom Tromey <tromey@redhat.com>
4614 * target-delegates.c: Rebuild.
4615 * target.c (target_insert_mask_watchpoint): Unconditionally
4617 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4618 TARGET_DEFAULT_RETURN.
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target-delegates.c: Rebuild.
4623 * target.c (target_ranged_break_num_registers): Unconditionally
4625 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4626 Use TARGET_DEFAULT_RETURN.
4628 2014-02-19 Tom Tromey <tromey@redhat.com>
4630 * target-delegates.c: Rebuild.
4631 * target.c (target_fetch_registers): Unconditionally delegate.
4632 * target.h (struct target_ops) <to_fetch_registers>: Use
4633 TARGET_DEFAULT_NORETURN.
4635 2014-02-19 Tom Tromey <tromey@redhat.com>
4637 * target-delegates.c: Rebuild.
4638 * target.c (update_current_target): Don't inherit or default
4640 * target.h (struct target_ops) <to_stop>: Use
4641 TARGET_DEFAULT_IGNORE.
4643 2014-02-19 Tom Tromey <tromey@redhat.com>
4645 * target-delegates.c: Rebuild.
4646 * target.c (update_current_target): Don't inherit or default
4647 to_can_run_breakpoint_commands.
4648 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4649 Use TARGET_DEFAULT_RETURN.
4651 2014-02-19 Tom Tromey <tromey@redhat.com>
4653 * target-delegates.c: Rebuild.
4654 * target.c (update_current_target): Don't inherit or default
4655 to_supports_evaluation_of_breakpoint_conditions.
4656 * target.h (struct target_ops)
4657 <to_supports_evaluation_of_breakpoint_conditions>: Use
4658 TARGET_DEFAULT_RETURN.
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target-delegates.c: Rebuild.
4663 * target.c (update_current_target): Don't inherit or default
4664 to_augmented_libraries_svr4_read.
4665 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4666 Use TARGET_DEFAULT_RETURN.
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * target-delegates.c: Rebuild.
4671 * target.c (update_current_target): Don't inherit or default
4673 * target.h (struct target_ops) <to_can_use_agent>: Use
4674 TARGET_DEFAULT_RETURN.
4676 2014-02-19 Tom Tromey <tromey@redhat.com>
4678 * target-delegates.c: Rebuild.
4679 * target.c (update_current_target): Don't inherit or default
4681 * target.h (struct target_ops) <to_use_agent>: Use
4682 TARGET_DEFAULT_NORETURN.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target-delegates.c: Rebuild.
4687 * target.c (update_current_target): Don't inherit or default
4689 (return_null): Remove.
4690 * target.h (struct target_ops) <to_traceframe_info>: Use
4691 TARGET_DEFAULT_RETURN.
4693 2014-02-19 Tom Tromey <tromey@redhat.com>
4695 * target-delegates.c: Rebuild.
4696 * target.c (update_current_target): Don't inherit or default
4697 to_static_tracepoint_markers_by_strid.
4698 * target.h (struct target_ops)
4699 <to_static_tracepoint_markers_by_strid>: Use
4700 TARGET_DEFAULT_NORETURN.
4702 2014-02-19 Tom Tromey <tromey@redhat.com>
4704 * target-delegates.c: Rebuild.
4705 * target.c (update_current_target): Don't inherit or default
4706 to_static_tracepoint_marker_at.
4707 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4708 Use TARGET_DEFAULT_RETURN.
4710 2014-02-19 Tom Tromey <tromey@redhat.com>
4712 * target-delegates.c: Rebuild.
4713 * target.c (update_current_target): Don't inherit or default
4715 * target.h (struct target_ops) <to_set_permissions>: Use
4716 TARGET_DEFAULT_IGNORE.
4718 2014-02-19 Tom Tromey <tromey@redhat.com>
4720 * target-delegates.c: Rebuild.
4721 * target.c (update_current_target): Don't inherit or default
4723 * target.h (struct target_ops) <to_get_tib_address>: Use
4724 TARGET_DEFAULT_NORETURN.
4726 2014-02-19 Tom Tromey <tromey@redhat.com>
4728 * target-delegates.c: Rebuild.
4729 * target.c (update_current_target): Don't inherit or default
4731 * target.h (struct target_ops) <to_set_trace_notes>: Use
4732 TARGET_DEFAULT_RETURN.
4734 2014-02-19 Tom Tromey <tromey@redhat.com>
4736 * target-delegates.c: Rebuild.
4737 * target.c (update_current_target): Don't initialize
4738 to_set_trace_buffer_size.
4739 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4740 TARGET_DEFAULT_IGNORE.
4742 2014-02-19 Tom Tromey <tromey@redhat.com>
4744 * target-delegates.c: Rebuild.
4745 * target.c (update_current_target): Don't inherit or default
4746 to_set_circular_trace_buffer.
4747 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4748 TARGET_DEFAULT_IGNORE.
4750 2014-02-19 Tom Tromey <tromey@redhat.com>
4752 * target-delegates.c: Rebuild.
4753 * target.c (update_current_target): Don't inherit or default
4754 to_set_disconnected_tracing.
4755 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4756 TARGET_DEFAULT_IGNORE.
4758 2014-02-19 Tom Tromey <tromey@redhat.com>
4760 * target-delegates.c: Rebuild.
4761 * target.c (update_current_target): Don't inherit or default
4762 to_get_min_fast_tracepoint_insn_len.
4763 (return_minus_one): Remove.
4764 * target.h (struct target_ops)
4765 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4767 2014-02-19 Tom Tromey <tromey@redhat.com>
4769 * target-delegates.c: Rebuild.
4770 * target.c (update_current_target): Don't inherit or default
4771 to_get_raw_trace_data.
4772 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4773 TARGET_DEFAULT_NORETURN.
4775 2014-02-19 Tom Tromey <tromey@redhat.com>
4777 * target-delegates.c: Rebuild.
4778 * target.c (update_current_target): Don't inherit or default
4779 to_upload_trace_state_variables.
4780 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4781 Use TARGET_DEFAULT_RETURN.
4783 2014-02-19 Tom Tromey <tromey@redhat.com>
4785 * target-delegates.c: Rebuild.
4786 * target.c (update_current_target): Don't inherit or default
4787 to_upload_tracepoints.
4788 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4789 TARGET_DEFAULT_RETURN.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target-delegates.c: Rebuild.
4794 * target.c (update_current_target): Don't inherit or default
4796 * target.h (struct target_ops) <to_save_trace_data>: Use
4797 TARGET_DEFAULT_NORETURN.
4799 2014-02-19 Tom Tromey <tromey@redhat.com>
4801 * target-delegates.c: Rebuild.
4802 * target.c (update_current_target): Don't inherit or default
4803 to_get_trace_state_variable_value.
4804 * target.h (struct target_ops)
4805 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4807 2014-02-19 Tom Tromey <tromey@redhat.com>
4809 * target-delegates.c: Rebuild.
4810 * target.c (update_current_target): Don't inherit or default
4812 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4814 2014-02-19 Tom Tromey <tromey@redhat.com>
4816 * target-delegates.c: Rebuild.
4817 * target.c (update_current_target): Don't inherit or default
4819 * target.h (struct target_ops) <to_trace_stop>: Use
4820 TARGET_DEFAULT_NORETURN.
4822 2014-02-19 Tom Tromey <tromey@redhat.com>
4824 * target-delegates.c: Rebuild.
4825 * target.c (update_current_target): Don't inherit or default
4826 to_get_tracepoint_status.
4827 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4828 TARGET_DEFAULT_NORETURN.
4830 2014-02-19 Tom Tromey <tromey@redhat.com>
4832 * target-delegates.c: Rebuild.
4833 * target.c (update_current_target): Don't inherit or default
4834 to_get_trace_status.
4835 * target.h (struct target_ops) <to_get_trace_status>: Use
4836 TARGET_DEFAULT_RETURN.
4838 2014-02-19 Tom Tromey <tromey@redhat.com>
4840 * target-delegates.c: Rebuild.
4841 * target.c (update_current_target): Don't inherit or default
4843 * target.h (struct target_ops) <to_trace_start>: Use
4844 TARGET_DEFAULT_NORETURN.
4846 2014-02-19 Tom Tromey <tromey@redhat.com>
4848 * target-delegates.c: Rebuild.
4849 * target.c (update_current_target): Don't inherit or default
4850 to_trace_set_readonly_regions.
4851 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4852 Use TARGET_DEFAULT_NORETURN.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * target-delegates.c: Rebuild.
4857 * target.c (update_current_target): Don't inherit or default
4858 to_disable_tracepoint.
4859 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4860 TARGET_DEFAULT_NORETURN.
4862 2014-02-19 Tom Tromey <tromey@redhat.com>
4864 * target-delegates.c: Rebuild.
4865 * target.c (update_current_target): Don't inherit or default
4866 to_enable_tracepoint.
4867 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4868 TARGET_DEFAULT_NORETURN.
4870 2014-02-19 Tom Tromey <tromey@redhat.com>
4872 * target-delegates.c: Rebuild.
4873 * target.c (update_current_target): Don't inherit or default
4874 to_download_trace_state_variable.
4875 * target.h (struct target_ops) <to_download_trace_state_variable>:
4876 Use TARGET_DEFAULT_NORETURN.
4878 2014-02-19 Tom Tromey <tromey@redhat.com>
4880 * target-delegates.c: Rebuild.
4881 * target.c (update_current_target): Don't inherit or default
4882 to_can_download_tracepoint.
4883 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4884 TARGET_DEFAULT_RETURN.
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target-delegates.c: Rebuild.
4889 * target.c (update_current_target): Don't inherit or default
4890 to_download_tracepoint.
4891 * target.h (struct target_ops) <to_download_tracepoint>: Use
4892 TARGET_DEFAULT_NORETURN.
4894 2014-02-19 Tom Tromey <tromey@redhat.com>
4896 * target-delegates.c: Rebuild.
4897 * target.c (update_current_target): Don't inherit or default
4899 * target.h (struct target_ops) <to_trace_init>: Use
4900 TARGET_DEFAULT_RETURN.
4902 2014-02-19 Tom Tromey <tromey@redhat.com>
4904 * target-delegates.c: Rebuild.
4905 * target.c (update_current_target): Don't inherit or default
4906 to_supports_string_tracing.
4907 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4908 TARGET_DEFAULT_RETURN.
4910 2014-02-19 Tom Tromey <tromey@redhat.com>
4912 * target-delegates.c: Rebuild.
4913 * target.c (update_current_target): Don't inherit or default
4914 to_supports_enable_disable_tracepoint.
4915 * target.h (struct target_ops)
4916 <to_supports_enable_disable_tracepoint>: Use
4917 TARGET_DEFAULT_RETURN.
4919 2014-02-19 Tom Tromey <tromey@redhat.com>
4921 * target-delegates.c: Rebuild.
4922 * target.c (update_current_target): Don't inherit or default
4923 to_supports_multi_process.
4924 * target.h (struct target_ops) <to_supports_multi_process>: Use
4925 TARGET_DEFAULT_RETURN.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (update_current_target): Don't inherit or default
4931 to_get_ada_task_ptid.
4932 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4933 TARGET_DEFAULT_FUNC.
4935 2014-02-19 Tom Tromey <tromey@redhat.com>
4937 * target-delegates.c: Rebuild.
4938 * target.c (update_current_target): Don't inherit or default
4939 to_thread_architecture.
4940 * target.h (struct target_ops) <to_thread_architecture>: Use
4941 TARGET_DEFAULT_FUNC.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target-delegates.c: Rebuild.
4946 * target.c (update_current_target): Don't inherit or default
4947 to_execution_direction.
4948 * target.h (struct target_ops) <to_execution_direction>: Use
4949 TARGET_DEFAULT_FUNC.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target-delegates.c: Rebuild.
4954 * target.c (update_current_target): Don't inherit or default
4955 to_can_execute_reverse.
4956 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4957 TARGET_DEFAULT_RETURN.
4958 (target_can_execute_reverse): Unconditionally delegate.
4960 2014-02-19 Tom Tromey <tromey@redhat.com>
4962 * target-delegates.c: Rebuild.
4963 * target.c (update_current_target): Don't inherit or default
4965 (dummy_goto_bookmark): Remove.
4966 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4967 * target.h (struct target_ops) <to_goto_bookmark>: Use
4968 TARGET_DEFAULT_NORETURN.
4970 2014-02-19 Tom Tromey <tromey@redhat.com>
4972 * target-delegates.c: Rebuild.
4973 * target.c (update_current_target): Don't inherit or default
4975 (dummy_get_bookmark): Remove.
4976 (init_dummy_target): Don't inherit or default to_get_bookmark.
4977 * target.h (struct target_ops) <to_get_bookmark>: Use
4978 TARGET_DEFAULT_NORETURN
4980 2014-02-19 Tom Tromey <tromey@redhat.com>
4982 * target-delegates.c: Rebuild.
4983 * target.c (update_current_target): Don't inherit or default
4984 to_make_corefile_notes.
4985 (init_dummy_target): Don't initialize to_make_corefile_notes.
4986 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4987 TARGET_DEFAULT_FUNC.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * target-delegates.c: Rebuild.
4992 * target.c (update_current_target): Don't inherit or default
4993 to_find_memory_regions.
4994 (init_dummy_target): Don't initialize to_find_memory_regions.
4995 * target.h (struct target_ops) <to_find_memory_regions>: Use
4996 TARGET_DEFAULT_FUNC.
4998 2014-02-19 Tom Tromey <tromey@redhat.com>
5000 * target-delegates.c: Rebuild.
5001 * target.c (update_current_target): Don't inherit or default
5003 * target.h (struct target_ops) <to_log_command>: Use
5004 TARGET_DEFAULT_IGNORE.
5005 (target_log_command): Unconditionally delegate.
5007 2014-02-19 Tom Tromey <tromey@redhat.com>
5009 * target-delegates.c: Rebuild.
5010 * target.c (update_current_target): Don't inherit or default
5011 to_pid_to_exec_file.
5012 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5013 TARGET_DEFAULT_RETURN.
5015 2014-02-19 Tom Tromey <tromey@redhat.com>
5017 * target-delegates.c: Rebuild.
5018 * target.c (update_current_target): Don't inherit or default
5020 (target_thread_name): Unconditionally delegate.
5021 * target.h (struct target_ops) <to_thread_name>: Use
5022 TARGET_DEFAULT_RETURN.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * target-delegates.c: Rebuild.
5027 * target.c (update_current_target): Don't inherit or default
5028 to_extra_thread_info.
5029 * target.h (struct target_ops) <to_extra_thread_info>: Use
5030 TARGET_DEFAULT_RETURN.
5032 2014-02-19 Tom Tromey <tromey@redhat.com>
5034 * target-delegates.c: Rebuild.
5035 * target.c (update_current_target): Don't inherit or default
5037 * target.h (struct target_ops) <to_has_exited>: Use
5038 TARGET_DEFAULT_RETURN..
5040 2014-02-19 Tom Tromey <tromey@redhat.com>
5042 * target-delegates.c: Rebuild.
5043 * target.c (update_current_target): Don't inherit or default
5044 to_set_syscall_catchpoint.
5045 (return_one): Remove.
5046 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5047 TARGET_DEFAULT_RETURN.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target-delegates.c: Rebuild.
5052 * target.c (update_current_target): Don't inherit or default
5053 to_insert_exec_catchpoint.
5054 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5055 TARGET_DEFAULT_RETURN.
5057 2014-01-08 Tom Tromey <tromey@redhat.com>
5059 * target-delegates.c: Rebuild.
5060 * target.c (update_current_target): Don't inherit or default
5061 to_insert_exec_catchpoint.
5062 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5063 TARGET_DEFAULT_RETURN.
5065 2014-02-19 Tom Tromey <tromey@redhat.com>
5067 * target-delegates.c: Rebuild.
5068 * target.c (update_current_target): Don't inherit or default
5069 to_remove_vfork_catchpoint.
5070 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5071 TARGET_DEFAULT_RETURN.
5073 2014-02-19 Tom Tromey <tromey@redhat.com>
5075 * target-delegates.c: Rebuild.
5076 * target.c (update_current_target): Don't inherit or default
5077 to_insert_vfork_catchpoint.
5078 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5079 TARGET_DEFAULT_RETURN.
5081 2014-02-19 Tom Tromey <tromey@redhat.com>
5083 * target-delegates.c: Rebuild.
5084 * target.c (update_current_target): Don't inherit or default
5085 to_remove_fork_catchpoint.
5086 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5087 TARGET_DEFAULT_RETURN.
5089 2014-02-19 Tom Tromey <tromey@redhat.com>
5091 * target-delegates.c: Rebuild.
5092 * target.c (update_current_target): Don't inherit or default
5093 to_insert_fork_catchpoint.
5094 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5095 TARGET_DEFAULT_RETURN.
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5099 * target-delegates.c: Rebuild.
5100 * target.c (update_current_target): Don't inherit or default
5101 to_post_startup_inferior.
5102 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5103 TARGET_DEFAULT_IGNORE.
5105 2014-02-19 Tom Tromey <tromey@redhat.com>
5107 * target-delegates.c: Rebuild.
5108 * target.c (update_current_target): Don't inherit or default
5110 * target.h (struct target_ops) <to_load>: Use
5111 TARGET_DEFAULT_NORETURN.
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target-delegates.c: Rebuild.
5116 * target.c (update_current_target): Don't inherit or default
5118 * target.h (struct target_ops) <to_terminal_info>: Use
5119 TARGET_DEFAULT_FUNC.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target-delegates.c: Rebuild.
5124 * target.c (update_current_target): Don't inherit or default
5125 to_terminal_save_ours.
5126 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5127 TARGET_DEFAULT_IGNORE.
5129 2014-02-19 Tom Tromey <tromey@redhat.com>
5131 * target-delegates.c: Rebuild.
5132 * target.c (update_current_target): Don't inherit or default
5134 * target.h (struct target_ops) <to_terminal_ours>: Use
5135 TARGET_DEFAULT_IGNORE.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (update_current_target): Don't inherit or default
5141 to_terminal_ours_for_output.
5142 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5143 TARGET_DEFAULT_IGNORE.
5145 2014-02-19 Tom Tromey <tromey@redhat.com>
5147 * target-delegates.c: Rebuild.
5148 * target.c (update_current_target): Don't inherit or default
5149 to_terminal_inferior.
5150 * target.h (struct target_ops) <to_terminal_inferior>: Use
5151 TARGET_DEFAULT_IGNORE.
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5155 * target-delegates.c: Rebuild.
5156 * target.c (update_current_target): Don't inherit or default
5158 * target.h (struct target_ops) <to_terminal_init>: Use
5159 TARGET_DEFAULT_IGNORE.
5161 2014-02-19 Tom Tromey <tromey@redhat.com>
5163 * target-delegates.c: Rebuild.
5164 * target.c (update_current_target): Don't inherit or default
5165 to_can_accel_watchpoint_condition.
5166 * target.h (struct target_ops)
5167 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5169 2014-02-19 Tom Tromey <tromey@redhat.com>
5171 * target-delegates.c: Rebuild.
5172 * target.c (update_current_target): Don't inherit or default
5173 to_region_ok_for_hw_watchpoint.
5174 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5175 Use TARGET_DEFAULT_FUNC.
5177 2014-02-19 Tom Tromey <tromey@redhat.com>
5179 * target-delegates.c: Rebuild.
5180 * target.c (update_current_target): Don't inherit or default
5181 to_watchpoint_addr_within_range.
5182 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5183 Use TARGET_DEFAULT_FUNC.
5185 2014-02-19 Tom Tromey <tromey@redhat.com>
5187 * target-delegates.c: Rebuild.
5188 * target.c (update_current_target): Don't inherit or default
5189 to_remove_watchpoint.
5190 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5191 TARGET_DEFAULT_NORETURN.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * target-delegates.c: Rebuild.
5196 * target.c (update_current_target): Don't inherit or default
5197 to_insert_watchpoint.
5198 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5199 TARGET_DEFAULT_RETURN.
5201 2014-02-19 Tom Tromey <tromey@redhat.com>
5203 * target-delegates.c: Rebuild.
5204 * target.c (update_current_target): Don't inherit or default
5205 to_remove_hw_breakpoint.
5206 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5207 TARGET_DEFAULT_RETURN.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target-delegates.c: Rebuild.
5212 * target.c (update_current_target): Don't inherit or default
5213 to_insert_hw_breakpoint.
5214 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5215 TARGET_DEFAULT_RETURN.
5217 2014-02-19 Tom Tromey <tromey@redhat.com>
5219 * target-delegates.c: Rebuild.
5220 * target.c (update_current_target): Don't inherit or default
5221 to_can_use_hw_breakpoint.
5222 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5223 TARGET_DEFAULT_RETURN.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * target-delegates.c: Rebuild.
5228 * target.c (update_current_target): Don't inherit or default
5230 * target.h (struct target_ops) <to_files_info>: Use
5231 TARGET_DEFAULT_IGNORE.
5233 2014-02-19 Tom Tromey <tromey@redhat.com>
5235 * target-delegates.c: Rebuild.
5236 * target.c (update_current_target): Don't inherit or default
5238 * target.h (struct target_ops) <to_store>: Use
5239 TARGET_DEFAULT_NORETURN.
5241 2014-02-19 Tom Tromey <tromey@redhat.com>
5243 * target-delegates.c: Rebuild.
5244 * target.c (update_current_target): Don't inherit or default
5246 * target.h (struct target_ops) <to_post_attach>: Use
5247 TARGET_DEFAULT_IGNORE.
5249 2014-02-19 Tom Tromey <tromey@redhat.com>
5251 * target-delegates.c: Rebuild.
5252 * target.c (update_current_target): Don't inherit or default
5254 (default_rcmd): New function.
5255 (do_monitor_command): Unconditionally delegate.
5256 * target.h (struct target_ops) <to_rmcd>: Use
5257 TARGET_DEFAULT_FUNC.
5259 2014-02-19 Tom Tromey <tromey@redhat.com>
5261 * target-delegates.c: Rebuild.
5262 * target.c (init_dummy_target): Don't initialize to_attach.
5263 (target_attach): Unconditionally delegate.
5264 * target.h (struct target_ops) <to_attach>: Use
5265 TARGET_DEFAULT_FUNC.
5267 2014-02-19 Tom Tromey <tromey@redhat.com>
5269 * target-delegates.c: Rebuild.
5270 * target.c (target_detach): Unconditionally delegate.
5271 (init_dummy_target): Don't initialize to_detach.
5272 * target.h (struct target_ops) <to_detach>: Use
5273 TARGET_DEFAULT_IGNORE.
5275 2014-02-19 Tom Tromey <tromey@redhat.com>
5277 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5279 (target_augmented_libraries_svr4_read): Add argument.
5280 * target.c (update_current_target): Update.
5281 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5284 2014-02-19 Tom Tromey <tromey@redhat.com>
5286 * target.h (struct target_ops) <to_call_history_range>: Add
5288 * target.c (target_call_history_range): Add argument.
5289 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5291 (record_btrace_call_history_from): Update.
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target.h (struct target_ops) <to_call_history_from>: Add
5297 * target.c (target_call_history_from): Add argument.
5298 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target.h (struct target_ops) <to_call_history>: Add argument.
5304 * target.c (target_call_history): Add argument.
5305 * record-btrace.c (record_btrace_call_history): Add 'self'
5308 2014-02-19 Tom Tromey <tromey@redhat.com>
5310 * target.h (struct target_ops) <to_insn_history_range>: Add
5312 * target.c (target_insn_history_range): Add argument.
5313 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5315 (record_btrace_insn_history_from): Update.
5317 2014-02-19 Tom Tromey <tromey@redhat.com>
5319 * target.h (struct target_ops) <to_insn_history_from>: Add
5321 * target.c (target_insn_history_from): Add argument.
5322 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5325 2014-02-19 Tom Tromey <tromey@redhat.com>
5327 * target.h (struct target_ops) <to_insn_history>: Add argument.
5328 * target.c (target_insn_history): Add argument.
5329 * record-btrace.c (record_btrace_insn_history): Add 'self'
5332 2014-02-19 Tom Tromey <tromey@redhat.com>
5334 * target.h (struct target_ops) <to_goto_record>: Add argument.
5335 * target.c (target_goto_record): Add argument.
5336 * record-full.c (record_full_goto): Add 'self' argument.
5337 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5339 2014-02-19 Tom Tromey <tromey@redhat.com>
5341 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5342 * target.c (target_goto_record_end): Add argument.
5343 * record-full.c (record_full_goto_end): Add 'self' argument.
5344 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target.h (struct target_ops) <to_goto_record_begin>: Add
5350 * target.c (target_goto_record_begin): Add argument.
5351 * record-full.c (record_full_goto_begin): Add 'self' argument.
5352 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5355 2014-02-19 Tom Tromey <tromey@redhat.com>
5357 * target.h (struct target_ops) <to_record_is_replaying>: Add
5359 * target.c (target_record_is_replaying): Add argument.
5360 * record-full.c (record_full_is_replaying): Add 'self' argument.
5361 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5363 (record_btrace_xfer_partial, record_btrace_store_registers)
5364 (record_btrace_prepare_to_store, record_btrace_resume)
5365 (record_btrace_wait, record_btrace_decr_pc_after_break)
5366 (record_btrace_find_new_threads, record_btrace_thread_alive):
5369 2014-02-19 Tom Tromey <tromey@redhat.com>
5371 * target.h (struct target_ops) <to_delete_record>: Add argument.
5372 * target.c (target_delete_record): Add argument.
5373 * record-full.c (record_full_delete): Add 'self' argument.
5375 2014-02-19 Tom Tromey <tromey@redhat.com>
5377 * target.h (struct target_ops) <to_save_record>: Add argument.
5378 * target.c (target_save_record): Add argument.
5379 * record-full.c (record_full_save): Add 'self' argument.
5380 (record_full_save): Add 'self' argument.
5382 2014-02-19 Tom Tromey <tromey@redhat.com>
5384 * target.h (struct target_ops) <to_info_record>: Add argument.
5385 * target.c (target_info_record): Add argument.
5386 * record.c (info_record_command): Add argument.
5387 * record-full.c (record_full_info): Add 'self' argument.
5388 * record-btrace.c (record_btrace_info): Add 'self' argument.
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5393 * target.c (target_stop_recording): Add argument.
5394 * record.c (record_stop): Add argument.
5395 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5398 2014-02-19 Tom Tromey <tromey@redhat.com>
5400 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5401 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5402 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5404 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5405 (_initialize_amd64_linux_nat): Use it.
5406 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5407 (_initialize_i386_linux_nat): Use it.
5409 2014-02-19 Tom Tromey <tromey@redhat.com>
5411 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5412 * target.c (target_teardown_btrace): Add argument.
5413 * remote.c (remote_teardown_btrace): Add 'self' argument.
5414 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5416 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5419 2014-02-19 Tom Tromey <tromey@redhat.com>
5421 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5422 * target.c (target_disable_btrace): Add argument.
5423 * remote.c (remote_disable_btrace): Add 'self' argument.
5424 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5426 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5432 * target.c (target_enable_btrace): Add argument.
5433 * remote.c (remote_enable_btrace): Add 'self' argument.
5434 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5436 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5439 2014-02-19 Tom Tromey <tromey@redhat.com>
5441 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5442 (target_can_use_agent): Add argument.
5443 * target.c (update_current_target): Update.
5444 * remote.c (remote_can_use_agent): Add 'self' argument.
5445 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5447 2014-02-19 Tom Tromey <tromey@redhat.com>
5449 * target.h (struct target_ops) <to_use_agent>: Add argument.
5450 (target_use_agent): Add argument.
5451 * target.c (update_current_target): Update.
5452 * remote.c (remote_use_agent): Add 'self' argument.
5453 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5455 2014-02-19 Tom Tromey <tromey@redhat.com>
5457 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5458 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5459 (target_traceframe_info): Add argument.
5460 * target.c (update_current_target): Update.
5461 * remote.c (remote_traceframe_info): Add 'self' argument.
5462 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5466 * target.h (target_static_tracepoint_markers_by_strid): Add
5468 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5470 * target.c (update_current_target): Update.
5471 * remote.c (struct target_ops)
5472 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5473 * linux-nat.c (struct target_ops)
5474 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5476 2014-02-19 Tom Tromey <tromey@redhat.com>
5478 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5480 (target_static_tracepoint_marker_at): Add argument.
5481 * target.c (update_current_target): Update.
5482 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5488 (target_set_permissions): Add argument.
5489 * target.c (update_current_target): Update.
5490 * remote.c (remote_set_permissions): Add 'self' argument.
5491 (remote_start_remote): Update.
5493 2014-02-19 Tom Tromey <tromey@redhat.com>
5495 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5496 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5497 (target_get_tib_address): Add argument.
5498 * target.c (update_current_target): Update.
5499 * remote.c (remote_get_tib_address): Add 'self' argument.
5501 2014-02-19 Tom Tromey <tromey@redhat.com>
5503 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5504 (target_set_trace_notes): Add argument.
5505 * target.c (update_current_target): Update.
5506 * remote.c (remote_set_trace_notes): Add 'self' argument.
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5512 (target_set_trace_buffer_size): Add argument.
5513 * target.c (update_current_target): Update.
5514 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5516 2014-02-19 Tom Tromey <tromey@redhat.com>
5518 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5520 (target_set_circular_trace_buffer): Add argument.
5521 * target.c (update_current_target): Update.
5522 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5525 2014-02-19 Tom Tromey <tromey@redhat.com>
5527 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5529 (target_set_disconnected_tracing): Add argument.
5530 * target.c (update_current_target): Update.
5531 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5533 2014-02-19 Tom Tromey <tromey@redhat.com>
5535 * target.h (struct target_ops)
5536 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5537 (target_get_min_fast_tracepoint_insn_len): Add argument.
5538 * target.c (update_current_target): Update.
5539 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5542 2014-02-19 Tom Tromey <tromey@redhat.com>
5544 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5546 (target_get_raw_trace_data): Add argument.
5547 * target.c (update_current_target): Update.
5548 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5550 2014-02-19 Tom Tromey <tromey@redhat.com>
5552 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5554 (target_upload_trace_state_variables): Add argument.
5555 * target.c (update_current_target): Update.
5556 * remote.c (remote_upload_trace_state_variables): Add 'self'
5558 (remote_start_remote): Update.
5560 2014-02-19 Tom Tromey <tromey@redhat.com>
5562 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5564 (target_upload_tracepoints): Add argument.
5565 * target.c (update_current_target): Update.
5566 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5567 (remote_start_remote): Update.
5569 2014-02-19 Tom Tromey <tromey@redhat.com>
5571 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5572 (target_save_trace_data): Add argument.
5573 * target.c (update_current_target): Update.
5574 * remote.c (remote_save_trace_data): Add 'self' argument.
5576 2014-02-19 Tom Tromey <tromey@redhat.com>
5578 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5580 * target.h (struct target_ops)
5581 <to_get_trace_state_variable_value>: Add argument.
5582 (target_get_trace_state_variable_value): Add argument.
5583 * target.c (update_current_target): Update.
5584 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5586 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5591 * target.h (struct target_ops) <to_trace_find>: Add argument.
5592 (target_trace_find): Add argument.
5593 * target.c (update_current_target): Update.
5594 * remote.c (remote_trace_find): Add 'self' argument.
5595 * ctf.c (ctf_trace_find): Add 'self' argument.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5600 (target_trace_stop): Add argument.
5601 * target.c (update_current_target): Update.
5602 * remote.c (remote_trace_stop): Add 'self' argument.
5604 2014-02-19 Tom Tromey <tromey@redhat.com>
5606 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5607 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5609 (target_get_tracepoint_status): Add argument.
5610 * target.c (update_current_target): Update.
5611 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5613 2014-02-19 Tom Tromey <tromey@redhat.com>
5615 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5616 * target.h (struct target_ops) <to_get_trace_status>: Add
5618 (target_get_trace_status): Add argument.
5619 * target.c (update_current_target): Update.
5620 * remote.c (remote_get_trace_status): Add 'self' argument.
5621 (remote_start_remote, remote_can_download_tracepoint): Update.
5622 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5626 * target.h (struct target_ops) <to_trace_start>: Add argument.
5627 (target_trace_start): Add argument.
5628 * target.c (update_current_target): Update.
5629 * remote.c (remote_trace_start): Add 'self' argument.
5631 2014-02-19 Tom Tromey <tromey@redhat.com>
5633 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5635 (target_trace_set_readonly_regions): Add argument.
5636 * target.c (update_current_target): Update.
5637 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5644 (target_disable_tracepoint): Add argument.
5645 * target.c (update_current_target): Update.
5646 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5648 2014-02-19 Tom Tromey <tromey@redhat.com>
5650 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5652 (target_enable_tracepoint): Add argument.
5653 * target.c (update_current_target): Update.
5654 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5656 2014-02-19 Tom Tromey <tromey@redhat.com>
5658 * target.h (struct target_ops) <to_download_trace_state_variable>:
5660 (target_download_trace_state_variable): Add argument.
5661 * target.c (update_current_target): Update.
5662 * remote.c (remote_download_trace_state_variable): Add 'self'
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5669 (target_can_download_tracepoint): Add argument.
5670 * target.c (update_current_target): Update.
5671 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5673 2014-02-19 Tom Tromey <tromey@redhat.com>
5675 * target.h (struct target_ops) <to_download_tracepoint>: Add
5677 (target_download_tracepoint): Add argument.
5678 * target.c (update_current_target): Update.
5679 * remote.c (remote_download_tracepoint): Add 'self' argument.
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target.h (struct target_ops) <to_trace_init>: Add argument.
5684 (target_trace_init): Add argument.
5685 * target.c (update_current_target): Update.
5686 * remote.c (remote_trace_init): Add 'self' argument.
5688 2014-02-19 Tom Tromey <tromey@redhat.com>
5690 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5691 * target.c (target_fileio_readlink): Add argument.
5692 * remote.c (remote_hostio_readlink): Add 'self' argument.
5693 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5698 * target.c (target_fileio_unlink): Add argument.
5699 * remote.c (remote_hostio_unlink): Add 'self' argument.
5700 (remote_file_delete): Update.
5701 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5703 2014-02-19 Tom Tromey <tromey@redhat.com>
5705 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5706 * target.c (target_fileio_close): Add argument.
5707 * remote.c (remote_hostio_close): Add 'self' argument.
5708 (remote_hostio_close_cleanup): Update.
5709 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5711 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5713 2014-02-19 Tom Tromey <tromey@redhat.com>
5715 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5716 * target.c (target_fileio_pread): Add argument.
5717 * remote.c (remote_hostio_pread): Add 'self' argument.
5718 (remote_bfd_iovec_pread, remote_file_get): Update.
5719 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5721 2014-02-19 Tom Tromey <tromey@redhat.com>
5723 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5724 * target.c (target_fileio_pwrite): Add argument.
5725 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5726 (remote_file_put): Update.
5727 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5732 * target.c (target_fileio_open): Add argument.
5733 * remote.c (remote_hostio_open): Add 'self' argument.
5734 (remote_bfd_iovec_open): Add 'self' argument.
5735 (remote_file_put): Add 'self' argument.
5736 (remote_file_get): Add 'self' argument.
5737 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5743 (target_can_run_breakpoint_commands): Add argument.
5744 * target.c (update_current_target): Update.
5745 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5747 (remote_insert_breakpoint): Add 'self' argument.
5748 (remote_insert_hw_breakpoint): Add 'self' argument.
5749 (remote_can_run_breakpoint_commands): Add 'self' argument.
5751 2014-02-19 Tom Tromey <tromey@redhat.com>
5753 * target.h (struct target_ops)
5754 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5755 (target_supports_evaluation_of_breakpoint_conditions): Add
5757 * target.c (update_current_target): Update.
5758 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5760 (remote_insert_breakpoint): Add 'self' argument.
5761 (remote_insert_hw_breakpoint): Add 'self' argument.
5762 (remote_supports_cond_breakpoints): Add 'self' argument.
5764 2014-02-19 Tom Tromey <tromey@redhat.com>
5766 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5768 (target_supports_string_tracing): Add argument.
5769 * target.c (update_current_target): Update.
5770 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5772 2014-02-19 Tom Tromey <tromey@redhat.com>
5774 * target.h (struct target_ops)
5775 <to_supports_disable_randomization>: Add argument.
5776 * target.c (find_default_supports_disable_randomization): Add
5778 (target_supports_disable_randomization): Add argument.
5779 (find_default_supports_disable_randomization): Add 'self'
5781 * remote.c (extended_remote_supports_disable_randomization): Add
5783 (remote_supports_disable_randomization): Add 'self' argument.
5784 (extended_remote_create_inferior): Update.
5785 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5788 2014-02-19 Tom Tromey <tromey@redhat.com>
5790 * target.h (struct target_ops)
5791 <to_supports_enable_disable_tracepoint>: Add argument.
5792 (target_supports_enable_disable_tracepoint): Add argument.
5793 * target.c (update_current_target): Update.
5794 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5797 2014-02-19 Tom Tromey <tromey@redhat.com>
5799 * target.h (struct target_ops) <to_supports_multi_process>: Add
5801 (target_supports_multi_process): Add argument.
5802 * target.c (update_current_target): Update.
5803 * remote.c (remote_supports_multi_process): Add 'self' argument.
5804 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5806 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5809 2014-02-19 Tom Tromey <tromey@redhat.com>
5811 * target.h (struct target_ops) <to_execution_direction>: Add
5813 (target_execution_direction): Add argument.
5814 * target.c (default_execution_direction): Add 'self' argument.
5815 * record-full.c (record_full_execution_direction): Add 'self'
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5822 (target_can_execute_reverse): Add argument.
5823 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5824 * record-full.c (record_full_can_execute_reverse): Add 'self'
5826 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5829 2014-02-19 Tom Tromey <tromey@redhat.com>
5831 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5832 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5834 (target_get_ada_task_ptid): Add argument.
5835 * target.c (update_current_target): Update.
5836 (default_get_ada_task_ptid): Add 'self' argument.
5837 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5838 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5839 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5841 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5843 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5845 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5847 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5848 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5851 2014-02-19 Tom Tromey <tromey@redhat.com>
5853 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5854 (target_goto_bookmark): Add argument.
5855 * target.c (dummy_goto_bookmark): Add 'self' argument.
5856 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5858 2014-02-19 Tom Tromey <tromey@redhat.com>
5860 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5861 (target_get_bookmark): Add argument.
5862 * target.c (dummy_get_bookmark): Add 'self' argument.
5863 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5869 (target_make_corefile_notes): Add argument.
5870 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5871 * procfs.c (procfs_make_note_section): Add 'self' argument.
5872 (procfs_make_note_section): Add 'self' argument.
5873 (procfs_make_note_section): Add 'self' argument.
5874 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5876 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5877 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5878 * exec.c (exec_make_note_section): Add 'self' argument.
5879 (exec_make_note_section): Add 'self' argument.
5881 2014-02-19 Tom Tromey <tromey@redhat.com>
5883 * target.h (struct target_ops) <to_find_memory_regions>: Add
5885 (target_find_memory_regions): Add argument.
5886 * target.c (dummy_find_memory_regions): Add 'self' argument.
5887 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5888 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5889 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5890 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5891 * exec. (exec_do_find_memory_regions): New global.
5892 (exec_set_find_memory_regions): Rewrite.
5893 (exec_find_memory_regions): New function.
5894 (init_exec_ops): Use exec_find_memory_regions.
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * target.h (struct target_ops) <to_supports_non_stop>: Add
5900 * target.c (find_default_supports_non_stop): Add argument.
5901 (target_supports_non_stop): Add argument.
5902 (find_default_supports_non_stop): Add 'self' argument.
5903 * remote.c (remote_supports_non_stop): Add 'self' argument.
5904 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target.h (struct target_ops) <to_log_command>: Add argument.
5909 (target_log_command): Add argument.
5910 * serial.h (serial_log_command): Add 'self' argument.
5911 * serial.c (serial_log_command): Add 'self' argument.
5913 2014-02-19 Tom Tromey <tromey@redhat.com>
5915 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5916 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5918 (target_pid_to_exec_file): Add argument.
5919 * target.c (debug_to_pid_to_exec_file): Add argument.
5920 (update_current_target): Update.
5921 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5922 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5923 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5924 (linux_handle_extended_wait): Update.
5925 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5926 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5927 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5928 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5930 2014-02-19 Tom Tromey <tromey@redhat.com>
5932 * target.h (struct target_ops) <to_rcmd>: Add argument.
5933 (target_rcmd): Add argument.
5934 * target.c (debug_to_rcmd): Add argument.
5935 (update_current_target, do_monitor_command): Update.
5936 * remote.c (remote_rcmd): Add 'self' argument.
5937 * monitor.c (monitor_rcmd): Add 'self' argument.
5939 2014-02-19 Tom Tromey <tromey@redhat.com>
5941 * windows-nat.c (windows_stop): Add 'self' argument.
5942 * target.h (struct target_ops) <to_stop>: Add argument.
5943 * target.c (target_stop): Add argument.
5944 (debug_to_stop): Add argument.
5945 (update_current_target): Update.
5946 * remote.c (remote_stop): Add 'self' argument.
5947 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5948 (gdbsim_cntrl_c): Update.
5949 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5950 * procfs.c (procfs_stop): Add 'self' argument.
5951 * nto-procfs.c (procfs_stop): Add 'self' argument.
5952 * monitor.c (monitor_stop): Add 'self' argument.
5953 (monitor_open): Update.
5954 * linux-nat.c (linux_nat_stop): Add argument.
5955 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5956 * gnu-nat.c (gnu_stop): Add 'self' argument.
5957 * darwin-nat.c (darwin_stop): Add 'self' argument.
5959 2014-02-19 Tom Tromey <tromey@redhat.com>
5961 * target.h (struct target_ops) <to_thread_name>: Add argument.
5962 * target.c (target_thread_name): Add argument.
5963 (update_current_target): Update.
5964 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5966 2014-02-19 Tom Tromey <tromey@redhat.com>
5968 * target.h (struct target_ops) <to_extra_thread_info>: Add
5970 (target_extra_thread_info): Add argument.
5971 * target.c (update_current_target): Update.
5972 * remote.c (remote_threads_extra_info): Add 'self' argument.
5973 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5975 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5976 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5977 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5979 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5981 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5983 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5986 2014-02-19 Tom Tromey <tromey@redhat.com>
5988 * target.h (struct target_ops) <to_program_signals>: Add argument.
5989 * target.c (target_program_signals): Add argument.
5990 * remote.c (remote_program_signals): Add 'self' argument.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5995 * target.c (target_pass_signals): Add argument.
5996 * remote.c (remote_pass_signals): Add 'self' argument.
5997 (remote_start_remote): Update.
5998 * procfs.c (procfs_pass_signals): Add 'self' argument.
5999 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6000 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6001 (linux_nat_create_inferior, linux_nat_attach): Update.
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6005 * windows-nat.c (windows_can_run): Add 'self' argument.
6006 * target.h (struct target_ops) <to_can_run>: Add argument.
6007 (target_can_run): Add argument.
6008 * target.c (debug_to_can_run): Add argument.
6009 (update_current_target): Update.
6010 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6011 * inf-child.c (inf_child_can_run): Add 'self' argument.
6012 * go32-nat.c (go32_can_run): Add 'self' argument.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target.h (struct target_ops) <to_has_exited>: Add argument.
6017 (target_has_exited): Add argument.
6018 * target.c (debug_to_has_exited): Add argument.
6019 (update_current_target): Update.
6021 2014-02-19 Tom Tromey <tromey@redhat.com>
6023 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6025 (target_set_syscall_catchpoint): Add argument.
6026 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6028 * target.c (update_current_target): Update.
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6034 (target_remove_exec_catchpoint): Add argument.
6035 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6036 (update_current_target): Update.
6037 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6044 (target_insert_exec_catchpoint): Add argument.
6045 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6046 (update_current_target): Update.
6047 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6054 (target_remove_vfork_catchpoint): Add argument.
6055 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6056 (update_current_target): Update.
6057 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6064 (target_insert_vfork_catchpoint): Add argument.
6065 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6066 (update_current_target): Update.
6067 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6074 (target_remove_fork_catchpoint): Add argument.
6075 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6076 (update_current_target): Update.
6077 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6084 (target_insert_fork_catchpoint): Add argument.
6085 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6086 (update_current_target): Update.
6087 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6090 2014-02-19 Tom Tromey <tromey@redhat.com>
6092 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6094 (target_post_startup_inferior): Add argument.
6095 * target.c (debug_to_post_startup_inferior): Add argument.
6096 (update_current_target): Update.
6097 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6099 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6101 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6103 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6105 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6107 (super_post_startup_inferior): Likewise.
6108 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6110 (super_post_startup_inferior): Likewise.
6111 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6112 Add 'self' argument.
6113 (super_post_startup_inferior): Likewise.
6115 2014-02-19 Tom Tromey <tromey@redhat.com>
6117 * target.h (struct target_ops) <to_load>: Add argument.
6118 * target.c (target_load): Add argument.
6119 (debug_to_load): Add argument.
6120 (update_current_target): Update.
6121 * remote.c (remote_load): Add 'self' argument.
6122 * remote-sim.c (gdbsim_load): Add 'self' argument.
6123 * remote-mips.c (mips_load): Add 'self' argument.
6124 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6125 * monitor.c (monitor_load): Add 'self' argument.
6126 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6131 (target_terminal_info): Add argument.
6132 * target.c (debug_to_terminal_info): Add argument.
6133 (default_terminal_info): Likewise.
6134 * inflow.c (child_terminal_info): Add 'self' argument.
6135 * inferior.h (child_terminal_info): Add 'self' argument.
6136 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6142 (target_terminal_save_ours): Add argument.
6143 * target.c (debug_to_terminal_save_ours): Add argument.
6144 (update_current_target): Update.
6145 * inflow.c (terminal_save_ours): Add 'self' argument.
6146 * inferior.h (terminal_save_ours): Add 'self' argument.
6148 2014-02-19 Tom Tromey <tromey@redhat.com>
6150 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6151 (target_terminal_ours): Add argument.
6152 * target.c (debug_to_terminal_ours): Add argument.
6153 (update_current_target): Update.
6154 * remote.c (remote_terminal_ours): Add 'self' argument.
6155 (remote_close): Update.
6156 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6157 * inflow.c (terminal_ours): Add 'self' argument.
6158 * inferior.h (terminal_ours): Add 'self' argument.
6159 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6161 2014-02-19 Pedro Alves <palves@redhat.com>
6162 Tom Tromey <tromey@redhat.com>
6164 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6166 (target_terminal_ours_for_output): Add argument.
6167 * target.c (debug_to_terminal_ours_for_output): Add argument.
6168 (update_current_target): Update.
6169 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6170 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6171 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6173 2014-02-19 Tom Tromey <tromey@redhat.com>
6175 * target.h (struct target_ops) <to_terminal_inferior>: Add
6177 * target.c (target_terminal_inferior): Add argument.
6178 (update_current_target): Update.
6179 * remote.c (remote_terminal_inferior): Add 'self' argument.
6180 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6181 * inflow.c (terminal_inferior): Add 'self' argument.
6182 * inferior.h (terminal_inferior): Add 'self' argument.
6183 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6184 (go32_terminal_inferior): Add 'self' argument.
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6188 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6189 (target_terminal_init): Add argument.
6190 * target.c (debug_to_terminal_init): Add argument.
6191 (update_current_target): Update.
6192 * inflow.c (terminal_init_inferior): Add 'self' argument.
6193 * inferior.h (terminal_init_inferior): Add 'self' argument.
6194 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6195 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target.h (struct target_ops)
6200 <to_can_accel_watchpoint_condition>: Add argument.
6201 (target_can_accel_watchpoint_condition): Add argument.
6202 * target.c (debug_to_can_accel_watchpoint_condition): Add
6204 (update_current_target): Update.
6205 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6208 2014-02-19 Tom Tromey <tromey@redhat.com>
6210 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6212 (target_region_ok_for_hw_watchpoint): Add argument.
6213 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6214 (default_region_ok_for_hw_watchpoint): Add argument.
6215 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6216 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6218 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6220 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6222 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6224 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6226 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6228 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6229 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6231 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6232 Add 'self' argument.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6238 (target_insert_watchpoint): Add argument.
6239 * target.c (debug_to_insert_watchpoint): Add argument.
6240 (update_current_target): Update.
6241 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6242 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6243 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6244 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6245 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6246 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6248 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6249 (procfs_insert_hw_watchpoint): Add 'self' argument.
6250 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6252 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6254 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6256 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6257 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6259 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6266 (target_remove_watchpoint): Add argument.
6267 * target.c (debug_to_remove_watchpoint): Add argument.
6268 (update_current_target): Update.
6269 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6270 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6271 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6272 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6273 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6274 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6276 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6277 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6279 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6281 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6283 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6284 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6286 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6289 2014-02-19 Tom Tromey <tromey@redhat.com>
6291 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6293 (target_remove_hw_breakpoint): Add argument.
6294 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6295 (update_current_target): Update.
6296 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6297 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6299 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6300 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6302 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6309 (target_insert_hw_breakpoint): Add argument.
6310 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6311 (update_current_target): Update.
6312 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6313 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6315 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6316 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6317 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6319 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6322 2014-02-19 Tom Tromey <tromey@redhat.com>
6324 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6326 (target_can_use_hardware_watchpoint): Add argument.
6327 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6328 (update_current_target): Update.
6329 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6331 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6333 * remote.c (remote_check_watch_resources): Add 'self' argument.
6334 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6335 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6337 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6338 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6340 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6342 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6344 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6346 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6348 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6350 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6351 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6353 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6356 2014-02-19 Tom Tromey <tromey@redhat.com>
6358 * target.h (struct target_ops) <to_post_attach>: Add argument.
6359 (target_post_attach): Add argument.
6360 * target.c (debug_to_post_attach): Add argument.
6361 (update_current_target): Update.
6362 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6363 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6364 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6365 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6366 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * windows-nat.c (windows_close): Add 'self' argument.
6371 * tracepoint.c (tfile_close): Add 'self' argument.
6372 * target.h (struct target_ops) <to_close>: Add argument.
6373 * target.c (target_close): Add argument.
6374 (update_current_target): Update.
6375 * remote.c (remote_close): Add 'self' argument.
6376 * remote-sim.c (gdbsim_close): Add 'self' argument.
6377 * remote-mips.c (mips_close): Add 'self' argument.
6378 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6379 * record-full.c (record_full_close): Add 'self' argument.
6380 * record-btrace.c (record_btrace_close): Add 'self' argument.
6381 * monitor.h (monitor_close): Add 'self' argument.
6382 * monitor.c (monitor_close): Add 'self' argument.
6383 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6384 * linux-nat.c (linux_nat_close): Add argument.
6385 * go32-nat.c (go32_close): Add 'self' argument.
6386 * exec.c (exec_close_1): Add 'self' argument.
6387 * ctf.c (ctf_close): Add 'self' argument.
6388 * corelow.c (core_close): Add 'self' argument.
6389 (core_close_cleanup): Update.
6390 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6391 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6393 2014-02-19 Tom Tromey <tromey@redhat.com>
6395 * remote.c (remote_load): New function.
6396 (init_remote_ops): Use it.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6402 * common/linux-btrace.h (linux_supports_btrace): Update.
6403 * remote.c (remote_supports_btrace): Add "self" argument.
6404 * target-delegates.c: Rebuild.
6405 * target.c (target_supports_btrace): Remove.
6406 * target.h (struct target_ops) <to_supports_btrace>: Add
6407 target_ops argument.
6408 (target_supports_btrace): New define.
6410 2014-02-19 Tom Tromey <tromey@redhat.com>
6412 * record-full.c (record_full_beneath_to_resume_ops)
6413 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6414 (record_full_beneath_to_wait)
6415 (record_full_beneath_to_store_registers_ops)
6416 (record_full_beneath_to_store_registers)
6417 (record_full_beneath_to_xfer_partial_ops)
6418 (record_full_beneath_to_xfer_partial)
6419 (record_full_beneath_to_insert_breakpoint_ops)
6420 (record_full_beneath_to_insert_breakpoint)
6421 (record_full_beneath_to_remove_breakpoint_ops)
6422 (record_full_beneath_to_remove_breakpoint)
6423 (record_full_beneath_to_stopped_by_watchpoint)
6424 (record_full_beneath_to_stopped_data_address)
6425 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6426 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6427 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6428 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6429 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6430 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6431 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6432 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6433 (record_full_resume, record_full_wait_1)
6434 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6435 (record_full_store_registers, record_full_xfer_partial)
6436 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6437 (record_full_async, record_full_core_xfer_partial): Use target
6439 * target-delegates.c: Rebuild.
6440 * target.c (current_xfer_partial): Remove.
6441 (update_current_target): Do not INHERIT or de_fault
6442 to_insert_breakpoint, to_remove_breakpoint,
6443 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6444 to_is_async_p, to_async. Do not set to_xfer_partial field.
6445 (default_xfer_partial): Simplify.
6446 (current_xfer_partial): Remove.
6447 (target_wait, target_resume): Simplify.
6448 (find_default_can_async_p, find_default_is_async_p): Update.
6449 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6450 to_xfer_partial, to_stopped_by_watchpoint,
6451 to_stopped_data_address.
6452 (target_store_registers): Simplify.
6453 (forward_target_remove_breakpoint)
6454 (forward_target_insert_breakpoint): Remove.
6455 (target_remove_breakpoint, target_insert_breakpoint)
6456 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6457 * target.h (struct target_ops) <to_resume, to_wait,
6458 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6459 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6460 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6462 (forward_target_remove_breakpoint)
6463 (forward_target_insert_breakpoint): Remove.
6464 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6466 (record_btrace_insert_breakpoint): Delegate directly.
6468 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * target-delegates.c: New file.
6472 * target.c: Include target-delegates.c.
6473 (init_dummy_target): Call install_dummy_methods.
6474 (complete_target_initialization): Call install_delegators.
6475 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6476 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6477 * make-target-delegates: New file.
6479 2014-02-19 Tom Tromey <tromey@redhat.com>
6481 * record.c (find_record_target): Use find_target_at.
6482 * target.c (find_target_at): New function.
6483 * target.h (find_target_at): Declare.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6489 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6491 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6492 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6494 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6496 * linux-nat.c (save_sigtrap): Update.
6497 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6498 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6499 (linux_nat_close): Update.
6500 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6502 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6504 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6505 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6506 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6507 (tmp_to_async): Add 'ops' argument.
6508 (record_full_stopped_by_watchpoint, record_full_async)
6509 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6511 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6512 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6513 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6514 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6515 (remote_is_async_p, remote_async): Add 'ops' argument.
6516 (remote_stopped_data_address): Update.
6517 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6518 * target.c (update_current_target)
6519 (find_default_can_async_p, find_default_is_async_p): Update.
6520 (init_dummy_target): Update.
6521 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6522 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6523 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6524 (target_can_async_p, target_is_async_p, target_async)
6525 (target_stopped_by_watchpoint): Update.
6527 2014-02-19 Yao Qi <yao@codesourcery.com>
6530 * gdbarch.sh: Remove startup_gdbarch.
6531 * gdbarch.c: Regenerated.
6532 * gdbarch.h: Likewise.
6534 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6536 * rl78-tdep.c (rl78_g10_register_name): New function.
6537 (rl78_return_value): Add g10 support.
6538 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6541 2014-02-17 Doug Evans <xdje42@gmail.com>
6543 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6544 (SUBDIR_GUILE_SRCS): Ditto.
6545 (scm-gsmob.o): Ditto.
6547 2014-02-17 Yao Qi <yao@codesourcery.com>
6549 * gnu-nat.c (ILL_RPC): Declare defined function.
6551 2014-02-17 Yao Qi <yao@codesourcery.com>
6553 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6554 mach_msg_type_number_t.
6555 (gnu_write_inferior): Likewise.
6557 2014-02-17 Yao Qi <yao@codesourcery.com>
6559 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6561 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6562 (inf_validate_procs, inf_signal): Likewise.
6563 (S_exception_raise_request): Likewise.
6564 (do_mach_notify_dead_name): Likewise.
6565 (steal_exc_port): Likewise.
6566 (gnu_read_inferior): Change 'copy_count''s type to
6567 mach_msg_type_number_t.
6568 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6571 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6573 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6574 flag. Adjust all users; in particular...
6575 (gnu_wait): ..., don't decrement its value in here...
6576 (gnu_create_inferior): ..., and instead set the flag in here,
6577 around the startup_inferior call, and call that one with
6578 START_INFERIOR_TRAPS_EXPECTED.
6580 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6581 (ILL_RPC): ... new macro.
6582 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6583 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6584 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6585 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6586 functions with ILL_RPC macro.
6587 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6588 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6589 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6590 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6591 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6592 (S_proc_getlogin_reply, S_proc_getsid_reply)
6593 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6594 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6595 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6596 (S_proc_getnports_reply, S_proc_is_important_reply)
6597 (S_proc_get_code_reply): New stub functions, generated with
6600 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6601 collected the type check structures.
6603 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6605 2014-02-14 Doug Evans <dje@google.com>
6607 * target.c (target_write_partial): Fix result type.
6609 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6611 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6612 the proper offsets to access fpregset_t.
6614 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6616 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6617 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6618 * h8300-tdep.c (setmachinelist): Remove global.
6619 * hppa-tdep.c (hppa_sigtramp): Remove global.
6620 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6621 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6622 * ravenscar-thread.c (update_target_observer): Remove global.
6623 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6625 2014-02-12 Tom Tromey <tromey@redhat.com>
6627 * common/rsp-low.c: Update comments.
6628 * common/rsp-low.h: Update comments.
6630 2014-02-12 Tom Tromey <tromey@redhat.com>
6632 * common/rsp-low.c (convert_ascii_to_int): Remove.
6633 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6635 2014-02-12 Tom Tromey <tromey@redhat.com>
6637 * common/rsp-low.h (unhexify): Don't declare.
6638 * common/rsp-low.c (unhexify): Remove.
6640 2014-02-12 Tom Tromey <tromey@redhat.com>
6642 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6643 * common/rsp-low.c (convert_int_to_ascii): Remove.
6645 2014-02-12 Tom Tromey <tromey@redhat.com>
6647 * common/rsp-low.h (hexify): Don't declare.
6648 * common/rsp-low.c (hexify): Remove.
6650 2014-02-12 Tom Tromey <tromey@redhat.com>
6652 * common/rsp-low.c (hexify): Never take strlen of argument.
6654 2014-02-12 Tom Tromey <tromey@redhat.com>
6656 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6657 * remote.c (extended_remote_run, remote_rcmd)
6658 (remote_download_trace_state_variable, remote_save_trace_data)
6659 (remote_set_trace_notes): Update.
6660 * tracepoint.c (encode_source_string, tfile_write_status)
6661 (tfile_write_uploaded_tsv): Update.
6663 2014-02-12 Tom Tromey <tromey@redhat.com>
6665 * tracepoint.c: Include rsp-low.h.
6666 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6667 * remote.c: Include rsp-low.h.
6668 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6669 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6670 (remote_unescape_input): Move to common/rsp-low.c.
6671 * common/rsp-low.h: New file.
6672 * common/rsp-low.c: New file.
6673 * Makefile.in (SFILES): Add common/rsp-low.c.
6674 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6675 (COMMON_OBS): Add rsp-low.o.
6676 (rsp-low.o): New target.
6678 2014-02-12 Tom Tromey <tromey@redhat.com>
6680 * utils.h: Include print-utils.h.
6681 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6682 (int_string, core_addr_to_string, core_addr_to_string_nz)
6683 (hex_string, hex_string_custom): Don't declare.
6684 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6685 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6686 (hex_string_custom, int_string, core_addr_to_string)
6687 (core_addr_to_string_nz, host_address_to_string): Move to
6688 common/print-utils.c.
6689 * common/print-utils.h: New file.
6690 * common/print-utils.c: New file
6691 * Makefile.in (SFILES): Add common/print-utils.c.
6692 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6693 (COMMON_OBS): Add print-utils.o.
6694 (print-utils.o): New target.
6696 2014-02-12 Tom Tromey <tromey@redhat.com>
6698 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6700 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6702 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6704 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6706 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6707 if a PT_IO ptrace request returns sucessfully but indicates that 0
6708 bytes were transferred.
6710 2014-02-12 Pedro Alves <palves@redhat.com>
6711 Kevin Buettner <kevinb@redhat.com>
6713 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6714 TYPE_INSTANCE_FLAG_CODE_SPACE.
6716 2014-02-12 Pedro Alves <palves@redhat.com>
6718 * h8300-tdep.c (pseudo_from_raw_register)
6719 (raw_from_pseudo_register): New functions.
6720 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6723 2014-02-12 Pedro Alves <palves@redhat.com>
6725 * h8300-tdep.c (h8300_register_sim_regno): New function.
6726 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6727 gdbarch_register_sim_regno hook.
6729 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6731 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6733 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6735 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6737 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6739 * obsd-tdep.h (obsd_init_abi): New prototype.
6740 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6741 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6742 (obsd_init_abi): New functions.
6743 * i386obsd-tdep.c: Include "obsd-tdep.h".
6744 (i386obsd_init_abi): Call obsd_init_abi.
6745 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6746 (amd64obsd_init_abi): Call obsd_init_abi.
6747 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6748 obsd-tdep.c to gdb_target_obs.
6750 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6752 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6753 double float arguments to 16-byte in the argument slots.
6755 2014-02-11 Doug Evans <xdje42@gmail.com>
6757 * configure.ac: Don't crash if pkg-config is not found and guile
6758 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6760 * configure: Regenerate.
6762 2014-02-11 Yao Qi <yao@codesourcery.com>
6764 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6765 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6766 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6767 * gnu-nat.c (gnu_xfer_memory): Likewise.
6768 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6769 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6770 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6771 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6773 2014-02-11 Yao Qi <yao@codesourcery.com>
6775 * target.h (enum target_xfer_error): Rename to ...
6776 (enum target_xfer_status): ... it. New. All users updated.
6777 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6779 (TARGET_XFER_STATUS_ERROR_P): New macro.
6780 (target_xfer_error_to_string): Remove declaration.
6781 (target_xfer_status_to_string): Declare.
6782 (target_xfer_partial_ftype): Adjust it.
6783 (struct target_ops) <to_xfer_partial>: Return
6784 target_xfer_status. Add argument xfered_len. Update
6786 * target.c (target_xfer_error_to_string): Rename to ...
6787 (target_xfer_status_to_string): ... it. New. All callers
6789 (target_read_live_memory): Likewise. Call target_xfer_partial
6790 instead of target_read.
6791 (memory_xfer_live_readonly_partial): Return
6792 target_xfer_status. Add argument xfered_len.
6793 (raw_memory_xfer_partial): Likewise.
6794 (memory_xfer_partial_1): Likewise.
6795 (memory_xfer_partial): Likewise.
6796 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6797 properly. Update debug message.
6798 (default_xfer_partial, current_xfer_partial): Likewise.
6799 (target_write_partial): Likewise.
6800 (target_read_partial): Likewise. All callers updated.
6801 (read_whatever_is_readable): Likewise.
6802 (target_write_with_progress): Likewise.
6803 (target_read_alloc_1): Likewise.
6805 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6806 * auxv.c (procfs_xfer_auxv): Likewise.
6807 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6808 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6809 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6810 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6811 * corefile.c (read_memory): Adjust.
6812 * corelow.c (core_xfer_partial): Likewise.
6813 * ctf.c (ctf_xfer_partial): Likewise.
6814 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6816 (darwin_xfer_partial): Likewise.
6817 * exec.c (section_table_xfer_memory_partial): Likewise. All
6819 (exec_xfer_partial): Likewise.
6820 * exec.h (section_table_xfer_memory_partial): Update
6822 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6824 (gnu_xfer_partial): Likewise.
6825 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6826 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6827 (ia64_hpux_xfer_solib_got): Likewise.
6828 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6829 type of 'partial_len' to ULONGEST.
6830 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6831 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6832 (linux_nat_xfer_partial): Likewise.
6833 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6834 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6835 * monitor.c (monitor_xfer_memory): Likewise.
6836 (monitor_xfer_partial): Likewise.
6837 * procfs.c (procfs_xfer_partial): Likewise.
6838 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6839 * record-full.c (record_full_xfer_partial): Likewise.
6840 (record_full_core_xfer_partial): Likewise.
6841 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6842 (gdbsim_xfer_partial): Likewise.
6843 * remote.c (remote_write_bytes_aux): Likewise. All callers
6845 (remote_write_bytes, remote_read_bytes): Likewise. All
6847 (remote_flash_erase): Likewise. All callers updated.
6848 (remote_write_qxfer): Likewise. All callers updated.
6849 (remote_read_qxfer): Likewise. All callers updated.
6850 (remote_xfer_partial): Likewise.
6851 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6852 (rs6000_xfer_shared_libraries): Likewise.
6853 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6854 (sol_thread_xfer_partial): Likewise.
6855 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6856 (sparc_xfer_partial): Likewise.
6857 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6859 (spu_xfer_partial): Likewise.
6860 * spu-multiarch.c (spu_xfer_partial): Likewise.
6861 * tracepoint.c (tfile_xfer_partial): Likewise.
6862 * windows-nat.c (windows_xfer_memory): Likewise.
6863 (windows_xfer_shared_libraries): Likewise.
6864 (windows_xfer_partial): Likewise.
6865 * valprint.c: Replace 'target_xfer_error' with
6866 'target_xfer_status' in comments.
6868 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6870 Checked in by Joel Brobecker <brobecker@adacore.com>.
6871 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6873 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6875 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6876 function parameters.
6878 2014-02-10 Will Newton <will.newton@linaro.org>
6880 * elfread.c (elf_rel_plt_read): Look for a .got section if
6881 looking up .got.plt fails.
6882 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6883 on address passed to elf_gnu_ifunc_record_cache.
6884 (elf_gnu_ifunc_resolve_addr): Likewise.
6885 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6887 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6889 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6890 (X_RETTURN): New macro.
6891 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6893 * sparc64-tdep.c (sparc64_init_abi): Hook
6894 sparc_in_function_epilogue_p.
6896 2014-02-10 Gary Benson <gbenson@redhat.com>
6898 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6899 Rename name_matcher to symbol_matcher.
6901 2014-02-10 Gary Benson <gbenson@redhat.com>
6903 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6904 Use expand_symtabs_file_matcher_ftype and
6905 expand_symtabs_symbol_matcher_ftype.
6907 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6909 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6910 (struct ada_symbol_cache): New.
6911 (ada_free_symbol_cache): Forward declare.
6912 (struct ada_pspace_data): New.
6913 (ada_pspace_data_handle): New static global.
6914 (get_ada_pspace_data, ada_pspace_data_cleanup)
6915 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6916 (cache_space, cache): Delete, now folded inside struct
6918 (ada_get_symbol_cache): New function.
6919 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6921 (_initialize_ada_language): Remove initialization of cache_space.
6922 Move call to observer_attach_inferior_exit up, grouping it
6923 with the other observer registrations inside this function.
6924 Rename command to be more general. Add call to
6925 register_program_space_data_with_cleanup.
6927 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6929 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6930 ada_new_objfile_observer.
6931 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6932 (_initialize_tasks): Update uses of ada_new_objfile_observer
6933 and ada_tasks_normal_stop_observer.
6935 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6937 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6938 returned by the 'Length attribute to integer.
6940 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6942 * ada-lang.c (_initialize_ada_language): Initialize
6943 cache_space obstack.
6945 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6947 * ada-lang.c (HASH_SIZE): New macro.
6948 (struct cache_entry): New type.
6949 (cache_space, cache): New static globals.
6950 (ada_clear_symbol_cache, find_entry): New functions.
6951 (lookup_cached_symbol, cache_symbol): Implement.
6952 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6953 (_initialize_ada_language): Attach ada_new_objfile_observer
6954 and ada_free_objfile_observer.
6956 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6958 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6959 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6960 struct block * parameter.
6961 (ada_lookup_symbol_list_worker): Constify local variable "block".
6962 Remove cast which is no longer necessary.
6964 2014-02-10 Doug Evans <xdje42@gmail.com>
6966 Add Guile as an extension language.
6967 * NEWS: Mention Guile scripting.
6968 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6969 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6970 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6971 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6972 (CLIBS): Add GUILE_LIBS.
6973 (install-guile): New rule.
6974 (guile.o): New rule.
6975 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6976 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6977 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6978 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6979 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6980 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6981 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6982 * configure.ac: New option --with-guile.
6983 * configure: Regenerate.
6984 * config.in: Regenerate.
6985 * auto-load.c: Remove #include "python/python.h". Add #include
6986 "gdb/section-scripts.h".
6987 (source_section_scripts): Handle Guile scripts.
6988 (_initialize_auto_load): Add name of Guile objfile script to
6989 scripts-directory help text.
6990 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6991 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6992 (struct breakpoint): New member scm_bp_object.
6993 * defs.h (enum command_control_type): New value guile_control.
6994 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6996 (show_user): Update comment.
6997 (_initialize_cli_cmds): Update help text for "show user". Update help
6998 text for max-user-call-depth.
6999 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7001 (multi_line_command_p): Add guile_control.
7002 (print_command_lines): Handle guile_control.
7003 (execute_control_command, recurse_read_control_structure): Ditto.
7004 (process_next_line): Recognize "guile" commands.
7005 * disasm.c (gdb_disassemble_info): Make non-static.
7006 * disasm.h: #include "dis-asm.h".
7007 (struct gdbarch): Add forward decl.
7008 (gdb_disassemble_info): Declare.
7009 * extension.c: #include "guile/guile.h".
7010 (extension_languages): Add guile.
7011 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7012 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7013 * gdbtypes.c (get_unsigned_type_max): New function.
7014 (get_signed_type_minmax): New function.
7015 * gdbtypes.h (get_unsigned_type_max): Declare.
7016 (get_signed_type_minmax): Declare.
7017 * guile/README: New file.
7018 * guile/guile-internal.h: New file.
7019 * guile/guile.c: New file.
7020 * guile/guile.h: New file.
7021 * guile/scm-arch.c: New file.
7022 * guile/scm-auto-load.c: New file.
7023 * guile/scm-block.c: New file.
7024 * guile/scm-breakpoint.c: New file.
7025 * guile/scm-disasm.c: New file.
7026 * guile/scm-exception.c: New file.
7027 * guile/scm-frame.c: New file.
7028 * guile/scm-gsmob.c: New file.
7029 * guile/scm-iterator.c: New file.
7030 * guile/scm-lazy-string.c: New file.
7031 * guile/scm-math.c: New file.
7032 * guile/scm-objfile.c: New file.
7033 * guile/scm-ports.c: New file.
7034 * guile/scm-pretty-print.c: New file.
7035 * guile/scm-safe-call.c: New file.
7036 * guile/scm-string.c: New file.
7037 * guile/scm-symbol.c: New file.
7038 * guile/scm-symtab.c: New file.
7039 * guile/scm-type.c: New file.
7040 * guile/scm-utils.c: New file.
7041 * guile/scm-value.c: New file.
7042 * guile/lib/gdb.scm: New file.
7043 * guile/lib/gdb/boot.scm: New file.
7044 * guile/lib/gdb/experimental.scm: New file.
7045 * guile/lib/gdb/init.scm: New file.
7046 * guile/lib/gdb/iterator.scm: New file.
7047 * guile/lib/gdb/printing.scm: New file.
7048 * guile/lib/gdb/types.scm: New file.
7049 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7050 (VPATH): Add $(GUILE_SRCDIR).
7051 (GUILE_DIR): New variable.
7052 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7053 (all): Add stamp-guile dependency.
7054 (stamp-guile): New rule.
7055 (clean-guile, install-guile, uninstall-guile): New rules.
7056 (install-only): Add install-guile dependency.
7057 (uninstall): Add uninstall-guile dependency.
7058 (clean): Add clean-guile dependency.
7060 2014-02-09 Doug Evans <xdje42@gmail.com>
7062 Revert this patch (which I approved, mea culpa).
7064 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7066 * Makefile.in (all-lib): Remove.
7067 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7069 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7071 Fix Python stack corruption.
7072 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7075 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7077 * Makefile.in (all-lib): Remove.
7078 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7080 2014-02-07 Doug Evans <dje@google.com>
7082 * extension-priv.h (extension_language_script_ops): Add comment.
7083 (extension_language_ops): Add comment.
7084 (active_ext_lang_state): Fix typo in comment.
7086 2014-02-07 Pedro Alves <palves@redhat.com>
7088 PR breakpoints/16292
7089 * infrun.c (handle_signal_stop) <signal arrives while stepping
7090 over a breakpoint>: Switch back to the stepping thread.
7092 2014-02-07 Yao Qi <yao@codesourcery.com>
7094 * target.c (target_xfer_partial): Return zero if LEN is zero.
7096 2014-02-07 Yao Qi <yao@codesourcery.com>
7098 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7099 (ld_so_xfer_auxv): Likewise.
7100 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7101 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7102 * corelow.c (core_xfer_partial): Likewise.
7103 * ctf.c (ctf_xfer_partial): Likewise.
7104 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7105 (darwin_xfer_partial): Likewise.
7106 * exec.c (exec_xfer_partial): Likewise.
7107 * gnu-nat.c (gnu_xfer_partial): Likewise.
7108 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7109 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7110 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7111 * linux-nat.c (linux_xfer_siginfo): Likewise.
7112 (linux_proc_xfer_spu): Likewise.
7113 * procfs.c (procfs_xfer_partial): Likewise.
7114 * record-full.c (record_full_xfer_partial): Likewise.
7115 (record_full_core_xfer_partial): Likewise.
7116 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7117 * remote.c (remote_write_qxfer): Likewise.
7118 (remote_write_qxfer, remote_read_qxfer): Likewise.
7119 (remote_xfer_partial): Likewise.
7120 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7121 (rs6000_xfer_shared_libraries): Likewise.
7122 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7123 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7124 (spu_xfer_partial): Likewise.
7125 * target.c (memory_xfer_partial_1): Likewise.
7126 * tracepoint.c (tfile_xfer_partial): Likewise.
7127 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7128 (windows_xfer_partial): Likewise.
7130 2014-02-07 Yao Qi <yao@codesourcery.com>
7132 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7134 (core_xfer_shared_libraries_aix): Likewise.
7135 * gdbarch.c, gdbarch.h: Regenerated.
7136 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7137 ULONGEST. Change 'len_avail' type to ULONGEST.
7138 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7139 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7141 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7143 2014-02-07 Yao Qi <yao@codesourcery.com>
7145 * corefile.c (memory_error): Get 'exception' from ERR and pass
7146 'exception' to throw_error.
7148 2014-02-06 Doug Evans <xdje42@gmail.com>
7150 * configure.ac (libpython checking): Remove all but python.o from
7151 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7152 * configure: Regenerate.
7154 * Makefile.in (SFILES): Add extension.c.
7155 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7156 (COMMON_OBS): Add extension.o.
7157 * extension.h: New file.
7158 * extension-priv.h: New file.
7159 * extension.c: New file.
7161 * python/python-internal.h: #include "extension.h".
7162 (gdbpy_auto_load_enabled): Declare.
7163 (gdbpy_apply_val_pretty_printer): Declare.
7164 (gdbpy_apply_frame_filter): Declare.
7165 (gdbpy_preserve_values): Declare.
7166 (gdbpy_breakpoint_cond_says_stop): Declare.
7167 (gdbpy_breakpoint_has_cond): Declare.
7168 (void source_python_script_for_objfile): Delete.
7169 * python/python.c: #include "extension-priv.h".
7170 Delete inclusion of "observer.h".
7171 (extension_language_python): Moved here and renamed from
7172 script_language_python in py-auto-load.c.
7173 Redefined to be of type extension_language_defn.
7174 (python_extension_script_ops): New global.
7175 (python_extension_ops): New global.
7176 (struct python_env): New member previous_active.
7177 (restore_python_env): Call restore_active_ext_lang.
7178 (ensure_python_env): Call set_active_ext_lang.
7179 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7181 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7183 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7185 (gdbpy_eval_from_control_command): Renamed from
7186 eval_python_from_control_command, made static. New arg extlang.
7187 (gdbpy_source_script) Renamed from source_python_script, made static.
7189 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7190 result to int. New arg extlang.
7191 (gdbpy_source_objfile_script): Renamed from
7192 source_python_script_for_objfile, made static. New arg extlang.
7193 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7194 static. New args extlang, extlang_printers. Change result type to
7196 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7197 static. New arg extlang. Rename arg printers to extlang_printers
7198 and change type to ext_lang_type_printers *.
7199 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7200 static. Replace argument arg with extlang, extlang_printers.
7201 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7202 (!HAVE_PYTHON, source_python_script): Delete.
7203 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7204 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7205 (!HAVE_PYTHON, start_type_printers): Delete.
7206 (!HAVE_PYTHON, apply_type_printers): Delete.
7207 (!HAVE_PYTHON, free_type_printers): Delete.
7208 (_initialize_python): Delete call to observer_attach_before_prompt.
7209 (finalize_python): Set/restore active extension language.
7210 (gdbpy_finish_initialization) Renamed from
7211 finish_python_initialization, made static. New arg extlang.
7212 (gdbpy_initialized): New function.
7213 * python/python.h: #include "extension.h". Delete #include
7214 "value.h", "mi/mi-cmds.h".
7215 (extension_language_python): Declare.
7216 (GDBPY_AUTO_FILE_NAME): Delete.
7217 (enum py_bt_status): Moved to extension.h and renamed to
7219 (enum frame_filter_flags): Moved to extension.h.
7220 (enum py_frame_args): Moved to extension.h and renamed to
7221 ext_lang_frame_args.
7222 (finish_python_initialization): Delete.
7223 (eval_python_from_control_command): Delete.
7224 (source_python_script): Delete.
7225 (apply_val_pretty_printer): Delete.
7226 (apply_frame_filter): Delete.
7227 (preserve_python_values): Delete.
7228 (gdbpy_script_language_defn): Delete.
7229 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7230 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7232 * auto-load.c: #include "extension.h".
7233 (GDB_AUTO_FILE_NAME): Delete.
7234 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7235 (script_language_gdb): Delete, moved to extension.c and renamed to
7236 extension_language_gdb.
7237 (source_gdb_script_for_objfile): Delete.
7238 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7239 (loaded_script): Change type of language member to
7240 struct extension_language_defn *.
7241 (init_loaded_scripts_info): Initialize
7242 unsupported_script_warning_printed.
7243 (maybe_add_script): Make static. Change type of language arg to
7244 struct extension_language_defn *.
7245 (clear_section_scripts): Reset unsupported_script_warning_printed.
7246 (auto_load_objfile_script_1): Rewrite to use extension language API.
7247 (auto_load_objfile_script): Make public. Remove support-compiled-in
7248 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7249 (source_section_scripts): Rewrite to use extension language API.
7250 (load_auto_scripts_for_objfile): Rewrite to use
7251 auto_load_scripts_for_objfile.
7252 (collect_matching_scripts_data): Change type of language member to
7253 struct extension_language_defn *.
7254 (auto_load_info_scripts): Change type of language arg to
7255 struct extension_language_defn *.
7256 (unsupported_script_warning_print): New function.
7257 (script_not_found_warning_print): Make static.
7258 (_initialize_auto_load): Rewrite construction of scripts-directory
7260 * auto-load.h (struct objfile): Add forward decl.
7261 (struct script_language): Delete.
7262 (struct auto_load_pspace_info): Add forward decl.
7263 (struct extension_language_defn): Add forward decl.
7264 (maybe_add_script): Delete.
7265 (auto_load_objfile_script): Declare.
7266 (script_not_found_warning_print): Delete.
7267 (auto_load_info_scripts): Update prototype.
7268 (auto_load_gdb_scripts_enabled): Declare.
7269 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7270 auto_load_python_scripts_enabled and made public.
7271 (script_language_python): Delete, moved to python.c.
7272 (gdbpy_script_language_defn): Delete.
7273 (info_auto_load_python_scripts): Update to use
7274 extension_language_python.
7276 * breakpoint.c (condition_command): Replace call to
7277 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7278 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7279 with call to breakpoint_ext_lang_cond_says_stop.
7280 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7281 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7282 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7283 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7285 (local_setattro): Print name of extension language with existing
7288 * valprint.c (val_print, value_print): Update to call
7289 apply_ext_lang_val_pretty_printer.
7290 * cp-valprint.c (cp_print_value): Update call to
7291 apply_ext_lang_val_pretty_printer.
7292 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7293 (gdbpy_apply_val_pretty_printer): Renamed from
7294 apply_val_pretty_printer. New arg extlang.
7295 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7297 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7298 extension language API.
7299 * cli/cli-script.c (execute_control_command): Update to call
7300 eval_ext_lang_from_control_command.
7302 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7303 enum ext_lang_bt_status values. Update call to
7304 apply_ext_lang_frame_filter.
7305 (mi_cmd_stack_list_locals): Ditto.
7306 (mi_cmd_stack_list_args): Ditto.
7307 (mi_cmd_stack_list_variables): Ditto.
7308 * mi/mi-main.c: Delete #include "python/python-internal.h".
7309 Add #include "extension.h".
7310 (mi_cmd_list_features): Replace reference to python internal variable
7311 gdb_python_initialized with call to ext_lang_initialized_p.
7313 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7314 Update to use enum ext_lang_frame_args. Update to call
7315 apply_ext_lang_frame_filter.
7316 * python/py-framefilter.c (extract_sym): Update to use enum
7318 (extract_value, py_print_type, py_print_value): Ditto.
7319 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7320 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7321 (py_print_frame): Ditto.
7322 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7323 New arg extlang. Update to use enum ext_lang_bt_status.
7325 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7326 finish_python_initialization. Replace with call to
7327 finish_ext_lang_initialization.
7329 * typeprint.c (do_free_global_table): Update to call
7330 free_ext_lang_type_printers.
7331 (create_global_typedef_table): Update to call
7332 start_ext_lang_type_printers.
7333 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7334 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7335 (type_print_options): Change type of global_printers from "void *"
7336 to "struct ext_lang_type_printers *".
7338 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7339 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7340 (gdbpy_preserve_values): Renamed from preserve_python_values.
7342 (!HAVE_PYTHON, preserve_python_values): Delete.
7344 * utils.c (quit_flag): Delete, moved to extension.c.
7345 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7348 * eval.c: Delete #include "python/python.h".
7349 * main.c: Delete #include "python/python.h".
7351 * defs.h: Update comment.
7353 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7357 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7359 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7362 2014-02-05 Yao Qi <yao@codesourcery.com>
7364 * remote.c (remote_pass_signals): Remove local 'buf' and use
7366 (remote_program_signals): Likewise.
7368 2014-02-05 Yao Qi <yao@codesourcery.com>
7370 * ctf.c: Include "inferior.h" and "gdbthread.h".
7371 (CTF_PID): A new macro.
7372 (ctf_open): Call inferior_appeared and add_thread_silent.
7373 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7374 (ctf_thread_alive): New function.
7375 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7377 2014-02-05 Yao Qi <yao@codesourcery.com>
7381 2013-05-24 Yao Qi <yao@codesourcery.com>
7383 * tracepoint.c (TFILE_PID): Remove.
7384 (tfile_open): Don't add thread and inferior.
7385 (tfile_close): Don't set 'inferior_ptid'. Don't call
7386 exit_inferior_silent.
7387 (tfile_thread_alive): Remove.
7388 (init_tfile_ops): Don't set field 'to_thread_alive' of
7391 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7393 * remote.c (remote_start_remote): Call remote_check_symbols even
7394 if only symbol-file (not file) has been given.
7396 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7398 * gdbarch.sh (skip_entrypoint): New callback.
7399 * gdbarch.c, gdbarch.h: Regenerate.
7400 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7401 * infrun.c (fill_in_stop_func): Likewise.
7402 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7403 (ppc_elfv2_elf_make_msymbol_special): New function.
7404 (ppc_elfv2_skip_entrypoint): Likewise.
7405 (ppc_linux_init_abi): Install them for ELFv2.
7407 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7409 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7410 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7411 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7412 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7413 structures returned in GPRs.
7415 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7417 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7418 offset to the stack parameter list for the ELFv2 ABI.
7420 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7422 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7423 set_gdbarch_convert_from_func_ptr_addr and
7424 set_gdbarch_elf_make_msymbol_special for ELFv1.
7425 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7426 function descriptors on ELFv1.
7427 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7428 set up r12 at function entry.
7430 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7432 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7433 (struct gdbarch_tdep): New member elf_abi.
7435 * rs6000-tdep.c: Include "elf/ppc64.h".
7436 (rs6000_gdbarch_init): Detect ELF ABI version.
7438 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7441 within a register pair holding a DFP 128-bit value on little-endian.
7442 (ppc64_sysv_abi_return_value_base): Likewise.
7443 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7444 (dfp_pseudo_register_write): Likewise.
7446 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7448 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7449 offset on little-endian when passing _Decimal32.
7450 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7452 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7454 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7455 of the overlapped FP register within the VSX register on little-
7457 (efpr_pseudo_register_write): Likewise.
7459 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7461 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7462 offset on little-endian when passing small structures.
7464 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7466 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7467 (struct ppc64_sysv_argpos): New data structure.
7468 (ppc64_sysv_abi_push_float): Remove.
7469 (ppc64_sysv_abi_push_val): New function.
7470 (ppc64_sysv_abi_push_integer): Likewise.
7471 (ppc64_sysv_abi_push_freg): Likewise.
7472 (ppc64_sysv_abi_push_vreg): Likewise.
7473 (ppc64_sysv_abi_push_param): Likewise.
7474 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7475 (ppc64_sysv_abi_return_value_base): New function.
7476 (ppc64_sysv_abi_return_value): Refactor to use it.
7478 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7480 * NEWS: Document new target powerpc64le-*-linux*.
7482 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7484 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7485 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7487 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7488 register set used in ELF core dumps. Add floating-point register set.
7490 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7492 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7493 dwarf2_to_gdb[] table using symbolic constants. Adjust
7494 penultimate entry from number representing the PC register
7495 to symbolic constant representing the MDR register. Add
7496 constant for the PC register to the end of the table.
7498 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7500 * bsd-kvm.c: Include <sys/param.h>
7502 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7504 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7506 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7508 * ada-lang.h (clear_ada_sym_cache): Delete.
7510 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7512 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7514 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7516 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7517 the sigreturn register save area only if the syscall is
7520 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7522 * valops.c (value_slice): Minor reformatting.
7524 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7526 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7528 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7530 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7532 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7533 (ada_ignore_descriptive_types_p): New static global.
7534 (find_parallel_type_by_descriptive_type): Return immediately
7535 if ada_ignore_descriptive_types_p is set.
7536 (_initialize_ada_language): Register new commands "maintenance
7537 set ada", "maintenance show ada", "maintenance set ada
7538 ignore-descriptive-types" and "maintenance show ada
7539 ignore-descriptive-types".
7540 * NEWS: Add entry for new "maint ada set/show
7541 ignore-descriptive-types" commands.
7543 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7545 * record-btrace.c (record_btrace_close): Call btrace_teardown
7548 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7550 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7553 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7555 * ada-typeprint (type_is_full_subrange_of_target_type):
7557 (print_range): Add parameter bounds_prefered_p. If not set,
7558 try printing range types using the name of their base type.
7559 (print_range_type): Add parameter bounds_prefered_p.
7560 Use it in call to print_range.
7561 (print_array_type, ada_print_type): Update calls to print_range
7562 and print_range_type.
7564 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7566 * ada-typeprint.c (print_array_type, print_choices, print_range)
7567 (print_range_bound, print_dynamic_range_bound, print_range_type):
7570 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7572 * ada-typeprint.c (print_range): Add missing empty line
7573 after local declaration.
7575 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7577 * ada-valprint.c (print_optional_low_bound): Get index_type's
7578 target type for as long as it is a TYPE_CODE_RANGE.
7580 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7582 * procfs.c (procfs_make_note_section): Remove assertion and
7585 2014-01-24 Yao Qi <yao@codesourcery.com>
7587 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7588 * corelow.c (get_core_siginfo): Likewise.
7590 2014-01-24 Yao Qi <yao@codesourcery.com>
7592 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7593 ULONGEST. Don't check 'len' is negative.
7594 (remote_write_bytes): Change type of 'len' to ULONGEST.
7596 2014-01-23 Tom Tromey <tromey@redhat.com>
7599 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7600 Handle exception from frame.block.
7601 (FrameVars.fetch_frame_locals): Likewise.
7603 2014-01-23 Tom Tromey <tromey@redhat.com>
7606 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7607 on a NULL pointer. Move "goto error" to correct place.
7609 2014-01-23 Tom Tromey <tromey@redhat.com>
7612 * python/py-framefilter.c (apply_frame_filter): Call
7613 ensure_python_env after computing gdbarch.
7615 2014-01-23 Yao Qi <yao@codesourcery.com>
7617 * target.c (raw_memory_xfer_partial): Change argument type
7618 from void * to gdb_byte *.
7619 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7621 2014-01-22 Doug Evans <dje@google.com>
7623 New gdbserver option --debug-format=timestamp.
7626 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7628 * syscalls/s390x-linux.xml: New file.
7629 * syscalls/s390-linux.xml: New file.
7630 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7631 (XML_SYSCALL_FILENAME_S390X): Likewise.
7632 (op_svc): New enum value for SVC opcode.
7633 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7634 (s390_linux_get_syscall_number): New function.
7635 (s390_gdbarch_init): Register '*get_syscall_number' and the
7636 syscall xml file name.
7637 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7638 "s390-linux.xml" and "s390x-linux.xml".
7639 * NEWS: Announce new feature.
7641 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7643 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7645 2014-01-22 Pedro Alves <palves@redhat.com>
7647 * xtensa-config.c: Include defs.h.
7649 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7651 * common/common-utils.h: Add "ARI:" comment beside __func__
7654 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7656 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7657 documentation a bit.
7659 2014-01-21 Roland McGrath <mcgrathr@google.com>
7661 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7662 * configure: Regenerate.
7663 * aclocal.m4: Regenerate.
7664 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7665 New substituted variables.
7666 (install-strip): New target.
7667 (INSTALL_SCRIPT): New substituted variable.
7668 (FLAGS_TO_PASS): Add it.
7669 (install-only): Use $(INSTALL_SCRIPT) rather than
7670 $(INSTALL_PROGRAM) for gcore.
7672 2014-01-20 Tom Tromey <tromey@redhat.com>
7674 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7677 2014-01-20 Tom Tromey <tromey@redhat.com>
7679 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7680 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7681 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7682 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7683 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7684 (struct cmd_list_element) <flags>: Remove.
7685 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7686 doc_allocated>: New fields.
7687 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7689 * maint.c (maintenance_do_deprecate): Update.
7690 * top.c (execute_command): Update.
7692 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7694 * xtensa-linux-nat.c: Include asm/ptrace.h.
7696 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7698 * Makefile.in (SFILES): Add d-support.c.
7699 (COMMON_OBS): Add d-support.o.
7700 * d-lang.h (d_parse_symbol): Add comment, now defined in
7702 * d-lang.c (parse_call_convention)
7703 (parse_attributes, parse_function_types)
7704 (parse_function_args, parse_type, parse_identifier)
7705 (call_convention_p, d_parse_symbol): Move functions to ...
7706 * d-support.c: ... New file.
7708 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7710 * d-lang.h (d_parse_symbol): Add declaration.
7711 * d-lang.c (extract_identifiers)
7712 (extract_type_info): Remove functions.
7713 (parse_call_convention, parse_attributes)
7714 (parse_function_types, parse_function_args)
7715 (parse_type, parse_identifier, call_convention_p)
7716 (d_parse_symbol): New functions.
7717 (d_demangle): Use d_parse_symbol to demangle D symbols.
7719 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7721 * d-lang.h (struct builtin_d_type): New data type.
7722 (builtin_d_type): Add declaration.
7723 * d-lang.c (d_language_arch_info, build_d_types)
7724 (builtin_d_type): New functions.
7725 (enum d_primitive_types): New data type.
7726 (d_language_defn): Change c_language_arch_info to
7727 d_language_arch_info.
7728 (d_type_data): New static variable.
7729 (_initialize_d_language): Initialize d_type_data.
7731 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7733 * d-lang.h (d_main_name): Add declaration.
7734 * d-lang.c (d_main_name): New function.
7735 * symtab.c (find_main_name): Add call to d_main_name.
7737 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7739 * d-lang.c (d_language_defn): Change macro_expansion_c to
7742 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7744 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7746 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7748 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7749 gdb_exception" declaration.
7750 * remote.c (getpkt_or_notif_sane): Likewise.
7752 2014-01-17 Doug Evans <dje@google.com>
7754 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7755 function, contents of dirnames_to_char_ptr_vec_append moved here.
7756 (delim_string_to_char_ptr_vec): New function.
7757 (dirnames_to_char_ptr_vec_append): Rewrite.
7758 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7760 2014-01-17 Doug Evans <dje@google.com>
7762 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7764 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7765 #include "common-utils.h".
7766 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7767 * common/vec.h (VEC_ASSERT_PASS): Update.
7768 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7769 (MACH_CHECK_ERROR): Update.
7771 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7773 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7775 * gdbarch.h: Regenerate.
7777 2014-01-16 Tom Tromey <tromey@redhat.com>
7779 * value.c (struct value) <regnum>: Move earlier.
7781 2014-01-16 Tom Tromey <tromey@redhat.com>
7783 * remote.c (extended_remote_create_inferior): Rename from
7784 extended_remote_create_inferior_1. Add "ops" argument. Remove
7787 2014-01-16 Pedro Alves <palves@redhat.com>
7789 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7790 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7793 2014-01-16 Doug Evans <dje@google.com>
7795 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7799 * btrace.h (btrace_thread_flag): New.
7800 (struct btrace_thread_info) <flags>: New.
7801 * record-btrace.c (record_btrace_resume_thread)
7802 (record_btrace_find_thread_to_move, btrace_step_no_history)
7803 (btrace_step_stopped, record_btrace_start_replaying)
7804 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7805 (record_btrace_find_resume_thread): New.
7806 (record_btrace_resume, record_btrace_wait): Extend.
7807 (record_btrace_can_execute_reverse): New.
7808 (record_btrace_open): Fail in non-stop mode.
7809 (record_btrace_set_replay): Split into this, ...
7810 (record_btrace_stop_replaying): ... this, ...
7811 (record_btrace_clear_histories): ... and this.
7812 (init_record_btrace_ops): Init to_can_execute_reverse.
7813 * NEWS: Announce it.
7815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7817 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7818 (forward_target_decr_pc_after_break)
7819 (target_decr_pc_after_break): New.
7820 * target.c (forward_target_decr_pc_after_break)
7821 (target_decr_pc_after_break): New.
7822 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7823 instead of gdbarch_decr_pc_after_break.
7824 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7825 instead of gdbarch_decr_pc_after_break.
7826 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7827 instead of gdbarch_decr_pc_after_break.
7828 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7829 instead of gdbarch_decr_pc_after_break.
7830 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7831 instead of gdbarch_decr_pc_after_break.
7832 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7833 instead of gdbarch_decr_pc_after_break.
7835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7837 * btrace.c: Include regcache.h.
7838 (btrace_add_pc): New.
7839 (btrace_enable): Call btrace_add_pc.
7840 (btrace_is_empty): New.
7841 * btrace.h (btrace_is_empty): New.
7842 * record-btrace.c (require_btrace, record_btrace_info): Call
7845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7847 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7848 Support delta reads.
7849 (linux_disable_btrace): Change return type.
7850 * common/linux-btrace.h (linux_read_btrace): Change parameters
7851 and return type to allow error reporting. Update users.
7852 (linux_disable_btrace): Change return type. Update users.
7853 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7855 (btrace_error): New.
7856 (btrace_block) <begin>: Comment on BEGIN == 0.
7857 * btrace.c (btrace_compute_ftrace): Start from the end of
7859 (btrace_stitch_trace, btrace_clear_history): New.
7860 (btrace_fetch): Read delta trace, return if replaying.
7861 (btrace_clear): Move clear history code to btrace_clear_history.
7862 (parse_xml_btrace): Throw an error if parsing failed.
7863 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7864 and return type to allow error reporting.
7865 (target_read_btrace): Change parameters and return type to allow
7867 * target.c (target_read_btrace): Update.
7868 * remote.c (remote_read_btrace): Support delta reads. Pass
7870 * NEWS: Announce it.
7872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7874 * record.h (record_btrace_frame_unwind)
7875 (record_btrace_tailcall_frame_unwind): New declarations.
7876 * dwarf2-frame: Include record.h
7877 (dwarf2_frame_cfa): Throw an error for btrace frames.
7878 * record-btrace.c: Include hashtab.h.
7879 (btrace_get_bfun_name): New.
7880 (btrace_call_history): Call btrace_get_bfun_name.
7881 (struct btrace_frame_cache): New.
7883 (bfcache_hash, bfcache_eq, bfcache_new): New.
7884 (btrace_get_frame_function): New.
7885 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7886 (record_btrace_frame_this_id): Compute own id.
7887 (record_btrace_frame_prev_register): Provide PC, throw_error
7888 for all other registers.
7889 (record_btrace_frame_sniffer): Detect btrace frames.
7890 (record_btrace_tailcall_frame_sniffer): New.
7891 (record_btrace_frame_dealloc_cache): New.
7892 (record_btrace_frame_unwind): Add new functions.
7893 (record_btrace_tailcall_frame_unwind): New.
7894 (_initialize_record_btrace): Allocate cache.
7895 * btrace.c (btrace_clear): Call reinit_frame_cache.
7896 * NEWS: Announce it.
7898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7900 * record-btrace.c (record_btrace_set_replay)
7901 (record_btrace_goto_begin, record_btrace_goto_end)
7902 (record_btrace_goto): New.
7903 (init_record_btrace_ops): Initialize them.
7904 * NEWS: Announce it.
7906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7908 * record-btrace.c (record_btrace_find_new_threads)
7909 (record_btrace_thread_alive): New.
7910 (init_record_btrace_ops): Initialize to_find_new_threads and
7913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7915 * record-btrace.c (record_btrace_resume): New.
7916 (record_btrace_wait): New.
7917 (init_record_btrace_ops): Initialize to_wait and to_resume.
7919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7921 * record-btrace.c (record_btrace_xfer_partial)
7922 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7923 (record_btrace_allow_memory_access): New.
7924 (init_record_btrace_ops): Initialize new methods.
7925 * target.c (raw_memory_xfer_partial): Bail out if target reports
7926 that this memory is not available.
7928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7930 * target.h (target_ops) <to_insert_breakpoint>
7931 <to_remove_breakpoint>: Add target_ops parameter.
7932 (forward_target_insert_breakpoint): New.
7933 (forward_target_remove_breakpoint): New.
7934 (memory_remove_breakpoint, memory_insert_breakpoint):
7935 Add target_ops parameter.
7936 * target.c (target_insert_breakpoint): Split into this and ...
7937 (forward_target_insert_breakpoint): ... this.
7938 (target_remove_breakpoint): Split into this and ...
7939 (forward_target_remove_breakpoint): ... this.
7940 (debug_to_insert_breakpoint): Add target_ops parameter.
7941 Call forward_target_insert_breakpoint.
7942 (debug_to_remove_breakpoint): Add target_ops parameter.
7943 Call forward_target_remove_breakpoint.
7944 (update_current_target): Do not inherit or default to_insert_breakpoint
7945 and to_remove_breakpoint.
7946 * corelow.c (ignore): Add target_ops parameter.
7947 * exec.c (ignore): Add target_ops parameter.
7948 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7949 Add target_ops parameter.
7950 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7951 Add target_ops parameter.
7952 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7953 Add target_ops parameter.
7954 * record-full.c (record_full_beneath_to_insert_breakpoint)
7955 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7956 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7957 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7958 (record_full_core_remove_breakpoint): Add target_ops parameter.
7960 (record_full_beneath_to_insert_breakpoint_ops)
7961 (record_full_beneath_to_remove_breakpoint_ops)
7962 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7963 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7964 tmp_to_remove_breakpoint_ops,
7965 record_full_beneath_to_insert_breakpoint_ops, and
7966 record_full_beneath_to_remove_breakpoint_ops.
7967 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7968 (m32r_remove_breakpoint): Add target_ops parameter.
7969 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7970 Add target_ops parameter.
7971 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7972 Add target_ops parameter.
7974 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7975 Markus Metzger <markus.t.metzger@intel.com>
7977 * record-btrace.c: Include frame-unwind.h.
7978 (record_btrace_frame_unwind_stop_reason)
7979 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7980 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7982 (init_record_btrace_ops): Install it.
7984 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7986 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7989 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7991 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7994 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 * frame-unwind.c: Include target.h.
7997 (frame_unwind_try_unwinder): New function with code from ...
7998 (frame_unwind_find_by_frame): ... here. New variable
7999 unwinder_from_target, call also target_get_unwinder)
8000 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8001 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8002 * target.h (struct target_ops): New fields to_get_unwinder and
8003 to_get_tailcall_unwinder.
8004 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8006 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8008 * record-btrace.c (record_btrace_fetch_registers)
8009 (record_btrace_store_registers)
8010 (record_btrace_to_prepare_to_store): New.
8011 (init_record_btrace_ops): Add the above.
8013 2014-01-16 Tom Tromey <tromey@redhat.com>
8015 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8016 * target.h (struct target_ops) <to_prepare_to_store>: Add
8018 (target_prepare_to_store): Add argument.
8019 * target.c (debug_to_prepare_to_store): Add argument.
8020 (update_current_target): Update.
8021 * remote.c (remote_prepare_to_store): Add 'self' argument.
8022 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8023 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8024 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8025 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8027 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8028 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8029 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8030 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8031 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8035 * btrace.h (replay) <replay>: New.
8036 (btrace_is_replaying): New.
8037 * btrace.c (btrace_clear): Free replay iterator.
8038 (btrace_is_replaying): New.
8039 * record-btrace.c (record_btrace_is_replaying): New.
8040 (record_btrace_info): Print insn number if replaying.
8041 (record_btrace_insn_history): Start at replay position.
8042 (record_btrace_call_history): Start at replay position.
8043 (init_record_btrace_ops): Init to_record_is_replaying.
8045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8047 * record-btrace.c (record_btrace_insn_history_range): Include
8049 (record_btrace_insn_history_from): Adjust range.
8050 (record_btrace_call_history_range): Include
8052 (record_btrace_call_history_from): Adjust range.
8053 * NEWS: Announce changes.
8055 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8057 * record.h (enum record_print_flag)
8058 <record_print_indent_calls>: New.
8059 * record.c (get_call_history_modifiers): Recognize /c modifier.
8060 (_initialize_record): Document /c modifier.
8061 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8062 Reorder fields. Optionally indent the function name. Update
8064 * NEWS: Announce changes.
8066 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8068 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8070 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8072 * btrace.c (ftrace_new_function): Start counting at one.
8073 * record-btrace.c (record_btrace_info): Adjust number of calls
8075 * NEWS: Announce it.
8077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8079 * record-btrace.c (btrace_call_history_insn_range): Print
8080 insn range as [begin, end].
8082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8084 * btrace.h (struct btrace_func_link): New.
8085 (enum btrace_function_flag): New.
8086 (struct btrace_inst): Rename to ...
8087 (struct btrace_insn): ...this. Update all users.
8088 (struct btrace_func) <ibegin, iend>: Remove.
8089 (struct btrace_func_link): New.
8090 (struct btrace_func): Rename to ...
8091 (struct btrace_function): ...this. Update all users.
8092 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8093 (number, level, flags>: New.
8094 (struct btrace_insn_iterator): Rename to ...
8095 (struct btrace_insn_history): ...this.
8097 (struct btrace_insn_iterator, btrace_call_iterator): New.
8098 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8099 (struct btrace_target_info) <begin, end, level>
8100 <insn_history, call_history>: New.
8101 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8102 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8103 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8104 (btrace_call_number, btrace_call_begin, btrace_call_end)
8105 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8106 (btrace_find_function_by_number, btrace_set_insn_history)
8107 (btrace_set_call_history): New.
8108 * btrace.c (btrace_init_insn_iterator)
8109 (btrace_init_func_iterator, compute_itrace): Remove.
8110 (ftrace_print_function_name, ftrace_print_filename)
8111 (ftrace_skip_file): Change
8113 (ftrace_init_func): Remove.
8114 (ftrace_debug): Use new btrace_function fields.
8115 (ftrace_function_switched): Also consider gaining and
8116 losing symbol information).
8117 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8118 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8119 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8121 (ftrace_new_function): Move. Remove debug print.
8122 (ftrace_update_lines, ftrace_update_insns): New.
8123 (ftrace_update_function): Check for call, ret, and jump.
8124 (compute_ftrace): Renamed to ...
8125 (btrace_compute_ftrace): ...this. Rewritten to compute call
8127 (btrace_fetch, btrace_clear): Updated.
8128 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8129 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8130 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8131 (btrace_call_number, btrace_call_begin, btrace_call_end)
8132 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8133 (btrace_find_function_by_number, btrace_set_insn_history)
8134 (btrace_set_call_history): New.
8135 * record-btrace.c (require_btrace): Use new btrace thread
8137 (record_btrace_info, btrace_insn_history)
8138 (record_btrace_insn_history, record_btrace_insn_history_range):
8139 Use new btrace thread info fields and new iterator.
8140 (btrace_func_history_src_line): Rename to ...
8141 (btrace_call_history_src_line): ...this. Use new btrace
8143 (btrace_func_history): Rename to ...
8144 (btrace_call_history): ...this. Use new btrace thread info
8145 fields and new iterator.
8146 (record_btrace_call_history, record_btrace_call_history_range):
8147 Use new btrace thread info fields and new iterator.
8149 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8151 * frame.h (frame_id_build_unavailable_stack_special): New.
8152 * frame.c (frame_id_build_unavailable_stack_special): New.
8154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8156 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8157 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8158 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8160 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8161 (i386_insn_is_jump, i386_jmp_p): New.
8162 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8163 insn_is_jump to gdbarch.
8164 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8165 * gdbarch.h: Regenerated.
8166 * gdbarch.c: Regenerated.
8167 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8168 (default_insn_is_jump): New.
8169 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8170 (default_insn_is_jump): New.
8172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8174 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8176 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8177 (btrace_read_type) <btrace_read_new>: Change to ...
8178 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8182 * common/linux-btrace.c (linux_read_btrace): Free trace from
8185 2014-01-15 Doug Evans <dje@google.com>
8187 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8190 2014-01-15 Tom Tromey <tromey@redhat.com>
8192 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8193 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8194 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8195 (set_objfile_main_name): New function.
8196 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8197 language_of_main>: New fields.
8198 (set_objfile_main_name): Declare.
8199 * symtab.c (find_main_name): Loop over objfiles to find the main
8201 (set_main_name): Now static.
8202 (get_main_info): Add comment.
8203 * symtab.h (set_main_name): Don't declare.
8205 2014-01-15 Tom Tromey <tromey@redhat.com>
8207 * symtab.c (main_progspace_key): New global.
8208 (struct main_info): New.
8209 (name_of_main, language_of_main): Remove.
8210 (get_main_info, main_info_cleanup): New function.
8211 (set_main_name, main_name, main_language): Use get_main_info.
8212 (_initialize_symtab): Initialize main_progspace_key.
8214 2014-01-15 Tom Tromey <tromey@redhat.com>
8216 * dbxread.c (process_one_symbol): Update.
8217 * dwarf2read.c (read_partial_die): Update.
8218 * symfile.c (set_initial_language): Call main_language.
8219 * symtab.c (language_of_main): Now static.
8220 (set_main_name): Add 'lang' parameter.
8221 (find_main_name): Update.
8222 (main_language): New function.
8223 (symtab_observer_executable_changed): Update.
8224 * symtab.h (set_main_name): Update.
8225 (language_of_main): Remove.
8226 (main_language): Declare.
8228 2014-01-15 Tom Tromey <tromey@redhat.com>
8230 * symfile.c (init_entry_point_info): Use new "initialized" field.
8232 * objfiles.h (struct entry_point) <initialized>: New field.
8233 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8234 (struct objfile) <ei>: ...here. Remove.
8235 * objfiles.c (entry_point_address_query): Update.
8237 2014-01-15 Tom Tromey <tromey@redhat.com>
8239 * objfiles.c (entry_point_address_query): Relocate entry point
8241 (objfile_relocate1): Do not relocate entry point address.
8242 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8243 <the_bfd_section_index>: New field.
8244 * symfile.c (init_entry_point_info): Find the entry point's
8247 2014-01-15 Tom Tromey <tromey@redhat.com>
8249 * solib-frv.c (enable_break): Use entry_point_address_query.
8251 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8253 * NEWS: Add note on improved process record-replay on
8254 arm*-linux* targets.
8256 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8258 * arm-tdep.c (enum arm_record_result): New enum.
8259 (arm_record_unsupported_insn): New function.
8260 (arm_record_coproc_data_proc): Removed.
8261 (thumb2_record_ld_st_multiple): New function.
8262 (thumb2_record_ld_st_dual_ex_tbb): New function.
8263 (thumb2_record_data_proc_sreg_mimm): New function.
8264 (thumb2_record_ps_dest_generic): New function.
8265 (thumb2_record_branch_misc_cntrl): New function.
8266 (thumb2_record_str_single_data): New function.
8267 (thumb2_record_ld_mem_hints): New function.
8268 (thumb2_record_ld_word): New function.
8269 (thumb2_record_lmul_lmla_div): New function.
8270 (thumb2_record_decode_insn_handler): New function.
8271 (decode_insn): Add thumb32 instruction handlers.
8273 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8275 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8276 (struct arm_linux_record_tdep): Declare.
8277 (arm_canonicalize_syscall): New function.
8278 (arm_all_but_pc_registers_record): New function.
8279 (arm_linux_syscall_record): New function.
8280 (arm_linux_init_abi): Add syscall recording constructs.
8281 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8282 decoding. (arm_record_coproc_data_proc): Update arm syscall
8284 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8285 <arm_syscall_record>: New field.
8286 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8289 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8291 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8292 register for push instruction recording.
8294 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8296 * arm-tdep.c (thumb_record_misc): Update to correct logical
8297 error while recording ldm, ldmia and pop instructions.
8299 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8301 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8303 2014-01-15 Pedro Alves <palves@redhat.com>
8305 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8306 (go32_resume, go32_fetch_registers, store_register)
8307 (go32_store_registers, go32_prepare_to_store)
8308 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8309 (go32_create_inferior, go32_can_run, go32_terminal_init)
8310 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8313 2014-01-15 Tom Tromey <tromey@redhat.com>
8315 * target.h (async_callback_ftype): New typedef.
8316 (struct target_ops) <to_async>: Use it.
8318 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8320 * python/py-value.c (get_field_type): Remove unnecessary curly
8321 braces for single-statement if block.
8323 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8325 * python/py-type.c (convert_field): Add missing empty line
8328 2014-01-14 Doug Evans <dje@google.com>
8330 * symfile.h (expand_symtabs_matching): Renamed from
8331 expand_partial_symbol_names. Update prototype.
8332 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8333 * symfile.c (expand_symtabs_matching): Renamed from
8334 expand_partial_symbol_names. New args file_matcher, kind.
8335 Rename arg fun to symbol_matcher.
8336 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8337 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8338 ada_expand_partial_symbol_name.
8339 (ada_make_symbol_completion_list): Update to call
8340 expand_symtabs_matching.
8341 (ada_add_global_exceptions): Call expand_symtabs_matching.
8342 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8343 call map_symbol_filenames.
8344 * symtab.c (sources_info): Update to call map_symbol_filenames.
8345 (search_symbols): Call expand_symtabs_matching.
8346 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8347 (default_make_symbol_completion_list_break_on): Update to call
8348 expand_symtabs_matching.
8349 (make_source_files_completion_list): Update to call
8350 map_symbol_filenames.
8352 2014-01-14 Doug Evans <dje@google.com>
8354 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8355 (expand_symtabs_symbol_matcher_ftype): New typedef.
8356 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8357 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8358 * symfile.c (expand_partial_symbol_names): Update to use
8359 expand_symtabs_symbol_matcher_ftype.
8360 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8361 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8362 Arg name_matcher renamed to symbol_matcher.
8363 * psymtab.c (recursively_search_psymtabs): Update to use
8364 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8366 (expand_symtabs_matching_via_partial): Update to use
8367 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8368 Arg name_matcher renamed to symbol_matcher.
8370 2014-01-14 Doug Evans <dje@google.com>
8372 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8373 (map_partial_symbol_filenames): Ditto.
8374 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8375 (map_partial_symbol_filenames): Ditto.
8376 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8377 (map_partial_symbol_filenames): Ditto.
8378 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8379 (map_partial_symbol_filenames): Ditto.
8380 * symtab.c: Delete #include "psymtab.h".
8382 2014-01-14 Pedro Alves <palves@redhat.com>
8383 Tom Tromey <tromey@redhat.com>
8385 * infrun.c (use_displaced_stepping): Use find_record_target
8386 instead of RECORD_IS_USED.
8387 (adjust_pc_after_break): Use record_full_is_used instead of
8389 * record-btrace.c (record_btrace_open): Call record_preopen
8390 instead of checking RECORD_IS_USED.
8391 * record-full.c (record_full_shortname)
8392 (record_full_core_shortname): New globals.
8393 (record_full_is_used): New function.
8394 (find_full_open): Call record_preopen instead of checking
8396 (init_record_full_ops): Set the target's shortname to
8397 record_full_shortname.
8398 (init_record_full_core_ops): Set the target's shortname to
8399 record_full_core_shortname.
8400 * record-full.h (record_full_is_used): Declare.
8401 * record.c (find_record_target): Make extern.
8402 (record_preopen): New function.
8403 * record.h (RECORD_IS_USED): Delete macro.
8404 (find_record_target, record_preopen): Declare functions.
8406 2014-01-14 Yao Qi <yao@codesourcery.com>
8408 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8409 'len''s type to ULONGEST.
8410 (core_xfer_shared_libraries_aix): Likewise.
8411 * gdbarch.c, gdbarch.h: Regenerated.
8412 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8413 Change type of 'len' to ULONGEST.
8414 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8415 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8417 2014-01-14 Yao Qi <yao@codesourcery.com>
8419 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8420 type of 'len' to ULONGEST.
8421 (linux_xfer_osdata_processgroups): Likewise.
8422 (linux_xfer_osdata_threads): Likewise.
8423 (linux_xfer_osdata_fds): Likewise.
8424 (linux_xfer_osdata_isockets): Likewise.
8425 (linux_xfer_osdata_shm): Likewise.
8426 (linux_xfer_osdata_sem): Likewise.
8427 (linux_xfer_osdata_msg): Likewise.
8428 (linux_common_xfer_osdata): Likewise.
8429 (struct osdata_type) <getter>: Likewise.
8430 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8433 2014-01-14 Yao Qi <yao@codesourcery.com>
8435 * target.h (target_xfer_partial_ftype): Update.
8436 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8438 * aix-thread.c (aix_thread_xfer_partial): Change type of
8439 argument 'len' to ULONGEST.
8440 * auxv.c (procfs_xfer_auxv): Likewise.
8441 (ld_so_xfer_auxv): Likewise.
8442 (memory_xfer_auxv): Likewise.
8443 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8444 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8445 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8446 * corelow.c (core_xfer_partial): Likewise.
8447 * ctf.c (ctf_xfer_partial): Likewise.
8448 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8450 (darwin_read_dyld_info): Likewise.
8451 (darwin_xfer_partial): Likewise.
8452 * exec.c (section_table_xfer_memory_partial): Likewise.
8453 (exec_xfer_partial): Likewise.
8454 * exec.h (section_table_xfer_memory_partial): Update
8456 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8457 instead of plongest.
8458 (gnu_xfer_partial): Likewise.
8459 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8460 (ia64_hpux_xfer_solib_got): Likewise.
8461 (ia64_hpux_xfer_partial): Likewise.
8462 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8463 * inf-ptrace.c (inf_ptrace_xfer_partial):
8464 * inf-ttrace.c (inf_ttrace_xfer_partial):
8465 * linux-nat.c (linux_xfer_siginfo): Likewise.
8466 (linux_nat_xfer_partial): Likewise.
8467 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8468 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8469 * monitor.c (monitor_xfer_memory): Likewise.
8470 (monitor_xfer_partial): Likewise.
8471 * procfs.c (procfs_xfer_partial): Likewise.
8472 * record-full.c (record_full_xfer_partial): Likewise.
8473 (record_full_core_xfer_partial): Likewise.
8474 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8475 instead of plongest.
8476 (gdbsim_xfer_partial): Likewise.
8477 * remote.c (remote_xfer_partial): Likewise.
8478 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8479 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8481 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8482 (rs6000_xfer_shared_libraries): Likewise.
8483 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8484 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8485 (sparc_xfer_partial): Likewise.
8486 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8487 (spu_xfer_partial): Likewise.
8488 * spu-multiarch.c (spu_xfer_partial): Likewise.
8489 * target.c (target_read_live_memory): Likewise.
8490 (memory_xfer_live_readonly_partial): Likewise.
8491 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8492 (target_xfer_partial, default_xfer_partial): Likewise.
8493 (current_xfer_partial): Likewise.
8494 * tracepoint.c (tfile_xfer_partial): Likewise.
8495 * windows-nat.c (windows_xfer_memory): Likewise. Call
8496 pulongest instead of plongest.
8497 (windows_xfer_partial): Likewise.
8498 (windows_xfer_shared_libraries): Likewise.
8500 2014-01-14 Yao Qi <yao@codesourcery.com>
8502 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8503 target_xfer_partial_ftype.
8505 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8509 * valops.c (value_struct_elt_bitpos): New function
8510 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8511 object to 'None' if the field name is an empty string ("").
8512 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8513 attribute to look for a field when 'name' is 'None'.
8514 (get_field_type): New function
8516 2014-01-13 Doug Evans <dje@google.com>
8519 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8520 (try_open_dwop_file): Ditto.
8521 * gdb_bfd.c: #include "vec.h".
8522 (bfdp): New typedef.
8523 (struct gdb_bfd_data): New member included_bfds.
8524 (gdb_bfd_unref): Unref all included bfds.
8525 (gdb_bfd_record_inclusion): New function.
8526 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8528 2014-01-13 Tom Tromey <tromey@redhat.com>
8530 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8532 2014-01-13 Tom Tromey <tromey@redhat.com>
8534 * defs.h (use_windows): Remove.
8535 * gdb.c (main): Update.
8536 * main.c (captured_main, gdb_main): Update.
8537 * main.h (struct captured_main_args) <use_windows>: Remove.
8538 * top.c (use_windows): Remove.
8540 2014-01-13 Tom Tromey <tromey@redhat.com>
8542 * defs.h (deprecated_flush_hook): Remove.
8544 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8547 * linux-thread-db.c (try_thread_db_load): Add parameter
8548 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8549 (try_thread_db_load_from_pdir_1): Move it there from here.
8550 (try_thread_db_load_from_sdir): Update caller.
8551 (try_thread_db_load_from_dir): Move it there from here.
8553 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8555 * regformats/regdat.sh: Always rewrite the register file.
8557 2014-01-13 Pedro Alves <palves@redhat.com>
8559 * Makefile.in (CHECK_HEADERS): New variable.
8560 (check-headers:): New rule.
8562 2014-01-13 Tom Tromey <tromey@redhat.com>
8564 * cli/cli-setshow.c (do_set_command): Update.
8565 * defs.h (deprecated_set_hook): Remove.
8566 * top.c (deprecated_set_hook): Remove.
8568 2014-01-13 Pedro Alves <palves@redhat.com>
8570 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8571 the tracepoint if the PC is a pseudo-register.
8573 2014-01-13 Tom Tromey <tromey@redhat.com>
8575 * defs.h (XCALLOC): Remove.
8576 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8577 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8578 * dwarf2loc.c (allocate_piece_closure): Likewise.
8579 * elfread.c (elf_symfile_segments): Likewise.
8580 (elf_symfile_segments): Likewise.
8581 * gdbtypes.c (copy_type_recursive): Likewise.
8582 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8583 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8584 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8586 * mt-tdep.c (mt_gdbarch_init): Likewise.
8587 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8589 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8590 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8591 * registry.c (registry_alloc_data): Likewise.
8592 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8593 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8594 * serial.c (serial_fdopen_ops): Likewise.
8595 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8597 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8598 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8601 2014-01-13 Tom Tromey <tromey@redhat.com>
8603 * defs.h (XMALLOC): Remove.
8604 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8605 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8606 * cli-out.c (struct ui_out *): Likewise.
8607 * cli/cli-dump.c (add_dump_command): Likewise.
8608 (add_dump_command): Likewise.
8609 * complaints.c (get_complaints): Likewise.
8610 (find_complaint): Likewise.
8611 * dwarf2-frame.c (execute_cfa_program): Likewise.
8612 * dwarf2read.c (abbrev_table_read_table): Likewise.
8613 * gdbarch.sh: Likewise.
8614 * gdbarch.c: Rebuild.
8615 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8616 * interps.c (interp_new): Likewise.
8617 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8618 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8619 * mi/mi-console.c (mi_console_file_new): Likewise.
8620 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8621 * mi/mi-out.c (mi_out_new): Likewise.
8622 * mi/mi-parse.c (mi_parse): Likewise.
8623 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8624 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8625 * observer.c (xalloc_observer_list_node): Likewise.
8626 * regcache.c (regcache_xmalloc_1): Likewise.
8627 * reggroups.c (reggroup_new): Likewise.
8628 (_initialize_reggroup): Likewise.
8629 * registry.c (register_data_with_cleanup): Likewise.
8630 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8631 * ser-base.c (serial_ttystate): Likewise.
8632 * ser-mingw.c (make_pipe_state): Likewise.
8633 * ser-pipe.c (pipe_open): Likewise.
8634 * serial.c (serial_open): Likewise.
8635 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8636 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8637 (tui_alloc_win_info): Likewise.
8638 (tui_add_content_elements): Likewise.
8639 * tui/tui-file.c (tui_file_new): Likewise.
8640 * tui/tui-out.c (tui_out_new): Likewise.
8641 * ui-file.c (mem_file_new): Likewise.
8642 * ui-out.c (push_level): Likewise.
8643 (make_cleanup_ui_out_end): Likewise.
8644 (append_header_to_list): Likewise.
8645 (ui_out_new): Likewise.
8646 * user-regs.c (user_reg_add_builtin): Likewise.
8648 2014-01-13 Tom Tromey <tromey@redhat.com>
8650 * defs.h (XZALLOC): Remove.
8651 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8652 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8653 (get_ada_tasks_inferior_data): Likewise.
8654 * auto-load.c (get_auto_load_pspace_data): Likewise.
8655 * auxv.c (get_auxv_inferior_data): Likewise.
8656 * bfd-target.c (target_bfd_reopen): Likewise.
8657 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8658 (deprecated_insert_raw_breakpoint): Likewise.
8659 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8660 * corelow.c (core_open): Likewise.
8661 * darwin-nat.c (darwin_check_new_threads): Likewise.
8662 (darwin_attach_pid): Likewise.
8663 * dummy-frame.c (dummy_frame_push): Likewise.
8664 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8665 * dwarf2loc.c (allocate_piece_closure): Likewise.
8666 * elfread.c (elf_symfile_segments): Likewise.
8667 * eval.c (ptrmath_type_p): Likewise.
8668 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8669 * gdbtypes.c (alloc_type_arch): Likewise.
8670 (alloc_type_instance): Likewise.
8671 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8672 * inf-child.c (inf_child_can_use_agent): Likewise.
8673 * inflow.c (get_inflow_inferior_data): Likewise.
8674 * infrun.c (save_infcall_suspend_state): Likewise.
8675 * jit.c (jit_reader_load): Likewise.
8676 (get_jit_objfile_data): Likewise.
8677 (get_jit_program_space_data): Likewise.
8678 (jit_object_open_impl): Likewise.
8679 (jit_symtab_open_impl): Likewise.
8680 (jit_block_open_impl): Likewise.
8681 (jit_frame_sniffer): Likewise.
8682 * linux-fork.c (add_fork): Likewise.
8683 * maint.c (make_command_stats_cleanup): Likewise.
8684 * objfiles.c (get_objfile_pspace_data): Likewise.
8685 * opencl-lang.c (struct lval_closure): Likewise.
8686 * osdata.c (osdata_start_osdata): Likewise.
8687 * progspace.c (new_address_space): Likewise.
8688 (add_program_space): Likewise.
8689 * remote-sim.c (get_sim_inferior_data): Likewise.
8690 * sh-tdep.c (sh_gdbarch_init): Likewise.
8691 * skip.c (Ignore): Likewise.
8692 (skip_delete_command): Likewise.
8693 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8694 (library_list_start_library): Likewise.
8695 (solib_aix_current_sos): Likewise.
8696 * solib-darwin.c (get_darwin_info): Likewise.
8697 (darwin_current_sos): Likewise.
8698 * solib-dsbt.c (get_dsbt_info): Likewise.
8699 * solib-ia64-hpux.c (new_so_list): Likewise.
8700 (ia64_hpux_get_solib_linkage_addr): Likewise.
8701 * solib-spu.c (append_ocl_sos): Likewise.
8702 (spu_current_sos): Likewise.
8703 * solib-svr4.c (get_svr4_info): Likewise.
8704 (svr4_keep_data_in_core): Likewise.
8705 (library_list_start_library): Likewise.
8706 (svr4_default_sos): Likewise.
8707 (svr4_read_so_list): Likewise.
8708 * solib-target.c (library_list_start_library): Likewise.
8709 (solib_target_current_sos): Likewise.
8710 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8711 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8712 * symfile.c (default_symfile_segments): Likewise.
8713 * target-descriptions.c (tdesc_data_init): Likewise.
8714 (tdesc_create_reg): Likewise.
8715 (struct tdesc_type *): Likewise.
8716 (tdesc_create_vector): Likewise.
8717 (tdesc_set_struct_size): Likewise.
8718 (struct tdesc_type *): Likewise.
8719 (tdesc_free_feature): Likewise.
8720 (tdesc_create_feature): Likewise.
8721 * windows-nat.c (windows_add_thread): Likewise.
8722 (windows_make_so): Likewise.
8723 * xml-support.c (gdb_xml_body_text): Likewise.
8724 (gdb_xml_create_parser_and_cleanup): Likewise.
8725 (xml_process_xincludes): Likewise.
8726 * xml-syscall.c (allocate_syscalls_info): Likewise.
8727 (syscall_create_syscall_desc): Likewise.
8729 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8731 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8732 function, with code from i386_stap_parse_special_token.
8733 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8734 (i386_stap_parse_special_token): Move code to the two functions
8737 2014-01-09 Pedro Alves <palves@redhat.com>
8738 Hui Zhu <hui@codesourcery.com>
8741 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8742 bp_err_string. Don't mark the location shlib_disabled if the
8743 error thrown wasn't a generic or memory error. Catch errors
8744 thrown while inserting breakpoints in overlayed code. Output
8745 error message of software breakpoints.
8746 * remote.c (remote_insert_breakpoint): If this breakpoint has
8747 target-side commands but this stub doesn't support Z0 packets,
8748 throw NOT_SUPPORTED_ERROR error.
8749 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8750 * target.h (target_insert_breakpoint): Extend comment.
8751 (target_insert_hw_breakpoint): Add comment.
8753 2014-01-08 Pedro Alves <palves@redhat.com>
8755 * remote.c (remote_add_thread): Add threads silently if starting
8757 (remote_notice_new_inferior): If in all-stop, and starting up,
8758 don't call notice_new_inferior.
8759 (get_current_thread): New function, factored out from ...
8760 (add_current_inferior_and_thread): ... this. Adjust.
8761 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8762 found any thread, then select the remote's current thread as GDB's
8765 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8767 * NEWS: Create a new section for the next release branch.
8768 Rename the section of the current branch, now that it has
8771 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8773 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8774 * version.in: Bump version to 7.7.50.DATE-cvs.
8776 2014-01-08 Yao Qi <yao@codesourcery.com>
8778 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8779 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8780 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8782 2014-01-08 Yao Qi <yao@codesourcery.com>
8784 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8785 return value of bfd_get_filename to symbol_file_add_from_bfd.
8787 2014-01-08 Pierre Muller <muller@sourceware.org>
8790 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8791 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8792 to prim_record_mininal_symbol_and_info.
8793 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8794 in call to prim_record_minimal_symbol_and_info.
8795 (read_pe_exported_syms): Set index field of section_data.
8797 2014-01-07 Andrew Pinski <apinski@cavium.com>
8799 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8800 * features/aarch64.c: Regenerate.
8802 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8804 * target.c (return_null): Define.
8805 (update_current_target): Use it instead of return_zero for
8806 functions that return a pointer.
8808 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8810 * source.c (add_path): Fix check for duplicated paths in the previously
8813 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8815 * ada-lang.c: Remove duplicated include statements.
8816 * alphabsd-nat.c: Ditto.
8817 * amd64-darwin-tdep.c: Ditto.
8818 * amd64fbsd-nat.c: Ditto.
8819 * auto-load.c: Ditto.
8821 * breakpoint.c: Ditto.
8823 * fork-child.c: Ditto.
8824 * gdb_usleep.c: Ditto.
8825 * i386-darwin-tdep.c: Ditto.
8826 * i386fbsd-nat.c: Ditto.
8828 * inferior.c: Ditto.
8830 * linux-nat.c: Ditto.
8831 * linux-tdep.c: Ditto.
8832 * m68kbsd-nat.c: Ditto.
8833 * m68klinux-nat.c: Ditto.
8834 * microblaze-tdep.c: Ditto.
8835 * mips-linux-tdep.c: Ditto.
8836 * mn10300-tdep.c: Ditto.
8837 * nto-tdep.c: Ditto.
8838 * opencl-lang.c: Ditto.
8840 * printcmd.c: Ditto.
8841 * regcache.c: Ditto.
8842 * remote-m32r-sdi.c: Ditto.
8846 * tilegx-linux-nat.c: Ditto.
8847 * tilegx-tdep.c: Ditto.
8848 * tracepoint.c: Ditto.
8850 * vaxbsd-nat.c: Ditto.
8851 * windows-nat.c: Ditto.
8852 * xtensa-tdep.c: Ditto.
8854 2014-01-07 Yao Qi <yao@codesourcery.com>
8856 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8858 2014-01-07 Yao Qi <yao@codesourcery.com>
8859 Joel Brobecker <brobecker@adacore.com>
8861 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8862 (pdc_write_regs): Likewise.
8863 (fetch_regs_kernel_thread): Likewise.
8864 (store_regs_kernel_thread): Likewise.
8866 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8868 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8869 tagged type objects to their actual type.
8871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8873 * ada-valprint.c (print_field_values): Add "language" parameter.
8874 Update calls to print_field_values and print_variant_part.
8875 Pass new parameter "language" in call to val_print instead
8876 of "current_language". Replace call to ada_val_print by call
8878 (print_variant_part): Add "language" parameter.
8879 (ada_val_print_struct_union): Update call to print_field_values.
8881 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8883 * ada-valprint.c (ui_memcpy): Delete.
8884 (ada_print_floating): Update documentation. Add empty line
8885 between between function documentation and implementation.
8886 Delete variable "buffer". Use ui_file_xstrdup in place of
8887 ui_file_put. Minor adjustments following this change.
8889 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8891 * ada-valprint.c (ada_val_print_string): New function,
8892 extracted from ada_val_print_array.
8893 (ada_val_print_array): Replace extracted code by call
8894 to ada_val_print_string followed by a return. Move
8895 "else" branch to the function's top block.
8897 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8899 * ada-valprint.c (ada_val_print_array): Move implementation
8900 down. Rename parameter "offset" and "val" into "offset_aligned"
8901 and "original_value" respectively. Add parameter "offset".
8903 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8905 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8906 re-organizing the code. Change the "???" message printed
8907 when target type is a TYPE_CODE_UNDEF into
8908 "<ref to undefined type>".
8910 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8912 * ada-valprint.c (print_record): Delete, implementation inlined...
8913 (ada_val_print_struct_union): ... here. Remove call to
8914 ada_check_typedef in inlined implementation.
8916 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8918 * ada-valprint.c (ada_val_print_gnat_array): New function,
8919 extracted from ada_val_print_1;
8920 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8921 (ada_val_print_flt, ada_val_print_struct_union)
8922 (ada_val_print_ref): Likewise.
8923 (ada_val_print_1): Delete variables i and elttype.
8924 Replace extracted-out code by call to corresponding
8927 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8929 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8931 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8933 * ada-valprint.c (ada_val_print_1): Replace calls to
8934 ada_val_print_1 by calls to val_print.
8936 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8938 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8939 Update calls to self accordingly. Replace calls to c_val_print
8940 by calls to val_print.
8942 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8944 * ada-valprint.c (print_record): Delete declaration.
8945 (adjust_type_signedness, ada_val_print_1): Likewise.
8946 (ada_val_print): Move function implementation down.
8947 (print_variant_part, print_field_values, print_record):
8948 Move function implementation up.
8950 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8952 * python/py-type.c (typy_get_name): New function.
8953 (type_object_getset): Add entry for attribute "name".
8954 * NEWS: Add entry mentioning this new attribute.
8956 2014-01-07 Yao Qi <yao@codesourcery.com>
8958 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8961 2014-01-07 Yao Qi <yao@codesourcery.com>
8963 * gnu-nat.c (info_port_rights): Add qualifier const to
8966 2014-01-07 Yao Qi <yao@codesourcery.com>
8968 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8970 2014-01-07 Yao Qi <yao@codesourcery.com>
8972 * gnu-nat.c (make_inf) Update declaration.
8973 (make_inf): Make it static.
8974 (inf_set_traced): Likewise.
8975 (inf_port_to_thread, inf_task_died_status): Likewise.
8977 2014-01-07 Yao Qi <yao@codesourcery.com>
8979 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8981 2014-01-07 Yao Qi <yao@codesourcery.com>
8983 * gnu-nat.c (_initialize_gnu_nat): Declare.
8985 2014-01-07 Yao Qi <yao@codesourcery.com>
8987 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8989 (struct gdbarch_info) <byte_order>: Change type to
8991 <byte_order_for_code>: Likewise.
8992 * gdbarch.c, gdbarch.h: Regenerated.
8994 2014-01-06 Sasha Smundak <asmundak@google.com>
8996 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8998 2014-01-06 Tom Tromey <tromey@redhat.com>
9000 * doublest.c (convert_doublest_to_floatformat): Use const, not
9002 * somread.c (som_symtab_read): Likewise.
9004 2014-01-07 Hui Zhu <hui@codesourcery.com>
9006 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9007 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9008 (gdb_bfd_fopen): Ditto.
9009 (gdb_bfd_openr): Ditto.
9010 (gdb_bfd_openw): Ditto.
9011 (gdb_bfd_openr_iovec): Ditto.
9012 (gdb_bfd_fdopenr): Ditto.
9013 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9014 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9016 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9018 * symfile-mem.c (symbol_file_add_from_memory): Removed
9019 gdb_bfd_stash_filename.
9021 2014-01-03 Doug Evans <dje@google.com>
9023 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9026 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9028 Update year range in copyright notice of all files.
9030 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9032 * top.c (print_gdb_version): Set copyright year to 2014.
9034 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9036 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9038 For older changes see ChangeLog-2013.
9044 version-control: never