1 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4 * version.in: Bump version to 7.8.50.DATE-cvs.
6 2014-06-11 Pedro Alves <palves@redhat.com>
9 * ser-mingw.c (net_windows_socket_check_pending): New function.
10 (net_windows_select_thread): Ignore spurious wakeups. Use
11 net_windows_socket_check_pending.
12 (net_windows_wait_handle): Check for pending events with
13 ioctlsocket, through net_windows_socket_check_pending, instead of
14 checking the socket's event.
16 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
18 * python/python-internal.h (gdb_PyObject_GetAttrString)
19 (gdb_PyObject_HasAttrString): New inline function definitions.
20 * py-value.c (get_field_flag): Remove the now unnecessary cast to
21 char * of the second argument to PyObject_GetAttrString.
23 2014-06-10 Joel Brobecker <brobecker@adacore.com>
25 * serial.c (serial_write): Fix index of character to be printed
26 in call to serial_logchar when serial debug traces are enabled.
28 2014-06-10 Joel Brobecker <brobecker@adacore.com>
30 * gdbtypes (resolve_dynamic_range): Add function description.
32 2014-06-09 Gary Benson <gbenson@redhat.com>
34 * common/signals.c (gdb_signal_from_host): Reorder to separate
35 the always-available ANSI-standard signals from the signals that
37 (do_gdb_signal_to_host): Likewise.
38 * proc-events.c (signal_table): Likewise.
40 2014-06-08 Hui Zhu <hui@codesourcery.com>
42 * common/linux-ptrace.c (linux_disable_event_reporting): New
44 * common/linux-ptrace.h (linux_disable_event_reporting): New
46 * linux-nat.c (linux_child_follow_fork): Do a single step before
49 2014-06-07 Keith Seitz <keiths@redhat.com>
53 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
54 from symbol_matches_domain in symtab.c. All local callers
55 of symbol_matches_domain updated.
56 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
58 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
59 independently. standard_lookup will do that automatically.
60 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
61 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
62 (cp_lookup_symbol_in_namespace): Likewise.
63 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
64 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
65 may return a STRUCT_DOMAIN match.
66 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
67 * cp-support.c: Include language.h.
68 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
70 * psymtab.c (match_partial_symbol): Compare the requested
71 domain with the symbol's domain directly.
72 (lookup_partial_symbol): Likewise.
73 * symtab.c (lookup_symbol_in_language): Explain when/why
74 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
75 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
76 appropriate languages.
77 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
78 and moved to ada-lang.c
79 (lookup_block_symbol): Explain that this function only returns
80 symbol matching the requested DOMAIN.
81 Compare the requested domain with the symbol's domain directly.
82 (iterate_over_symbols): Compare the requested domain with the
83 symbol's domain directly.
84 * symtab.h (symbol_matches_domain): Remove.
86 2014-06-06 Doug Evans <xdje42@gmail.com>
88 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
89 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
90 (gdbscm_guile_version_is_at_least): Declare.
91 (gdbscm_scm_string_to_int): Declare.
92 * guile/guile.c (gdbscm_guile_major_version): New global.
93 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
94 (guile_datadir): New static global.
95 (gdbscm_guile_data_directory): New function.
96 (initialize_scheme_side): Update.
97 (misc_guile_functions): Add guile-data-directory.
98 (initialize_gdb_module): Fetch guile version number.
99 * guile/lib/gdb.scm: Remove call to add-to-load-path.
100 * guile/lib/gdb/init.scm (%initialize!): Ditto.
101 * guile/lib/gdb/boot.scm: Use guile-data-directory.
102 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
104 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
105 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
106 * guile/scm-value.c (gdbscm_value_to_string): Only call
107 scm_port_conversion_strategy if Guile version >= 2.0.6.
109 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
111 * main.c (print_gdb_help): Add -q and --silent.
113 2014-06-06 Gary Benson <gbenson@redhat.com>
115 * common/signals.c: Remove preprocessor conditionals for
116 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
118 * proc-events.c: Likewise.
120 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
122 * symfile.c (symfile_free_objfile): Remove restriction to
124 * symfile-mem.c (symbol_file_add_from_memory): Call
125 add_target_sections_of_objfile.
127 2014-06-05 Ludovic Courtès <ludo@gnu.org>
129 * guile/scm-value.c (gdbscm_history_append_x): Use
130 'vlscm_get_value_smob_arg_unsafe' instead of
131 'vlscm_scm_to_value'.
133 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
136 * utils.c (printchar): Don't escape at all if quoter is NUL.
137 Update function documentation to clarify effect of parameter
139 * remote.c (escape_buffer): Pass '\\' as the quoter to
141 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
143 (mi_solib_unloaded): Same.
145 2014-06-05 Joel Brobecker <brobecker@adacore.com>
147 * development.sh: Delete.
148 * Makefile.in (config.status): Adjust dependency on development.sh.
149 * configure.ac: Adjust development.sh source call.
150 * configure: Regenerate.
152 2014-06-04 Doug Evans <xdje42@gmail.com>
154 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
155 is_scheme_bkpt, spec.
156 (bpscm_make_breakpoint_smob): Initialize new members.
157 (gdbscm_create_breakpoint_x): Split into two ...
158 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
159 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
160 (scheme_function breakpoint_functions): Update.
161 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
162 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
163 register-breakpoint!.
165 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
168 * mem-break.c (z_type_supported): Return zero if
169 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
171 2014-06-04 Tom Tromey <tromey@redhat.com>
173 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
174 value_from_contents_and_address_unresolved.
175 (ada_template_to_fixed_record_type_1): Likewise.
176 (ada_which_variant_applies): Likewise.
177 * value.h (value_from_contents_and_address_unresolved): Declare.
178 * value.c (value_from_contents_and_address_unresolved): New
180 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
181 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
182 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
184 2014-06-04 Tom Tromey <tromey@redhat.com>
186 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
188 2014-06-04 Tom Tromey <tromey@redhat.com>
190 * procfs.c (procfs_attach): Make "args" const.
191 * windows-nat.c (windows_attach): Make "args" const.
192 * nto-procfs.c (procfs_attach): Make "args" const.
193 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
194 * go32-nat.c (go32_attach): Make "args" const.
195 * gnu-nat.c (gnu_attach): Make "args" const.
196 * darwin-nat.c (darwin_attach): Make "args" const.
197 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
198 * linux-nat.c (linux_nat_attach): Make "args" const.
199 * remote.c (extended_remote_attach_1, extended_remote_attach):
201 * target.h (struct target_ops) <to_attach>: Make "args" const.
202 (find_default_attach): Likewise.
203 * utils.c (parse_pid_to_attach): Make "args" const.
204 * utils.h (parse_pid_to_attach): Update.
206 2014-06-04 Tom Tromey <tromey@redhat.com>
208 * target-delegates.c: Rebuild.
209 * target.c (default_thread_address_space): New function.
210 (target_thread_address_space): Simplify.
211 * target.h (struct target_ops) <to_thread_address_space>: Add
214 2014-06-04 Doug Evans <xdje42@gmail.com>
216 * guile/scm-type.c (type_smob): Remove duplicate typedef.
218 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
220 * record-btrace.c: Include event-loop.h and inf-loop.h.
221 (record_btrace_resume_exec_dir)
222 (record_btrace_async_inferior_event_handler)
223 (record_btrace_handle_async_inferior_event): New.
224 (record_btrace_open): Create async event handler.
225 (record_btrace_close): Delete async event handler.
226 (record_btrace_resume): Set record_btrace_resume_exec_dir,
227 Mark async event handler.
228 (record_btrace_execution_direction): New.
229 (init_record_btrace_ops): Initialize to_execution_direction.
231 2014-06-03 Doug Evans <xdje42@gmail.com>
233 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
234 (gdbscm_make_parameter): Ditto.
236 2014-06-03 Doug Evans <dje@google.com>
238 * exec.c (exec_close_1): Call clear_section_table instead of
239 resize_section_table.
240 (clear_section_table): New function.
241 (resize_section_table): Make static. Rename arg num_added to
243 * exec.h (clear_section_table): Declare.
244 (resize_section_table): Delete.
245 * progspace.c (release_program_space): Call clear_section_table
246 instead of resize_section_table.
248 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
250 * NEWS (Python Scripting): Add entry about the new xmethods
253 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
255 * python/py-xmethods.c: New file.
256 * python/py-objfile.c (objfile_object): New field 'xmethods'.
257 (objfpy_dealloc): XDECREF on the new xmethods field.
258 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
260 (objfpy_get_xmethods): New function.
261 (objfile_getset): New entry 'xmethods'.
262 * python/py-progspace.c (pspace_object): New field 'xmethods'.
263 (pspy_dealloc): XDECREF on the new xmethods field.
264 (pspy_new, pspace_to_pspace_object): Initialize xmethods
266 (pspy_get_xmethods): New function.
267 (pspace_getset): New entry 'xmethods'.
268 * python/python-internal.h: Add declarations for new functions.
269 * python/python.c (_initialize_python): Invoke
270 gdbpy_initialize_xmethods.
271 * python/lib/gdb/__init__.py (xmethods): New
273 * python/lib/gdb/xmethod.py: New file.
274 * python/lib/gdb/command/xmethods.py: New file.
276 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
278 * eval.c (evaluate_subexp_standard): Call the xmethod if the
279 best match method returned by find_overload_match is an xmethod.
280 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
281 the best matching operator returned by find_overload_match is an
283 * valops.c: #include "extension.h".
284 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
285 Return void. The list of matching source methods is returned in
286 "fn_list" and a vector of matching debug method workers is
287 returned in "xm_worker_vec". Update all callers.
288 (value_find_oload_method_list): Likewise.
289 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
290 non-NULL, then the index of the best matching method in this
291 vector is returned. Update all callers.
292 (find_overload_match): Include xmethods while performing overload
295 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
297 * defs.h (enum lval_type): New enumerator "lval_xcallable".
298 * extension-priv.h (struct extension_language_ops): Add the
300 * extension.c (new_xmethod_worker, clone_xmethod_worker,
301 get_matching_xmethod_workers, get_xmethod_argtypes,
302 invoke_xmethod, free_xmethod_worker,
303 free_xmethod_worker_vec): New functions.
304 * extension.h: #include "common/vec.h".
305 New function declarations.
306 (struct xmethod_worker): New struct.
307 (VEC (xmethod_worker_ptr)): New vector type.
308 (xmethod_worker_ptr): New typedef.
309 (xmethod_worker_vec): Likewise.
310 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
312 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
313 (struct builtin_type): New field "xmethod".
314 * valarith.c (value_ptradd): Assert that the value argument is not
316 * valops.c (value_must_coerce_to_target): Return 0 for
317 lval_xcallable values.
318 * value.c (struct value): New field XM_WORKER in the field
320 (value_address, value_raw_address): Return 0 for lval_xcallable
322 (set_value_address): Assert that the value is not an
324 (value_free): Free the associated xmethod worker when freeing
325 lval_xcallable values.
326 (set_value_component_location): Assert that the WHOLE value is not
328 (value_of_xmethod, call_xmethod): New functions.
329 * value.h: Declare "struct xmethod_worker".
330 Declare new functions value_of_xmethod, call_xmethod.
332 2014-06-03 Joel Brobecker <brobecker@adacore.com>
333 Pedro Alves <palves@redhat.com>
336 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
337 New function, extracted from software_breakpoint_inserted_here_p.
338 (software_breakpoint_inserted_here_p): Replace factored out code
339 by call to find_non_raw_software_breakpoint_inserted_here.
340 (bp_target_info_copy_insertion_state): New function.
341 (bkpt_insert_location): Handle the case of a single-step
342 breakpoint already inserted at the same address.
343 (bkpt_remove_location): Handle the case of a single-step
344 breakpoint still inserted at the same address.
345 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
346 breakpoint already inserted at the same address.
347 (deprecated_remove_raw_breakpoint): Handle the case of a
348 non-raw breakpoint still inserted at the same address.
349 (find_single_step_breakpoint): New function, extracted from
350 single_step_breakpoint_inserted_here_p.
351 (find_single_step_breakpoint): New function,
352 factored out from single_step_breakpoint_inserted_here_p.
353 (single_step_breakpoint_inserted_here_p): Reimplement.
355 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
357 Pushed by Joel Brobecker <brobecker@adacore.com>
358 * source.c (show_substitute_path_command): Fix display of matching
361 2014-06-03 Gary Benson <gbenson@redhat.com>
363 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
365 2014-06-02 Doug Evans <xdje42@gmail.com>
367 Add parameter support for Guile.
368 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
369 (SUBDIR_GUILE_SRCS): Add scm-param.c.
370 (scm-param.o): New rule.
371 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
372 (gdbscm_misc_error): Declare.
373 (gdbscm_canonicalize_command_name): Declare.
374 (gdbscm_scm_to_host_string): Declare.
375 (gdbscm_scm_from_host_string): Declare.
376 (gdbscm_initialize_parameters): Declare.
377 * guile/guile.c (initialize_gdb_module): Call
378 gdbscm_initialize_parameters.
379 * guile/lib/gdb.scm: Export parameter symbols.
380 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
381 cmdscm_canonicalize_name and made public. All callers updated.
382 * guile/scm-exception.c (gdbscm_misc_error): New function.
383 * guile/scm-param.c: New file.
384 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
385 (gdbscm_scm_to_host_string): New function.
386 (gdbscm_scm_from_host_string): New function.
387 * scm-utils.c (gdbscm_gc_dup_argv): New function.
389 2014-06-02 Doug Evans <xdje42@gmail.com>
391 Add command support for Guile.
392 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
393 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
394 (scm-cmd.o): New rule.
395 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
396 (gdbscm_user_error_p): Declare.
397 (gdbscm_parse_command_name): Declare.
398 (gdbscm_valid_command_class_p): Declare.
399 (gdbscm_initialize_commands): Declare.
400 * guile/guile.c (initialize_gdb_module): Call
401 gdbscm_initialize_commands.
402 * guile/lib/gdb.scm: Export command symbols.
403 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
404 (throw-user-error): New function.
405 * guile/scm-cmd.c: New file.
406 * guile/scm-exception.c (user_error_symbol): New static global.
407 (gdbscm_user_error_p): New function.
408 (gdbscm_initialize_exceptions): Set user_error_symbol.
409 * scm-utils.c (gdbscm_gc_xstrdup): New function.
411 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
413 * top.c (command_loop): Handle comments here...
414 (command_line_input): ... not here.
416 2014-06-02 Doug Evans <xdje42@gmail.com>
418 Add progspace support for Guile.
419 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
420 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
421 (scm-progspace.o): New rule.
422 * guile/guile-internal.h (pspace_smob): New typedef.
423 (psscm_pspace_smob_pretty_printers): Declare.
424 (psscm_pspace_smob_from_pspace): Declare.
425 (psscm_scm_from_pspace): Declare.
426 * guile/guile.c (initialize_gdb_module): Call
427 gdbscm_initialize_pspaces.
428 * guile/lib/gdb.scm: Export progspace symbols.
429 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
431 (append-pretty-printer!): Ditto.
432 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
434 * guile/scm-progspace.c: New file.
436 2014-06-03 Alan Modra <amodra@gmail.com>
438 * ppc64-tdep.c (ppc64_standard_linkage8): New.
439 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
441 2014-06-02 Doug Evans <dje@google.com>
443 Add support for skeletonless type units.
444 * dwarf2read.c (struct dwarf2_per_objfile): New member
445 n_allocated_type_units.
446 (struct dwarf2_per_objfile) <tu_stats>: New member
447 nr_all_type_units_reallocs.
448 (create_signatured_type_table_from_index): Initialize
449 n_allocated_type_units
450 (create_all_type_units): Ditto.
451 (add_type_unit): Move up in file. New arg slot.
452 All callers updated. Increase space for all_type_units more
454 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
455 (lookup_dwo_signatured_type): Handle skeletonless TUs.
456 (lookup_dwp_signatured_type): Ditto.
457 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
459 (build_type_psymtabs_1): Leave type_unit_groups as
460 NULL if no TUs present.
461 (print_tu_stats): New function.
462 (process_skeletonless_type_unit): New function.
463 (process_dwo_file_for_skeletonless_type_units): New
465 (process_skeletonless_type_units): New function.
466 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
467 Call print tu_stats if debugging enabled.
469 2014-06-02 Pedro Alves <palves@redhat.com>
471 * breakpoint.c (build_target_command_list): Don't build a command
472 list if we have any duplicate location that isn't a dprintf.
474 2014-06-02 Pedro Alves <palves@redhat.com>
476 * breakpoint.c (dprintf_breakpoint_hit): New function.
477 (initialize_breakpoint_ops): Install it as dprintf's
478 breakpoint_hit method.
480 2014-06-02 Joel Brobecker <brobecker@adacore.com>
482 * source.c (substitute_path_rule_matches): Simplify using
483 filename_ncmp instead of FILENAME_CMP.
485 2014-06-02 Joel Brobecker <brobecker@adacore.com>
487 * source.c (substitute_path_rule_matches): Remove trailing spaces.
489 2014-06-01 Ludovic Courtès <ludo@gnu.org>
491 * configure.ac: When Guile is available, check for the
492 availability of 'scm_new_smob'.
493 * configure, config.h.in: Regenerate.
494 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
497 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
499 * frame.c (struct frame_info): Add stop_string field.
500 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
501 (get_prev_frame_always): Old content moved into
502 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
503 TRY_CATCH, handle MEMORY_ERROR exceptions.
504 (frame_stop_reason_string): New function definition.
505 * frame.h (unwind_stop_reason_to_string): Extend comment to
506 mention frame_stop_reason_string.
507 (frame_stop_reason_string): New function declaration.
508 * stack.c (frame_info): Switch to frame_stop_reason_string.
509 (backtrace_command_1): Switch to frame_stop_reason_string.
510 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
511 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
512 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
514 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
516 * frame.c (frame_stop_reason_string): Rename to ...
517 (unwind_stop_reason_to_string): this.
518 * frame.h (frame_stop_reason_string): Rename to ...
519 (unwind_stop_reason_to_string): this.
520 * stack.c (frame_info): Update call to frame_stop_reason_string.
521 (backtrace_command_1): Likewise.
522 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
523 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
525 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
527 * frame.c (remove_prev_frame): New function.
528 (get_prev_frame_if_no_cycle): Create / discard cleanup using
531 2014-05-29 Pedro Alves <palves@redhat.com>
533 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
534 and make it const. When a single-step decays to a continue,
535 clear 'step', not 'hw_step'. Pass whether the caller wanted
536 to step to user_visible_resume_ptid, not what we ask the
539 2014-05-29 Pedro Alves <palves@redhat.com>
541 * infrun.c (process_event_stop_test, handle_step_into_function)
542 (handle_step_into_function_backward): Adjust.
543 Don't set the even thread's stop_step and call stop_waiting before
544 calling end_stepping_range. Instead do that ...
545 (end_stepping_range): ... here. Take an ecs pointer parameter.
547 2014-05-29 Pedro Alves <palves@redhat.com>
549 * infrun.c (stop_stepping): Rename to ...
550 (stop_waiting): ... this.
551 (proceed): Update comment.
552 (process_event_stop_test, handle_inferior_event)
553 (handle_signal_stop, handle_step_into_function)
554 (handle_step_into_function_backward): Update.
556 2014-05-29 Pedro Alves <palves@redhat.com>
558 * infcall.c (run_inferior_call): Don't check whether the current
559 thread is running after the proceed call.
561 2014-05-29 Pedro Alves <palves@redhat.com>
562 Tom Tromey <tromey@redhat.com>
564 * NEWS: Mention "maint set target-async", "set mi-async", and that
565 background execution commands are now always available.
566 * target.h (target_async_permitted): Update comment.
567 * target.c (target_async_permitted, target_async_permitted_1):
569 (set_target_async_command): Rename to ...
570 (maint_set_target_async_command): ... this.
571 (show_target_async_command): Rename to ...
572 (maint_show_target_async_command): ... this.
573 (_initialize_target): Adjust.
574 * infcmd.c (prepare_execution_command): Make extern.
575 * inferior.h (prepare_execution_command): Declare.
576 * infrun.c (set_observer_mode): Leave target async alone.
577 * mi/mi-interp.c (mi_interpreter_init): Install
578 mi_on_sync_execution_done as sync_execution_done observer.
579 (mi_on_sync_execution_done): New function.
580 (mi_execute_command_input_handler): Don't print the prompt if we
581 just started a synchronous command with an async target.
582 (mi_on_resume): Check sync_execution before printing prompt.
583 * mi/mi-main.h (mi_async_p): Declare.
584 * mi/mi-main.c: Include gdbcmd.h.
585 (mi_async_p): New function.
586 (mi_async, mi_async_1): New globals.
587 (set_mi_async_command, show_mi_async_command, mi_async): New
589 (exec_continue): Call prepare_execution_command.
590 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
591 (mi_execute_async_cli_command): Use mi_async_p.
592 (_initialize_mi_main): Install "set mi-async". Make
593 "target-async" a deprecated alias.
595 2014-05-29 Pedro Alves <palves@redhat.com>
597 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
598 (_initialize_cli_interp): Adjust.
599 * event-loop.c: Include "observer.h".
600 (start_event_loop): Notify 'command_error' observers instead of
601 calling display_gdb_prompt. Remove FIXME comment.
602 * event-top.c (display_gdb_prompt): Remove call into the
604 * inf-loop.c: Include "observer.h".
605 (inferior_event_handler): Notify 'command_error' observers instead
606 of calling display_gdb_prompt.
607 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
608 observers instead of calling display_gdb_prompt.
609 * interps.c (interp_set): Don't call display_gdb_prompt.
610 (current_interp_display_prompt_p): Delete.
611 * interps.h (interp_prompt_p): Delete declaration.
612 (interp_prompt_p_ftype): Delete.
613 (struct interp_procs) <prompt_proc_p>: Delete field.
614 (current_interp_display_prompt_p): Delete declaration.
615 * mi-interp.c (mi_interpreter_prompt_p): Delete.
616 (_initialize_mi_interp): Adjust.
617 * tui-interp.c (tui_init): Install 'sync_execution_done' and
618 'command_error' observers.
619 (tui_on_sync_execution_done, tui_on_command_error): New
621 (tui_display_prompt_p): Delete.
622 (_initialize_tui_interp): Adjust.
624 2014-05-29 Pedro Alves <palves@redhat.com>
627 * cli/cli-interp.c: Include infrun.h and observer.h.
628 (cli_uiout, cli_interp): New globals.
629 (cli_on_signal_received, cli_on_end_stepping_range)
630 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
632 (cli_interpreter_init): Install them as 'end_stepping_range',
633 'signal_received' 'signal_exited', 'exited' and 'no_history'
635 (_initialize_cli_interp): Remove cli_interp local.
636 * infrun.c (handle_inferior_event): Call the several stop reason
637 observers instead of printing the stop reason directly.
638 (end_stepping_range): New function.
639 (print_end_stepping_range_reason, print_signal_exited_reason)
640 (print_exited_reason, print_signal_received_reason)
641 (print_no_history_reason): Make static, and add an uiout
642 parameter. Print to that instead of to CURRENT_UIOUT.
643 * infrun.h (print_end_stepping_range_reason)
644 (print_signal_exited_reason, print_exited_reason)
645 (print_signal_received_reason print_no_history_reason): New
647 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
649 <cli_uiout>: New field.
650 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
651 uiout for CLI output. Install 'signal_received',
652 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
654 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
655 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
656 (mi_on_no_history): New functions.
657 (ui_out_free_cleanup): Delete function.
658 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
659 instead use the one already stored in the MI interpreter data.
661 * tui/tui-interp.c: Include infrun.h and observer.h.
662 (tui_interp): New global.
663 (tui_on_signal_received, tui_on_end_stepping_range)
664 (tui_on_signal_exited, tui_on_exited)
665 (tui_on_no_history): New functions.
666 (tui_init): Install them as 'end_stepping_range',
667 'signal_received' 'signal_exited', 'exited' and 'no_history'
669 (_initialize_tui_interp): Delete tui_interp local.
671 2014-05-29 Pedro Alves <palves@redhat.com>
674 * linux-nat.c (linux_nat_resume_callback): Rename the second
675 parameter to 'except'. Skip LP if it points to EXCEPT.
676 (linux_nat_resume): Don't mark the event lwp as not stopped
677 before resuming sibling lwps. Instead ask
678 linux_nat_resume_callback to skip the event lwp. Mark it as not
679 stopped after actually resuming it.
680 (linux_handle_syscall_trap): Mark the lwp as not stopped after
682 (wait_lwp): Mark the lwp as stopped here.
683 (stop_wait_callback): Mark the lwp as not stopped right after
684 resuming it. Don't mark lwps as stopped here.
685 (linux_nat_filter_event): Mark the lwp as stopped earlier.
686 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
688 2014-05-29 Pedro Alves <palves@redhat.com>
691 * infrun.c (resume): Determine how much to resume depending on
692 whether the caller wanted a step, not whether we can hardware step
693 the target. Mark all threads that we intend to run as running,
694 unless we're calling an inferior function.
695 (normal_stop): If the thread is running an infcall, don't finish
697 * target.c (target_resume): Don't mark threads as running here.
699 2014-05-28 Joel Brobecker <brobecker@adacore.com>
701 * serial.c (_initialize_serial): Remove support for
702 the "set remotebaud" and "show remotebaud" commands.
703 * NEWS: Add entry documenting the removal of that command.
705 2014-05-28 Yao Qi <yao@codesourcery.com>
707 * charset.c: Fix typo in comments.
709 2014-05-27 Gary Benson <gbenson@redhat.com>
711 * utils.c (internal_vproblem): Prompt for a bug report.
713 2014-05-26 Andy Wingo <wingo@igalia.com>
715 * guile/scm-arch.c (arscm_mark_arch_smob):
716 * guile/scm-block.c (bkscm_mark_block_smob)
717 (bkscm_mark_block_syms_progress_smob):
718 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
719 * guile/scm-exception.c (exscm_mark_exception_smob):
720 * guile/scm-frame.c (frscm_mark_frame_smob):
721 * guile/scm-iterator.c (itscm_mark_iterator_smob):
722 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
723 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
724 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
725 (ppscm_mark_pretty_printer_worker_smob):
726 * guile/scm-symbol.c (syscm_mark_symbol_smob):
727 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
728 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
729 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
731 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
734 2014-05-26 Andy Wingo <wingo@igalia.com>
735 Doug Evans <xdje42@gmail.com>
737 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
738 empty_base_class. All uses updated.
739 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
740 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
742 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
743 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
744 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
745 (gdbscm_gsmob_has_property_p, add_property_name)
746 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
747 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
748 (gdb-object-has-property?, gdb-object-properties): Remove.
749 (gdb-object-kind): Renamed from gsmob-kind.
751 2014-05-26 Andy Wingo <wingo@igalia.com>
753 * configure.ac (try_guile_versions): Allow building with guile 2.2.
754 * configure: Regenerate.
756 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
758 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
760 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
762 * record-btrace.c (record_btrace_allow_memory_access): Remove.
763 (replay_memory_access_read_only, replay_memory_access_read_write)
764 (replay_memory_access_types, replay_memory_access)
765 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
766 (cmd_set_record_btrace, cmd_show_record_btrace)
767 (cmd_show_replay_memory_access): New.
768 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
769 (record_btrace_remove_breakpoint): Replace
770 record_btrace_allow_memory_access with replay_memory_access.
771 (_initialize_record_btrace): Add commands.
774 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
776 * aarch64-linux-nat.c (asm/ptrace.h): Include.
778 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
780 * MAINTAINERS (Write After Approval): Move self back from
783 2014-05-22 Pedro Alves <palves@redhat.com>
785 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
786 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
787 (disable_randomization, enum exec_direction_kind)
788 (execution_direction, stop_registers, start_remote)
789 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
790 (wait_for_inferior, normal_stop, get_last_target_status)
791 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
792 (insert_step_resume_breakpoint_at_sal)
793 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
794 (set_step_info, print_stop_event, signal_stop_state)
795 (signal_print_state, signal_pass_state, signal_stop_update)
796 (signal_print_update, signal_pass_update)
797 (update_signals_program_target, clear_exit_convenience_vars)
798 (displaced_step_dump_bytes, update_observer_mode)
799 (signal_catch_update, gdb_signal_from_command): Move
801 * infrun.h: ... to this new file.
802 * amd64-tdep.c: Include infrun.h.
803 * annotate.c: Include infrun.h.
804 * arch-utils.c: Include infrun.h.
805 * arm-linux-tdep.c: Include infrun.h.
806 * arm-tdep.c: Include infrun.h.
807 * break-catch-sig.c: Include infrun.h.
808 * breakpoint.c: Include infrun.h.
809 * common/agent.c: Include infrun.h instead of inferior.h.
810 * corelow.c: Include infrun.h.
811 * event-top.c: Include infrun.h.
812 * go32-nat.c: Include infrun.h.
813 * i386-tdep.c: Include infrun.h.
814 * inf-loop.c: Include infrun.h.
815 * infcall.c: Include infrun.h.
816 * infcmd.c: Include infrun.h.
817 * infrun.c: Include infrun.h.
818 * linux-fork.c: Include infrun.h.
819 * linux-nat.c: Include infrun.h.
820 * linux-thread-db.c: Include infrun.h.
821 * monitor.c: Include infrun.h.
822 * nto-tdep.c: Include infrun.h.
823 * procfs.c: Include infrun.h.
824 * record-btrace.c: Include infrun.h.
825 * record-full.c: Include infrun.h.
826 * remote-m32r-sdi.c: Include infrun.h.
827 * remote-mips.c: Include infrun.h.
828 * remote-notif.c: Include infrun.h.
829 * remote-sim.c: Include infrun.h.
830 * remote.c: Include infrun.h.
831 * reverse.c: Include infrun.h.
832 * rs6000-tdep.c: Include infrun.h.
833 * s390-linux-tdep.c: Include infrun.h.
834 * solib-irix.c: Include infrun.h.
835 * solib-osf.c: Include infrun.h.
836 * solib-svr4.c: Include infrun.h.
837 * target.c: Include infrun.h.
838 * top.c: Include infrun.h.
839 * windows-nat.c: Include infrun.h.
840 * mi/mi-interp.c: Include infrun.h.
841 * mi/mi-main.c: Include infrun.h.
842 * python/py-threadevent.c: Include infrun.h.
844 2014-05-22 Pedro Alves <palves@redhat.com>
846 * infrun.c (handle_inferior_event): Store the exit code for
847 --return-child-result here, instead of ...
848 (print_exited_reason): ... here.
850 2014-05-21 Pedro Alves <palves@redhat.com>
853 * gdbthread.h (struct thread_control_state): New field
855 * infrun.c (follow_fork): Copy the new thread control field to the
857 (clear_proceed_status_thread): Clear the new thread control field.
858 (proceed): Set the new thread control field.
859 * interps.h (command_interp): Declare.
860 * interps.c (command_interpreter): New global.
861 (command_interp): New function.
862 (interp_exec): Set `command_interpreter' while here.
863 * cli-out.c (cli_uiout_dtor): New function.
864 (cli_ui_out_impl): Install it.
865 * mi/mi-interp.c: Include cli-out.h.
866 (mi_cmd_interpreter_exec): Add comment.
867 (restore_current_uiout_cleanup): New function.
868 (ui_out_free_cleanup): New function.
869 (mi_on_normal_stop): If finishing an execution command started by
870 a CLI command, or any kind of breakpoint-like event triggered,
871 print the stop event to the output (CLI) stream.
872 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
874 2014-05-21 Pedro Alves <palves@redhat.com>
876 * cli/cli-cmds.c (list_command): Handle the first "list" after the
877 current source line having changed.
878 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
879 * infrun.c (normal_stop): Adjust call to
880 set_current_sal_from_frame.
881 * source.c (clear_lines_listed_range): New function.
882 (set_current_source_symtab_and_line, identify_source_line): Clear
883 the lines listed range.
884 (line_info): Handle the first "info line" after the current source
886 * stack.c (print_stack_frame): Remove center handling.
887 (set_current_sal_from_frame): Remove 'center' parameter. Don't
890 2014-05-21 Pedro Alves <palves@redhat.com>
892 * inf-child.c (inf_child_mourn_inferior): New function.
893 * inf-child.h (inf_child_mourn_inferior): New declaration.
894 * darwin-nat.c (darwin_mourn_inferior): Use
895 inf_child_mourn_inferior.
896 * gnu-nat.c (gnu_mourn_inferior): Likewise.
897 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
898 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
899 * nto-procfs.c (procfs_mourn_inferior): Likewise.
900 * windows-nat.c (windows_mourn_inferior): Likewise.
902 2014-05-21 Doug Evans <xdje42@gmail.com>
904 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
906 2014-05-21 Doug Evans <xdje42@gmail.com>
908 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
909 (gdbscm_out_of_range_error): Ditto.
910 (gdbscm_memory_error): Ditto.
911 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
912 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
913 (gdbscm_out_of_range_error): Update.
914 (gdbscm_memory_error): Update.
915 (gdbscm_scm_to_target_string_unsafe): Delete.
917 2014-05-21 Pedro Alves <palves@redhat.com>
919 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
921 (inf_child_open_target): New function.
922 (inf_child_open): Use inf_child_open_target to push the target
923 instead of erroring out.
924 (inf_child_disconnect, inf_child_close)
925 (inf_child_maybe_unpush_target): New functions.
926 (inf_child_target): Install inf_child_disconnect and
927 inf_child_close. Store a pointer to the returned object.
928 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
930 * target.c (auto_connect_native_target): New global.
931 (show_default_run_target): New function.
932 (find_default_run_target): Return NULL if automatically connecting
933 to the native target is disabled.
934 (_initialize_target): Install set/show auto-connect-native-target.
935 * NEWS: Mention "set auto-connect-native-target", and "target
937 * linux-nat.c (super_close): New global.
938 (linux_nat_close): Call super_close.
939 (linux_nat_add_target): Store a pointer to the base class's
941 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
942 inf_child_maybe_unpush.
943 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
945 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
946 the inferior. Use inf_child_maybe_unpush_target.
947 (inf_ttrace_attach): Don't push the target if it is already
949 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
950 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
951 after mourning the inferior. Use inf_child_maybe_unpush_target.
952 (darwin_attach_pid): Don't push the target if it is already
954 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
955 mourning the inferior. Use inf_child_maybe_unpush_target.
956 (gnu_detach): Use inf_child_maybe_unpush_target.
957 * go32-nat.c (go32_create_inferior): Don't push the target if it
959 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
960 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
961 (procfs_open): Rename to ...
962 (procfs_open_1): ... this. Add target_ops parameter. Adjust
963 comments. Can target_preopen before changing node. Call
964 inf_child_open_target to push the target explicitly.
965 (procfs_attach): Don't push the target if it is already pushed.
966 (procfs_detach): Use inf_child_maybe_unpush_target.
967 (procfs_create_inferior): Don't push the target if it is already
969 (nto_native_ops): New global.
970 (procfs_open): Reimplement.
971 (procfs_native_open): New function.
972 (init_procfs_targets): Install procfs_native_open as to_open of
973 "target native". Store a pointer to the "native" target in
975 * procfs.c (procfs_attach): Don't push the target if it is already
977 (procfs_detach): Use inf_child_maybe_unpush_target.
978 (procfs_mourn_inferior): Only unpush the target after mourning the
979 inferior. Use inf_child_maybe_unpush_target.
980 (procfs_init_inferior): Don't push the target if it is already
982 * windows-nat.c (do_initial_windows_stuff): Don't push the target
983 if it is already pushed.
985 2014-05-21 Pedro Alves <palves@redhat.com>
987 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
988 and "procfs" targets are now called "native" instead.
990 2014-05-21 Pedro Alves <palves@redhat.com>
992 * go32-nat.c (go32_open): Delete.
993 (go32_target): Don't override the to_open method.
995 2014-05-21 Pedro Alves <palves@redhat.com>
997 * nto-procfs.c (procfs_can_run): New function.
998 (nto_procfs_ops): New global.
999 (init_procfs_targets): New, based on procfs_target. Install
1000 "target native" in addition to "target procfs".
1001 (_initialize_procfs): Call init_procfs_targets instead of adding
1004 2014-05-21 Pedro Alves <palves@redhat.com>
1006 * windows-nat.c (windows_target): Don't override to_shortname,
1007 to_longname or to_doc.
1009 2014-05-21 Pedro Alves <palves@redhat.com>
1011 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1014 2014-05-21 Pedro Alves <palves@redhat.com>
1016 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1017 to_shortname, to_longname or to_doc.
1019 2014-05-21 Pedro Alves <palves@redhat.com>
1021 * go32-nat.c (go32_target): Don't override to_shortname,
1022 to_longname or to_doc.
1024 2014-05-21 Pedro Alves <palves@redhat.com>
1026 * inf-child.c (inf_child_open): Remove mention of "child".
1027 (inf_child_target): Rename target to "native" instead of "child".
1029 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1031 * Makefile.in (SFILES): Delete "regset.c".
1032 (COMMON_OBS): Delete "regset.o".
1034 * regset.h (regset_alloc): Delete prototype.
1036 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1038 * sparc-linux-tdep.c (sparc32_linux_gregset)
1039 (sparc32_linux_fpregset): New static regset structures.
1040 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1041 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1043 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1044 (sparc64_linux_fpregset): New static regset structures.
1045 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1046 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1047 New static regset structures.
1048 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1049 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1050 New static regset structures.
1051 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1052 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1053 New static regset structures.
1054 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1055 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1056 New static regset structures.
1057 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1061 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1062 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1063 register maps ("regmaps") from "*regset" to "*regmap". Do this
1064 for all regmap types and variables.
1065 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1066 (sparc32_linux_supply_core_gregset)
1067 (sparc32_linux_collect_core_gregset)
1068 (sparc32_linux_supply_core_fpregset)
1069 (sparc32_linux_collect_core_fpregset): Likewise.
1070 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1071 (sparc_gregmap, sparc_fpregmap): ... these.
1072 (sparc_supply_gregset, sparc_collect_gregset)
1073 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1074 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1075 (_initialize_sparc_nat): Rename regmaps.
1076 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1077 (sparc_gregmap, sparc_fpregmap): ... these.
1078 (sparc_supply_gregset, sparc_collect_gregset)
1079 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1080 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1082 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1083 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1085 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1087 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1088 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1089 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1091 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1092 (sparc32_bsd_fpregset): Rename to...
1093 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1094 (sparc32_bsd_fpregmap): ... these.
1095 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1096 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1097 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1098 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1099 (struct sparc_gregmap, struct sparc_fpregmap)
1100 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1101 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1102 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1103 (sparc32_supply_regset, sparc32_collect_gregset)
1104 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1106 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1107 (sparc64_linux_ptrace_gregmap): ... this.
1108 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1109 (_initialize_sparc64_linux_nat): Rename regmaps.
1110 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1111 (sparc64_linux_core_gregmap): ... this.
1112 (sparc64_linux_supply_core_gregset)
1113 (sparc64_linux_collect_core_gregset)
1114 (sparc64_linux_supply_core_fpregset)
1115 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1116 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1117 (sparc64_sol2_fpregset): Rename to...
1118 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1119 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1120 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1122 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1123 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1124 (sparc64_bsd_fpregset): Rename to...
1125 (struct sparc_gregmap, sparc64_sol2_gregmap)
1126 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1127 (sparc64_bsd_fpregmap): ... these.
1128 (sparc64_supply_gregset, sparc64_collect_gregset)
1129 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1131 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1132 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1133 (sparc64fbsd_gregmap): ... this.
1134 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1135 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1137 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1138 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1139 (sparc64nbsd_collect_fpregset): Likewise.
1140 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1141 (sparc64nbsd_gregmap): ... this.
1142 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1144 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1145 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1146 (sparc64obsd_gregmap): ... this.
1147 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1149 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1150 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1151 (sparc32nbsd_gregmap): ... this.
1152 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1155 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1157 * score-tdep.c (score7_linux_gregset): New static regset
1159 (score7_linux_regset_from_core_section): Remove dynamic regset
1161 (score_gdbarch_init): Drop allocation of tdep structure.
1162 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1164 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1168 (am33_regset_from_core_section): Remove dynamic regset
1171 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1174 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1176 (mips_linux_regset_from_core_section): Remove dynamic regset
1178 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1179 'gregset64', 'fpregset', and 'fpregset64'.
1180 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1181 deleted tdep fields.
1183 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1185 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1187 (amd64_regset_from_core_section): Remove dynamic regset
1189 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1191 (amd64obsd_regset_from_core_section): Remove dynamic regset
1193 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1195 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1196 x86-common regset supply function.
1197 * i386-tdep.c (i386_collect_gregset): Make static.
1198 (i386_gregset): New global regset structure.
1199 (i386_fpregset, i386_xstateregset): New static regset structures.
1200 (i386_regset_from_core_section): Remove dynamic regset
1202 (i386_gdbarch_init): Remove initialization of tdep fields
1203 'gregset', 'fpregset', and 'xstateregset'.
1204 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1205 'fpregset', and 'xstateregset'.
1206 (i386_collect_gregset): Remove prototype.
1207 (i386_gregset): New declaration.
1208 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1210 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1213 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1216 (arm_linux_vfpregset): New static regset structures.
1217 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1219 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1220 and 'vfpregset' fields.
1222 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1224 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1225 (aarch64_linux_fpregset): New static regset structures.
1226 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1227 of regset structures.
1228 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1231 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1233 * regset.h (struct regset): Remove gdbarch field.
1234 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1235 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1236 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1238 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1239 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1240 (ppc32_linux_vsxregset): Likewise.
1241 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1242 via the regcache instead of the regset.
1243 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1244 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1245 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1246 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1249 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1251 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1252 Constify structures.
1253 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1254 (alphanbsd_aout_gregset): Likewise.
1255 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1256 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1258 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1259 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1261 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1262 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1263 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1264 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1265 * m88k-tdep.c (m88k_gregset): Likewise.
1266 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1267 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1268 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1269 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1270 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1271 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1272 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1273 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1274 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1276 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1277 * sh-tdep.h (sh_corefile_gregset): Likewise.
1278 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1279 * vax-tdep.c (vax_gregset): Likewise.
1281 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1283 Fix TLS access for -static -pthread.
1284 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1285 (try_thread_db_load_1): Initialize it.
1286 (thread_db_get_thread_local_address): Call it if LM is zero.
1287 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1288 * target.h (struct target_ops) (to_get_thread_local_address): Add
1289 load_module_addr comment.
1291 2014-05-21 Pedro Alves <palves@redhat.com>
1293 * dcache.c (dcache_read_memory_partial): If reading the cache line
1294 fails, fallback to reading just the memory the caller wanted.
1296 2014-05-20 Doug Evans <dje@google.com>
1298 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1299 instead of get_current_arch.
1301 2014-05-20 Pedro Alves <palves@redhat.com>
1303 * NEWS: Mention that compare-sections now works with all targets.
1305 * remote.c (PACKET_qCRC): New enum value.
1306 (remote_verify_memory): Don't send qCRC if the target has no
1307 execution. Use packet_support/packet_ok. If the target doesn't
1308 support the qCRC packet, fallback to a deep memory copy.
1309 (compare_sections_command): Say "target image" instead of "remote
1311 (_initialize_remote): Add PACKET_qCRC to the list of config
1312 packets that have no associated command. Extend comment.
1313 * target.c (simple_verify_memory, default_verify_memory): New
1315 * target.h (struct target_ops) <to_verify_memory>: Default to
1316 default_verify_memory.
1317 (simple_verify_memory): New declaration.
1318 * target-delegates.c: Regenerate.
1320 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1322 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1324 2014-05-20 Hui Zhu <hui@codesourcery.com>
1325 Yao Qi <yao@codesourcery.com>
1328 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1329 and change address of sp and pc.
1331 2014-05-19 Tom Tromey <tromey@redhat.com>
1333 * gdbtypes.c (rank_function): Use XNEWVEC.
1334 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1336 2014-05-19 Doug Evans <dje@google.com>
1338 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1339 build_type_unit_groups and moved closer to only caller. Remove
1340 arguments. All references updated. Remove outdated .gdb_index
1342 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1343 build_type_psymtabs_1.
1345 2014-05-19 Doug Evans <dje@google.com>
1347 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1348 n_type_unit_groups, all_type_unit_groups. All uses removed.
1349 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1350 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1351 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1352 (add_type_unit_group_to_table): Delete.
1354 2014-05-19 Doug Evans <dje@google.com>
1356 * eval.c (evaluate_subexp_standard): Add some comments.
1358 2014-05-17 Doug Evans <xdje42@gmail.com>
1360 * progspace.c (remove_program_space): Delete, unused.
1361 * progspace.h (remove_program_space): Ditto.
1363 2014-05-17 Doug Evans <xdje42@gmail.com>
1365 * inferior.c (prune_inferiors): Fix comment.
1366 (remove_inferior_command): Call prune_program_spaces.
1368 2014-05-16 Doug Evans <dje@google.com>
1370 New command line option -D.
1372 * main.c (set_gdb_data_directory): New function.
1373 (captured_main): Recognize -D. Flag error for --data-directory "".
1374 Call set_gdb_data_directory.
1375 (print_gdb_help): Print --data-directory, -D.
1376 * main.h (set_gdb_data_directory): Declare.
1377 * top.c (staged_gdb_datadir): New static global.
1378 (set_gdb_datadir): Call set_gdb_data_directory
1379 (show_gdb_datadir): New function.
1380 (init_main): Update init of data-directory parameter.
1382 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1384 Import the "dirfd" gnulib module.
1385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1386 * gnulib/aclocal.m4: Update.
1387 * gnulib/config.in: Update.
1388 * gnulib/configure: Update.
1389 * gnulib/import/Makefile.am: Update.
1390 * gnulib/import/Makefile.in: Update.
1391 * gnulib/import/dirfd.c: New.
1392 * gnulib/import/m4/dirfd.m4: New.
1393 * gnulib/import/m4/gnulib-cache.m4: Update.
1394 * gnulib/import/m4/gnulib-comp.m4: Update.
1396 2014-05-16 Pierre Muller <muller@sourceware.org>
1397 Yao Qi <yao@codesourcery.com>
1399 * valprint.c (print_wchar): Move the code on checking whether
1400 W is a printable wide char to the default branch of switch
1401 statement below. Call wchar_printable instead of gdb_iswprint.
1403 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1405 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1406 ldr.w and ldrd instructions.
1408 2014-05-15 Doug Evans <dje@google.com>
1410 * dwarf2read.c (read_structure_type): Delete outdated comments.
1412 2014-05-14 Tom Tromey <tromey@redhat.com>
1414 * macrocmd.c (print_macro_definition): Reindent.
1416 2014-05-13 Doug Evans <xdje42@gmail.com>
1418 * python/py-cmd.c (cmdpy_completer): Add comment.
1419 (completers): Make const.
1421 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1423 * infrun.c (resume): Remove should_resume (unused). Move up
1424 declaration of resume_ptid.
1426 2014-05-13 Tom Tromey <tromey@redhat.com>
1428 * language.h (unop_type_check): Remove.
1429 (binop_type_check): Don't declare.
1431 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1433 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1434 call to regcache_raw_collect.
1436 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1438 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1439 mi_console->quote as the quoting character.
1441 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1443 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1445 2014-04-29 Tom Tromey <tromey@redhat.com>
1447 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1448 "show debug varobj".
1450 2014-05-07 Kyle McMartin <kyle@redhat.com>
1452 Pushed by Joel Brobecker <brobecker@adacore.com>.
1453 * aarch64-tdep.c (aarch64_software_single_step): New function.
1454 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1455 with aarch64_software_single_step.
1457 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1461 2014-05-05 Keith Seitz <keiths@redhat.com>
1463 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1464 variable or history value is successfully parsed.
1466 2014-05-05 Yao Qi <yao@codesourcery.com>
1467 Pedro Alves <palves@redhat.com>
1469 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1470 address of blocks that intersects the requested range. Trim
1471 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1473 * ctf.c (ctf_xfer_partial): Likewise.
1475 2014-05-05 Yao Qi <yao@codesourcery.com>
1477 * printcmd.c (display_command): Remove the check to
1478 target_has_execution.
1480 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1482 * ppcobsd-nat.c: Include "obsd-nat.h".
1483 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1485 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1487 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1489 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1490 and 16-bit signed and unsigned arguments. Update comment.
1491 (stap_parse_probe_arguments): Extend code to handle such
1492 arguments. Use warning instead of complaint to notify about
1493 unrecognized bitness.
1495 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1497 PR breakpoints/16889
1498 * stap-probe.c (stap_parse_probe_arguments): Simplify
1499 check for non-prefixed probes (i.e., probes whose
1500 arguments do not start with "N@"). Always set the
1501 argument type to a sane value.
1503 2014-05-01 David Taylor <dtaylor@emc.com>
1505 * remote.c (compare_sections_command): Add -r option to compare
1506 all loadable read-only sections.
1508 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1510 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1511 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1513 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1514 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1515 Remove unused CORE_ADDR argument. Update all callers.
1517 2014-04-29 Pedro Alves <palves@redhat.com>
1519 * remote.c (struct packet_config) <detect>: Extend comment.
1520 (add_packet_config_cmd): Don't set the config's detect or support
1522 (init_all_packet_configs): Also initialize the config's 'detect'
1524 (reset_all_packet_configs_support): New function.
1525 (remote_open_1): Call reset_all_packet_configs_support instead of
1526 init_all_packet_configs.
1527 (_initialize_remote): Initialize all packet configs. Assert that
1528 all packets have an associated command, except a few known
1531 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1533 * dwarf2read.c (read_subrange_type): Handle dynamic
1534 DW_AT_lower_bound attributes.
1536 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1538 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1539 dynamic bounds before computing its upper bound.
1540 (ada_discrete_type_low_bound): Same as above with the lower bound.
1542 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1544 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1545 range types. Adjust the array handling implementation to
1546 take advantage of this change.
1547 (resolve_dynamic_range): New function, mostly extracted from
1548 resolve_dynamic_bounds.
1549 (resolve_dynamic_array): New function, mostly extracted from
1550 resolve_dynamic_bounds.
1551 (resolve_dynamic_bounds): Delete.
1552 (resolve_dynamic_type): Reimplement. Add handling of
1553 TYPE_CODE_RANGE types.
1555 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1557 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1558 handling of parallel ___XA types.
1560 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1562 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1563 unnecessary second call to static_unwrap_type.
1565 2014-04-27 Hui Zhu <hui@codesourcery.com>
1567 * stack.c (print_frame_info): Call do_gdb_disassembly with
1568 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1570 2014-04-26 Doug Evans <xdje42@gmail.com>
1572 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1574 2014-04-25 Pedro Alves <palves@redhat.com>
1577 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1578 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1579 and newline from built string.
1580 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1581 (linux_ptrace_attach_fail_reason): ... this.
1582 * linux-nat.c (linux_nat_attach): Adjust to use
1583 linux_ptrace_attach_fail_reason.
1585 2014-04-25 Pedro Alves <palves@redhat.com>
1587 * remote.c (struct remote_state): Remove multi_process_aware,
1588 non_stop_aware, cond_tracepoints, cond_breakpoints,
1589 breakpoint_commands, fast_tracepoints, static_tracepoints,
1590 install_in_trace, disconnected_tracing,
1591 enable_disable_tracepoints, string_tracing, and
1592 augmented_libraries_svr4_read fields.
1593 (remote_multi_process_p): Move further below in the file.
1594 (struct packet_config): Add comments.
1595 (update_packet_config): Delete function.
1596 (show_packet_config_cmd): Use packet_config_support.
1597 (add_packet_config_cmd): Use NULL as set callback.
1598 (packet_ok): "set remote foo-packet"-style commands no longer
1599 change config->supported -- adjust.
1600 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1601 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1602 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1603 (PACKET_QNonStop, PACKET_multiprocess_feature)
1604 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1605 (PACKET_DisconnectedTracing_feature)
1606 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1607 (set_remote_protocol_packet_cmd): Delete function.
1608 (packet_config_support, packet_support): New functions.
1609 (set_remote_protocol_Z_packet_cmd): Don't call
1610 update_packet_config.
1611 (remote_query_attached, remote_pass_signals)
1612 (remote_program_signals, remote_threads_info)
1613 (remote_threads_extra_info, remote_start_remote): Use
1615 (remote_start_remote): Use packet_config_support and
1617 (init_all_packet_configs): Set all packets to unknown support,
1618 instead of calling update_packet_config.
1619 (remote_check_symbols): Use packet_support.
1620 (remote_supported_packet): Unconditionally set the packet config's
1622 (remote_multi_process_feature, remote_non_stop_feature)
1623 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1624 (remote_breakpoint_commands_feature)
1625 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1626 (remote_install_in_trace_feature)
1627 (remote_disconnected_tracing_feature)
1628 (remote_enable_disable_tracepoint_feature)
1629 (remote_string_tracing_feature)
1630 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1631 (remote_protocol_features): Adjust to use remote_supported_packet
1632 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1633 "ConditionalTracepoints", "ConditionalBreakpoints",
1634 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1635 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1636 "EnableDisableTracepoints", and "tracenz".
1637 (remote_query_supported): Use packet_support.
1638 (remote_open_1): Adjust.
1639 (extended_remote_attach_1): Use packet_support. Switch on the
1640 result of packet_ok instead of checking whether the packet ended
1642 (remote_vcont_resume): Use packet_support.
1643 (remote_resume, remote_stop_ns, fetch_register_using_p)
1644 (remote_prepare_to_store, store_register_using_P)
1645 (check_binary_download, remote_write_bytes): Use packet_support.
1646 (remote_vkill): Use packet_support. Switch on the result of
1647 packet_ok instead of checking whether the packet ended up
1649 (extended_remote_supports_disable_randomization): Use
1651 (extended_remote_run): Switch on the result of packet_ok instead
1652 of checking whether the packet ended up disabled.
1653 (remote_insert_breakpoint, remote_remove_breakpoint)
1654 (remote_insert_watchpoint, remote_remove_watchpoint)
1655 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1657 (remote_search_memory): Use packet_config_support.
1658 (remote_get_thread_local_address, remote_get_tib_address)
1659 (remote_hostio_send_command, remote_can_execute_reverse): Use
1661 (remote_supports_cond_tracepoints)
1662 (remote_supports_cond_breakpoints)
1663 (remote_supports_fast_tracepoints)
1664 (remote_supports_static_tracepoints)
1665 (remote_supports_install_in_trace)
1666 (remote_supports_enable_disable_tracepoint)
1667 (remote_supports_string_tracing)
1668 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1669 the packet config says the feature is enabled or disabled.
1670 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1671 (remote_get_trace_status): Use packet_support.
1672 (remote_set_disconnected_tracing): Adjust to check whether the
1673 feature is enabled with packet_support.
1674 (remote_set_trace_buffer_size, remote_use_agent)
1675 (remote_can_use_agent, remote_supports_btrace): Use
1677 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1678 Use packet_config_support.
1679 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1680 the packet config says the feature is enabled or disabled.
1681 (set_range_stepping): Use packet_support.
1683 2014-04-25 Tom Tromey <tromey@redhat.com>
1685 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1688 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1690 * NEWS: Mention support for C99 variable length arrays.
1692 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1694 * ada-lang.c (standard_exc): Expand introductory comment.
1696 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1697 Walfred Tedeschi <walfred.tedeschi@intel.com>
1699 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1701 (amd64_linux_read_description): Add code to handle AVX512 xstate
1702 mask and return respective tdesc.
1703 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1704 and features/i386/x32-avx512-linux.c.
1705 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1706 (amd64_linux_core_read_description): Add code to handle AVX512
1707 xstate mask and return respective tdesc.
1708 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1709 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1711 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1712 (tdesc_amd64_avx512_linux): New prototype.
1713 (tdesc_x32_avx512_linux): Likewise.
1714 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1715 features/i386/x32-avx512.c.
1716 (amd64_ymm_avx512_names): New register names for pseudo
1718 (amd64_ymmh_avx512_names): New register names for raw registers
1720 (amd64_k_names): New register names for K registers.
1721 (amd64_zmmh_names): New register names for ZMM raw registers.
1722 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1723 (amd64_xmm_avx512_names): New register names for XMM16-31
1725 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1727 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1728 if feature is present.
1729 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1730 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1731 (AMD64_NUM_REGS): Adjust to new number of registers.
1732 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1733 registers supplied via XSTATE by AVX512 registers.
1734 (i386_linux_read_description): Add case for AVX512.
1735 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1736 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1737 (i386_linux_core_read_description): Add case for AVX512.
1738 (i386_linux_init_abi): Install supported register note section
1740 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1742 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1743 registers to be number of zmm7h + 1.
1744 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1745 * i386-tdep.c: Include features/i386/i386-avx512.c.
1746 (i386_zmm_names): Add ZMM pseudo register names array.
1747 (i386_zmmh_names): Add ZMM raw register names array.
1748 (i386_k_names): Add K raw register names array.
1749 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1750 registers. AVX512 has 16 more ZMM registers than there are YMM
1752 (i386_zmmh_regnum_p): Add function to look up register number of
1754 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1755 (i386_k_regnum_p): Likewise for K raw registers.
1756 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1757 registers added by AVX512.
1758 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1759 registers added by AVX512.
1760 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1762 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1763 (i386_pseudo_register_name): Add ZMM pseudo registers.
1764 (i386_zmm_type): Construct and return vector registers type for ZMM
1766 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1767 ZMM0-31 pseudo registers and K registers.
1768 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1769 and YMM16-31 registers from register cache.
1770 (i386_pseudo_register_write): Add code to write K, ZMM and
1772 (i386_register_reggroup_p): Add code to include/exclude AVX512
1773 registers in/from respective register groups.
1774 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1775 registers if feature is present in xcr0.
1776 (i386_gdbarch_init): Add code to initialize AVX512 feature
1777 variables in tdep structure, wire in pseudo registers and call
1778 initialize_tdesc_i386_avx512.
1779 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1781 (i386_regnum): Add AVX512 registers.
1782 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1783 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1784 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1785 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1787 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1788 (i386_ymm_avx512_regnum_p): Likewise.
1789 (i386_k_regnum_p): Likewise.
1790 (i386_zmm_regnum_p): Likewise.
1791 (i386_zmmh_regnum_p): Likewise.
1792 * i387-tdep.c : Update year in copyright notice.
1793 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1795 (XSAVE_YMM_AVX512_ADDR): New macro.
1796 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1798 (XSAVE_XMM_AVX512_ADDR): New macro.
1799 (xsave_avx512_k_offset): New table for K register offsets in
1801 (XSAVE_AVX512_K_ADDR): New macro.
1802 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1804 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1805 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1807 (i387_collect_xsave): Add code to collect AVX512 registers from
1809 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1810 of XMM16-31 registers.
1811 (I387_NUM_K_REGS): New define for number of K registers.
1812 (I387_K0_REGNUM): New define for K0 register number.
1813 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1814 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1815 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1817 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1818 (I387_XMM16_REGNUM): New define for XMM16 register number.
1819 (I387_YMM0_REGNUM): New define for YMM0 register number.
1820 (I387_KEND_REGNUM): New define for last K register number.
1821 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1822 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1824 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1826 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1828 * features/Makefile: Add AVX512 related files.
1829 * features/i386/32bit-avx512.xml: New file.
1830 * features/i386/64bit-avx512.xml: Likewise.
1831 * features/i386/amd64-avx512-linux.c: Likewise.
1832 * features/i386/amd64-avx512-linux.xml: Likewise.
1833 * features/i386/amd64-avx512.c: Likewise.
1834 * features/i386/amd64-avx512.xml: Likewise.
1835 * features/i386/i386-avx512-linux.c: Likewise.
1836 * features/i386/i386-avx512-linux.xml: Likewise.
1837 * features/i386/i386-avx512.c: Likewise.
1838 * features/i386/i386-avx512.xml: Likewise.
1839 * features/i386/x32-avx512-linux.c: Likewise.
1840 * features/i386/x32-avx512-linux.xml: Likewise.
1841 * features/i386/x32-avx512.c: Likewise.
1842 * features/i386/x32-avx512.xml: Likewise.
1843 * regformats/i386/amd64-avx512-linux.dat: New file.
1844 * regformats/i386/amd64-avx512.dat: Likewise.
1845 * regformats/i386/i386-avx512-linux.dat: Likewise.
1846 * regformats/i386/i386-avx512.dat: Likewise.
1847 * regformats/i386/x32-avx512-linux.dat: Likewise.
1848 * regformats/i386/x32-avx512.dat: Likewise.
1849 * NEWS: Add note about new support for AVX512.
1852 2014-04-23 Pedro Alves <palves@redhat.com>
1854 * breakpoint.c (insert_bp_location): Tolerate errors if the
1855 breakpoint is set in a user-loaded objfile.
1856 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1857 location is marked shlib_disabled. If the breakpoint is set in a
1858 user-loaded objfile is a GDB-side memory breakpoint, validate it
1859 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1860 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1862 * mem-break.c (memory_validate_breakpoint): New function.
1863 * objfiles.c (userloaded_objfile_contains_address_p): New
1865 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1866 * target.h (memory_validate_breakpoint): New declaration.
1868 2014-04-23 Pedro Alves <palves@redhat.com>
1870 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1871 the breakpoint is set in a shared library, only suppress
1872 errors for software breakpoints, not hardware breakpoints.
1874 2014-04-22 Pedro Alves <palves@redhat.com>
1876 * infrun.c (schedlock_applies): New function, factored out from
1877 find_thread_needs_step_over.
1878 (find_thread_needs_step_over): Use it.
1879 (switch_back_to_stepped_thread): Always clear trap_expected if the
1880 step over is finished. Return early if scheduler locking applies.
1881 Look for the stepping thread and a potential step-over thread with
1883 (currently_stepping_or_nexting_callback): Delete.
1885 2014-04-22 Nick Clifton <nickc@redhat.com>
1887 * NEWS: Mention that ARM sim now supports tracing.
1889 2014-04-22 Yao Qi <yao@codesourcery.com>
1891 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1893 * tracefile.c (tracefile_fetch_registers): ... it. New
1895 * tracefile.h (tracefile_fetch_registers): Declare.
1896 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1897 tracefile_fetch_registers.
1899 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1902 * windows-nat.c (thread_rec): Don't display a warning when
1903 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1904 fails for any reason, set th->suspended to -1, so that we don't
1905 try to resume such a thread. Also, don't return NULL in these
1906 cases, to avoid completely ruin the session due to "PC register is
1907 not available" error.
1908 (do_windows_fetch_inferior_registers): Check errors in
1909 GetThreadContext call.
1910 (windows_continue): Accept an additional argument KILLED; if not
1911 zero, ignore errors in the SetThreadContext call, since the
1912 inferior was killed and is shutting down.
1913 (windows_resume, get_windows_debug_event)
1914 (windows_create_inferior, windows_mourn_inferior)
1915 (windows_kill_inferior): All callers of windows_continue changed
1916 to adjust to its new calling sequence.
1918 2014-04-19 Yao Qi <yao@codesourcery.com>
1920 * ctf.c (ctf_open): Call post_create_inferior.
1922 2014-04-19 Yao Qi <yao@codesourcery.com>
1924 * ctf.c (handle_id): New static variable.
1925 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1926 value. Get the declaration of event "register" and get length
1927 of field "contents".
1929 2014-04-19 Yao Qi <yao@codesourcery.com>
1931 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1933 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1935 * valops.c (oload_method_static): Remove unnecessary argument
1936 METHOD. Update all callers.
1938 2014-04-18 Pedro alves <palves@redhat.com>
1939 Tom Tromey <tromey@redhat.com>
1942 * frame.c (get_prev_frame_1): Rename to ...
1943 (get_prev_frame_always): ... this, and make extern. Adjust.
1944 (skip_artificial_frames): Use get_prev_frame_always.
1945 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1946 (get_frame_unwind_stop_reason): Adjust to rename.
1947 * frame.h (get_prev_frame_always): Declare.
1948 * inline-frame.c: Include frame.h.
1949 (inline_frame_this_id): Use get_prev_frame_always.
1951 2014-04-18 Tristan Gingold <gingold@adacore.com>
1953 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1954 code by using bfd_mach_o_get_base_address.
1956 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1958 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1959 (spu_ax_pseudo_register_collect): New function.
1960 (spu_ax_pseudo_register_push_stack): Likewise.
1961 (spu_dwarf_reg_to_regnum): Likewise.
1962 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1964 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1966 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1967 Replace FRAME argument with FRAME_ID.
1968 * gdbarch.c, gdbarch.h: Regenerate.
1969 * findvar.c (default_value_from_register): Add GDBARCH argument;
1970 replace FRAME by FRAME_ID. No longer call get_frame_id.
1971 (value_from_register): Update call to gdbarch_value_from_register.
1972 * value.h (default_value_from_register): Update prototype.
1973 * s390-linux-tdep.c (s390_value_from_register): Update interface
1974 and call to default_value_from_register.
1975 * spu-tdep.c (spu_value_from_register): Likewise.
1977 * findvar.c (address_from_register): Remove TYPE argument.
1978 Do not call value_from_register; use gdbarch_value_from_register
1979 with null_frame_id instead.
1980 * value.h (address_from_register): Update prototype.
1981 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1982 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1983 address_from_register interface change.
1985 2014-04-17 Yao Qi <yao@codesourcery.com>
1987 * gdbtypes.h: Update comments to link to types and macros'
1990 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1992 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1994 2014-04-16 Keith Seitz <keiths@redhat.com>
1997 * dwarf2read.c (skip_one_die): Check that all relative-offset
1998 sibling DIEs fall within range of the current reader's buffer.
1999 (read_partial_die): Likewise.
2001 2014-04-16 Keith Seitz <keiths@redhat.com>
2004 * cp-namespace.c (lookup_symbol_file): If the type name of
2005 `this' is NULL, return immediately.
2007 2014-04-14 Keith Seitz <keiths@redhat.com>
2010 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2011 from symbol_matches_domain in symtab.c. All local callers
2012 of symbol_matches_domain updated.
2013 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2014 search STRUCT_DOMAIN.
2015 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2016 independently. standard_lookup will do that automatically.
2017 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2018 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2019 (cp_lookup_symbol_in_namespace): Likewise.
2020 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2021 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2022 may return a STRUCT_DOMAIN match.
2023 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2024 * cp-support.c: Include language.h.
2025 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2027 * psymtab.c (match_partial_symbol): Compare the requested
2028 domain with the symbol's domain directly.
2029 (lookup_partial_symbol): Likewise.
2030 * symtab.c (lookup_symbol_in_language): Explain when/why
2031 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2032 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2033 appropriate languages.
2034 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2035 and moved to ada-lang.c
2036 (lookup_block_symbol): Explain that this function only returns
2037 symbol matching the requested DOMAIN.
2038 Compare the requested domain with the symbol's domain directly.
2039 (iterate_over_symbols): Compare the requested domain with the
2040 symbol's domain directly.
2041 * symtab.h (symbol_matches_domain): Remove.
2043 2014-04-14 Tom Tromey <tromey@redhat.com>
2046 * c-exp.y (type_aggregate_p): New function.
2047 (qualified_name, classify_inner_name): Use it.
2048 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2049 and TYPE_TARGET_TYPE of an enum type.
2050 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2052 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2053 handle TYPE_DECLARED_CLASS.
2054 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2056 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2057 * valops.c (enum_constant_from_type): New function.
2058 (value_aggregate_elt): Use it.
2059 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2062 2014-04-14 Tom Tromey <tromey@redhat.com>
2064 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2065 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2067 * value.h (value_aggregate_elt): Update.
2069 2014-04-14 Tom Tromey <tromey@redhat.com>
2071 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2073 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2075 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2076 (evaluate_subexp_standard): Pass noside argument.
2077 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2078 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2079 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2080 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2081 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2083 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2086 points to a constant blob.
2088 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2090 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2091 property and store it as the high bound and flag the range accordingly.
2092 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2093 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2094 * gdbtypes.h (enum range_flags): New enum.
2095 (struct range_bounds): Add flags member.
2097 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2099 * c-typeprint.c (c_type_print_varspec_suffix): Added
2100 check for not yet resolved high bound. If unresolved, print
2101 "variable length" string to the console instead of random
2104 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2106 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2108 (ada_template_to_fixed_record_type_1): Likewise.
2109 (ada_to_fixed_type_1): Likewise.
2110 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2111 (cp_print_value): Likewise.
2112 * d-valprint.c (dynamic_array_type): Likewise.
2113 * findvar.c (address_of_variable): Likewise.
2114 * jv-valprint.c (java_value_print): Likewise.
2115 * valops.c (value_ind): Likewise.
2116 * value.c (coerce_ref): Likewise.
2118 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2120 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2121 value and retrieve the dynamic type size.
2123 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2125 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2126 passed to sizeof is dynamic evaluate the argument to compute the length.
2128 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2129 Joel Brobecker <brobecker@adacore.com>
2131 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2132 (dwarf2_evaluate_property): New function.
2133 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2134 * dwarf2read.c (attr_to_dynamic_prop): New function.
2135 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2137 * gdbtypes.c: Include dwarf2loc.h.
2138 (is_dynamic_type): New function.
2139 (resolve_dynamic_type): New function.
2140 (resolve_dynamic_bounds): New function.
2141 (get_type_length): New function.
2142 (check_typedef): Use get_type_length to compute type length.
2143 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2144 (TYPE_LOW_BOUND_KIND): New macro.
2145 (is_dynamic_type): New function prototype.
2146 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2147 to resolve dynamic properties of the type. Update comment.
2148 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2150 2014-04-14 Richard Henderson <rth@redhat.com>
2152 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2154 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2155 Doug Evans <xdje42@gmail.com>
2157 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2158 dereference TYPE_CODE_REF values.
2160 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2162 Revert the following changes due to regressions:
2164 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2165 (dwarf2_evaluate_property): New function.
2166 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2167 * dwarf2read.c (attr_to_dynamic_prop): New function.
2168 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2170 * gdbtypes.c: Include dwarf2loc.h.
2171 (is_dynamic_type): New function.
2172 (resolve_dynamic_type): New function.
2173 (resolve_dynamic_bounds): New function.
2174 (get_type_length): New function.
2175 (check_typedef): Use get_type_length to compute type length.
2176 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2177 (TYPE_LOW_BOUND_KIND): New macro.
2178 (is_dynamic_type): New function prototype.
2179 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2180 to resolve dynamic properties of the type. Update comment.
2181 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2183 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2184 passed to sizeof is dynamic evaluate the argument to compute the length.
2186 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2187 value and retrieve the dynamic type size.
2189 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2190 (ada_template_to_fixed_record_type_1): Likewise.
2191 (ada_to_fixed_type_1): Likewise.
2192 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2193 (cp_print_value): Likewise.
2194 * d-valprint.c (dynamic_array_type): Likewise.
2195 * eval.c (evaluate_subexp_with_coercion): Likewise.
2196 * findvar.c (address_of_variable): Likewise.
2197 * jv-valprint.c (java_value_print): Likewise.
2198 * valops.c (value_ind): Likewise.
2199 * value.c (coerce_ref): Likewise.
2201 * c-typeprint.c (c_type_print_varspec_suffix): Added
2202 check for not yet resolved high bound. If unresolved, print
2203 "variable length" string to the console instead of random
2206 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2207 property and store it as the high bound and flag the range accordingly.
2208 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2209 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2210 * gdbtypes.h (enum range_flags): New enum.
2211 (struct range_bounds): Add flags member.
2213 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2214 points to a constant blob.
2216 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2217 (evaluate_subexp_standard): Pass noside argument.
2218 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2219 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2220 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2221 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2222 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2224 2014-04-11 Keith Seitz <keiths@redhat.com>
2227 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2228 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2231 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2233 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2234 (evaluate_subexp_standard): Pass noside argument.
2235 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2236 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2237 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2238 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2239 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2243 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2244 points to a constant blob.
2246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2248 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2249 property and store it as the high bound and flag the range accordingly.
2250 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2251 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2252 * gdbtypes.h (enum range_flags): New enum.
2253 (struct range_bounds): Add flags member.
2255 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2257 * c-typeprint.c (c_type_print_varspec_suffix): Added
2258 check for not yet resolved high bound. If unresolved, print
2259 "variable length" string to the console instead of random
2262 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2264 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2265 (ada_template_to_fixed_record_type_1): Likewise.
2266 (ada_to_fixed_type_1): Likewise.
2267 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2268 (cp_print_value): Likewise.
2269 * d-valprint.c (dynamic_array_type): Likewise.
2270 * eval.c (evaluate_subexp_with_coercion): Likewise.
2271 * findvar.c (address_of_variable): Likewise.
2272 * jv-valprint.c (java_value_print): Likewise.
2273 * valops.c (value_ind): Likewise.
2274 * value.c (coerce_ref): Likewise.
2276 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2278 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2279 value and retrieve the dynamic type size.
2281 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2283 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2284 passed to sizeof is dynamic evaluate the argument to compute the length.
2286 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2288 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2289 (dwarf2_evaluate_property): New function.
2290 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2291 * dwarf2read.c (attr_to_dynamic_prop): New function.
2292 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2294 * gdbtypes.c: Include dwarf2loc.h.
2295 (is_dynamic_type): New function.
2296 (resolve_dynamic_type): New function.
2297 (resolve_dynamic_bounds): New function.
2298 (get_type_length): New function.
2299 (check_typedef): Use get_type_length to compute type length.
2300 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2301 (TYPE_LOW_BOUND_KIND): New macro.
2302 (is_dynamic_type): New function prototype.
2303 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2304 to resolve dynamic properties of the type. Update comment.
2305 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2307 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2309 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2310 declaring high/low bounds and change uses accordingly. Call
2311 create_range_type instead of create_static_range_type.
2312 * gdbtypes.c (create_range_type): New function.
2313 (create_range_type): Convert bounds into struct bound_prop and pass
2314 them to create_range_type.
2315 * gdbtypes.h (struct bound_prop): New struct.
2316 (create_range_type): New function prototype.
2317 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2318 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2319 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2321 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2325 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2326 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2327 * ada-lang.c: All uses of create_range_type updated.
2328 * coffread.c: All uses of create_range_type updated.
2329 * dwarf2read.c: All uses of create_range_type updated.
2330 * f-exp.y: All uses of create_range_type updated.
2331 * m2-valprint.c: All uses of create_range_type updated.
2332 * mdebugread.c: All uses of create_range_type updated.
2333 * stabsread.c: All uses of create_range_type updated.
2334 * valops.c: All uses of create_range_type updated.
2335 * valprint.c: All uses of create_range_type updated.
2337 2014-04-10 Pedro Alves <palves@redhat.com>
2339 * breakpoint.c (single_step_breakpoints)
2340 (single_step_gdbarch): Move up in the file.
2341 (one_breakpoint_xfer_memory): New function, factored out from ...
2342 (breakpoint_xfer_memory): ... here. Also process single-step
2345 2014-04-09 Tristan Gingold <gingold@adacore.com>
2347 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2349 (darwin_decode_exception_message): Free port only after use.
2351 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2353 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2354 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2355 when setting the size of call_length.
2357 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2359 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2360 dereference TYPE_CODE_REF values.
2362 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2364 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2365 end of warning message.
2367 2014-04-03 Doug Evans <dje@google.com>
2369 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2370 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2372 2014-04-02 Alan Modra <amodra@gmail.com>
2374 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2375 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2376 (struct symbol_file_add_from_memory_args): Add size field.
2377 (find_vdso_size): New function.
2378 (add_vsyscall_page): Attempt to find vdso size.
2380 2014-04-01 Doug Evans <dje@google.com>
2382 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2384 2014-04-01 Tristan Gingold <gingold@adacore.com>
2386 * darwin-nat.c (darwin_encode_reply): Add prototype.
2387 (darwin_decode_exception_message): Reply to unknown inferiors.
2388 (darwin_decode_message): Handle message by id. Ignore message
2389 to unknown inferior.
2390 (darwin_wait): Discard unknown messages, add debug trace.
2392 2014-03-31 Doug Evans <dje@google.com>
2394 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2397 2014-03-31 Doug Evans <dje@google.com>
2399 New option "set print symbol-loading".
2401 * solib.c (solib_read_symbols): Only print symbol loading messages
2403 (solib_add): If symbol loading is in "brief" mode, notify user
2404 symbols are being loaded.
2405 (reload_shared_libraries_1): Ditto.
2406 * symfile.c (print_symbol_loading_off): New static global.
2407 (print_symbol_loading_brief): New static global.
2408 (print_symbol_loading_full): New static global.
2409 (print_symbol_loading_enums): New static global.
2410 (print_symbol_loading): New static global.
2411 (print_symbol_loading_p): New function.
2412 (symbol_file_add_with_addrs): Only print symbol loading messages
2414 (_initialize_symfile): Register "print symbol-loading" set/show
2416 * symfile.h (print_symbol_loading_p): Declare.
2418 2014-03-30 Doug Evans <xdje42@gmail.com>
2420 * infrun.c (set_last_target_status): New function.
2421 (handle_inferior_event): Call it.
2423 2014-03-30 Doug Evans <xdje42@gmail.com>
2425 * inferior.h (enum stop_kind): Improve comment.
2427 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2429 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2430 a reference, strip the reference layer before calling
2431 the lang_ops value_has_mutated callback.
2433 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2435 Remove some globals from our parser.
2436 * language.c (unk_lang_parser): Add "struct parser_state"
2438 * language.h (struct language_defn) <la_parser>: Likewise.
2439 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2440 (initialize_expout): Add "struct parser_state" argument.
2441 Rewrite function to use the parser state.
2442 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2443 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2444 write_exp_elt_longcst, write_exp_elt_dblcst,
2445 write_exp_elt_decfloatcst, write_exp_elt_type,
2446 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2447 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2448 write_dollar_variable): Likewise.
2449 (parse_exp_in_context_1): Use parser state.
2450 (insert_type_address_space): Add "struct parser_state" argument.
2452 (increase_expout_size): New function.
2453 * parser-defs.h: Forward declare "struct language_defn" and
2454 "struct parser_state".
2455 (expout, expout_size, expout_ptr): Remove extern declarations.
2456 (parse_gdbarch, parse_language): Rewrite macro declarations to
2457 accept the parser state.
2458 (struct parser_state): New struct.
2459 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2460 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2461 write_exp_elt_decfloatcst, write_exp_elt_type,
2462 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2463 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2464 write_exp_msymbol, write_dollar_variable,
2465 mark_struct_expression, insert_type_address_space): Add "struct
2466 parser_state" argument.
2467 (increase_expout_size): New function.
2468 * utils.c (do_clear_parser_state): New function.
2469 (make_cleanup_clear_parser_state): Likewise.
2470 * utils.h (make_cleanup_clear_parser_state): New function
2472 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2473 Update calls to write_exp* in order to pass the parser state.
2474 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2475 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2476 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2477 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2478 * stap-probe.c (stap_parse_register_operand): Likewise.
2479 (stap_parse_single_operand): Likewise.
2480 (stap_parse_argument_1): Likewise.
2481 (stap_parse_argument): Use parser state.
2482 * stap-probe.h: Include "parser-defs.h".
2483 (struct stap_parse_info) <pstate>: New field.
2484 * c-exp.y (parse_type): Rewrite to use parser state.
2485 (yyparse): Redefine to c_parse_internal.
2486 (pstate): New global variable.
2487 (parse_number): Add "struct parser_state" argument.
2488 (write_destructor_name): Likewise.
2489 (type_exp): Update calls to write_exp* and similars in order to
2491 (exp1, exp, variable, qualified_name, space_identifier,
2492 typename, typebase): Likewise.
2493 (write_destructor_name, parse_number, lex_one_token,
2494 classify_name, classify_inner_name, c_parse): Add "struct
2495 parser_state" argument. Update function to use parser state.
2496 * c-lang.h: Forward declare "struct parser_state".
2497 (c_parse): Add "struct parser_state" argument.
2498 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2499 (yyparse): Redefine macro to ada_parse_internal.
2500 (pstate): New variable.
2501 (write_int, write_object_renaming, write_var_or_type,
2502 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2503 type_int, type_long, type_long_long, type_float, type_double,
2504 type_long_double, type_char, type_boolean, type_system_address):
2505 Add "struct parser_state" argument.
2506 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2507 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2508 var_or_type, aggregate, aggregate_component_list,
2509 positional_list, others, component_group,
2510 component_associations): Update calls to write_exp* and similar
2511 functions in order to use parser state.
2512 (ada_parse, write_var_from_sym, write_int,
2513 write_exp_op_with_string, write_object_renaming,
2514 find_primitive_type, write_selectors, write_ambiguous_var,
2515 write_var_or_type, write_name_assoc, type_int, type_long,
2516 type_long_long, type_float, type_double, type_long_double,
2517 type_char, type_boolean, type_system_address): Add "struct
2518 parser_state" argument. Adjust function to use parser state.
2519 * ada-lang.c (parse): Likewise.
2520 * ada-lang.h: Forward declare "struct parser_state".
2521 (ada_parse): Add "struct parser_state" argument.
2522 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2523 calls to both functions.
2524 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2526 (yyparse): Redefine macro to f_parse_internal.
2527 (pstate): New variable.
2528 (parse_number): Add "struct parser_state" argument.
2529 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2530 and similars in order to use parser state.
2531 (parse_number): Adjust code to use parser state.
2533 (f_parse): New function.
2534 * f-lang.h: Forward declare "struct parser_state".
2535 (f_parse): Add "struct parser_state" argument.
2536 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2538 (yyparse): Redefine macro for java_parse_internal.
2539 (pstate): New variable.
2540 (push_expression_name, push_expression_name, insert_exp): Add
2541 "struct parser_state" argument.
2542 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2543 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2544 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2545 PostIncrementExpression, PostDecrementExpression,
2546 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2547 UnaryExpressionNotPlusMinus, CastExpression,
2548 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2549 RelationalExpression, EqualityExpression, AndExpression,
2550 ExclusiveOrExpression, InclusiveOrExpression,
2551 ConditionalAndExpression, ConditionalOrExpression,
2552 ConditionalExpression, Assignment, LeftHandSide): Update
2553 calls to write_exp* and similars in order to use parser state.
2554 (parse_number): Ajust code to use parser state.
2556 (java_parse): New function.
2557 (push_variable): Add "struct parser_state" argument. Adjust
2558 code to user parser state.
2559 (push_fieldnames, push_qualified_expression_name,
2560 push_expression_name, insert_exp): Likewise.
2561 * jv-lang.h: Forward declare "struct parser_state".
2562 (java_parse): Add "struct parser_state" argument.
2563 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2565 (yyparse): Redefine macro to m2_parse_internal.
2566 (pstate): New variable.
2567 (type_exp, exp, fblock, variable, type): Update calls to
2568 write_exp* and similars to use parser state.
2570 (m2_parse): New function.
2571 * m2-lang.h: Forward declare "struct parser_state".
2572 (m2_parse): Add "struct parser_state" argument.
2573 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2574 * objc-lang.h: Forward declare "struct parser_state".
2575 (end_msglist): Add "struct parser_state" argument.
2576 * p-exp.y (parse_type): Rewrite macro to use parser state.
2577 (yyparse): Redefine macro to pascal_parse_internal.
2578 (pstate): New variable.
2579 (parse_number): Add "struct parser_state" argument.
2580 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2581 write_exp* and similars in order to use parser state.
2582 (parse_number, yylex): Adjust code to use parser state.
2583 (pascal_parse): New function.
2584 * p-lang.h: Forward declare "struct parser_state".
2585 (pascal_parse): Add "struct parser_state" argument.
2586 * go-exp.y (parse_type): Rewrite macro to use parser state.
2587 (yyparse): Redefine macro to go_parse_internal.
2588 (pstate): New variable.
2589 (parse_number): Add "struct parser_state" argument.
2590 (type_exp, exp1, exp, variable, type): Update calls to
2591 write_exp* and similars in order to use parser state.
2592 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2593 to use parser state.
2594 (go_parse): Likewise.
2595 * go-lang.h: Forward declare "struct parser_state".
2596 (go_parse): Add "struct parser_state" argument.
2598 2014-03-27 Doug Evans <dje@google.com>
2600 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2602 2014-03-27 Doug Evans <dje@google.com>
2604 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2605 Remove argument abbrev_section. All callers updated.
2607 2014-03-27 Doug Evans <dje@google.com>
2609 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2610 addr_base, ranges_base.
2612 2014-03-26 Keith Seitz <keiths@redhat.com>
2614 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2615 types, not VAR_DOMAIN.
2617 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2619 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2621 * features/nios2-linux.c: Regenerated.
2622 * features/nios2.c: Regenerated.
2624 2014-03-25 Pedro Alves <palves@redhat.com>
2626 * cli/cli-script.c (script_from_file): Force the interpreter to
2629 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2631 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2632 small stack allocation.
2634 2014-03-24 Tristan Gingold <gingold@adacore.com>
2636 * darwin-nat.c (exc_server): Remove unused prototype.
2637 (darwin_dump_message): Correctly display data on x86_64.
2638 (darwin_encode_reply): Fix style.
2639 Add comments and fix indentation.
2641 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2643 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2645 2014-03-22 Doug Evans <xdje42@gmail.com>
2647 * infcmd.c: Whitespace fixes.
2648 (interrupt_command): Merge two function comments into one.
2650 2014-03-22 Doug Evans <xdje42@gmail.com>
2652 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2655 2014-03-22 Yao Qi <yao@codesourcery.com>
2657 * remote.c (target_read_live_memory): Remove.
2658 (memory_xfer_live_readonly_partial): Rename it to
2659 remote_xfer_live_readonly_partial. Remove argument 'object'.
2660 All callers updated. Call remote_read_bytes_1
2661 instead of target_read_live_memory.
2662 * tracepoint.c (set_traceframe_number): Remove.
2663 (make_cleanup_restore_traceframe_number): Likewise .
2664 * tracepoint.h (set_traceframe_number): Remove declaration.
2665 (make_cleanup_restore_traceframe_number): Likewise.
2667 2014-03-22 Yao Qi <yao@codesourcery.com>
2669 * remote.c (remote_read_bytes): Move code on reading from the
2671 (remote_read_bytes_1): ... here. New function.
2673 2014-03-22 Yao Qi <yao@codesourcery.com>
2675 * ctf.c (ctf_xfer_partial): Check the return value of
2676 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2677 return TARGET_XFER_UNAVAILABLE.
2678 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2679 * target.c (target_read_live_memory): Move it to remote.c.
2680 (memory_xfer_live_readonly_partial): Likewise.
2681 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2682 * remote.c (target_read_live_memory): Moved from target.c.
2683 (memory_xfer_live_readonly_partial): Likewise.
2684 (remote_read_bytes): Factored out from
2685 memory_xfer_partial_1.
2687 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2689 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2692 2014-03-21 Pedro Alves <palves@redhat.com>
2694 * infrun.c (normal_stop): Extend comment.
2696 2014-03-21 Hui Zhu <hui@codesourcery.com>
2697 Pedro Alves <palves@redhat.com>
2699 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2701 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2702 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2703 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2705 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2707 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2708 `z' formatted output modifier.
2710 2014-03-20 Tom Tromey <tromey@redhat.com>
2711 Sergio Durigan Junior <sergiodj@redhat.com>
2713 * probe.c (parse_probes): Turn assert into an ordinary error.
2714 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2715 exceptions when parsing probes. Rearrange the code for clarity.
2717 2014-03-20 Tom Tromey <tromey@redhat.com>
2720 * top.c (execute_command): Only dispatch events if the command
2723 2014-03-20 Tom Tromey <tromey@redhat.com>
2726 * infcall.c: Include event-top.h.
2727 (run_inferior_call): Call async_disable_stdin if needed.
2729 2014-03-20 Pedro Alves <palves@redhat.com>
2731 * infrun.c (prepare_to_proceed): Delete.
2732 (thread_still_needs_step_over): New function.
2733 (find_thread_needs_step_over): New function.
2734 (proceed): If the current thread needs a step-over, set its
2735 steping_over_breakpoint flag. Adjust to use
2736 find_thread_needs_step_over instead of prepare_to_proceed.
2737 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2738 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2740 (switch_back_to_stepped_thread): Step over breakpoints of all
2741 threads not the stepping thread, before switching back to the
2744 2014-03-20 Pedro Alves <palves@redhat.com>
2746 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2748 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2749 * infrun.c (saved_singlestep_ptid)
2750 (stepping_past_singlestep_breakpoint): Delete.
2751 (resume): Remove stepping_past_singlestep_breakpoint handling.
2752 (proceed): Store the prev_pc of the stepping thread too.
2753 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2755 (enum infwait_states): Delete infwait_thread_hop_state.
2756 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2758 (handle_inferior_event): Adjust.
2759 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2760 handling and the thread-hop code. Before removing single-step
2761 breakpoints, check whether the thread hit a single-step breakpoint
2762 of another thread. If it did, the trap is not a random signal.
2763 (switch_back_to_stepped_thread): If the event thread hit a
2764 single-step breakpoint, unblock it before switching to the
2765 stepping thread. Handle the case of the stepped thread having
2767 (keep_going): Handle the case of the current thread moving past a
2768 single-step breakpoint.
2770 2014-03-20 Pedro Alves <palves@redhat.com>
2773 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2774 are being stepped over.
2775 (breakpoint_address_match): Make extern.
2776 * breakpoint.h (breakpoint_address_match): New declaration.
2777 * inferior.h (stepping_past_instruction_at): New declaration.
2778 * infrun.c (struct step_over_info): New type.
2779 (step_over_info): New global.
2780 (set_step_over_info, clear_step_over_info)
2781 (stepping_past_instruction_at): New functions.
2782 (handle_inferior_event): Clear the step-over info when
2783 trap_expected is cleared.
2784 (resume): Remove now stale comment.
2785 (clear_proceed_status): Clear step-over info.
2786 (proceed): Adjust step-over handling to set or clear the step-over
2787 info instead of removing all breakpoints.
2788 (handle_signal_stop): When setting up a thread-hop, don't remove
2790 (stop_stepping): Clear step-over info.
2791 (keep_going): Adjust step-over handling to set or clear step-over
2792 info and then always inserting breakpoints, instead of removing
2793 all breakpoints when stepping over one.
2795 2014-03-20 Pedro Alves <palves@redhat.com>
2797 * infrun.c (previous_inferior_ptid): Adjust comment.
2798 (deferred_step_ptid): Delete.
2799 (infrun_thread_ptid_changed, prepare_to_proceed)
2800 (init_wait_for_inferior): Adjust.
2801 (handle_signal_stop): Delete deferred_step_ptid handling.
2803 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2806 * defs.h (sync_quit_force_run): New declaration.
2807 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2808 * event-top.c (async_sigterm_handler): New declaration.
2809 (async_sigterm_token): New variable.
2810 (async_init_signals): Create also async_sigterm_token.
2811 (async_sigterm_handler): New function.
2812 (sync_quit_force_run): New variable.
2813 (handle_sigterm): Replace quit_force call by other calls.
2814 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2816 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2818 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2819 offset into SPE pseudo registers.
2821 2014-03-18 Pedro Alves <palves@redhat.com>
2824 * inferior.h (print_stop_event): Declare.
2825 * infrun.c (print_stop_event): New, factored out from ...
2826 (normal_stop): ... this.
2827 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2828 of bpstat_print/print_stack_frame.
2830 2014-03-17 Tom Tromey <tromey@redhat.com>
2832 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2834 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2836 * ada-lang.c (decode_constrained_packed_array): Perform a
2837 minimal coercion for reference with coerce_ref instead of
2840 2014-03-17 Tristan Gingold <gingold@adacore.com>
2842 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2843 (darwin_solib_create_inferior_hook): Emit a warning if version
2846 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2848 * python/py-value.c (get_field_flag): Cast flag_name argument to
2849 PyObject_GetAttrString to support Python 2.4.
2851 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2854 (Global Maintainers): Remove Jan Kratochvil.
2856 2014-03-14 Pedro Alves <palves@redhat.com>
2858 * inferior.h (terminal_ours_for_output): Rename to ...
2859 (child_terminal_ours_for_output): ... this.
2860 (terminal_save_ours): Rename to ...
2861 (child_terminal_save_ours): ... this.
2862 (terminal_ours): Rename to ...
2863 (child_terminal_ours): ... this.
2864 (terminal_inferior): Rename to ...
2865 (child_terminal_inferior): ... this.
2866 (terminal_init_inferior): Rename to ...
2867 (child_terminal_init_inferior): ... this.
2868 (terminal_init_inferior_with_pgrp): Rename to ...
2869 (child_terminal_init_inferior_with_pgrp): ... this.
2870 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2871 (child_terminal_init_with_pgrp): ... this.
2872 (terminal_save_ours): Rename to ...
2873 (child_terminal_save_ours): ... this.
2874 (terminal_init_inferior): Rename to ...
2875 (child_terminal_init): ... this. Adjust.
2876 (terminal_inferior): Rename to ...
2877 (child_terminal_inferior): ... this.
2878 (terminal_ours_for_output): Rename to ...
2879 (child_terminal_ours_for_output): ... this. Adjust.
2880 (terminal_ours): Rename to ...
2881 (child_terminal_ours): ... this.
2882 (terminal_ours_1): Rename to ...
2883 (child_terminal_ours_1): ... this. Adjust.
2884 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2885 * windows-nat.c (do_initial_windows_stuff): Adjust.
2886 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2887 (gnu_terminal_init): ... this. Adjust.
2888 (gnu_target): Adjust.
2889 * inf-child.c (inf_child_target): Adjust.
2891 2014-03-13 Doug Evans <xdje42@gmail.com>
2894 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2897 2014-03-13 Doug Evans <xdje42@gmail.com>
2899 * value.c (record_latest_value): Call release_value_or_incref
2900 instead of release_value.
2902 2014-03-13 Pedro Alves <palves@redhat.com>
2904 * procfs.c (procfs_target): Don't override to_shortname,
2905 to_longname or to_doc.
2907 2014-03-13 Pedro Alves <palves@redhat.com>
2909 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2910 Unix in user visible strings.
2912 2014-03-12 Stan Shebs <stan@codesourcery.com>
2914 * gdbtypes.h: Annotate comments for Doxygen, add a page
2915 block comment with some general info.
2917 2014-03-12 Pedro Alves <palves@redhat.com>
2919 * infcmd.c (prepare_execution_command): New function, factored out
2920 from several execution commands.
2921 (run_command_1, continue_command, step_1, jump_command)
2922 (signal_command, until_command, advance_command, finish_command)
2923 (attach_command): Use prepare_execution_command.
2925 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2927 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2930 (struct arm_linux_thread_points): Removed.
2931 (struct arm_linux_process_info): New.
2932 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2933 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2934 (arm_linux_find_breakpoints_by_tid): Removed.
2935 (struct arch_lwp_info): New.
2936 (arm_linux_find_process_pid): New functions.
2937 (arm_linux_add_process): New functions.
2938 (arm_linux_process_info_get): New functions.
2939 (arm_linux_forget_process): New function.
2940 (arm_linux_get_debug_reg_state): New function.
2941 (struct update_registers_data): New.
2942 (update_registers_callback): New function.
2943 (arm_linux_insert_hw_breakpoint1): Updated.
2944 (arm_linux_remove_hw_breakpoint1): Updated.
2945 (arm_linux_insert_hw_breakpoint): Updated.
2946 (arm_linux_remove_hw_breakpoint): Updated.
2947 (arm_linux_insert_watchpoint): Updated.
2948 (arm_linux_remove_watchpoint): Updated.
2949 (arm_linux_new_thread): Updated.
2950 (arm_linux_prepare_to_resume): New function.
2951 (arm_linux_new_fork): New function.
2952 (_initialize_arm_linux_nat): Updated.
2954 2014-03-12 Pedro Alves <palves@redhat.com>
2956 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2958 2014-03-12 Tom Tromey <tromey@redhat.com>
2960 * inf-child.c (return_zero): New function.
2961 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2962 * aix-thread.c (aix_thread_inferior_created): New function.
2963 (aix_thread_attach): Remove.
2964 (init_aix_thread_ops): Don't set to_attach.
2965 (_initialize_aix_thread): Register inferior_created observer.
2966 * corelow.c (init_core_ops): Don't set to_attach or
2968 * exec.c (init_exec_ops): Don't set to_attach or
2970 * infcmd.c (run_command_1): Use find_run_target. Make direct
2972 (attach_command): Use find_attach_target. Make direct target
2974 * record-btrace.c (init_record_btrace_ops): Don't set
2976 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2978 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2979 set to_create_inferior.
2980 * target.c (complete_target_initialization): Add assertion.
2981 (target_create_inferior): Remove.
2982 (find_default_attach, find_default_create_inferior): Remove.
2983 (find_attach_target, find_run_target): New functions.
2984 (find_default_is_async_p, find_default_can_async_p)
2985 (target_supports_non_stop, target_attach): Remove.
2986 (init_dummy_target): Don't set to_create_inferior or
2987 to_supports_non_stop.
2988 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2989 TARGET_DEFAULT_FUNC.
2990 <to_create_inferior>: Add comment.
2991 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2992 TARGET_DEFAULT_RETURN.
2993 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2994 (find_attach_target, find_run_target): Declare.
2995 (target_create_inferior): Remove.
2996 (target_has_execution_1): Update comment.
2997 (target_supports_non_stop): Remove.
2998 * target-delegates.c: Rebuild.
3000 2014-03-12 Pedro Alves <palves@redhat.com>
3002 * inf-child.h: Update comment to not mention Unix.
3004 2014-03-12 Pedro Alves <palves@redhat.com>
3006 * inf-child.c: Update top comment to not mention Unix. Add
3007 generic comment describing how this target is meant to be used.
3008 (inf_child_post_attach, inf_child_post_startup_inferior)
3009 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3012 2014-03-12 Pedro Alves <palves@redhat.com>
3014 * nto-procfs.c: Include inf-child.h.
3015 (procfs_ops): Delete global.
3016 (procfs_can_run): Delete method.
3017 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3018 target pointer instead of referencing procfs_ops.
3019 (procfs_prepare_to_store): Delete.
3020 (init_procfs_ops): Delete function.
3021 (procfs_target): New function, based on init_procfs_ops, but
3022 inherit inf_child_target.
3023 (_initialize_procfs): Use procfs_target.
3025 2014-03-12 Pedro Alves <palves@redhat.com>
3027 * windows-nat.c: Include inf-child.h.
3028 (windows_ops): Delete global.
3029 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3031 (init_windows_ops): Delete function.
3032 (windows_target): New function, based on init_windows_ops, but
3033 inherit inf_child_target.
3034 (_initialize_windows_nat): Use windows_target. Install x86
3035 specific target methods here.
3037 2014-03-10 Doug Evans <xdje42@gmail.com>
3039 * guile/guile.c (call_initialize_gdb_module): New function.
3040 (initialize_guile): Replace call to scm_init_guile with call to
3043 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3045 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3046 in call to TYPE_CODE macro.
3048 2014-03-10 Jerome Guitton <guitton@adacore.com>
3050 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3051 Resolve tagged types to full view.
3053 2014-03-10 Hui Zhu <hui@codesourcery.com>
3055 * target.h (target_insert_breakpoint): Remove "hardware" from its
3058 2014-03-07 Doug Evans <dje@google.com>
3060 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3062 2014-03-07 Doug Evans <dje@google.com>
3064 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3065 Remove unused local comp_dir_attr. Assert exactly one of
3066 stub_comp_unit_die, stub_comp_dir is non-NULL.
3068 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3070 * target.h (complete_target_initialization, add_target):
3073 2014-03-07 Pedro Alves <palves@redhat.com>
3075 * go32-nat.c: Include inf-child.h.
3076 (go32_ops): Delete global.
3077 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3079 (go32_create_inferior): Push the passed in target pointer instead
3080 of referencing go32_ops.
3081 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3082 (go32_target): New function, based on init_go32_ops, but inherit
3084 (_initialize_go32_nat): Use go32_target. Move parts of
3087 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3089 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3090 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3091 SYMBOL_VALUE_ADDRESS.
3092 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3094 2014-03-06 Yao Qi <yao@codesourcery.com>
3096 * breakpoint.c (get_tracepoint_by_number): Remove argument
3097 optional_p. All callers updated. Adjust comments. Update
3099 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3101 2014-03-06 Yao Qi <yao@codesourcery.com>
3103 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3104 early if get_number returns zero. Use 'p' instead of 'args'.
3106 2014-03-06 Yao Qi <yao@codesourcery.com>
3108 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3111 2014-03-06 Yao Qi <yao@codesourcery.com>
3113 PR breakpoints/16508
3114 * tracepoint.c (check_trace_running): New function.
3115 (trace_find_command): Move code to check_trace_running and
3116 call check_trace_running.
3117 (trace_find_pc_command): Likewise.
3118 (trace_find_tracepoint_command): Likewise.
3119 (trace_find_line_command): Likewise.
3120 (trace_find_range_command): Likewise.
3121 * tracepoint.h (check_trace_running): Likewise.
3122 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3124 2014-03-06 Yao Qi <yao@codesourcery.com>
3126 * target.h (struct target_ops) <to_traceframe_info>: Use
3127 TARGET_DEFAULT_NORETURN (tcomplain ()).
3128 * target-delegates.c: Regenerated.
3130 2014-03-05 Pedro Alves <palves@redhat.com>
3133 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3134 void. Update comment.
3135 (dcache_xfer_memory): Delete.
3136 (dcache_read_memory_partial): New, based on the read bits of
3138 (dcache_update): Add status parameter. Use ULONGEST for len, and
3139 adjust. Discard cache lines if the reason for the update was
3141 * dcache.h (dcache_xfer_memory): Delete declaration.
3142 (dcache_read_memory_partial): New declaration.
3143 (dcache_update): Update prototype.
3144 * target.c (raw_memory_xfer_partial): Update the dcache here.
3145 (memory_xfer_partial_1): Don't handle dcache writes here.
3147 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3149 * remote-sim.c (gdbsim_load): Add const to prog.
3151 2014-03-03 Tom Tromey <tromey@redhat.com>
3153 * elfread.c (probe_key): Change to bfd_data.
3154 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3155 now per-BFD, not per-objfile.
3156 * stap-probe.c (stap_probe_destroy): Update comment.
3157 (handle_stap_probe): Allocate on the per-BFD obstack.
3159 2014-03-03 Tom Tromey <tromey@redhat.com>
3161 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3162 * breakpoint.c (create_longjmp_master_breakpoint): Use
3164 (add_location_to_breakpoint, bkpt_probe_insert_location)
3165 (bkpt_probe_remove_location): Update.
3166 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3167 * elfread.c (elf_symfile_relocate_probe): Remove.
3168 (elf_probe_fns): Update.
3169 (insert_exception_resume_breakpoint): Change type of "probe"
3170 parameter to bound_probe.
3171 (check_exception_resume): Update.
3172 * objfiles.c (objfile_relocate1): Don't relocate probes.
3173 * probe.c (bound_probe_s): New typedef.
3174 (parse_probes): Use get_probe_address. Set sal's objfile.
3175 (find_probe_by_pc): Return a bound_probe.
3176 (collect_probes): Return a VEC(bound_probe_s).
3177 (compare_probes): Update.
3178 (gen_ui_out_table_header_info): Change type of "probes"
3180 (info_probes_for_ops): Update.
3181 (get_probe_address): New function.
3182 (probe_safe_evaluate_at_pc): Update.
3183 * probe.h (struct probe_ops) <get_probe_address>: New field.
3184 <set_semaphore, clear_semaphore>: Add objfile parameter.
3185 (struct probe) <objfile>: Remove field.
3187 <address>: Update comment.
3188 (struct bound_probe): New.
3189 (find_probe_by_pc): Return a bound_probe.
3190 (get_probe_address): Declare.
3191 * solib-svr4.c (struct probe_and_action) <address>: New field.
3192 (hash_probe_and_action, equal_probe_and_action): Update.
3193 (register_solib_event_probe): Add address parameter.
3194 (solib_event_probe_at): Update.
3195 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3197 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3198 (stap_get_probe_address): New function.
3199 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3200 (compile_probe_arg): Update.
3201 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3203 (handle_stap_probe): Don't relocate the probe.
3204 (stap_relocate): Remove.
3205 (stap_gen_info_probes_table_values): Update.
3206 (stap_probe_ops): Remove stap_relocate.
3207 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3208 (debug_sym_probe_fns): Update.
3209 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3210 * symtab.c (init_sal): Use memset.
3211 * symtab.h (struct symtab_and_line) <objfile>: New field.
3212 * tracepoint.c (start_tracing, stop_tracing): Update.
3214 2014-03-03 Tom Tromey <tromey@redhat.com>
3216 * probe.h (parse_probes, find_probe_by_pc)
3217 (find_probes_in_objfile): Fix comments.
3219 2014-03-02 Doug Evans <xdje42@gmail.com>
3221 * infrun.c (handle_signal_stop): Replace test for
3222 TARGET_WAITKIND_STOPPED with an assert.
3224 2014-03-02 Doug Evans <xdje42@gmail.com>
3226 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3228 2014-03-02 Doug Evans <xdje42@gmail.com>
3230 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3232 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3234 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3236 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3238 * i386obsd-nat.c: Include "obsd-nat.h".
3239 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3241 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3243 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3245 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3247 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3249 * mips64obsd-nat.c: Include "obsd-nath".
3250 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3252 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3254 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3256 * amd64obsd-nat.c: Include "obsd-nat,h.
3257 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3259 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3261 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3263 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3264 (find_overload_match): Update call to find_oload_champ.
3265 (find_oload_champ_namespace_loop): Likewise
3267 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3269 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3271 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3272 * config/sparc/obsd64.mh: New file.
3273 * sparc64obsd-nat.c: New file.
3275 * obsd-nat.h: New file.
3276 * obsd-nat.c: New file.
3277 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3278 (ALLDEPFILES): Add obsd-nat.c.
3280 2014-02-28 Tom Tromey <tromey@redhat.com>
3282 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3283 * cli-out.h (cli_ui_out_impl): Now const.
3284 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3285 * ui-out.c (struct ui_out) <impl>: Now const.
3286 (default_ui_out_impl): Now const.
3287 (ui_out_new): Make 'impl' parameter const.
3288 * ui-out.h (ui_out_new): Update.
3290 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3292 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3294 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3296 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3298 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3300 Additional PR 8882 fix.
3301 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3303 2014-02-27 Pedro Alves <palves@redhat.com>
3305 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3308 2014-02-27 Pedro Alves <palves@redhat.com>
3311 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3312 * nat/linux-waitpid.c: Include string.h.
3313 (status_to_str): Moved here and made extern.
3314 * nat/linux-waitpid.h (status_to_str): New declaration.
3316 2014-02-27 Hui Zhu <hui@codesourcery.com>
3319 * infrun.c (ptid_match): Move ...
3320 * common/ptid.c (ptid_match): ... here.
3321 * inferior.h (ptid_match): Move ...
3322 * common/ptid.h (ptid_match): ... here.
3324 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3326 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3327 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3330 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3332 * obsd-tdep.c (obsd_auxv_parse): New function.
3333 (obsd_init_abi): Set auxv_parse.
3335 * gdbarch.sh (auxv_parse): New.
3336 * gdbarch.h: Regenerated.
3337 * gdbarch.c: Regenerated.
3338 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3340 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3342 * guile/scm-value.c (gdbscm_history_append_x): New function.
3343 (value_functions): Add it.
3345 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3347 * dwarf2read.c (attr_value_as_address): New function.
3348 (dwarf2_find_base_address, read_call_site_scope): Use
3349 attr_value_as_address in place of DW_ADDR.
3350 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3351 the low and high addresses. Slight rework of the handling
3352 of the high pc being a constant form, and limit it to
3353 DWARF verson 4 or higher.
3354 (dwarf2_record_block_ranges): Likewise.
3355 (read_partial_die): Likewise.
3356 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3358 2014-02-26 Tom Tromey <tromey@redhat.com>
3360 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3362 2014-02-26 Tom Tromey <tromey@redhat.com>
3364 * elfread.c (elf_read_minimal_symbols): Return early if
3365 minimal symbols have already been read. Add "ei" parameter.
3366 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3367 * minsyms.c (prim_record_minimal_symbol_full): Update.
3368 * objfiles.h (struct objstats) <n_minsyms>: Move...
3369 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3370 * symmisc.c (print_objfile_statistics): Update.
3372 2014-02-26 Tom Tromey <tromey@redhat.com>
3374 * elfread.c (elf_read_minimal_symbols): New function, from
3376 (elf_symfile_read): Call it.
3378 2014-02-26 Tom Tromey <tromey@redhat.com>
3380 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3381 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3382 (lookup_minimal_symbol_solib_trampoline)
3383 (lookup_minimal_symbol_by_pc_section_1)
3384 (lookup_minimal_symbol_and_objfile): Update.
3385 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3386 Don't allocate a minimal symbol if minsyms have already been read.
3387 (build_minimal_symbol_hash_tables): Update.
3388 (install_minimal_symbols): Do nothing if minsyms already read.
3389 Use the per-BFD obstack.
3390 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3391 * objfiles.c (allocate_objfile): Call
3392 terminate_minimal_symbol_table later.
3393 (have_minimal_symbols): Update.
3394 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3395 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3396 Move from struct objfile.
3397 <minsyms_read>: New field.
3398 (struct objfile) <msymbols, minimal_symbol_count,
3399 msymbol_hash, msymbol_demangled_hash>: Move.
3400 (ALL_OBJFILE_MSYMBOLS): Update.
3401 * symfile.c (read_symbols): Set minsyms_read.
3402 (reread_symbols): Update.
3403 * symmisc.c (dump_objfile, dump_msymbols): Update.
3405 2014-02-26 Tom Tromey <tromey@redhat.com>
3407 * minsyms.c (msymbols_sort): Remove.
3408 * minsyms.h (msymbols_sort): Remove.
3409 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3410 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3411 * elfread.c (elf_symtab_read): Don't add section offsets.
3412 * xcoffread.c (record_minimal_symbol): Don't add section offset
3413 to minimal symbol address.
3414 * somread.c (text_offset, data_offset): Remove.
3415 (som_symtab_read): Don't add section offsets to minimal symbol
3417 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3418 Don't add section offsets to minimal symbols.
3419 * coffread.c (coff_symtab_read): Don't add section offsets
3420 to minimal symbol addresses.
3421 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3422 to minimal symbol addresses.
3423 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3424 section offset to minimal symbol addresses.
3425 * mdebugread.c (parse_partial_symbols): Don't add section
3426 offset to minimal symbol addresses.
3427 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3428 offset to minimal symbol addresses.
3430 2014-02-26 Tom Tromey <tromey@redhat.com>
3432 * ada-lang.c (ada_main_name): Update.
3433 (ada_add_standard_exceptions): Update.
3434 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3435 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3436 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3437 * auxv.c (ld_so_xfer_auxv): Update.
3438 * avr-tdep.c (avr_scan_prologue): Update.
3439 * ax-gdb.c (gen_var_ref): Update.
3440 * blockframe.c (get_pc_function_start)
3441 (find_pc_partial_function_gnu_ifunc): Update.
3442 * breakpoint.c (create_overlay_event_breakpoint)
3443 (create_longjmp_master_breakpoint)
3444 (create_std_terminate_master_breakpoint)
3445 (create_exception_master_breakpoint): Update.
3446 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3447 * c-valprint.c (c_val_print): Update.
3448 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3449 * common/agent.c (agent_look_up_symbols): Update.
3450 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3451 * dwarf2loc.c (call_site_to_target_addr): Update.
3452 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3453 * elfread.c (elf_gnu_ifunc_record_cache)
3454 (elf_gnu_ifunc_resolve_by_got): Update.
3455 * findvar.c (default_read_var_value): Update.
3456 * frame.c (inside_main_func): Update.
3457 * frv-tdep.c (frv_frame_this_id): Update.
3458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3459 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3461 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3462 (hppa_hpux_find_dummy_bpaddr): Update.
3463 * hppa-tdep.c (hppa_symbol_address): Update.
3464 * infcmd.c (until_next_command): Update.
3465 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3467 * linespec.c (minsym_found, add_minsym): Update.
3468 * linux-nat.c (get_signo): Update.
3469 * linux-thread-db.c (inferior_has_bug): Update.
3470 * m32c-tdep.c (m32c_return_value)
3471 (m32c_m16c_address_to_pointer): Update.
3472 * m32r-tdep.c (m32r_frame_this_id): Update.
3473 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3474 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3475 * maint.c (maintenance_translate_address): Update.
3476 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3477 (frob_address): New function.
3478 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3479 frob_address. Rename parameter to "pc_in".
3480 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3482 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3484 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3485 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3486 * objc-lang.c (find_objc_msgsend): Update.
3487 * objfiles.c (objfile_relocate1): Update.
3488 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3489 * p-valprint.c (pascal_val_print): Update.
3490 * parse.c (write_exp_msymbol): Update.
3491 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3492 (ppc_elfv2_skip_entrypoint): Update.
3493 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3494 * printcmd.c (build_address_symbolic, msym_info)
3495 (address_info): Update.
3496 * proc-service.c (ps_pglobal_lookup): Update.
3497 * psymtab.c (find_pc_sect_psymtab_closer)
3498 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3499 Change msymbol parameter to bound_minimal_symbol.
3500 * ravenscar-thread.c (get_running_thread_id): Update.
3501 * remote.c (remote_check_symbols): Update.
3502 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3504 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3505 * solib-dsbt.c (lm_base): Update.
3506 * solib-frv.c (lm_base, main_got): Update.
3507 * solib-irix.c (locate_base): Update.
3508 * solib-som.c (som_solib_create_inferior_hook)
3509 (link_map_start): Update.
3510 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3511 * solib-svr4.c (elf_locate_base, enable_break): Update.
3512 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3513 (flush_ea_cache): Update.
3514 * stabsread.c (define_symbol, scan_file_globals): Update.
3515 * stack.c (find_frame_funname): Update.
3516 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3517 (debug_qf_find_pc_sect_symtab): Update.
3518 * symfile.c (simple_read_overlay_table)
3519 (simple_overlay_update): Update.
3520 * symfile.h (struct quick_symbol_functions)
3521 <find_pc_sect_symtab>: Change type of msymbol to
3522 bound_minimal_symbol.
3523 * symmisc.c (dump_msymbols): Update.
3524 * symtab.c (find_pc_sect_symtab_via_partial)
3525 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3526 (search_symbols, print_msymbol_info): Update.
3527 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3528 (MSYMBOL_VALUE_ADDRESS): Redefine.
3529 (BMSYMBOL_VALUE_ADDRESS): New macro.
3530 * tracepoint.c (scope_info): Update.
3531 * tui/tui-disasm.c (tui_find_disassembly_address)
3532 (tui_get_begin_asm_address): Update.
3533 * valops.c (find_function_in_inferior): Update.
3534 * value.c (value_static_field, value_fn_field): Update.
3536 2014-02-26 Tom Tromey <tromey@redhat.com>
3538 * ada-lang.c (ada_update_initial_language): Update.
3539 (ada_main_name, ada_has_this_exception_support): Update.
3540 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3541 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3542 * arm-tdep.c (arm_skip_stub): Update.
3543 * auxv.c (ld_so_xfer_auxv): Update.
3544 * avr-tdep.c (avr_scan_prologue): Update.
3545 * ax-gdb.c (gen_var_ref): Update.
3546 * breakpoint.c (struct breakpoint_objfile_data)
3547 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3548 type to bound_minimal_symbol.
3549 (create_overlay_event_breakpoint)
3550 (create_longjmp_master_breakpoint)
3551 (create_std_terminate_master_breakpoint)
3552 (create_exception_master_breakpoint): Update.
3553 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3554 * c-exp.y (classify_name): Update.
3555 * coffread.c (coff_symfile_read): Update.
3556 * common/agent.c (agent_look_up_symbols): Update.
3557 * d-lang.c (d_main_name): Update.
3558 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3559 * dec-thread.c (enable_dec_thread): Update.
3560 * dwarf2loc.c (call_site_to_target_addr): Update.
3561 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3562 * eval.c (evaluate_subexp_standard): Update.
3563 * findvar.c (struct minsym_lookup_data) <result>: Change type
3564 to bound_minimal_symbol.
3566 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3567 * frame.c (inside_main_func): Update.
3568 * frv-tdep.c (frv_frame_this_id): Update.
3569 * gcore.c (call_target_sbrk): Update.
3570 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3571 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3573 * go-lang.c (go_main_name): Update.
3574 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3575 (hppa_hpux_find_import_stub_for_addr): Update.
3576 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3577 Update. Change return type.
3578 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3580 * jit.c (jit_breakpoint_re_set_internal): Update.
3581 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3583 * linux-nat.c (get_signo): Update.
3584 * linux-thread-db.c (inferior_has_bug): Update
3585 * m32c-tdep.c (m32c_return_value)
3586 (m32c_m16c_address_to_pointer): Update.
3587 * m32r-tdep.c (m32r_frame_this_id): Update.
3588 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3589 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3590 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3591 lookup_minimal_symbol. Change return type.
3592 (lookup_minimal_symbol): Remove.
3593 (lookup_bound_minimal_symbol): Update.
3594 (lookup_minimal_symbol_text): Change return type.
3595 (lookup_minimal_symbol_solib_trampoline): Change return type.
3596 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3597 (lookup_minimal_symbol_solib_trampoline): Change return type.
3598 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3599 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3600 (value_nsstring, find_imps): Update.
3601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3602 * p-lang.c (pascal_main_name): Update.
3603 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3605 * proc-service.c (ps_pglobal_lookup): Update.
3606 * ravenscar-thread.c (get_running_thread_msymbol): Change
3608 (has_ravenscar_runtime, get_running_thread_id): Update.
3609 * remote.c (remote_check_symbols): Update.
3610 * sol-thread.c (ps_pglobal_lookup): Update.
3611 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3612 * solib-dsbt.c (lm_base): Update.
3613 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3615 * solib-irix.c (locate_base): Update.
3616 * solib-som.c (som_solib_create_inferior_hook)
3617 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3619 * solib-spu.c (spu_enable_break): Update.
3620 * solib-svr4.c (elf_locate_base, enable_break): Update.
3621 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3622 (flush_ea_cache): Update.
3623 * stabsread.c (define_symbol): Update.
3624 * symfile.c (simple_read_overlay_table): Update.
3625 * symtab.c (find_pc_sect_line): Update.
3626 * tracepoint.c (scope_info): Update.
3627 * tui-disasm.c (tui_get_begin_asm_address): Update.
3628 * value.c (value_static_field): Update.
3630 2014-02-26 Tom Tromey <tromey@redhat.com>
3632 * minsyms.c (prim_record_minimal_symbol_full): Use
3633 SET_MSYMBOL_VALUE_ADDRESS.
3634 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3635 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3636 SET_MSYMBOL_VALUE_ADDRESS.
3637 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3638 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3640 2014-02-26 Tom Tromey <tromey@redhat.com>
3642 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3643 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3644 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3645 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3646 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3647 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3648 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3649 * ada-lang.c (ada_main_name): Update.
3650 (ada_lookup_simple_minsym): Update.
3651 (ada_make_symbol_completion_list): Update.
3652 (ada_add_standard_exceptions): Update.
3653 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3654 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3655 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3656 * arm-tdep.c (skip_prologue_function): Update.
3657 (arm_skip_stack_protector, arm_skip_stub): Update.
3658 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3659 (arm_wince_skip_main_prologue): Update.
3660 * auxv.c (ld_so_xfer_auxv): Update.
3661 * avr-tdep.c (avr_scan_prologue): Update.
3662 * ax-gdb.c (gen_var_ref): Update.
3663 * block.c (call_site_for_pc): Update.
3664 * blockframe.c (get_pc_function_start): Update.
3665 (find_pc_partial_function_gnu_ifunc): Update.
3666 * breakpoint.c (create_overlay_event_breakpoint): Update.
3667 (create_longjmp_master_breakpoint): Update.
3668 (create_std_terminate_master_breakpoint): Update.
3669 (create_exception_master_breakpoint): Update.
3670 (resolve_sal_pc): Update.
3671 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3672 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3674 * c-valprint.c (c_val_print): Update.
3675 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3676 * coffread.c (coff_symfile_read): Update.
3677 * common/agent.c (agent_look_up_symbols): Update.
3678 * dbxread.c (find_stab_function_addr): Update.
3679 (end_psymtab): Update.
3680 * dwarf2loc.c (call_site_to_target_addr): Update.
3681 (func_verify_no_selftailcall): Update.
3682 (tailcall_dump): Update.
3683 (call_site_find_chain_1): Update.
3684 (dwarf_expr_reg_to_entry_parameter): Update.
3685 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3686 (elf_gnu_ifunc_resolve_by_got): Update.
3687 * f-valprint.c (info_common_command): Update.
3688 * findvar.c (read_var_value): Update.
3689 * frame.c (get_prev_frame_1): Update.
3690 (inside_main_func): Update.
3691 * frv-tdep.c (frv_skip_main_prologue): Update.
3692 (frv_frame_this_id): Update.
3693 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3694 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3695 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3696 (gnuv3_skip_trampoline): Update.
3697 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3698 (hppa64_hpux_in_solib_call_trampoline): Update.
3699 (hppa_hpux_skip_trampoline_code): Update.
3700 (hppa64_hpux_search_dummy_call_sequence): Update.
3701 (hppa_hpux_find_import_stub_for_addr): Update.
3702 (hppa_hpux_find_dummy_bpaddr): Update.
3703 * hppa-tdep.c (hppa_symbol_address)
3704 (hppa_lookup_stub_minimal_symbol): Update.
3705 * i386-tdep.c (i386_skip_main_prologue): Update.
3706 (i386_pe_skip_trampoline_code): Update.
3707 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3708 * infcall.c (get_function_name): Update.
3709 * infcmd.c (until_next_command): Update.
3710 * jit.c (jit_breakpoint_re_set_internal): Update.
3711 (jit_inferior_init): Update.
3712 * linespec.c (minsym_found): Update.
3713 (add_minsym): Update.
3714 * linux-fork.c (info_checkpoints_command): Update.
3715 * linux-nat.c (get_signo): Update.
3716 * linux-thread-db.c (inferior_has_bug): Update.
3717 * m32c-tdep.c (m32c_return_value): Update.
3718 (m32c_m16c_address_to_pointer): Update.
3719 (m32c_m16c_pointer_to_address): Update.
3720 * m32r-tdep.c (m32r_frame_this_id): Update.
3721 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3722 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3723 * maint.c (maintenance_translate_address): Update.
3724 * minsyms.c (add_minsym_to_hash_table): Update.
3725 (add_minsym_to_demangled_hash_table): Update.
3726 (msymbol_objfile): Update.
3727 (lookup_minimal_symbol): Update.
3728 (iterate_over_minimal_symbols): Update.
3729 (lookup_minimal_symbol_text): Update.
3730 (lookup_minimal_symbol_by_pc_name): Update.
3731 (lookup_minimal_symbol_solib_trampoline): Update.
3732 (lookup_minimal_symbol_by_pc_section_1): Update.
3733 (lookup_minimal_symbol_and_objfile): Update.
3734 (prim_record_minimal_symbol_full): Update.
3735 (compare_minimal_symbols): Update.
3736 (compact_minimal_symbols): Update.
3737 (build_minimal_symbol_hash_tables): Update.
3738 (install_minimal_symbols): Update.
3739 (terminate_minimal_symbol_table): Update.
3740 (find_solib_trampoline_target): Update.
3741 (minimal_symbol_upper_bound): Update.
3742 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3743 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3744 (mips_skip_pic_trampoline_code): Update.
3745 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3746 * objc-lang.c (selectors_info): Update.
3747 (classes_info): Update.
3748 (find_methods): Update.
3749 (find_imps): Update.
3750 (find_objc_msgsend): Update.
3751 * objfiles.c (objfile_relocate1): Update.
3752 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3753 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3754 * p-valprint.c (pascal_val_print): Update.
3755 * parse.c (write_exp_msymbol): Update.
3756 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3757 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3758 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3759 * printcmd.c (build_address_symbolic): Update.
3761 (address_info): Update.
3762 * proc-service.c (ps_pglobal_lookup): Update.
3763 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3764 (find_pc_sect_psymtab): Update.
3765 * python/py-framefilter.c (py_print_frame): Update.
3766 * ravenscar-thread.c (get_running_thread_id): Update.
3767 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3769 * remote.c (remote_check_symbols): Update.
3770 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3771 (rs6000_skip_trampoline_code): Update.
3772 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3773 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3774 * solib-dsbt.c (lm_base): Update.
3775 * solib-frv.c (lm_base): Update.
3777 * solib-irix.c (locate_base): Update.
3778 * solib-som.c (som_solib_create_inferior_hook): Update.
3779 (som_solib_desire_dynamic_linker_symbols): Update.
3780 (link_map_start): Update.
3781 * solib-spu.c (spu_enable_break): Update.
3782 (ocl_enable_break): Update.
3783 * solib-svr4.c (elf_locate_base): Update.
3784 (enable_break): Update.
3785 * spu-tdep.c (spu_get_overlay_table): Update.
3786 (spu_catch_start): Update.
3787 (flush_ea_cache): Update.
3788 * stabsread.c (define_symbol): Update.
3789 (scan_file_globals): Update.
3790 * stack.c (find_frame_funname): Update.
3791 (frame_info): Update.
3792 * symfile.c (simple_read_overlay_table): Update.
3793 (simple_overlay_update): Update.
3794 * symmisc.c (dump_msymbols): Update.
3795 * symtab.c (fixup_section): Update.
3796 (find_pc_sect_line): Update.
3797 (skip_prologue_sal): Update.
3798 (search_symbols): Update.
3799 (print_msymbol_info): Update.
3800 (rbreak_command): Update.
3801 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3802 (completion_list_objc_symbol): Update.
3803 (default_make_symbol_completion_list_break_on): Update.
3804 * tracepoint.c (scope_info): Update.
3805 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3806 (tui_get_begin_asm_address): Update.
3807 * valops.c (find_function_in_inferior): Update.
3808 * value.c (value_static_field): Update.
3809 (value_fn_field): Update.
3811 2014-02-26 Tom Tromey <tromey@redhat.com>
3813 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3814 bound minimal symbols. Move code that knows about minsym
3816 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3818 * minsyms.h (minimal_symbol_upper_bound): Declare.
3819 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3820 minimal_symbol_upper_bound.
3822 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3824 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3825 Use the type's name if its basic type does not have a tag.
3827 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3829 * dwarf2read.c (read_subrange_type): Add comment.
3831 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3833 * dwarf2read.c (update_enumeration_type_from_children): New
3834 function, mostly extracted from process_structure_scope.
3835 (read_enumeration_type): Call update_enumeration_type_from_children.
3836 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3837 and flag_flag_enum fields.
3839 2014-02-26 Pedro Alves <palves@redhat.com>
3841 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3842 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3843 to_xfer_partial method.
3845 2014-02-26 Pedro Alves <palves@redhat.com>
3847 * target.c (complete_target_initialization): Don't install
3848 default_xfer_partial as to_xfer_partial hook.
3850 (update_current_target): Don't INHERIT nor de_fault
3851 deprecated_xfer_memory. Delete de_fault macro.
3852 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3853 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3854 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3857 2014-02-26 Pedro Alves <palves@redhat.com>
3859 * go32-nat.c (my_write_child): New function.
3860 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3861 (go32_xfer_partial): New function.
3862 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3863 Instead install a to_xfer_partial hook.
3865 2014-02-26 Pedro Alves <palves@redhat.com>
3867 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3868 to_xfer_partial helper. Rewrite.
3869 (procfs_xfer_partial): New function.
3870 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3871 Install a to_xfer_partial hook.
3873 2014-02-26 Pedro Alves <palves@redhat.com>
3875 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3876 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3877 (m32r_xfer_partial): New function.
3878 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3879 Install a to_xfer_partial hook.
3881 2014-02-26 Pedro Alves <palves@redhat.com>
3883 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3885 (mips_xfer_partial): New function.
3886 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3887 hook. Install a to_xfer_partial hook.
3889 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3891 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3892 * gdbtypes.c (create_array_type_with_stride): New function,
3893 renaming create_array_type, but with an added parameter
3894 called "bit_stride".
3895 (create_array_type): Re-implement using
3896 create_array_type_with_stride.
3897 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3898 and DW_AT_bit_stride attributes.
3900 2014-02-26 Pedro Alves <palves@redhat.com>
3902 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3903 task-specific breakpoints.
3905 2014-02-25 Pedro Alves <palves@redhat.com>
3907 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3908 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3910 2014-02-25 Stan Shebs <stan@codesourcery.com>
3912 * defs.h: Annotate comments for Doxygen.
3914 2014-02-25 Tom Tromey <tromey@redhat.com>
3916 * target.h (target_ignore): Don't declare.
3917 * target.c (target_ignore): Remove.
3919 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3922 * auto-load.c (auto_load_objfile_script_1): Change filename to
3925 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3927 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3928 documentation. Adjust prototype to match the target_ops
3929 to_xfer_partial method. Adjust implementation accordingly.
3931 2014-02-25 Hui Zhu <hui@codesourcery.com>
3933 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3936 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3938 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3939 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3940 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3941 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3942 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3943 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3944 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3945 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3947 (rl78_register_type): Use a data pointer type for SP and
3948 new pseudo registers mentioned above. Use a 16 bit integer
3949 type for all other register pairs.
3950 (rl78_register_name, rl78_g10_register_name): Update for
3951 new pseudo registers.
3952 (rl78_pseudo_register_read): Likewise.
3953 (rl78_pseudo_register_write): Likewise.
3954 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3955 to the newly added pseudo registers.
3957 2014-02-24 Doug Evans <dje@google.com>
3959 * value.c (record_latest_value): Fix comment.
3960 * printcmd.c (print_command_1): Remove code to handle -1 return from
3961 record_latest_value.
3963 2014-02-24 Pedro Alves <palves@redhat.com>
3965 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3966 deprecated_xfer_memory hook.
3967 (procfs_xfer_partial): Call procfs_xfer_memory instead
3968 of the deprecated_xfer_memory target hook.
3969 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3972 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3974 * windows-nat.c (windows_xfer_shared_libraries): Return
3975 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3976 requested object is TARGET_OBJECT_LIBRARIES.
3978 2014-02-24 Yao Qi <yao@codesourcery.com>
3980 * target.h (enum target_xfer_status)
3981 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3982 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3984 * corefile.c (memory_error_message): User updated.
3985 * exec.c (section_table_read_available_memory): Likewise.
3986 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3987 * target.c (target_xfer_status_to_string): Likewise.
3988 (raw_memory_xfer_partial): Likewise.
3989 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3990 * valops.c (read_value_memory): Likewise.
3991 * exec.h: Update comments.
3993 2014-02-24 Yao Qi <yao@codesourcery.com>
3995 * target.c (target_xfer_status_to_string): Rename argument err
3997 * target.h (target_xfer_status_to_string): Update declaration.
3998 Replace target_xfer_error_to_string with
3999 target_xfer_status_to_string in comment.
4001 2014-02-24 Yao Qi <yao@codesourcery.com>
4003 * mips-linux-nat.c (super_close): Update its type.
4004 (mips_linux_close): Pass 'self' to super_close.
4006 2014-02-24 Yao Qi <yao@codesourcery.com>
4008 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4009 * corefile.c (read_memory): Adjusted.
4010 * target.c (target_write_with_progress): Adjusted.
4012 2014-02-23 Yao Qi <yao@codesourcery.com>
4016 2013-10-25 Yao Qi <yao@codesourcery.com>
4018 * remote.c (remote_traceframe_info): Return early if
4019 traceframe is not selected.
4021 2013-07-19 Yao Qi <yao@codesourcery.com>
4023 * target.c (update_current_target): Change the default action
4024 of 'to_traceframe_info' from tcomplain to return_zero.
4025 * target.h (struct target_ops) <to_traceframe_info>: Add more
4028 2014-02-23 Yao Qi <yao@codesourcery.com>
4030 * valops.c (read_value_memory): Rewrite it. Call
4031 target_xfer_partial in a loop.
4032 * exec.h (section_table_available_memory): Remove declaration.
4033 Move comments to ...
4034 * exec.c (section_table_available_memory): ... here. Make it
4037 2014-02-23 Yao Qi <yao@codesourcery.com>
4039 * exec.c (section_table_read_available_memory): New function.
4040 * exec.h (section_table_read_available_memory): Declare.
4041 * ctf.c (ctf_xfer_partial): Call
4042 section_table_read_available_memory.
4043 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4045 2014-02-23 Yao Qi <yao@codesourcery.com>
4047 * ctf.c (ctf_xfer_partial): Move code to ...
4048 * exec.c (exec_read_partial_read_only): ... it. New function.
4049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4050 * tracefile.c: Include "exec.h".
4051 * exec.h (exec_read_partial_read_only): Declare.
4053 2014-02-23 Yao Qi <yao@codesourcery.com>
4055 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4056 (tfile_has_memory): Remove.
4057 (init_tfile_ops): Don't set fields to_has_all_memory and
4058 to_has_memory of tfile_ops.
4059 * tracefile.c (tracefile_has_all_memory): New function.
4060 (tracefile_has_memory): New function.
4061 (init_tracefile_ops): Initialize fields to_has_all_memory and
4062 to_has_memory of 'ops'.
4064 2014-02-23 Yao Qi <yao@codesourcery.com>
4066 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4067 (ctf_thread_alive, ctf_get_trace_status): Remove.
4068 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4070 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4071 (tfile_has_stack, tfile_has_registers): Remove.
4072 (tfile_thread_alive): Remove.
4073 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4075 * tracefile.c (tracefile_has_stack): New function.
4076 (tracefile_has_registers): New function.
4077 (tracefile_thread_alive): New function.
4078 (tracefile_get_trace_status): New function.
4079 (init_tracefile_ops): New function.
4080 * tracefile.h (init_tracefile_ops): Declare.
4082 2014-02-23 Yao Qi <yao@codesourcery.com>
4084 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4085 (O_LARGEFILE): Likewise.
4086 (tfile_ops): Likewise.
4087 (TRACE_HEADER_SIZE): Likewise.
4088 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4089 (cur_data_size): Likewise.
4090 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4091 (tfile_close, tfile_files_info): Likewise.
4092 (tfile_get_trace_status): Likewise.
4093 (tfile_get_tracepoint_status): Likewise.
4094 (tfile_get_traceframe_address): Likewise.
4095 (tfile_trace_find, match_blocktype): Likewise.
4096 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4097 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4098 (tfile_get_trace_state_variable_value): Likewise.
4099 (tfile_has_all_memory, tfile_has_memory): Likewise.
4100 (tfile_has_stack, tfile_has_registers): Likewise.
4101 (tfile_thread_alive, build_traceframe_info): Likewise.
4102 (tfile_traceframe_info, init_tfile_ops): Likewise.
4103 (_initialize_tracepoint): Don't call init_tfile_ops
4104 and add_target_with_completer.
4105 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4106 exec.h, completer.h and filenames.h.
4107 (_initialize_tracefile_tfile): New function.
4109 2014-02-23 Yao Qi <yao@codesourcery.com>
4111 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4113 (HFILES_NO_SRCDIR): Add tracefile.h.
4114 * ctf.c: Include "tracefile.h".
4115 * tracefile.h: New file.
4116 * tracefile.c: New file
4117 * tracefile-tfile.c: New file.
4118 * tracepoint.c: Include "tracefile.h".
4119 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4120 (stop_reason_names): Add const.
4121 (trace_file_writer_xfree): Move it to tracefile.c.
4122 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4123 (trace_save_ctf): Likewise.
4124 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4125 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4126 (tfile_write_header, tfile_write_regblock_type): Likewise.
4127 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4128 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4129 (tfile_write_raw_data, tfile_end): Likewise.
4130 (tfile_trace_file_writer_new): Likewise.
4131 (free_uploaded_tp): Make it extern.
4132 (free_uploaded_tsv): Make it extern.
4133 (_initialize_tracepoint): Move code to register command 'tsave'
4135 * tracepoint.h (stop_reason_names): Declare.
4136 (struct trace_frame_write_ops): Move it to tracefile.h.
4137 (struct trace_file_write_ops): Likewise.
4138 (struct trace_file_writer): Likewise.
4139 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4141 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4144 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4146 (get_cores_used_by_process): New parameter num_cores, use it.
4147 (linux_xfer_osdata_processes): Pass num_cores to it.
4148 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4151 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4153 * target.c (memory_xfer_partial): Fix length arg in call to
4154 breakpoint_xfer_memory.
4156 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4159 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4160 number comes after the + or - signs. Adjust length of register
4161 name to be extracted.
4163 2014-02-20 Tom Tromey <tromey@redhat.com>
4165 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4166 (ada_varobj_ops): Mark "extern".
4168 2014-02-20 Tom Tromey <tromey@redhat.com>
4170 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4172 2014-02-20 Doug Evans <xdje42@gmail.com>
4174 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4175 All callers updated.
4176 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4177 All callers updated.
4178 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4179 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4181 2014-02-20 lin zuojian <manjian2006@gmail.com>
4182 Joel Brobecker <brobecker@adacore.com>
4183 Doug Evans <xdje42@gmail.com>
4186 * dwarf2read.c (struct die_info): New member in_process.
4187 (reset_die_in_process): New function.
4188 (process_die): Set it at the start, reset when returning.
4189 (inherit_abstract_dies): Only call process_die if origin_child_die
4190 not already being processed.
4192 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4194 * windows-nat.c (handle_unload_dll): Add function documentation.
4195 (do_initial_windows_stuff): Add comment explaining why we wait
4196 until after inferior initialization has finished before
4197 processing all DLLs.
4199 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4201 * windows-nat.c (get_module_name): Delete.
4202 (windows_get_exec_module_filename): New function, mostly
4203 inspired from get_module_name.
4204 (windows_pid_to_exec_file): Replace call to get_module_name
4205 by call to windows_get_exec_module_filename.
4207 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4209 * windows-nat.c (handle_load_dll): Rewrite this function's
4210 introductory comment. Remove code using get_module_name
4211 to get the DLL's name.
4213 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4215 * windows-nat.c (get_windows_debug_event): Ignore
4216 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4217 if windows_initialization_done == 0.
4218 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4219 Adjust implementation to always load all DLLs.
4220 (do_initial_windows_stuff): Replace call to
4221 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4223 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4225 * windows-nat.c (_initialize_windows_nat): Deprecate the
4226 "dll-symbols" command. Turn the "add-shared-symbol-files"
4227 and "assf" aliases into commands, and deprecate them as well.
4228 * NEWS: Add entry explaining that "dll-symbols" and its two
4229 aliases are now deprecated.
4231 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4233 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4234 new-line in debug string. Remove trailing spaces.
4236 2014-02-19 Stan Shebs <stan@codesourcery.com>
4238 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4240 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4242 * NEWS: Add entry for the new feature
4243 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4246 2014-02-19 Stan Shebs <stan@codesourcery.com>
4248 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4250 2014-02-19 Pedro Alves <palves@redhat.com>
4252 * common/ptid.h (struct ptid): Mention that process_stratum
4253 targets should prefer ptid.lwp.
4255 2014-02-19 Pedro Alves <palves@redhat.com>
4257 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4258 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4259 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4260 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4261 store remote thread ids rather than ptid.tid.
4262 (_initialize_remote): Adjust.
4264 2014-02-19 Tom Tromey <tromey@redhat.com>
4266 * target.c (target_get_unwinder): Rewrite.
4267 (target_get_tailcall_unwinder): Rewrite.
4268 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4269 (record_btrace_to_get_tailcall_unwinder): New function.
4270 (init_record_btrace_ops): Update.
4271 * target.h (struct target_ops) <to_get_unwinder,
4272 to_get_tailcall_unwinder>: Now function pointers. Use
4273 TARGET_DEFAULT_RETURN.
4275 2014-02-19 Tom Tromey <tromey@redhat.com>
4277 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4279 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4281 2014-02-19 Tom Tromey <tromey@redhat.com>
4283 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4285 * target-delegates.c: Rebuild.
4286 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4287 TARGET_DEFAULT_FUNC.
4288 * target.c (default_target_decr_pc_after_break): Rename from
4289 forward_target_decr_pc_after_break. Simplify.
4290 (target_decr_pc_after_break): Rely on delegation.
4292 2014-02-19 Tom Tromey <tromey@redhat.com>
4294 * target.c (update_current_target): Do not INHERIT to_doc or
4295 to_magic. Do not de_fault to_open or to_close.
4297 2014-02-19 Tom Tromey <tromey@redhat.com>
4299 * gcore.h (objfile_find_memory_regions): Declare.
4300 * gcore.c (objfile_find_memory_regions): No longer static. Add
4302 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4303 * exec.c: Include gcore.h.
4304 (exec_set_find_memory_regions): Remove.
4305 (exec_find_memory_regions): Remove.
4306 (exec_do_find_memory_regions): Remove.
4307 (init_exec_ops): Update.
4308 * defs.h (exec_set_find_memory_regions): Remove.
4310 2014-02-19 Tom Tromey <tromey@redhat.com>
4312 * target-delegates.c: Rebuild.
4313 * target.h (struct target_ops) <to_extra_thread_info,
4314 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4315 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4316 not 0, in TARGET_DEFAULT_RETURN.
4318 2014-02-19 Tom Tromey <tromey@redhat.com>
4320 * target.c (complete_target_initialization): Remove casts. Use
4321 return_zero_has_execution.
4322 (return_zero): Add "ignore" argument.
4323 (return_zero_has_execution): New function.
4324 (init_dummy_target): Remove casts. Use
4325 return_zero_has_execution.
4327 2014-02-19 Tom Tromey <tromey@redhat.com>
4329 * target.c (update_current_target): Update comments. Do not
4332 2014-02-19 Tom Tromey <tromey@redhat.com>
4334 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4336 * corelow.c (core_read_description): Delegate when needed.
4337 * remote.c (remote_read_description): Delegate when needed.
4338 * target-delegates.c: Rebuild.
4339 * target.c (target_read_description): Rewrite.
4340 * target.h (struct target_ops) <to_read_description>: Update
4341 comment. Use TARGET_DEFAULT_RETURN.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target-delegates.c: Rebuild.
4346 * target.c (update_current_target): Don't inherit or default
4348 (find_default_run_target): Check against delegate_can_run.
4349 * target.h (struct target_ops) <to_can_run>: Use
4350 TARGET_DEFAULT_RETURN.
4352 2014-02-19 Tom Tromey <tromey@redhat.com>
4354 * target-delegates.c: Rebuild.
4355 * target.c (target_disconnect): Unconditionally delegate.
4356 * target.h (struct target_ops) <to_disconnect>: Use
4357 TARGET_DEFAULT_NORETURN.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * record.c (record_stop): Unconditionally delegate.
4362 * target-delegates.c: Rebuild.
4363 * target.c (target_stop_recording): Unconditionally delegate.
4364 * target.h (struct target_ops) <to_stop_recording>: Use
4365 TARGET_DEFAULT_IGNORE.
4367 2014-02-19 Tom Tromey <tromey@redhat.com>
4369 * target-delegates.c: Rebuild.
4370 * target.c (target_enable_btrace): Unconditionally delegate.
4371 * target.h (struct target_ops) <to_enable_btrace>: Use
4372 TARGET_DEFAULT_NORETURN.
4374 2014-02-19 Tom Tromey <tromey@redhat.com>
4376 * target-delegates.c: Rebuild.
4377 * target.c (target_read_btrace): Unconditionally delegate.
4378 * target.h (struct target_ops) <to_read_btrace>: Use
4379 TARGET_DEFAULT_NORETURN.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target-delegates.c: Rebuild.
4384 * target.c (target_teardown_btrace): Unconditionally delegate.
4385 * target.h (struct target_ops) <to_teardown_btrace>: Use
4386 TARGET_DEFAULT_NORETURN.
4388 2014-02-19 Tom Tromey <tromey@redhat.com>
4390 * target-delegates.c: Rebuild.
4391 * target.c (target_disable_btrace): Unconditionally delegate.
4392 * target.h (struct target_ops) <to_disable_btrace>: Use
4393 TARGET_DEFAULT_NORETURN.
4395 2014-02-19 Tom Tromey <tromey@redhat.com>
4397 * target-delegates.c: Rebuild.
4398 * target.c (default_search_memory): New function.
4399 (simple_search_memory): Update comment.
4400 (target_search_memory): Unconditionally delegate.
4401 * target.h (struct target_ops) <to_search_memory>: Use
4402 TARGET_DEFAULT_FUNC.
4404 2014-02-19 Tom Tromey <tromey@redhat.com>
4406 * auxv.c (default_auxv_parse): No longer static.
4407 (target_auxv_parse): Unconditionally delegate.
4408 * auxv.h (default_auxv_parse): Declare.
4409 * target-delegates.c: Rebuild.
4410 * target.c: Include auxv.h.
4411 * target.h (struct target_ops) <to_auxv_parse>: Use
4412 TARGET_DEFAULT_FUNC.
4414 2014-02-19 Tom Tromey <tromey@redhat.com>
4416 * target-delegates.c: Rebuild.
4417 * target.c (target_memory_map): Unconditionally delegate.
4418 * target.h (struct target_ops) <to_memory_map>: Use
4419 TARGET_DEFAULT_RETURN.
4421 2014-02-19 Tom Tromey <tromey@redhat.com>
4423 * target-delegates.c: Rebuild.
4424 * target.c (target_thread_alive): Unconditionally delegate.
4425 * target.h (struct target_ops) <to_thread_alive>: Use
4426 TARGET_DEFAULT_RETURN.
4428 2014-02-19 Tom Tromey <tromey@redhat.com>
4430 * target-delegates.c: Rebuild.
4431 * target.c (target_save_record): Unconditionally delegate.
4432 * target.h (struct target_ops) <to_save_record>: Use
4433 TARGET_DEFAULT_NORETURN.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (target_delete_record): Unconditionally delegate.
4439 * target.h (struct target_ops) <to_delete_record>: Use
4440 TARGET_DEFAULT_NORETURN.
4442 2014-02-19 Tom Tromey <tromey@redhat.com>
4444 * target-delegates.c: Rebuild.
4445 * target.c (target_record_is_replaying): Unconditionally
4447 * target.h (struct target_ops) <to_record_is_replaying>: Use
4448 TARGET_DEFAULT_RETURN.
4450 2014-02-19 Tom Tromey <tromey@redhat.com>
4452 * target-delegates.c: Rebuild.
4453 * target.c (target_goto_record_begin): Unconditionally delegate.
4454 * target.h (struct target_ops) <to_goto_record_begin>: Use
4455 TARGET_DEFAULT_NORETURN.
4457 2014-02-19 Tom Tromey <tromey@redhat.com>
4459 * target-delegates.c: Rebuild.
4460 * target.c (target_goto_record_end): Unconditionally delegate.
4461 * target.h (struct target_ops) <to_goto_record_end>: Use
4462 TARGET_DEFAULT_NORETURN.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target-delegates.c: Rebuild.
4467 * target.c (target_goto_record): Unconditionally delegate.
4468 * target.h (struct target_ops) <to_goto_record>: Use
4469 TARGET_DEFAULT_NORETURN.
4471 2014-02-19 Tom Tromey <tromey@redhat.com>
4473 * target-delegates.c: Rebuild.
4474 * target.c (target_insn_history): Unconditionally delegate.
4475 * target.h (struct target_ops) <to_insn_history>: Use
4476 TARGET_DEFAULT_NORETURN.
4478 2014-02-19 Tom Tromey <tromey@redhat.com>
4480 * target-delegates.c: Rebuild.
4481 * target.c (target_insn_history_from): Unconditionally delegate.
4482 * target.h (struct target_ops) <to_insn_history_from>: Use
4483 TARGET_DEFAULT_NORETURN.
4485 2014-02-19 Tom Tromey <tromey@redhat.com>
4487 * target-delegates.c: Rebuild.
4488 * target.c (target_insn_history_range): Unconditionally delegate.
4489 * target.h (struct target_ops) <to_insn_history_range>: Use
4490 TARGET_DEFAULT_NORETURN.
4492 2014-02-19 Tom Tromey <tromey@redhat.com>
4494 * target-delegates.c: Rebuild.
4495 * target.c (target_call_history): Unconditionally delegate.
4496 * target.h (struct target_ops) <to_call_history>: Use
4497 TARGET_DEFAULT_NORETURN.
4499 2014-02-19 Tom Tromey <tromey@redhat.com>
4501 * target-delegates.c: Rebuild.
4502 * target.c (target_call_history_from): Unconditionally delegate.
4503 * target.h (struct target_ops) <to_call_history_from>: Use
4504 TARGET_DEFAULT_NORETURN.
4506 2014-02-19 Tom Tromey <tromey@redhat.com>
4508 * target-delegates.c: Rebuild.
4509 * target.c (target_call_history_range): Unconditionally delegate.
4510 * target.h (struct target_ops) <to_call_history_range>: Use
4511 TARGET_DEFAULT_NORETURN.
4513 2014-02-19 Tom Tromey <tromey@redhat.com>
4515 * target-delegates.c: Rebuild.
4516 * target.c (target_verify_memory): Unconditionally delegate.
4517 * target.h (struct target_ops) <to_verify_memory>: Use
4518 TARGET_DEFAULT_NORETURN.
4520 2014-02-19 Tom Tromey <tromey@redhat.com>
4522 * target-delegates.c: Rebuild.
4523 * target.c (target_core_of_thread): Unconditionally delegate.
4524 * target.h (struct target_ops) <to_core_of_thread>: Use
4525 TARGET_DEFAULT_RETURN.
4527 2014-02-19 Tom Tromey <tromey@redhat.com>
4529 * target-delegates.c: Rebuild.
4530 * target.c (target_flash_done): Unconditionally delegate.
4531 * target.h (struct target_ops) <to_flash_done>: Use
4532 TARGET_DEFAULT_NORETURN.
4534 2014-02-19 Tom Tromey <tromey@redhat.com>
4536 * target-delegates.c: Rebuild.
4537 * target.c (target_flash_erase): Unconditionally delegate.
4538 * target.h (struct target_ops) <to_flash_erase>: Use
4539 TARGET_DEFAULT_NORETURN.
4541 2014-02-19 Tom Tromey <tromey@redhat.com>
4543 * target-delegates.c: Rebuild.
4544 * target.c (target_get_section_table): Unconditionally delegate.
4545 * target.h (struct target_ops) <to_get_section_table>: Use
4546 TARGET_DEFAULT_RETURN.
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target-delegates.c: Rebuild.
4551 * target.c (target_pid_to_str): Unconditionally delegate.
4552 (init_dummy_target): Don't initialize to_pid_to_str.
4553 (default_pid_to_str): Rename from dummy_pid_to_str.
4554 * target.h (struct target_ops) <to_pid_to_str>: Use
4555 TARGET_DEFAULT_FUNC.
4557 2014-02-19 Tom Tromey <tromey@redhat.com>
4559 * target-delegates.c: Rebuild.
4560 * target.c (target_find_new_threads): Unconditionally delegate.
4561 * target.h (struct target_ops) <to_find_new_threads>: Use
4562 TARGET_DEFAULT_RETURN.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target-delegates.c: Rebuild.
4567 * target.c (target_program_signals): Unconditionally delegate.
4568 * target.h (struct target_ops) <to_program_signals>: Use
4569 TARGET_DEFAULT_IGNORE.
4571 2014-02-19 Tom Tromey <tromey@redhat.com>
4573 * target-delegates.c: Rebuild.
4574 * target.c (target_pass_signals): Unconditionally delegate.
4575 * target.h (struct target_ops) <to_pass_signals>: Use
4576 TARGET_DEFAULT_IGNORE.
4578 2014-02-19 Tom Tromey <tromey@redhat.com>
4580 * target-delegates.c: Rebuild.
4581 * target.c (default_mourn_inferior): New function.
4582 (target_mourn_inferior): Unconditionally delegate.
4583 * target.h (struct target_ops) <to_mourn_inferior>: Use
4584 TARGET_DEFAULT_FUNC.
4586 2014-02-19 Tom Tromey <tromey@redhat.com>
4588 * target-delegates.c: Rebuild.
4589 * target.c (default_follow_fork): New function.
4590 (target_follow_fork): Unconditionally delegate.
4591 * target.h (struct target_ops) <to_follow_fork>: Use
4592 TARGET_DEFAULT_FUNC.
4594 2014-02-19 Tom Tromey <tromey@redhat.com>
4596 * target-delegates.c: Rebuild.
4597 * target.c (target_kill): Unconditionally delegate.
4598 * target.h (struct target_ops) <to_kill>: Use
4599 TARGET_DEFAULT_NORETURN.
4601 2014-02-19 Tom Tromey <tromey@redhat.com>
4603 * target-delegates.c: Rebuild.
4604 * target.c (target_masked_watch_num_registers): Unconditionally
4606 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4607 Use TARGET_DEFAULT_RETURN.
4609 2014-02-19 Tom Tromey <tromey@redhat.com>
4611 * target-delegates.c: Rebuild.
4612 * target.c (target_remove_mask_watchpoint): Unconditionally
4614 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4615 TARGET_DEFAULT_RETURN.
4617 2014-02-19 Tom Tromey <tromey@redhat.com>
4619 * target-delegates.c: Rebuild.
4620 * target.c (target_insert_mask_watchpoint): Unconditionally
4622 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4623 TARGET_DEFAULT_RETURN.
4625 2014-02-19 Tom Tromey <tromey@redhat.com>
4627 * target-delegates.c: Rebuild.
4628 * target.c (target_ranged_break_num_registers): Unconditionally
4630 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4631 Use TARGET_DEFAULT_RETURN.
4633 2014-02-19 Tom Tromey <tromey@redhat.com>
4635 * target-delegates.c: Rebuild.
4636 * target.c (target_fetch_registers): Unconditionally delegate.
4637 * target.h (struct target_ops) <to_fetch_registers>: Use
4638 TARGET_DEFAULT_NORETURN.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target-delegates.c: Rebuild.
4643 * target.c (update_current_target): Don't inherit or default
4645 * target.h (struct target_ops) <to_stop>: Use
4646 TARGET_DEFAULT_IGNORE.
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target-delegates.c: Rebuild.
4651 * target.c (update_current_target): Don't inherit or default
4652 to_can_run_breakpoint_commands.
4653 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4654 Use TARGET_DEFAULT_RETURN.
4656 2014-02-19 Tom Tromey <tromey@redhat.com>
4658 * target-delegates.c: Rebuild.
4659 * target.c (update_current_target): Don't inherit or default
4660 to_supports_evaluation_of_breakpoint_conditions.
4661 * target.h (struct target_ops)
4662 <to_supports_evaluation_of_breakpoint_conditions>: Use
4663 TARGET_DEFAULT_RETURN.
4665 2014-02-19 Tom Tromey <tromey@redhat.com>
4667 * target-delegates.c: Rebuild.
4668 * target.c (update_current_target): Don't inherit or default
4669 to_augmented_libraries_svr4_read.
4670 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4671 Use TARGET_DEFAULT_RETURN.
4673 2014-02-19 Tom Tromey <tromey@redhat.com>
4675 * target-delegates.c: Rebuild.
4676 * target.c (update_current_target): Don't inherit or default
4678 * target.h (struct target_ops) <to_can_use_agent>: Use
4679 TARGET_DEFAULT_RETURN.
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target-delegates.c: Rebuild.
4684 * target.c (update_current_target): Don't inherit or default
4686 * target.h (struct target_ops) <to_use_agent>: Use
4687 TARGET_DEFAULT_NORETURN.
4689 2014-02-19 Tom Tromey <tromey@redhat.com>
4691 * target-delegates.c: Rebuild.
4692 * target.c (update_current_target): Don't inherit or default
4694 (return_null): Remove.
4695 * target.h (struct target_ops) <to_traceframe_info>: Use
4696 TARGET_DEFAULT_RETURN.
4698 2014-02-19 Tom Tromey <tromey@redhat.com>
4700 * target-delegates.c: Rebuild.
4701 * target.c (update_current_target): Don't inherit or default
4702 to_static_tracepoint_markers_by_strid.
4703 * target.h (struct target_ops)
4704 <to_static_tracepoint_markers_by_strid>: Use
4705 TARGET_DEFAULT_NORETURN.
4707 2014-02-19 Tom Tromey <tromey@redhat.com>
4709 * target-delegates.c: Rebuild.
4710 * target.c (update_current_target): Don't inherit or default
4711 to_static_tracepoint_marker_at.
4712 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4713 Use TARGET_DEFAULT_RETURN.
4715 2014-02-19 Tom Tromey <tromey@redhat.com>
4717 * target-delegates.c: Rebuild.
4718 * target.c (update_current_target): Don't inherit or default
4720 * target.h (struct target_ops) <to_set_permissions>: Use
4721 TARGET_DEFAULT_IGNORE.
4723 2014-02-19 Tom Tromey <tromey@redhat.com>
4725 * target-delegates.c: Rebuild.
4726 * target.c (update_current_target): Don't inherit or default
4728 * target.h (struct target_ops) <to_get_tib_address>: Use
4729 TARGET_DEFAULT_NORETURN.
4731 2014-02-19 Tom Tromey <tromey@redhat.com>
4733 * target-delegates.c: Rebuild.
4734 * target.c (update_current_target): Don't inherit or default
4736 * target.h (struct target_ops) <to_set_trace_notes>: Use
4737 TARGET_DEFAULT_RETURN.
4739 2014-02-19 Tom Tromey <tromey@redhat.com>
4741 * target-delegates.c: Rebuild.
4742 * target.c (update_current_target): Don't initialize
4743 to_set_trace_buffer_size.
4744 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4745 TARGET_DEFAULT_IGNORE.
4747 2014-02-19 Tom Tromey <tromey@redhat.com>
4749 * target-delegates.c: Rebuild.
4750 * target.c (update_current_target): Don't inherit or default
4751 to_set_circular_trace_buffer.
4752 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4753 TARGET_DEFAULT_IGNORE.
4755 2014-02-19 Tom Tromey <tromey@redhat.com>
4757 * target-delegates.c: Rebuild.
4758 * target.c (update_current_target): Don't inherit or default
4759 to_set_disconnected_tracing.
4760 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4761 TARGET_DEFAULT_IGNORE.
4763 2014-02-19 Tom Tromey <tromey@redhat.com>
4765 * target-delegates.c: Rebuild.
4766 * target.c (update_current_target): Don't inherit or default
4767 to_get_min_fast_tracepoint_insn_len.
4768 (return_minus_one): Remove.
4769 * target.h (struct target_ops)
4770 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4772 2014-02-19 Tom Tromey <tromey@redhat.com>
4774 * target-delegates.c: Rebuild.
4775 * target.c (update_current_target): Don't inherit or default
4776 to_get_raw_trace_data.
4777 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4778 TARGET_DEFAULT_NORETURN.
4780 2014-02-19 Tom Tromey <tromey@redhat.com>
4782 * target-delegates.c: Rebuild.
4783 * target.c (update_current_target): Don't inherit or default
4784 to_upload_trace_state_variables.
4785 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4786 Use TARGET_DEFAULT_RETURN.
4788 2014-02-19 Tom Tromey <tromey@redhat.com>
4790 * target-delegates.c: Rebuild.
4791 * target.c (update_current_target): Don't inherit or default
4792 to_upload_tracepoints.
4793 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4794 TARGET_DEFAULT_RETURN.
4796 2014-02-19 Tom Tromey <tromey@redhat.com>
4798 * target-delegates.c: Rebuild.
4799 * target.c (update_current_target): Don't inherit or default
4801 * target.h (struct target_ops) <to_save_trace_data>: Use
4802 TARGET_DEFAULT_NORETURN.
4804 2014-02-19 Tom Tromey <tromey@redhat.com>
4806 * target-delegates.c: Rebuild.
4807 * target.c (update_current_target): Don't inherit or default
4808 to_get_trace_state_variable_value.
4809 * target.h (struct target_ops)
4810 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target-delegates.c: Rebuild.
4815 * target.c (update_current_target): Don't inherit or default
4817 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4819 2014-02-19 Tom Tromey <tromey@redhat.com>
4821 * target-delegates.c: Rebuild.
4822 * target.c (update_current_target): Don't inherit or default
4824 * target.h (struct target_ops) <to_trace_stop>: Use
4825 TARGET_DEFAULT_NORETURN.
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * target-delegates.c: Rebuild.
4830 * target.c (update_current_target): Don't inherit or default
4831 to_get_tracepoint_status.
4832 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4833 TARGET_DEFAULT_NORETURN.
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target-delegates.c: Rebuild.
4838 * target.c (update_current_target): Don't inherit or default
4839 to_get_trace_status.
4840 * target.h (struct target_ops) <to_get_trace_status>: Use
4841 TARGET_DEFAULT_RETURN.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target-delegates.c: Rebuild.
4846 * target.c (update_current_target): Don't inherit or default
4848 * target.h (struct target_ops) <to_trace_start>: Use
4849 TARGET_DEFAULT_NORETURN.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target-delegates.c: Rebuild.
4854 * target.c (update_current_target): Don't inherit or default
4855 to_trace_set_readonly_regions.
4856 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4857 Use TARGET_DEFAULT_NORETURN.
4859 2014-02-19 Tom Tromey <tromey@redhat.com>
4861 * target-delegates.c: Rebuild.
4862 * target.c (update_current_target): Don't inherit or default
4863 to_disable_tracepoint.
4864 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4865 TARGET_DEFAULT_NORETURN.
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target-delegates.c: Rebuild.
4870 * target.c (update_current_target): Don't inherit or default
4871 to_enable_tracepoint.
4872 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4873 TARGET_DEFAULT_NORETURN.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target-delegates.c: Rebuild.
4878 * target.c (update_current_target): Don't inherit or default
4879 to_download_trace_state_variable.
4880 * target.h (struct target_ops) <to_download_trace_state_variable>:
4881 Use TARGET_DEFAULT_NORETURN.
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target-delegates.c: Rebuild.
4886 * target.c (update_current_target): Don't inherit or default
4887 to_can_download_tracepoint.
4888 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4889 TARGET_DEFAULT_RETURN.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (update_current_target): Don't inherit or default
4895 to_download_tracepoint.
4896 * target.h (struct target_ops) <to_download_tracepoint>: Use
4897 TARGET_DEFAULT_NORETURN.
4899 2014-02-19 Tom Tromey <tromey@redhat.com>
4901 * target-delegates.c: Rebuild.
4902 * target.c (update_current_target): Don't inherit or default
4904 * target.h (struct target_ops) <to_trace_init>: Use
4905 TARGET_DEFAULT_RETURN.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target-delegates.c: Rebuild.
4910 * target.c (update_current_target): Don't inherit or default
4911 to_supports_string_tracing.
4912 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4913 TARGET_DEFAULT_RETURN.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target-delegates.c: Rebuild.
4918 * target.c (update_current_target): Don't inherit or default
4919 to_supports_enable_disable_tracepoint.
4920 * target.h (struct target_ops)
4921 <to_supports_enable_disable_tracepoint>: Use
4922 TARGET_DEFAULT_RETURN.
4924 2014-02-19 Tom Tromey <tromey@redhat.com>
4926 * target-delegates.c: Rebuild.
4927 * target.c (update_current_target): Don't inherit or default
4928 to_supports_multi_process.
4929 * target.h (struct target_ops) <to_supports_multi_process>: Use
4930 TARGET_DEFAULT_RETURN.
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4934 * target-delegates.c: Rebuild.
4935 * target.c (update_current_target): Don't inherit or default
4936 to_get_ada_task_ptid.
4937 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4938 TARGET_DEFAULT_FUNC.
4940 2014-02-19 Tom Tromey <tromey@redhat.com>
4942 * target-delegates.c: Rebuild.
4943 * target.c (update_current_target): Don't inherit or default
4944 to_thread_architecture.
4945 * target.h (struct target_ops) <to_thread_architecture>: Use
4946 TARGET_DEFAULT_FUNC.
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4950 * target-delegates.c: Rebuild.
4951 * target.c (update_current_target): Don't inherit or default
4952 to_execution_direction.
4953 * target.h (struct target_ops) <to_execution_direction>: Use
4954 TARGET_DEFAULT_FUNC.
4956 2014-02-19 Tom Tromey <tromey@redhat.com>
4958 * target-delegates.c: Rebuild.
4959 * target.c (update_current_target): Don't inherit or default
4960 to_can_execute_reverse.
4961 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4962 TARGET_DEFAULT_RETURN.
4963 (target_can_execute_reverse): Unconditionally delegate.
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target-delegates.c: Rebuild.
4968 * target.c (update_current_target): Don't inherit or default
4970 (dummy_goto_bookmark): Remove.
4971 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4972 * target.h (struct target_ops) <to_goto_bookmark>: Use
4973 TARGET_DEFAULT_NORETURN.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target-delegates.c: Rebuild.
4978 * target.c (update_current_target): Don't inherit or default
4980 (dummy_get_bookmark): Remove.
4981 (init_dummy_target): Don't inherit or default to_get_bookmark.
4982 * target.h (struct target_ops) <to_get_bookmark>: Use
4983 TARGET_DEFAULT_NORETURN
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * target-delegates.c: Rebuild.
4988 * target.c (update_current_target): Don't inherit or default
4989 to_make_corefile_notes.
4990 (init_dummy_target): Don't initialize to_make_corefile_notes.
4991 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4992 TARGET_DEFAULT_FUNC.
4994 2014-02-19 Tom Tromey <tromey@redhat.com>
4996 * target-delegates.c: Rebuild.
4997 * target.c (update_current_target): Don't inherit or default
4998 to_find_memory_regions.
4999 (init_dummy_target): Don't initialize to_find_memory_regions.
5000 * target.h (struct target_ops) <to_find_memory_regions>: Use
5001 TARGET_DEFAULT_FUNC.
5003 2014-02-19 Tom Tromey <tromey@redhat.com>
5005 * target-delegates.c: Rebuild.
5006 * target.c (update_current_target): Don't inherit or default
5008 * target.h (struct target_ops) <to_log_command>: Use
5009 TARGET_DEFAULT_IGNORE.
5010 (target_log_command): Unconditionally delegate.
5012 2014-02-19 Tom Tromey <tromey@redhat.com>
5014 * target-delegates.c: Rebuild.
5015 * target.c (update_current_target): Don't inherit or default
5016 to_pid_to_exec_file.
5017 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5018 TARGET_DEFAULT_RETURN.
5020 2014-02-19 Tom Tromey <tromey@redhat.com>
5022 * target-delegates.c: Rebuild.
5023 * target.c (update_current_target): Don't inherit or default
5025 (target_thread_name): Unconditionally delegate.
5026 * target.h (struct target_ops) <to_thread_name>: Use
5027 TARGET_DEFAULT_RETURN.
5029 2014-02-19 Tom Tromey <tromey@redhat.com>
5031 * target-delegates.c: Rebuild.
5032 * target.c (update_current_target): Don't inherit or default
5033 to_extra_thread_info.
5034 * target.h (struct target_ops) <to_extra_thread_info>: Use
5035 TARGET_DEFAULT_RETURN.
5037 2014-02-19 Tom Tromey <tromey@redhat.com>
5039 * target-delegates.c: Rebuild.
5040 * target.c (update_current_target): Don't inherit or default
5042 * target.h (struct target_ops) <to_has_exited>: Use
5043 TARGET_DEFAULT_RETURN..
5045 2014-02-19 Tom Tromey <tromey@redhat.com>
5047 * target-delegates.c: Rebuild.
5048 * target.c (update_current_target): Don't inherit or default
5049 to_set_syscall_catchpoint.
5050 (return_one): Remove.
5051 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5052 TARGET_DEFAULT_RETURN.
5054 2014-02-19 Tom Tromey <tromey@redhat.com>
5056 * target-delegates.c: Rebuild.
5057 * target.c (update_current_target): Don't inherit or default
5058 to_insert_exec_catchpoint.
5059 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5060 TARGET_DEFAULT_RETURN.
5062 2014-01-08 Tom Tromey <tromey@redhat.com>
5064 * target-delegates.c: Rebuild.
5065 * target.c (update_current_target): Don't inherit or default
5066 to_insert_exec_catchpoint.
5067 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5068 TARGET_DEFAULT_RETURN.
5070 2014-02-19 Tom Tromey <tromey@redhat.com>
5072 * target-delegates.c: Rebuild.
5073 * target.c (update_current_target): Don't inherit or default
5074 to_remove_vfork_catchpoint.
5075 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5076 TARGET_DEFAULT_RETURN.
5078 2014-02-19 Tom Tromey <tromey@redhat.com>
5080 * target-delegates.c: Rebuild.
5081 * target.c (update_current_target): Don't inherit or default
5082 to_insert_vfork_catchpoint.
5083 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5084 TARGET_DEFAULT_RETURN.
5086 2014-02-19 Tom Tromey <tromey@redhat.com>
5088 * target-delegates.c: Rebuild.
5089 * target.c (update_current_target): Don't inherit or default
5090 to_remove_fork_catchpoint.
5091 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5092 TARGET_DEFAULT_RETURN.
5094 2014-02-19 Tom Tromey <tromey@redhat.com>
5096 * target-delegates.c: Rebuild.
5097 * target.c (update_current_target): Don't inherit or default
5098 to_insert_fork_catchpoint.
5099 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5100 TARGET_DEFAULT_RETURN.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target-delegates.c: Rebuild.
5105 * target.c (update_current_target): Don't inherit or default
5106 to_post_startup_inferior.
5107 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5108 TARGET_DEFAULT_IGNORE.
5110 2014-02-19 Tom Tromey <tromey@redhat.com>
5112 * target-delegates.c: Rebuild.
5113 * target.c (update_current_target): Don't inherit or default
5115 * target.h (struct target_ops) <to_load>: Use
5116 TARGET_DEFAULT_NORETURN.
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5120 * target-delegates.c: Rebuild.
5121 * target.c (update_current_target): Don't inherit or default
5123 * target.h (struct target_ops) <to_terminal_info>: Use
5124 TARGET_DEFAULT_FUNC.
5126 2014-02-19 Tom Tromey <tromey@redhat.com>
5128 * target-delegates.c: Rebuild.
5129 * target.c (update_current_target): Don't inherit or default
5130 to_terminal_save_ours.
5131 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5132 TARGET_DEFAULT_IGNORE.
5134 2014-02-19 Tom Tromey <tromey@redhat.com>
5136 * target-delegates.c: Rebuild.
5137 * target.c (update_current_target): Don't inherit or default
5139 * target.h (struct target_ops) <to_terminal_ours>: Use
5140 TARGET_DEFAULT_IGNORE.
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target-delegates.c: Rebuild.
5145 * target.c (update_current_target): Don't inherit or default
5146 to_terminal_ours_for_output.
5147 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5148 TARGET_DEFAULT_IGNORE.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5152 * target-delegates.c: Rebuild.
5153 * target.c (update_current_target): Don't inherit or default
5154 to_terminal_inferior.
5155 * target.h (struct target_ops) <to_terminal_inferior>: Use
5156 TARGET_DEFAULT_IGNORE.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target-delegates.c: Rebuild.
5161 * target.c (update_current_target): Don't inherit or default
5163 * target.h (struct target_ops) <to_terminal_init>: Use
5164 TARGET_DEFAULT_IGNORE.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target-delegates.c: Rebuild.
5169 * target.c (update_current_target): Don't inherit or default
5170 to_can_accel_watchpoint_condition.
5171 * target.h (struct target_ops)
5172 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target-delegates.c: Rebuild.
5177 * target.c (update_current_target): Don't inherit or default
5178 to_region_ok_for_hw_watchpoint.
5179 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5180 Use TARGET_DEFAULT_FUNC.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target-delegates.c: Rebuild.
5185 * target.c (update_current_target): Don't inherit or default
5186 to_watchpoint_addr_within_range.
5187 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5188 Use TARGET_DEFAULT_FUNC.
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target-delegates.c: Rebuild.
5193 * target.c (update_current_target): Don't inherit or default
5194 to_remove_watchpoint.
5195 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5196 TARGET_DEFAULT_NORETURN.
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (update_current_target): Don't inherit or default
5202 to_insert_watchpoint.
5203 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5204 TARGET_DEFAULT_RETURN.
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5208 * target-delegates.c: Rebuild.
5209 * target.c (update_current_target): Don't inherit or default
5210 to_remove_hw_breakpoint.
5211 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5212 TARGET_DEFAULT_RETURN.
5214 2014-02-19 Tom Tromey <tromey@redhat.com>
5216 * target-delegates.c: Rebuild.
5217 * target.c (update_current_target): Don't inherit or default
5218 to_insert_hw_breakpoint.
5219 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5220 TARGET_DEFAULT_RETURN.
5222 2014-02-19 Tom Tromey <tromey@redhat.com>
5224 * target-delegates.c: Rebuild.
5225 * target.c (update_current_target): Don't inherit or default
5226 to_can_use_hw_breakpoint.
5227 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5228 TARGET_DEFAULT_RETURN.
5230 2014-02-19 Tom Tromey <tromey@redhat.com>
5232 * target-delegates.c: Rebuild.
5233 * target.c (update_current_target): Don't inherit or default
5235 * target.h (struct target_ops) <to_files_info>: Use
5236 TARGET_DEFAULT_IGNORE.
5238 2014-02-19 Tom Tromey <tromey@redhat.com>
5240 * target-delegates.c: Rebuild.
5241 * target.c (update_current_target): Don't inherit or default
5243 * target.h (struct target_ops) <to_store>: Use
5244 TARGET_DEFAULT_NORETURN.
5246 2014-02-19 Tom Tromey <tromey@redhat.com>
5248 * target-delegates.c: Rebuild.
5249 * target.c (update_current_target): Don't inherit or default
5251 * target.h (struct target_ops) <to_post_attach>: Use
5252 TARGET_DEFAULT_IGNORE.
5254 2014-02-19 Tom Tromey <tromey@redhat.com>
5256 * target-delegates.c: Rebuild.
5257 * target.c (update_current_target): Don't inherit or default
5259 (default_rcmd): New function.
5260 (do_monitor_command): Unconditionally delegate.
5261 * target.h (struct target_ops) <to_rmcd>: Use
5262 TARGET_DEFAULT_FUNC.
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target-delegates.c: Rebuild.
5267 * target.c (init_dummy_target): Don't initialize to_attach.
5268 (target_attach): Unconditionally delegate.
5269 * target.h (struct target_ops) <to_attach>: Use
5270 TARGET_DEFAULT_FUNC.
5272 2014-02-19 Tom Tromey <tromey@redhat.com>
5274 * target-delegates.c: Rebuild.
5275 * target.c (target_detach): Unconditionally delegate.
5276 (init_dummy_target): Don't initialize to_detach.
5277 * target.h (struct target_ops) <to_detach>: Use
5278 TARGET_DEFAULT_IGNORE.
5280 2014-02-19 Tom Tromey <tromey@redhat.com>
5282 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5284 (target_augmented_libraries_svr4_read): Add argument.
5285 * target.c (update_current_target): Update.
5286 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5289 2014-02-19 Tom Tromey <tromey@redhat.com>
5291 * target.h (struct target_ops) <to_call_history_range>: Add
5293 * target.c (target_call_history_range): Add argument.
5294 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5296 (record_btrace_call_history_from): Update.
5298 2014-02-19 Tom Tromey <tromey@redhat.com>
5300 * target.h (struct target_ops) <to_call_history_from>: Add
5302 * target.c (target_call_history_from): Add argument.
5303 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5306 2014-02-19 Tom Tromey <tromey@redhat.com>
5308 * target.h (struct target_ops) <to_call_history>: Add argument.
5309 * target.c (target_call_history): Add argument.
5310 * record-btrace.c (record_btrace_call_history): Add 'self'
5313 2014-02-19 Tom Tromey <tromey@redhat.com>
5315 * target.h (struct target_ops) <to_insn_history_range>: Add
5317 * target.c (target_insn_history_range): Add argument.
5318 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5320 (record_btrace_insn_history_from): Update.
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target.h (struct target_ops) <to_insn_history_from>: Add
5326 * target.c (target_insn_history_from): Add argument.
5327 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target.h (struct target_ops) <to_insn_history>: Add argument.
5333 * target.c (target_insn_history): Add argument.
5334 * record-btrace.c (record_btrace_insn_history): Add 'self'
5337 2014-02-19 Tom Tromey <tromey@redhat.com>
5339 * target.h (struct target_ops) <to_goto_record>: Add argument.
5340 * target.c (target_goto_record): Add argument.
5341 * record-full.c (record_full_goto): Add 'self' argument.
5342 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5344 2014-02-19 Tom Tromey <tromey@redhat.com>
5346 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5347 * target.c (target_goto_record_end): Add argument.
5348 * record-full.c (record_full_goto_end): Add 'self' argument.
5349 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5351 2014-02-19 Tom Tromey <tromey@redhat.com>
5353 * target.h (struct target_ops) <to_goto_record_begin>: Add
5355 * target.c (target_goto_record_begin): Add argument.
5356 * record-full.c (record_full_goto_begin): Add 'self' argument.
5357 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5362 * target.h (struct target_ops) <to_record_is_replaying>: Add
5364 * target.c (target_record_is_replaying): Add argument.
5365 * record-full.c (record_full_is_replaying): Add 'self' argument.
5366 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5368 (record_btrace_xfer_partial, record_btrace_store_registers)
5369 (record_btrace_prepare_to_store, record_btrace_resume)
5370 (record_btrace_wait, record_btrace_decr_pc_after_break)
5371 (record_btrace_find_new_threads, record_btrace_thread_alive):
5374 2014-02-19 Tom Tromey <tromey@redhat.com>
5376 * target.h (struct target_ops) <to_delete_record>: Add argument.
5377 * target.c (target_delete_record): Add argument.
5378 * record-full.c (record_full_delete): Add 'self' argument.
5380 2014-02-19 Tom Tromey <tromey@redhat.com>
5382 * target.h (struct target_ops) <to_save_record>: Add argument.
5383 * target.c (target_save_record): Add argument.
5384 * record-full.c (record_full_save): Add 'self' argument.
5385 (record_full_save): Add 'self' argument.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target.h (struct target_ops) <to_info_record>: Add argument.
5390 * target.c (target_info_record): Add argument.
5391 * record.c (info_record_command): Add argument.
5392 * record-full.c (record_full_info): Add 'self' argument.
5393 * record-btrace.c (record_btrace_info): Add 'self' argument.
5395 2014-02-19 Tom Tromey <tromey@redhat.com>
5397 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5398 * target.c (target_stop_recording): Add argument.
5399 * record.c (record_stop): Add argument.
5400 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5403 2014-02-19 Tom Tromey <tromey@redhat.com>
5405 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5406 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5407 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5409 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5410 (_initialize_amd64_linux_nat): Use it.
5411 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5412 (_initialize_i386_linux_nat): Use it.
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5417 * target.c (target_teardown_btrace): Add argument.
5418 * remote.c (remote_teardown_btrace): Add 'self' argument.
5419 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5421 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5424 2014-02-19 Tom Tromey <tromey@redhat.com>
5426 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5427 * target.c (target_disable_btrace): Add argument.
5428 * remote.c (remote_disable_btrace): Add 'self' argument.
5429 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5431 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5434 2014-02-19 Tom Tromey <tromey@redhat.com>
5436 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5437 * target.c (target_enable_btrace): Add argument.
5438 * remote.c (remote_enable_btrace): Add 'self' argument.
5439 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5441 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5447 (target_can_use_agent): Add argument.
5448 * target.c (update_current_target): Update.
5449 * remote.c (remote_can_use_agent): Add 'self' argument.
5450 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5452 2014-02-19 Tom Tromey <tromey@redhat.com>
5454 * target.h (struct target_ops) <to_use_agent>: Add argument.
5455 (target_use_agent): Add argument.
5456 * target.c (update_current_target): Update.
5457 * remote.c (remote_use_agent): Add 'self' argument.
5458 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5460 2014-02-19 Tom Tromey <tromey@redhat.com>
5462 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5463 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5464 (target_traceframe_info): Add argument.
5465 * target.c (update_current_target): Update.
5466 * remote.c (remote_traceframe_info): Add 'self' argument.
5467 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5469 2014-02-19 Tom Tromey <tromey@redhat.com>
5471 * target.h (target_static_tracepoint_markers_by_strid): Add
5473 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5475 * target.c (update_current_target): Update.
5476 * remote.c (struct target_ops)
5477 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5478 * linux-nat.c (struct target_ops)
5479 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5485 (target_static_tracepoint_marker_at): Add argument.
5486 * target.c (update_current_target): Update.
5487 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5490 2014-02-19 Tom Tromey <tromey@redhat.com>
5492 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5493 (target_set_permissions): Add argument.
5494 * target.c (update_current_target): Update.
5495 * remote.c (remote_set_permissions): Add 'self' argument.
5496 (remote_start_remote): Update.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5501 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5502 (target_get_tib_address): Add argument.
5503 * target.c (update_current_target): Update.
5504 * remote.c (remote_get_tib_address): Add 'self' argument.
5506 2014-02-19 Tom Tromey <tromey@redhat.com>
5508 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5509 (target_set_trace_notes): Add argument.
5510 * target.c (update_current_target): Update.
5511 * remote.c (remote_set_trace_notes): Add 'self' argument.
5513 2014-02-19 Tom Tromey <tromey@redhat.com>
5515 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5517 (target_set_trace_buffer_size): Add argument.
5518 * target.c (update_current_target): Update.
5519 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5525 (target_set_circular_trace_buffer): Add argument.
5526 * target.c (update_current_target): Update.
5527 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5530 2014-02-19 Tom Tromey <tromey@redhat.com>
5532 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5534 (target_set_disconnected_tracing): Add argument.
5535 * target.c (update_current_target): Update.
5536 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5538 2014-02-19 Tom Tromey <tromey@redhat.com>
5540 * target.h (struct target_ops)
5541 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5542 (target_get_min_fast_tracepoint_insn_len): Add argument.
5543 * target.c (update_current_target): Update.
5544 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5547 2014-02-19 Tom Tromey <tromey@redhat.com>
5549 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5551 (target_get_raw_trace_data): Add argument.
5552 * target.c (update_current_target): Update.
5553 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5555 2014-02-19 Tom Tromey <tromey@redhat.com>
5557 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5559 (target_upload_trace_state_variables): Add argument.
5560 * target.c (update_current_target): Update.
5561 * remote.c (remote_upload_trace_state_variables): Add 'self'
5563 (remote_start_remote): Update.
5565 2014-02-19 Tom Tromey <tromey@redhat.com>
5567 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5569 (target_upload_tracepoints): Add argument.
5570 * target.c (update_current_target): Update.
5571 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5572 (remote_start_remote): Update.
5574 2014-02-19 Tom Tromey <tromey@redhat.com>
5576 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5577 (target_save_trace_data): Add argument.
5578 * target.c (update_current_target): Update.
5579 * remote.c (remote_save_trace_data): Add 'self' argument.
5581 2014-02-19 Tom Tromey <tromey@redhat.com>
5583 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5585 * target.h (struct target_ops)
5586 <to_get_trace_state_variable_value>: Add argument.
5587 (target_get_trace_state_variable_value): Add argument.
5588 * target.c (update_current_target): Update.
5589 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5591 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5593 2014-02-19 Tom Tromey <tromey@redhat.com>
5595 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5596 * target.h (struct target_ops) <to_trace_find>: Add argument.
5597 (target_trace_find): Add argument.
5598 * target.c (update_current_target): Update.
5599 * remote.c (remote_trace_find): Add 'self' argument.
5600 * ctf.c (ctf_trace_find): Add 'self' argument.
5602 2014-02-19 Tom Tromey <tromey@redhat.com>
5604 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5605 (target_trace_stop): Add argument.
5606 * target.c (update_current_target): Update.
5607 * remote.c (remote_trace_stop): Add 'self' argument.
5609 2014-02-19 Tom Tromey <tromey@redhat.com>
5611 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5612 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5614 (target_get_tracepoint_status): Add argument.
5615 * target.c (update_current_target): Update.
5616 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5621 * target.h (struct target_ops) <to_get_trace_status>: Add
5623 (target_get_trace_status): Add argument.
5624 * target.c (update_current_target): Update.
5625 * remote.c (remote_get_trace_status): Add 'self' argument.
5626 (remote_start_remote, remote_can_download_tracepoint): Update.
5627 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * target.h (struct target_ops) <to_trace_start>: Add argument.
5632 (target_trace_start): Add argument.
5633 * target.c (update_current_target): Update.
5634 * remote.c (remote_trace_start): Add 'self' argument.
5636 2014-02-19 Tom Tromey <tromey@redhat.com>
5638 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5640 (target_trace_set_readonly_regions): Add argument.
5641 * target.c (update_current_target): Update.
5642 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5645 2014-02-19 Tom Tromey <tromey@redhat.com>
5647 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5649 (target_disable_tracepoint): Add argument.
5650 * target.c (update_current_target): Update.
5651 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5657 (target_enable_tracepoint): Add argument.
5658 * target.c (update_current_target): Update.
5659 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5661 2014-02-19 Tom Tromey <tromey@redhat.com>
5663 * target.h (struct target_ops) <to_download_trace_state_variable>:
5665 (target_download_trace_state_variable): Add argument.
5666 * target.c (update_current_target): Update.
5667 * remote.c (remote_download_trace_state_variable): Add 'self'
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5674 (target_can_download_tracepoint): Add argument.
5675 * target.c (update_current_target): Update.
5676 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.h (struct target_ops) <to_download_tracepoint>: Add
5682 (target_download_tracepoint): Add argument.
5683 * target.c (update_current_target): Update.
5684 * remote.c (remote_download_tracepoint): Add 'self' argument.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target.h (struct target_ops) <to_trace_init>: Add argument.
5689 (target_trace_init): Add argument.
5690 * target.c (update_current_target): Update.
5691 * remote.c (remote_trace_init): Add 'self' argument.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5696 * target.c (target_fileio_readlink): Add argument.
5697 * remote.c (remote_hostio_readlink): Add 'self' argument.
5698 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5703 * target.c (target_fileio_unlink): Add argument.
5704 * remote.c (remote_hostio_unlink): Add 'self' argument.
5705 (remote_file_delete): Update.
5706 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5708 2014-02-19 Tom Tromey <tromey@redhat.com>
5710 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5711 * target.c (target_fileio_close): Add argument.
5712 * remote.c (remote_hostio_close): Add 'self' argument.
5713 (remote_hostio_close_cleanup): Update.
5714 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5716 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5718 2014-02-19 Tom Tromey <tromey@redhat.com>
5720 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5721 * target.c (target_fileio_pread): Add argument.
5722 * remote.c (remote_hostio_pread): Add 'self' argument.
5723 (remote_bfd_iovec_pread, remote_file_get): Update.
5724 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5726 2014-02-19 Tom Tromey <tromey@redhat.com>
5728 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5729 * target.c (target_fileio_pwrite): Add argument.
5730 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5731 (remote_file_put): Update.
5732 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5734 2014-02-19 Tom Tromey <tromey@redhat.com>
5736 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5737 * target.c (target_fileio_open): Add argument.
5738 * remote.c (remote_hostio_open): Add 'self' argument.
5739 (remote_bfd_iovec_open): Add 'self' argument.
5740 (remote_file_put): Add 'self' argument.
5741 (remote_file_get): Add 'self' argument.
5742 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5744 2014-02-19 Tom Tromey <tromey@redhat.com>
5746 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5748 (target_can_run_breakpoint_commands): Add argument.
5749 * target.c (update_current_target): Update.
5750 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5752 (remote_insert_breakpoint): Add 'self' argument.
5753 (remote_insert_hw_breakpoint): Add 'self' argument.
5754 (remote_can_run_breakpoint_commands): Add 'self' argument.
5756 2014-02-19 Tom Tromey <tromey@redhat.com>
5758 * target.h (struct target_ops)
5759 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5760 (target_supports_evaluation_of_breakpoint_conditions): Add
5762 * target.c (update_current_target): Update.
5763 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5765 (remote_insert_breakpoint): Add 'self' argument.
5766 (remote_insert_hw_breakpoint): Add 'self' argument.
5767 (remote_supports_cond_breakpoints): Add 'self' argument.
5769 2014-02-19 Tom Tromey <tromey@redhat.com>
5771 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5773 (target_supports_string_tracing): Add argument.
5774 * target.c (update_current_target): Update.
5775 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5777 2014-02-19 Tom Tromey <tromey@redhat.com>
5779 * target.h (struct target_ops)
5780 <to_supports_disable_randomization>: Add argument.
5781 * target.c (find_default_supports_disable_randomization): Add
5783 (target_supports_disable_randomization): Add argument.
5784 (find_default_supports_disable_randomization): Add 'self'
5786 * remote.c (extended_remote_supports_disable_randomization): Add
5788 (remote_supports_disable_randomization): Add 'self' argument.
5789 (extended_remote_create_inferior): Update.
5790 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * target.h (struct target_ops)
5796 <to_supports_enable_disable_tracepoint>: Add argument.
5797 (target_supports_enable_disable_tracepoint): Add argument.
5798 * target.c (update_current_target): Update.
5799 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5802 2014-02-19 Tom Tromey <tromey@redhat.com>
5804 * target.h (struct target_ops) <to_supports_multi_process>: Add
5806 (target_supports_multi_process): Add argument.
5807 * target.c (update_current_target): Update.
5808 * remote.c (remote_supports_multi_process): Add 'self' argument.
5809 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5811 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5814 2014-02-19 Tom Tromey <tromey@redhat.com>
5816 * target.h (struct target_ops) <to_execution_direction>: Add
5818 (target_execution_direction): Add argument.
5819 * target.c (default_execution_direction): Add 'self' argument.
5820 * record-full.c (record_full_execution_direction): Add 'self'
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5827 (target_can_execute_reverse): Add argument.
5828 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5829 * record-full.c (record_full_can_execute_reverse): Add 'self'
5831 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5834 2014-02-19 Tom Tromey <tromey@redhat.com>
5836 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5837 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5839 (target_get_ada_task_ptid): Add argument.
5840 * target.c (update_current_target): Update.
5841 (default_get_ada_task_ptid): Add 'self' argument.
5842 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5843 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5844 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5846 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5848 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5850 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5852 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5853 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5856 2014-02-19 Tom Tromey <tromey@redhat.com>
5858 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5859 (target_goto_bookmark): Add argument.
5860 * target.c (dummy_goto_bookmark): Add 'self' argument.
5861 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5863 2014-02-19 Tom Tromey <tromey@redhat.com>
5865 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5866 (target_get_bookmark): Add argument.
5867 * target.c (dummy_get_bookmark): Add 'self' argument.
5868 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5870 2014-02-19 Tom Tromey <tromey@redhat.com>
5872 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5874 (target_make_corefile_notes): Add argument.
5875 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5876 * procfs.c (procfs_make_note_section): Add 'self' argument.
5877 (procfs_make_note_section): Add 'self' argument.
5878 (procfs_make_note_section): Add 'self' argument.
5879 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5881 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5882 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5883 * exec.c (exec_make_note_section): Add 'self' argument.
5884 (exec_make_note_section): Add 'self' argument.
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5888 * target.h (struct target_ops) <to_find_memory_regions>: Add
5890 (target_find_memory_regions): Add argument.
5891 * target.c (dummy_find_memory_regions): Add 'self' argument.
5892 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5893 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5894 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5895 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5896 * exec. (exec_do_find_memory_regions): New global.
5897 (exec_set_find_memory_regions): Rewrite.
5898 (exec_find_memory_regions): New function.
5899 (init_exec_ops): Use exec_find_memory_regions.
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target.h (struct target_ops) <to_supports_non_stop>: Add
5905 * target.c (find_default_supports_non_stop): Add argument.
5906 (target_supports_non_stop): Add argument.
5907 (find_default_supports_non_stop): Add 'self' argument.
5908 * remote.c (remote_supports_non_stop): Add 'self' argument.
5909 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target.h (struct target_ops) <to_log_command>: Add argument.
5914 (target_log_command): Add argument.
5915 * serial.h (serial_log_command): Add 'self' argument.
5916 * serial.c (serial_log_command): Add 'self' argument.
5918 2014-02-19 Tom Tromey <tromey@redhat.com>
5920 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5921 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5923 (target_pid_to_exec_file): Add argument.
5924 * target.c (debug_to_pid_to_exec_file): Add argument.
5925 (update_current_target): Update.
5926 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5927 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5928 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5929 (linux_handle_extended_wait): Update.
5930 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5931 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5932 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5933 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5937 * target.h (struct target_ops) <to_rcmd>: Add argument.
5938 (target_rcmd): Add argument.
5939 * target.c (debug_to_rcmd): Add argument.
5940 (update_current_target, do_monitor_command): Update.
5941 * remote.c (remote_rcmd): Add 'self' argument.
5942 * monitor.c (monitor_rcmd): Add 'self' argument.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * windows-nat.c (windows_stop): Add 'self' argument.
5947 * target.h (struct target_ops) <to_stop>: Add argument.
5948 * target.c (target_stop): Add argument.
5949 (debug_to_stop): Add argument.
5950 (update_current_target): Update.
5951 * remote.c (remote_stop): Add 'self' argument.
5952 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5953 (gdbsim_cntrl_c): Update.
5954 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5955 * procfs.c (procfs_stop): Add 'self' argument.
5956 * nto-procfs.c (procfs_stop): Add 'self' argument.
5957 * monitor.c (monitor_stop): Add 'self' argument.
5958 (monitor_open): Update.
5959 * linux-nat.c (linux_nat_stop): Add argument.
5960 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5961 * gnu-nat.c (gnu_stop): Add 'self' argument.
5962 * darwin-nat.c (darwin_stop): Add 'self' argument.
5964 2014-02-19 Tom Tromey <tromey@redhat.com>
5966 * target.h (struct target_ops) <to_thread_name>: Add argument.
5967 * target.c (target_thread_name): Add argument.
5968 (update_current_target): Update.
5969 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5971 2014-02-19 Tom Tromey <tromey@redhat.com>
5973 * target.h (struct target_ops) <to_extra_thread_info>: Add
5975 (target_extra_thread_info): Add argument.
5976 * target.c (update_current_target): Update.
5977 * remote.c (remote_threads_extra_info): Add 'self' argument.
5978 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5980 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5981 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5982 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5984 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5986 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5988 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target.h (struct target_ops) <to_program_signals>: Add argument.
5994 * target.c (target_program_signals): Add argument.
5995 * remote.c (remote_program_signals): Add 'self' argument.
5997 2014-02-19 Tom Tromey <tromey@redhat.com>
5999 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6000 * target.c (target_pass_signals): Add argument.
6001 * remote.c (remote_pass_signals): Add 'self' argument.
6002 (remote_start_remote): Update.
6003 * procfs.c (procfs_pass_signals): Add 'self' argument.
6004 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6005 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6006 (linux_nat_create_inferior, linux_nat_attach): Update.
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * windows-nat.c (windows_can_run): Add 'self' argument.
6011 * target.h (struct target_ops) <to_can_run>: Add argument.
6012 (target_can_run): Add argument.
6013 * target.c (debug_to_can_run): Add argument.
6014 (update_current_target): Update.
6015 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6016 * inf-child.c (inf_child_can_run): Add 'self' argument.
6017 * go32-nat.c (go32_can_run): Add 'self' argument.
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target.h (struct target_ops) <to_has_exited>: Add argument.
6022 (target_has_exited): Add argument.
6023 * target.c (debug_to_has_exited): Add argument.
6024 (update_current_target): Update.
6026 2014-02-19 Tom Tromey <tromey@redhat.com>
6028 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6030 (target_set_syscall_catchpoint): Add argument.
6031 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6033 * target.c (update_current_target): Update.
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6039 (target_remove_exec_catchpoint): Add argument.
6040 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6041 (update_current_target): Update.
6042 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6045 2014-02-19 Tom Tromey <tromey@redhat.com>
6047 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6049 (target_insert_exec_catchpoint): Add argument.
6050 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6051 (update_current_target): Update.
6052 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6055 2014-02-19 Tom Tromey <tromey@redhat.com>
6057 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6059 (target_remove_vfork_catchpoint): Add argument.
6060 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6061 (update_current_target): Update.
6062 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6067 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6069 (target_insert_vfork_catchpoint): Add argument.
6070 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6071 (update_current_target): Update.
6072 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6079 (target_remove_fork_catchpoint): Add argument.
6080 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6081 (update_current_target): Update.
6082 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6085 2014-02-19 Tom Tromey <tromey@redhat.com>
6087 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6089 (target_insert_fork_catchpoint): Add argument.
6090 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6091 (update_current_target): Update.
6092 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6097 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6099 (target_post_startup_inferior): Add argument.
6100 * target.c (debug_to_post_startup_inferior): Add argument.
6101 (update_current_target): Update.
6102 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6104 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6106 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6108 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6110 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6112 (super_post_startup_inferior): Likewise.
6113 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6115 (super_post_startup_inferior): Likewise.
6116 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6117 Add 'self' argument.
6118 (super_post_startup_inferior): Likewise.
6120 2014-02-19 Tom Tromey <tromey@redhat.com>
6122 * target.h (struct target_ops) <to_load>: Add argument.
6123 * target.c (target_load): Add argument.
6124 (debug_to_load): Add argument.
6125 (update_current_target): Update.
6126 * remote.c (remote_load): Add 'self' argument.
6127 * remote-sim.c (gdbsim_load): Add 'self' argument.
6128 * remote-mips.c (mips_load): Add 'self' argument.
6129 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6130 * monitor.c (monitor_load): Add 'self' argument.
6131 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6133 2014-02-19 Tom Tromey <tromey@redhat.com>
6135 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6136 (target_terminal_info): Add argument.
6137 * target.c (debug_to_terminal_info): Add argument.
6138 (default_terminal_info): Likewise.
6139 * inflow.c (child_terminal_info): Add 'self' argument.
6140 * inferior.h (child_terminal_info): Add 'self' argument.
6141 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6147 (target_terminal_save_ours): Add argument.
6148 * target.c (debug_to_terminal_save_ours): Add argument.
6149 (update_current_target): Update.
6150 * inflow.c (terminal_save_ours): Add 'self' argument.
6151 * inferior.h (terminal_save_ours): Add 'self' argument.
6153 2014-02-19 Tom Tromey <tromey@redhat.com>
6155 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6156 (target_terminal_ours): Add argument.
6157 * target.c (debug_to_terminal_ours): Add argument.
6158 (update_current_target): Update.
6159 * remote.c (remote_terminal_ours): Add 'self' argument.
6160 (remote_close): Update.
6161 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6162 * inflow.c (terminal_ours): Add 'self' argument.
6163 * inferior.h (terminal_ours): Add 'self' argument.
6164 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6166 2014-02-19 Pedro Alves <palves@redhat.com>
6167 Tom Tromey <tromey@redhat.com>
6169 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6171 (target_terminal_ours_for_output): Add argument.
6172 * target.c (debug_to_terminal_ours_for_output): Add argument.
6173 (update_current_target): Update.
6174 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6175 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6176 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6178 2014-02-19 Tom Tromey <tromey@redhat.com>
6180 * target.h (struct target_ops) <to_terminal_inferior>: Add
6182 * target.c (target_terminal_inferior): Add argument.
6183 (update_current_target): Update.
6184 * remote.c (remote_terminal_inferior): Add 'self' argument.
6185 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6186 * inflow.c (terminal_inferior): Add 'self' argument.
6187 * inferior.h (terminal_inferior): Add 'self' argument.
6188 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6189 (go32_terminal_inferior): Add 'self' argument.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6194 (target_terminal_init): Add argument.
6195 * target.c (debug_to_terminal_init): Add argument.
6196 (update_current_target): Update.
6197 * inflow.c (terminal_init_inferior): Add 'self' argument.
6198 * inferior.h (terminal_init_inferior): Add 'self' argument.
6199 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6200 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6202 2014-02-19 Tom Tromey <tromey@redhat.com>
6204 * target.h (struct target_ops)
6205 <to_can_accel_watchpoint_condition>: Add argument.
6206 (target_can_accel_watchpoint_condition): Add argument.
6207 * target.c (debug_to_can_accel_watchpoint_condition): Add
6209 (update_current_target): Update.
6210 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6213 2014-02-19 Tom Tromey <tromey@redhat.com>
6215 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6217 (target_region_ok_for_hw_watchpoint): Add argument.
6218 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6219 (default_region_ok_for_hw_watchpoint): Add argument.
6220 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6221 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6223 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6225 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6227 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6229 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6231 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6233 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6234 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6236 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6237 Add 'self' argument.
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6243 (target_insert_watchpoint): Add argument.
6244 * target.c (debug_to_insert_watchpoint): Add argument.
6245 (update_current_target): Update.
6246 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6247 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6248 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6249 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6250 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6251 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6253 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6254 (procfs_insert_hw_watchpoint): Add 'self' argument.
6255 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6257 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6259 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6261 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6262 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6264 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6271 (target_remove_watchpoint): Add argument.
6272 * target.c (debug_to_remove_watchpoint): Add argument.
6273 (update_current_target): Update.
6274 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6275 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6276 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6277 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6278 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6279 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6281 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6282 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6284 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6286 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6288 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6289 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6291 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6294 2014-02-19 Tom Tromey <tromey@redhat.com>
6296 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6298 (target_remove_hw_breakpoint): Add argument.
6299 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6300 (update_current_target): Update.
6301 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6302 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6304 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6305 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6307 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6310 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6314 (target_insert_hw_breakpoint): Add argument.
6315 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6316 (update_current_target): Update.
6317 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6318 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6320 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6321 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6322 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6324 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6327 2014-02-19 Tom Tromey <tromey@redhat.com>
6329 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6331 (target_can_use_hardware_watchpoint): Add argument.
6332 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6333 (update_current_target): Update.
6334 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6336 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6338 * remote.c (remote_check_watch_resources): Add 'self' argument.
6339 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6340 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6342 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6343 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6345 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6347 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6349 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6351 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6353 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6355 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6356 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6358 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6363 * target.h (struct target_ops) <to_post_attach>: Add argument.
6364 (target_post_attach): Add argument.
6365 * target.c (debug_to_post_attach): Add argument.
6366 (update_current_target): Update.
6367 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6368 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6369 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6370 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6371 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6373 2014-02-19 Tom Tromey <tromey@redhat.com>
6375 * windows-nat.c (windows_close): Add 'self' argument.
6376 * tracepoint.c (tfile_close): Add 'self' argument.
6377 * target.h (struct target_ops) <to_close>: Add argument.
6378 * target.c (target_close): Add argument.
6379 (update_current_target): Update.
6380 * remote.c (remote_close): Add 'self' argument.
6381 * remote-sim.c (gdbsim_close): Add 'self' argument.
6382 * remote-mips.c (mips_close): Add 'self' argument.
6383 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6384 * record-full.c (record_full_close): Add 'self' argument.
6385 * record-btrace.c (record_btrace_close): Add 'self' argument.
6386 * monitor.h (monitor_close): Add 'self' argument.
6387 * monitor.c (monitor_close): Add 'self' argument.
6388 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6389 * linux-nat.c (linux_nat_close): Add argument.
6390 * go32-nat.c (go32_close): Add 'self' argument.
6391 * exec.c (exec_close_1): Add 'self' argument.
6392 * ctf.c (ctf_close): Add 'self' argument.
6393 * corelow.c (core_close): Add 'self' argument.
6394 (core_close_cleanup): Update.
6395 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6396 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6400 * remote.c (remote_load): New function.
6401 (init_remote_ops): Use it.
6403 2014-02-19 Tom Tromey <tromey@redhat.com>
6405 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6407 * common/linux-btrace.h (linux_supports_btrace): Update.
6408 * remote.c (remote_supports_btrace): Add "self" argument.
6409 * target-delegates.c: Rebuild.
6410 * target.c (target_supports_btrace): Remove.
6411 * target.h (struct target_ops) <to_supports_btrace>: Add
6412 target_ops argument.
6413 (target_supports_btrace): New define.
6415 2014-02-19 Tom Tromey <tromey@redhat.com>
6417 * record-full.c (record_full_beneath_to_resume_ops)
6418 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6419 (record_full_beneath_to_wait)
6420 (record_full_beneath_to_store_registers_ops)
6421 (record_full_beneath_to_store_registers)
6422 (record_full_beneath_to_xfer_partial_ops)
6423 (record_full_beneath_to_xfer_partial)
6424 (record_full_beneath_to_insert_breakpoint_ops)
6425 (record_full_beneath_to_insert_breakpoint)
6426 (record_full_beneath_to_remove_breakpoint_ops)
6427 (record_full_beneath_to_remove_breakpoint)
6428 (record_full_beneath_to_stopped_by_watchpoint)
6429 (record_full_beneath_to_stopped_data_address)
6430 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6431 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6432 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6433 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6434 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6435 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6436 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6437 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6438 (record_full_resume, record_full_wait_1)
6439 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6440 (record_full_store_registers, record_full_xfer_partial)
6441 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6442 (record_full_async, record_full_core_xfer_partial): Use target
6444 * target-delegates.c: Rebuild.
6445 * target.c (current_xfer_partial): Remove.
6446 (update_current_target): Do not INHERIT or de_fault
6447 to_insert_breakpoint, to_remove_breakpoint,
6448 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6449 to_is_async_p, to_async. Do not set to_xfer_partial field.
6450 (default_xfer_partial): Simplify.
6451 (current_xfer_partial): Remove.
6452 (target_wait, target_resume): Simplify.
6453 (find_default_can_async_p, find_default_is_async_p): Update.
6454 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6455 to_xfer_partial, to_stopped_by_watchpoint,
6456 to_stopped_data_address.
6457 (target_store_registers): Simplify.
6458 (forward_target_remove_breakpoint)
6459 (forward_target_insert_breakpoint): Remove.
6460 (target_remove_breakpoint, target_insert_breakpoint)
6461 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6462 * target.h (struct target_ops) <to_resume, to_wait,
6463 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6464 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6465 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6467 (forward_target_remove_breakpoint)
6468 (forward_target_insert_breakpoint): Remove.
6469 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6471 (record_btrace_insert_breakpoint): Delegate directly.
6473 2014-02-19 Tom Tromey <tromey@redhat.com>
6476 * target-delegates.c: New file.
6477 * target.c: Include target-delegates.c.
6478 (init_dummy_target): Call install_dummy_methods.
6479 (complete_target_initialization): Call install_delegators.
6480 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6481 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6482 * make-target-delegates: New file.
6484 2014-02-19 Tom Tromey <tromey@redhat.com>
6486 * record.c (find_record_target): Use find_target_at.
6487 * target.c (find_target_at): New function.
6488 * target.h (find_target_at): Declare.
6490 2014-02-19 Tom Tromey <tromey@redhat.com>
6492 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6494 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6496 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6497 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6499 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6501 * linux-nat.c (save_sigtrap): Update.
6502 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6503 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6504 (linux_nat_close): Update.
6505 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6507 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6509 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6510 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6511 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6512 (tmp_to_async): Add 'ops' argument.
6513 (record_full_stopped_by_watchpoint, record_full_async)
6514 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6516 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6517 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6518 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6519 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6520 (remote_is_async_p, remote_async): Add 'ops' argument.
6521 (remote_stopped_data_address): Update.
6522 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6523 * target.c (update_current_target)
6524 (find_default_can_async_p, find_default_is_async_p): Update.
6525 (init_dummy_target): Update.
6526 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6527 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6528 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6529 (target_can_async_p, target_is_async_p, target_async)
6530 (target_stopped_by_watchpoint): Update.
6532 2014-02-19 Yao Qi <yao@codesourcery.com>
6535 * gdbarch.sh: Remove startup_gdbarch.
6536 * gdbarch.c: Regenerated.
6537 * gdbarch.h: Likewise.
6539 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6541 * rl78-tdep.c (rl78_g10_register_name): New function.
6542 (rl78_return_value): Add g10 support.
6543 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6546 2014-02-17 Doug Evans <xdje42@gmail.com>
6548 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6549 (SUBDIR_GUILE_SRCS): Ditto.
6550 (scm-gsmob.o): Ditto.
6552 2014-02-17 Yao Qi <yao@codesourcery.com>
6554 * gnu-nat.c (ILL_RPC): Declare defined function.
6556 2014-02-17 Yao Qi <yao@codesourcery.com>
6558 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6559 mach_msg_type_number_t.
6560 (gnu_write_inferior): Likewise.
6562 2014-02-17 Yao Qi <yao@codesourcery.com>
6564 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6566 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6567 (inf_validate_procs, inf_signal): Likewise.
6568 (S_exception_raise_request): Likewise.
6569 (do_mach_notify_dead_name): Likewise.
6570 (steal_exc_port): Likewise.
6571 (gnu_read_inferior): Change 'copy_count''s type to
6572 mach_msg_type_number_t.
6573 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6576 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6578 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6579 flag. Adjust all users; in particular...
6580 (gnu_wait): ..., don't decrement its value in here...
6581 (gnu_create_inferior): ..., and instead set the flag in here,
6582 around the startup_inferior call, and call that one with
6583 START_INFERIOR_TRAPS_EXPECTED.
6585 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6586 (ILL_RPC): ... new macro.
6587 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6588 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6589 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6590 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6591 functions with ILL_RPC macro.
6592 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6593 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6594 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6595 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6596 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6597 (S_proc_getlogin_reply, S_proc_getsid_reply)
6598 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6599 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6600 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6601 (S_proc_getnports_reply, S_proc_is_important_reply)
6602 (S_proc_get_code_reply): New stub functions, generated with
6605 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6606 collected the type check structures.
6608 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6610 2014-02-14 Doug Evans <dje@google.com>
6612 * target.c (target_write_partial): Fix result type.
6614 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6616 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6617 the proper offsets to access fpregset_t.
6619 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6621 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6622 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6623 * h8300-tdep.c (setmachinelist): Remove global.
6624 * hppa-tdep.c (hppa_sigtramp): Remove global.
6625 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6626 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6627 * ravenscar-thread.c (update_target_observer): Remove global.
6628 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6630 2014-02-12 Tom Tromey <tromey@redhat.com>
6632 * common/rsp-low.c: Update comments.
6633 * common/rsp-low.h: Update comments.
6635 2014-02-12 Tom Tromey <tromey@redhat.com>
6637 * common/rsp-low.c (convert_ascii_to_int): Remove.
6638 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6640 2014-02-12 Tom Tromey <tromey@redhat.com>
6642 * common/rsp-low.h (unhexify): Don't declare.
6643 * common/rsp-low.c (unhexify): Remove.
6645 2014-02-12 Tom Tromey <tromey@redhat.com>
6647 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6648 * common/rsp-low.c (convert_int_to_ascii): Remove.
6650 2014-02-12 Tom Tromey <tromey@redhat.com>
6652 * common/rsp-low.h (hexify): Don't declare.
6653 * common/rsp-low.c (hexify): Remove.
6655 2014-02-12 Tom Tromey <tromey@redhat.com>
6657 * common/rsp-low.c (hexify): Never take strlen of argument.
6659 2014-02-12 Tom Tromey <tromey@redhat.com>
6661 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6662 * remote.c (extended_remote_run, remote_rcmd)
6663 (remote_download_trace_state_variable, remote_save_trace_data)
6664 (remote_set_trace_notes): Update.
6665 * tracepoint.c (encode_source_string, tfile_write_status)
6666 (tfile_write_uploaded_tsv): Update.
6668 2014-02-12 Tom Tromey <tromey@redhat.com>
6670 * tracepoint.c: Include rsp-low.h.
6671 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6672 * remote.c: Include rsp-low.h.
6673 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6674 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6675 (remote_unescape_input): Move to common/rsp-low.c.
6676 * common/rsp-low.h: New file.
6677 * common/rsp-low.c: New file.
6678 * Makefile.in (SFILES): Add common/rsp-low.c.
6679 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6680 (COMMON_OBS): Add rsp-low.o.
6681 (rsp-low.o): New target.
6683 2014-02-12 Tom Tromey <tromey@redhat.com>
6685 * utils.h: Include print-utils.h.
6686 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6687 (int_string, core_addr_to_string, core_addr_to_string_nz)
6688 (hex_string, hex_string_custom): Don't declare.
6689 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6690 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6691 (hex_string_custom, int_string, core_addr_to_string)
6692 (core_addr_to_string_nz, host_address_to_string): Move to
6693 common/print-utils.c.
6694 * common/print-utils.h: New file.
6695 * common/print-utils.c: New file
6696 * Makefile.in (SFILES): Add common/print-utils.c.
6697 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6698 (COMMON_OBS): Add print-utils.o.
6699 (print-utils.o): New target.
6701 2014-02-12 Tom Tromey <tromey@redhat.com>
6703 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6705 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6707 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6709 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6711 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6712 if a PT_IO ptrace request returns sucessfully but indicates that 0
6713 bytes were transferred.
6715 2014-02-12 Pedro Alves <palves@redhat.com>
6716 Kevin Buettner <kevinb@redhat.com>
6718 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6719 TYPE_INSTANCE_FLAG_CODE_SPACE.
6721 2014-02-12 Pedro Alves <palves@redhat.com>
6723 * h8300-tdep.c (pseudo_from_raw_register)
6724 (raw_from_pseudo_register): New functions.
6725 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6728 2014-02-12 Pedro Alves <palves@redhat.com>
6730 * h8300-tdep.c (h8300_register_sim_regno): New function.
6731 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6732 gdbarch_register_sim_regno hook.
6734 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6736 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6738 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6740 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6742 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6744 * obsd-tdep.h (obsd_init_abi): New prototype.
6745 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6746 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6747 (obsd_init_abi): New functions.
6748 * i386obsd-tdep.c: Include "obsd-tdep.h".
6749 (i386obsd_init_abi): Call obsd_init_abi.
6750 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6751 (amd64obsd_init_abi): Call obsd_init_abi.
6752 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6753 obsd-tdep.c to gdb_target_obs.
6755 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6757 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6758 double float arguments to 16-byte in the argument slots.
6760 2014-02-11 Doug Evans <xdje42@gmail.com>
6762 * configure.ac: Don't crash if pkg-config is not found and guile
6763 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6765 * configure: Regenerate.
6767 2014-02-11 Yao Qi <yao@codesourcery.com>
6769 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6770 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6771 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6772 * gnu-nat.c (gnu_xfer_memory): Likewise.
6773 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6774 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6775 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6776 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6778 2014-02-11 Yao Qi <yao@codesourcery.com>
6780 * target.h (enum target_xfer_error): Rename to ...
6781 (enum target_xfer_status): ... it. New. All users updated.
6782 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6784 (TARGET_XFER_STATUS_ERROR_P): New macro.
6785 (target_xfer_error_to_string): Remove declaration.
6786 (target_xfer_status_to_string): Declare.
6787 (target_xfer_partial_ftype): Adjust it.
6788 (struct target_ops) <to_xfer_partial>: Return
6789 target_xfer_status. Add argument xfered_len. Update
6791 * target.c (target_xfer_error_to_string): Rename to ...
6792 (target_xfer_status_to_string): ... it. New. All callers
6794 (target_read_live_memory): Likewise. Call target_xfer_partial
6795 instead of target_read.
6796 (memory_xfer_live_readonly_partial): Return
6797 target_xfer_status. Add argument xfered_len.
6798 (raw_memory_xfer_partial): Likewise.
6799 (memory_xfer_partial_1): Likewise.
6800 (memory_xfer_partial): Likewise.
6801 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6802 properly. Update debug message.
6803 (default_xfer_partial, current_xfer_partial): Likewise.
6804 (target_write_partial): Likewise.
6805 (target_read_partial): Likewise. All callers updated.
6806 (read_whatever_is_readable): Likewise.
6807 (target_write_with_progress): Likewise.
6808 (target_read_alloc_1): Likewise.
6810 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6811 * auxv.c (procfs_xfer_auxv): Likewise.
6812 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6813 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6814 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6815 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6816 * corefile.c (read_memory): Adjust.
6817 * corelow.c (core_xfer_partial): Likewise.
6818 * ctf.c (ctf_xfer_partial): Likewise.
6819 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6821 (darwin_xfer_partial): Likewise.
6822 * exec.c (section_table_xfer_memory_partial): Likewise. All
6824 (exec_xfer_partial): Likewise.
6825 * exec.h (section_table_xfer_memory_partial): Update
6827 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6829 (gnu_xfer_partial): Likewise.
6830 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6831 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6832 (ia64_hpux_xfer_solib_got): Likewise.
6833 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6834 type of 'partial_len' to ULONGEST.
6835 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6836 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6837 (linux_nat_xfer_partial): Likewise.
6838 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6839 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6840 * monitor.c (monitor_xfer_memory): Likewise.
6841 (monitor_xfer_partial): Likewise.
6842 * procfs.c (procfs_xfer_partial): Likewise.
6843 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6844 * record-full.c (record_full_xfer_partial): Likewise.
6845 (record_full_core_xfer_partial): Likewise.
6846 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6847 (gdbsim_xfer_partial): Likewise.
6848 * remote.c (remote_write_bytes_aux): Likewise. All callers
6850 (remote_write_bytes, remote_read_bytes): Likewise. All
6852 (remote_flash_erase): Likewise. All callers updated.
6853 (remote_write_qxfer): Likewise. All callers updated.
6854 (remote_read_qxfer): Likewise. All callers updated.
6855 (remote_xfer_partial): Likewise.
6856 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6857 (rs6000_xfer_shared_libraries): Likewise.
6858 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6859 (sol_thread_xfer_partial): Likewise.
6860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6861 (sparc_xfer_partial): Likewise.
6862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6864 (spu_xfer_partial): Likewise.
6865 * spu-multiarch.c (spu_xfer_partial): Likewise.
6866 * tracepoint.c (tfile_xfer_partial): Likewise.
6867 * windows-nat.c (windows_xfer_memory): Likewise.
6868 (windows_xfer_shared_libraries): Likewise.
6869 (windows_xfer_partial): Likewise.
6870 * valprint.c: Replace 'target_xfer_error' with
6871 'target_xfer_status' in comments.
6873 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6875 Checked in by Joel Brobecker <brobecker@adacore.com>.
6876 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6878 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6880 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6881 function parameters.
6883 2014-02-10 Will Newton <will.newton@linaro.org>
6885 * elfread.c (elf_rel_plt_read): Look for a .got section if
6886 looking up .got.plt fails.
6887 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6888 on address passed to elf_gnu_ifunc_record_cache.
6889 (elf_gnu_ifunc_resolve_addr): Likewise.
6890 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6892 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6894 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6895 (X_RETTURN): New macro.
6896 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6898 * sparc64-tdep.c (sparc64_init_abi): Hook
6899 sparc_in_function_epilogue_p.
6901 2014-02-10 Gary Benson <gbenson@redhat.com>
6903 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6904 Rename name_matcher to symbol_matcher.
6906 2014-02-10 Gary Benson <gbenson@redhat.com>
6908 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6909 Use expand_symtabs_file_matcher_ftype and
6910 expand_symtabs_symbol_matcher_ftype.
6912 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6914 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6915 (struct ada_symbol_cache): New.
6916 (ada_free_symbol_cache): Forward declare.
6917 (struct ada_pspace_data): New.
6918 (ada_pspace_data_handle): New static global.
6919 (get_ada_pspace_data, ada_pspace_data_cleanup)
6920 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6921 (cache_space, cache): Delete, now folded inside struct
6923 (ada_get_symbol_cache): New function.
6924 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6926 (_initialize_ada_language): Remove initialization of cache_space.
6927 Move call to observer_attach_inferior_exit up, grouping it
6928 with the other observer registrations inside this function.
6929 Rename command to be more general. Add call to
6930 register_program_space_data_with_cleanup.
6932 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6934 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6935 ada_new_objfile_observer.
6936 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6937 (_initialize_tasks): Update uses of ada_new_objfile_observer
6938 and ada_tasks_normal_stop_observer.
6940 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6942 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6943 returned by the 'Length attribute to integer.
6945 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6947 * ada-lang.c (_initialize_ada_language): Initialize
6948 cache_space obstack.
6950 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6952 * ada-lang.c (HASH_SIZE): New macro.
6953 (struct cache_entry): New type.
6954 (cache_space, cache): New static globals.
6955 (ada_clear_symbol_cache, find_entry): New functions.
6956 (lookup_cached_symbol, cache_symbol): Implement.
6957 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6958 (_initialize_ada_language): Attach ada_new_objfile_observer
6959 and ada_free_objfile_observer.
6961 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6963 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6964 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6965 struct block * parameter.
6966 (ada_lookup_symbol_list_worker): Constify local variable "block".
6967 Remove cast which is no longer necessary.
6969 2014-02-10 Doug Evans <xdje42@gmail.com>
6971 Add Guile as an extension language.
6972 * NEWS: Mention Guile scripting.
6973 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6974 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6975 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6976 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6977 (CLIBS): Add GUILE_LIBS.
6978 (install-guile): New rule.
6979 (guile.o): New rule.
6980 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6981 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6982 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6983 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6984 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6985 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6986 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6987 * configure.ac: New option --with-guile.
6988 * configure: Regenerate.
6989 * config.in: Regenerate.
6990 * auto-load.c: Remove #include "python/python.h". Add #include
6991 "gdb/section-scripts.h".
6992 (source_section_scripts): Handle Guile scripts.
6993 (_initialize_auto_load): Add name of Guile objfile script to
6994 scripts-directory help text.
6995 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6996 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6997 (struct breakpoint): New member scm_bp_object.
6998 * defs.h (enum command_control_type): New value guile_control.
6999 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7001 (show_user): Update comment.
7002 (_initialize_cli_cmds): Update help text for "show user". Update help
7003 text for max-user-call-depth.
7004 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7006 (multi_line_command_p): Add guile_control.
7007 (print_command_lines): Handle guile_control.
7008 (execute_control_command, recurse_read_control_structure): Ditto.
7009 (process_next_line): Recognize "guile" commands.
7010 * disasm.c (gdb_disassemble_info): Make non-static.
7011 * disasm.h: #include "dis-asm.h".
7012 (struct gdbarch): Add forward decl.
7013 (gdb_disassemble_info): Declare.
7014 * extension.c: #include "guile/guile.h".
7015 (extension_languages): Add guile.
7016 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7017 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7018 * gdbtypes.c (get_unsigned_type_max): New function.
7019 (get_signed_type_minmax): New function.
7020 * gdbtypes.h (get_unsigned_type_max): Declare.
7021 (get_signed_type_minmax): Declare.
7022 * guile/README: New file.
7023 * guile/guile-internal.h: New file.
7024 * guile/guile.c: New file.
7025 * guile/guile.h: New file.
7026 * guile/scm-arch.c: New file.
7027 * guile/scm-auto-load.c: New file.
7028 * guile/scm-block.c: New file.
7029 * guile/scm-breakpoint.c: New file.
7030 * guile/scm-disasm.c: New file.
7031 * guile/scm-exception.c: New file.
7032 * guile/scm-frame.c: New file.
7033 * guile/scm-gsmob.c: New file.
7034 * guile/scm-iterator.c: New file.
7035 * guile/scm-lazy-string.c: New file.
7036 * guile/scm-math.c: New file.
7037 * guile/scm-objfile.c: New file.
7038 * guile/scm-ports.c: New file.
7039 * guile/scm-pretty-print.c: New file.
7040 * guile/scm-safe-call.c: New file.
7041 * guile/scm-string.c: New file.
7042 * guile/scm-symbol.c: New file.
7043 * guile/scm-symtab.c: New file.
7044 * guile/scm-type.c: New file.
7045 * guile/scm-utils.c: New file.
7046 * guile/scm-value.c: New file.
7047 * guile/lib/gdb.scm: New file.
7048 * guile/lib/gdb/boot.scm: New file.
7049 * guile/lib/gdb/experimental.scm: New file.
7050 * guile/lib/gdb/init.scm: New file.
7051 * guile/lib/gdb/iterator.scm: New file.
7052 * guile/lib/gdb/printing.scm: New file.
7053 * guile/lib/gdb/types.scm: New file.
7054 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7055 (VPATH): Add $(GUILE_SRCDIR).
7056 (GUILE_DIR): New variable.
7057 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7058 (all): Add stamp-guile dependency.
7059 (stamp-guile): New rule.
7060 (clean-guile, install-guile, uninstall-guile): New rules.
7061 (install-only): Add install-guile dependency.
7062 (uninstall): Add uninstall-guile dependency.
7063 (clean): Add clean-guile dependency.
7065 2014-02-09 Doug Evans <xdje42@gmail.com>
7067 Revert this patch (which I approved, mea culpa).
7069 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7071 * Makefile.in (all-lib): Remove.
7072 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7074 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7076 Fix Python stack corruption.
7077 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7080 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7082 * Makefile.in (all-lib): Remove.
7083 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7085 2014-02-07 Doug Evans <dje@google.com>
7087 * extension-priv.h (extension_language_script_ops): Add comment.
7088 (extension_language_ops): Add comment.
7089 (active_ext_lang_state): Fix typo in comment.
7091 2014-02-07 Pedro Alves <palves@redhat.com>
7093 PR breakpoints/16292
7094 * infrun.c (handle_signal_stop) <signal arrives while stepping
7095 over a breakpoint>: Switch back to the stepping thread.
7097 2014-02-07 Yao Qi <yao@codesourcery.com>
7099 * target.c (target_xfer_partial): Return zero if LEN is zero.
7101 2014-02-07 Yao Qi <yao@codesourcery.com>
7103 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7104 (ld_so_xfer_auxv): Likewise.
7105 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7106 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7107 * corelow.c (core_xfer_partial): Likewise.
7108 * ctf.c (ctf_xfer_partial): Likewise.
7109 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7110 (darwin_xfer_partial): Likewise.
7111 * exec.c (exec_xfer_partial): Likewise.
7112 * gnu-nat.c (gnu_xfer_partial): Likewise.
7113 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7114 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7115 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7116 * linux-nat.c (linux_xfer_siginfo): Likewise.
7117 (linux_proc_xfer_spu): Likewise.
7118 * procfs.c (procfs_xfer_partial): Likewise.
7119 * record-full.c (record_full_xfer_partial): Likewise.
7120 (record_full_core_xfer_partial): Likewise.
7121 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7122 * remote.c (remote_write_qxfer): Likewise.
7123 (remote_write_qxfer, remote_read_qxfer): Likewise.
7124 (remote_xfer_partial): Likewise.
7125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7126 (rs6000_xfer_shared_libraries): Likewise.
7127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7129 (spu_xfer_partial): Likewise.
7130 * target.c (memory_xfer_partial_1): Likewise.
7131 * tracepoint.c (tfile_xfer_partial): Likewise.
7132 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7133 (windows_xfer_partial): Likewise.
7135 2014-02-07 Yao Qi <yao@codesourcery.com>
7137 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7139 (core_xfer_shared_libraries_aix): Likewise.
7140 * gdbarch.c, gdbarch.h: Regenerated.
7141 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7142 ULONGEST. Change 'len_avail' type to ULONGEST.
7143 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7144 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7146 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7148 2014-02-07 Yao Qi <yao@codesourcery.com>
7150 * corefile.c (memory_error): Get 'exception' from ERR and pass
7151 'exception' to throw_error.
7153 2014-02-06 Doug Evans <xdje42@gmail.com>
7155 * configure.ac (libpython checking): Remove all but python.o from
7156 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7157 * configure: Regenerate.
7159 * Makefile.in (SFILES): Add extension.c.
7160 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7161 (COMMON_OBS): Add extension.o.
7162 * extension.h: New file.
7163 * extension-priv.h: New file.
7164 * extension.c: New file.
7166 * python/python-internal.h: #include "extension.h".
7167 (gdbpy_auto_load_enabled): Declare.
7168 (gdbpy_apply_val_pretty_printer): Declare.
7169 (gdbpy_apply_frame_filter): Declare.
7170 (gdbpy_preserve_values): Declare.
7171 (gdbpy_breakpoint_cond_says_stop): Declare.
7172 (gdbpy_breakpoint_has_cond): Declare.
7173 (void source_python_script_for_objfile): Delete.
7174 * python/python.c: #include "extension-priv.h".
7175 Delete inclusion of "observer.h".
7176 (extension_language_python): Moved here and renamed from
7177 script_language_python in py-auto-load.c.
7178 Redefined to be of type extension_language_defn.
7179 (python_extension_script_ops): New global.
7180 (python_extension_ops): New global.
7181 (struct python_env): New member previous_active.
7182 (restore_python_env): Call restore_active_ext_lang.
7183 (ensure_python_env): Call set_active_ext_lang.
7184 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7186 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7188 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7190 (gdbpy_eval_from_control_command): Renamed from
7191 eval_python_from_control_command, made static. New arg extlang.
7192 (gdbpy_source_script) Renamed from source_python_script, made static.
7194 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7195 result to int. New arg extlang.
7196 (gdbpy_source_objfile_script): Renamed from
7197 source_python_script_for_objfile, made static. New arg extlang.
7198 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7199 static. New args extlang, extlang_printers. Change result type to
7201 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7202 static. New arg extlang. Rename arg printers to extlang_printers
7203 and change type to ext_lang_type_printers *.
7204 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7205 static. Replace argument arg with extlang, extlang_printers.
7206 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7207 (!HAVE_PYTHON, source_python_script): Delete.
7208 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7209 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7210 (!HAVE_PYTHON, start_type_printers): Delete.
7211 (!HAVE_PYTHON, apply_type_printers): Delete.
7212 (!HAVE_PYTHON, free_type_printers): Delete.
7213 (_initialize_python): Delete call to observer_attach_before_prompt.
7214 (finalize_python): Set/restore active extension language.
7215 (gdbpy_finish_initialization) Renamed from
7216 finish_python_initialization, made static. New arg extlang.
7217 (gdbpy_initialized): New function.
7218 * python/python.h: #include "extension.h". Delete #include
7219 "value.h", "mi/mi-cmds.h".
7220 (extension_language_python): Declare.
7221 (GDBPY_AUTO_FILE_NAME): Delete.
7222 (enum py_bt_status): Moved to extension.h and renamed to
7224 (enum frame_filter_flags): Moved to extension.h.
7225 (enum py_frame_args): Moved to extension.h and renamed to
7226 ext_lang_frame_args.
7227 (finish_python_initialization): Delete.
7228 (eval_python_from_control_command): Delete.
7229 (source_python_script): Delete.
7230 (apply_val_pretty_printer): Delete.
7231 (apply_frame_filter): Delete.
7232 (preserve_python_values): Delete.
7233 (gdbpy_script_language_defn): Delete.
7234 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7235 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7237 * auto-load.c: #include "extension.h".
7238 (GDB_AUTO_FILE_NAME): Delete.
7239 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7240 (script_language_gdb): Delete, moved to extension.c and renamed to
7241 extension_language_gdb.
7242 (source_gdb_script_for_objfile): Delete.
7243 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7244 (loaded_script): Change type of language member to
7245 struct extension_language_defn *.
7246 (init_loaded_scripts_info): Initialize
7247 unsupported_script_warning_printed.
7248 (maybe_add_script): Make static. Change type of language arg to
7249 struct extension_language_defn *.
7250 (clear_section_scripts): Reset unsupported_script_warning_printed.
7251 (auto_load_objfile_script_1): Rewrite to use extension language API.
7252 (auto_load_objfile_script): Make public. Remove support-compiled-in
7253 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7254 (source_section_scripts): Rewrite to use extension language API.
7255 (load_auto_scripts_for_objfile): Rewrite to use
7256 auto_load_scripts_for_objfile.
7257 (collect_matching_scripts_data): Change type of language member to
7258 struct extension_language_defn *.
7259 (auto_load_info_scripts): Change type of language arg to
7260 struct extension_language_defn *.
7261 (unsupported_script_warning_print): New function.
7262 (script_not_found_warning_print): Make static.
7263 (_initialize_auto_load): Rewrite construction of scripts-directory
7265 * auto-load.h (struct objfile): Add forward decl.
7266 (struct script_language): Delete.
7267 (struct auto_load_pspace_info): Add forward decl.
7268 (struct extension_language_defn): Add forward decl.
7269 (maybe_add_script): Delete.
7270 (auto_load_objfile_script): Declare.
7271 (script_not_found_warning_print): Delete.
7272 (auto_load_info_scripts): Update prototype.
7273 (auto_load_gdb_scripts_enabled): Declare.
7274 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7275 auto_load_python_scripts_enabled and made public.
7276 (script_language_python): Delete, moved to python.c.
7277 (gdbpy_script_language_defn): Delete.
7278 (info_auto_load_python_scripts): Update to use
7279 extension_language_python.
7281 * breakpoint.c (condition_command): Replace call to
7282 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7283 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7284 with call to breakpoint_ext_lang_cond_says_stop.
7285 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7286 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7287 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7288 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7290 (local_setattro): Print name of extension language with existing
7293 * valprint.c (val_print, value_print): Update to call
7294 apply_ext_lang_val_pretty_printer.
7295 * cp-valprint.c (cp_print_value): Update call to
7296 apply_ext_lang_val_pretty_printer.
7297 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7298 (gdbpy_apply_val_pretty_printer): Renamed from
7299 apply_val_pretty_printer. New arg extlang.
7300 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7302 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7303 extension language API.
7304 * cli/cli-script.c (execute_control_command): Update to call
7305 eval_ext_lang_from_control_command.
7307 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7308 enum ext_lang_bt_status values. Update call to
7309 apply_ext_lang_frame_filter.
7310 (mi_cmd_stack_list_locals): Ditto.
7311 (mi_cmd_stack_list_args): Ditto.
7312 (mi_cmd_stack_list_variables): Ditto.
7313 * mi/mi-main.c: Delete #include "python/python-internal.h".
7314 Add #include "extension.h".
7315 (mi_cmd_list_features): Replace reference to python internal variable
7316 gdb_python_initialized with call to ext_lang_initialized_p.
7318 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7319 Update to use enum ext_lang_frame_args. Update to call
7320 apply_ext_lang_frame_filter.
7321 * python/py-framefilter.c (extract_sym): Update to use enum
7323 (extract_value, py_print_type, py_print_value): Ditto.
7324 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7325 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7326 (py_print_frame): Ditto.
7327 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7328 New arg extlang. Update to use enum ext_lang_bt_status.
7330 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7331 finish_python_initialization. Replace with call to
7332 finish_ext_lang_initialization.
7334 * typeprint.c (do_free_global_table): Update to call
7335 free_ext_lang_type_printers.
7336 (create_global_typedef_table): Update to call
7337 start_ext_lang_type_printers.
7338 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7339 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7340 (type_print_options): Change type of global_printers from "void *"
7341 to "struct ext_lang_type_printers *".
7343 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7344 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7345 (gdbpy_preserve_values): Renamed from preserve_python_values.
7347 (!HAVE_PYTHON, preserve_python_values): Delete.
7349 * utils.c (quit_flag): Delete, moved to extension.c.
7350 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7353 * eval.c: Delete #include "python/python.h".
7354 * main.c: Delete #include "python/python.h".
7356 * defs.h: Update comment.
7358 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7362 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7364 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7367 2014-02-05 Yao Qi <yao@codesourcery.com>
7369 * remote.c (remote_pass_signals): Remove local 'buf' and use
7371 (remote_program_signals): Likewise.
7373 2014-02-05 Yao Qi <yao@codesourcery.com>
7375 * ctf.c: Include "inferior.h" and "gdbthread.h".
7376 (CTF_PID): A new macro.
7377 (ctf_open): Call inferior_appeared and add_thread_silent.
7378 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7379 (ctf_thread_alive): New function.
7380 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7382 2014-02-05 Yao Qi <yao@codesourcery.com>
7386 2013-05-24 Yao Qi <yao@codesourcery.com>
7388 * tracepoint.c (TFILE_PID): Remove.
7389 (tfile_open): Don't add thread and inferior.
7390 (tfile_close): Don't set 'inferior_ptid'. Don't call
7391 exit_inferior_silent.
7392 (tfile_thread_alive): Remove.
7393 (init_tfile_ops): Don't set field 'to_thread_alive' of
7396 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7398 * remote.c (remote_start_remote): Call remote_check_symbols even
7399 if only symbol-file (not file) has been given.
7401 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7403 * gdbarch.sh (skip_entrypoint): New callback.
7404 * gdbarch.c, gdbarch.h: Regenerate.
7405 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7406 * infrun.c (fill_in_stop_func): Likewise.
7407 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7408 (ppc_elfv2_elf_make_msymbol_special): New function.
7409 (ppc_elfv2_skip_entrypoint): Likewise.
7410 (ppc_linux_init_abi): Install them for ELFv2.
7412 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7414 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7415 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7416 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7417 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7418 structures returned in GPRs.
7420 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7423 offset to the stack parameter list for the ELFv2 ABI.
7425 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7427 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7428 set_gdbarch_convert_from_func_ptr_addr and
7429 set_gdbarch_elf_make_msymbol_special for ELFv1.
7430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7431 function descriptors on ELFv1.
7432 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7433 set up r12 at function entry.
7435 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7437 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7438 (struct gdbarch_tdep): New member elf_abi.
7440 * rs6000-tdep.c: Include "elf/ppc64.h".
7441 (rs6000_gdbarch_init): Detect ELF ABI version.
7443 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7445 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7446 within a register pair holding a DFP 128-bit value on little-endian.
7447 (ppc64_sysv_abi_return_value_base): Likewise.
7448 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7449 (dfp_pseudo_register_write): Likewise.
7451 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7454 offset on little-endian when passing _Decimal32.
7455 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7457 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7459 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7460 of the overlapped FP register within the VSX register on little-
7462 (efpr_pseudo_register_write): Likewise.
7464 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7466 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7467 offset on little-endian when passing small structures.
7469 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7471 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7472 (struct ppc64_sysv_argpos): New data structure.
7473 (ppc64_sysv_abi_push_float): Remove.
7474 (ppc64_sysv_abi_push_val): New function.
7475 (ppc64_sysv_abi_push_integer): Likewise.
7476 (ppc64_sysv_abi_push_freg): Likewise.
7477 (ppc64_sysv_abi_push_vreg): Likewise.
7478 (ppc64_sysv_abi_push_param): Likewise.
7479 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7480 (ppc64_sysv_abi_return_value_base): New function.
7481 (ppc64_sysv_abi_return_value): Refactor to use it.
7483 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7485 * NEWS: Document new target powerpc64le-*-linux*.
7487 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7489 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7490 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7492 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7493 register set used in ELF core dumps. Add floating-point register set.
7495 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7497 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7498 dwarf2_to_gdb[] table using symbolic constants. Adjust
7499 penultimate entry from number representing the PC register
7500 to symbolic constant representing the MDR register. Add
7501 constant for the PC register to the end of the table.
7503 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7505 * bsd-kvm.c: Include <sys/param.h>
7507 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7509 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7511 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7513 * ada-lang.h (clear_ada_sym_cache): Delete.
7515 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7517 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7519 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7521 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7522 the sigreturn register save area only if the syscall is
7525 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7527 * valops.c (value_slice): Minor reformatting.
7529 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7531 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7533 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7535 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7537 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7538 (ada_ignore_descriptive_types_p): New static global.
7539 (find_parallel_type_by_descriptive_type): Return immediately
7540 if ada_ignore_descriptive_types_p is set.
7541 (_initialize_ada_language): Register new commands "maintenance
7542 set ada", "maintenance show ada", "maintenance set ada
7543 ignore-descriptive-types" and "maintenance show ada
7544 ignore-descriptive-types".
7545 * NEWS: Add entry for new "maint ada set/show
7546 ignore-descriptive-types" commands.
7548 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7550 * record-btrace.c (record_btrace_close): Call btrace_teardown
7553 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7555 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7558 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7560 * ada-typeprint (type_is_full_subrange_of_target_type):
7562 (print_range): Add parameter bounds_prefered_p. If not set,
7563 try printing range types using the name of their base type.
7564 (print_range_type): Add parameter bounds_prefered_p.
7565 Use it in call to print_range.
7566 (print_array_type, ada_print_type): Update calls to print_range
7567 and print_range_type.
7569 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7571 * ada-typeprint.c (print_array_type, print_choices, print_range)
7572 (print_range_bound, print_dynamic_range_bound, print_range_type):
7575 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7577 * ada-typeprint.c (print_range): Add missing empty line
7578 after local declaration.
7580 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7582 * ada-valprint.c (print_optional_low_bound): Get index_type's
7583 target type for as long as it is a TYPE_CODE_RANGE.
7585 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7587 * procfs.c (procfs_make_note_section): Remove assertion and
7590 2014-01-24 Yao Qi <yao@codesourcery.com>
7592 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7593 * corelow.c (get_core_siginfo): Likewise.
7595 2014-01-24 Yao Qi <yao@codesourcery.com>
7597 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7598 ULONGEST. Don't check 'len' is negative.
7599 (remote_write_bytes): Change type of 'len' to ULONGEST.
7601 2014-01-23 Tom Tromey <tromey@redhat.com>
7604 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7605 Handle exception from frame.block.
7606 (FrameVars.fetch_frame_locals): Likewise.
7608 2014-01-23 Tom Tromey <tromey@redhat.com>
7611 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7612 on a NULL pointer. Move "goto error" to correct place.
7614 2014-01-23 Tom Tromey <tromey@redhat.com>
7617 * python/py-framefilter.c (apply_frame_filter): Call
7618 ensure_python_env after computing gdbarch.
7620 2014-01-23 Yao Qi <yao@codesourcery.com>
7622 * target.c (raw_memory_xfer_partial): Change argument type
7623 from void * to gdb_byte *.
7624 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7626 2014-01-22 Doug Evans <dje@google.com>
7628 New gdbserver option --debug-format=timestamp.
7631 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7633 * syscalls/s390x-linux.xml: New file.
7634 * syscalls/s390-linux.xml: New file.
7635 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7636 (XML_SYSCALL_FILENAME_S390X): Likewise.
7637 (op_svc): New enum value for SVC opcode.
7638 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7639 (s390_linux_get_syscall_number): New function.
7640 (s390_gdbarch_init): Register '*get_syscall_number' and the
7641 syscall xml file name.
7642 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7643 "s390-linux.xml" and "s390x-linux.xml".
7644 * NEWS: Announce new feature.
7646 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7648 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7650 2014-01-22 Pedro Alves <palves@redhat.com>
7652 * xtensa-config.c: Include defs.h.
7654 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7656 * common/common-utils.h: Add "ARI:" comment beside __func__
7659 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7661 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7662 documentation a bit.
7664 2014-01-21 Roland McGrath <mcgrathr@google.com>
7666 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7667 * configure: Regenerate.
7668 * aclocal.m4: Regenerate.
7669 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7670 New substituted variables.
7671 (install-strip): New target.
7672 (INSTALL_SCRIPT): New substituted variable.
7673 (FLAGS_TO_PASS): Add it.
7674 (install-only): Use $(INSTALL_SCRIPT) rather than
7675 $(INSTALL_PROGRAM) for gcore.
7677 2014-01-20 Tom Tromey <tromey@redhat.com>
7679 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7682 2014-01-20 Tom Tromey <tromey@redhat.com>
7684 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7685 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7686 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7687 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7688 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7689 (struct cmd_list_element) <flags>: Remove.
7690 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7691 doc_allocated>: New fields.
7692 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7694 * maint.c (maintenance_do_deprecate): Update.
7695 * top.c (execute_command): Update.
7697 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7699 * xtensa-linux-nat.c: Include asm/ptrace.h.
7701 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7703 * Makefile.in (SFILES): Add d-support.c.
7704 (COMMON_OBS): Add d-support.o.
7705 * d-lang.h (d_parse_symbol): Add comment, now defined in
7707 * d-lang.c (parse_call_convention)
7708 (parse_attributes, parse_function_types)
7709 (parse_function_args, parse_type, parse_identifier)
7710 (call_convention_p, d_parse_symbol): Move functions to ...
7711 * d-support.c: ... New file.
7713 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7715 * d-lang.h (d_parse_symbol): Add declaration.
7716 * d-lang.c (extract_identifiers)
7717 (extract_type_info): Remove functions.
7718 (parse_call_convention, parse_attributes)
7719 (parse_function_types, parse_function_args)
7720 (parse_type, parse_identifier, call_convention_p)
7721 (d_parse_symbol): New functions.
7722 (d_demangle): Use d_parse_symbol to demangle D symbols.
7724 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7726 * d-lang.h (struct builtin_d_type): New data type.
7727 (builtin_d_type): Add declaration.
7728 * d-lang.c (d_language_arch_info, build_d_types)
7729 (builtin_d_type): New functions.
7730 (enum d_primitive_types): New data type.
7731 (d_language_defn): Change c_language_arch_info to
7732 d_language_arch_info.
7733 (d_type_data): New static variable.
7734 (_initialize_d_language): Initialize d_type_data.
7736 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7738 * d-lang.h (d_main_name): Add declaration.
7739 * d-lang.c (d_main_name): New function.
7740 * symtab.c (find_main_name): Add call to d_main_name.
7742 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7744 * d-lang.c (d_language_defn): Change macro_expansion_c to
7747 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7749 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7751 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7753 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7754 gdb_exception" declaration.
7755 * remote.c (getpkt_or_notif_sane): Likewise.
7757 2014-01-17 Doug Evans <dje@google.com>
7759 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7760 function, contents of dirnames_to_char_ptr_vec_append moved here.
7761 (delim_string_to_char_ptr_vec): New function.
7762 (dirnames_to_char_ptr_vec_append): Rewrite.
7763 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7765 2014-01-17 Doug Evans <dje@google.com>
7767 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7769 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7770 #include "common-utils.h".
7771 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7772 * common/vec.h (VEC_ASSERT_PASS): Update.
7773 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7774 (MACH_CHECK_ERROR): Update.
7776 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7778 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7780 * gdbarch.h: Regenerate.
7782 2014-01-16 Tom Tromey <tromey@redhat.com>
7784 * value.c (struct value) <regnum>: Move earlier.
7786 2014-01-16 Tom Tromey <tromey@redhat.com>
7788 * remote.c (extended_remote_create_inferior): Rename from
7789 extended_remote_create_inferior_1. Add "ops" argument. Remove
7792 2014-01-16 Pedro Alves <palves@redhat.com>
7794 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7795 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7798 2014-01-16 Doug Evans <dje@google.com>
7800 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7802 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7804 * btrace.h (btrace_thread_flag): New.
7805 (struct btrace_thread_info) <flags>: New.
7806 * record-btrace.c (record_btrace_resume_thread)
7807 (record_btrace_find_thread_to_move, btrace_step_no_history)
7808 (btrace_step_stopped, record_btrace_start_replaying)
7809 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7810 (record_btrace_find_resume_thread): New.
7811 (record_btrace_resume, record_btrace_wait): Extend.
7812 (record_btrace_can_execute_reverse): New.
7813 (record_btrace_open): Fail in non-stop mode.
7814 (record_btrace_set_replay): Split into this, ...
7815 (record_btrace_stop_replaying): ... this, ...
7816 (record_btrace_clear_histories): ... and this.
7817 (init_record_btrace_ops): Init to_can_execute_reverse.
7818 * NEWS: Announce it.
7820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7822 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7823 (forward_target_decr_pc_after_break)
7824 (target_decr_pc_after_break): New.
7825 * target.c (forward_target_decr_pc_after_break)
7826 (target_decr_pc_after_break): New.
7827 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7828 instead of gdbarch_decr_pc_after_break.
7829 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7830 instead of gdbarch_decr_pc_after_break.
7831 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7832 instead of gdbarch_decr_pc_after_break.
7833 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7834 instead of gdbarch_decr_pc_after_break.
7835 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7836 instead of gdbarch_decr_pc_after_break.
7837 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7838 instead of gdbarch_decr_pc_after_break.
7840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7842 * btrace.c: Include regcache.h.
7843 (btrace_add_pc): New.
7844 (btrace_enable): Call btrace_add_pc.
7845 (btrace_is_empty): New.
7846 * btrace.h (btrace_is_empty): New.
7847 * record-btrace.c (require_btrace, record_btrace_info): Call
7850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7852 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7853 Support delta reads.
7854 (linux_disable_btrace): Change return type.
7855 * common/linux-btrace.h (linux_read_btrace): Change parameters
7856 and return type to allow error reporting. Update users.
7857 (linux_disable_btrace): Change return type. Update users.
7858 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7860 (btrace_error): New.
7861 (btrace_block) <begin>: Comment on BEGIN == 0.
7862 * btrace.c (btrace_compute_ftrace): Start from the end of
7864 (btrace_stitch_trace, btrace_clear_history): New.
7865 (btrace_fetch): Read delta trace, return if replaying.
7866 (btrace_clear): Move clear history code to btrace_clear_history.
7867 (parse_xml_btrace): Throw an error if parsing failed.
7868 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7869 and return type to allow error reporting.
7870 (target_read_btrace): Change parameters and return type to allow
7872 * target.c (target_read_btrace): Update.
7873 * remote.c (remote_read_btrace): Support delta reads. Pass
7875 * NEWS: Announce it.
7877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7879 * record.h (record_btrace_frame_unwind)
7880 (record_btrace_tailcall_frame_unwind): New declarations.
7881 * dwarf2-frame: Include record.h
7882 (dwarf2_frame_cfa): Throw an error for btrace frames.
7883 * record-btrace.c: Include hashtab.h.
7884 (btrace_get_bfun_name): New.
7885 (btrace_call_history): Call btrace_get_bfun_name.
7886 (struct btrace_frame_cache): New.
7888 (bfcache_hash, bfcache_eq, bfcache_new): New.
7889 (btrace_get_frame_function): New.
7890 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7891 (record_btrace_frame_this_id): Compute own id.
7892 (record_btrace_frame_prev_register): Provide PC, throw_error
7893 for all other registers.
7894 (record_btrace_frame_sniffer): Detect btrace frames.
7895 (record_btrace_tailcall_frame_sniffer): New.
7896 (record_btrace_frame_dealloc_cache): New.
7897 (record_btrace_frame_unwind): Add new functions.
7898 (record_btrace_tailcall_frame_unwind): New.
7899 (_initialize_record_btrace): Allocate cache.
7900 * btrace.c (btrace_clear): Call reinit_frame_cache.
7901 * NEWS: Announce it.
7903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7905 * record-btrace.c (record_btrace_set_replay)
7906 (record_btrace_goto_begin, record_btrace_goto_end)
7907 (record_btrace_goto): New.
7908 (init_record_btrace_ops): Initialize them.
7909 * NEWS: Announce it.
7911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7913 * record-btrace.c (record_btrace_find_new_threads)
7914 (record_btrace_thread_alive): New.
7915 (init_record_btrace_ops): Initialize to_find_new_threads and
7918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7920 * record-btrace.c (record_btrace_resume): New.
7921 (record_btrace_wait): New.
7922 (init_record_btrace_ops): Initialize to_wait and to_resume.
7924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7926 * record-btrace.c (record_btrace_xfer_partial)
7927 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7928 (record_btrace_allow_memory_access): New.
7929 (init_record_btrace_ops): Initialize new methods.
7930 * target.c (raw_memory_xfer_partial): Bail out if target reports
7931 that this memory is not available.
7933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7935 * target.h (target_ops) <to_insert_breakpoint>
7936 <to_remove_breakpoint>: Add target_ops parameter.
7937 (forward_target_insert_breakpoint): New.
7938 (forward_target_remove_breakpoint): New.
7939 (memory_remove_breakpoint, memory_insert_breakpoint):
7940 Add target_ops parameter.
7941 * target.c (target_insert_breakpoint): Split into this and ...
7942 (forward_target_insert_breakpoint): ... this.
7943 (target_remove_breakpoint): Split into this and ...
7944 (forward_target_remove_breakpoint): ... this.
7945 (debug_to_insert_breakpoint): Add target_ops parameter.
7946 Call forward_target_insert_breakpoint.
7947 (debug_to_remove_breakpoint): Add target_ops parameter.
7948 Call forward_target_remove_breakpoint.
7949 (update_current_target): Do not inherit or default to_insert_breakpoint
7950 and to_remove_breakpoint.
7951 * corelow.c (ignore): Add target_ops parameter.
7952 * exec.c (ignore): Add target_ops parameter.
7953 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7954 Add target_ops parameter.
7955 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7956 Add target_ops parameter.
7957 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7958 Add target_ops parameter.
7959 * record-full.c (record_full_beneath_to_insert_breakpoint)
7960 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7961 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7962 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7963 (record_full_core_remove_breakpoint): Add target_ops parameter.
7965 (record_full_beneath_to_insert_breakpoint_ops)
7966 (record_full_beneath_to_remove_breakpoint_ops)
7967 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7968 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7969 tmp_to_remove_breakpoint_ops,
7970 record_full_beneath_to_insert_breakpoint_ops, and
7971 record_full_beneath_to_remove_breakpoint_ops.
7972 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7973 (m32r_remove_breakpoint): Add target_ops parameter.
7974 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7975 Add target_ops parameter.
7976 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7977 Add target_ops parameter.
7979 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7980 Markus Metzger <markus.t.metzger@intel.com>
7982 * record-btrace.c: Include frame-unwind.h.
7983 (record_btrace_frame_unwind_stop_reason)
7984 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7985 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7987 (init_record_btrace_ops): Install it.
7989 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7991 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7994 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7999 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8001 * frame-unwind.c: Include target.h.
8002 (frame_unwind_try_unwinder): New function with code from ...
8003 (frame_unwind_find_by_frame): ... here. New variable
8004 unwinder_from_target, call also target_get_unwinder)
8005 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8006 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8007 * target.h (struct target_ops): New fields to_get_unwinder and
8008 to_get_tailcall_unwinder.
8009 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8013 * record-btrace.c (record_btrace_fetch_registers)
8014 (record_btrace_store_registers)
8015 (record_btrace_to_prepare_to_store): New.
8016 (init_record_btrace_ops): Add the above.
8018 2014-01-16 Tom Tromey <tromey@redhat.com>
8020 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8021 * target.h (struct target_ops) <to_prepare_to_store>: Add
8023 (target_prepare_to_store): Add argument.
8024 * target.c (debug_to_prepare_to_store): Add argument.
8025 (update_current_target): Update.
8026 * remote.c (remote_prepare_to_store): Add 'self' argument.
8027 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8028 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8029 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8030 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8032 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8033 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8034 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8035 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8036 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8040 * btrace.h (replay) <replay>: New.
8041 (btrace_is_replaying): New.
8042 * btrace.c (btrace_clear): Free replay iterator.
8043 (btrace_is_replaying): New.
8044 * record-btrace.c (record_btrace_is_replaying): New.
8045 (record_btrace_info): Print insn number if replaying.
8046 (record_btrace_insn_history): Start at replay position.
8047 (record_btrace_call_history): Start at replay position.
8048 (init_record_btrace_ops): Init to_record_is_replaying.
8050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8052 * record-btrace.c (record_btrace_insn_history_range): Include
8054 (record_btrace_insn_history_from): Adjust range.
8055 (record_btrace_call_history_range): Include
8057 (record_btrace_call_history_from): Adjust range.
8058 * NEWS: Announce changes.
8060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8062 * record.h (enum record_print_flag)
8063 <record_print_indent_calls>: New.
8064 * record.c (get_call_history_modifiers): Recognize /c modifier.
8065 (_initialize_record): Document /c modifier.
8066 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8067 Reorder fields. Optionally indent the function name. Update
8069 * NEWS: Announce changes.
8071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8073 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8077 * btrace.c (ftrace_new_function): Start counting at one.
8078 * record-btrace.c (record_btrace_info): Adjust number of calls
8080 * NEWS: Announce it.
8082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8084 * record-btrace.c (btrace_call_history_insn_range): Print
8085 insn range as [begin, end].
8087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8089 * btrace.h (struct btrace_func_link): New.
8090 (enum btrace_function_flag): New.
8091 (struct btrace_inst): Rename to ...
8092 (struct btrace_insn): ...this. Update all users.
8093 (struct btrace_func) <ibegin, iend>: Remove.
8094 (struct btrace_func_link): New.
8095 (struct btrace_func): Rename to ...
8096 (struct btrace_function): ...this. Update all users.
8097 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8098 (number, level, flags>: New.
8099 (struct btrace_insn_iterator): Rename to ...
8100 (struct btrace_insn_history): ...this.
8102 (struct btrace_insn_iterator, btrace_call_iterator): New.
8103 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8104 (struct btrace_target_info) <begin, end, level>
8105 <insn_history, call_history>: New.
8106 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8107 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8108 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8109 (btrace_call_number, btrace_call_begin, btrace_call_end)
8110 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8111 (btrace_find_function_by_number, btrace_set_insn_history)
8112 (btrace_set_call_history): New.
8113 * btrace.c (btrace_init_insn_iterator)
8114 (btrace_init_func_iterator, compute_itrace): Remove.
8115 (ftrace_print_function_name, ftrace_print_filename)
8116 (ftrace_skip_file): Change
8118 (ftrace_init_func): Remove.
8119 (ftrace_debug): Use new btrace_function fields.
8120 (ftrace_function_switched): Also consider gaining and
8121 losing symbol information).
8122 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8123 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8124 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8126 (ftrace_new_function): Move. Remove debug print.
8127 (ftrace_update_lines, ftrace_update_insns): New.
8128 (ftrace_update_function): Check for call, ret, and jump.
8129 (compute_ftrace): Renamed to ...
8130 (btrace_compute_ftrace): ...this. Rewritten to compute call
8132 (btrace_fetch, btrace_clear): Updated.
8133 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8134 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8135 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8136 (btrace_call_number, btrace_call_begin, btrace_call_end)
8137 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8138 (btrace_find_function_by_number, btrace_set_insn_history)
8139 (btrace_set_call_history): New.
8140 * record-btrace.c (require_btrace): Use new btrace thread
8142 (record_btrace_info, btrace_insn_history)
8143 (record_btrace_insn_history, record_btrace_insn_history_range):
8144 Use new btrace thread info fields and new iterator.
8145 (btrace_func_history_src_line): Rename to ...
8146 (btrace_call_history_src_line): ...this. Use new btrace
8148 (btrace_func_history): Rename to ...
8149 (btrace_call_history): ...this. Use new btrace thread info
8150 fields and new iterator.
8151 (record_btrace_call_history, record_btrace_call_history_range):
8152 Use new btrace thread info fields and new iterator.
8154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8156 * frame.h (frame_id_build_unavailable_stack_special): New.
8157 * frame.c (frame_id_build_unavailable_stack_special): New.
8159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8161 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8162 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8163 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8165 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8166 (i386_insn_is_jump, i386_jmp_p): New.
8167 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8168 insn_is_jump to gdbarch.
8169 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8170 * gdbarch.h: Regenerated.
8171 * gdbarch.c: Regenerated.
8172 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8173 (default_insn_is_jump): New.
8174 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8175 (default_insn_is_jump): New.
8177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8179 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8181 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8182 (btrace_read_type) <btrace_read_new>: Change to ...
8183 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8187 * common/linux-btrace.c (linux_read_btrace): Free trace from
8190 2014-01-15 Doug Evans <dje@google.com>
8192 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8195 2014-01-15 Tom Tromey <tromey@redhat.com>
8197 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8198 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8199 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8200 (set_objfile_main_name): New function.
8201 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8202 language_of_main>: New fields.
8203 (set_objfile_main_name): Declare.
8204 * symtab.c (find_main_name): Loop over objfiles to find the main
8206 (set_main_name): Now static.
8207 (get_main_info): Add comment.
8208 * symtab.h (set_main_name): Don't declare.
8210 2014-01-15 Tom Tromey <tromey@redhat.com>
8212 * symtab.c (main_progspace_key): New global.
8213 (struct main_info): New.
8214 (name_of_main, language_of_main): Remove.
8215 (get_main_info, main_info_cleanup): New function.
8216 (set_main_name, main_name, main_language): Use get_main_info.
8217 (_initialize_symtab): Initialize main_progspace_key.
8219 2014-01-15 Tom Tromey <tromey@redhat.com>
8221 * dbxread.c (process_one_symbol): Update.
8222 * dwarf2read.c (read_partial_die): Update.
8223 * symfile.c (set_initial_language): Call main_language.
8224 * symtab.c (language_of_main): Now static.
8225 (set_main_name): Add 'lang' parameter.
8226 (find_main_name): Update.
8227 (main_language): New function.
8228 (symtab_observer_executable_changed): Update.
8229 * symtab.h (set_main_name): Update.
8230 (language_of_main): Remove.
8231 (main_language): Declare.
8233 2014-01-15 Tom Tromey <tromey@redhat.com>
8235 * symfile.c (init_entry_point_info): Use new "initialized" field.
8237 * objfiles.h (struct entry_point) <initialized>: New field.
8238 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8239 (struct objfile) <ei>: ...here. Remove.
8240 * objfiles.c (entry_point_address_query): Update.
8242 2014-01-15 Tom Tromey <tromey@redhat.com>
8244 * objfiles.c (entry_point_address_query): Relocate entry point
8246 (objfile_relocate1): Do not relocate entry point address.
8247 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8248 <the_bfd_section_index>: New field.
8249 * symfile.c (init_entry_point_info): Find the entry point's
8252 2014-01-15 Tom Tromey <tromey@redhat.com>
8254 * solib-frv.c (enable_break): Use entry_point_address_query.
8256 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8258 * NEWS: Add note on improved process record-replay on
8259 arm*-linux* targets.
8261 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8263 * arm-tdep.c (enum arm_record_result): New enum.
8264 (arm_record_unsupported_insn): New function.
8265 (arm_record_coproc_data_proc): Removed.
8266 (thumb2_record_ld_st_multiple): New function.
8267 (thumb2_record_ld_st_dual_ex_tbb): New function.
8268 (thumb2_record_data_proc_sreg_mimm): New function.
8269 (thumb2_record_ps_dest_generic): New function.
8270 (thumb2_record_branch_misc_cntrl): New function.
8271 (thumb2_record_str_single_data): New function.
8272 (thumb2_record_ld_mem_hints): New function.
8273 (thumb2_record_ld_word): New function.
8274 (thumb2_record_lmul_lmla_div): New function.
8275 (thumb2_record_decode_insn_handler): New function.
8276 (decode_insn): Add thumb32 instruction handlers.
8278 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8280 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8281 (struct arm_linux_record_tdep): Declare.
8282 (arm_canonicalize_syscall): New function.
8283 (arm_all_but_pc_registers_record): New function.
8284 (arm_linux_syscall_record): New function.
8285 (arm_linux_init_abi): Add syscall recording constructs.
8286 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8287 decoding. (arm_record_coproc_data_proc): Update arm syscall
8289 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8290 <arm_syscall_record>: New field.
8291 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8294 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8296 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8297 register for push instruction recording.
8299 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8301 * arm-tdep.c (thumb_record_misc): Update to correct logical
8302 error while recording ldm, ldmia and pop instructions.
8304 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8306 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8308 2014-01-15 Pedro Alves <palves@redhat.com>
8310 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8311 (go32_resume, go32_fetch_registers, store_register)
8312 (go32_store_registers, go32_prepare_to_store)
8313 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8314 (go32_create_inferior, go32_can_run, go32_terminal_init)
8315 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8318 2014-01-15 Tom Tromey <tromey@redhat.com>
8320 * target.h (async_callback_ftype): New typedef.
8321 (struct target_ops) <to_async>: Use it.
8323 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8325 * python/py-value.c (get_field_type): Remove unnecessary curly
8326 braces for single-statement if block.
8328 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8330 * python/py-type.c (convert_field): Add missing empty line
8333 2014-01-14 Doug Evans <dje@google.com>
8335 * symfile.h (expand_symtabs_matching): Renamed from
8336 expand_partial_symbol_names. Update prototype.
8337 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8338 * symfile.c (expand_symtabs_matching): Renamed from
8339 expand_partial_symbol_names. New args file_matcher, kind.
8340 Rename arg fun to symbol_matcher.
8341 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8342 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8343 ada_expand_partial_symbol_name.
8344 (ada_make_symbol_completion_list): Update to call
8345 expand_symtabs_matching.
8346 (ada_add_global_exceptions): Call expand_symtabs_matching.
8347 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8348 call map_symbol_filenames.
8349 * symtab.c (sources_info): Update to call map_symbol_filenames.
8350 (search_symbols): Call expand_symtabs_matching.
8351 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8352 (default_make_symbol_completion_list_break_on): Update to call
8353 expand_symtabs_matching.
8354 (make_source_files_completion_list): Update to call
8355 map_symbol_filenames.
8357 2014-01-14 Doug Evans <dje@google.com>
8359 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8360 (expand_symtabs_symbol_matcher_ftype): New typedef.
8361 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8362 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8363 * symfile.c (expand_partial_symbol_names): Update to use
8364 expand_symtabs_symbol_matcher_ftype.
8365 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8366 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8367 Arg name_matcher renamed to symbol_matcher.
8368 * psymtab.c (recursively_search_psymtabs): Update to use
8369 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8371 (expand_symtabs_matching_via_partial): Update to use
8372 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8373 Arg name_matcher renamed to symbol_matcher.
8375 2014-01-14 Doug Evans <dje@google.com>
8377 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8378 (map_partial_symbol_filenames): Ditto.
8379 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8380 (map_partial_symbol_filenames): Ditto.
8381 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8382 (map_partial_symbol_filenames): Ditto.
8383 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8384 (map_partial_symbol_filenames): Ditto.
8385 * symtab.c: Delete #include "psymtab.h".
8387 2014-01-14 Pedro Alves <palves@redhat.com>
8388 Tom Tromey <tromey@redhat.com>
8390 * infrun.c (use_displaced_stepping): Use find_record_target
8391 instead of RECORD_IS_USED.
8392 (adjust_pc_after_break): Use record_full_is_used instead of
8394 * record-btrace.c (record_btrace_open): Call record_preopen
8395 instead of checking RECORD_IS_USED.
8396 * record-full.c (record_full_shortname)
8397 (record_full_core_shortname): New globals.
8398 (record_full_is_used): New function.
8399 (find_full_open): Call record_preopen instead of checking
8401 (init_record_full_ops): Set the target's shortname to
8402 record_full_shortname.
8403 (init_record_full_core_ops): Set the target's shortname to
8404 record_full_core_shortname.
8405 * record-full.h (record_full_is_used): Declare.
8406 * record.c (find_record_target): Make extern.
8407 (record_preopen): New function.
8408 * record.h (RECORD_IS_USED): Delete macro.
8409 (find_record_target, record_preopen): Declare functions.
8411 2014-01-14 Yao Qi <yao@codesourcery.com>
8413 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8414 'len''s type to ULONGEST.
8415 (core_xfer_shared_libraries_aix): Likewise.
8416 * gdbarch.c, gdbarch.h: Regenerated.
8417 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8418 Change type of 'len' to ULONGEST.
8419 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8420 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8422 2014-01-14 Yao Qi <yao@codesourcery.com>
8424 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8425 type of 'len' to ULONGEST.
8426 (linux_xfer_osdata_processgroups): Likewise.
8427 (linux_xfer_osdata_threads): Likewise.
8428 (linux_xfer_osdata_fds): Likewise.
8429 (linux_xfer_osdata_isockets): Likewise.
8430 (linux_xfer_osdata_shm): Likewise.
8431 (linux_xfer_osdata_sem): Likewise.
8432 (linux_xfer_osdata_msg): Likewise.
8433 (linux_common_xfer_osdata): Likewise.
8434 (struct osdata_type) <getter>: Likewise.
8435 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8438 2014-01-14 Yao Qi <yao@codesourcery.com>
8440 * target.h (target_xfer_partial_ftype): Update.
8441 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8443 * aix-thread.c (aix_thread_xfer_partial): Change type of
8444 argument 'len' to ULONGEST.
8445 * auxv.c (procfs_xfer_auxv): Likewise.
8446 (ld_so_xfer_auxv): Likewise.
8447 (memory_xfer_auxv): Likewise.
8448 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8449 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8450 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8451 * corelow.c (core_xfer_partial): Likewise.
8452 * ctf.c (ctf_xfer_partial): Likewise.
8453 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8455 (darwin_read_dyld_info): Likewise.
8456 (darwin_xfer_partial): Likewise.
8457 * exec.c (section_table_xfer_memory_partial): Likewise.
8458 (exec_xfer_partial): Likewise.
8459 * exec.h (section_table_xfer_memory_partial): Update
8461 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8462 instead of plongest.
8463 (gnu_xfer_partial): Likewise.
8464 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8465 (ia64_hpux_xfer_solib_got): Likewise.
8466 (ia64_hpux_xfer_partial): Likewise.
8467 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8468 * inf-ptrace.c (inf_ptrace_xfer_partial):
8469 * inf-ttrace.c (inf_ttrace_xfer_partial):
8470 * linux-nat.c (linux_xfer_siginfo): Likewise.
8471 (linux_nat_xfer_partial): Likewise.
8472 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8473 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8474 * monitor.c (monitor_xfer_memory): Likewise.
8475 (monitor_xfer_partial): Likewise.
8476 * procfs.c (procfs_xfer_partial): Likewise.
8477 * record-full.c (record_full_xfer_partial): Likewise.
8478 (record_full_core_xfer_partial): Likewise.
8479 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8480 instead of plongest.
8481 (gdbsim_xfer_partial): Likewise.
8482 * remote.c (remote_xfer_partial): Likewise.
8483 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8484 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8487 (rs6000_xfer_shared_libraries): Likewise.
8488 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8489 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8490 (sparc_xfer_partial): Likewise.
8491 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8492 (spu_xfer_partial): Likewise.
8493 * spu-multiarch.c (spu_xfer_partial): Likewise.
8494 * target.c (target_read_live_memory): Likewise.
8495 (memory_xfer_live_readonly_partial): Likewise.
8496 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8497 (target_xfer_partial, default_xfer_partial): Likewise.
8498 (current_xfer_partial): Likewise.
8499 * tracepoint.c (tfile_xfer_partial): Likewise.
8500 * windows-nat.c (windows_xfer_memory): Likewise. Call
8501 pulongest instead of plongest.
8502 (windows_xfer_partial): Likewise.
8503 (windows_xfer_shared_libraries): Likewise.
8505 2014-01-14 Yao Qi <yao@codesourcery.com>
8507 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8508 target_xfer_partial_ftype.
8510 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8514 * valops.c (value_struct_elt_bitpos): New function
8515 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8516 object to 'None' if the field name is an empty string ("").
8517 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8518 attribute to look for a field when 'name' is 'None'.
8519 (get_field_type): New function
8521 2014-01-13 Doug Evans <dje@google.com>
8524 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8525 (try_open_dwop_file): Ditto.
8526 * gdb_bfd.c: #include "vec.h".
8527 (bfdp): New typedef.
8528 (struct gdb_bfd_data): New member included_bfds.
8529 (gdb_bfd_unref): Unref all included bfds.
8530 (gdb_bfd_record_inclusion): New function.
8531 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8533 2014-01-13 Tom Tromey <tromey@redhat.com>
8535 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8537 2014-01-13 Tom Tromey <tromey@redhat.com>
8539 * defs.h (use_windows): Remove.
8540 * gdb.c (main): Update.
8541 * main.c (captured_main, gdb_main): Update.
8542 * main.h (struct captured_main_args) <use_windows>: Remove.
8543 * top.c (use_windows): Remove.
8545 2014-01-13 Tom Tromey <tromey@redhat.com>
8547 * defs.h (deprecated_flush_hook): Remove.
8549 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8552 * linux-thread-db.c (try_thread_db_load): Add parameter
8553 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8554 (try_thread_db_load_from_pdir_1): Move it there from here.
8555 (try_thread_db_load_from_sdir): Update caller.
8556 (try_thread_db_load_from_dir): Move it there from here.
8558 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8560 * regformats/regdat.sh: Always rewrite the register file.
8562 2014-01-13 Pedro Alves <palves@redhat.com>
8564 * Makefile.in (CHECK_HEADERS): New variable.
8565 (check-headers:): New rule.
8567 2014-01-13 Tom Tromey <tromey@redhat.com>
8569 * cli/cli-setshow.c (do_set_command): Update.
8570 * defs.h (deprecated_set_hook): Remove.
8571 * top.c (deprecated_set_hook): Remove.
8573 2014-01-13 Pedro Alves <palves@redhat.com>
8575 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8576 the tracepoint if the PC is a pseudo-register.
8578 2014-01-13 Tom Tromey <tromey@redhat.com>
8580 * defs.h (XCALLOC): Remove.
8581 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8582 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8583 * dwarf2loc.c (allocate_piece_closure): Likewise.
8584 * elfread.c (elf_symfile_segments): Likewise.
8585 (elf_symfile_segments): Likewise.
8586 * gdbtypes.c (copy_type_recursive): Likewise.
8587 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8588 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8589 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8591 * mt-tdep.c (mt_gdbarch_init): Likewise.
8592 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8594 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8595 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8596 * registry.c (registry_alloc_data): Likewise.
8597 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8598 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8599 * serial.c (serial_fdopen_ops): Likewise.
8600 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8602 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8603 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8606 2014-01-13 Tom Tromey <tromey@redhat.com>
8608 * defs.h (XMALLOC): Remove.
8609 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8610 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8611 * cli-out.c (struct ui_out *): Likewise.
8612 * cli/cli-dump.c (add_dump_command): Likewise.
8613 (add_dump_command): Likewise.
8614 * complaints.c (get_complaints): Likewise.
8615 (find_complaint): Likewise.
8616 * dwarf2-frame.c (execute_cfa_program): Likewise.
8617 * dwarf2read.c (abbrev_table_read_table): Likewise.
8618 * gdbarch.sh: Likewise.
8619 * gdbarch.c: Rebuild.
8620 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8621 * interps.c (interp_new): Likewise.
8622 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8623 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8624 * mi/mi-console.c (mi_console_file_new): Likewise.
8625 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8626 * mi/mi-out.c (mi_out_new): Likewise.
8627 * mi/mi-parse.c (mi_parse): Likewise.
8628 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8629 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8630 * observer.c (xalloc_observer_list_node): Likewise.
8631 * regcache.c (regcache_xmalloc_1): Likewise.
8632 * reggroups.c (reggroup_new): Likewise.
8633 (_initialize_reggroup): Likewise.
8634 * registry.c (register_data_with_cleanup): Likewise.
8635 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8636 * ser-base.c (serial_ttystate): Likewise.
8637 * ser-mingw.c (make_pipe_state): Likewise.
8638 * ser-pipe.c (pipe_open): Likewise.
8639 * serial.c (serial_open): Likewise.
8640 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8641 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8642 (tui_alloc_win_info): Likewise.
8643 (tui_add_content_elements): Likewise.
8644 * tui/tui-file.c (tui_file_new): Likewise.
8645 * tui/tui-out.c (tui_out_new): Likewise.
8646 * ui-file.c (mem_file_new): Likewise.
8647 * ui-out.c (push_level): Likewise.
8648 (make_cleanup_ui_out_end): Likewise.
8649 (append_header_to_list): Likewise.
8650 (ui_out_new): Likewise.
8651 * user-regs.c (user_reg_add_builtin): Likewise.
8653 2014-01-13 Tom Tromey <tromey@redhat.com>
8655 * defs.h (XZALLOC): Remove.
8656 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8657 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8658 (get_ada_tasks_inferior_data): Likewise.
8659 * auto-load.c (get_auto_load_pspace_data): Likewise.
8660 * auxv.c (get_auxv_inferior_data): Likewise.
8661 * bfd-target.c (target_bfd_reopen): Likewise.
8662 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8663 (deprecated_insert_raw_breakpoint): Likewise.
8664 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8665 * corelow.c (core_open): Likewise.
8666 * darwin-nat.c (darwin_check_new_threads): Likewise.
8667 (darwin_attach_pid): Likewise.
8668 * dummy-frame.c (dummy_frame_push): Likewise.
8669 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8670 * dwarf2loc.c (allocate_piece_closure): Likewise.
8671 * elfread.c (elf_symfile_segments): Likewise.
8672 * eval.c (ptrmath_type_p): Likewise.
8673 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8674 * gdbtypes.c (alloc_type_arch): Likewise.
8675 (alloc_type_instance): Likewise.
8676 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8677 * inf-child.c (inf_child_can_use_agent): Likewise.
8678 * inflow.c (get_inflow_inferior_data): Likewise.
8679 * infrun.c (save_infcall_suspend_state): Likewise.
8680 * jit.c (jit_reader_load): Likewise.
8681 (get_jit_objfile_data): Likewise.
8682 (get_jit_program_space_data): Likewise.
8683 (jit_object_open_impl): Likewise.
8684 (jit_symtab_open_impl): Likewise.
8685 (jit_block_open_impl): Likewise.
8686 (jit_frame_sniffer): Likewise.
8687 * linux-fork.c (add_fork): Likewise.
8688 * maint.c (make_command_stats_cleanup): Likewise.
8689 * objfiles.c (get_objfile_pspace_data): Likewise.
8690 * opencl-lang.c (struct lval_closure): Likewise.
8691 * osdata.c (osdata_start_osdata): Likewise.
8692 * progspace.c (new_address_space): Likewise.
8693 (add_program_space): Likewise.
8694 * remote-sim.c (get_sim_inferior_data): Likewise.
8695 * sh-tdep.c (sh_gdbarch_init): Likewise.
8696 * skip.c (Ignore): Likewise.
8697 (skip_delete_command): Likewise.
8698 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8699 (library_list_start_library): Likewise.
8700 (solib_aix_current_sos): Likewise.
8701 * solib-darwin.c (get_darwin_info): Likewise.
8702 (darwin_current_sos): Likewise.
8703 * solib-dsbt.c (get_dsbt_info): Likewise.
8704 * solib-ia64-hpux.c (new_so_list): Likewise.
8705 (ia64_hpux_get_solib_linkage_addr): Likewise.
8706 * solib-spu.c (append_ocl_sos): Likewise.
8707 (spu_current_sos): Likewise.
8708 * solib-svr4.c (get_svr4_info): Likewise.
8709 (svr4_keep_data_in_core): Likewise.
8710 (library_list_start_library): Likewise.
8711 (svr4_default_sos): Likewise.
8712 (svr4_read_so_list): Likewise.
8713 * solib-target.c (library_list_start_library): Likewise.
8714 (solib_target_current_sos): Likewise.
8715 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8716 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8717 * symfile.c (default_symfile_segments): Likewise.
8718 * target-descriptions.c (tdesc_data_init): Likewise.
8719 (tdesc_create_reg): Likewise.
8720 (struct tdesc_type *): Likewise.
8721 (tdesc_create_vector): Likewise.
8722 (tdesc_set_struct_size): Likewise.
8723 (struct tdesc_type *): Likewise.
8724 (tdesc_free_feature): Likewise.
8725 (tdesc_create_feature): Likewise.
8726 * windows-nat.c (windows_add_thread): Likewise.
8727 (windows_make_so): Likewise.
8728 * xml-support.c (gdb_xml_body_text): Likewise.
8729 (gdb_xml_create_parser_and_cleanup): Likewise.
8730 (xml_process_xincludes): Likewise.
8731 * xml-syscall.c (allocate_syscalls_info): Likewise.
8732 (syscall_create_syscall_desc): Likewise.
8734 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8736 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8737 function, with code from i386_stap_parse_special_token.
8738 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8739 (i386_stap_parse_special_token): Move code to the two functions
8742 2014-01-09 Pedro Alves <palves@redhat.com>
8743 Hui Zhu <hui@codesourcery.com>
8746 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8747 bp_err_string. Don't mark the location shlib_disabled if the
8748 error thrown wasn't a generic or memory error. Catch errors
8749 thrown while inserting breakpoints in overlayed code. Output
8750 error message of software breakpoints.
8751 * remote.c (remote_insert_breakpoint): If this breakpoint has
8752 target-side commands but this stub doesn't support Z0 packets,
8753 throw NOT_SUPPORTED_ERROR error.
8754 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8755 * target.h (target_insert_breakpoint): Extend comment.
8756 (target_insert_hw_breakpoint): Add comment.
8758 2014-01-08 Pedro Alves <palves@redhat.com>
8760 * remote.c (remote_add_thread): Add threads silently if starting
8762 (remote_notice_new_inferior): If in all-stop, and starting up,
8763 don't call notice_new_inferior.
8764 (get_current_thread): New function, factored out from ...
8765 (add_current_inferior_and_thread): ... this. Adjust.
8766 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8767 found any thread, then select the remote's current thread as GDB's
8770 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8772 * NEWS: Create a new section for the next release branch.
8773 Rename the section of the current branch, now that it has
8776 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8778 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8779 * version.in: Bump version to 7.7.50.DATE-cvs.
8781 2014-01-08 Yao Qi <yao@codesourcery.com>
8783 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8784 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8785 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8787 2014-01-08 Yao Qi <yao@codesourcery.com>
8789 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8790 return value of bfd_get_filename to symbol_file_add_from_bfd.
8792 2014-01-08 Pierre Muller <muller@sourceware.org>
8795 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8796 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8797 to prim_record_mininal_symbol_and_info.
8798 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8799 in call to prim_record_minimal_symbol_and_info.
8800 (read_pe_exported_syms): Set index field of section_data.
8802 2014-01-07 Andrew Pinski <apinski@cavium.com>
8804 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8805 * features/aarch64.c: Regenerate.
8807 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8809 * target.c (return_null): Define.
8810 (update_current_target): Use it instead of return_zero for
8811 functions that return a pointer.
8813 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8815 * source.c (add_path): Fix check for duplicated paths in the previously
8818 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8820 * ada-lang.c: Remove duplicated include statements.
8821 * alphabsd-nat.c: Ditto.
8822 * amd64-darwin-tdep.c: Ditto.
8823 * amd64fbsd-nat.c: Ditto.
8824 * auto-load.c: Ditto.
8826 * breakpoint.c: Ditto.
8828 * fork-child.c: Ditto.
8829 * gdb_usleep.c: Ditto.
8830 * i386-darwin-tdep.c: Ditto.
8831 * i386fbsd-nat.c: Ditto.
8833 * inferior.c: Ditto.
8835 * linux-nat.c: Ditto.
8836 * linux-tdep.c: Ditto.
8837 * m68kbsd-nat.c: Ditto.
8838 * m68klinux-nat.c: Ditto.
8839 * microblaze-tdep.c: Ditto.
8840 * mips-linux-tdep.c: Ditto.
8841 * mn10300-tdep.c: Ditto.
8842 * nto-tdep.c: Ditto.
8843 * opencl-lang.c: Ditto.
8845 * printcmd.c: Ditto.
8846 * regcache.c: Ditto.
8847 * remote-m32r-sdi.c: Ditto.
8851 * tilegx-linux-nat.c: Ditto.
8852 * tilegx-tdep.c: Ditto.
8853 * tracepoint.c: Ditto.
8855 * vaxbsd-nat.c: Ditto.
8856 * windows-nat.c: Ditto.
8857 * xtensa-tdep.c: Ditto.
8859 2014-01-07 Yao Qi <yao@codesourcery.com>
8861 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8863 2014-01-07 Yao Qi <yao@codesourcery.com>
8864 Joel Brobecker <brobecker@adacore.com>
8866 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8867 (pdc_write_regs): Likewise.
8868 (fetch_regs_kernel_thread): Likewise.
8869 (store_regs_kernel_thread): Likewise.
8871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8873 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8874 tagged type objects to their actual type.
8876 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8878 * ada-valprint.c (print_field_values): Add "language" parameter.
8879 Update calls to print_field_values and print_variant_part.
8880 Pass new parameter "language" in call to val_print instead
8881 of "current_language". Replace call to ada_val_print by call
8883 (print_variant_part): Add "language" parameter.
8884 (ada_val_print_struct_union): Update call to print_field_values.
8886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8888 * ada-valprint.c (ui_memcpy): Delete.
8889 (ada_print_floating): Update documentation. Add empty line
8890 between between function documentation and implementation.
8891 Delete variable "buffer". Use ui_file_xstrdup in place of
8892 ui_file_put. Minor adjustments following this change.
8894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8896 * ada-valprint.c (ada_val_print_string): New function,
8897 extracted from ada_val_print_array.
8898 (ada_val_print_array): Replace extracted code by call
8899 to ada_val_print_string followed by a return. Move
8900 "else" branch to the function's top block.
8902 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8904 * ada-valprint.c (ada_val_print_array): Move implementation
8905 down. Rename parameter "offset" and "val" into "offset_aligned"
8906 and "original_value" respectively. Add parameter "offset".
8908 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8910 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8911 re-organizing the code. Change the "???" message printed
8912 when target type is a TYPE_CODE_UNDEF into
8913 "<ref to undefined type>".
8915 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8917 * ada-valprint.c (print_record): Delete, implementation inlined...
8918 (ada_val_print_struct_union): ... here. Remove call to
8919 ada_check_typedef in inlined implementation.
8921 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8923 * ada-valprint.c (ada_val_print_gnat_array): New function,
8924 extracted from ada_val_print_1;
8925 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8926 (ada_val_print_flt, ada_val_print_struct_union)
8927 (ada_val_print_ref): Likewise.
8928 (ada_val_print_1): Delete variables i and elttype.
8929 Replace extracted-out code by call to corresponding
8932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8934 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8936 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8938 * ada-valprint.c (ada_val_print_1): Replace calls to
8939 ada_val_print_1 by calls to val_print.
8941 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8943 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8944 Update calls to self accordingly. Replace calls to c_val_print
8945 by calls to val_print.
8947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8949 * ada-valprint.c (print_record): Delete declaration.
8950 (adjust_type_signedness, ada_val_print_1): Likewise.
8951 (ada_val_print): Move function implementation down.
8952 (print_variant_part, print_field_values, print_record):
8953 Move function implementation up.
8955 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8957 * python/py-type.c (typy_get_name): New function.
8958 (type_object_getset): Add entry for attribute "name".
8959 * NEWS: Add entry mentioning this new attribute.
8961 2014-01-07 Yao Qi <yao@codesourcery.com>
8963 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8966 2014-01-07 Yao Qi <yao@codesourcery.com>
8968 * gnu-nat.c (info_port_rights): Add qualifier const to
8971 2014-01-07 Yao Qi <yao@codesourcery.com>
8973 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8975 2014-01-07 Yao Qi <yao@codesourcery.com>
8977 * gnu-nat.c (make_inf) Update declaration.
8978 (make_inf): Make it static.
8979 (inf_set_traced): Likewise.
8980 (inf_port_to_thread, inf_task_died_status): Likewise.
8982 2014-01-07 Yao Qi <yao@codesourcery.com>
8984 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8986 2014-01-07 Yao Qi <yao@codesourcery.com>
8988 * gnu-nat.c (_initialize_gnu_nat): Declare.
8990 2014-01-07 Yao Qi <yao@codesourcery.com>
8992 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8994 (struct gdbarch_info) <byte_order>: Change type to
8996 <byte_order_for_code>: Likewise.
8997 * gdbarch.c, gdbarch.h: Regenerated.
8999 2014-01-06 Sasha Smundak <asmundak@google.com>
9001 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9003 2014-01-06 Tom Tromey <tromey@redhat.com>
9005 * doublest.c (convert_doublest_to_floatformat): Use const, not
9007 * somread.c (som_symtab_read): Likewise.
9009 2014-01-07 Hui Zhu <hui@codesourcery.com>
9011 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9012 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9013 (gdb_bfd_fopen): Ditto.
9014 (gdb_bfd_openr): Ditto.
9015 (gdb_bfd_openw): Ditto.
9016 (gdb_bfd_openr_iovec): Ditto.
9017 (gdb_bfd_fdopenr): Ditto.
9018 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9019 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9021 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9023 * symfile-mem.c (symbol_file_add_from_memory): Removed
9024 gdb_bfd_stash_filename.
9026 2014-01-03 Doug Evans <dje@google.com>
9028 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9031 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9033 Update year range in copyright notice of all files.
9035 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9037 * top.c (print_gdb_version): Set copyright year to 2014.
9039 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9041 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9043 For older changes see ChangeLog-2013.
9049 version-control: never